/* ==========================================================================
   N7 · Bank Console — design tokens + components
   Layout concept: a quiet light workspace. Left rail for navigation, a slim
   top bar for context, and content built from open bands and a few raised
   cards so the decision (the one loud thing) can sit in front.
   ========================================================================== */

:root {
  /* neutrals: cool paper, white cards, navy ink (see DESIGN-LANGUAGE.md) */
  --bg: #F5F5F7;
  --surface: #ffffff;
  --surface-2: #F8F8FA;
  --surface-3: #EEEFF3;
  --ink: #0E1B2B;
  --ink-2: #47566B;
  --ink-3: #66758A;
  --line: #E2E4EA;
  --line-2: #ECEDF1;
  --shadow: 0 1px 0 rgba(14, 27, 43, .03), 0 26px 46px -36px rgba(14, 27, 43, .3);
  --shadow-lg: 0 40px 80px -30px rgba(10, 16, 30, .45);
  --tint-a: rgba(1, 162, 235, .08); --tint-b: rgba(232, 72, 145, .06);

  /* brand: the blue ramp. --brand is the logo colour, --brand-600 is the strong accent that carries white text */
  --brand: #01A2EB;
  --brand-600: #0A68DC;
  --brand-700: #0A55B8;
  --brand-ink: #0A5FCB;
  --brand-soft: #E3F1FE;
  --brand-line: #B5D6F8;

  /* status (reserved: always paired with an icon + label) */
  --good: #0ca30c;       --good-ink: #0a6b0a;    --good-soft: #e6f6e6;
  --warn: #fab219;       --warn-ink: #8a5a00;    --warn-soft: #fff4d6;
  --serious: #ec835a;    --serious-ink: #a2441a; --serious-soft: #fdebe3;
  --crit: #d03b3b;       --crit-ink: #b02a2a;    --crit-soft: #fbe8e8;

  /* grades A–E (letters always shown with the colour) */
  --g-a: #0ca30c; --g-b: #5db02a; --g-c: #e0a100; --g-d: #ec835a; --g-e: #d03b3b;

  /* chart series: blue, ember, teal, violet */
  --c1: #0A68DC; --c2: #F0562C; --c3: #0B9493; --c4: #5740E2;
  --c1-soft: rgba(10, 104, 220, .14);
  --grid: #E8EAEF;
  --axis: #8C98A9;
  --seq-1: #DCEFFD; --seq-2: #9BDAFB; --seq-3: #4FB8F2; --seq-4: #01A2EB; --seq-5: #0A68DC; --seq-6: #0A3FA6;
  --div-pos: #0A68DC; --div-neg: #E34948; --div-mid: #f0efec;
  --matrix: radial-gradient(circle, rgba(255, 255, 255, .55) .7px, transparent 1px) 0 0 / 4px 4px;

  /* type */
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px; --r: 14px; --r-lg: 22px;
  --sb-w: 252px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A101E; --surface: #111A2C; --surface-2: #152036; --surface-3: #1B2942;
    --ink: #EEF2F8; --ink-2: #AAB6C8; --ink-3: #8090A8;
    --line: #223049; --line-2: #1A2740;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 26px 46px -36px rgba(0,0,0,.7);
    --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
    --tint-a: rgba(10, 104, 220, .16); --tint-b: rgba(232, 72, 145, .07);
    --brand-600: #2B85F0; --brand-700: #4A9BF5; --brand-ink: #6DB8FF; --brand-soft: #10264A; --brand-line: #1C3F73;
    --good-ink: #5fd35f; --good-soft: #0f2a14; --warn-ink: #f3bf4a; --warn-soft: #2c2410;
    --serious-ink: #f2a07e; --serious-soft: #2e1c14; --crit-ink: #ef8a8a; --crit-soft: #2e1515;
    --c1: #3D90F5; --c2: #F0703F; --c3: #25B3A6; --c4: #9085e9; --c1-soft: rgba(61,144,245,.2);
    --grid: #1B2942; --axis: #71829B;
    --seq-1: #12305C; --seq-2: #144A8F; --seq-3: #1767C8; --seq-4: #3D90F5; --seq-5: #7FB8FA; --seq-6: #BFDCFD;
    --div-pos: #3D90F5; --div-neg: #e66767; --div-mid: #383835;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A101E; --surface: #111A2C; --surface-2: #152036; --surface-3: #1B2942;
  --ink: #EEF2F8; --ink-2: #AAB6C8; --ink-3: #8090A8;
  --line: #223049; --line-2: #1A2740;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 26px 46px -36px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8);
  --tint-a: rgba(10, 104, 220, .16); --tint-b: rgba(232, 72, 145, .07);
  --brand-600: #2B85F0; --brand-700: #4A9BF5; --brand-ink: #6DB8FF; --brand-soft: #10264A; --brand-line: #1C3F73;
  --good-ink: #5fd35f; --good-soft: #0f2a14; --warn-ink: #f3bf4a; --warn-soft: #2c2410;
  --serious-ink: #f2a07e; --serious-soft: #2e1c14; --crit-ink: #ef8a8a; --crit-soft: #2e1515;
  --c1: #3D90F5; --c2: #F0703F; --c3: #25B3A6; --c4: #9085e9; --c1-soft: rgba(61,144,245,.2);
  --grid: #1B2942; --axis: #71829B;
  --seq-1: #12305C; --seq-2: #144A8F; --seq-3: #1767C8; --seq-4: #3D90F5; --seq-5: #7FB8FA; --seq-6: #BFDCFD;
  --div-pos: #3D90F5; --div-neg: #e66767; --div-mid: #383835;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(1100px 620px at 108% -12%, var(--tint-a), transparent 62%), radial-gradient(900px 560px at -12% 108%, var(--tint-b), transparent 62%), var(--bg);
  background-attachment: fixed;
  font: 500 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }
svg { display: block; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.num { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.up { text-transform: uppercase; letter-spacing: .12em; font: 500 10.5px/1.3 var(--font-mono); color: var(--ink-3); }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 15px; height: 15px; } .ic.xs { width: 13px; height: 13px; } .ic.lg { width: 22px; height: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.hide { display: none !important; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100%; }
.sb {
  position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px 12px; gap: 6px; overflow-y: auto; z-index: 30;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 14px; }
.sb-brand img { height: 28px; width: auto; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.sb-brand .tag { font: 600 10.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 10px; }
.sb-tenant {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 0 8px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line-2);
}
.sb-tenant .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font: 700 12px var(--font-display); }
.sb-tenant b { display: block; font-weight: 700; font-size: 13px; line-height: 1.2; }
.sb-tenant span { font-size: 11.5px; color: var(--ink-3); }
.sb-label { padding: 14px 10px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; color: var(--ink-2);
  font-weight: 600; font-size: 13.5px; border: 0; background: none; width: 100%; text-align: left; text-decoration: none;
}
.nav-item:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-item .ic { opacity: .85; }
.nav-count { margin-left: auto; font: 700 11px var(--font-body); background: var(--surface-3); color: var(--ink-2); border-radius: 99px; padding: 1px 7px; }
.nav-item.active .nav-count { background: var(--surface); color: var(--brand-ink); }
.nav-count.alert { background: var(--crit-soft); color: var(--crit-ink); }
.sb-foot { margin-top: auto; padding: 10px 8px 2px; font-size: 11.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 8px; }
.sb-foot .env { display: flex; align-items: center; gap: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.icon-btn.menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 600; font-size: 13px; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 700; }
.crumbs a { color: var(--ink-3); }
.search {
  display: flex; align-items: center; gap: 8px; margin-left: auto; width: min(360px, 38vw); height: 36px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--ink-3); cursor: text; text-align: left;
}
.search:hover { border-color: var(--brand-line); }
.search span { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kbd { font: 600 11px var(--font-mono); border: 1px solid var(--line); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-3); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent;
  background: none; color: var(--ink-2); position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .pip { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); border: 2px solid var(--bg); }
.me { display: flex; align-items: center; gap: 9px; padding: 3px 4px 3px 3px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.me .meta { line-height: 1.15; padding-right: 8px; white-space: nowrap; }
@media (max-width: 1240px) { .me .meta { display: none; } .me { padding-right: 3px; } }
.me b { font-size: 12.5px; display: block; } .me span { font-size: 11px; color: var(--ink-3); }

.page { padding: 26px 28px 56px; width: 100%; max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.038em; }
.page-sub { color: var(--ink-2); margin-top: 6px; max-width: 70ch; font-size: 14.5px; }
.sim-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 11px; border-radius: 99px; background: var(--warn-soft); color: var(--warn-ink); font-size: 12.5px; font-weight: 600; }
.sim-note .ic { flex: none; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- grid ---------- */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .c3, .c4, .c5, .c6, .c7, .c8, .c9 { grid-column: span 12; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.card-t { font: 600 16px/1.3 var(--font-display); letter-spacing: -.02em; }
.card-s { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.card-b { padding: 14px 18px 18px; }
.card-b.tight { padding-top: 8px; }
.card-f { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-2); font-size: 12.5px; }
.band { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* KPI band */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { padding: 16px 18px 14px; border-left: 1px solid var(--line-2); min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kpi:first-child { border-left: 0; }
.kpi .k-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.kpi .k-val { font: 600 31px/1.1 var(--font-display); letter-spacing: -.04em; }
.kpi .k-val small { font: 600 14px var(--font-body); color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }
.kpi .k-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; }
.delta.good { color: var(--good-ink); } .delta.bad { color: var(--crit-ink); } .delta.flat { color: var(--ink-3); }
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { border-left: 0; border-top: 1px solid var(--line-2); } .kpi:nth-child(-n+2) { border-top: 0; } }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 99px; font-weight: 700; font-size: 12px; line-height: 1.5;
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.chip .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.chip.good { background: var(--good-soft); color: var(--good-ink); }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.serious { background: var(--serious-soft); color: var(--serious-ink); }
.chip.crit { background: var(--crit-soft); color: var(--crit-ink); }
.chip.info { background: var(--brand-soft); color: var(--brand-ink); }
.chip.outline { background: none; border: 1px solid var(--line); }
.chip.sq { border-radius: 7px; }
.grade {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; font: 700 12.5px var(--font-display);
}
.grade.A { background: var(--g-a); } .grade.B { background: var(--g-b); } .grade.C { background: var(--g-c); color: #2a1d00; } .grade.D { background: var(--g-d); color: #3a1300; } .grade.E { background: var(--g-e); }
.grade.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.crit { background: var(--crit); } .dot.brand { background: var(--brand); }
.pulse { position: relative; } .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- buttons / form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 13px/1 var(--font-display); letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, border-color .18s, background .18s;
}
.btn:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--surface); box-shadow: 0 12px 22px -14px rgba(14, 27, 43, .7); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--brand-600)); border-color: transparent; }
.btn.good { background: var(--good-ink); border-color: var(--good-ink); color: #fff; }
:root[data-theme="dark"] .btn.good { color: #04210a; background: #3cc23c; border-color: #3cc23c; }
.btn.danger { color: var(--crit-ink); border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); }
.btn.danger:hover { background: var(--crit-soft); }
.btn.ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-3); transform: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-3); border-radius: 18px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 99px; font-weight: 700; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(11,26,40,.12); }
.seg .cnt { margin-left: 5px; font-weight: 700; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.input, .select, textarea.input {
  height: 38px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; min-width: 0; width: 100%;
}
textarea.input { height: auto; padding: 9px 12px; resize: vertical; min-height: 84px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238da0b3' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; width: auto; }
.input:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + i { background: var(--brand-600); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--brand); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); margin-top: -6px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
input[type=checkbox].cb { width: 16px; height: 16px; accent-color: var(--brand-600); margin: 0; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.sel { background: var(--brand-soft); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { display: block; font-weight: 700; line-height: 1.2; } .who > div span { font-size: 12px; color: var(--ink-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font-display); color: #fff; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.ref { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-line); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; flex-wrap: wrap; }

/* meters */
.bar { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; min-width: 56px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--matrix), linear-gradient(90deg, var(--brand-600), var(--brand)); }
.bar.thick { height: 12px; }
.scorebar { display: flex; align-items: center; gap: 9px; }
.scorebar b { width: 26px; text-align: right; font-weight: 700; }
.scorebar .bar { width: 64px; }

/* legend */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.ln { height: 3px; width: 14px; border-radius: 2px; }

/* charts */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font: 600 11px var(--font-body); fill: var(--ink-3); }
.chart .t-ink { fill: var(--ink); } .chart .t-ink2 { fill: var(--ink-2); }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .hit .guide { opacity: 0; stroke: var(--ink-3); stroke-dasharray: 3 3; }
.chart .hit:hover .guide, .chart .hit.on .guide { opacity: 1; }
.chart .hit .pt { opacity: 0; }
.chart .hit:hover .pt { opacity: 1; }
.chart .mk { transition: opacity .12s; }
.chart [data-tip] { cursor: default; }
.chart .dim { opacity: .35; }
.tip {
  position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: var(--surface); border-radius: 10px; padding: 8px 11px; font-size: 12px;
  line-height: 1.45; box-shadow: var(--shadow-lg); max-width: 280px; opacity: 0; transition: opacity .1s;
}
.tip.on { opacity: 1; }
.tip b { font-weight: 700; } .tip .tl { opacity: .7; } .tip .tr { display: flex; justify-content: space-between; gap: 16px; }
.tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 14, 22, .5); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .12s; }
.scrim.right { place-items: stretch end; padding: 0; }
.scrim.top { place-items: start center; padding-top: 12vh; }
.modal { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 88vh; overflow: auto; border: 1px solid var(--line); animation: pop .16s; }
.modal.wide { width: min(820px, 100%); }
.modal-h { padding: 18px 20px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-b { padding: 16px 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--surface); }
.drawer { background: var(--surface); width: min(520px, 100%); height: 100%; overflow: auto; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: slide .2s; }
.drawer-h { padding: 18px 22px 12px; display: flex; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line-2); }
.drawer-b { padding: 18px 22px 30px; display: flex; flex-direction: column; gap: 18px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } } @keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; }
.menu .m-h { padding: 12px 14px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.menu .m-i { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.menu .m-i:last-child { border-bottom: 0; }
.menu .m-i p { color: var(--ink-3); margin-top: 1px; }
.cmdk { width: min(620px, 100%); background: var(--surface); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .14s; }
.cmdk input { width: 100%; border: 0; border-bottom: 1px solid var(--line); height: 54px; padding: 0 18px; font: 500 16px var(--font-body); background: none; color: var(--ink); outline: none; }
.cmdk .list { max-height: 50vh; overflow: auto; padding: 8px; }
.cmdk .grp { padding: 8px 10px 4px; }
.cmdk .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.cmdk .it.on, .cmdk .it:hover { background: var(--brand-soft); }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 120; }
.toast { background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-weight: 600; animation: pop .18s; max-width: 380px; }
.toast .ic { color: #6be26b; }
.toast-act { margin-left: 6px; border: 1px solid rgba(255,255,255,.35); background: none; color: inherit; border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 12px; }
.toast-act:hover { background: rgba(255,255,255,.12); }

/* misc blocks */
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); font-size: 13px; align-items: flex-start; }
.callout .ic { color: var(--brand-ink); margin-top: 1px; }
.callout.warn { background: var(--warn-soft); } .callout.warn .ic { color: var(--warn-ink); }
.callout.crit { background: var(--crit-soft); } .callout.crit .ic { color: var(--crit-ink); }
.callout.good { background: var(--good-soft); } .callout.good .ic { color: var(--good-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--ink-3); font-weight: 600; } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.hr { height: 1px; background: var(--line-2); border: 0; margin: 0; width: 100%; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.dropzone { border: 1.5px dashed var(--brand-line); border-radius: var(--r-lg); background: var(--surface-2); padding: 34px 20px; text-align: center; cursor: pointer; }
.dropzone .ic { margin: 0 auto; color: var(--brand-ink); }
.dropzone:hover, .dropzone.over { background: var(--brand-soft); border-color: var(--brand); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-3); font-size: 13px; }
.step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 12px var(--font-display); font-style: normal; }
.step.on { color: var(--ink); } .step.on i { background: var(--brand-600); color: #fff; }
.step.done i { background: var(--good-soft); color: var(--good-ink); }
.step + .step::before { content: ""; width: 26px; height: 1px; background: var(--line); margin-right: 0; }

/* =====================  applicant detail  ===================== */
.verdict { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.verdict .v-eyebrow { display: flex; align-items: center; gap: 8px; }
.verdict .v-head { font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--font-display); letter-spacing: -.042em; }
.verdict.approve .v-head { color: var(--good-ink); }
.verdict.structure .v-head { color: var(--brand-ink); }
.verdict.refer .v-head { color: var(--warn-ink); }
.verdict.decline .v-head { color: var(--crit-ink); }
.verdict .v-why { font-size: 14.5px; color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.terms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.terms > div { padding: 11px 14px; border-left: 1px solid var(--line-2); min-width: 0; }
.terms > div:first-child { border-left: 0; }
.terms .t-l { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.terms .t-v { font: 600 18px var(--font-display); margin-top: 2px; letter-spacing: -.01em; }
.terms .t-n { font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) { .terms { grid-template-columns: repeat(2, minmax(0,1fr)); } .terms > div { border-top: 1px solid var(--line-2); } }
.trail { display: flex; flex-direction: column; }
.trail .tr-i { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: start; }
.trail .tr-i:first-child { border-top: 0; }
.trail .tr-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.trail .tr-ic.good { background: var(--good-soft); color: var(--good-ink); }
.trail .tr-ic.warn { background: var(--warn-soft); color: var(--warn-ink); }
.trail .tr-ic.crit { background: var(--crit-soft); color: var(--crit-ink); }
.trail .tr-ic.info { background: var(--brand-soft); color: var(--brand-ink); }
.trail b { font-weight: 700; } .trail p { color: var(--ink-3); font-size: 12.5px; }
.mx { display: grid; grid-template-columns: 22px repeat(3, 1fr); grid-template-rows: repeat(3, 1fr) 22px; gap: 4px; height: 270px; position: relative; }
.mx .cell { border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; position: relative; border: 1px solid transparent; text-align: center; padding: 4px; line-height: 1.2; }
.mx .cell.approve { background: var(--good-soft); color: var(--good-ink); }
.mx .cell.structure { background: var(--brand-soft); color: var(--brand-ink); }
.mx .cell.refer { background: var(--warn-soft); color: var(--warn-ink); }
.mx .cell.decline { background: var(--crit-soft); color: var(--crit-ink); }
.mx .cell.me { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 1; }
.mx .cell .you { position: absolute; top: 5px; right: 5px; background: var(--ink); color: var(--surface); font-size: 10px; padding: 1px 6px; border-radius: 99px; }
.mx .cell small { display: block; font-weight: 600; opacity: .75; font-size: 10.5px; margin-top: 2px; }
.mx .ax { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; display: grid; place-items: center; }
.mx .ax.y { writing-mode: vertical-rl; transform: rotate(180deg); }
button.cell { cursor: pointer; font-family: inherit; }
button.cell:hover { filter: brightness(.96); border-color: currentColor; }
.game { padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 10px; width: 100%; }
button.game:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.game .g-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.game.pending { background: var(--surface-2); border-style: dashed; opacity: .75; }
.sten { display: flex; gap: 2px; flex: none; }
.sten i { width: 12px; height: 6px; border-radius: 2px; background: var(--line); }
.sten i.on { background: var(--brand); }
.sten i.hi { background: var(--brand-600); }
.drv { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 54px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.drv .bars { position: relative; height: 12px; }
.drv .bars::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--axis); opacity: .6; }
.drv .bars i { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.fc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) 52px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.fc:first-child { border-top: 0; }
.tl { position: relative; padding-left: 18px; display: flex; flex-direction: column; gap: 14px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl .ev { position: relative; font-size: 13px; }
.tl .ev::before { content: ""; position: absolute; left: -18px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.tl .ev p { color: var(--ink-3); font-size: 12px; }
.tl .ev.hl::before { background: var(--brand); }

/* strategy / studio bits */
.slider-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 76px; gap: 14px; align-items: center; }
.slider-row .val { font: 600 15px var(--font-display); text-align: right; }
@media (max-width: 720px) { .slider-row { grid-template-columns: 1fr; gap: 4px; } .slider-row .val { text-align: left; } }
.tile { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); }
.tile .t-big { font: 600 26px var(--font-display); letter-spacing: -.035em; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
button.opt:hover { border-color: var(--brand-line); background: var(--surface-2); }
.opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.opt .g-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.code { font: 500 12.5px/1.6 var(--font-mono); background: #0A101E; color: #cfe3f3; border-radius: 16px; padding: 14px 16px; overflow-x: auto; white-space: pre; }
.code .k { color: #6ccaf6; } .code .s { color: #9be0a8; } .code .c { color: #6f8aa0; }
.heat { display: grid; gap: 3px; }
.heat .hc { border-radius: 5px; display: grid; place-items: center; font: 600 11px var(--font-body); min-height: 34px; }
.balloon-stage { background: var(--surface-2); border-radius: 14px; height: 250px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line-2); }

/* ---------- responsive shell ---------- */
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sb { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; width: min(280px, 86vw); box-shadow: var(--shadow-lg); }
  body.nav-open .sb { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,14,22,.45); z-index: 25; }
  .icon-btn.menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px 48px; }
  .me .meta { display: none; }
  .search { width: auto; flex: 1; margin-left: 0; }
  .search .kbd { display: none; }
  .crumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* chart column highlight */
.chart .hit .colhl { opacity: 0; fill: var(--ink); fill-opacity: .06; }
.chart .hit:hover .colhl { opacity: 1; }


/* ==========================================================================
   Grain & Form additions: the applicant experience inside the console
   ========================================================================== */
.new-btn { margin-left: 4px; }
@media (max-width: 1100px) { .new-btn span { display: none; } .new-btn { padding: 0; width: 38px; } }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 8px 4px 7px; border-radius: 99px; white-space: nowrap; vertical-align: middle; }
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-600); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 50% { opacity: .35; } }

/* the applicant experience, mounted over the console */
.n7c-host { position: fixed; inset: 0; z-index: 200; overflow: auto; background: #F5F5F7; animation: fade .2s; }
.n7c-host .n7c-root { min-height: 100%; }
body.n7c-open { overflow: hidden; }

/* dashboard band: always printed on paper, in either theme */
.hero-band {
  --ink: #0E1B2B; --ink-2: #47566B; --ink-3: #66758A; --surface: #fff; --surface-2: #F8F8FA; --surface-3: #EEEFF3; --line: #E2E4EA; --brand-600: #0A68DC;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 20px; overflow: hidden; position: relative; color: var(--ink);
  background: radial-gradient(520px 320px at 92% 110%, rgba(232, 72, 145, .12), transparent 70%), radial-gradient(560px 340px at 70% -20%, rgba(1, 162, 235, .14), transparent 70%), #fff;
  border: 1px solid #ECEDF1; border-radius: 26px; box-shadow: 0 1px 0 rgba(14, 27, 43, .03), 0 26px 46px -36px rgba(14, 27, 43, .3);
}
.hb-copy { padding: 28px 8px 28px 30px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hb-copy h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.06; letter-spacing: -.04em; max-width: 18ch; }
.hb-copy p { color: var(--ink-2); max-width: 58ch; font-size: 14.5px; }
.hb-copy .up { color: var(--ink-3); }
.hb-art canvas { display: block; width: 100%; height: 250px; }
@media (max-width: 900px) { .hero-band { grid-template-columns: minmax(0, 1fr); } .hb-art { display: none; } .hb-copy { padding: 22px; } }

/* confidence */
.conf .card-b { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.conf-top { display: flex; gap: 18px; align-items: center; }
.conf-top h3 { font-size: 21px; letter-spacing: -.03em; margin: 3px 0 4px; }
.conf-top p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.conf-dial { position: relative; width: 104px; height: 104px; flex: none; }
.conf-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cd-bg { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.cd-fg { fill: none; stroke: var(--cf); stroke-width: 9; stroke-linecap: round; }
.conf-dial b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 34px var(--font-display); letter-spacing: -.05em; }
.conf-high { --cf: var(--good); } .conf-mid { --cf: var(--brand-600); } .conf-low { --cf: var(--warn); }
.conf-parts { display: flex; flex-direction: column; gap: 12px; }
.conf-part b { font-weight: 700; font-size: 13px; }
.conf-part span { font: 600 13px var(--font-display); }
.conf-part .bar { margin: 5px 0 4px; }
.conf-part p { font-size: 12px; color: var(--ink-3); }
.conf-part.is-weak .bar > i { background: var(--matrix), linear-gradient(90deg, #D9391A, #FF9440); }
.conf-part.is-weak b::after { content: "weakest"; font: 500 9.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--serious-ink); background: var(--serious-soft); padding: 2px 6px; border-radius: 99px; margin-left: 8px; vertical-align: 1px; }
.cf { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cf i { width: 20px; height: 20px; border-radius: 50%; flex: none; background: conic-gradient(var(--cf) calc(var(--p) * 1%), var(--surface-3) 0); -webkit-mask: radial-gradient(circle, transparent 5.5px, #000 6px); mask: radial-gradient(circle, transparent 5.5px, #000 6px); }
.cf b { font-weight: 700; }
.cf-high { --cf: var(--good); } .cf-mid { --cf: var(--brand-600); } .cf-low { --cf: var(--warn); }

/* game library: the same posters the applicant sees */
.gcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 8px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; min-width: 0; }
.gcard:hover { transform: translateY(-4px); }
.gcard-art { position: relative; display: block; border: 0; padding: 0; aspect-ratio: 4 / 3; border-radius: 17px; overflow: hidden; background: var(--surface-3); width: 100%; }
.gcard-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gcard:hover .gcard-art canvas { transform: scale(1.04); }
.gcard-min { position: absolute; top: 12px; left: 14px; font: 500 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.gcard-play { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 99px; background: #fff; color: #0E1B2B; font: 600 13px var(--font-display); box-shadow: 0 10px 20px -10px rgba(10, 16, 30, .6); transition: transform .2s; }
.gcard-art:hover .gcard-play { transform: scale(1.06); }
.gcard-body { border: 0; background: none; text-align: left; padding: 14px 10px 10px; display: flex; flex-direction: column; gap: 10px; flex: 1; width: 100%; }
.gcard-body:hover b { color: var(--brand-ink); }
.g-art { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; display: block; background: var(--surface-3); }
.g-art canvas { width: 100%; height: 100%; display: block; }
.drawer-art { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-3); }
.drawer-art canvas { width: 100%; height: 100%; display: block; }

/* sharing */
.share { display: flex; flex-direction: column; gap: 16px; }
.share .code, .share-code { white-space: pre-wrap; word-break: break-all; max-height: 150px; overflow: auto; }
.embed-frame { border-radius: 20px; overflow: hidden; background: #F5F5F7; border: 1px solid var(--line-2); }
.embed-frame iframe { display: block; width: 100%; height: 640px; border: 0; transition: height .3s; }
