:root {
    color-scheme: dark;
    --ink: #eff3ea;
    --muted: #9aa198;
    --quiet: #6d756d;
    --page: #101510;
    --surface: #151c16;
    --surface-raised: #1b231c;
    --surface-soft: #1c251d;
    --line: rgba(215, 232, 209, 0.1);
    --line-strong: rgba(215, 232, 209, 0.17);
    --green: #b7ee78;
    --green-strong: #94d954;
    --mint: #7de6bd;
    --blue: #a4d3ff;
    --lilac: #cfb8ff;
    --amber: #e7bd72;
    --red: #ff8e83;
    --sans: "DM Sans", "Segoe UI", sans-serif;
    --display: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--page); }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}
[hidden] { display: none !important; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: .11;
}
.ambient-one { top: -380px; left: 18%; background: #99dc63; }
.ambient-two { right: -400px; bottom: -390px; background: #8ccebb; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.8px;
    text-decoration: none;
}
.brand-light { color: #a5b09f; font-weight: 500; }
.brand-mark {
    position: relative;
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    overflow: hidden;
    border: 1px solid rgba(183, 238, 120, .6);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(183, 238, 120, .19), rgba(125, 230, 189, .05));
    transform: rotate(-8deg);
}
.brand-mark span {
    width: 4px;
    height: 13px;
    border-radius: 4px;
    background: var(--green);
    transform: rotate(8deg);
}
.brand-mark span:first-child { height: 8px; opacity: .68; }
.brand-mark span:last-child { height: 10px; opacity: .82; }

.eyebrow {
    margin: 0;
    color: #9da69a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.65px;
}
.heading-accent { color: var(--green); }

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { background: var(--green); color: #172010; box-shadow: 0 5px 22px rgba(149, 211, 85, .13); }
.button-primary:hover { background: #c8f49a; }
.button-secondary { border-color: var(--line-strong); background: rgba(255,255,255,.025); color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: rgba(183,238,120,.35); background: rgba(183,238,120,.07); }
.button-quiet { border-color: rgba(183,238,120,.28); background: transparent; color: var(--green); }
.button-wide { width: 100%; }
.button-plus { font-size: 19px; font-weight: 400; line-height: 0; }

/* Sign-in */
.login-view {
    position: relative;
    display: grid;
    width: min(1120px, calc(100% - 48px));
    min-height: min(690px, calc(100vh - 60px));
    grid-template-columns: 1fr 1fr;
    margin: 30px auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(20, 27, 21, .94);
    box-shadow: 0 35px 100px rgba(0,0,0,.32);
}
.login-card { display: flex; flex-direction: column; justify-content: center; padding: 62px clamp(35px, 7vw, 88px); }
.brand-login { margin-bottom: 70px; }
.login-card .eyebrow { margin-bottom: 16px; }
.login-card h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(35px, 4.1vw, 51px);
    font-weight: 600;
    letter-spacing: -2.7px;
    line-height: 1.12;
}
.login-copy { max-width: 390px; margin: 19px 0 25px; color: #aab1a6; font-size: 13px; line-height: 1.75; }
.trust-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    max-width: 390px;
    padding: 14px 15px;
    border: 1px solid rgba(183,238,120,.17);
    border-radius: 9px;
    background: rgba(183,238,120,.045);
}
.trust-icon, .mini-shield {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(183,238,120,.17);
    color: var(--green);
    font-size: 12px;
}
.trust-note p { margin: 0; color: #a6afa2; font-size: 11px; line-height: 1.6; }
.trust-note strong { color: #e0ead9; font-weight: 600; }
.login-form { max-width: 390px; margin-top: 30px; }
.login-form label, .modal label, .settings-card label { display: block; margin-bottom: 8px; color: #d3dbd0; font-size: 11px; font-weight: 600; }
.login-form input, .modal input:not([type="checkbox"]), .modal textarea, .settings-card input {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #101610;
    color: var(--ink);
    font-size: 12px;
    transition: border-color .15s ease;
}
.login-form input:focus, .modal input:focus, .modal textarea:focus, .settings-card input:focus { border-color: rgba(183,238,120,.6); outline: none; }
.login-form .button { margin-top: 13px; }
.form-note { margin: 10px 0 0; color: #e1b4a9; font-size: 11px; line-height: 1.55; }
.login-foot { margin: 32px 0 0; color: #737d72; font-size: 9px; letter-spacing: .35px; }
.status-dot, .domain-dot { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(183,238,120,.5); }
.login-art {
    position: relative;
    display: flex;
    min-height: 610px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 25px 28px;
    border-left: 1px solid rgba(255,255,255,.05);
    background:
        radial-gradient(ellipse at 48% 49%, rgba(128, 198, 102, .16), transparent 29%),
        radial-gradient(ellipse at 49% 47%, rgba(93, 150, 103, .12), transparent 48%),
        linear-gradient(150deg, #1a251c 0%, #111a16 55%, #17201c 100%);
}
.login-art::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(223,241,213,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(223,241,213,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(transparent, black 28%, black 70%, transparent);
    opacity: .48;
}
.art-topline, .art-bottomline { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #78877a; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.art-orb { position: absolute; top: 50%; left: 50%; width: 225px; height: 225px; border: 1px solid rgba(179,231,141,.28); border-radius: 50%; transform: translate(-50%,-55%); box-shadow: 0 0 90px rgba(132,207,108,.14), inset 0 0 50px rgba(147,221,119,.08); }
.orb-core { position: absolute; inset: 30px; border: 1px solid rgba(180,237,136,.18); border-radius: 50%; background: radial-gradient(circle at 38% 30%, rgba(203,246,159,.28), rgba(99,165,101,.05) 62%, transparent 76%); box-shadow: inset 0 0 45px rgba(176,231,135,.13); }
.orb-ring { position: absolute; top: -13px; right: 12px; width: 44px; height: 44px; border: 1px solid rgba(183,238,120,.62); border-radius: 50%; background: rgba(183,238,120,.11); box-shadow: 0 0 24px rgba(183,238,120,.24); }
.orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(189,220,169,.14); border-radius: 50%; transform: translate(-50%,-55%) rotate(-26deg); }
.orbit-one { width: 340px; height: 134px; }
.orbit-two { width: 390px; height: 170px; transform: translate(-50%,-55%) rotate(54deg); }
.art-caption { position: relative; z-index: 1; margin: 0 0 38px 11px; }
.caption-index { color: #94a394; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.art-caption p { margin: 12px 0 18px; font-family: var(--display); font-size: clamp(31px, 3.8vw, 46px); font-weight: 500; letter-spacing: -2px; line-height: 1.13; }
.art-caption em { color: var(--green); font-style: normal; }
.caption-line { display: block; width: 51px; height: 2px; background: var(--green); }

/* Studio shell */
.app-layout { min-height: 100vh; }
.sidebar {
    position: fixed;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 224px;
    flex-direction: column;
    padding: 27px 16px 18px;
    border-right: 1px solid var(--line);
    background: #121812;
}
.sidebar .brand { padding: 0 8px; }
.workspace-label { margin: 50px 11px 13px; color: #667064; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; }
.main-nav { display: grid; gap: 5px; }
.nav-item {
    position: relative;
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #a2aaa0;
    cursor: pointer;
    font-size: 11px;
    text-align: left;
    transition: background .15s ease, color .15s ease;
}
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--ink); }
.nav-item.is-active { border-color: rgba(183,238,120,.09); background: rgba(183,238,120,.085); color: var(--green); }
.nav-icon { position: relative; display: inline-block; width: 15px; height: 15px; flex: 0 0 15px; color: currentColor; }
.icon-grid::before { position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 3px; content: ""; }
.icon-grid::after { position: absolute; top: 7px; right: 2px; left: 2px; border-top: 1px solid currentColor; content: ""; }
.icon-person::before { position: absolute; top: 1px; left: 5px; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.icon-person::after { position: absolute; right: 1px; bottom: 1px; left: 1px; height: 6px; border: 1px solid currentColor; border-radius: 7px 7px 4px 4px; content: ""; }
.icon-settings::before { position: absolute; inset: 2px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.icon-settings::after { position: absolute; top: 6px; left: 6px; width: 3px; height: 3px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.icon-wave::before { position: absolute; top: 4px; left: 2px; width: 3px; height: 7px; border-right: 1px solid currentColor; border-left: 1px solid currentColor; content: ""; }
.icon-wave::after { position: absolute; top: 1px; left: 7px; width: 5px; height: 13px; border-right: 1px solid currentColor; border-left: 1px solid currentColor; content: ""; }
.icon-shield::before { position: absolute; inset: 1px 2px; border: 1px solid currentColor; border-radius: 7px 7px 9px 9px; clip-path: polygon(0 0,100% 0,100% 67%,50% 100%,0 67%); content: ""; }
.nav-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; margin-left: auto; border-radius: 5px; background: rgba(255,255,255,.06); color: #a7afa3; font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { display: flex; align-items: flex-start; gap: 10px; margin: 0 3px 22px; padding: 13px 10px; border: 1px solid rgba(183,238,120,.12); border-radius: 8px; background: rgba(183,238,120,.035); }
.help-mark { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; align-items: center; justify-content: center; border: 1px solid rgba(183,238,120,.4); border-radius: 50%; color: var(--green); font-size: 10px; }
.sidebar-help p { margin: 0; color: #899385; font-size: 9px; line-height: 1.65; }
.sidebar-help strong { color: #c5d0bd; font-size: 10px; font-weight: 600; }
.logout-button { display: flex; width: 100%; min-height: 37px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #9da59b; cursor: pointer; font-size: 10px; text-align: left; }
.logout-button:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.logout-icon { display: inline-block; font-size: 15px; transform: rotate(45deg); }
.sidebar-version { margin: 20px 10px 0; color: #697367; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.sidebar-version .status-dot { width: 5px; height: 5px; margin-left: 0; }

.main-column { min-height: 100vh; margin-left: 224px; }
.topbar { position: sticky; z-index: 4; top: 0; display: flex; height: 65px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4.2vw, 65px); border-bottom: 1px solid var(--line); background: rgba(16,21,16,.91); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #758072; font-size: 10px; }
.breadcrumb strong { color: #d3dbd0; font-weight: 500; }
.crumb-divider { color: #485047; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.domain-chip { display: flex; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 20px; color: #a1ab9f; font-size: 9px; }
.domain-dot { width: 5px; height: 5px; margin: 0 7px 0 0; }
.avatar-admin { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid rgba(183,238,120,.3); border-radius: 50%; background: linear-gradient(145deg, #344232, #1d281e); color: var(--green); font-family: var(--display); font-size: 10px; font-weight: 700; }
.content { width: min(1160px, 100%); margin: 0 auto; padding: 42px clamp(24px, 4.2vw, 65px) 65px; }
.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.welcome-row .eyebrow, .page-heading .eyebrow { margin-bottom: 12px; }
.welcome-row h1, .page-heading h1 { margin: 0; font-family: var(--display); font-size: clamp(35px, 4.3vw, 50px); font-weight: 600; letter-spacing: -2.6px; line-height: 1.09; }
.welcome-copy { max-width: 560px; margin: 12px 0 0; color: #97a094; font-size: 12px; line-height: 1.7; }
.create-trigger { margin-bottom: 6px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 31px; }
.stat-card { position: relative; display: flex; min-height: 88px; align-items: center; gap: 13px; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(135deg, rgba(28,37,29,.9), rgba(20,27,21,.85)); }
.stat-icon { display: flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 9px; }
.stat-icon-green { background: rgba(183,238,120,.11); color: var(--green); }
.stat-icon-blue { background: rgba(164,211,255,.1); color: var(--blue); }
.stat-icon-lilac { background: rgba(207,184,255,.1); color: var(--lilac); }
.stat-icon .icon-person { transform: scale(.9); }
.stat-icon .icon-wave { transform: scale(.9); }
.stat-icon .icon-shield { transform: scale(.9); }
.stat-label { margin: 0 0 7px; color: #849080; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.stat-value { margin: 0; color: #e2e8de; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.35px; }
.stat-value span { color: #8e9889; font-family: var(--sans); font-size: 9px; font-weight: 400; letter-spacing: 0; }
.stat-spark { position: absolute; right: 14px; bottom: 14px; width: 35px; height: 19px; opacity: .6; }
.stat-spark::before { position: absolute; inset: 0; border-bottom: 1px solid currentColor; content: ""; clip-path: polygon(0 75%,20% 58%,38% 71%,57% 20%,77% 43%,100% 0,100% 100%,0 100%); }
.spark-green { color: var(--green); }.spark-blue { color: var(--blue); }.spark-lilac { color: var(--lilac); }

.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 39px 0 17px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.text-button { padding: 7px 0; border: 0; background: transparent; color: #aab3a5; cursor: pointer; font-size: 10px; }
.text-button:hover { color: var(--green); }
.text-button span { margin-left: 5px; color: var(--green); }
.clone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.clone-card { position: relative; min-height: 205px; overflow: hidden; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(150deg, rgba(29,38,30,.97), rgba(19,26,20,.96)); }
.clone-card::after { position: absolute; top: -50px; right: -50px; width: 130px; height: 130px; border: 1px solid rgba(183,238,120,.12); border-radius: 50%; box-shadow: 0 0 0 14px rgba(183,238,120,.018), 0 0 0 30px rgba(183,238,120,.012); content: ""; pointer-events: none; }
.clone-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.clone-avatar { display: flex; width: 39px; height: 39px; align-items: center; justify-content: center; border: 1px solid rgba(183,238,120,.22); border-radius: 12px; background: linear-gradient(145deg, rgba(183,238,120,.18), rgba(125,230,189,.07)); color: var(--green); font-family: var(--display); font-size: 16px; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid rgba(183,238,120,.17); border-radius: 20px; background: rgba(183,238,120,.07); color: var(--green); font-size: 8px; font-weight: 600; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.is-pending { border-color: rgba(231,189,114,.2); background: rgba(231,189,114,.07); color: var(--amber); }
.status-pill.is-error { border-color: rgba(255,142,131,.2); background: rgba(255,142,131,.07); color: var(--red); }
.status-pill.is-neutral { border-color: var(--line); background: rgba(255,255,255,.035); color: #b6bdb2; }
.clone-card h3 { position: relative; z-index: 1; margin: 14px 0 6px; color: #e5eae2; font-family: var(--display); font-size: 14px; font-weight: 600; }
.clone-style { position: relative; z-index: 1; display: -webkit-box; min-height: 34px; overflow: hidden; margin: 0; color: #8e998a; font-size: 10px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.clone-card-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-top: 15px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.06); }
.clone-date { color: #697467; font-size: 8px; }
.clone-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.small-action { display: inline-flex; min-height: 27px; align-items: center; padding: 0 9px; border: 1px solid rgba(183,238,120,.2); border-radius: 5px; background: rgba(183,238,120,.05); color: #bfeb9b; cursor: pointer; font-size: 8px; font-weight: 600; }
.small-action:hover { background: rgba(183,238,120,.13); }
.small-action.secondary-action { border-color: var(--line); background: rgba(255,255,255,.025); color: #aab3a6; }
.small-action.danger-action { border-color: rgba(255,142,131,.19); background: rgba(255,142,131,.04); color: #ff9a8f; }

.empty-state { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; padding: 32px; border: 1px dashed rgba(215,232,209,.16); border-radius: 10px; background: rgba(255,255,255,.012); text-align: center; }
.empty-orbit { position: relative; display: flex; width: 49px; height: 49px; align-items: center; justify-content: center; margin-bottom: 15px; border: 1px solid rgba(183,238,120,.28); border-radius: 50%; box-shadow: 0 0 26px rgba(183,238,120,.08); }
.empty-orbit::before, .empty-orbit::after { position: absolute; width: 17px; height: 17px; border: 1px solid rgba(183,238,120,.4); border-radius: 50%; content: ""; }
.empty-orbit::before { transform: translate(-8px,-2px); }.empty-orbit::after { transform: translate(8px,2px); }
.empty-orbit span { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.empty-state .eyebrow { margin-bottom: 7px; }
.empty-state h3 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; }
.empty-state p:not(.eyebrow) { max-width: 390px; margin: 9px 0 17px; color: #929d8f; font-size: 10px; line-height: 1.7; }

.workflow-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 35px; margin-top: 28px; padding: 25px 28px; border: 1px solid rgba(183,238,120,.13); border-radius: 10px; background: radial-gradient(ellipse at 5% 80%, rgba(183,238,120,.07), transparent 39%), linear-gradient(130deg, #1a241b, #151d17); }
.workflow-copy { align-self: center; }
.workflow-copy .eyebrow { margin-bottom: 12px; color: #a7b394; }
.workflow-copy h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.workflow-copy h2 span { color: var(--green); }
.workflow-copy p:not(.eyebrow) { max-width: 320px; margin: 11px 0 15px; color: #9ba697; font-size: 10px; line-height: 1.7; }
.workflow-copy .button { min-height: 34px; padding: 0 12px; font-size: 9px; }
.workflow-steps { align-self: center; border: 1px solid rgba(255,255,255,.06); border-radius: 8px; background: rgba(11,16,12,.28); }
.flow-step { display: grid; min-height: 57px; grid-template-columns: 27px 30px 1fr 15px; align-items: center; gap: 10px; padding: 9px 12px; }
.flow-step + .flow-step { border-top: 1px solid rgba(255,255,255,.06); }
.flow-number { color: #72816e; font-size: 8px; font-weight: 700; }
.flow-icon { position: relative; display: flex; width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: 7px; background: rgba(183,238,120,.08); color: var(--green); }
.flow-icon::before { font-size: 11px; }
.flow-video::before { content: ">"; font-size: 8px; }
.flow-spark::before { content: "+"; }
.flow-share::before { content: ">"; }
.flow-step strong { display: block; color: #d7dfd3; font-size: 9px; font-weight: 600; }
.flow-step small { display: block; margin-top: 4px; color: #82907f; font-size: 8px; }
.flow-arrow { color: #73806e; font-size: 12px; }

.page-heading { align-items: center; margin-bottom: 25px; }
.page-heading h1 { font-size: 38px; }
.replica-list { display: grid; gap: 10px; }
.replica-list .clone-card { min-height: auto; display: grid; grid-template-columns: 45px minmax(120px, .7fr) minmax(160px, 1.4fr) auto; align-items: center; gap: 14px; padding: 14px 16px; }
.replica-list .clone-card::after { display: none; }
.replica-list .clone-card-top { display: contents; }
.replica-list .clone-avatar { grid-row: 1; }
.replica-list .status-pill { grid-column: 4; grid-row: 1; justify-self: end; }
.replica-list .clone-card h3 { grid-column: 2; grid-row: 1; margin: 0; }
.replica-list .clone-style { grid-column: 3; grid-row: 1; min-height: 0; }
.replica-list .clone-card-bottom { grid-column: 1 / -1; margin-top: 0; padding-top: 10px; }
.replica-list .clone-card-bottom .clone-actions { margin-left: auto; }

/* Admin settings */
.settings-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.settings-card, .privacy-card { min-height: 300px; padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #1b241c, #151c16); }
.settings-card-heading { display: flex; align-items: center; gap: 12px; }
.settings-logo { display: flex; width: 37px; height: 37px; align-items: center; justify-content: center; border: 1px solid rgba(183,238,120,.23); border-radius: 11px; background: rgba(183,238,120,.08); color: var(--green); font-family: var(--display); font-size: 17px; font-weight: 700; }
.settings-card-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.settings-card-heading h2 { margin: 0; font-family: var(--display); font-size: 15px; font-weight: 600; }
.connection-status { margin-left: auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 20px; color: #9da79a; font-size: 8px; }
.connection-status.is-connected { border-color: rgba(183,238,120,.22); background: rgba(183,238,120,.06); color: var(--green); }
.settings-description { max-width: 470px; margin: 18px 0 21px; color: #929e90; font-size: 10px; line-height: 1.7; }
.settings-card form { max-width: 520px; }
.secret-input-wrap { position: relative; }
.settings-card .secret-input-wrap input { padding-right: 74px; }
.secret-lock { position: absolute; top: 50%; right: 11px; color: #778474; font-size: 7px; font-weight: 700; letter-spacing: .7px; transform: translateY(-50%); }
.field-help { margin: 7px 0 14px; color: #778275; font-size: 9px; line-height: 1.65; }
.settings-card .button { min-height: 37px; font-size: 10px; }
.privacy-card { position: relative; overflow: hidden; background: radial-gradient(ellipse at 90% 10%, rgba(183,238,120,.1), transparent 33%), #171f18; }
.privacy-icon { position: relative; display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid rgba(183,238,120,.25); border-radius: 13px; background: rgba(183,238,120,.07); }
.privacy-icon::before { width: 17px; height: 19px; border: 1px solid var(--green); border-radius: 8px 8px 10px 10px; clip-path: polygon(0 0,100% 0,100% 67%,50% 100%,0 67%); content: ""; }
.privacy-icon span { position: absolute; width: 5px; height: 5px; border: 1px solid var(--green); border-radius: 50%; }
.privacy-card .eyebrow { margin-bottom: 10px; }
.privacy-card h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.8px; line-height: 1.2; }
.privacy-list { display: grid; gap: 11px; margin: 19px 0 0; padding: 0; list-style: none; }
.privacy-list li { display: flex; align-items: center; gap: 10px; color: #abb5a7; font-size: 9px; }
.privacy-list span { color: #84967d; font-size: 8px; font-weight: 700; }
.settings-footnote { margin-top: 14px; color: #7f897b; font-size: 9px; }
.settings-footnote .status-dot { width: 5px; height: 5px; margin-left: 0; }

/* Dialogs and feedback */
.modal { width: min(640px, calc(100vw - 28px)); max-height: min(90vh, 840px); padding: 0; overflow: visible; border: 1px solid rgba(215,232,209,.16); border-radius: 13px; background: #171f18; color: var(--ink); box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.modal::backdrop { background: rgba(5,8,5,.75); backdrop-filter: blur(5px); }
.modal-card { position: relative; max-height: min(90vh, 840px); overflow-y: auto; padding: 28px; }
.modal-close { position: absolute; top: 17px; right: 17px; display: flex; width: 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.035); color: #aab3a7; cursor: pointer; font-size: 18px; line-height: 1; }
.modal-card > .eyebrow { margin: 0 35px 9px 0; }
.modal-card h2 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: -1.2px; }
.modal-intro { max-width: 530px; margin: 9px 0 20px; color: #9da79a; font-size: 10px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-full { grid-column: 1 / -1; }
.modal label { margin-bottom: 7px; }
.modal input:not([type="checkbox"]), .modal textarea { min-height: 41px; border-color: rgba(215,232,209,.12); background: #111811; font-size: 11px; }
.modal textarea { min-height: 95px; resize: vertical; line-height: 1.6; }
.modal input::placeholder, .modal textarea::placeholder, .login-form input::placeholder, .settings-card input::placeholder { color: #596456; }
.label-note { margin-left: 7px; color: #879283; font-size: 8px; font-weight: 400; }
.modal .field-help { margin: 6px 0 0; font-size: 8px; }
.consent-box { padding: 12px; border: 1px solid rgba(183,238,120,.19); border-radius: 8px; background: rgba(183,238,120,.045); }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 10px; margin: 0 !important; color: #aeb8a9 !important; font-size: 9px !important; font-weight: 400 !important; line-height: 1.6; cursor: pointer; }
.checkbox-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { position: relative; display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; border: 1px solid rgba(183,238,120,.4); border-radius: 4px; background: #101710; }
.checkbox-label input:checked + .custom-check { background: var(--green); }
.checkbox-label input:checked + .custom-check::after { position: absolute; top: 1px; left: 4px; width: 4px; height: 8px; border: solid #182012; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.checkbox-label input:focus-visible + .custom-check { outline: 2px solid var(--green); outline-offset: 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.modal-actions .button { min-height: 36px; font-size: 10px; }
.modal-disclosure { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: #849180; font-size: 8px; line-height: 1.6; }
.mini-shield { width: 15px; height: 15px; flex-basis: 15px; font-size: 9px; }
.share-modal { width: min(540px, calc(100vw - 28px)); }
.share-copy-row { display: flex; gap: 8px; }
.share-copy-row input { min-width: 0; font-size: 9px !important; }
.share-copy-row .button { flex: 0 0 auto; min-height: 39px; font-size: 9px; }
.obs-tip { display: flex; gap: 11px; margin-top: 15px; padding: 12px; border: 1px solid rgba(164,211,255,.15); border-radius: 8px; background: rgba(164,211,255,.04); }
.obs-mark { display: flex; width: 32px; height: 24px; flex: 0 0 32px; align-items: center; justify-content: center; border: 1px solid rgba(164,211,255,.26); border-radius: 5px; color: var(--blue); font-size: 8px; font-weight: 700; }
.obs-tip p { margin: 0; color: #9da9b1; font-size: 8px; line-height: 1.65; }
.obs-tip strong { color: #d0deea; font-weight: 600; }
.toast { position: fixed; z-index: 20; right: 23px; bottom: 22px; max-width: min(410px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid rgba(183,238,120,.22); border-radius: 8px; background: #202a21; color: #dce8d7; box-shadow: 0 14px 45px rgba(0,0,0,.34); font-size: 10px; line-height: 1.55; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: rgba(255,142,131,.27); background: #2b211f; color: #ffd1c9; }
.share-error-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.share-error-card { width: min(480px, 100%); padding: 34px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); }
.share-error-mark { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.share-error-card h1 { margin: 20px 0 10px; font-family: var(--display); font-size: 24px; font-weight: 600; }
.share-error-card p { color: #a7b09f; font-size: 12px; line-height: 1.7; }

@media (max-width: 1050px) {
    .content { padding-right: 30px; padding-left: 30px; }
    .topbar { padding-right: 30px; padding-left: 30px; }
    .clone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workflow-card { gap: 20px; padding: 21px; }
}
@media (max-width: 800px) {
    .login-view { min-height: 0; grid-template-columns: 1fr; margin: 16px auto; }
    .login-card { padding: 35px clamp(25px, 8vw, 60px); }
    .brand-login { margin-bottom: 45px; }
    .login-art { min-height: 320px; border-top: 1px solid var(--line); border-left: 0; }
    .art-orb { width: 160px; height: 160px; }
    .orbit-one { width: 265px; height: 105px; }.orbit-two { width: 295px; height: 130px; }
    .art-caption { margin-bottom: 18px; }
    .sidebar { width: 65px; align-items: center; padding: 20px 7px 13px; }
    .sidebar .brand { padding: 0; }
    .sidebar .brand > span:last-child, .workspace-label, .sidebar-help, .sidebar-version { display: none; }
    .main-nav { width: 100%; margin-top: 45px; }
    .nav-item { width: 48px; height: 43px; justify-content: center; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
    .nav-item .nav-icon { color: #a2aaa0; }
    .nav-item.is-active .nav-icon { color: var(--green); }
    .nav-count { display: none; }
    .sidebar-bottom { width: 100%; }
    .logout-button { justify-content: center; padding: 0; font-size: 0; }
    .logout-icon { color: #a2aaa0; font-size: 15px; }
    .main-column { margin-left: 65px; }
    .topbar { height: 57px; padding: 0 18px; }
    .domain-chip { padding: 7px 8px; font-size: 8px; }
    .topbar-right { gap: 8px; }
    .content { padding: 29px 18px 45px; }
    .welcome-row { align-items: flex-start; }
    .welcome-row .button { min-height: 36px; padding: 0 10px; font-size: 9px; }
    .welcome-row h1 { font-size: 38px; }
    .welcome-copy { font-size: 10px; }
    .stats-row { grid-template-columns: 1fr; gap: 8px; margin-top: 23px; }
    .stat-card { min-height: 70px; }
    .clone-grid { grid-template-columns: 1fr; }
    .workflow-card { grid-template-columns: 1fr; }
    .page-heading { align-items: flex-start; }
    .page-heading h1 { font-size: 33px; }
    .settings-grid { grid-template-columns: 1fr; }
    .replica-list .clone-card { grid-template-columns: 42px 1fr auto; gap: 9px; }
    .replica-list .clone-style { grid-column: 2 / -1; grid-row: 2; }
    .replica-list .status-pill { grid-column: 3; grid-row: 1; }
    .replica-list .clone-card-bottom { grid-row: 3; }
}
@media (max-width: 480px) {
    .login-view { width: calc(100% - 20px); margin: 10px auto; }
    .login-card { padding: 30px 22px; }
    .login-card h1 { font-size: 39px; }
    .brand-login { margin-bottom: 38px; }
    .topbar { padding: 0 12px; }
    .breadcrumb { gap: 6px; font-size: 9px; }
    .domain-chip { max-width: 155px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .content { padding-right: 12px; padding-left: 12px; }
    .welcome-row { flex-direction: column; align-items: stretch; gap: 15px; }
    .welcome-row .button { align-self: flex-start; }
    .welcome-row h1 { font-size: 35px; }
    .section-heading { margin-top: 30px; }
    .workflow-card { padding: 19px 15px; }
    .flow-step { grid-template-columns: 20px 27px 1fr 12px; gap: 7px; padding: 8px; }
    .page-heading { flex-direction: column; align-items: flex-start; }
    .page-heading .button { min-height: 37px; }
    .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: 1; }
    .modal-card { padding: 24px 18px; }
    .modal-card h2 { font-size: 24px; }
    .share-copy-row { flex-direction: column; }
    .share-copy-row .button { width: 100%; }
}
