/* A&S Platform — clickable prototype styles */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('vendor/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('vendor/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('vendor/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('vendor/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f8f8f6; --sunken: #f1f1ee; --hover: #f3f3f1;
  --ink: #15171a; --ink-2: #3b4047; --muted: #6b7179; --line: #e2e2dc; --line-2: #ecece7;
  --top: #111315; --top-ink: #e9eaec; --top-muted: #8b9098;
  --accent: #2547d0; --accent-hover: #1d3bb3; --accent-soft: #edf0fc;
  --ok: #1b7444; --ok-soft: #e7f3eb; --warn: #8f5d00; --warn-soft: #faf1dc; --bad: #ad3420; --bad-soft: #fae8e3;
  --c: #4757b5; --cpp: #1c7486; --python: #a87612; --java: #ab4b27; --csharp: #6a3db0;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(17, 19, 21, .04);
  --sb-w: 248px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; font-weight: 650; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code, .mono, pre, .CodeMirror, .console { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; }
code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.proto-strip { background: #2b2d31; color: #c9ccd1; font-size: 11.5px; letter-spacing: .04em; text-align: center; padding: 4px 16px; text-transform: uppercase; }

/* ---------- Kaggle-style shell ---------- */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; padding: 8px 12px 16px; scrollbar-width: thin; z-index: 30; }
.sb-head { display: flex; align-items: center; gap: 6px; height: 56px; padding-left: 2px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { display: inline-grid; place-items: center; height: 26px; padding: 0 6px; background: var(--ink); color: #fff; border-radius: 6px; font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.sb-create { padding: 6px 2px 12px; }
.create-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .05); font-weight: 600; cursor: pointer; color: var(--ink); }
.create-btn:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .14), 0 6px 16px rgba(0, 0, 0, .07); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-item { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 14px; border-radius: 20px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.sb-item:hover { background: var(--hover); color: var(--ink); }
.sb-item.active { background: var(--sunken); color: var(--ink); font-weight: 600; }
.sb-item.active .ic { color: var(--ink); }
.sb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 14px 14px 6px; }
.sb-views { display: grid; grid-template-columns: repeat(3, auto); background: var(--sunken); border-radius: 10px; padding: 3px; margin: 0 6px 8px; }
.sb-views a { text-align: center; font-size: 11.5px; font-weight: 500; padding: 6px 7px; border-radius: 8px; color: var(--muted); }
.sb-views a:hover { color: var(--ink); }
.sb-views a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); font-weight: 600; }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-sep { height: 1px; background: var(--line-2); margin: 12px 8px; }
.sb-ver { font-variant-numeric: tabular-nums; opacity: .8; }
.sb-foot { margin-top: auto; padding: 16px 14px 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.nav-collapsed { --sb-w: 76px; }
.nav-collapsed .sb-item span, .nav-collapsed .brand-name, .nav-collapsed .sb-label, .nav-collapsed .sb-views, .nav-collapsed .sb-foot, .nav-collapsed .create-btn span { display: none; }
.nav-collapsed .sb-item { justify-content: center; padding: 0; }
.nav-collapsed .create-btn { padding: 0; width: 44px; justify-content: center; }
.nav-collapsed .sb-head .brand { display: none; }
.scrim { display: none; }
.main-col { min-width: 0; }
.tb { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); }
.tb-menu { display: none; }
.tb-search { flex: 1; max-width: 760px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--muted); }
.tb-search:focus-within { border-color: var(--ink-2); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.tb-search input { flex: 1; border: 0; outline: none; height: 100%; background: none; min-width: 0; color: var(--ink); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--sunken); border-radius: 16px; padding: 2px; }
.lang-switch button { border: 0; background: none; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 14px; cursor: pointer; color: var(--muted); }
.lang-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.preview-chip { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid #c9d3f6; border-radius: 12px; padding: 3px 10px; white-space: nowrap; cursor: help; }
.proto-chip { font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--warn); background: var(--warn-soft); border-radius: 12px; padding: 4px 10px; cursor: help; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; background: #3b4047; }
.create-menu { position: absolute; z-index: 60; width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); padding: 6px; }
.cm-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px 6px; }
.create-menu button { display: grid; gap: 1px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.create-menu button:hover { background: var(--hover); }
.create-menu button span { font-size: 12px; color: var(--muted); }

/* ---------- page scaffolding ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 12px 28px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.lead-sm { color: var(--muted); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.section { margin-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel, .tiles + .panel, .tiles + .grid-main, .grid-main + .panel, .grid-main + .section { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head p { margin: 0; }
.panel-h { margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.panel-inner h3 { margin-bottom: 6px; }
.stack { display: grid; gap: 14px; align-content: start; }
.stack .panel + .panel { margin-top: 0; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-main > .panel, .grid-side > .panel { margin-top: 0; }
.scroll-x { overflow-x: auto; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.tile-value { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile-hint { font-size: 12px; color: var(--muted); }

/* ---------- buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { border-color: #c9c9c2; background: var(--surface-2); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e33; border-color: #2a2e33; color: #fff; }
.btn-ghost { background: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--accent-soft); color: var(--accent); }
.chip-muted { background: var(--sunken); color: var(--muted); }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.lang::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--dot, var(--muted)); }
.lang-c { --dot: var(--c); } .lang-cpp { --dot: var(--cpp); } .lang-python { --dot: var(--python); } .lang-java { --dot: var(--java); } .lang-csharp { --dot: var(--csharp); }
.pills { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 13px; cursor: pointer; }
.pill:hover { color: var(--ink); border-color: #c9c9c2; }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- rows ---------- */
.rows { display: grid; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 4px; border-top: 1px solid var(--line-2); color: var(--ink); }
.row-link:first-child { border-top: 0; }
a.row-link:hover { background: var(--surface-2); color: var(--ink); }
.row-title { font-weight: 600; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; flex-shrink: 0; }
.row-due { color: var(--ink-2); min-width: 110px; }
.row-due.soon { color: var(--warn); font-weight: 600; }
.row-score { min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.rows.compact .row-link { padding: 10px 4px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
a.card:hover { border-color: #c4c4bc; color: var(--ink); transform: translateY(-1px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
.card-title { font-weight: 600; font-size: 15px; }
.card-sub { color: var(--muted); font-size: 13px; }
.card-foot { display: flex; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.me td { background: var(--accent-soft); }
.tbl tr.fresh td { background: #f3f8f4; }
.tbl tr.subrow td { padding-top: 0; border-bottom-color: var(--line-2); }
.tbl tr.sep td { padding-top: 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.tbl .rank { color: var(--muted); font-weight: 600; width: 40px; }
.tbl .up { color: var(--ok); font-weight: 600; } .tbl .down { color: var(--bad); font-weight: 600; }
.tbl select, .tbl .num-in { height: 30px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 0 8px; }
.tbl .num-in { width: 64px; text-align: right; }
.tbl-rates td:first-child { width: 48%; }
.err-inline { background: var(--bad-soft); color: var(--bad); display: inline-block; }
.bar-cell { display: flex; align-items: center; gap: 10px; }
.meter { flex: 1; min-width: 60px; max-width: 160px; height: 6px; background: var(--sunken); border-radius: 3px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.meter-warn span { background: #c98a12; } .meter-bad span { background: var(--bad); }
.role { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--sunken); }
.role-admin { color: var(--bad); } .role-instructor { color: var(--accent); } .role-ta { color: var(--cpp); }

/* ---------- assignment header + tabs ---------- */
.a-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.a-title p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.a-actions { display: flex; gap: 8px; align-items: center; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--ink-2); }
.a-meta b { font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-right: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-count { font-size: 11px; background: var(--sunken); color: var(--ink-2); border-radius: 9px; padding: 0 6px; line-height: 18px; font-weight: 600; }

.prose h3 { margin: 18px 0 6px; font-size: 15px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose li { margin: 3px 0; }
.example { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.example span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.example pre, .codeblock { margin: 6px 0 0; background: var(--sunken); border-radius: var(--radius-sm); padding: 10px 12px; font: 13px/1.5 var(--mono); overflow-x: auto; }
.codeblock { margin-top: 16px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.kv-wide { grid-template-columns: 220px 1fr; }
.kv-wide dd { text-align: left; }
.filelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12.5px; }

/* ---------- workspace ---------- */
.ws { display: grid; gap: 12px; }
.ws-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-env { display: flex; align-items: center; gap: 10px; font-size: 12.5px; flex-wrap: wrap; }
.ws-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-main { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.ws-tree { background: var(--surface-2); border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tree-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); padding: 10px 8px 4px; }
.tree-item { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 5px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.tree-item:hover { background: var(--sunken); }
.tree-item.active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 500; }
.tree-item.static { cursor: default; color: var(--muted); }
.tree-item.static:hover { background: none; }
.lock { font-size: 10.5px; color: var(--muted); font-family: var(--font); }
.ws-editor { min-width: 0; display: flex; flex-direction: column; }
.ed-tabs { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; height: 38px; border-bottom: 1px solid var(--line); font-size: 12px; }
.ed-tab { font-weight: 500; color: var(--ink); }
.ed-host .CodeMirror { height: 440px; }
.ws-console { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.console-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.console-tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.console-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.busy { margin-left: auto; font-size: 12px; color: var(--warn); font-weight: 500; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.console { margin: 0; padding: 14px 16px; font: 13px/1.6 var(--mono); min-height: 120px; white-space: pre-wrap; background: #fcfcfa; }
.console .warn { color: var(--warn); }
.console .err, .err-text { color: var(--bad); }
.ok-text { color: var(--ok); font-weight: 600; }
.console-empty { padding: 30px 16px; color: var(--muted); text-align: center; }
.tests-sum { padding: 12px 16px 4px; font-size: 13px; }
.tbl-tests { margin: 4px 0 6px; }
.tbl-tests td { padding: 8px 16px; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; font-weight: 500; }
.proto-note { font-size: 12.5px; color: var(--muted); margin: 0; }

/* notebook */
.kernel { font-size: 12px; font-weight: 500; color: var(--ok); display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.kernel::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kernel.busy { color: var(--warn); }
.nb { display: grid; gap: 10px; }
.cell { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.cell-gutter { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 10px; font-size: 12px; color: var(--muted); }
.cell-gutter .run { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; font-size: 11.5px; padding: 2px 8px; cursor: pointer; font-weight: 500; }
.cell-gutter .run:hover { border-color: var(--ink); }
.cell-body { min-width: 0; }
.cell-code .cell-body { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.cell-task .cell-body { border-color: #b9c4f2; box-shadow: 0 0 0 3px var(--accent-soft); }
.cell-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); padding: 6px 12px 0; }
.cell-md .cell-body { padding: 6px 2px; }
.cell-md h3 { font-size: 18px; margin-bottom: 6px; }
.cell-ed .CodeMirror { height: auto; }
.cell-out { border-top: 1px dashed var(--line); padding: 10px 14px; font-size: 13px; background: #fcfcfa; }
.cell-out pre { margin: 0; font: 13px/1.55 var(--mono); white-space: pre-wrap; }
.cell-out .err { color: var(--bad); }
.nb-add { padding-left: 72px; }
.plot { width: 100%; max-width: 680px; height: auto; display: block; }
.plot-raw { fill: none; stroke: #9aa0a8; stroke-width: 1.2; }
.plot-smooth { fill: none; stroke: var(--accent); stroke-width: 2; }
.plot-raw-k { fill: #9aa0a8; } .plot-smooth-k { fill: var(--accent); }
.plot-legend text { font: 11px var(--font); fill: var(--muted); }

/* CodeMirror theme */
.CodeMirror { font: 13px/1.6 var(--mono); color: var(--ink); background: var(--surface); }
.CodeMirror-gutters { background: var(--surface); border-right: 1px solid var(--line-2); }
.CodeMirror-linenumber { color: #b0b4ba; padding: 0 10px 0 6px; }
.CodeMirror-lines { padding: 10px 0; }
.CodeMirror-cursor { border-left: 2px solid var(--accent); }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: #dfe5fb; }
.cm-s-default .cm-keyword { color: #7a3fb0; font-weight: 500; }
.cm-s-default .cm-type, .cm-s-default .cm-variable-3 { color: #1c7486; }
.cm-s-default .cm-def { color: #2547d0; }
.cm-s-default .cm-string { color: #2f7d32; }
.cm-s-default .cm-number { color: #b0541e; }
.cm-s-default .cm-comment { color: #8a9099; font-style: italic; }
.cm-s-default .cm-meta { color: #ab4b27; }
.cm-s-default .cm-builtin { color: #1c7486; }
.cm-s-default .cm-operator { color: var(--ink-2); }
.editor-fallback { width: 100%; height: 440px; border: 0; padding: 12px 14px; font: 13px/1.6 var(--mono); resize: vertical; outline: none; }
.cell-ed .editor-fallback { height: 120px; }

/* ---------- leaderboard lock + results ---------- */
.locked { text-align: center; padding: 40px 20px; background: repeating-linear-gradient(-45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); border: 1px dashed var(--line); border-radius: var(--radius); }
.locked-title { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.locked p { max-width: 520px; margin: 0 auto 6px; }
.result { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 14px; }
.result.ok { background: var(--ok-soft); } .result.warn { background: var(--warn-soft); } .result.bad { background: var(--bad-soft); }
.result.bad .result-score { color: var(--bad); }
.result-score { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result.ok .result-score { color: var(--ok); } .result.warn .result-score { color: var(--warn); }

/* ---------- modal + toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 19, 21, .45); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 12px; padding: 24px; width: min(520px, 100%); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.steps li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .2s; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- wizard ---------- */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0; margin: 0 0 18px; }
.stepper a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; }
.stepper span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); font-size: 11.5px; font-weight: 600; flex-shrink: 0; }
.stepper li.active a { border-color: var(--ink); color: var(--ink); }
.stepper li.active span { background: var(--ink); color: #fff; }
.stepper li.done span { background: var(--ok-soft); color: var(--ok); }
.wizard { padding: 24px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-stack { display: grid; gap: 22px; max-width: 760px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-label { font-weight: 600; font-size: 13px; }
.field-hint { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea, .search { height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--surface); width: 100%; }
.field textarea { height: auto; padding: 9px 12px; resize: vertical; }
.static-val { min-height: 38px; display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 13px; }
.search { max-width: 320px; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.radio.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.radio input { margin-top: 3px; accent-color: var(--ink); }
.radio span { display: grid; gap: 2px; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
.upload-row { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; font-size: 13px; }
.split { display: flex; gap: 22px; margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.split b { color: var(--ink); font-size: 16px; margin-right: 3px; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; }
.checklist li::before { content: ''; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--line); flex-shrink: 0; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- charts ---------- */
.hist { width: 100%; height: auto; display: block; }
.hist .bar { fill: var(--ink-2); }
.hist .bar-val { font: 600 11px var(--font); fill: var(--ink-2); text-anchor: middle; }
.hist .bar-lbl { font: 11px var(--font); fill: var(--muted); text-anchor: middle; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 16px; }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sec-head .ic { color: var(--ink-2); }
.sec-head h2 { font-size: 18px; font-weight: 600; }
.sec-extra { margin-left: auto; font-size: 13px; font-weight: 500; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.h2-lg { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.section { margin-top: 40px; padding-top: 4px; }

/* ---------- home (Kaggle-style) ---------- */
.home-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 18px; flex-wrap: wrap; }
.home-head h1 { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 6px; }
.home-widgets { display: flex; gap: 28px; }
.hw { display: grid; justify-items: center; gap: 2px; min-width: 96px; }
.hw-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hw-big { font-size: 26px; font-weight: 650; line-height: 1; }
.hw-sub { font-size: 11.5px; color: var(--muted); text-align: center; }
.ring-wrap { position: relative; width: 56px; height: 56px; }
.ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 650; }
.ring { width: 56px; height: 56px; }
.ring-bg { fill: none; stroke: var(--sunken); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; }
.heat-days, .heat { display: grid; grid-template-columns: repeat(7, 9px); gap: 3px; }
.heat-days span { font-size: 8.5px; color: var(--muted); text-align: center; }
.heat i { width: 9px; height: 9px; border-radius: 2px; background: var(--sunken); }
.heat i.h1 { background: #bfe0c8; } .heat i.h2 { background: #74bb8a; } .heat i.h3 { background: var(--ok); }
.statrow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.stat .ic { color: var(--muted); margin-top: 2px; }
.stat-l { font-size: 13px; font-weight: 600; }
.stat-v { font-size: 22px; font-weight: 650; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat-h { font-size: 11.5px; color: var(--muted); }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.focus { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); background: var(--surface); transition: box-shadow .15s; }
.focus:hover { color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.banner { display: block; width: 100%; height: auto; }
.focus .banner { height: 84px; }
.focus-ic { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.focus-body { display: grid; gap: 4px; padding: 14px 16px 14px; font-size: 13px; }
.focus-body strong { font-size: 15px; }
.focus-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-weight: 600; font-size: 13px; }
.focus-go .ic { width: 16px; height: 16px; }
.todo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); }
.todo li:first-child { border-top: 0; }
.todo li a { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--ink); flex: 1; min-width: 0; }
.todo li a:hover { color: var(--accent); }
.todo li .ic { color: var(--muted); }
.todo li.ok a { color: var(--muted); text-decoration: line-through; }
.todo li.ok .ic { color: var(--ok); }
.todo-box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--line); flex-shrink: 0; margin-right: 6px; }
.todo li.ok .todo-box { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px #fff; }
.mini-stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 16px 0 18px; }
.mini-stats > div { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; }
.mini-stats .ic { width: 18px; height: 18px; color: var(--muted); }
.ms-l { font-size: 13px; font-weight: 600; }
.mini-stats strong { grid-column: 2; font-size: 20px; font-weight: 650; line-height: 1.3; }
.ms-h { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.assign-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.acards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.acard, .lcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); background: var(--surface); transition: box-shadow .15s; }
a.acard:hover, a.lcard:hover { color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.acard .banner { height: 92px; }
.acard-body, .lcard-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.acard-body strong, .lcard-body strong { font-size: 14.5px; }
.acard-body p { font-size: 12.5px; color: var(--muted); margin: 0; flex: 1; }
.acard-type { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.acard-type .ic { width: 14px; height: 14px; }
.acard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.pulse { display: grid; gap: 4px; }
.pulse-h { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pulse-item { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink); font-size: 13px; }
.pulse-item:hover { color: var(--accent); }
.pulse-item .muted.small:first-of-type { justify-self: end; }
.pulse-item strong, .pulse-item > span:last-child { grid-column: 1 / -1; }
.ann { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin-top: 10px; }
.ann-k { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.ann strong { display: block; margin-bottom: 4px; }
.ann p { font-size: 13px; }
.feed { display: grid; gap: 14px; margin-top: 10px; max-width: 820px; }
.fcard { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.fhead { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.fmain { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.fmain .banner { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; }
.fmeta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ffiles { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.ffile { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ffile .ic { width: 16px; height: 16px; color: var(--muted); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lcard .banner { height: 96px; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f3d36b; color: #5c4400; font-weight: 700; font-size: 12px; }

/* ---------- overview (first page) ---------- */
.ov-hero { padding: 26px 0 8px; max-width: 820px; }
.ov-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin: 6px 0 14px; }
.ov-hero .lead { font-size: 16.5px; color: var(--ink-2); }
.hero-langs { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.hero-langs .lang { height: 28px; padding: 0 11px; font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); }
.ov-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.view-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); background: var(--surface); transition: box-shadow .15s, transform .15s; }
.view-card:hover { color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.vc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.vc-role { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.vc-body h2 { font-size: 20px; }
.vc-body p { color: var(--ink-2); font-size: 13.5px; margin: 0; }
.vc-body ul { margin: 6px 0 14px; padding-left: 18px; font-size: 13px; color: var(--ink-2); flex: 1; }
.vc-body li { margin: 3px 0; }
.vc-body .btn { align-self: flex-start; }
.pv { display: grid; grid-template-columns: 22% 1fr; height: 150px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); padding: 12px; gap: 10px; }
.pv-side { display: grid; align-content: start; gap: 7px; padding-top: 4px; }
.pv-side i { height: 7px; border-radius: 4px; background: #dcdcd6; }
.pv-side i:first-child { width: 70%; height: 14px; border-radius: 7px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); margin-bottom: 4px; }
.pv-main { display: grid; align-content: start; gap: 8px; background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.pv-top { height: 9px; width: 60%; border-radius: 5px; background: #e6e6e1; }
.pv-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-row i { height: 16px; border-radius: 4px; background: var(--sunken); }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-cards b { height: 38px; border-radius: 5px; background: linear-gradient(180deg, rgba(71, 87, 181, .22) 45%, #f4f4f1 45%); }
.pv-cards b:nth-child(2) { background: linear-gradient(180deg, rgba(192, 138, 30, .25) 45%, #f4f4f1 45%); }
.pv-cards b:nth-child(3) { background: linear-gradient(180deg, rgba(171, 75, 39, .22) 45%, #f4f4f1 45%); }
.pv-lines { display: grid; gap: 5px; }
.pv-lines i, .pv-table i { height: 6px; border-radius: 3px; background: #ecece7; }
.pv-lines i:last-child { width: 70%; }
.pv-chart { display: flex; align-items: flex-end; gap: 6px; height: 42px; }
.pv-chart s { flex: 1; background: #3b4047; border-radius: 2px; text-decoration: none; }
.pv-table { display: grid; gap: 8px; padding-top: 4px; }
.pv-table i { height: 9px; background: linear-gradient(90deg, #e9e9e4 70%, #cfe8d7 70%, #cfe8d7 85%, transparent 85%); }
.ov-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.ov-step { border-top: 2px solid var(--ink); padding-top: 14px; }
.ov-step-n { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--ink-2); }
.ov-step-n span { font-size: 12px; font-weight: 700; color: var(--muted); }
.ov-step h3 { font-size: 15px; margin-bottom: 4px; }
.ov-step p { font-size: 13px; color: var(--muted); }
.ov-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.ov-foot h3 { margin-bottom: 6px; }
.ov-foot p { color: var(--muted); font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .assign-wrap { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .grid-main, .grid-side { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(3, 1fr); }
  .ov-views { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  .nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(17, 19, 21, .35); z-index: 25; }
  .nav-collapsed { --sb-w: 248px; }
  .tb-menu { display: grid; }
  .tb { padding: 0 12px; gap: 8px; }
  .acards, .focus-grid { grid-template-columns: 1fr 1fr; }
  .ov-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .page { padding: 8px 16px 64px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .statrow { grid-template-columns: 1fr 1fr; }
  .acards, .focus-grid, .ann, .ov-views, .ov-steps, .ov-foot, .form-grid, .radios, .example { grid-template-columns: 1fr; }
  .home-head h1 { font-size: 26px; }
  .home-widgets { gap: 18px; width: 100%; justify-content: space-between; }
  .proto-chip { display: none; }
  .row-link { flex-direction: column; align-items: flex-start; gap: 8px; }
  .row-meta { flex-wrap: wrap; gap: 10px; }
  .row-score { text-align: left; min-width: 0; }
  .ws-main { grid-template-columns: 1fr; }
  .ws-tree { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .tree-h { width: 100%; }
  .cell { grid-template-columns: 1fr; }
  .cell-gutter { flex-direction: row; justify-content: space-between; padding-top: 0; }
  .nb-add { padding-left: 0; }
  .kv-wide { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .fmain .banner { display: none; }
}
