/* QCraft - app shell design system. Plain CSS, no build step. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  /* warm paper: a cream page, borderless sand cards, ink text and one orange */
  --bg: #f8f5f0;
  --card: #f0ede8;
  --surface: #fcfbf8;
  --surface-2: #f4f1ec;
  --surface-3: #e9e4dc;
  --border: #e6e0d6;
  --border-strong: #d8d1c5;
  --text: #141412;
  --text-2: #3e3c38;
  --muted: #7d7a74;
  --faint: #a8a49d;

  --accent: #ff6b35;
  --accent-strong: #f0551d;
  --accent-soft: #ffe8dd;
  --accent-ink: #c2410c;
  --accent-btn: #ff6b35;
  --ink-btn: #141412;
  --hl-yellow: #f7d98a;
  --hl-blue: #a9dcf7;
  --hl-peach: #ffb899;
  --teal: #0f766e;
  --teal-soft: #e2f1ec;
  --sun: #e9a23b;
  --sun-soft: #fbf0db;
  --sun-ink: #8a5310;
  --grad: #ff6b35;
  --grad-soft: #f0ede8;
  --mesh: none;

  --good: #2f9e5b; --good-ink: #1f7a43; --good-soft: #e1f0e4;
  --warn: #e9a23b; --warn-ink: #9a5b0c; --warn-soft: #fbf0db;
  --bad: #d9483b;  --bad-ink: #b4321f;  --bad-soft: #fbe4df;

  /* kept for older rules: the navigation is a light top bar now */
  --rail-bg: var(--bg);
  --rail-border: var(--border);
  --rail-text: var(--text-2);
  --rail-muted: var(--muted);
  --rail-strong: var(--text);
  --rail-hover: var(--card);
  --rail-active: var(--card);
  --rail-active-text: var(--text);
  --auth-bg: var(--bg);

  --code-bg: #141412;
  --code-head: #1f1e1b;
  --code-text: #ece8e1;
  --code-muted: #8f8b84;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 1px 2px rgba(20, 20, 18, .06), 0 18px 40px -16px rgba(20, 20, 18, .22);
  --ring: 0 0 0 3px rgba(255, 107, 53, .22);
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --sans: "Geist", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Cabinet Grotesk", "Geist", "Segoe UI Variable Display", system-ui, sans-serif;
  --rail-w: 0px;
  --top-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131311; --card: #1c1b18; --surface: #22211e; --surface-2: #1f1e1b; --surface-3: #2b2a26;
    --border: #2d2b27; --border-strong: #3a3833;
    --text: #f3efe8; --text-2: #d3cec5; --muted: #9c978e; --faint: #6f6b64;
    --accent: #ff7a45; --accent-strong: #ff8f61; --accent-soft: #3a2117; --accent-ink: #ffa27c; --accent-btn: #ff6b35; --ink-btn: #f3efe8;
    --hl-yellow: #6b5420; --hl-blue: #1f4a5e; --hl-peach: #6b3420;
    --teal: #4fd1b5; --teal-soft: #15302a;
    --sun-soft: #33270f; --sun-ink: #f4c46a;
    --grad-soft: #1c1b18;
    --good: #4cc27a; --good-ink: #7ad79d; --good-soft: #14291c;
    --warn-ink: #f4c46a; --warn-soft: #33270f;
    --bad-ink: #f38b7c; --bad-soft: #35170f;
    --code-bg: #0e0e0c; --code-head: #191815;
    --shadow-lg: 0 18px 40px -16px rgba(0, 0, 0, .7);
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
.hidden { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body { font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; } h2 { font-size: 20px; font-weight: 750; } h3 { font-size: 16px; font-weight: 700; } h4 { font-size: 14.5px; font-weight: 700; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; vertical-align: middle; }
::selection { background: rgba(99, 102, 241, .25); }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--rail-bg); color: var(--rail-text);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 16px; z-index: 30; border-right: 1px solid var(--rail-border); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 6px; color: var(--rail-strong); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .45); flex: none; }
.brand b { display: block; font: 800 18px var(--display); letter-spacing: -.02em; }
.brand small { display: block; font-size: 11.5px; color: var(--rail-muted); font-weight: 500; margin-top: -2px; }
.rail-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-muted); padding: 0 10px 6px; }
.rail-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; color: var(--rail-text);
  font-weight: 550; transition: background .15s, color .15s; }
.rail-item:hover { background: var(--rail-hover); color: var(--rail-strong); text-decoration: none; }
.rail-item.active { background: var(--rail-active); color: var(--rail-active-text); font-weight: 650; }
.rail-item.active .ic { color: var(--accent); opacity: 1; }
.rail-item .ic { opacity: .75; }
.rail-item .badge { margin-left: auto; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.rail-item.active .badge { background: var(--surface); color: var(--accent-ink); }
.rail-item .badge.new { background: var(--sun); color: #fff; }
.rail-item .badge.done { background: var(--good-soft); color: var(--good-ink); }
.rail-project { margin: 0 2px 6px; padding: 14px; border-radius: 16px; background: var(--grad-soft); border: 1px solid var(--rail-border); display: grid; gap: 12px; }
.rail-project .who { display: flex; align-items: center; gap: 12px; }
.rail-project b { color: var(--rail-strong); display: block; font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rail-project small { color: var(--rail-muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.rail-foot { margin-top: auto; padding: 12px 10px 2px; border-top: 1px solid var(--rail-border); font-size: 12px; color: var(--rail-muted); }
.rail-scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--border); }
.topbar .menu-btn { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .sep { color: var(--faint); }
.crumbs b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.ai-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.ai-badge.on .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.app { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 80px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { display: grid; place-items: center; padding: 80px; }

/* ------------------------------------------------------------------ primitives */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px 22px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.row { display: flex; gap: 12px; align-items: center; } .wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  color: var(--text-2); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; box-shadow: 0 4px 12px rgba(79, 70, 229, .28); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .3); }
.btn.grad:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.pill.good { background: var(--good-soft); color: var(--good-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill.teal { background: var(--teal-soft); color: var(--teal); }
.pill.outline { background: transparent; border-color: var(--border); }
.pill .ic { margin-left: -2px; }
/* a score is ink text with a status dot beside it - the colour never carries the meaning alone */
.score { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.score.good::before, .score.warn::before, .score.bad::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.score.good::before { background: var(--good); } .score.warn::before { background: var(--warn); } .score.bad::before { background: var(--bad); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tag.urgent { color: var(--bad-ink); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.count { font-size: 11px; background: var(--surface-3); padding: 1px 7px; border-radius: 99px; color: var(--muted); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea { padding: 10px 12px; font: inherit; color: var(--text); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 52px; height: 52px; border-radius: 15px; font-size: 17px; }
.avatar.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.avatar.round { border-radius: 50%; }
.icon-tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.icon-tile.teal { background: var(--teal-soft); color: var(--teal); }
.icon-tile.bad { background: var(--bad-soft); color: var(--bad-ink); }
.icon-tile.warn { background: var(--warn-soft); color: var(--warn-ink); }
.icon-tile.good { background: var(--good-soft); color: var(--good-ink); }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.sec-head h2, .sec-head h3 { margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* page hero (gradient banner) */
.page-hero { position: relative; overflow: hidden; overflow: clip; border-radius: 20px; padding: 28px 30px; margin-bottom: 22px; background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px rgba(79, 70, 229, .22); display: flex; align-items: flex-end; gap: 24px; }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); pointer-events: none; }
.page-hero h1 { font-size: 30px; margin: 6px 0 6px; color: #fff; }
.page-hero p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.page-hero .eyebrow { color: rgba(255, 255, 255, .8); }
.page-hero .btn { position: relative; z-index: 1; background: #fff; color: #3730a3; border: 0; box-shadow: 0 6px 18px rgba(18, 22, 52, .18); }
.page-hero .btn:hover { background: #f4f4ff; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero-stats span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; }

/* segmented ticket progress (one cell per ticket) */
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.segs i { height: 7px; border-radius: 3px; background: var(--surface-3); }
.segs i.done { background: var(--good); } .segs i.in_progress { background: var(--warn); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--surface-3); }
.legend i.done { background: var(--good); } .legend i.in_progress { background: var(--warn); }

/* ------------------------------------------------------------------ home */
.learners { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.learner-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.learner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); text-decoration: none; }
.learner-card .name { font-weight: 700; font-size: 16.5px; }
.learner-card .proj { font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.learner-card .go { margin-left: auto; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.new-card { margin-bottom: 22px; padding: 24px; border-top: 3px solid var(--accent); }
.new-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }

/* ------------------------------------------------------------------ project overview */
.overview { display: grid; gap: 10px; max-width: 1140px; }
.ov-hero { position: relative; overflow: hidden; padding: 30px 32px; border: 0; background: var(--grad-soft); box-shadow: var(--shadow); }
.ov-hero::after { content: ""; position: absolute; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 65%); }
.ov-hero .pill { position: relative; z-index: 1; }
.ov-hero h1 { position: relative; margin: 12px 0 8px; font-size: 28px; }
.ov-hero .lead { position: relative; font-size: 16.5px; margin: 0 0 14px; max-width: 780px; color: var(--text-2); }
.ov-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.ov-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); padding: 4px 11px; border-radius: 99px; }
.ov-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ov-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.ov-stats .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ov-stats .k { font-size: 12.5px; color: var(--muted); }
.ov-sec { margin-top: 24px; }
.ov-sec > .sec-head .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff;
  font-size: 13.5px; font-weight: 700; flex: none; box-shadow: 0 4px 10px rgba(79, 70, 229, .25); }
.ov-story { padding: 20px 24px; font-size: 14.5px; line-height: 1.7; }
.ov-story p:last-child { margin-bottom: 0; }
.ov-problems { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.problem { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.problem .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.problem b { font-size: 13.5px; }
.problem p { margin: 4px 0 0; color: var(--muted); font-size: 12.8px; line-height: 1.55; }
.pipeline { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.stage { position: relative; padding: 16px; display: flex; flex-direction: column; }
.stage .step { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.stage .step i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 12px; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 27px; width: 14px; height: 2px; background: var(--border-strong); }
.stage b { margin-top: 10px; font-size: 14px; }
.stage p { margin: 6px 0 12px; font-size: 12.8px; color: var(--muted); line-height: 1.55; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 7px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.tchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.tchip:hover { border-color: var(--accent); text-decoration: none; }
.tchip.good { background: var(--good-soft); color: var(--good-ink); border-color: transparent; } .tchip.good::before { background: var(--good); }
.tchip.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; } .tchip.warn::before { background: var(--warn); }
.ov-value { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-value .card { padding: 20px; }
.ov-value h3 { margin: 12px 0 8px; }
.ov-value ul { margin: 0; padding-left: 0; list-style: none; }
.ov-value li { margin: 7px 0; line-height: 1.5; padding-left: 20px; position: relative; color: var(--text-2); }
.ov-value li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.ov-success { margin-top: 12px; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 20px; }
ul.checks li { padding-left: 30px; position: relative; line-height: 1.5; color: var(--text-2); }
ul.checks li::before { content: "\2713"; position: absolute; left: 0; top: -1px; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good-soft); color: var(--good-ink); font-weight: 800; font-size: 12px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.mini th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--border); background: none; }
table.mini td { padding: 7px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini code { white-space: pre-wrap; word-break: break-word; }
dl.glossary { margin: 0; display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 9px 16px; font-size: 13px; }
dl.glossary dt { font-weight: 650; } dl.glossary dd { margin: 0; color: var(--muted); }
.banner { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 18px; background: var(--grad-soft); border: 1px solid var(--border); }
.fits { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding: 14px 18px; background: var(--grad-soft); max-width: 920px; }
.fits-step { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff;
  background: var(--grad); padding: 7px 11px; border-radius: 9px; }

/* questions (overview context check + report understanding check) */
.question { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: var(--surface); }
.question .opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.question .opts label { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; font-size: 13.5px; background: var(--surface); transition: border-color .15s, background .15s; }
.question .opts label:hover { border-color: var(--accent); }
.question .opts label.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.question .verdict { margin-top: 10px; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.ctxq .opts { flex-direction: column; align-items: stretch; }
.ctxq .opts label.opt { justify-content: flex-start; }
.ctxq .opts label.opt.right { border-color: var(--good); background: var(--good-soft); }
.ctxq .opts label.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.verdict.good { color: var(--good-ink); } .verdict.bad { color: var(--bad-ink); } .verdict.learn { color: var(--accent-ink); }
.ctxq .verdict { font-weight: 500; }
input[type=radio] { accent-color: var(--accent); }

/* ------------------------------------------------------------------ inbox */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.mail-list { border-right: 1px solid var(--border); background: var(--surface-2); }
.mail-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer; transition: background .15s; }
.mail-item:hover { background: var(--surface); text-decoration: none; }
.mail-item.active { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.mail-item .meta { min-width: 0; flex: 1; }
.mail-item .from { font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item .subj { font-size: 13px; margin-top: 1px; }
.mail-item .snip { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mail-view { padding: 28px 34px; }
.mail-view .head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.mail-view .body { font-size: 15px; line-height: 1.75; white-space: pre-wrap; color: var(--text-2); max-width: 720px; }

/* ------------------------------------------------------------------ board */
.path { display: flex; align-items: center; padding: 18px 22px; margin-bottom: 18px; gap: 0; overflow-x: auto; }
.path .node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.path .node:hover { text-decoration: none; color: var(--text); }
.path .node i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 2px solid var(--border-strong); color: var(--muted); transition: transform .15s; }
.path .node:hover i { transform: scale(1.08); }
.path .node.done i { background: var(--good); border-color: var(--good); color: #fff; }
.path .node.in_progress i { background: var(--warn-soft); border-color: var(--warn); color: var(--warn-ink); }
.path .link { flex: 1; min-width: 14px; height: 2px; background: var(--border); margin-bottom: 20px; }
.path .link.done { background: var(--good); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.column { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-height: 320px; }
.column h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; margin: 0; }
.column h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.column h3 .dot.in_progress { background: var(--warn); } .column h3 .dot.done { background: var(--good); }
.column h3 .count { margin-left: auto; }
.tcard { display: block; padding: 14px 15px; margin-bottom: 10px; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tcard:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.tcard .tid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tcard .ttitle { font-weight: 650; margin: 6px 0 12px; line-height: 1.4; }
.kind { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 7px; }

/* ------------------------------------------------------------------ team */
.people { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.person { padding: 18px; }
.person .org { font-size: 12px; color: var(--muted); margin-top: 12px; }
.person p { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }

/* ------------------------------------------------------------------ ticket */
.ticket-head { padding: 20px 22px; margin-bottom: 16px; display: flex; gap: 18px; align-items: flex-start; }
.ticket-head h1 { margin: 8px 0 0; font-size: 22px; }
.ticket-head .big-score { text-align: center; padding-left: 18px; border-left: 1px solid var(--border); }
.ticket-head .big-score b { display: block; font-size: 30px; letter-spacing: -.02em; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--surface-3); border-radius: 12px; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; color: var(--muted); font-weight: 600; border-radius: 9px; font-size: 13.5px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.doc { max-width: 920px; padding: 28px 34px; }
.doc h1 { font-size: 22px; } .doc h2 { font-size: 17px; margin-top: 1.6em; } .doc h3 { margin-top: 1.3em; }
.doc p, .doc li { line-height: 1.7; color: var(--text-2); }
.doc blockquote { margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.doc blockquote p { margin: 4px 0; }
pre.code { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font: 12.5px/1.6 var(--mono); }
pre.code code { background: none; padding: 0; color: inherit; border: 0; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); background: var(--surface-2); white-space: nowrap; font-size: 12.5px; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* data */
.data-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.file-list { padding: 8px; }
.file-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--text); border-radius: 9px; font-size: 13px; cursor: pointer; }
.file-list a .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.file-list a:hover { text-decoration: none; background: var(--surface-2); }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.subtabs button { border: 1px solid var(--border); background: var(--surface); padding: 5px 12px; border-radius: 99px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.subtabs button.active { background: var(--accent-btn); color: #fff; border-color: var(--accent-btn); }
.data-table { max-height: 540px; overflow: auto; }
.data-table table { font: 12px/1.45 var(--mono); }
.data-table th { position: sticky; top: 0; z-index: 1; }
.data-table td { white-space: nowrap; }
pre.json { max-height: 540px; overflow: auto; margin: 0; }

/* editor */
.code-layout { display: grid; gap: 16px; }
.editor-card { overflow: hidden; border: 0; background: var(--code-bg); box-shadow: var(--shadow-lg); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.editor-card .toolbar { background: var(--code-head); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.editor-card .toolbar .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: var(--code-text); box-shadow: none; }
.editor-card .toolbar .btn:hover { background: rgba(255, 255, 255, .12); }
.editor-card .toolbar .btn.primary { background: var(--grad); border: 0; color: #fff; }
.editor-card .toolbar .btn.run { background: rgba(20, 184, 166, .16); border-color: rgba(45, 212, 191, .35); color: #5eead4; }
.file-tabs { display: flex; gap: 4px; }
.file-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: none; padding: 6px 11px; border-radius: 8px;
  cursor: pointer; font: 12.5px var(--mono); color: var(--code-muted); }
.file-tabs button:hover { color: var(--code-text); }
.file-tabs button.active { background: rgba(255, 255, 255, .08); color: var(--code-text); }
.editor { display: grid; grid-template-columns: auto 1fr; height: 580px; background: var(--code-bg); }
.editor .gutter { margin: 0; padding: 14px 10px 14px 14px; text-align: right; color: var(--code-muted); font: 13px/1.6 var(--mono); user-select: none; overflow: hidden; min-width: 48px;
  border-right: 1px solid rgba(255, 255, 255, .05); }
.editor textarea { border: 0; resize: none; padding: 14px 16px; background: transparent; color: var(--code-text); font: 13px/1.6 var(--mono);
  white-space: pre; overflow: auto; tab-size: 4; outline: none; caret-color: #5eead4; }
.editor textarea:focus { box-shadow: none; }
.editor textarea[readonly] { color: #aab1dc; }
.dirty { color: #fcd34d; font-size: 12px; font-weight: 600; }
.output { padding: 18px 20px; }
.output pre { margin: 10px 0 0; }
.output .placeholder { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }

/* PR review */
.review-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
.pr-view { background: var(--code-bg); max-height: 660px; overflow: auto; padding: 10px 0; }
.pr-line { display: grid; grid-template-columns: 50px 1fr; font: 12.5px/1.65 var(--mono); color: var(--code-text); cursor: pointer; }
.pr-line:hover { background: rgba(129, 140, 248, .16); }
.pr-line.flagged { background: rgba(244, 114, 114, .2); box-shadow: inset 3px 0 0 #f87171; }
.pr-line .ln { text-align: right; padding-right: 14px; color: var(--code-muted); user-select: none; }
.pr-line .src { white-space: pre; padding-right: 16px; }
.finding { padding: 12px 14px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: start; }
.finding input, .finding select, .finding textarea { width: 100%; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.finding textarea { grid-column: 1 / -1; min-height: 56px; resize: vertical; }

/* ------------------------------------------------------------------ report */
.report { display: grid; gap: 16px; }
.report-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(280px, 380px); gap: 26px; align-items: center; padding: 24px 26px; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { display: block; font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring .val small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .score { justify-content: flex-end; }
.bar { height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.bar > div { height: 100%; border-radius: 99px; }
.bar.good { background: var(--good-soft); } .bar.good > div { background: var(--good); }
.bar.warn { background: var(--warn-soft); } .bar.warn > div { background: var(--warn); }
.bar.bad { background: var(--bad-soft); } .bar.bad > div { background: var(--bad); }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-title h3 { margin: 0; }
.section-title .st-note { margin-left: auto; }
.trap { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); margin-bottom: 8px; color: var(--text-2); }
.trap b { text-transform: capitalize; color: var(--text); }
.consequence { padding: 20px 22px; border-radius: var(--radius); background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.consequence h3 { color: var(--bad-ink); margin: 0; }
.consequence ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); }
.consequence li { margin: 5px 0; }
.flag { padding: 10px 0; border-bottom: 1px solid var(--border); }
.flag:last-child { border-bottom: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 8px 0 8px 38px; color: var(--text-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; }
.history { display: flex; align-items: center; gap: 12px; }
.notes { margin-top: 12px; font-size: 13px; }

/* ------------------------------------------------------------------ manager */
.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.tile .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile .v { font-size: 30px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.heat th { text-align: center; }
.heat th:first-child { text-align: left; }
.heat td.cell { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 50px; vertical-align: middle; }
.heat td.cell span { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 50px; padding: 5px 7px; border-radius: 8px; font-size: 12.5px; }
.heat td { vertical-align: middle; }
.heat td:first-child { min-width: 190px; }
.heat th, .heat td { padding-left: 6px; padding-right: 6px; }
.heat th:first-child, .heat td:first-child { padding-left: 12px; }
.heat td.cell span { white-space: nowrap; }
.c-good { background: var(--good-soft); color: var(--good-ink); }
.c-warn { background: var(--warn-soft); color: var(--warn-ink); }
.c-bad { background: var(--bad-soft); color: var(--bad-ink); }
.c-none { color: var(--faint); }
.notes-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.note { padding: 18px 20px; }
.note p { margin: 12px 0; color: var(--text-2); }
.note .row + .row { margin-top: 6px; }

/* ------------------------------------------------------------------ overlay & toast */
.overlay { position: fixed; inset: 0; background: rgba(13, 15, 30, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; }
.overlay.hidden, .toast.hidden { display: none; }
.overlay-card { background: var(--surface); border-radius: 18px; padding: 30px 36px 24px; min-width: 360px; max-width: 440px; text-align: center; box-shadow: var(--shadow-lg); }
.overlay-title { font-weight: 700; font-size: 16.5px; margin-top: 16px; }
.overlay-step { color: var(--muted); margin-top: 6px; min-height: 22px; font-size: 13.5px; }
.indeterminate { margin-top: 16px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.indeterminate > div { width: 40%; height: 100%; border-radius: 99px; background: var(--grad); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.spinner { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #17153f; color: #fff; padding: 11px 18px; border-radius: 12px;
  z-index: 60; box-shadow: var(--shadow-lg); font-weight: 500; display: flex; align-items: center; gap: 8px; animation: rise .2s ease-out; }

/* ------------------------------------------------------------------ sign-in & account */
.shell.bare { grid-template-columns: 1fr; }
.shell.bare .rail, .shell.bare .topbar { display: none; }
.shell.bare .app { max-width: none; padding: 0; }
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; background: var(--rail-bg); color: #fff; padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-brand::after { content: ""; position: absolute; right: -140px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, .22), transparent 65%); pointer-events: none; }
.auth-brand .brand { padding: 0; }
.auth-pitch { position: relative; z-index: 1; max-width: 520px; }
.auth-pitch .eyebrow { color: #5eead4; }
.auth-pitch h1 { color: #fff; font-size: 34px; line-height: 1.2; margin: 12px 0 26px; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.auth-pitch li { display: flex; gap: 14px; align-items: flex-start; color: var(--rail-text); line-height: 1.5; }
.auth-pitch li b { color: #fff; }
.auth-pitch .icon-tile { background: rgba(255, 255, 255, .1); color: #5eead4; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; padding: 26px 28px 28px; box-shadow: var(--shadow-lg); }
.auth-card h2 { margin: 22px 0 4px; font-size: 21px; }
.auth-card > div > p.muted { margin: 0 0 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: none; padding: 9px 10px; border-radius: 9px;
  font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.sso { display: grid; gap: 10px; }
.sso-btn { width: 100%; justify-content: center; padding: 11px 15px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--faint); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn { width: 100%; padding: 11px 15px; }
.auth-error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad-ink);
  font-size: 13px; margin-bottom: 16px; }
.door-intro h2 { margin: 22px 0 4px; font-size: 21px; }
.door-intro p { margin: 0 0 18px; }
.mgr-link { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.mgr-link a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.kind-tag { display: inline-block !important; margin-top: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(94, 234, 212, .14); color: #5eead4 !important; font-weight: 600; }
.auth-tracks { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.auth-tracks > span:first-child { width: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-muted); }
.auth-tracks b { color: #fff; background: rgba(255, 255, 255, .1); padding: 3px 10px; border-radius: 99px; font-size: 13px; }
.auth-tracks em { font-style: normal; color: var(--rail-text); font-size: 13px; }
.auth-tracks .muted-light { width: 100%; color: var(--rail-muted); font-size: 12.5px; margin-top: 4px; }
.num-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff;
  font-size: 13.5px; font-weight: 700; flex: none; }
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.track-card { text-align: left; padding: 18px 20px; cursor: pointer; font: inherit; color: inherit; border: 2px solid var(--border);
  transition: border-color .15s, box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.track-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.track-card.sel { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.track-card h3 { margin: 14px 0 6px; font-size: 17px; }
.track-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.track-card { position: relative; }
.track-card > .row { padding-right: 86px; }
.track-card .pick { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; }
.track-card.request { cursor: default; border-style: dashed; background: var(--surface-2); }
.track-card.request:hover { transform: none; border-color: var(--border-strong); }
.track-card.request h3 { margin-top: 12px; }
.req-form { display: flex; gap: 8px; margin-top: auto; }
.req-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
#req-done { margin-top: 10px; color: var(--muted); }
.tchip.plain::before { display: none; }
.req-list { display: grid; gap: 8px; }
.req-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.onboard { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.acct { display: flex; align-items: center; gap: 10px; padding: 2px 0 10px; }
.acct b { display: block; color: #fff; font-size: 13px; }
.acct small { display: block; color: var(--rail-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.rail-signout { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px;
  background: transparent; color: var(--rail-text); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.rail-signout:hover { background: var(--rail-hover); color: #fff; }
.track-note { margin-top: 12px; }

/* ------------------------------------------------------------------ locked tickets, feedback and help */
.tchip.locked { color: var(--faint); background: transparent; border-style: dashed; cursor: default; }
.tchip.locked::before { display: none; }
.tcard.locked { background: transparent; box-shadow: none; border-style: dashed; color: var(--muted); }
.tcard.locked .ttitle { margin: 6px 0 4px; color: var(--muted); }
.tcard.locked:hover { transform: none; border-color: var(--border); box-shadow: none; }
div.tcard { cursor: default; }
.path .node.locked i { background: transparent; border-style: dashed; color: var(--faint); }
.path span.node { cursor: default; }
.path .node.deferred i { background: var(--warn-soft); border-color: var(--warn); color: var(--warn-ink); }
.count.hot { background: var(--warn-soft); color: var(--warn-ink); }
.fb-head { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; }
.fb-head h2 { margin: 6px 0 6px; font-size: 22px; }
.fb-head p { margin: 0 0 14px; color: var(--text-2); max-width: 720px; }
.fb-head.ok { background: linear-gradient(135deg, var(--good-soft), var(--surface) 65%); }
.fb-head.go { background: linear-gradient(135deg, var(--accent-soft), var(--surface) 65%); }
.fb-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad); }
.fb-head.ok .fb-icon { background: var(--good); }
.attempts { display: flex; gap: 5px; flex-wrap: wrap; max-width: 160px; justify-content: flex-end; }
.attempts i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.attempts i.ok { background: var(--good); box-shadow: 0 0 0 1px var(--good); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ck { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.ck-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.ck.pass .ck-icon { background: var(--good-soft); color: var(--good-ink); }
.ck.todo .ck-icon { background: var(--warn-soft); color: var(--warn-ink); }
.ck.fail .ck-icon { background: var(--bad-soft); color: var(--bad-ink); }
.ck > div { flex: 1; min-width: 0; }
.ck-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.ck.pass .ck-label { color: var(--good-ink); } .ck.todo .ck-label { color: var(--warn-ink); } .ck.fail .ck-label { color: var(--bad-ink); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.help-grid h4 { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; }
.locked-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--muted); font-size: 13px; }
.hint-list { margin: 0 0 12px; padding-left: 20px; } .hint-list li { margin: 8px 0; line-height: 1.6; color: var(--text-2); }
.walk { margin: 0; padding-left: 20px; } .walk li { margin: 12px 0; line-height: 1.6; color: var(--text-2); }
.walk pre.code { margin: 8px 0 0; }
.progress-grid td.cell { min-width: 40px; }
.progress-grid td.cell span.pc { min-width: 0; padding: 0; }
.progress-grid td.cell span.pc.open { width: 18px; height: 18px; border-radius: 6px; }
.pc { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.pc.done { background: var(--good-soft); color: var(--good-ink); }
.pc.progress { background: var(--warn-soft); } .pc.progress i { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.pc.deferred { background: var(--warn-soft); color: var(--warn-ink); }
.pc.open { border: 2px solid var(--border-strong); width: 20px; height: 20px; }
.pc.locked { color: var(--faint); }
.help-with { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; color: var(--text-2); }
.help-with b { display: flex; align-items: center; gap: 6px; color: var(--warn-ink); }
.help-with ul { margin: 6px 0 0; padding-left: 18px; }

/* ------------------------------------------------------------------ sign-up profile and matching */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.pf-group { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 0; min-width: 0; display: grid; gap: 12px; align-content: start; }
.pf-group legend { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--accent-ink); }
.pf-group:last-child { grid-template-columns: 1fr 1fr; }
.pf-group:last-child legend { grid-column: 1 / -1; }
.match-list { display: grid; gap: 12px; }
.match-card { padding: 18px 20px; cursor: pointer; border: 2px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.match-card.sel { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.match-card h3 { margin: 12px 0 6px; font-size: 17px; }
.match-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
ul.fit { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: 13px; }
ul.fit li { display: flex; gap: 8px; align-items: flex-start; } ul.fit li > .ic { margin-top: 2px; }
ul.fit li.ok { color: var(--good-ink); } ul.fit li.differs { color: var(--warn-ink); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 14px; background: var(--warn-soft); border-color: transparent; color: var(--text-2); }
.nomatch { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; margin-top: 26px; background: linear-gradient(135deg, var(--warn-soft), var(--surface) 70%); }
.nomatch h2 { margin: 2px 0 8px; }
.nomatch p { margin: 0 0 8px; color: var(--text-2); max-width: 760px; }

/* ------------------------------------------------------------------ responsive */
/* designed projects: the design card, the waiting screen, tickets being prepared */
.design-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 65%); }
.design-card h2 { margin: 2px 0 6px; }
.design-card p { margin: 0 0 12px; color: var(--text-2); max-width: 760px; }
ul.fit li.info { color: var(--text-2); align-items: flex-start; } ul.fit li.info .ic { margin-top: 2px; flex: none; }
ul.fit li .ic { flex: none; }
.design-wait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.build-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.build-steps li small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.build-steps li b { font-weight: 600; }
.build-steps .bs-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--border-strong); margin-top: 1px; }
.build-steps li.doing { color: var(--text); }
.build-steps li.doing .bs-icon { border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.build-steps li.done { color: var(--text); }
.build-steps li.done .bs-icon { border: none; background: var(--good); position: relative; }
.build-steps li.done .bs-icon::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ready-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--good-soft); color: var(--good-ink); }
.ready-note > div { flex: 1; min-width: 200px; color: var(--text); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; margin: 0; flex: none; display: inline-block; }
.tcard.preparing { border-style: dashed; background: var(--surface-2, var(--surface)); }
.tcard.preparing:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tcard.preparing.failed { border-color: var(--warn); }
.tcard.preparing.failed .ic { color: var(--warn-ink); }
.path .node.preparing i { background: transparent; border-style: dashed; color: var(--accent); }
.pc.preparing { color: var(--accent); }
.ov-designed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0 0 8px; }
.ov-designed h3 { margin: 0; }
.ov-designed .sec-head p { margin: 2px 0 0; }

/* the learner's growing codebase */
.codebase-note code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* briefings and Foundations */
.brief-head { padding: 20px 22px; margin-bottom: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.level-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.level-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.level-seg button.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
.brief-sec { margin-bottom: 16px; }
.brief-sec h4 { margin: 18px 0 6px; font-size: 15px; }
.brief-sec .concept:first-of-type h4 { margin-top: 4px; }
.lead-sm { color: var(--text-2); margin: 0 0 12px; }
.concept { padding: 4px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.concept:last-child { border-bottom: 0; }
.concept p { color: var(--text-2); margin: 0 0 10px; line-height: 1.6; }
.concept table.mini { margin: 6px 0 10px; }
.trap-item + .trap-item { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 4px; }
.trap-item p { color: var(--text-2); margin: 0 0 10px; }
.probe { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: var(--surface); }
.probe-q { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.probe-q .ic { color: var(--warn-ink); margin-top: 2px; flex: none; }
.probe-guess { width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 13.5px; margin-bottom: 8px; }
.probe pre.code { margin: 0 0 8px; }
.probe-actions { gap: 8px; margin: 2px 0 4px; }
.probe-out { margin-top: 8px; }
.probe-editor .editor { min-height: 120px; max-height: 260px; margin-bottom: 8px; }
.brief-then { text-align: center; margin: 4px 0 16px; color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc-link { font-size: 12.5px; white-space: nowrap; }
details.deeper { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
details.deeper summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
details.deeper p { color: var(--text-2); margin: 10px 0 0; }

/* plans */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.plan-card .price { font-size: 30px; font-weight: 750; letter-spacing: -.02em; color: var(--text); }
.plan-card p { color: var(--text-2); margin: 6px 0 14px; flex: 1; }
.plan-card.best { border: 2px solid var(--accent); box-shadow: var(--ring), var(--shadow); }
.plan-card .btn { align-self: flex-start; }

@media (max-width: 1280px) {
  .pipeline, .ov-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stage::after { display: none; }
  .report-head { grid-template-columns: auto minmax(0, 1fr); } .report-head .bars { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.open .rail { transform: none; }
  .shell.open .rail-scrim { display: block; position: fixed; inset: 0; background: rgba(13, 15, 30, .45); z-index: 25; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .app { padding: 20px 16px 60px; }
  .inbox, .data-layout, .review-layout, .two, .report-head, .board, .tiles, .ov-value, .ov-stats, .help-grid, .profile-grid, .pf-group:last-child, .design-wait, .ov-designed, .plans-grid { grid-template-columns: 1fr; }
  .fb-head { flex-wrap: wrap; }
  .pipeline, .ov-problems { grid-template-columns: 1fr; }
  .page-hero { flex-direction: column; align-items: flex-start; }
  .ticket-head { flex-wrap: wrap; }
  .column { min-height: 0; }
  .auth, .onboard { grid-template-columns: 1fr; }
  .design-card { flex-direction: column; }
  .auth-brand { padding: 28px 24px; }
  .auth-pitch h1 { font-size: 26px; }
}
@media (max-width: 640px) {
  .ai-badge > span { display: none; }
  .ai-badge { padding: 9px; }
  .tabs { display: flex; overflow-x: auto; }
  .ov-hero, .page-hero { padding: 22px 20px; }
  .mail-view { padding: 20px; }
}

/* ------------------------------------------------------------------ the dock: mentor and your code beside every page */
.shell.dock-open { grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--dock-w, 420px); }
.dock { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; min-width: 0; z-index: 15;
  background: var(--surface); border-left: 1px solid var(--border); }
.dock-grip { position: absolute; left: -4px; top: 0; bottom: 0; width: 8px; cursor: col-resize; z-index: 2; }
.dock-grip:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.dock-head { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--border); flex: none; }
.dock-tabs { width: 230px; }
.dock-tabs button { padding: 7px 10px; }
.dock-ticket { display: grid; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex: none; }
.dock-ticket select { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; }
.dock-level { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dock-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dock-empty { padding: 30px 22px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.dock-empty p { margin: 0; }

.m-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.m-msg { display: flex; gap: 8px; min-width: 0; }
.m-msg.me { flex-direction: column; align-items: flex-end; }
.m-msg.me .m-bubble { background: var(--accent-btn); color: #fff; border-radius: 14px 14px 4px 14px; padding: 9px 12px; max-width: 88%; overflow-wrap: anywhere; }
.m-where { font-size: 11px; color: var(--faint); margin-top: 4px; max-width: 88%; text-align: right; }
.m-msg.them .m-bubble { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px;
  padding: 10px 12px; line-height: 1.55; overflow-wrap: anywhere; }
.m-avatar { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.m-bubble.md p { margin: 0 0 8px; } .m-bubble.md p:last-child { margin-bottom: 0; }
.m-bubble.md ul { margin: 0 0 8px; padding-left: 18px; } .m-bubble.md li { margin: 3px 0; }
.m-bubble.md :not(pre) > code { font: 12.5px var(--mono); background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.m-code { position: relative; margin: 6px 0 8px; }
.m-code pre { margin: 0; font-size: 12px; overflow-x: auto; }
.m-code pre code { background: none; padding: 0; color: var(--code-text); }
.m-copy { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--code-text); opacity: .7; }
.m-copy:hover { opacity: 1; }
.m-bubble.typing { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.m-bubble.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.m-bubble.typing span:nth-child(2) { animation-delay: .2s; } .m-bubble.typing span:nth-child(3) { animation-delay: .4s; }
.m-bubble.typing em { font-size: 12px; margin-left: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.m-intro { display: flex; gap: 12px; align-items: flex-start; }
.m-intro p { margin: 4px 0 0; }
.m-starters { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.m-starters .btn { text-align: left; }
.m-error { color: var(--bad-ink); background: var(--bad-soft); border-radius: 8px; padding: 8px 10px; }
.m-compose { display: grid; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--border); background: var(--surface); flex: none; }
.m-compose textarea { width: 100%; min-height: 46px; max-height: 200px; resize: vertical; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 9px 11px; font: inherit; background: var(--surface); color: var(--text); }
.m-actions { gap: 8px; }
.m-focus { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 5px 8px; }
.m-focus span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-focus button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }

.dock-code-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: var(--code-head); flex: none; }
.dock-code-bar .pill { background: rgba(255, 255, 255, .08); color: var(--code-text); border-color: rgba(255, 255, 255, .12); }
.dock-code-bar .small { color: var(--code-muted); }
.dock-code-bar .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: var(--code-text); box-shadow: none; }
.dock-code-bar .btn.primary { background: var(--grad); border: 0; color: #fff; }
.dock-code-bar .btn.run { background: rgba(20, 184, 166, .16); border-color: rgba(45, 212, 191, .35); color: #5eead4; }
.mono { font-family: var(--mono); }
.dock-editor { flex: 1; min-height: 160px; background: var(--code-bg); overflow: hidden; }
.dock-editor .editor { height: 100%; }
.dock-out { flex: none; max-height: 42%; overflow: auto; padding: 12px 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.dock-out pre { margin: 0; font-size: 12px; }
.dock-out .data-table { max-height: 220px; overflow: auto; }

.dock-launch { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 600 14px var(--sans); box-shadow: var(--shadow-lg); cursor: pointer; }
.dock-launch:hover { transform: translateY(-1px); }
.ask-bubble { position: fixed; z-index: 45; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--accent-ink); font: 600 12.5px var(--sans); box-shadow: var(--shadow-lg); cursor: pointer; }
.ck-ask { margin-top: 6px; }
.ask-btn { color: var(--accent-ink); }

@media (max-width: 1000px) {
  .shell.dock-open { grid-template-columns: 1fr; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 74vh; border-left: 0; border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0; box-shadow: var(--shadow-lg); z-index: 35; }
  .dock-grip { display: none; }
  .dock-launch { right: 16px; bottom: 16px; padding: 12px 15px; }
}
.design-card.not-yet { background: linear-gradient(135deg, var(--warn-soft), var(--surface) 65%); }
.design-card.not-yet .icon-tile.warn { background: var(--warn-soft); color: var(--warn-ink); }
.field textarea { resize: vertical; min-height: 58px; }
.field small { font-size: 11.5px; }
.query-card { margin-top: 16px; padding: 0; }
.query-card summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 18px; cursor: pointer; list-style: none; }
.query-card summary::-webkit-details-marker { display: none; }
.query-card .query-body { padding: 0 18px 16px; display: grid; gap: 10px; }
.query-card .editor { min-height: 110px; height: 150px; }
.dock-out .query-card { margin-top: 6px; box-shadow: none; }
.dock-out .query-card summary { padding: 10px 12px; }
.dock-out .query-card .query-body { padding: 0 12px 12px; }
.fb-form { margin-bottom: 18px; }
.fq { margin: 14px 0 18px; display: grid; gap: 8px; }
.fq label { font-weight: 500; color: var(--text); }
.fq-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.fq-scale button, .fq-opts button { min-width: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font: inherit; cursor: pointer; }
.fq-scale button.sel, .fq-opts button.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fq-ends { display: flex; justify-content: space-between; max-width: 520px; }
.fq-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.fq-input { width: 100%; max-width: 640px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; }
input.fq-input { max-width: 200px; }

/* ---- tool projects: the real tool on the learner's laptop, checked on evidence */
.tool-setup { margin-bottom: 18px; border-left: 4px solid var(--warn, #d97706); }
.tool-setup.ok { border-left-color: var(--good, #059669); }
.folder-box { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.path-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.path-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
ul.deliver { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
ul.deliver li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
ul.deliver li.ok { color: var(--good-ink, #047857); }
.files-mini table { width: 100%; font-size: 12.5px; }
.files-mini td { padding: 5px 6px; border-bottom: 1px solid var(--border); }
.files-mini td.num { text-align: right; white-space: nowrap; }
.answers { display: flex; flex-direction: column; gap: 14px; }
.ans-row { display: flex; align-items: center; gap: 8px; }
.ans-row input { flex: 1; min-width: 0; }
.ans-row .unit { font-weight: 600; color: var(--muted); }
.shot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.shot-thumb { max-width: 220px; max-height: 140px; border-radius: 10px; border: 1px solid var(--border); object-fit: cover; }
.runs-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); line-height: 1.7; }
.checklist li.cl-group { list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; padding: 0; border: 0; background: none; }
.checklist li.cl-group:first-child { margin-top: 0; }
details.run-out { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
details.run-out summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
ol.ex-steps { margin: 6px 0 10px; padding-left: 20px; line-height: 1.6; }
ul.evidence { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.dock-files { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); }
.dock-files ul { margin: 0; padding-left: 18px; }
.dock-tabs button { white-space: nowrap; }
.tool-setup, .work-grid > .card, .folder-box, .path-row { min-width: 0; max-width: 100%; }
.work-grid p code, .folder-box .small code, .runs-note code { overflow-wrap: anywhere; }

/* ---- portfolio: the public page and its preview */
.folio-page { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
.folio-page .brand { color: var(--text); padding-left: 0; } .folio-page .brand small { color: var(--muted); }
.folio h1 { font-size: 26px; line-height: 1.2; }
.folio-list { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.folio-list li > div + div { margin-top: 3px; }
.code-block { margin: 6px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); overflow-x: auto;
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; max-height: 480px; }
@media (max-width: 640px) { .folio h1 { font-size: 21px; } .folio-page { padding: 16px 12px 32px; } }

/* ---- interview practice */
.itv-log { max-height: 520px; overflow-y: auto; margin-bottom: 12px; }
.itv-form textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.story { padding: 12px 0; border-top: 1px solid var(--border); }
.story:first-of-type { border-top: 0; padding-top: 0; }
.story dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 13px; }
.story dt { font-weight: 600; color: var(--muted); } .story dd { margin: 0; }
@media (max-width: 640px) { .story dl { grid-template-columns: 1fr; } }

/* lessons before a ticket, and the syllabus */
.lesson-explain p { margin: 0 0 10px; line-height: 1.65; }
.lesson-walk-head { margin-top: 10px; }
.lesson-walk { margin: 4px 0 0; padding-left: 20px; } .lesson-walk li { margin: 4px 0; color: var(--text-2); }
.lesson-mistake { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 8px; }
.lesson-check { margin-top: 12px; }
.exercise .ex-hint { margin: 6px 0; }
.ex-editor .editor { height: 180px; border-radius: 10px; overflow: hidden; }
.syllabus h4 { margin: 18px 0 8px; }
.syl-list { list-style: none; margin: 0; padding: 0; }
.syl-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); }
.syl-row > div { flex: 1; min-width: 0; }
.syl-st { width: 22px; display: inline-flex; justify-content: center; padding-top: 2px; color: var(--muted); }
.syl-row.done .syl-st { color: var(--good-ink); }
.syl-skills { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ================================================================== refresh: navigation, key pages and finish */
/* sidebar pieces that used to assume a dark rail */
.acct b { color: var(--rail-strong); }
.kind-tag { background: var(--teal-soft) !important; color: var(--teal) !important; }
.rail-signout { border-color: var(--rail-border); }
.rail-signout:hover { color: var(--rail-strong); }
.rail nav { display: grid; gap: 2px; }
.rail-label { font-size: 10.5px; letter-spacing: .1em; padding: 0 11px 6px; }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 8px 18px -6px rgba(91, 91, 246, .6); }

/* the project card in the sidebar: progress and the next step */
.prog-ring { position: relative; flex: none; display: inline-grid; place-items: center; }
.prog-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.prog-ring .bg { stroke: color-mix(in srgb, var(--accent) 15%, transparent); }
.prog-ring .fg { stroke: var(--accent); }
.prog-ring.full .fg { stroke: var(--good); }
.prog-ring b { position: relative; font: 800 11.5px var(--display); color: var(--text); }
.rail .prog-ring b { color: var(--rail-strong); }
.up-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--grad); color: #fff; box-shadow: 0 10px 20px -10px rgba(91, 91, 246, .8); }
.up-next:hover { text-decoration: none; filter: brightness(1.07); }
.up-next .un-label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.up-next b { grid-column: 1; font-size: 13px; font-weight: 650; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.up-next .ic { grid-column: 2; grid-row: 1 / span 2; }
.up-next.done { background: var(--good-soft); color: var(--good-ink); box-shadow: none; }

/* top bar: where you are, and one click to carry on */
.top-spacer { flex: 1; }
.top-cta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 650; font-size: 13px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.top-cta:hover { text-decoration: none; background: var(--accent-btn); color: #fff; }
.top-cta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 28%, transparent); }

/* cards, buttons, pills */
.card { border-radius: var(--radius); }
.btn { border-radius: 12px; padding: 10px 16px; font-weight: 650; }
.btn.sm { border-radius: 10px; padding: 6px 12px; }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-btn) 86%, #fff) 0%, var(--accent-btn) 100%); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -8px rgba(91, 91, 246, .7); }
.btn.primary:hover, .btn.grad:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.grad { background: var(--grad); box-shadow: 0 10px 22px -10px rgba(91, 91, 246, .8); }
.pill { font-weight: 650; }
.icon-tile { border-radius: 12px; }
.sec-head .num, .ov-sec > .sec-head .num { border-radius: 10px; font-family: var(--display); }
.field input, .field select, .field textarea { border-radius: 12px; padding: 11px 13px; }

/* gradient banners */
.page-hero { border-radius: 24px; padding: 32px 34px; box-shadow: 0 26px 50px -24px rgba(91, 91, 246, .6); }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 220px at 8% 0%, rgba(255, 255, 255, .2), transparent 60%); }
.page-hero h1 { font-size: 32px; letter-spacing: -.022em; }

/* project overview */
.ov-hero { padding: 32px 34px 28px; border: 1px solid var(--border); background: var(--mesh), var(--surface); }
.ov-hero::after { display: none; }
.ov-hero h1 { font-size: 32px; letter-spacing: -.022em; max-width: 880px; margin: 14px 0 8px; }
.ov-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.ov-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ov-stats > div { border-radius: 14px; }
.ov-stats .v { font: 800 24px/1.15 var(--display); letter-spacing: -.02em; }
.ov-stats .v.long { font-size: 17px; line-height: 1.3; }
.ov-jump { position: sticky; top: 64px; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 2px 0 -10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); scrollbar-width: none; }
.ov-jump::-webkit-scrollbar { display: none; }
.ov-jump button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 6px 13px; border-radius: 999px; font: 600 12.5px var(--sans); cursor: pointer; }
.ov-jump button:hover { border-color: var(--accent); color: var(--accent-ink); }
.ov-jump button.key { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.ov-sec, #ctx { scroll-margin-top: 128px; }
.ov-sec { margin-top: 30px; }
.problem .big, .tile .v { font-family: var(--display); }

/* tickets: the path through the project */
.tp-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tp-summary > div { padding: 14px 18px; }
.tp-summary .v { font: 800 26px/1.2 var(--display); letter-spacing: -.02em; }
.tp-summary .k { font-size: 12.5px; color: var(--muted); }
.tpath { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tp-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.tp-item:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: -16px; width: 2px; background: var(--border-strong); opacity: .7; }
.tp-item.done:not(:last-child)::before { background: var(--good); opacity: 1; }
.tp-marker { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 15px var(--display);
  background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted); }
.tp-item.done .tp-marker { background: var(--good); border-color: var(--good); color: #fff; }
.tp-item.in_progress .tp-marker { background: var(--warn-soft); border-color: var(--warn); color: var(--warn-ink); }
.tp-item.current .tp-marker { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 20px -8px rgba(91, 91, 246, .8); }
.tp-item.locked .tp-marker { background: transparent; border-style: dashed; color: var(--faint); }
.tp-card { display: grid; gap: 9px; padding: 16px 18px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tp-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.tp-item.current .tp-card { border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.tp-item.locked .tp-card, .tp-item.preparing .tp-card { background: transparent; box-shadow: none; border-style: dashed; }
.tp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-top .tid { font: 600 12px var(--mono); color: var(--muted); }
.tp-top .small { display: inline-flex; align-items: center; gap: 4px; }
.tp-title { font: 700 16.5px/1.35 var(--display); letter-spacing: -.01em; }
.tp-item.locked .tp-title { color: var(--text-2); font-weight: 650; font-size: 15.5px; }
.tp-card .chips .pill { font-weight: 550; font-size: 11.5px; }
.tp-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.tp-foot > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.tp-foot .btn { margin-left: auto; }

/* my projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.proj-card { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 22px 22px 18px; color: var(--text); transition: transform .15s, box-shadow .15s; }
.proj-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.proj-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.proj-card h3 { margin: 0 0 2px; font-size: 17px; line-height: 1.35; }
.proj-card .pc-mid { display: flex; align-items: center; gap: 14px; }
.proj-card .pc-now { min-width: 0; }
.proj-card .pc-now small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.proj-card .pc-now > span { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-card .pc-foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.proj-card .pc-foot .go { margin-left: auto; }
.proj-new { display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; min-height: 230px; padding: 24px;
  border: 2px dashed var(--border-strong); background: transparent; box-shadow: none; color: var(--muted); }
.proj-new b { color: var(--text); font-family: var(--display); font-size: 16px; }
.proj-new:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; background: var(--surface); }

/* ticket page */
.ticket-head { padding: 22px 24px; border: 1px solid var(--border); background: var(--mesh), var(--surface); }
.ticket-head h1 { font-size: 24px; letter-spacing: -.02em; }
.tabs { display: flex; gap: 2px; padding: 0; margin: 0 0 22px; background: none; border-radius: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px 12px; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: none; box-shadow: none; color: var(--accent-ink); border-bottom-color: var(--accent); }

/* sign-in: a bold pitch on a deep gradient, the form on a light one */
.auth-brand { background: var(--auth-bg); color: #fff; }
.auth-brand::after { display: none; }
.auth-brand .brand { color: #fff; }
.auth-brand .brand small { color: rgba(255, 255, 255, .6); }
.auth-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #99f6e4; }
.auth-pitch { max-width: 600px; }
.auth-pitch h1 { font: 800 42px/1.12 var(--display); letter-spacing: -.022em; margin: 18px 0 14px; }
.grad-text { background: linear-gradient(90deg, #a5b4fc 0%, #c4b5fd 40%, #5eead4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-pitch .lead { color: rgba(255, 255, 255, .75); font-size: 16.5px; line-height: 1.6; margin: 0 0 26px; max-width: 540px; }
.auth-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-points > div { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.5; }
.auth-points b { display: block; margin: 10px 0 3px; color: #fff; font-size: 14px; }
.auth-points .icon-tile { width: 34px; height: 34px; background: rgba(255, 255, 255, .1); color: #5eead4; }
.auth-preview { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .95); color: #0f1229; max-width: 420px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-1.2deg); }
.ap-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ap-id { font: 600 12px var(--mono); color: #61678a; }
.ap-tag { padding: 2px 8px; border-radius: 7px; background: #eef0ff; color: #3f37c9; font-weight: 650; }
.ap-score { padding: 2px 9px; border-radius: 99px; background: #e5f6ec; color: #0b6b33; font-weight: 700; }
.ap-title { font: 700 16px var(--display); margin: 8px 0 10px; }
.auth-preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.auth-preview li { display: flex; align-items: center; gap: 8px; color: #3b4060; }
.auth-preview li.ok .ic { color: #10a34a; }
.auth-preview li.todo { color: #8a5600; } .auth-preview li.todo .ic { color: #f59e0b; }
.auth-tracks { border-top-color: rgba(255, 255, 255, .12); }
.auth-tracks > span:first-child, .auth-tracks .muted-light { color: rgba(255, 255, 255, .55); }
.auth-tracks b { color: #fff; background: rgba(255, 255, 255, .1); }
.auth-tracks em { color: rgba(255, 255, 255, .8); }
.auth-panel { background: var(--mesh), var(--bg); }
.auth-card { border-radius: 22px; padding: 30px 32px 30px; border: 1px solid var(--border); }
.auth-card h2 { font-size: 23px; }

/* phones: a tab bar for project pages */
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .shell.has-bottom .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 28;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 650; }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a.active { color: var(--accent-ink); background: var(--accent-soft); }
  .bottom-nav a.next { color: #fff; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(91, 91, 246, .8); }
  .shell.has-bottom .app { padding-bottom: 104px; }
  body.has-bottom .dock-launch { bottom: 84px; right: 14px; padding: 11px 14px; }
  .top-cta { display: none; }
  .tp-summary { grid-template-columns: 1fr 1fr; }
  .auth-pitch h1 { font-size: 32px; }
  .auth-preview { display: none; }
}
@media (max-width: 640px) {
  .app { padding: 18px 14px 104px; }
  .ov-hero { padding: 22px 18px; }
  .ov-hero h1, .page-hero h1 { font-size: 25px; }
  .ov-jump { top: 64px; }
  .tp-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .tp-marker { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
  .tp-item:not(:last-child)::before { left: 16px; top: 36px; }
  .tp-card { padding: 14px; }
  .proj-grid { grid-template-columns: 1fr; }
  .auth-pitch h1 { font-size: 28px; }
  .auth-card { padding: 22px 18px; }
  .auth-brand { gap: 18px; padding-bottom: 22px; }
  .auth-brand > .small, .auth-tracks { display: none !important; }
  .auth-pitch .lead { margin-bottom: 16px; font-size: 15px; }
  .auth-points { gap: 8px; }
  .auth-points > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
  .auth-points > div > span:not(.icon-tile) { display: none; }
  .auth-points b { margin: 0; font-size: 12.5px; line-height: 1.3; }
  .auth-points .icon-tile { width: 28px; height: 28px; }
  .auth-panel { padding: 18px 14px 32px; }
}

/* under every ticket tab: back, and on to the next one */
.tab-steps { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.probe .data-table, .ex-answer .data-table, .ex-result .data-table { max-height: 250px; }

/* ================================================================== workspace design: dark navy sidebar, search top bar, tables with a detail panel */
html, body { font: 14.5px/1.55 var(--sans); }
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -.02em; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; }

/* sidebar */
.rail { background: var(--rail-bg); border-right: 0; padding: 20px 16px 14px; gap: 6px; color: var(--rail-text); }
.brand { gap: 12px; padding: 2px 6px 18px; color: #fff; }
.brand .logo { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: #111827; font: 800 20px var(--sans); box-shadow: none; display: grid; place-items: center; }
.brand b { font: 700 19px/1.2 var(--sans); color: #fff; letter-spacing: -.01em; }
.brand small { color: var(--rail-muted); font-size: 12.5px; margin-top: 1px; }
.rail-nav { display: grid; gap: 4px; }
.rail-item { height: 44px; padding: 0 12px; gap: 14px; border-radius: 10px; color: var(--rail-text); font-weight: 500; font-size: 14.5px; }
.rail-item .ic { color: #c3cad8; opacity: 1; }
.rail-item:hover { background: var(--rail-hover); color: #fff; }
.rail-item.active { background: var(--rail-active); color: #fff; font-weight: 600; }
.rail-item.active::before { content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: #3b82f6; }
.rail-item.active .ic { color: #fff; }
.rail-item .badge { margin-left: auto; min-width: 26px; height: 22px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); color: #e5e7eb; font-size: 12px; font-weight: 600; }
.rail-item.active .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.rail-item .badge.new { background: #3b82f6; color: #fff; }
.rail-item .badge.done { background: rgba(34, 197, 94, .18); color: #86efac; }
.rail-div { height: 1px; background: var(--rail-border); margin: 12px 4px; }
.rail-proj { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 0 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--rail-border); color: #fff; }
.rail-proj:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.rp-text { min-width: 0; flex: 1; display: grid; gap: 1px; }
.rp-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-text small { font-size: 12px; color: var(--rail-muted); }
.rp-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 5px; overflow: hidden; }
.rp-bar > i { display: block; height: 100%; background: #3b82f6; border-radius: 4px; }
.rail-foot { margin-top: auto; border-top: 0; padding: 0; }
.rail-foot .rail-div { margin: 8px 4px 16px; }
.acct { gap: 12px; padding: 0 8px 10px; align-items: flex-start; }
.acct .avatar { width: 42px; height: 42px; font-size: 14px; }
.acct b { color: #fff; font-size: 14px; font-weight: 600; }
.acct small { color: var(--rail-muted); font-size: 12.5px; max-width: 160px; }
.kind-tag { display: inline-block !important; margin-top: 7px; padding: 2px 10px; border-radius: 99px; background: rgba(34, 197, 94, .16) !important; color: #86efac !important;
  font-size: 12px; font-weight: 600; }
.rail-signout { display: flex; align-items: center; border: 0; background: none; width: 100%; padding: 10px 12px; gap: 14px; border-radius: 10px; font: 500 14.5px var(--sans);
  color: var(--rail-text); cursor: pointer; }
.rail-signout:hover { background: var(--rail-hover); color: #fff; }
.tech-tile { display: inline-grid; place-items: center; flex: none; border-radius: 10px; color: #fff; background: var(--tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* top bar */
.topbar { height: 72px; padding: 0 24px 0 28px; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: none; }
.top-search { position: relative; flex: 0 1 880px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid transparent; color: var(--muted); }
.top-search:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: var(--ring); }
.top-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 14.5px var(--sans); color: var(--text); }
.top-search input::placeholder { color: var(--muted); }
.top-search input::-webkit-search-cancel-button { display: none; }
.kbds { display: inline-flex; gap: 4px; }
kbd { font: 500 11.5px var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 5px; padding: 1px 6px; }
.search-pop { position: absolute; top: 50px; left: 0; right: 0; z-index: 40; max-height: 440px; overflow: auto; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.sr-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.sr span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sr .ic { color: var(--muted); }
.sr.on, .sr:hover { background: var(--accent-soft); text-decoration: none; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 13.5px; }
.top-spacer { flex: 1; }
.ai-badge { height: 38px; padding: 0 14px; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); border-radius: 99px; background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.ai-badge .dot { width: 9px; height: 9px; }
.ai-badge.on .dot { background: #22c55e; box-shadow: none; }
.top-tools { display: flex; align-items: center; gap: 4px; }
.tool-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.tool-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.tool-btn.sm { width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.tool-btn .ping { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--surface); }
.me-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px; border: 0; background: none; color: var(--text-2); cursor: pointer; }
.me-btn .avatar { width: 40px; height: 40px; font-size: 14px; }
.menu-wrap { position: relative; display: inline-block; }
.menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; z-index: 45; padding: 6px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); text-align: left; }
.menu.right { left: auto; right: 0; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px;
  color: var(--text-2); font: 500 13.5px var(--sans); text-align: left; cursor: pointer; white-space: nowrap; }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.menu .ic { color: var(--muted); }
.menu kbd { margin-left: auto; }
.menu-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.menu-head b { display: block; font-size: 14px; } .menu-head small { color: var(--muted); font-size: 12.5px; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.top-cta { margin-right: 6px; }
.crumbs-row { padding: 16px 32px 0; }
.crumbs-row .crumbs { font-size: 13px; }

/* buttons */
.btn { height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 14px; box-shadow: none; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn:hover { background: var(--surface-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 44px; padding: 0 18px; font-size: 15px; }
.btn.primary, .btn.grad { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); filter: none; }
.btn.primary:hover, .btn.grad:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: none; filter: none; }
.btn.ink { background: var(--ink-btn); border-color: var(--ink-btn); color: #fff; }
.btn.ink:hover { background: #1f2937; }
.btn.ghost { border-color: transparent; background: none; }
.btn.block { width: 100%; }

/* projects: a table and the selected project's panel */
.app:has(.pj) { max-width: none; }
.pj { display: grid; grid-template-columns: minmax(0, 1fr); }
.pj.with-panel { grid-template-columns: minmax(0, 1fr) 400px; margin: -28px -32px -80px 0; }
.pj.with-panel .pj-main { padding: 28px 32px 40px 0; }
.ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ph h1 { margin: 0; font-size: 32px; }
.ph p { margin: 4px 0 0; font-size: 14px; }
.utabs-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.utabs { display: flex; gap: 30px; }
.utabs button { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none;
  font: 500 14.5px var(--sans); color: var(--text-2); cursor: pointer; }
.utabs button:hover { color: var(--text); }
.utabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
.utabs .cnt { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.utabs.sm { gap: 24px; margin: 6px 0 2px; border-bottom: 1px solid var(--border); }
.utabs.sm button { height: 42px; font-size: 14px; }
.utabs.sm button.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.sort { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.sort select { border: 0; background: none; font: 500 13.5px var(--sans); color: var(--text-2); outline: none; cursor: pointer; }
.dt-wrap { overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: 14px; }
.dt th { padding: 14px; text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); background: none; border-bottom: 1px solid var(--border); white-space: nowrap; }
.dt td { padding: 18px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dt tbody tr { cursor: pointer; }
.dt tbody tr:hover td { background: var(--surface-2); }
.dt tbody tr.sel td { background: var(--accent-soft); }
.dt-proj { display: flex; gap: 14px; align-items: flex-start; min-width: 280px; max-width: 470px; }
.dt-title { font-weight: 600; color: var(--text); font-size: 15px; line-height: 1.35; }
.dt-title:hover { color: var(--accent-ink); text-decoration: none; }
.dt-proj p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dt-act { width: 48px; text-align: right; }
.pct { display: grid; gap: 8px; min-width: 90px; }
.pct b { font-size: 14px; font-weight: 600; }
.bar { display: block; width: 90px; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.bar.lg { width: 100%; height: 6px; margin: -4px 0 -6px; }
.spill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.spill i { width: 8px; height: 8px; border-radius: 50%; }
.spill.blue { background: var(--accent-soft); color: var(--accent-ink); } .spill.blue i { background: var(--accent); }
.spill.green { background: var(--good-soft); color: var(--good-ink); } .spill.green i { background: var(--good); }
.spill.gray { background: var(--surface-3); color: var(--text-2); } .spill.gray i { background: var(--faint); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.more { color: var(--muted); }
.muted-2 { color: var(--text-2); } .nowrap { white-space: nowrap; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state b { color: var(--text); font-size: 16px; }
.dp { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 24px 24px; background: var(--surface); border-left: 1px solid var(--border); }
.dp-top { display: flex; align-items: center; gap: 2px; margin-bottom: -6px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dp h2 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.dp-desc { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.dp-meta { display: grid; gap: 12px; margin: 2px 0 0; }
.dp-meta > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.dp-meta dt { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; }
.dp-meta dt .ic { color: var(--muted); }
.dp-meta dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 500; }
.dp > .chips { padding-left: 29px; margin-top: -4px; }
.dp-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dp-prog { display: flex; justify-content: space-between; font-size: 15px; }
.dp-prog b { font-weight: 600; }
.cur-task { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.cur-task b { display: block; margin: 3px 0 2px; font-size: 14.5px; line-height: 1.4; }
.cur-task .eyebrow { font-size: 11px; }
.st-ic { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: var(--faint); }
.st-ic.doing { color: var(--warn); } .st-ic.done { color: var(--good); }
.dp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.dp-list li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.dp-list li:last-child { border-bottom: 0; }
.dp-list .st-ic { width: 20px; height: 20px; }
.dp-list li.done .st-ic { color: var(--good); } .dp-list li.in_progress .st-ic { color: var(--warn); } .dp-list li.locked { color: var(--muted); }
.dp-list .tl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dp-people li { display: flex; gap: 12px; align-items: center; }
.dp-people b { display: block; font-size: 14px; }
.dp-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }

@media (max-width: 1280px) {
  .pj.with-panel { grid-template-columns: minmax(0, 1fr) 360px; }
  .dt th:nth-child(4), .dt td:nth-child(4) { display: none; }
}
@media (max-width: 1000px) {
  .rail { padding: 18px 14px; }
  .topbar { height: 64px; padding: 0 14px; }
  .kbds { display: none; }
  .pj.with-panel { grid-template-columns: minmax(0, 1fr); margin: 0; }
  .pj.with-panel .pj-main { padding: 0; }
  .dp { display: none; }
  .dt th:nth-child(5), .dt td:nth-child(5) { display: none; }
}
@media (max-width: 640px) {
  .top-search { height: 40px; }
  .top-tools .tool-btn[title="Help"] { display: none; }
  .ph h1 { font-size: 26px; }
  .ph .btn.lg { height: 40px; padding: 0 14px; font-size: 14px; }
  .utabs { gap: 18px; overflow-x: auto; }
  .sort { display: none; }
  .dt thead { display: none; }
  .dt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .dt td { padding: 0; border: 0; }
  .dt td:nth-child(1) { grid-column: 1 / -1; }
  .dt td:nth-child(6) { display: none; }
  .dt-proj { min-width: 0; }
}
.bar { background: var(--border-strong); }
.dt-projects td:first-child { width: 40%; }
.dt .chips { flex-wrap: nowrap; }
.dt .chip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }
.dp { overflow-x: hidden; }
.dp-list .mono { white-space: nowrap; flex: none; }
.dp-list .tl { flex: 1; }
.dp > * { min-width: 0; }
.dp-list { grid-template-columns: minmax(0, 1fr); }
.utabs button { white-space: nowrap; }
@media (max-width: 1000px) {
  .dt tbody tr.sel td { background: none; }
  .dt-projects td:first-child { width: auto; }
}
@media (max-width: 640px) {
  .dt tr { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .dt td:nth-child(3) .bar { width: 110px; }
  .utabs .cnt { display: none; }
}

/* ================================================================== the same design on every page */
.app { max-width: none; margin: 0; padding: 28px 32px 80px; }
.card { border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
.card.pad { padding: 22px 24px; }
a.card:hover, .card.tcard:hover { box-shadow: var(--shadow); }
.icon-tile { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); }
.icon-tile.teal, .icon-tile.accent { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile .ic { width: 18px; height: 18px; }
.sec-head { gap: 12px; margin: 0 0 14px; }
.sec-head h2 { font-size: 19px; font-weight: 700; }
.sec-head .num, .ov-sec > .sec-head .num { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); color: var(--text-2); box-shadow: none; font: 700 13px var(--sans); }
.section-title h3 { font-size: 16px; }
.pill { height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 0; }
.pill.outline { background: var(--surface); border: 1px solid var(--border-strong); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.kind { background: var(--surface-3); color: var(--text-2); border-radius: 99px; height: 24px; padding: 0 10px; }
.eyebrow { color: var(--muted); }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 18px; border-radius: 10px; background: var(--accent-soft); border: 0; color: var(--text-2); font-size: 14px; }
.banner .ic { color: var(--accent); flex: none; }
.banner .icon-tile { background: var(--surface); color: var(--accent); }
.notice { border: 0; background: var(--warn-soft); border-radius: 10px; }
.design-card, .design-card.not-yet { background: var(--surface-2); border: 1px solid var(--border); }
.fits { background: var(--surface-2); border: 1px solid var(--border); }
.fits-step { background: var(--ink-btn); }
.ready-note { border-radius: 10px; }
table th { background: var(--surface-2); }
.table-wrap table th { background: none; }

/* page headers: what used to be gradient banners */
.page-hero { position: static; display: flex; align-items: flex-end; gap: 16px; padding: 0 0 22px; margin: 0 0 24px; background: none; color: var(--text);
  border-radius: 0; border-bottom: 1px solid var(--border); box-shadow: none; overflow: visible; }
.page-hero::before, .page-hero::after { display: none; }
.page-hero .eyebrow { color: var(--muted); }
.page-hero h1 { color: var(--text); font-size: 30px; margin: 4px 0 6px; letter-spacing: -.025em; }
.page-hero p { color: var(--muted); font-size: 14.5px; max-width: 760px; }
.page-hero .btn { background: var(--ink-btn); border-color: var(--ink-btn); color: #fff; box-shadow: none; }
.page-hero .btn:not(:last-child) { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.page-hero .btn:hover { filter: none; background: #1f2937; }
.page-hero .btn:not(:last-child):hover { background: var(--surface-2); }
.hero-stats span { background: var(--surface-3); border: 0; color: var(--text-2); font-weight: 600; }
.ph > div:first-child { flex: 1; min-width: 0; }

/* stat strips: one bordered row of numbers */
.stat-strip, .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 4px 0 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.stat-strip > div { padding: 14px 18px; border-left: 1px solid var(--border); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip small { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.stat-strip b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.stat-strip b span { font-size: 14px; color: var(--muted); font-weight: 500; }
.tiles .tile { border: 0; border-left: 1px solid var(--border); border-radius: 0; padding: 16px 18px; }
.tiles .tile:first-child { border-left: 0; }
.tile .v { font-size: 24px; font-weight: 700; font-family: var(--sans); }
.dt tr.static { cursor: default; }
.dt tr.static:hover td { background: none; }
.dt tr.is-locked .dt-title { color: var(--text-2); font-weight: 500; }
.dt .pill { vertical-align: 1px; margin-left: 4px; }

/* project overview */
.overview { max-width: 1120px; gap: 6px; }
.ov-hero { padding: 0 0 6px; border: 0; background: none; box-shadow: none; border-radius: 0; }
.ov-hero h1 { font-size: 30px; letter-spacing: -.025em; margin: 12px 0 6px; }
.ov-hero .lead { font-size: 15.5px; color: var(--text-2); }
.ov-meta span { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: 99px; }
.ov-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.ov-stats > div { border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; background: var(--surface); padding: 14px 18px; }
.ov-stats > div:first-child { border-left: 0; }
.ov-stats .v { font: 700 20px/1.25 var(--sans); letter-spacing: -.02em; }
.ov-stats .v.long { font-size: 16px; }
.ov-jump { top: 72px; gap: 26px; margin: 10px 0 0; padding: 0; background: var(--bg); border-bottom: 1px solid var(--border); backdrop-filter: none; }
.ov-jump button { height: 46px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; background: none; font: 500 14px var(--sans); color: var(--text-2); }
.ov-jump button:hover { color: var(--text); border-bottom-color: var(--border-strong); }
.ov-jump button.key { background: none; color: var(--accent-ink); font-weight: 600; }
.ov-sec { margin-top: 34px; }
.ov-sec, #ctx { scroll-margin-top: 140px; }
.ov-story { padding: 20px 24px; }
.problem, .stage, .ov-value .card, .person { box-shadow: none; }
.problem .big { font: 700 24px var(--sans); }
.stage .step i { background: var(--surface-3); color: var(--text-2); }
.stage .step { color: var(--muted); }
.ov-value li::before { background: var(--accent); }
.tchip { border-radius: 99px; font-family: var(--sans); }
.tchip.good { background: var(--good-soft); }
.ov-designed .card, .syllabus { box-shadow: none; }

/* the ticket */
.ticket-head { padding: 0 0 4px; margin-bottom: 14px; border: 0; background: none; box-shadow: none; border-radius: 0; }
.ticket-head > .icon-tile { display: none; }
.ticket-head h1 { font-size: 26px; margin-top: 10px; }
.ticket-head .big-score { border-left: 1px solid var(--border); }
.tabs { margin-bottom: 22px; gap: 26px; }
.tabs a { padding: 12px 2px; font-size: 14px; }
.tabs a.active { color: var(--text); border-bottom-color: var(--text); }
.tabs a .count { margin-left: 2px; }
.doc { border-radius: 12px; }
.brief-head { background: var(--surface-2); }
.level-seg { background: var(--surface-3); border: 0; }
.level-seg button.active { box-shadow: var(--shadow-sm); color: var(--text); }
.editor-card { border-radius: 12px; box-shadow: none; }
.output, .query-card { box-shadow: none; }
.tab-steps { border-top: 1px solid var(--border); }
.fb-head { box-shadow: none; }
.fb-head.ok { background: var(--good-soft); border-color: transparent; }
.fb-head.go { background: var(--accent-soft); border-color: transparent; }
.fb-icon { background: var(--accent-btn); border-radius: 12px; }
.ck { border-radius: 10px; }
.data-layout .file-list a.active { background: var(--accent-soft); }

/* inbox */
.inbox { border-radius: 12px; box-shadow: none; min-height: 600px; }
.mail-list { background: var(--surface); }
.mail-item { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.mail-item:hover { background: var(--surface-2); }
.mail-item.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.mail-item .tag { color: var(--muted); font-size: 10.5px; }
.mail-item .tag.urgent { color: var(--bad-ink); }
.mail-view { padding: 28px 34px; }
.mail-view h2 { font-size: 22px; letter-spacing: -.02em; }

/* plans */
.plans-grid { gap: 16px; }
.plan-card { padding: 24px; box-shadow: none; }
.plan-card .price { font-size: 30px; font-weight: 700; font-family: var(--sans); }
.plan-card.best { border: 2px solid var(--accent); box-shadow: none; }
.plan-card .eyebrow { color: var(--text-2); }

/* portfolio and interview practice */
.folio { box-shadow: none; }
.story { border-radius: 10px; }
.m-msg.me .m-bubble { background: var(--accent-btn); }
.m-avatar { background: var(--ink-btn); border-radius: 50%; }

/* the manager */
.note { box-shadow: none; }
.help-with { border-radius: 10px; }
.heat td.cell span { border-radius: 6px; }

@media (max-width: 1000px) {
  .app { padding: 20px 16px 104px; }
  .stat-strip, .tiles { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(3), .tiles .tile:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3), .tiles .tile:nth-child(n+3) { border-top: 1px solid var(--border); }
  .ov-jump { top: 64px; gap: 18px; overflow-x: auto; }
  .page-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .page-hero h1, .ov-hero h1, .ticket-head h1 { font-size: 24px; }
  .dt td:nth-child(4) { display: none; }
}

.dt-tickets td:first-child { width: 96px; }
.dt-tickets td:nth-child(2) { width: 48%; }
.dt-tickets .dt-proj { max-width: 560px; }
.dt-learners td:nth-child(5) { min-width: 220px; max-width: 320px; }
.dt-learners td:first-child { width: 22%; }
.dp-actions { margin-top: 18px; }
.ov-problems { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pipeline { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 640px) { .ph { flex-wrap: wrap; } }
.ph .spacer { display: none; }
.ph > .btn, .ph > a.btn { margin-left: auto; }
@media (max-width: 1600px) {
  .pj.with-panel .dt-tickets th:nth-child(4), .pj.with-panel .dt-tickets td:nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  .dt-tickets tr { grid-template-columns: minmax(0, 1fr) auto; }
  .dt-tickets td:nth-child(1) { grid-column: 1; grid-row: 1; width: auto; align-self: center; }
  .dt-tickets td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .dt-tickets td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; width: auto; }
  .dt-tickets td:nth-child(5), .dt-tickets td:nth-child(6) { display: none; }
  .dt-learners td:nth-child(5), .dt-learners td:nth-child(6) { display: none; }
}

/* ================================================================== Learn: the course, its modules and the welcome guide */
.course-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.course-mod { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.course-mod.missing, .course-mod.failed { background: var(--surface-2); }
.cm-num { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font: 700 15px var(--sans); }
.course-mod.ready .cm-num { background: var(--accent-soft); color: var(--accent-ink); }
.cm-body { min-width: 0; display: grid; gap: 8px; }
.cm-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
a.cm-title[href]:hover { color: var(--accent-ink); text-decoration: none; }
.cm-body > p { margin: 0; font-size: 14px; }
.cm-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cm-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-prep { gap: 6px !important; }
.cm-prep .chip, .cm-topics .chip { height: 24px; font-size: 12px; }
.cm-topics { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-lessons { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 18px; }
.cm-lessons a { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--text-2); font-size: 13.5px; }
.cm-lessons a:hover { color: var(--accent-ink); text-decoration: none; }
.cm-lessons .ic { color: var(--faint); flex: none; }
.cm-lessons li.read .ic { color: var(--good); }
.cm-lessons span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-bar { margin: 2px 0 0; max-width: 420px; }
.cm-act { align-self: center; }
.mod-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.mod-toc { position: sticky; top: 92px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.mod-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.mod-toc a { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.mod-toc a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.mod-toc .ic { flex: none; margin-top: 2px; color: var(--faint); }
.mod-toc li.read .ic { color: var(--good); }
.mod-prog { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.mod-prog .bar.lg { margin: 6px 0 0; }
.mod-main { min-width: 0; max-width: 900px; }
.mod-main .concept { scroll-margin-top: 140px; }
.lesson-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.lesson-foot .chip { height: 24px; font-size: 12px; }
.course-banner { margin-bottom: 14px; }
.guide-scrim { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); }
.guide-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; padding: 28px 30px 26px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); }
.guide-card h2 { font-size: 24px; margin: 4px 0 6px; }
.guide-x { position: absolute; top: 14px; right: 14px; }
.guide-steps { list-style: none; margin: 18px 0 16px; padding: 0; display: grid; gap: 14px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; }
.gs-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.guide-steps b { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.guide-steps p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 1000px) {
  .mod-layout { grid-template-columns: 1fr; }
  .mod-toc { position: static; }
  .course-mod { grid-template-columns: 36px minmax(0, 1fr); }
  .cm-act { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) { .ph { flex-direction: column; align-items: flex-start; } .ph > .btn, .ph > a.btn { margin-left: 0; } }

/* what the learner asked to cover: the box on the profile and the map on the overview */
.pf-group .field.wide { grid-column: 1 / -1; }
.cover-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cover-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); }
.cover-list li:first-child { border-top: 0; }
.cv-topic { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.cv-topic .ic { color: var(--good); }
.cover-list li.not .cv-topic { color: var(--text-2); font-weight: 500; }
.cover-list li.not .cv-topic .ic { color: var(--faint); }
.cover-list .chip.mono { font-family: var(--mono); font-size: 12px; }

/* the architecture diagram on the overview */
.arch-card { margin-top: 16px; padding: 18px 20px 14px; }
.arch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.arch-head h3 { margin: 0 0 2px; font-size: 16px; }
.arch-head .legend i.cur { background: var(--accent); }
.arch-head .legend i.later { background: transparent; border: 1.5px dashed var(--border-strong); }
.arch-wrap { overflow-x: auto; padding-bottom: 4px; }
svg.arch { display: block; margin: 0 auto; font-family: var(--sans); }
.an rect { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.2; }
.an.source rect { fill: var(--surface-2); }
.an.client rect { fill: var(--accent-soft); stroke: var(--accent); }
.an.done rect { fill: var(--good-soft); stroke: var(--good); }
.an.current rect { fill: var(--surface); stroke: var(--accent); stroke-width: 2.4; }
.an.later rect { fill: transparent; stroke-dasharray: 5 4; }
.an-name { font: 600 12.5px var(--mono); fill: var(--text); }
.an.source .an-name, .an.client .an-name { font: 600 13px var(--sans); }
.an.later .an-name { fill: var(--text-2); }
.an-sub { font: 500 11px var(--sans); fill: var(--muted); }
.an.current .an-sub { fill: var(--accent-ink); font-weight: 600; }
.an-col { font: 700 10.5px var(--sans); letter-spacing: .06em; fill: var(--muted); }
.ae { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.ae.to-current { stroke: var(--accent); stroke-width: 2; }
.ae-head { fill: var(--border-strong); }
svg.arch a:hover rect { stroke: var(--accent); stroke-width: 2; }
svg.arch a { cursor: pointer; }

/* how it works at a real company: the system's layers, what the learner builds in them, and a panel per layer */
.arch-card .utabs.sm { margin: 0 0 16px; }
.arch-card [data-how-pane="map"] .arch-head { margin-bottom: 8px; }
.rw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rw { display: flex; flex-direction: column; min-width: 0; }
.rw-layer { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 12px 14px; text-align: left;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.rw-layer:hover { border-color: var(--border-strong); }
.rw-layer.built { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.rw-layer.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rw-layer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rw-lh { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.rw-name { font-size: 14px; font-weight: 600; }
.rw-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); }
.rw-tag.cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.rw-tn { font-size: 12px; color: var(--muted); }
.rw-parts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rw-part { display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; max-width: 240px; padding: 8px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.rw-part b { font-size: 13px; font-weight: 600; }
.rw-part small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.rw-next { display: flex; align-items: center; gap: 6px; padding: 6px 0 6px 24px; font-size: 12px; color: var(--muted); }
.rw-detail { position: sticky; top: 76px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rw-detail h4 { margin: 4px 0 6px; font-size: 16px; }
.rw-detail h5 { margin: 14px 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rw-detail p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rw-tks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rw-tks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.rw-tks li .mono { font-size: 12px; color: var(--muted); margin-right: 4px; }
.rw-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rw-foot .legend i.built { background: var(--accent-soft); border: 1px solid var(--accent); }
.rw-foot p { margin: 0; }
.rw-wait { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.rw-wait p { margin: 2px 0 0; }
.rw-wait .btn { margin-left: auto; }
@media (max-width: 960px) {
  .rw-wrap { grid-template-columns: 1fr; }
  .rw-detail { position: static; }
  .rw-layer { grid-template-columns: 1fr; gap: 10px; }
  .rw-lh { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rw-part { max-width: none; }
}

/* ================================================================== warm paper: the whole app in one pattern
   a cream page, sand cards with no borders, Cabinet Grotesk headlines, pill buttons with an arrow, one orange */
html, body { background: var(--bg); font: 14.5px/1.6 var(--sans); letter-spacing: -.01em; }
body { font-feature-settings: normal; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
h1 { font-size: 44px; } h2 { font-size: 28px; } h3 { font-size: 20px; letter-spacing: -.02em; } h4 { font-size: 16px; letter-spacing: -.01em; }
a { color: var(--accent-ink); }
code { background: var(--surface-3); border: 0; border-radius: 6px; }
::selection { background: rgba(255, 107, 53, .22); }
mark.hl { color: inherit; background: var(--hl-yellow); border-radius: 999px; padding: 0 .22em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.hl.blue { background: var(--hl-blue); } mark.hl.peach { background: var(--hl-peach); }
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px; background-position: center top; opacity: .75;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 25%, transparent 75%); }

/* the shell: one light bar at the top, the page in a centred column, the mentor dock on the right */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.shell.dock-open { grid-template-columns: minmax(0, 1fr) var(--dock-w, 420px); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  height: var(--top-h); padding: 0 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border); }
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; justify-self: start; }
.top-right { display: flex; align-items: center; gap: 6px; min-width: 0; justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: var(--accent); display: grid; place-items: center; box-shadow: none; }
.brand b { font: 700 21px/1 var(--display); letter-spacing: -.03em; color: var(--text); }
.proj-switch { display: inline-flex; align-items: center; gap: 9px; height: 42px; max-width: 300px; padding: 0 12px 0 7px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--text); cursor: pointer; text-align: left; }
.proj-switch:hover { background: var(--surface-3); }
.proj-switch .tech-tile { border-radius: 50%; }
.ps-text { min-width: 0; display: grid; line-height: 1.2; }
.ps-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.proj-switch .ic-chevdown { color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 2px; justify-self: center; min-width: 0; }
.nav-item { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: 14px;
  font-weight: 450; white-space: nowrap; transition: background .15s, color .15s; }
.nav-item:hover { background: var(--card); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--card); color: var(--text); font-weight: 600; }
.nav-item .badge { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-3);
  color: var(--text-2); font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.nav-item.active .badge { background: var(--bg); }
.nav-item .badge.new { background: var(--accent); color: #fff; }
.top-search { position: relative; flex: 0 1 200px; width: 200px; height: 40px; padding: 0 12px 0 14px; gap: 8px; border-radius: 999px; background: var(--card); border: 0;
  color: var(--muted); transition: width .2s, background .15s; }
.top-search:focus-within { width: 320px; flex-basis: 320px; background: var(--surface); box-shadow: var(--ring); border-color: transparent; }
.top-search input { font-size: 14px; }
.top-search .kbds { opacity: .8; }
kbd { background: var(--bg); border: 1px solid var(--border-strong); border-radius: 6px; font: 500 11px var(--sans); }
.search-pop { top: 48px; left: auto; right: 0; width: min(420px, 90vw); border-radius: 18px; padding: 8px; background: var(--surface); border: 1px solid var(--border); }
.sr { border-radius: 12px; }
.sr.on, .sr:hover { background: var(--card); }
.ai-badge { height: 40px; padding: 0 14px; border: 0; background: var(--card); border-radius: 999px; color: var(--text-2); font-size: 13px; }
.ai-badge.on .dot { background: var(--good); }
.tool-btn { width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); }
.tool-btn:hover { background: var(--card); }
.tool-btn .ping { background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.me-btn { margin-left: 2px; padding: 0; }
.me-btn .avatar, .avatar.mgr { width: 38px; height: 38px; font-size: 13px; }
.avatar.mgr { display: grid; place-items: center; background: var(--text); color: var(--accent); }
.top-cta { margin-left: 6px; }
.menu { border-radius: 18px; padding: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); min-width: 230px; }
.menu a, .menu button { border-radius: 10px; font: 500 14px var(--sans); padding: 9px 10px; }
.menu a:hover, .menu button:hover { background: var(--card); }
.menu .tech-tile { border-radius: 6px; }
.menu-head { border-bottom: 1px solid var(--border); }
.menu-head .kind-tag { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; }
.menu-btn { display: none; }
.crumbs-row { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 32px 0; }
.crumbs-row .crumbs { font-size: 13px; }
.crumbs b { font-weight: 500; }
.app { width: 100%; max-width: 1240px; margin: 0 auto; padding: 30px 32px 110px; }
.app:has(.pj) { max-width: 1240px; }
.rail-scrim { display: none; }

/* buttons: pills; the main one is orange with an arrow in a circle */
.btn { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--card); color: var(--text); font: 500 14px var(--sans); letter-spacing: -.01em;
  box-shadow: none; gap: 8px; }
.btn:hover { background: var(--surface-3); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 999px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.primary, .btn.grad { background: var(--accent-btn); color: #fff; border: 0; box-shadow: none; padding-right: 6px; }
.btn.primary:hover, .btn.grad:hover { background: var(--accent-strong); filter: none; }
.btn.primary::after, .btn.grad::after { content: ""; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.btn.primary.sm::after, .btn.grad.sm::after { width: 24px; height: 24px; background-size: 12px; }
.btn.primary > .ic-arrow, .btn.grad > .ic-arrow { display: none; }
.btn.primary:disabled::after { opacity: .6; }
.btn.ink { background: var(--text); color: var(--bg); }
.btn.ink:hover { background: var(--text-2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--card); }
.btn:focus-visible { box-shadow: var(--ring); }
.icon-btn { border-radius: 50%; border: 0; background: var(--card); }

/* cards: sand, no border, generous corners; a card inside a card is lighter */
.card { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: none; }
.card.pad { padding: 28px 30px; }
a.card:hover, .card.tcard:hover { box-shadow: none; background: var(--surface-3); }
.card .card, .dp .card { background: var(--surface); }
.empty-state b { font-family: var(--display); font-size: 22px; font-weight: 500; }

/* labels, pills and chips */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink);
  font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.pill { height: 26px; padding: 0 11px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 500; border: 0; }
.pill.outline { background: transparent; border: 1px solid var(--border-strong); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.spill { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.spill.blue { background: var(--accent-soft); color: var(--accent-ink); } .spill.blue i { background: var(--accent); }
.spill.gray { background: var(--surface-3); }
.chip { height: 28px; padding: 0 12px; background: var(--bg); color: var(--text-2); }
.card .chip, .dp .chip { background: var(--bg); }
.kind { background: var(--bg); color: var(--text-2); border-radius: 999px; height: 26px; }
.tchip { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--bg); font: 500 12px var(--mono); }
.tchip:hover { background: var(--surface-3); }
.tag { color: var(--accent-ink); }
.count { background: var(--surface-3); }
.banner { border-radius: 16px; background: var(--accent-soft); }
.banner .icon-tile { background: var(--surface); }
.notice { border-radius: 16px; }

/* icons in tiles: an ink line icon on a light circle */
.icon-tile { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text); }
.icon-tile .ic { width: 20px; height: 20px; }
.icon-tile.teal, .icon-tile.accent { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile.bad { background: var(--accent-soft); color: var(--accent-ink); }
.icon-tile.good { background: var(--good-soft); color: var(--good-ink); }
.icon-tile.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* forms */
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea, .sort, select, textarea { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.field input, .field select { height: 44px; padding: 0 14px; }
.field textarea { padding: 12px 14px; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }

/* page headers: an eyebrow pill, a big headline, a quiet line under it */
.ph { align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.ph h1, .page-hero h1 { font-size: 46px; letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 0; }
.ph p, .page-hero p { margin: 10px 0 0; font-size: 16px; color: var(--muted); max-width: 720px; }
.page-hero { padding: 0 0 6px; margin: 0 0 26px; border-bottom: 0; align-items: flex-end; }
.page-hero .btn { background: var(--card); color: var(--text); }
.page-hero .btn:last-child { background: var(--accent-btn); color: #fff; padding-right: 6px; }
.page-hero .btn:last-child::after { content: ""; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.page-hero .btn:hover, .page-hero .btn:not(:last-child):hover { background: var(--surface-3); }
.page-hero .btn:last-child:hover { background: var(--accent-strong); }
.hero-stats span { background: var(--card); border-radius: 999px; }
.sec-head h2 { font-size: 30px; font-weight: 500; }
.sec-head h3 { font-size: 20px; }
.sec-head p { font-size: 14.5px; }

/* tabs: a sand pill with the chosen tab lifted out of it */
.utabs-row { border-bottom: 0; gap: 12px; }
.utabs, .utabs.sm { display: inline-flex; gap: 2px; padding: 4px; margin: 0; border: 0; border-radius: 999px; background: var(--card); max-width: 100%; overflow-x: auto; }
.utabs button, .utabs.sm button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; margin: 0; font: 500 13.5px var(--sans); color: var(--text-2); }
.utabs button:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.utabs button.on, .utabs.sm button.on { background: var(--surface); color: var(--text); font-weight: 600; border: 0; box-shadow: 0 1px 2px rgba(20, 20, 18, .06); }
.utabs .cnt { background: var(--bg); height: 20px; }
.utabs button.on .cnt { background: var(--card); }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--card); margin-bottom: 24px; max-width: 100%; overflow-x: auto; }
.tabs a { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; color: var(--text-2); font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; white-space: nowrap; }
.tabs a.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 18, .06); }
.sort { height: 40px; border-radius: 999px; background: var(--card); border: 0; padding: 0 12px 0 14px; }
.level-seg { border-radius: 999px; background: var(--card); }
.level-seg button { border-radius: 999px; }
.level-seg button.active { background: var(--surface); }

/* tables: inside a sand card, quiet header, hairline rows */
.dt-wrap { background: var(--card); border-radius: var(--radius); padding: 6px 20px 8px; }
.dt th { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 14px 12px; border-bottom: 1px solid var(--border); background: none; }
.dt td { padding: 18px 12px; border-bottom: 1px solid var(--border); }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt tbody tr:hover td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.dt tbody tr.sel td { background: var(--surface); }
.dt tbody tr.sel td:first-child { border-radius: 14px 0 0 14px; } .dt tbody tr.sel td:last-child { border-radius: 0 14px 14px 0; }
.dt-title { font-weight: 600; }
.dt-title:hover { color: var(--accent-ink); }
.bar, .bar.lg { background: var(--surface-3); }
.bar > i { background: var(--accent); }
table th { background: none; }
table.mini th, th { background: none; color: var(--muted); font-weight: 500; }
th, td { border-bottom: 1px solid var(--border); }

/* the side panel next to a table: a sand card that stays in view */
.pj.with-panel { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin: 0; }
.pj.with-panel .pj-main { padding: 0; }
.dp { position: sticky; top: calc(var(--top-h) + 20px); height: auto; max-height: calc(100vh - var(--top-h) - 40px); border: 0; border-radius: var(--radius);
  background: var(--card); padding: 26px 26px 24px; }
.dp h2 { font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.dp-sep { background: var(--border-strong); opacity: .6; }
.cur-task { border: 0; background: var(--surface); border-radius: 16px; }
.dp-list li { border-bottom-color: var(--border); }

/* numbers: big, light and calm */
.stat-strip, .tiles, .ov-stats { display: grid; gap: 14px; border: 0; border-radius: 0; overflow: visible; background: none; }
.stat-strip > div, .tiles .tile, .ov-stats > div { border: 0 !important; border-radius: var(--radius); background: var(--card); padding: 20px 22px; }
.stat-strip b, .tile .v, .ov-stats .v { display: block; font: 500 34px/1.05 var(--display); letter-spacing: -.03em; color: var(--text); }
.ov-stats .v.long { font-size: 22px; }
.stat-strip small, .ov-stats .k, .tile .k { color: var(--muted); font-size: 13px; }
.stat-strip small { margin: 6px 0 0; }
.stat-strip > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* the project overview: a big headline, numbered sections, a timeline of stages */
.overview { max-width: none; gap: 8px; }
.ov-hero { padding: 6px 0 10px; }
.ov-hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.04em; margin: 16px 0 12px; max-width: 980px; }
.ov-hero .lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 760px; margin: 0 0 18px; }
/* the project's title under its name: what it teaches, the technology highlighted */
.ov-hero .ov-title { font-family: var(--display, inherit); font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--text-2);
  max-width: 880px; margin: -4px 0 12px; }
.dp-sub, .folio-sub { margin: -2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.folio-sub { margin: 0 0 10px; font-size: 16px; }
.ov-hero .pill.accent { background: var(--accent-soft); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 600; }
.ov-meta span { background: var(--card); border: 0; color: var(--text-2); height: 30px; padding: 0 12px; font-size: 13px; }
.ov-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 6px; }
.ov-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 26px; }
.ov-jump { position: sticky; top: calc(var(--top-h) + 10px); z-index: 12; display: flex; gap: 2px; width: fit-content; max-width: 100%; overflow-x: auto; margin: 22px 0 0;
  padding: 4px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); }
.ov-jump button { height: 36px; padding: 0 15px; border: 0; border-radius: 999px; margin: 0; font: 500 13.5px var(--sans); color: var(--text-2); white-space: nowrap; }
.ov-jump button:hover { background: var(--surface); color: var(--text); border: 0; }
.ov-jump button.key { color: var(--accent-ink); }
.ov-sec { margin-top: 64px; }
.ov-sec, #ctx { scroll-margin-top: 150px; }
.sec-head { align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.sec-head .num, .ov-sec > .sec-head .num { width: auto; height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0;
  font: 500 40px/1 var(--display); letter-spacing: -.03em; color: var(--accent); opacity: .55; }
.ov-sec > .sec-head h2 { font-size: 36px; letter-spacing: -.035em; margin-top: 2px; }
.ov-sec > .sec-head p { font-size: 15px; color: var(--muted); max-width: 720px; margin-top: 8px; }
.ov-story { padding: 28px 30px; font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.ov-problems { gap: 14px; }
.problem { padding: 26px; gap: 6px; }
.problem .big { font: 500 36px/1.05 var(--display); letter-spacing: -.03em; color: var(--accent); margin-top: 14px; }
.problem b { font: 500 19px/1.2 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.problem p { font-size: 14px; color: var(--muted); }
.ov-value { gap: 14px; }
.ov-value .card { padding: 26px; }
.ov-value h3 { font-size: 22px; margin: 16px 0 10px; }
.ov-value li::before { background: var(--accent); }
ul.checks li::before { background: transparent; color: var(--text); content: ""; width: 18px; height: 18px; top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141412' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.pipeline { position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 860px; margin: 0 0 14px; padding-left: 74px; }
.pipeline::before { content: ""; position: absolute; left: 26px; top: 28px; bottom: 28px; width: 2px; background: var(--surface-3); }
.stage { padding: 24px 26px; }
.stage::after { display: none !important; }
.stage .step { position: absolute; left: -74px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); color: var(--text-2); font: 500 17px var(--display); letter-spacing: -.02em; text-transform: none; }
.stage .step i { display: none; }
.stage.current .step { background: var(--accent); color: #fff; }
.stage.done .step { background: var(--text); color: var(--bg); }
.stage b { font: 500 22px/1.2 var(--display); letter-spacing: -.02em; margin-top: 0; }
.stage p { font-size: 14.5px; color: var(--muted); margin: 8px 0 14px; }
dl.glossary { font-size: 14px; }

/* questions */
.question { border: 0; border-radius: 18px; background: var(--card); }
.question .opts label { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.question .opts label.sel { background: var(--accent-soft); border-color: var(--accent); }

/* inbox */
.inbox { border-radius: var(--radius); overflow: hidden; }
.mail-list { background: var(--card); border-right: 1px solid var(--border); }
.mail-item { border-bottom: 1px solid var(--border); }
.mail-item:hover { background: var(--surface-3); }
.mail-item.active { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.mail-view { background: var(--surface); }
.mail-view h2 { font-size: 30px; }

/* the ticket */
.ticket-head h1 { font-size: 38px; letter-spacing: -.035em; line-height: 1.08; }
.ticket-head .big-score b { font: 500 36px var(--display); }
.doc { background: var(--card); border: 0; border-radius: var(--radius); }
.doc h1 { font-size: 32px; } .doc h2 { font-size: 24px; } .doc h3 { font-size: 19px; }
.doc blockquote { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; }
pre.code { border-radius: 14px; }
.editor-card, .output, .query-card { border: 0; border-radius: 18px; }
.fb-head { border-radius: 18px; border: 0; }
.fb-icon { background: var(--accent); border-radius: 50%; }
.ck { border-radius: 14px; }
.brief-head { background: var(--surface); border-radius: 16px; }

/* boards, team, people */
.column { background: var(--card); border: 0; border-radius: var(--radius); }
.tcard { background: var(--surface); }
.person, .learner-card { padding: 24px; }
.learner-card:hover { transform: none; background: var(--surface-3); box-shadow: none; }

/* the course: numbered modules */
.course-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.course-mod { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px; border: 0; border-radius: var(--radius); background: var(--card); }
.course-mod.missing, .course-mod.failed { background: var(--card); }
.cm-num { width: auto; height: auto; background: none !important; color: var(--accent) !important; opacity: .6; font: 500 48px/1 var(--display); letter-spacing: -.03em; place-items: start; }
.course-mod.ready .cm-num { opacity: .85; }
.cm-title { font: 500 23px/1.15 var(--display); letter-spacing: -.02em; }
.cm-act { justify-self: start; }
.cm-lessons { grid-template-columns: 1fr; }
.mod-toc { border: 0; border-radius: var(--radius); background: var(--card); }
.mod-toc a:hover { background: var(--surface); }
.guide-card { border-radius: 24px; background: var(--bg); }
.gs-num { background: var(--accent); color: #fff; }
.guide-steps b { font: 500 17px var(--display); letter-spacing: -.01em; }

/* plans */
.plan-card { border: 0; border-radius: var(--radius); background: var(--card); padding: 30px; }
.plan-card.best { border: 0; background: var(--card); box-shadow: inset 0 0 0 2px var(--accent); }
.plan-card .price { font: 500 46px/1 var(--display); letter-spacing: -.03em; }

/* the architecture card and the course map keep to the same palette */
.arch-card, .syllabus, .ov-designed .card { background: var(--card); border: 0; }
.rw-layer { background: var(--surface); border: 0; }
.rw-layer.built { background: var(--accent-soft); border: 0; }
.rw-layer.on { box-shadow: 0 0 0 2px var(--accent); }
.rw-part { background: var(--bg); border: 0; }
.rw-layer.built .rw-part { background: var(--surface); }
.rw-detail { background: var(--surface); border: 0; }
.rw-tag { background: var(--surface); border: 0; }
.cover-list { border: 0; border-radius: 16px; background: var(--surface); }

/* overlay, toast, guide */
.overlay-card { border-radius: 24px; background: var(--bg); }
.toast { border-radius: 999px; background: var(--text); color: var(--bg); }
.spinner { border-color: var(--accent-soft); border-top-color: var(--accent); }

/* the mentor dock */
.dock { background: var(--surface); border-left: 1px solid var(--border); }
.dock-launch { border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 107, 53, .7); border: 0; }
.dock-code-bar .btn.primary { background: var(--accent); }

/* the phone tab bar */
@media (max-width: 760px) {
  .shell.has-bottom .bottom-nav { background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(14px); }
  .bottom-nav a.active { background: var(--card); color: var(--text); }
  .bottom-nav a.next { background: var(--accent); color: #fff; box-shadow: none; }
}

/* smaller screens: the bar sheds its extras, then the pages move into a menu */
@media (max-width: 1440px) {
  .ps-text small { display: none; }
  .ai-badge span { display: none; }
  .ai-badge { width: 40px; padding: 0; justify-content: center; }
  .top-search { width: 170px; flex-basis: 170px; }
  .top-search .kbds { display: none; }
}
@media (max-width: 1280px) {
  .ps-text { display: none; }
  .proj-switch { padding: 0 10px 0 7px; }
  .nav-item { padding: 0 11px; }
  .nav-item .badge:not(.new) { display: none; }
}
@media (max-width: 1200px) {
  .topbar { display: flex; padding: 0 18px; }
  .top-right { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .topnav { display: none; position: fixed; top: calc(var(--top-h) + 8px); left: 12px; right: 12px; z-index: 35; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .shell.open .topnav { display: flex; }
  .shell.open .rail-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(20, 20, 18, .25); }
  .nav-item { height: 46px; padding: 0 16px; font-size: 15px; justify-content: space-between; }
  .nav-item .badge:not(.new) { display: inline-grid; }
  .ps-text { display: grid; }
  .ps-text small { display: block; }
  .crumbs-row, .app { padding-left: 20px; padding-right: 20px; }
  .pj.with-panel { grid-template-columns: minmax(0, 1fr); }
  .dp { display: none; }
}
@media (max-width: 760px) {
  :root { --top-h: 62px; }
  .brand b { display: none; }
  .top-search, .ai-badge, .top-tools .tool-btn[title="Help"] { display: none; }
  .top-cta { display: none; }
  .proj-switch { max-width: 58vw; }
  h1, .ph h1, .page-hero h1 { font-size: 34px; }
  .ov-hero h1 { font-size: 38px; }
  .ov-hero .ov-title { font-size: 19px; }
  .ov-sec { margin-top: 44px; }
  .ov-sec > .sec-head h2 { font-size: 28px; }
  .sec-head .num, .ov-sec > .sec-head .num { font-size: 30px; }
  .ticket-head h1 { font-size: 28px; }
  .card.pad { padding: 22px 20px; }
  .pipeline { padding-left: 58px; }
  .pipeline::before { left: 20px; }
  .stage .step { left: -58px; width: 42px; height: 42px; font-size: 14px; }
  .dt-wrap { padding: 4px 14px; }
  .course-list { grid-template-columns: 1fr; }
}
.card.ov-hero { background: none; padding: 6px 0 10px; border-radius: 0; }
.card.ov-hero::after { display: none; }
.avatar { color: #fff; }
/* the bar: links centred in the space left between the sides; search is an icon until you type */
.topbar { display: flex; }
.top-left, .top-right { flex: none; }
.top-right { position: relative; }
.topnav { flex: 1 1 auto; justify-content: center; }
.top-search { width: 40px; flex: 0 0 40px; padding: 0; justify-content: center; cursor: pointer; }
.top-search > svg { position: absolute; left: 11px; top: 11px; pointer-events: none; }
.top-search input { position: absolute; inset: 0; width: 100%; padding: 0 0 0 38px; background: transparent; color: transparent; cursor: pointer; border-radius: 999px; }
.top-search input::placeholder { color: transparent; }
.top-search .kbds { display: none; }
.top-search:focus-within { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 6; width: min(380px, 70vw); flex-basis: auto; justify-content: flex-start; }
.top-search:focus-within input { color: var(--text); cursor: text; }
.top-search:focus-within input::placeholder { color: var(--muted); }
.top-search:focus-within .kbds { display: inline-flex; position: absolute; right: 12px; top: 10px; }
.search-pop { top: 50px; }
.ai-badge { display: none; }
@media (min-width: 1680px) {
  .ai-badge { display: inline-flex; width: auto; padding: 0 14px; }
  .ai-badge span { display: inline; }
}
@media (max-width: 1440px) { .top-search { width: 40px; flex-basis: 40px; } }
@media (max-width: 1280px) and (min-width: 1201px) { .topbar { padding: 0 20px; gap: 12px; } }
/* the bar inside a project: the switcher gives way first, then the counts */
.proj-switch { max-width: 290px; }  /* room for a project's name ("ShopEase Sales Data Platform") */
@media (max-width: 1560px) { .nav-item { padding: 0 11px; } }
@media (max-width: 1440px) { .proj-switch { max-width: 250px; } }
@media (max-width: 1200px) { .proj-switch { max-width: 300px; } }
@media (max-width: 1360px) and (min-width: 1201px) {
  .ps-text { display: none; }
  .proj-switch { padding: 0 10px 0 7px; }
  .nav-item .badge:not(.new) { display: none; }
}
.card.ticket-head { background: none; padding: 0 0 4px; border-radius: 0; }
.ticket-head .big-score { border-left: 1px solid var(--border-strong); }
.overview, .report { grid-template-columns: minmax(0, 1fr); }  /* the column is the page's width, never its widest child's */
.lp-hero { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1200px) {  /* the folded page menu hangs under the menu button (the bar's blur makes it the anchor) */
  .topnav { position: absolute; top: calc(100% + 8px); left: auto; right: 14px; width: min(320px, calc(100vw - 28px)); }
}
@media (min-width: 1201px) and (max-width: 1600px) {
  .shell.dock-open .topbar { position: sticky; display: flex; gap: 12px; padding: 0 18px; }
  .shell.dock-open .top-left { flex: 1 1 auto; min-width: 0; }
  .shell.dock-open .top-right { margin-left: auto; }
  .shell.dock-open .menu-btn { display: inline-grid; flex: none; }
  .shell.dock-open .topnav {
    display: none; position: absolute; top: calc(100% + 8px); left: auto; right: 14px; z-index: 35;
    width: min(320px, calc(100vw - 28px)); flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .shell.dock-open.open .topnav { display: flex; }
  .shell.dock-open.open .rail-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(20, 20, 18, .25); }
  .shell.dock-open .nav-item { height: 46px; padding: 0 16px; font-size: 15px; justify-content: space-between; }
  .shell.dock-open .nav-item .badge:not(.new) { display: inline-grid; }
}
.lp-ticker { justify-self: stretch; width: auto; margin-inline: -24px; }  /* edge to edge without widening the column */
@media (max-width: 680px) { .lp-ticker { margin-inline: -18px; } }
.two > .card { min-width: 0; overflow-x: auto; }
@media (max-width: 760px) {  /* phones: the switcher takes what the logo and the three buttons leave */
  .topbar { gap: 8px; padding: 0 14px; }
  .top-left { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .proj-switch { min-width: 0; max-width: 100%; }
  .top-right { gap: 2px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .course-list, .cm-lessons, .data-layout { grid-template-columns: minmax(0, 1fr); }
  .data-layout .row { flex-wrap: wrap; }
}

/* ================================================================== the landing page and sign-in */
.shell.bare .app { max-width: none; padding: 0; }
.lp { --lp-w: 1180px; }
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 max(24px, calc((100vw - var(--lp-w, 1180px)) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.3); }
.lp-links { flex: 1; display: flex; justify-content: center; gap: 4px; }
.lp-links button, .lp-foot-links button { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 450 14px var(--sans); cursor: pointer; }
.lp-links button:hover, .lp-foot-links button:hover { background: var(--card); color: var(--text); }
.lp-actions { display: flex; gap: 8px; margin-left: auto; }
.lp-hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding: 96px 24px 40px; overflow: hidden; }
.lp-hero::before { -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 38%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 55% 60% at 50% 38%, #000 20%, transparent 72%); }
.lp-hero h1 { margin: 0; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.045em; max-width: 1000px; }
.lp-hero h1 mark { padding: 0 .18em; transition: background .3s; }
.lp-lead { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lp-ticker { width: 100vw; overflow: hidden; margin-top: 46px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-track { display: flex; gap: 14px; width: max-content; animation: lp-slide 46s linear infinite; }
@keyframes lp-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-track { animation: none; } }
.lp-tick { display: flex; align-items: center; gap: 14px; width: 330px; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--card); text-align: left; }
.lp-tick .icon-tile { width: 46px; height: 46px; border-radius: 14px; background: var(--text); color: var(--accent); }
.lp-tick .icon-tile.good { background: var(--good); color: #fff; } .lp-tick .icon-tile.bad { background: var(--accent); color: #fff; }
.lp-tick b { display: block; font-size: 15px; font-weight: 600; }
.lp-tick span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.lp-sec { width: 100%; max-width: var(--lp-w); margin: 0 auto; padding: 120px 24px 0; scroll-margin-top: 60px; }
.lp-head { display: grid; gap: 18px; margin-bottom: 52px; }
.lp-head.center { justify-items: center; text-align: center; }
.lp-head h2 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.04em; }
.lp-head p { margin: 0; max-width: 580px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.lp-head.split { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: 40px; }
.lp-head.split > div { display: grid; gap: 18px; }
.lp-grid { display: grid; gap: 14px; }
.lp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-card { display: flex; gap: 20px; align-items: flex-start; padding: 30px; }
.lp-card h3 { margin: 0 0 8px; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.lp-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-card.tall { padding: 34px; }
.lp-card.tall .btn { margin-top: 22px; }
.lp-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); color: var(--text); }
.lp-ic .ic { stroke-width: 1.6; }
.lp-ic .ic * { fill: none; }
.lp-steps { position: relative; list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.lp-steps::before { content: ""; position: absolute; left: 33px; top: 40px; bottom: 40px; width: 2px; background: var(--surface-3); }
.lp-steps li { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 22px; align-items: center; }
.lp-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--card); color: var(--text-2);
  font: 500 24px var(--display); letter-spacing: -.02em; }
.lp-steps li.on .lp-step-n { background: var(--accent); color: #fff; }
.lp-steps li.on::before { content: ""; position: absolute; left: 33px; top: -14px; height: 50%; width: 2px; background: var(--accent); }
.lp-mod { display: flex; flex-direction: column; padding: 32px 30px 30px; }
.lp-num { font: 500 58px/1 var(--display); letter-spacing: -.04em; color: var(--accent); opacity: .55; margin-bottom: 34px; }
.lp-mod h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.12; letter-spacing: -.025em; }
.lp-mod > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.lp-checks { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); line-height: 1.45; }
.lp-checks .ic { margin-top: 2px; color: var(--text); }
.lp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--lp-w); margin: 0 auto; padding: 120px 24px 0; text-align: center; }
.lp-stats b { display: block; font: 500 76px/1 var(--display); letter-spacing: -.04em; }
.lp-stats span { display: block; max-width: 260px; margin: 12px auto 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lp-band { display: grid; justify-items: center; gap: 20px; margin-top: 110px; padding: 120px 24px; text-align: center; overflow: hidden; }
.lp-band h2 { margin: 0; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.06; letter-spacing: -.045em; }
.lp-band p { margin: 0; color: var(--muted); font-size: 16.5px; }
.lp-plan { display: flex; flex-direction: column; gap: 14px; padding: 32px 30px; }
.lp-plan.best { box-shadow: inset 0 0 0 2px var(--accent); }
.lp-price { font: 500 54px/1 var(--display); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lp-price small { font: 400 15px var(--sans); letter-spacing: -.01em; color: var(--muted); }
.lp-plan p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.lp-plan .btn { margin-top: 10px; }
.lp-more { display: grid; justify-items: center; gap: 8px; margin: 70px 0 0; text-align: center; }
.lp-more h3 { margin: 0; font-size: 30px; }
.lp-more p { margin: 0 0 8px; }
.lp-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; margin-top: 120px; padding: 70px max(24px, calc((100vw - var(--lp-w, 1180px)) / 2)) 50px;
  border-top: 1px solid var(--border); overflow: hidden; }
.lp-foot p { margin: 12px 0 0; }
.lp-foot small { grid-column: 1 / -1; }
.lp-foot-links { display: flex; gap: 2px; flex-wrap: wrap; }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page::before { -webkit-mask-image: radial-gradient(ellipse 50% 55% at 50% 45%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 50% 55% at 50% 45%, #000 20%, transparent 72%); }
.auth-wrap { flex: 1; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 30px 20px 60px; }
.auth-card { width: min(470px, 92vw); padding: 30px 30px 28px; border-radius: 24px; background: var(--card); box-shadow: none; }
.auth-card .seg { display: flex; gap: 2px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--bg); border: 0; }
.auth-card .seg button { flex: 1; height: 38px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 500 14px var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; }
.auth-card .seg button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 18, .06); }
.door-intro h2 { margin: 0 0 8px; font-size: 34px; line-height: 1.08; letter-spacing: -.035em; }
.door-intro p { margin: 0 0 18px; }
.auth-form { display: grid; gap: 14px; }
.auth-form .btn.primary { margin-top: 6px; width: 100%; height: 48px; justify-content: space-between; padding-left: 22px; }
.sso { display: grid; gap: 8px; }
.sso-btn { width: 100%; background: var(--surface); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.divider span { background: none; padding: 0; }
.auth-error { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--bad-soft); color: var(--bad-ink); font-size: 13.5px; }
.mgr-link { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-strong); font-size: 13.5px; color: var(--muted); }
.mgr-link a { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.auth-note { max-width: 440px; margin: 0; text-align: center; color: var(--muted); font-size: 13.5px; }
@media (max-width: 1000px) {
  .lp-links { display: none; }
  .lp-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-head.split { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .lp-nav { height: 62px; gap: 10px; }
  .lp-nav .brand b { display: none; }
  .lp-actions .btn { height: 38px; padding: 0 14px; }
  .lp-actions .btn.primary { padding-right: 5px; }
  .lp-hero { padding: 60px 18px 20px; }
  .lp-lead { font-size: 16px; }
  .lp-sec { padding: 84px 18px 0; }
  .lp-grid.two, .lp-grid.three { grid-template-columns: 1fr; }
  .lp-card { flex-direction: column; padding: 24px; gap: 16px; }
  .lp-steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .lp-step-n { width: 52px; height: 52px; font-size: 19px; }
  .lp-steps::before, .lp-steps li.on::before { left: 25px; }
  .lp-stats { grid-template-columns: 1fr; padding-top: 84px; gap: 34px; }
  .lp-stats b { font-size: 64px; }
  .lp-band { padding: 84px 18px; margin-top: 84px; }
  .lp-foot { grid-template-columns: 1fr; padding: 50px 18px 40px; }
}
/* a quiet button inside a sand card is lighter than the card */
.card .btn:not(.primary):not(.grad):not(.ink), .dp .btn:not(.primary):not(.grad):not(.ink), .lp-plan .btn:not(.primary) { background: var(--surface); }
.card .btn:not(.primary):not(.grad):not(.ink):hover, .dp .btn:not(.primary):not(.grad):not(.ink):hover { background: var(--bg); }
.lp-tick > div span { display: block; }
.lp-tick span.icon-tile { display: grid; }

/* ================================================================== reviews: the stage and final check-ins */
.rv { display: grid; gap: 14px; max-width: 920px; }
.rv .ph { margin-bottom: 4px; }
.rv-steps { display: flex; gap: 2px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 999px; background: var(--card); margin-bottom: 8px; }
.rv-steps button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 6px; border: 0; border-radius: 999px; background: none;
  color: var(--text-2); font: 500 13.5px var(--sans); white-space: nowrap; cursor: pointer; }
.rv-steps button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font: 600 11px var(--sans); }
.rv-steps button.done span { background: var(--text); color: var(--bg); }
.rv-steps button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 20, 18, .06); }
.rv-steps button.on span { background: var(--accent); color: #fff; }
.rv-steps button:disabled { opacity: .5; cursor: default; }
.rv-card h2, .rv-head h2 { margin: 12px 0 8px; font-size: 32px; letter-spacing: -.03em; }
.rv-card > p { font-size: 15px; line-height: 1.6; }
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.rv-head p { margin: 0; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.rv-wait { display: flex; align-items: center; gap: 14px; }
.rv-wait p { margin: 2px 0 0; }
.rv-wait .btn { margin-left: auto; }
.rv-rate { display: grid; gap: 10px; margin-top: 18px; }
.rv-rate-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.rv-skill b { display: block; font-size: 14.5px; }
.rv-skill small { display: block; margin-top: 2px; font-size: 12px; }
.rv-dots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.rv-dots button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 0; border-radius: 12px; background: var(--card); color: var(--text-2); cursor: pointer;
  font: 500 11.5px/1.25 var(--sans); text-align: center; transition: background .15s; }
.rv-dots button b { font: 500 20px/1 var(--display); color: var(--text); }
.rv-dots button:hover { background: var(--surface-3); }
.rv-dots button.on { background: var(--accent); color: #fff; }
.rv-dots button.on b { color: #fff; }
.rv-q { display: grid; gap: 10px; }
.rv-q.done { background: var(--card); }
.rv-q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-n { font: 500 30px/1 var(--display); letter-spacing: -.03em; color: var(--accent); opacity: .6; margin-right: 4px; }
.rv-quote { margin: 4px 0 0; max-height: 220px; overflow: auto; }
.rv-q h3 { margin: 4px 0 2px; font-size: 22px; line-height: 1.25; }
.rv-answer { display: grid; gap: 10px; }
.rv-answer textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font: 14.5px/1.55 var(--sans); resize: vertical; }
.rv-coach { display: grid; gap: 10px; }
.rv-said { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; }
.rv-c { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.rv-c b { display: block; font-size: 13.5px; }
.rv-c p { margin: 2px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rv-c.good > .ic { color: var(--good); }
.rv-c.add > .ic { color: var(--accent); }
.rv-win { display: flex; gap: 14px; align-items: center; margin: 16px 0 4px; padding: 16px 18px; border-radius: 16px; background: var(--good-soft); color: var(--good-ink); }
.rv-win b { font: 500 20px var(--display); color: var(--text); }
.rv-win p { margin: 2px 0 0; color: var(--text-2); }
.rv-editor { margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--code-bg); }
.rv-editor .editor { height: 220px; }
.rv-solo-actions { margin-top: 12px; gap: 8px; }
.rv-out, .rv-result, .rv-model { margin-top: 14px; display: grid; gap: 8px; }
.rv-side { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.rv-side b { display: block; font-size: 13.5px; }
.rv-side p { margin: 2px 0 0; }
.rv-side.ok > .ic { color: var(--good); }
.rv-side.no > .ic { color: var(--accent); }
.rv-sum h2 { font-size: 30px; line-height: 1.2; max-width: 760px; }
.rv-ev { display: grid; gap: 8px; margin-top: 18px; }
.rv-ev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.rv-ev-row b { font-size: 14.5px; }
.rv-growth { display: inline-flex; align-items: baseline; gap: 6px; color: var(--muted); }
.rv-growth span { font: 500 20px var(--display); color: var(--muted); }
.rv-growth b { font: 500 26px var(--display); color: var(--text); }
.rv-growth small { font-size: 12px; }
.rv-growth .ic { align-self: center; }
.rv-next { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); }
.rv-next ul { margin: 6px 0 0; padding-left: 18px; }
.rv-left { margin: 4px 0 0; }
.cm-review { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface); font-size: 13.5px; }
.cm-review .btn { margin-left: auto; }
.cm-review.locked { color: var(--muted); background: transparent; padding: 4px 0; flex-wrap: nowrap; align-items: flex-start; }
.cm-review.locked > .ic { margin-top: 3px; }
.cm-review.ready { background: var(--accent-soft); }
.cm-review.ready > .ic, .cm-review.started > .ic { color: var(--accent); }
.cm-review.done > .ic { color: var(--good); }
.rv-final { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-top: 14px; padding: 26px 28px; }
.rv-final h3 { margin: 10px 0 4px; font-size: 26px; }
.rv-final p { margin: 0; }
.rv-final .cm-num { color: var(--accent); opacity: .8; }
.stage-review { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 13.5px; color: var(--accent-ink); }
.rv-banner { align-items: center; }
.itv-round { margin-bottom: 8px; }

/* speaking an answer, and hearing a question */
.mic-btn.on { background: var(--bad-soft); color: var(--bad-ink); }
.mic-btn.on .ic { animation: mic-pulse 1.1s ease-in-out infinite; }
@keyframes mic-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mic-btn.on .ic { animation: none; } }
.mic-live { margin: -2px 0 2px; padding: 6px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad-ink); font-size: 13px; font-style: italic; }
.mic-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; }
.mic-note .ic { margin-top: 3px; flex: none; }
.say-btn { margin-top: 8px; }
.say-btn.on { background: var(--accent-soft); color: var(--accent-ink); }
.rv-say { margin: 0 0 0 auto; }
.rv-files { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.rv-files > .ic { color: var(--accent); flex: none; }
.rv-files p { margin: 2px 0 0; }
.rv-files .btn { margin-left: auto; flex: none; }
.rv-answers { display: grid; gap: 10px; margin-top: 18px; }
.rv-ans { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.rv-ans label { display: grid; gap: 2px; }
.rv-ans label b { font-size: 14.5px; }
.rv-ans-in { display: flex; align-items: center; gap: 10px; }
.rv-ans-in input { width: min(320px, 100%); height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); font: 15px var(--sans); }
.rv-ans-in input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.rv-ans.ok .rv-ans-in > .ic { color: var(--good); }
.rv-ans.no .rv-ans-in > .ic { color: var(--accent); }
.rv-ans.ok input { border-color: var(--good); }
.rv-ans-msg { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .rv-files { flex-wrap: wrap; } .rv-files .btn { margin-left: 0; } }
.rv-banner .btn { margin-left: auto; flex: none; }
@media (max-width: 760px) {
  .rv-card h2, .rv-head h2 { font-size: 26px; }
  .rv-rate-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rv-dots button span { display: none; }
  .rv-ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rv-ev-row .spill { grid-column: 1 / -1; justify-self: start; }
  .rv-final { grid-template-columns: minmax(0, 1fr); }
  .rv-final .cm-num { display: none; }
}
