/* ==========================================================================
   SnapBox design system
   Tokens lifted from plans/design/SnapBox.dc.html. Two typefaces do all the
   work: Space Grotesk for prose and numbers, JetBrains Mono for anything that
   is data — ids, sizes, labels, status. That split is the whole look.
   ========================================================================== */

:root {
    --bg:            #08090A;
    --bg-bar:        #0B0C0E;
    --bg-card:       #0C0D10;
    --bg-card-alt:   #0A0B0D;
    --bg-inset:      #111216;
    --bg-hover:      #141619;
    --bg-well:       #0D0E11;

    --line:          #1B1E23;
    --line-2:        #1E2126;
    --line-3:        #24282E;
    --line-4:        #2A2E34;

    --accent:        #FFB03A;
    --accent-hi:     #FFC663;
    --accent-ink:    #0A0B0C;
    --accent-bg:     #12100C;
    --accent-line:   #3B3227;

    --text:          #EDEEF0;
    --text-2:        #C9CED5;
    --text-3:        #9AA0A8;
    --text-4:        #8B9099;
    --text-5:        #6E747D;
    --text-6:        #5E646D;
    --text-dim:      #464B53;

    --ok:            #47D18F;
    --bad:           #FF6B6B;

    --r-xs: 4px;
    --r-sm: 6px;
    --r:    9px;
    --r-md: 12px;
    --r-lg: 13px;

    --sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --sidebar-w: 220px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
}

body {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

input, select, textarea, button { font-family: inherit; font-size: inherit; color: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }

::selection { background: var(--accent); color: var(--accent-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: #25282D; border-radius: var(--r-sm); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }

@keyframes sbPulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes sbRise  { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@keyframes sbSpin  { to { transform: rotate(360deg) } }

/* --------------------------------------------------------------- type ---- */

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }

.h-page   { font-size: 30px; line-height: 1.15; }
.h-hero   { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; }
.h-section{ font-size: 26px; line-height: 1.2; }
.h-card   { font-size: 17px; }

.lede     { color: var(--text-4); font-size: 15px; margin: 8px 0 0; max-width: 62ch; }
.muted    { color: var(--text-5); }
.dim      { color: var(--text-6); }

/* Small caps mono label — the workhorse of this design. */
.label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-6);
}
.label-lg { font-size: 11px; letter-spacing: .16em; }
.mono     { font-family: var(--mono); font-size: 13px; }
.mono-sm  { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.num      { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; }

.accent { color: var(--accent); }
.ok     { color: var(--ok); }
.bad    { color: var(--bad); }

/* ------------------------------------------------------------- layout ---- */

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.stack   > * + * { margin-top: 16px; }
.stack-lg> * + * { margin-top: 28px; }
.row  { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.spacer { flex: 1; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .h-hero { font-size: 36px; }
    .h-page { font-size: 24px; }
}

/* ------------------------------------------------------------ surface ---- */

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
}
.card-flush { padding: 0; overflow: hidden; }
.card-accent { border-color: var(--accent); }
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-body { padding: 20px; }
.card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid var(--line);
}

.well {
    background: var(--bg-well);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 16px;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------- stat ---- */

.stat {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
}
.stat .label { display: block; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-note  { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-6); margin-top: 8px; }
.stat-note.ok  { color: var(--ok); }
.stat-note.bad { color: var(--bad); }

/* ------------------------------------------------------------ buttons ---- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--r);
    padding: 10px 18px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); }

.btn-outline { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--line-4); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-4); }
.btn-ghost:hover { background: var(--bg-inset); color: var(--text); }

.btn-danger { background: transparent; border-color: #4A2B2B; color: var(--bad); }
.btn-danger:hover { background: #1A1011; }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Mono action button used inside data tables. */
.btn-cell {
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em; font-weight: 700;
    text-transform: uppercase; padding: 7px 12px; border-radius: var(--r-sm);
    background: transparent; border: 1px solid var(--line-3); color: var(--text-2);
    cursor: pointer; white-space: nowrap;
}
.btn-cell:hover { border-color: var(--line-4); background: var(--bg-hover); color: var(--text); }
.btn-cell.is-gated { border-color: var(--accent-line); color: var(--accent); background: var(--accent-bg); line-height: 1.25; }
.btn-cell.is-gated:hover { background: #1B160F; border-color: var(--accent); }

/* ------------------------------------------------------------- badges ---- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em; font-weight: 700;
    text-transform: uppercase;
    padding: 4px 9px; border-radius: var(--r-xs);
    border: 1px solid var(--line-3); color: var(--text-4); background: transparent;
}
.badge-accent  { border-color: var(--accent-line); color: var(--accent); background: var(--accent-bg); }
.badge-solid   { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.badge-ok      { border-color: #1E3B2E; color: var(--ok); background: #0C1410; }
.badge-bad     { border-color: #40282A; color: var(--bad); background: #150F10; }
.badge-quiet   { border-color: var(--line-2); color: var(--text-6); }

/* Leading status dot, coloured by the badge modifier. */
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dot-live { animation: sbPulse 2s ease-in-out infinite; }

/* -------------------------------------------------------------- chips ---- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
    padding: 7px 12px; border-radius: 7px;
    border: 1px solid var(--line-3); background: var(--bg-well); color: var(--text-4);
    cursor: pointer; transition: border-color .15s, color .15s;
}
.chip:hover { border-color: #3A3F47; color: var(--text); }
.chip.is-on { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); }

/* Segmented control (prototype top bar, table filters). */
.segment { display: inline-flex; gap: 4px; background: var(--bg-inset); border: 1px solid #1F2227; border-radius: var(--r); padding: 3px; }
.segment button {
    border: 0; background: transparent; cursor: pointer;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; font-weight: 500;
    color: var(--text-4); padding: 5px 12px; border-radius: var(--r-sm);
    transition: background .15s, color .15s;
}
.segment button:hover { background: var(--bg-hover); color: var(--text); }
.segment button.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* -------------------------------------------------------------- forms ---- */

.field { display: block; margin-bottom: 16px; }
.field > .label { display: block; margin-bottom: 7px; }
.field-hint { font-size: 12px; color: var(--text-6); margin-top: 6px; }
.field-error { font-size: 12px; color: var(--bad); margin-top: 6px; }

.input, .select, .textarea {
    width: 100%;
    background: var(--bg-inset);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    padding: 11px 14px;
    color: var(--text);
    transition: border-color .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--line-4); }
.input.has-error { border-color: #4A2B2B; }
.textarea { min-height: 120px; resize: vertical; }
.input-mono { font-family: var(--mono); font-size: 13px; }

/* Terminal-style search box from the landing hero. */
.search-shell {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-inset);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 4px 4px 4px 16px;
}
.search-shell .caret { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.search-shell input {
    flex: 1; background: transparent; border: 0; padding: 12px 0;
    font-family: var(--mono); font-size: 14px;
}
.search-shell input::placeholder { color: var(--text-dim); }

.toggle {
    position: relative; display: inline-block; width: 42px; height: 24px;
    background: var(--line-3); border-radius: 999px; cursor: pointer; transition: background .15s;
    flex: none;
}
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.toggle .knob {
    position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
    background: var(--text-4); border-radius: 50%; transition: transform .15s, background .15s;
    pointer-events: none;
}
.toggle:has(input:checked) { background: var(--accent); }
.toggle:has(input:checked) .knob { transform: translateX(18px); background: var(--accent-ink); }

/* Settings row: label block left, control right. */
.setting {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.setting:last-child { border-bottom: 0; }
.setting-text { flex: 1; min-width: 0; }
.setting-name { font-weight: 600; font-size: 14px; }
.setting-help { font-size: 12px; color: var(--text-6); margin-top: 3px; }
.setting-control { flex: none; width: 180px; }
.setting-control .input { text-align: right; }

/* -------------------------------------------------------------- table ---- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-6); font-weight: 500; text-align: left;
    padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th.right, .table td.right { text-align: right; }
.table td { padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-card-alt); }

/* Primary cell: mono name over a dim mono meta line. */
.cell-title { font-family: var(--mono); font-size: 13px; color: var(--text); }
.cell-meta  { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--text-6); margin-top: 4px; }
.cell-size  { font-family: var(--mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.cell-dim   { font-family: var(--mono); font-size: 12px; color: var(--text-5); white-space: nowrap; }

.table-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-6);
}

.pager { display: flex; gap: 6px; }

/* -------------------------------------------------------------- empty ---- */

.empty { padding: 56px 24px; text-align: center; }
.empty-title { font-size: 16px; font-weight: 600; }
.empty-text  { color: var(--text-5); font-size: 13px; margin: 6px 0 18px; }

/* ---------------------------------------------------------- progress ---- */

.progress { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.progress.is-ok  > span { background: var(--ok); }
.progress.is-bad > span { background: var(--bad); }

/* Bar chart — pure CSS, values come through inline height. */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; background: #1E2126; border-radius: var(--r-xs); min-height: 3px; }
.chart-col.is-peak .chart-bar { background: var(--accent); }
.chart-x { font-family: var(--mono); font-size: 9px; color: var(--text-dim); }

/* ------------------------------------------------------------- client ---- */

.site-head {
    position: sticky; top: 0; z-index: 60;
    background: rgba(8, 9, 10, .86); backdrop-filter: blur(14px);
    border-bottom: 1px solid #17191D;
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 22px; height: 22px; border-radius: 5px;
    background: var(--accent); color: var(--accent-ink);
    display: grid; place-items: center; font-weight: 700; font-size: 13px;
}

.site-nav { display: flex; gap: 2px; }
.site-nav a {
    padding: 8px 14px; border-radius: 8px;
    color: var(--text-4); font-size: 14px; font-weight: 500;
    transition: background .15s, color .15s;
}
.site-nav a:hover { background: #121417; color: var(--text); }
.site-nav a.is-on { background: #141619; color: var(--text); }

/* Header auth actions match the prototype's exact sizing. */
.nav-signin { padding: 9px 12px; font-size: 14px; font-weight: 500; border-radius: 8px; background: transparent; color: #B4B9C0; border: 0; }
.nav-signin:hover { color: var(--text); background: transparent; }
.nav-cta { padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: 8px; }

/* Signed-in header: neutral plan badge + avatar/name chip → panel. */
.acct-plan {
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-4); border: 1px solid var(--line-4); padding: 6px 10px; border-radius: 7px;
    white-space: nowrap;
}
.acct-chip {
    display: flex; align-items: center; gap: 9px;
    border: 1px solid var(--line-4); background: #101215;
    padding: 6px 12px 6px 6px; border-radius: 8px;
    transition: border-color .15s;
}
.acct-chip:hover { border-color: #3A3F47; }
.acct-avatar {
    width: 24px; height: 24px; border-radius: 6px; flex: none;
    background: #22262C; color: var(--accent);
    display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.acct-name { font-size: 13px; font-weight: 500; color: var(--text); }

@media (max-width: 640px) {
    .acct-plan { display: none; }
    .acct-name { display: none; }
}

.site-foot { border-top: 1px solid #17191D; margin-top: 24px; }
.foot-top {
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
    padding: 44px 0;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-links a { color: var(--text-5); font-size: 13px; }
.foot-links a:hover { color: var(--text-2); }
.foot-copy { font-family: var(--mono); font-size: 11px; color: #4E545C; }

.age-note {
    padding: 0 0 40px;
    color: var(--text-6); font-size: 12px; line-height: 1.6;
}
.age-note .badge { margin-right: 8px; }

/* -------------------------------------------------------------- panel ---- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex: none;
    background: var(--bg-bar); border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.sidebar-head { padding: 20px 18px; display: flex; align-items: center; gap: 10px; }
.sidebar-section { padding: 6px 18px 10px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 0 10px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 2px;
    color: var(--text-4); font-size: 14px;
    transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-nav a.is-on { background: var(--bg-hover); color: var(--text); font-weight: 600; }
.sidebar-nav a .bullet { width: 5px; height: 5px; border-radius: 50%; background: var(--line-4); flex: none; }
.sidebar-nav a.is-on .bullet { background: var(--accent); }
.sidebar-nav a .count { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-6); }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--line); }
.user-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px;
}
.avatar {
    width: 30px; height: 30px; border-radius: var(--r-sm); flex: none;
    background: var(--bg-inset); border: 1px solid var(--line-3);
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 10px; color: var(--text-4);
}
.user-name { font-size: 13px; font-weight: 600; color: var(--accent); line-height: 1.3; }
.user-meta { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-6); }

.main { flex: 1; min-width: 0; padding: 34px 36px 80px; }
.page-head { margin-bottom: 22px; }
.page-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 26px; }

.plan-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r);
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-2);
}
.plan-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; z-index: 90; }
    .sidebar.is-open { transform: none; }
    .main { padding: 24px 18px 60px; }
}

/* -------------------------------------------------------------- misc ---- */

.flash { border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; font-size: 13px; border: 1px solid; }
.flash-error   { border-color: #40282A; background: #150F10; color: #FFA5A5; }
.flash-success { border-color: #1E3B2E; background: #0C1410; color: #8FE7BE; }
.flash-notice  { border-color: var(--line-3); background: var(--bg-inset); color: var(--text-2); }

.upsell {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    border: 1px solid var(--accent-line); background: var(--accent-bg);
    border-radius: var(--r-lg); padding: 16px 20px;
}
.upsell-text { font-size: 14px; color: var(--text-2); }

.quota-pill {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid var(--line-3); background: var(--bg-well);
    padding: 7px 13px; border-radius: 7px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
    color: var(--text-3);
}
.quota-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.quota-pill.is-low { color: var(--accent); border-color: var(--accent-line); }
.quota-pill.is-low .dot { background: var(--accent); }
.quota-pill.is-out { color: var(--bad); }
.quota-pill.is-out .dot { background: var(--bad); }

.code-display {
    font-family: var(--mono); font-size: 22px; letter-spacing: .14em; font-weight: 700;
    color: var(--accent); background: var(--accent-bg);
    border: 1px solid var(--accent-line); border-radius: var(--r);
    padding: 16px 20px; text-align: center; user-select: all;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Age gate — blocking, so it owns the viewport. */
.age-gate {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(8, 9, 10, .97);
    display: grid; place-items: center; padding: 24px;
}
.age-gate .card { max-width: 460px; animation: sbRise .25s ease-out; }
.age-gate .card-title { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.age-gate .card-text { color: var(--text-5); font-size: 13px; margin: 0 0 18px; }
.age-gate .btn + .btn { margin-top: 8px; }

/* ==========================================================================
   CLIENT — LANDING
   Values transcribed 1:1 from plans/design/SnapBox.dc.html.
   ========================================================================== */

/* Large marketing buttons (hero, sxcode band, cta). */
.btn-lg   { font-size: 15px; padding: 14px 24px; border-radius: 10px; }
.btn-line { background: transparent; border: 1px solid var(--line-4); color: var(--text); }
.btn-line:hover { border-color: #464B53; background: transparent; color: var(--text); }

/* Section rhythm: each block sits inside .wrap with this top gap. */
.section     { padding-top: clamp(64px, 8vw, 110px); }
.section-last{ padding-bottom: clamp(60px, 7vw, 100px); }
.kicker      { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 620px; margin: 0 0 14px; }
.section-lede  { font-size: 16px; line-height: 1.6; color: var(--text-4); max-width: 560px; margin: 0 0 48px; }

/* Hero -------------------------------------------------------------------- */
.hero {
    display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
    padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid var(--line-3); background: #0F1114;
    padding: 6px 12px; border-radius: 999px; margin-bottom: 26px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text-3);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: sbPulse 2s infinite; }
.hero-title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 20px; }
.hero-title .muted2 { color: #7B818A; }
.hero-lede  { font-size: 17px; line-height: 1.6; color: var(--text-3); max-width: 480px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Terminal preview card */
.terminal { border: 1px solid var(--line-2); background: var(--bg-well); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #191C20; background: var(--bg-card-alt); }
.terminal-bar .tdot { width: 9px; height: 9px; border-radius: 50%; background: #26292E; }
.terminal-url { font-family: var(--mono); font-size: 11px; color: var(--text-6); margin-left: 8px; }
.terminal-body { padding: 16px; }
.terminal-input { display: flex; align-items: center; gap: 10px; border: 1px solid #262A30; background: #111316; border-radius: 9px; padding: 11px 14px; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; }
.terminal-input .caret { color: var(--accent); }
.terminal-input .typed { color: var(--text-2); }
.terminal-input .cursor { width: 1px; height: 15px; background: var(--accent); animation: sbPulse 1.1s infinite; }
.terminal-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; color: inherit; transition: background .15s; }
.terminal-row:hover { background: #131519; color: inherit; }
.terminal-thumb { width: 34px; height: 22px; border-radius: 3px; flex-shrink: 0; background: repeating-linear-gradient(115deg, #1C1F24 0 5px, #15181C 5px 10px); }
.terminal-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: #DDE1E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-size { font-family: var(--mono); font-size: 11px; color: var(--text-5); }
.terminal-tag  { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; border: 1px solid #262A30; color: var(--text-4); }
.terminal-tag.is-premium { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); }

/* Stat strip -------------------------------------------------------------- */
.stat-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card);
}
.stat-strip-cell { padding: 24px 26px; border-right: 1px solid var(--line); }
.stat-strip-cell:last-child { border-right: 0; }
.stat-strip-value { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.stat-strip-key   { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); }

/* How-it-works feature cards --------------------------------------------- */
/* Fixed 3-up so the six cards read as two even rows of three, never a ragged
   auto-fit row. Collapses to 2-up then 1-up on narrow viewports. */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { position: relative; border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 26px; overflow: hidden; transition: border-color .2s, background .2s, transform .2s; }
.feature-card:hover { border-color: var(--accent-line); background: #101114; transform: translateY(-3px); }
.feature-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.feature-tag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); background: var(--accent); padding: 3px 7px; border-radius: 4px; }
.feature-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--text-6); }
.feature-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 10px; }
.feature-body { font-size: 14px; line-height: 1.62; color: var(--text-4); margin: 0 0 20px; }
.feature-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #191C20; padding-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.feature-meta .k { color: var(--text-6); }
.feature-meta .v { color: var(--accent); }

/* SXCode band ------------------------------------------------------------- */
.sxband { border: 1px solid var(--line); background: linear-gradient(180deg, #0E1013, var(--bg-card-alt)); border-radius: 16px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.sxband h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 0 0 14px; }
.sxband p  { font-size: 15px; line-height: 1.65; color: var(--text-4); max-width: 460px; margin: 0 0 26px; }
.sxcard { border: 1px solid #262A30; background: var(--bg-bar); border-radius: 12px; padding: 26px; }
.sxcard-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--text-6); margin-bottom: 14px; }
.sxcard-code  { font-family: var(--mono); font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 22px; }
.sxdots { display: flex; gap: 5px; margin-bottom: 12px; }
.sxdot  { flex: 1; height: 6px; border-radius: 3px; background: #22262C; }
.sxdot.is-free { background: var(--accent); }
.sxcard-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-5); }

/* FAQ (native <details> accordion) --------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 22px 4px; cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item:hover { background: var(--bg-card); }
.faq-n { font-family: var(--mono); font-size: 11px; color: #4E545C; }
.faq-text { flex: 1; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.faq-sign { font-family: var(--mono); font-size: 18px; color: var(--accent); line-height: 1; }
.faq-item[open] .faq-sign-plus { display: none; }
.faq-item:not([open]) .faq-sign-minus { display: none; }
.faq-a { margin: -6px 0 22px 41px; max-width: 660px; font-size: 15px; line-height: 1.65; color: var(--text-4); animation: sbRise .2s ease; }

/* Closing CTA ------------------------------------------------------------- */
.cta { border: 1px solid var(--line); background: var(--bg-card); border-radius: 16px; padding: clamp(32px, 5vw, 64px); text-align: center; }
.cta h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 0 0 14px; }
.cta p  { font-size: 16px; line-height: 1.6; color: var(--text-4); max-width: 460px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .sxband { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CLIENT — SEARCH
   ========================================================================== */

.search-page { padding: 40px 0 90px; }
.search-h1  { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; font-weight: 700; margin: 0 0 8px; }
.search-sub { font-size: 15px; color: var(--text-4); margin: 0 0 26px; }

.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-bottom: 16px; }
.search-field { flex: 1; min-width: 280px; display: flex; align-items: center; gap: 12px; border: 1px solid #262A30; background: var(--bg-well); border-radius: 10px; padding: 0 16px; transition: border-color .15s; }
.search-field:focus-within { border-color: #3A3F47; }
.search-field .caret { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.search-field input { flex: 1; border: 0; background: transparent; padding: 15px 0; font-family: var(--mono); font-size: 14px; }
.search-field input::placeholder { color: var(--text-dim); }
.btn-search { padding: 0 28px; font-size: 15px; font-weight: 600; border-radius: 10px; }

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }

/* Results table (CSS grid, matching the prototype column template) */
.rtable { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card-alt); }
.rtable-scroll { overflow-x: auto; }
.rtable-inner  { min-width: 700px; }
.rrow { display: grid; grid-template-columns: minmax(200px, 2.2fr) 88px 104px 132px 128px; gap: 16px; align-items: center; }
.rhead { padding: 13px 20px; background: var(--bg-well); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); }
.rhead .right { text-align: right; }
.rrow-body { padding: 14px 20px; border-bottom: 1px solid var(--bg-hover); cursor: pointer; transition: background .15s; color: inherit; }
.rrow-body:hover { background: #101114; color: inherit; }
.r-title { font-family: var(--mono); font-size: 13px; color: #DDE1E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-meta  { font-family: var(--mono); font-size: 11px; color: var(--text-6); margin-top: 4px; }
.r-size  { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.r-cell  { font-family: var(--mono); font-size: 12px; color: var(--text-5); }
.r-action { display: flex; justify-content: flex-end; }

/* Per-row download / gate buttons */
.dl-btn { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; font-weight: 700; padding: 8px 14px; border-radius: 7px; cursor: pointer; border: 1px solid #262A30; background: transparent; color: var(--text-2); transition: border-color .15s, color .15s; white-space: nowrap; }
.dl-btn:hover { border-color: var(--ok); color: var(--ok); }
.dl-btn.is-gated { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); padding: 8px 11px; }
.dl-btn.is-gated:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.rtable-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-6); }

/* Daily-limit overlay over blurred placeholder rows */
.rtable.is-blurred .rtable-inner { filter: blur(5px); opacity: .5; pointer-events: none; }
.rrow-ghost { padding: 15px 20px; border-bottom: 1px solid var(--bg-hover); }
.rrow-ghost .ghost { height: 12px; border-radius: 3px; background: #15181C; }
.search-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(8, 9, 10, .72); padding: 24px; text-align: center; }
.search-overlay-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--accent); }
.search-overlay-title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; max-width: 380px; }
.search-overlay-text  { font-size: 14px; color: var(--text-4); max-width: 400px; }
.search-overlay-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Empty result state, styled like a table body */
.search-empty { padding: 64px 24px; text-align: center; }
.search-empty-title { font-size: 16px; font-weight: 600; }
.search-empty-text  { color: var(--text-5); font-size: 13px; margin: 6px auto 18px; max-width: 440px; }

/* ==========================================================================
   CLIENT — AUTH
   Sign-in / create-account / reset follow the prototype's two-column pAuth and
   pReset screens. The centred .auth-result card is used only by the error pages.
   ========================================================================== */

.auth-card  { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.auth-title { font-size: 20px; font-weight: 700; margin: 10px 0 8px; }
.auth-lede  { color: var(--text-5); font-size: 13px; margin: 0 0 22px; }
.auth-result { max-width: 440px; margin: 0 auto; padding: 80px 24px; }
.auth-result .auth-card { text-align: center; padding: 36px; }
.auth-result .auth-title { font-size: 17px; }

/* Two-column auth / reset layout (matches the prototype's pAuth / pReset). */
.auth-split {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 56px; align-items: center; padding: 56px 24px 90px;
}
.auth-aside h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; font-weight: 700; line-height: 1.05; margin: 0 0 16px; }
.auth-aside-lede { font-size: 16px; line-height: 1.65; color: var(--text-4); max-width: 420px; margin: 0 0 30px; }
.auth-perks { display: flex; flex-direction: column; gap: 14px; }
.auth-perk  { border-left: 1px solid var(--line-2); padding-left: 16px; }
.auth-perk-t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.auth-perk-d { font-size: 13px; line-height: 1.55; color: var(--text-4); }

.auth-panel {
    border: 1px solid var(--line); background: var(--bg-card); border-radius: 14px;
    padding: clamp(24px, 3vw, 34px); max-width: 460px; width: 100%; justify-self: end;
}
.auth-panel h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.auth-panel-sub { font-size: 13.5px; line-height: 1.6; color: var(--text-4); margin: 0 0 24px; }

.auth-tabs { display: flex; gap: 4px; background: var(--bg-card-alt); border: 1px solid var(--line-2); border-radius: 9px; padding: 4px; margin-bottom: 26px; }
.auth-tab  { flex: 1; text-align: center; padding: 10px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #767C85; }
.auth-tab:hover { color: var(--text); }
.auth-tab.is-on { background: var(--line); color: var(--text); font-weight: 600; }

.auth-fields { display: flex; flex-direction: column; gap: 16px; }
.auth-flabel { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 8px; }
.auth-input  { width: 100%; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 9px; padding: 13px 14px; font-size: 14px; color: var(--text); transition: border-color .15s; }
.auth-input::placeholder { color: var(--text-dim); }
.auth-input:hover { border-color: #3A3F47; }
.auth-input:focus { border-color: var(--accent); }

.auth-forgot { display: flex; justify-content: flex-end; margin-top: 12px; }
.auth-forgot a { font-size: 13px; font-weight: 500; }
.auth-submit { width: 100%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; padding: 15px; border-radius: 10px; cursor: pointer; margin-top: 24px; transition: background .15s; }
.auth-submit:hover { background: var(--accent-hi); }
.auth-legal { font-size: 12px; line-height: 1.6; color: var(--text-6); text-align: center; margin: 16px 0 0; }
.auth-back { width: 100%; margin-top: 10px; }

/* Success panel (password updated / verified). */
.auth-done { text-align: center; padding: 12px 0; }
.auth-check { width: 44px; height: 44px; border-radius: 12px; background: var(--ok); color: var(--accent-ink); font-size: 20px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 20px; }
.auth-done h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.auth-done p  { font-size: 13.5px; line-height: 1.6; color: var(--text-4); max-width: 320px; margin: 0 auto 24px; }

/* Feedback rendered inside the panel (see partials/auth-flash). Tighter than the
   full-width page banner so it sits naturally under the tabs. */
.auth-flash { margin-bottom: 20px; }
.auth-flash .flash { margin-bottom: 10px; }
.auth-flash .flash:last-child { margin-bottom: 0; }

/* Unverified-email nudge with an inline resend action. */
.auth-resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: var(--text-4); margin-bottom: 20px; }
.auth-resend-link { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.auth-resend-link:hover { text-decoration: underline; }

/* Cloudflare Turnstile widget — sits between the fields and the submit button. */
.auth-turnstile { margin-top: 20px; }

@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; gap: 32px; }
    .auth-panel { justify-self: stretch; max-width: none; }
}

.pad-flash { padding-top: 20px; }

/* Debug stack trace on the standalone 500 page. */
.error-trace { margin-top: 24px; overflow: auto; font-family: var(--mono); font-size: 12px; color: var(--text-4); white-space: pre; }

/* ==========================================================================
   CLIENT — PREMIUM PRICING
   Values transcribed 1:1 from plans/design/SnapBox.dc.html (pPricing).
   ========================================================================== */

.price-page { padding: 48px 0 90px; }
.price-hero { text-align: center; margin-bottom: 44px; }
.price-hero .kicker { margin-bottom: 16px; }
.price-h1   { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 14px; }
.price-lede { max-width: 520px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--text-4); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.price-card {
    position: relative; display: flex; flex-direction: column;
    border: 1px solid var(--line); background: var(--bg-card); border-radius: 14px; padding: 26px;
    transition: border-color .2s, transform .2s;
}
.price-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.price-card.is-hot { border-color: var(--accent); background: #0E1013; }
.price-card.is-hot:hover { transform: none; }
.price-badge {
    position: absolute; top: -10px; left: 26px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em; font-weight: 700;
    color: var(--accent-ink); background: var(--accent); padding: 4px 9px; border-radius: var(--r-xs);
}
.price-term { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--text-6); margin-bottom: 10px; }
.price-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.price-desc { margin: 0 0 20px; font-size: 13px; line-height: 1.55; color: var(--text-4); min-height: 56px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.price-value  { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.price-card.is-hot .price-value { color: var(--accent); }
.price-per    { font-family: var(--mono); font-size: 12px; color: var(--text-5); }
.price-feats  { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.price-feat   { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.price-tick   { color: var(--text-6); }
.price-card.is-hot .price-feat { color: var(--text-2); }
.price-card.is-hot .price-tick { color: var(--accent); }
.price-card .btn { padding: 13px; }

.pay-methods { border: 1px solid var(--line); background: var(--bg-card); border-radius: 14px; padding: 28px; margin-bottom: 20px; }
.pay-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pay-head h3 { font-size: 19px; font-weight: 600; }
.pay-head .label-lg { color: var(--text-5); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.asset-card { border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 11px; padding: 18px; transition: border-color .2s; }
.asset-card:hover { border-color: var(--accent-line); }
.asset-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.asset-sym  { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); }
.asset-name { font-size: 13px; color: var(--text-2); }
.asset-nets { font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--text-5); }

.pay-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pay-note  { border: 1px solid var(--line); background: var(--bg-card-alt); border-radius: 12px; padding: 22px; }
.pay-note h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.pay-note p  { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-4); }

/* ==========================================================================
   CLIENT — SXCODE PASS
   Values transcribed 1:1 from plans/design/SnapBox.dc.html (pSxcode).
   ========================================================================== */

.sx-page { max-width: 1008px; padding: 48px 24px 90px; }
.sx-hero { text-align: center; margin-bottom: 40px; }
.sx-hero .kicker { margin-bottom: 16px; }
.sx-h1   { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 14px; }
.sx-lede { max-width: 480px; margin: 0 auto; font-size: 16px; line-height: 1.6; color: var(--text-4); }

.sx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }

.sx-plan { border: 1px solid var(--accent); background: #0E1013; border-radius: 14px; padding: 30px; }
.sx-plan .price-term { margin-bottom: 14px; }
.sx-amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.sx-value  { font-size: 44px; font-weight: 700; letter-spacing: -.04em; color: var(--accent); }
.sx-value-note { font-family: var(--mono); font-size: 13px; color: var(--text-5); }
.sx-plan-desc { margin: 0 0 24px; font-size: 14px; line-height: 1.6; color: var(--text-4); }
.sx-plan .price-feat { color: var(--text-2); }
.sx-plan .price-tick { color: var(--accent); }
.sx-plan .price-feats { margin-bottom: 26px; }
.sx-plan .btn { padding: 15px; font-size: 15px; }
.sx-soon { margin: 12px 0 0; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-6); }

.sx-steps { border: 1px solid var(--line); background: var(--bg-card); border-radius: 14px; padding: 30px; }
.sx-steps .price-term { margin-bottom: 20px; }
.sx-step { display: flex; gap: 16px; padding-bottom: 22px; }
.sx-step:last-child { padding-bottom: 0; }
.sx-step-n { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 3px; }
.sx-step-t { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.sx-step-d { font-size: 13px; line-height: 1.55; color: var(--text-4); }

.sx-note { border: 1px solid var(--line); background: var(--bg-card-alt); border-radius: 12px; padding: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sx-note-tag  { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent-ink); background: var(--text-4); padding: 4px 8px; border-radius: var(--r-xs); }
.sx-note-text { flex: 1; min-width: 240px; font-size: 13px; line-height: 1.6; color: var(--text-4); }

/* ==========================================================================
   CLIENT — CHECKOUT & PAYMENT
   Values transcribed from plans/design/SnapBox.dc.html (pCheckout, pPay).
   ========================================================================== */

.checkout-page { max-width: 1188px; padding: 36px 24px 90px; }
.pay-page      { max-width: 968px; padding: 36px 24px 90px; }

.checkout-back {
    display: inline-block; margin-bottom: 18px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--text-5);
    background: transparent; border: 0; cursor: pointer;
}
.checkout-back:hover { color: var(--text); }

.checkout-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.checkout-head h1 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.03em; font-weight: 700; }
.step-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent-ink); background: var(--accent); padding: 4px 9px; border-radius: var(--r-xs); }

.checkout-grid { display: grid; grid-template-columns: minmax(320px, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 16px; }

.co-card { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 24px; }
.co-step-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 16px; }
.co-hint { margin: -6px 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-5); }

/* Line-item list: the selected item is filled; the rest are links that switch
   the checkout (design "1 · WHAT YOU ARE BUYING"). */
.co-items { display: flex; flex-direction: column; gap: 9px; }
.co-item { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 11px; padding: 16px 18px; color: inherit; transition: border-color .15s, background .15s; }
.co-item.is-on { border-color: var(--accent); background: var(--accent-bg); }
a.co-item:hover { border-color: #3A3F47; background: #0E0F12; color: inherit; }
.co-radio { width: 16px; height: 16px; border-radius: 50%; border: 5px solid var(--accent); background: var(--bg); flex-shrink: 0; }
.co-radio-off { border: 1px solid var(--line-4); background: transparent; }
.co-item-text { flex: 1; min-width: 0; }
.co-item-name { font-size: 15px; font-weight: 600; }
a.co-item .co-item-name { color: var(--text-2); }
.co-item-desc { font-size: 12.5px; color: var(--text-4); margin-top: 3px; }
a.co-item .co-item-desc { color: var(--text-5); }
.co-item-price { text-align: right; }
.co-price { font-size: 19px; font-weight: 700; color: var(--accent); }
.co-price-off { color: var(--text); }
.co-per { font-family: var(--mono); font-size: 10px; color: var(--text-5); margin-top: 3px; }

/* Asset + network picker (radios, no JS cascade) */
/* Asset picker: a grid of selectable asset cards (design "2 · PAY WITH"). */
.co-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; margin-bottom: 20px; }
.co-asset { position: relative; cursor: pointer; }
.co-asset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-asset-card { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 10px; padding: 14px; transition: border-color .15s, background .15s; }
.co-asset:hover .co-asset-card { border-color: #3A3F47; }
.co-asset input:checked + .co-asset-card { border-color: var(--accent); background: var(--accent-bg); }
.co-asset input:focus-visible + .co-asset-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-asset-sym  { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text-2); }
.co-asset input:checked + .co-asset-card .co-asset-sym { color: var(--accent); }
.co-asset-name { font-size: 12px; color: var(--text-5); }

/* Network chips for the chosen asset. */
.co-net-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 12px; }
.co-netblock + .co-netblock { margin-top: 4px; }
.co-nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.co-net { position: relative; cursor: pointer; }
.co-net input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.co-net-body { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 9px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.co-net:hover .co-net-body { border-color: #3A3F47; }
.co-net input:checked + .co-net-body { border-color: var(--accent); background: var(--accent-bg); }
.co-net input:focus-visible + .co-net-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-net-name { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-2); }
.co-net input:checked + .co-net-body .co-net-name { color: var(--accent); }
.co-net-fee { font-family: var(--mono); font-size: 10px; color: var(--text-5); }

.co-note { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 9px; padding: 13px; margin-top: 18px; font-size: 12.5px; line-height: 1.55; color: var(--text-4); }
.co-note-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent-ink); background: var(--text-4); padding: 3px 7px; border-radius: var(--r-xs); flex-shrink: 0; }

/* Sticky order summary */
.co-summary { position: sticky; top: 130px; border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 24px; }
.co-sum-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 13px; font-size: 14px; color: var(--text-2); }
.co-sum-divider { border-bottom: 1px solid var(--line); }
.co-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.co-sum-total span:first-child { font-size: 15px; font-weight: 600; }
.co-total-amount { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.co-sum-crypto { font-family: var(--mono); font-size: 11px; color: var(--text-5); margin: 0 0 6px; }
.co-sum-note { margin: 0 0 20px; font-family: var(--mono); font-size: 11px; color: var(--text-5); }
.co-continue { padding: 14px; font-size: 15px; }
.co-assurances { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.co-assurance { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--text-4); }
.co-check { color: var(--ok); }

/* Payment screen */
.pay-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr); gap: 20px; align-items: start; }
.pay-scan { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 26px; text-align: center; }
.pay-qr { width: 190px; height: 190px; margin: 0 auto 20px; border-radius: 10px; border: 8px solid var(--text); background: repeating-conic-gradient(var(--text) 0 25%, var(--bg-card-alt) 0 50%); background-size: 15px 15px; }
.pay-amount { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.pay-fiat { font-family: var(--mono); font-size: 11px; color: var(--text-5); }
.pay-side { display: flex; flex-direction: column; gap: 14px; }
.pay-addr { font-size: 12px; line-height: 1.7; color: #DDE1E6; word-break: break-all; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 9px; padding: 13px; margin-bottom: 10px; }
.pay-copy { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 11px; }
.pay-copy:hover { border-color: var(--accent); color: var(--accent); }
.pay-status-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pay-status-head .co-step-label { margin-bottom: 0; }
.pay-expires { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.pay-status-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--bg-hover); }
.pay-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: sbPulse 1.4s ease-in-out infinite; flex: none; }
.pay-status-text { flex: 1; font-size: 13.5px; color: var(--text-2); }
.pay-status-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-5); }

/* Paid success */
.pay-done { max-width: 460px; margin: 0 auto; text-align: center; padding: 48px 0; }
.pay-check { width: 52px; height: 52px; border-radius: 14px; background: var(--ok); color: var(--accent-ink); font-size: 26px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 22px; }
.pay-done h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.pay-done p { font-size: 14.5px; line-height: 1.65; color: var(--text-4); margin: 0 auto 22px; max-width: 400px; }
.pay-receipt { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 1px solid var(--line); background: var(--bg-card); border-radius: 11px; padding: 16px 18px; font-size: 12px; margin-bottom: 24px; }
.pay-done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
    .pay-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------- SXCode buy/redeem -- */

/* Quantity + email fields on the buy form, styled to match the shared inputs. */
.co-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.co-qty { width: 96px; text-align: center; font-family: var(--mono); background: var(--bg-inset); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 12px; color: var(--text); }
.co-email { width: 100%; background: var(--bg-inset); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; color: var(--text); transition: border-color .15s; }
.co-email:focus { border-color: var(--line-4); outline: none; }
.co-email::placeholder { color: var(--text-dim); }

/* Narrow single-column pages: redeem and my-pass. */
.sx-narrow { max-width: 560px; padding: 48px 24px 90px; }
.sx-narrow .co-card { margin-bottom: 16px; }
.sx-redeem-form { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 4px; }
.sx-alt-link { text-align: center; font-size: 13px; color: var(--text-5); margin-top: 8px; }
.sx-alt-link a { color: var(--accent); }

/* One-time code reveal on the paid order page. */
.sx-reveal { border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 12px; padding: 20px; margin: 8px 0 16px; text-align: left; }
.sx-reveal .co-step-label { color: var(--accent); margin-bottom: 14px; }
.sx-code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.sx-code-row + .sx-code-row { border-top: 1px solid var(--accent-line); }
.sx-code { font-size: 17px; letter-spacing: .06em; color: var(--text); }

/* Balance card on my-pass. */
.sx-balance-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sx-balance-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.sx-balance-of { font-size: 15px; font-weight: 500; color: var(--text-5); }
.sx-meter { height: 8px; border-radius: 999px; background: var(--bg-inset); overflow: hidden; margin: 14px 0 10px; }
.sx-meter-fill { display: block; height: 100%; background: var(--accent); }
.sx-balance-meta { font-size: 11px; }
.sx-usage-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; font-size: 13px; border-top: 1px solid var(--line); }
.sx-usage-file { color: var(--text-3); }

/* ------------------------------------------------------------- file page -- */

.fd-page { max-width: 1008px; padding: 40px 24px 90px; }
.fd-head { margin: 18px 0 24px; }
.fd-title { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.02em; word-break: break-word; }
.fd-meta { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-5); }
.fd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.fd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.fd-spec { display: flex; flex-direction: column; gap: 5px; }
.fd-spec-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); }
.fd-spec-v { font-size: 16px; color: var(--text-2); font-weight: 500; }
.fd-desc { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--text-3); }
.fd-side { position: sticky; top: 20px; }
.fd-dl { display: flex; flex-direction: column; gap: 14px; }
.fd-gate-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: var(--r-xs); padding: 7px 10px; text-align: center; }
.fd-free-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--ok); background: #0C130F; border: 1px solid #1E3327; border-radius: var(--r-xs); padding: 7px 10px; text-align: center; }
.fd-dl-note { font-size: 12.5px; line-height: 1.55; color: var(--text-5); margin: 0; }
.fd-related { margin-top: 34px; }
.fd-related-list { margin-top: 12px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.fd-related-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; background: var(--bg-card); }
.fd-related-row + .fd-related-row { border-top: 1px solid var(--line); }
.fd-related-row:hover { background: var(--bg-hover); }
.fd-related-name { font-size: 13.5px; color: var(--text-2); word-break: break-word; }
.fd-related-size { font-size: 12px; flex-shrink: 0; }

/* --------------------------------------------------------- download deny -- */

.dl-denied { max-width: 720px; padding: 56px 24px 90px; }
.dl-denied-card { text-align: center; }
.dl-denied-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 16px 0 12px; }
.dl-denied-lede { font-size: 15px; line-height: 1.6; color: var(--text-4); max-width: 520px; margin: 0 auto 30px; }
.dl-denied-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.dl-option { border: 1px solid var(--line-2); background: var(--bg-card); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dl-option-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-option-name { font-size: 17px; font-weight: 700; }
.dl-option-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-5); }
.dl-option-desc { font-size: 13px; line-height: 1.55; color: var(--text-4); margin: 0; flex: 1; }
.dl-option-actions { display: flex; flex-direction: column; gap: 8px; }
.dl-back-link { display: inline-block; margin-top: 26px; font-size: 13px; color: var(--text-5); }
.dl-back-link:hover { color: var(--text-2); }

/* -------------------------------------------------------------- legal ----- */

.legal-page { max-width: 760px; padding: 48px 24px 90px; }
.legal-h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.03em; }
.legal-updated { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-6); }
.legal-body { margin-top: 28px; }
.legal-body h2 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.legal-body p { font-size: 14.5px; line-height: 1.7; color: var(--text-3); margin: 0 0 14px; }
.legal-body a { color: var(--accent); }
.legal-list { margin: 0 0 14px; padding-left: 20px; }
.legal-list li { font-size: 14px; line-height: 1.6; color: var(--text-3); margin-bottom: 8px; }
.legal-tail { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-4) !important; }
.status-line { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-2); padding: 11px 0; border-bottom: 1px solid var(--line); }
.status-dot { width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0; }
.status-ok { background: var(--ok); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 8px; }
.contact-card { border: 1px solid var(--line-2); background: var(--bg-card); border-radius: 11px; padding: 18px; }
.contact-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.contact-card p { font-size: 13px !important; line-height: 1.55; color: var(--text-4) !important; margin: 0 !important; }

@media (max-width: 820px) {
    .fd-grid { grid-template-columns: 1fr; }
    .fd-side { position: static; }
    .dl-denied-options { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- panel ---- */

.page-head h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.page-sub { font-size: 13.5px; color: var(--text-5); margin: 6px 0 0; line-height: 1.55; }
.pnl-block { margin-top: 20px; }
.panel-drawer { display: none; margin-bottom: 18px; }

.pnl-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: var(--r);
    padding: 14px 18px; margin-bottom: 20px; font-size: 13.5px; color: var(--text-2);
}

.pnl-stats .card-body { padding: 18px 20px; }
.pnl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.pnl-plans .card-body { display: flex; flex-direction: column; gap: 10px; }

.pnl-attach { display: flex; gap: 10px; margin-top: 12px; }
.pnl-attach .input { flex: 1; }
.pnl-inline-form { display: inline; }

.pnl-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 0; }
.pnl-kv > div { display: flex; flex-direction: column; gap: 4px; }
.pnl-kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--text-6); text-transform: uppercase; }
.pnl-kv dd { margin: 0; font-size: 14px; color: var(--text-2); }
.pnl-break { word-break: break-all; }

.pnl-sx-count { margin: 14px 0 8px; }
.pnl-sx-of { font-size: 14px; font-weight: 500; }

.pnl-toggle-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 13.5px; color: var(--text-3); }
.pnl-email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.pnl-pw button { grid-column: 1 / -1; justify-self: start; }

.pnl-key-reveal { border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: var(--r); padding: 16px; margin: 14px 0; }
.pnl-key-reveal .co-step-label { color: var(--accent); margin-bottom: 10px; }
.pnl-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pnl-key-form { margin-top: 12px; }
.pnl-scopes { display: flex; flex-wrap: wrap; gap: 14px; }
.pnl-scope { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }

.pnl-thread { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.pnl-msg { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--bg-card); }
.pnl-msg-staff { border-color: var(--accent-line); background: var(--accent-bg); }
.pnl-msg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pnl-msg-who { font-size: 12px; font-weight: 600; color: var(--text-2); }
.pnl-msg-staff .pnl-msg-who { color: var(--accent); }
.pnl-msg-body { font-size: 14px; line-height: 1.6; color: var(--text-3); word-break: break-word; }

.btn-cell-danger { border-color: #4A2B2B; color: var(--bad); }
.btn-cell-danger:hover { background: #1A1011; border-color: #4A2B2B; color: var(--bad); }
.table tbody tr.is-muted { opacity: .55; }

@media (max-width: 860px) {
    .panel-drawer { display: inline-flex; }
    .pnl-kv { grid-template-columns: 1fr; }
}

/* ============================================================ PANEL SHELL == */
/* Transcribed from the prototype's inApp shell + panel views. Values match the
   design 1:1; shared card/badge/btn classes above already carry the same hexes. */

.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; align-items: start; }

.app-side { position: sticky; top: 0; height: 100vh; border-right: 1px solid #17191D; background: #0A0B0D; padding: 22px 14px; display: flex; flex-direction: column; overflow-y: auto; }
.app-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
.app-brand-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.app-brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.app-brand-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--text-6); border: 1px solid #24272C; padding: 2px 5px; border-radius: 4px; }
.app-navlabel { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: #4E545C; padding: 0 10px 10px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 11px; border: 0; background: transparent; color: #868C95; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.app-nav a:hover { background: #101216; color: var(--text); }
.app-nav a.is-on { background: #15171B; color: var(--text); }
.app-nav .dot { width: 5px; height: 5px; border-radius: 50%; background: #2A2E34; flex-shrink: 0; }
.app-nav a.is-on .dot { background: var(--accent); }
.app-nav .n-label { flex: 1; }
.app-nav .n-badge { font-family: var(--mono); font-size: 10px; color: var(--text-6); }
.app-nav a.is-on .n-badge { color: var(--accent); }
.app-side-gap { flex: 1; min-height: 24px; }
.app-user { border: 1px solid var(--line); background: var(--bg-card); border-radius: 11px; padding: 14px; }
.app-user-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-user-init { width: 28px; height: 28px; border-radius: 7px; background: #22262C; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.app-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.app-user-role { font-family: var(--mono); font-size: 10px; color: var(--text-6); }
.app-back { display: block; width: 100%; border: 1px solid #24282E; background: transparent; color: var(--text-3); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 8px; border-radius: 7px; cursor: pointer; text-align: center; transition: color .15s, border-color .15s; margin-bottom: 8px; }
.app-back:hover { color: var(--text); border-color: #3A3F47; }

.app-main { min-width: 0; padding: 32px clamp(20px, 3vw, 40px) 80px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.app-head h1 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; font-weight: 700; }
.app-head-desc { margin: 0; font-size: 14px; color: #868C95; max-width: 520px; }
.app-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-plan { display: flex; align-items: center; gap: 8px; border: 1px solid #24282E; background: #0D0E11; padding: 9px 14px; border-radius: 9px; }
.app-plan .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.app-plan span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-2); }
.app-drawer { display: none; margin-bottom: 16px; }

/* ------- dashboard (vDash) ------- */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dash-stat { border: 1px solid var(--line); background: var(--bg-card); border-radius: 12px; padding: 22px; transition: border-color .2s; }
.dash-stat:hover { border-color: var(--accent-line); }
.dash-stat-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 14px; }
.dash-stat-v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.dash-stat-sub { font-family: var(--mono); font-size: 11px; color: var(--ok); }
.dash-stat-sub.muted { color: var(--text-6); }
.dash-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.dash-card { border: 1px solid var(--line); background: var(--bg-card); border-radius: 12px; padding: 24px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 26px; }
.dash-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dash-card-head span { font-family: var(--mono); font-size: 11px; color: var(--text-6); }
.dash-chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.dash-bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 7px; }
.dash-bar { background: #22262C; border-radius: 3px; min-height: 3px; }
.dash-bar.now { background: var(--accent); }
.dash-bar.z { background: #1B1E23; }
.dash-bar-d { font-family: var(--mono); font-size: 9px; color: #3F444B; text-align: center; }
.dash-act-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.dash-act { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #141619; }
.dash-act:last-child { border-bottom: 0; }
.dash-act .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: var(--accent); }
.dash-act-t { font-size: 13px; color: #DDE1E6; }
.dash-act-d { font-family: var(--mono); font-size: 10px; color: var(--text-6); margin-top: 3px; }
a.dash-act { transition: opacity .15s; }
a.dash-act:hover { opacity: .7; }
.sys-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* ------- storage (vStorage) ------- */
.st-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.st-card { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; overflow: hidden; }
.st-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px 24px; cursor: pointer; transition: background .15s; list-style: none; }
.st-head::-webkit-details-marker { display: none; }
.st-head:hover { background: #101114; }
.st-chev { font-family: var(--mono); font-size: 16px; color: var(--accent); line-height: 1; transition: transform .2s; }
details[open] .st-chev { transform: rotate(180deg); }
.st-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.st-bar > span { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.st-bar-sm { height: 5px; border-radius: 3px; }
.st-body { border-top: 1px solid var(--line); padding: 20px 24px 24px; background: var(--bg-card-alt); }
.st-drow { display: grid; grid-template-columns: minmax(96px, 1.2fr) minmax(120px, 1.6fr) 72px 88px 76px; gap: 11px; align-items: center; padding: 12px 4px; border-top: 1px solid #141619; }
.st-dhead { padding: 0 4px 12px; border-top: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--text-6); }
.st-drow .right { display: flex; justify-content: flex-end; }

/* Collapsible sub-panels inside a storage card: edit drive, attach drive, edit
   server. Native <details>, so the whole page still works with no JavaScript. */
.st-sub { border-top: 1px solid #141619; }
.st-sub > summary {
    list-style: none; cursor: pointer; padding: 11px 4px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
    color: var(--text-5); transition: color .15s;
}
.st-sub > summary::-webkit-details-marker { display: none; }
.st-sub > summary::before { content: '+ '; color: var(--text-6); }
.st-sub[open] > summary::before { content: '– '; }
.st-sub > summary:hover { color: var(--text-2); }
.st-sub > form { padding: 4px 4px 18px; }
.st-sub-add > summary { color: var(--accent); }
.st-sub-add > summary::before { content: ''; }

/* Upload-target on/off switch (submits a form; not a checkbox). */
.st-toggle {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 8px;
    padding: 7px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
    color: var(--text-5); transition: border-color .15s, color .15s;
}
.st-toggle:hover { border-color: var(--line-4); color: var(--text-2); }
.st-toggle-track { width: 30px; height: 17px; border-radius: 9px; background: var(--line-3); position: relative; transition: background .18s; }
.st-toggle-knob { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-5); transition: transform .18s, background .18s; }
.st-toggle.is-on { color: var(--accent); border-color: var(--accent-line); }
.st-toggle.is-on .st-toggle-track { background: var(--accent); }
.st-toggle.is-on .st-toggle-knob { transform: translateX(13px); background: var(--accent-ink); }

/* ------- subscription (vSub) ------- */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.sub-current { border: 1px solid var(--accent); background: #0E1013; border-radius: 13px; padding: 26px; }
.sub-current-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sub-current h3 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sub-current p { margin: 0 0 24px; font-size: 13px; color: #868C95; }
.sub-bar { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 10px; }
.sub-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.sub-bar-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-6); margin-bottom: 24px; }
.sub-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-card { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 26px; }
.sub-card-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 20px; }
.sub-perk { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #141619; }
.sub-perk:last-child { border-bottom: 0; }
.sub-perk-t { font-size: 14px; color: var(--text-2); }
.sub-perk-v { font-family: var(--mono); font-size: 11px; color: var(--ok); }
.sub-code { border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 10px; padding: 16px; margin-bottom: 10px; }
.sub-code-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sub-code-id { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.sub-code-left { font-family: var(--mono); font-size: 10px; color: var(--text-6); }
.sub-code-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sub-code-bar > span { display: block; height: 100%; background: var(--accent); }

/* ------- list toolbar + generic table (vTable) ------- */
.tbl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.tbl-stat { border: 1px solid var(--line); background: var(--bg-card); border-radius: 12px; padding: 20px; }
.tbl-stat-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 12px; }
.tbl-stat-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.tbl-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tbl-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); background: #0D0E11; border-radius: 9px; padding: 0 14px; transition: border-color .15s; }
.tbl-search:focus-within { border-color: #3A3F47; }
.tbl-search span { font-family: var(--mono); color: var(--text-6); font-size: 13px; }
.tbl-search input { flex: 1; border: 0; background: transparent; padding: 11px 0; font-size: 13px; color: var(--text); }
.tbl-filter { border: 1px solid var(--line-2); background: #0D0E11; color: #868C95; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 9px 13px; border-radius: 8px; cursor: pointer; transition: color .15s, border-color .15s; }
.tbl-filter:hover { color: var(--text); border-color: #3A3F47; }
.tbl-filter.is-on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-bg); }

.dtbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card-alt); }
.dtbl-scroll { overflow-x: auto; }
.dtbl-inner { min-width: 760px; }
.dtbl-head, .dtbl-row { display: grid; gap: 16px; align-items: center; padding: 14px 20px; }
.dtbl-head { background: #0D0E11; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); }
.dtbl-row { border-bottom: 1px solid #141619; color: var(--text-2); font-size: 13px; text-decoration: none; transition: background .12s; }
.dtbl-row:last-child { border-bottom: 0; }
.dtbl-row:hover { background: #101114; }
.dtbl-row .r-strong { font-family: var(--mono); font-size: 12.5px; color: #DDE1E6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtbl-row .r-sub { font-family: var(--mono); font-size: 10.5px; color: var(--text-6); margin-top: 4px; }
.dtbl-row .r-right { display: flex; justify-content: flex-end; }
.dtbl-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; background: #0D0E11; font-family: var(--mono); font-size: 11px; color: var(--text-6); }
.dtbl-pager { display: flex; gap: 6px; }
.dtbl-pager a, .dtbl-pager span.pg { border: 1px solid var(--line-2); background: transparent; color: var(--text-6); font-family: var(--mono); font-size: 11px; padding: 6px 11px; border-radius: 6px; cursor: pointer; transition: color .15s; }
.dtbl-pager a:hover { color: var(--text); }
.dtbl-empty { padding: 56px 24px; text-align: center; }
.dtbl-empty-t { font-size: 16px; font-weight: 600; }
.dtbl-empty-d { color: var(--text-5); font-size: 13px; margin: 6px 0 18px; }
.cell-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #24282E; background: #0F1114; padding: 5px 10px; border-radius: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-2); }
.cell-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--accent); } .dot-bad { background: var(--bad); } .dot-mute { background: #4E545C; }
.r-action { border: 1px solid #24282E; background: transparent; color: var(--text-3); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; font-weight: 700; padding: 8px 12px; border-radius: 7px; cursor: pointer; transition: color .15s, border-color .15s; text-decoration: none; display: inline-block; }
.r-action:hover { color: var(--accent); border-color: var(--accent); }

/* ------- conversation (vTicket / vRequest) ------- */
.conv { display: grid; grid-template-columns: minmax(320px, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.conv-main { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; display: flex; flex-direction: column; overflow: hidden; }
.conv-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.conv-head-t { flex: 1; min-width: 200px; }
.conv-head-t .t { font-size: 16px; font-weight: 600; }
.conv-head-t .m { font-family: var(--mono); font-size: 10.5px; color: var(--text-6); margin-top: 4px; }
.conv-body { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.conv-msg { display: flex; gap: 12px; }
.conv-msg.me { flex-direction: row-reverse; }
.conv-ava { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #22262C; color: var(--text-3); }
.conv-msg.me .conv-ava { background: var(--accent); color: var(--accent-ink); }
.conv-bubble { border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 10px; padding: 13px 15px; max-width: 80%; }
.conv-msg.me .conv-bubble { border-color: var(--accent-line); background: var(--accent-bg); }
.conv-bubble-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 7px; }
.conv-bubble-who { font-size: 13px; font-weight: 600; color: var(--text); }
.conv-bubble-at { font-family: var(--mono); font-size: 10px; color: var(--text-6); }
.conv-bubble-body { font-size: 13.5px; line-height: 1.62; color: var(--text-2); word-break: break-word; }
.conv-internal { border-color: var(--accent-line) !important; background: var(--accent-bg) !important; }
.conv-note-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 2px 6px; border-radius: 4px; }
.conv-reply { border-top: 1px solid var(--line); padding: 18px 24px; background: var(--bg-card-alt); }
.conv-side { display: flex; flex-direction: column; gap: 14px; }
.conv-info { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 22px; }
.conv-info-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 16px; }
.conv-info-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #141619; }
.conv-info-row:last-child { border-bottom: 0; }
.conv-info-row .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--text-6); }
.conv-info-row .v { font-size: 13px; color: var(--text-2); text-align: right; }

/* ------- compose (vCompose) + settings (vSettings) forms ------- */
.form-card { max-width: 760px; border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 26px; }
.form-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 8px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.fld { width: 100%; border: 1px solid var(--line-2); background: var(--bg-card-alt); border-radius: 9px; padding: 13px 14px; font-size: 14px; color: var(--text); transition: border-color .15s; }
.fld:hover { border-color: #3A3F47; } .fld:focus { border-color: var(--accent); outline: none; }
.fld-mono { font-family: var(--mono); font-size: 13px; }
textarea.fld { line-height: 1.6; resize: vertical; min-height: 110px; }
.pick-row { display: flex; gap: 7px; flex-wrap: wrap; }
.pick { border: 1px solid var(--line-2); background: var(--bg-card-alt); color: #868C95; font-family: var(--mono); font-size: 11px; padding: 8px 12px; border-radius: 7px; cursor: pointer; transition: color .15s, border-color .15s; }
.pick:hover { color: var(--text); border-color: #3A3F47; }

.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; max-width: 1120px; }
.set-card { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 26px; }
.set-card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.set-card > p { margin: 0 0 20px; font-size: 13px; color: #868C95; }
.set-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 240px); gap: 20px; align-items: center; padding: 14px 0; border-top: 1px solid #141619; }
.set-row-full { grid-column: 1 / -1; }
.set-row .k { font-size: 14px; font-weight: 500; color: #DDE1E6; }
.set-row .h { font-size: 12px; color: var(--text-6); margin-top: 3px; }
.set-row .fld { text-align: right; }
.set-toggle { justify-self: end; width: 46px; height: 26px; border-radius: 14px; background: #22262C; padding: 3px; display: flex; justify-content: flex-start; cursor: pointer; transition: background .2s; border: 0; }
.set-toggle > span { width: 20px; height: 20px; border-radius: 50%; background: #4E545C; transition: transform .2s, background .2s; }
.set-toggle.on { background: var(--accent); justify-content: flex-end; }
.set-toggle.on > span { background: var(--accent-ink); }
.set-key-reveal { grid-column: 1 / -1; border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 9px; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-key-reveal .k { font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all; }
.set-danger { grid-column: 1 / -1; border: 1px solid #3A2A2A; background: #0E0C0C; border-radius: 13px; padding: 26px; }
.set-danger h3 { margin: 0 0 5px; font-size: 17px; font-weight: 600; color: #FF8F8F; }
.set-save { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app-side { position: fixed; z-index: 90; width: 248px; transform: translateX(-100%); transition: transform .2s; }
  .app-side.is-open { transform: none; }
  .app-drawer { display: inline-flex; }
  .set-grid { grid-template-columns: 1fr; }
  .conv { grid-template-columns: 1fr; }
}

/* ============================================================ FILE PAGE === */
/* Transcribed from the prototype's pFile screen. */
.file-page { max-width: 1240px; margin: 0 auto; padding: 32px 24px 90px; }
.file-back { display: inline-block; border: 0; background: transparent; color: var(--text-6); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 0 0 20px; cursor: pointer; transition: color .15s; }
.file-back:hover { color: var(--text); }
.file-grid { display: grid; grid-template-columns: minmax(300px, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.file-preview { position: relative; border: 1px solid var(--line); border-radius: 13px; aspect-ratio: 16 / 9; background: repeating-linear-gradient(115deg, #131519 0 10px, #0E1013 10px 20px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.file-preview span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--text-6); background: var(--bg-card-alt); border: 1px solid #24282E; padding: 9px 14px; border-radius: 6px; }
.file-preview img {width: 100%;}
.file-h1 { margin: 24px 0 10px; font-family: var(--mono); font-size: clamp(17px, 2.2vw, 23px); font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.file-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.file-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #8B9099; border: 1px solid #24282E; background: #0D0E11; padding: 5px 9px; border-radius: 5px; }
.file-meta { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-meta-row { display: grid; grid-template-columns: 150px 1fr; gap: 5px; padding: 14px 20px; border-bottom: 1px solid #141619; }
.file-meta-row:last-child { border-bottom: 0; }
.file-meta-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text-6); }
.file-meta-v { font-family: var(--mono); font-size: 13px; color: var(--text-2); word-break: break-all; }
.file-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.file-dl { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 24px; }
.file-size-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.file-size-row .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--text-6); }
.file-size-row .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.file-access { display: flex; align-items: center; gap: 9px; border: 1px solid #1E3A2C; background: #0B1410; border-radius: 9px; padding: 12px 14px; margin-bottom: 16px; }
.file-access .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.file-access span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ok); }
.file-dl-meta { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--text-6); }
.file-locked { display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 9px; padding: 14px; margin-bottom: 20px; }
.file-locked .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent); padding: 3px 7px; border-radius: 4px; flex-shrink: 0; }
.file-locked .txt { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.file-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.file-or span.l { flex: 1; height: 1px; background: var(--line-2); }
.file-or span.t { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #4E545C; }
.file-code-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-6); margin-bottom: 9px; }
.file-code-input { width: 100%; border: 1px solid #262A30; background: var(--bg-card-alt); border-radius: 9px; padding: 13px 14px; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--text); margin-bottom: 10px; }
.file-code-input:focus { border-color: var(--accent); outline: none; }
.file-mirror { border: 1px solid var(--line); background: var(--bg-card); border-radius: 13px; padding: 20px; }
.file-mirror-label { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--text-6); margin-bottom: 14px; }
.file-mirror-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.file-mirror-row .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.file-mirror-row .name { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.file-mirror-row .st { font-family: var(--mono); font-size: 11px; color: var(--text-6); }
@media (max-width: 860px) { .file-grid { grid-template-columns: 1fr; } .file-side { position: static; } }

/* -------------------------------------------------------- notifications --- */
.app-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #24282E; background: #0D0E11; border-radius: 9px; color: var(--text-4); transition: color .15s, border-color .15s; }
.app-bell:hover { color: var(--text); border-color: #3A3F47; }
.app-bell.has-unread { color: var(--accent); border-color: var(--accent-line); }
.app-bell-count { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.note-row { display: flex; gap: 14px; align-items: flex-start; padding: 15px 20px; border-bottom: 1px solid #141619; text-decoration: none; transition: background .12s; }
.note-row:last-child { border-bottom: 0; }
.note-row:hover { background: #101114; }
.note-row.is-unread { background: #0E0F12; }
.note-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.note-text { flex: 1; min-width: 0; }
.note-title { font-size: 14px; color: var(--text); font-weight: 500; }
.note-row.is-unread .note-title { color: var(--accent); }
.note-body { font-size: 13px; color: var(--text-4); line-height: 1.5; margin-top: 3px; }
.note-at { font-family: var(--mono); font-size: 10px; color: var(--text-6); flex-shrink: 0; }
