/* Jobs — design system shared by the landing page and the app.
   Blue accent comes from the cloud/bolt logo. Light + dark themes. */
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "ResumeRoboto"; src: url(/fonts/Roboto-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ResumeRoboto"; src: url(/fonts/Roboto-Medium.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "ResumeRoboto"; src: url(/fonts/Roboto-Italic.ttf) format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #f0f3f9; --ink: #0f172a; --ink-2: #334155; --muted: #5b6577; --line: #e2e7f0; --line-2: #cfd6e3;
  --accent: #2563eb; --accent-strong: #1d4ed8; --accent-ink: #ffffff; --accent-soft: #e8efff; --accent-line: #c5d6fb;
  --good: #0f7a55; --good-soft: #e3f5ed; --warn: #9a5b00; --warn-soft: #fdf1dc; --bad: #b42318; --bad-soft: #fdecea; --info: #3b5bab; --info-soft: #eaf0fb;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --radius: 12px; --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #090d16; --surface: #111827; --surface-2: #172034; --ink: #e8edf6; --ink-2: #c3cbda; --muted: #95a1b6; --line: #232e45; --line-2: #33405c;
  --accent: #5b9bff; --accent-strong: #7fb1ff; --accent-ink: #06122b; --accent-soft: #14254a; --accent-line: #24427c;
  --good: #4cd29a; --good-soft: #0f2e22; --warn: #f2b45a; --warn-soft: #33250c; --bad: #ff7b6e; --bad-soft: #3a1714; --info: #9fb8f2; --info-soft: #18233e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .55);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #090d16; --surface: #111827; --surface-2: #172034; --ink: #e8edf6; --ink-2: #c3cbda; --muted: #95a1b6; --line: #232e45; --line-2: #33405c;
  --accent: #5b9bff; --accent-strong: #7fb1ff; --accent-ink: #06122b; --accent-soft: #14254a; --accent-line: #24427c;
  --good: #4cd29a; --good-soft: #0f2e22; --warn: #f2b45a; --warn-soft: #33250c; --bad: #ff7b6e; --bad-soft: #3a1714; --info: #9fb8f2; --info-soft: #18233e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; } .mono { font-family: var(--mono); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack.tight { gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.hidden { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Buttons & inputs */
.btn { font: inherit; font-size: .9rem; font-weight: 550; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--accent-line); background: var(--surface-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: .82rem; }
.btn.icon { padding: 6px; min-width: 34px; min-height: 34px; }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.drop .ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; vertical-align: 0; }
label { font-size: .84rem; font-weight: 550; color: var(--ink-2); display: block; margin-bottom: 4px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  font: inherit; font-size: .92rem; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); min-height: 38px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 450; font-size: .9rem; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.notice { border-radius: var(--radius-sm); padding: 10px 14px; font-size: .88rem; border: 1px solid var(--line); background: var(--surface-2); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.notice.bad { background: var(--bad-soft); border-color: transparent; }
.notice.info { background: var(--info-soft); border-color: transparent; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* App shell */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -.01em; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .9rem; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.quota { font-size: .76rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 820px) {
  .topbar-in { flex-wrap: wrap; gap: 8px; }
  .nav { order: 3; flex-basis: 100%; }
  .quota { display: none; }
}
main.page:focus { outline: none; }
main.page { max-width: 1280px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left)) 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; }
.stat b { display: block; font-size: 1.7rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .84rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--line); min-width: 0; }
.list li:first-child { border-top: 0; }
.list .title { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.list a.title:hover { color: var(--accent); }
.list .meta { font-size: .8rem; color: var(--muted); }
.score-chip { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tone-good { background: var(--good-soft); color: var(--good); } .tone-ok { background: var(--info-soft); color: var(--info); }
.tone-warn { background: var(--warn-soft); color: var(--warn); } .tone-bad { background: var(--bad-soft); color: var(--bad); }

/* Wizard */
.steps { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.steps span.on { background: var(--accent); color: var(--accent-ink); }
.steps span.done { background: var(--accent-soft); color: var(--accent); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 26px 16px; text-align: center; background: var(--surface-2); transition: border-color .15s, background .15s; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop b { display: block; font-size: 1rem; margin-bottom: 4px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 12px; border: 0; background: none; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice button { font: inherit; text-align: left; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.choice button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice button small { display: block; color: var(--muted); }

/* Analysis */
.analysis { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .analysis { grid-template-columns: 1fr; } }
.ring { position: relative; width: 168px; height: 168px; margin: 4px auto 10px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-size: 2.6rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .val span { display: block; font-size: .8rem; color: var(--muted); }
.comp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comp:first-child { border-top: 0; }
.comp .name { font-weight: 600; font-size: .9rem; }
.comp .pct { font-variant-numeric: tabular-nums; font-weight: 650; font-size: .9rem; }
.comp .bar { grid-column: 1 / -1; height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.comp .bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.comp p { grid-column: 1 / -1; margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 550; border: 1px solid transparent; cursor: default; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip.demonstrated { background: var(--good-soft); color: var(--good); }
.chip.listed { background: var(--info-soft); color: var(--info); }
.chip.related { background: var(--warn-soft); color: var(--warn); }
.chip.missing { background: var(--bad-soft); color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); margin: 6px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.plan { counter-reset: plan; list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding: 12px 0 12px 40px; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan li::before { counter-increment: plan; content: counter(plan); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.plan li.high::before { background: var(--accent); color: var(--accent-ink); }
.plan .t { font-weight: 600; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.plan p { margin: 3px 0 0; font-size: .87rem; color: var(--ink-2); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.checks li:first-child { border-top: 0; }
.sev { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; }
.sev.error { background: var(--bad); } .sev.warn { background: var(--warn); } .sev.info { background: var(--info); }
details.more summary { cursor: pointer; color: var(--accent); font-size: .86rem; font-weight: 600; padding: 6px 0; }
.quote { border-left: 3px solid var(--line-2); padding-left: 10px; color: var(--muted); font-size: .84rem; margin: 6px 0 0; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(360px, 520px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1080px) { .editor { grid-template-columns: 1fr; } }
.editor-toolbar { position: sticky; top: 57px; z-index: 20; background: var(--bg); padding: 8px 0 10px; margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.editor-toolbar select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .85rem; }
.save-state { font-size: .8rem; color: var(--muted); margin-left: auto; }
.sec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 650; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.sec[open] > summary::before { transform: rotate(45deg); }
.sec > summary .row { margin-left: auto; gap: 2px; }
.sec-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.entry { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.entry-head { display: flex; align-items: center; gap: 6px; }
.entry-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.bullet-row { display: flex; gap: 6px; align-items: flex-start; }
.bullet-row textarea { min-height: 60px; }
.bullet-row .tools { display: flex; flex-direction: column; gap: 2px; }
.preview-wrap { position: sticky; top: 112px; max-height: calc(100vh - 128px); overflow: auto; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); padding: 18px; }
@media (max-width: 1080px) { .preview-wrap { position: static; max-height: none; } }
.preview-scale { transform-origin: top left; }

/* Resume paper (preview + print). Fixed light colours: it's a document. */
.paper { --rp-ink: #111; --rp-muted: #444; --rp-accent: #1f3b73; background: #fff; color: var(--rp-ink); width: 210mm; min-height: 297mm; padding: 14mm 15mm; margin: 0 auto; box-shadow: 0 2px 18px rgba(0, 0, 0, .12); font-family: "ResumeRoboto", Roboto, Arial, sans-serif; font-size: 10pt; line-height: 1.36; }
.paper.letter { width: 8.5in; min-height: 11in; }
.paper h1 { font-size: 19pt; margin: 0; letter-spacing: .02em; color: var(--rp-ink); font-weight: 600; }
.paper .r-headline { font-size: 10.5pt; margin-top: 2pt; color: var(--rp-ink); }
.paper .r-contact { font-size: 9.2pt; color: var(--rp-muted); margin-top: 2pt; }
.paper .r-head { text-align: center; margin-bottom: 8pt; }
.paper h2 { font-size: 10.5pt; text-transform: uppercase; letter-spacing: .06em; margin: 10pt 0 4pt; padding-bottom: 2pt; border-bottom: 1px solid #999; color: var(--rp-ink); font-weight: 600; }
.paper .r-entry { margin-bottom: 5pt; break-inside: avoid; }
.paper .r-line { display: flex; justify-content: space-between; gap: 10pt; }
.paper .r-line b { font-weight: 600; }
.paper .r-date { white-space: nowrap; color: var(--rp-ink); }
.paper .r-sub { color: var(--rp-muted); }
.paper ul { margin: 2pt 0 0; padding-left: 13pt; }
.paper li { margin: 0 0 1.5pt; }
.paper p { margin: 0; }
.paper .r-skill b { font-weight: 600; }
.paper.modern .r-head { text-align: left; border-left: 4pt solid var(--rp-accent); padding-left: 10pt; }
.paper.modern h1 { color: var(--rp-accent); }
.paper.modern h2 { color: var(--rp-accent); border-bottom: 1.5pt solid var(--rp-accent); }
.paper.compact { font-size: 9.2pt; line-height: 1.28; padding: 11mm 12mm; }
.paper.compact h1 { font-size: 16pt; } .paper.compact h2 { margin: 7pt 0 3pt; font-size: 9.6pt; }
mark.add { background: #d8f5e5; color: inherit; border-radius: 2px; } mark.del { background: #fde2df; color: inherit; text-decoration: line-through; border-radius: 2px; }

/* Tailor review */
.sugg { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--surface); }
.sugg + .sugg { margin-top: 10px; }
.sugg.on { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
@media (max-width: 760px) { .diff { grid-template-columns: 1fr; } }
.diff > div { font-size: .88rem; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.diff .lbl { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.diff ins { background: var(--good-soft); color: var(--good); text-decoration: none; border-radius: 3px; }
.diff del { background: var(--bad-soft); color: var(--bad); border-radius: 3px; }
.flag { font-size: .8rem; color: var(--warn); background: var(--warn-soft); border-radius: 6px; padding: 4px 8px; margin-top: 6px; }

/* Tracker */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 120px; border: 1px solid var(--line); }
.col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; margin: 2px 4px 10px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; display: block; }
.app-card:hover { border-color: var(--accent-line); }
.app-card b { display: block; font-size: .92rem; }
.app-card span { display: block; font-size: .8rem; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }

/* Modal, toast, spinner */
dialog { border: 0; border-radius: 16px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(6, 10, 20, .55); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 18px 20px; overflow: auto; max-height: calc(100vh - 180px); }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; width: min(460px, calc(100vw - 24px)); }
.toast { background: var(--ink); color: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: .9rem; box-shadow: var(--shadow-lg); }
.toast.bad { background: var(--bad); color: #fff; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; flex: none; }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 40px 16px; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 99px; animation: slide 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* Landing page */
.land { --glow: #3b82ff; }
.land-top { max-width: 1180px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 480px at 75% 0%, rgba(59, 130, 255, .28), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(59, 130, 255, .12), transparent 60%), #060a13; color: #e8edf6; }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-left)) 70px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; padding-top: 20px; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 18px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #9cc3ff, #3b82ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: #b9c4d8; max-width: 560px; }
.hero .brand { color: #fff; } .hero .brand small { color: #9aa6ba; }
.hero .btn { border-color: #33405c; background: rgba(255, 255, 255, .04); color: #e8edf6; }
.hero .btn.primary { background: #3b82ff; border-color: #3b82ff; color: #fff; box-shadow: 0 6px 24px rgba(59, 130, 255, .45); }
.hero .btn.primary:hover { background: #5b9bff; }
.hero-mark { width: min(360px, 70vw); margin: 0 auto; filter: drop-shadow(0 0 60px rgba(59, 130, 255, .35)); }
.hero-card { background: rgba(17, 24, 39, .75); border: 1px solid #24304a; border-radius: 16px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); backdrop-filter: blur(6px); }
.hero-card .chip { font-size: .78rem; }
.hero-card .comp .bar { background: #1c2740; }
.hero-card .comp { border-color: #222d45; }
.hero-card .comp p { color: #94a3b8; }
.hero-card .chip.demonstrated { background: #0f2e22; color: #4cd29a; } .hero-card .chip.related { background: #33250c; color: #f2b45a; } .hero-card .chip.missing { background: #3a1714; color: #ff7b6e; } .hero-card .chip.listed { background: #18233e; color: #9fb8f2; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: .86rem; color: #9aa6ba; }
.trust span { display: inline-flex; gap: 6px; align-items: center; }
.section { max-width: 1180px; margin: 0 auto; padding: 64px max(16px, env(safe-area-inset-left)); }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; }
.section > p.lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: flow; margin-top: 26px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.flow div { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.flow div::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }
.flow p { color: var(--muted); font-size: .9rem; margin: 0; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.principles div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.principles svg { flex: none; color: var(--good); margin-top: 2px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.site .in { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-left)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media print {
  body { background: #fff; }
  .topbar, .no-print, .editor > :first-child, .editor-toolbar, .toasts { display: none !important; }
  .editor { display: block; } .preview-wrap { position: static; max-height: none; overflow: visible; border: 0; padding: 0; background: #fff; }
  .preview-scale { transform: none !important; }
  .paper { box-shadow: none; margin: 0; width: auto; min-height: 0; padding: 0; }
  @page { size: A4; margin: 14mm 15mm; }
}
