/* Applywise v2 — a job-search workspace. Tokens first; both themes. */
:root {
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --surface-2: #EBEEF3;
  --ink: #131A26;
  --muted: #5B6477;
  --line: #DADFE8;
  --accent: #2447D6;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4E9FF;
  --ok: #127A4A;
  --ok-soft: #DCF2E6;
  --warn: #9A5B05;
  --warn-soft: #FBEBD0;
  --bad: #B3261E;
  --bad-soft: #FBE1DF;
  --ins: rgba(18, 122, 74, .16);
  --del: rgba(179, 38, 30, .12);
  --side: #0F1729;
  --side-2: #1A2438;
  --side-ink: #B8C2D6;
  --side-strong: #FFFFFF;
  --shadow: 0 1px 2px rgba(19, 26, 38, .05), 0 6px 20px rgba(19, 26, 38, .05);
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1018; --surface: #141A24; --surface-2: #1C2330; --ink: #E6E9EF; --muted: #98A2B3; --line: #283040;
    --accent: #7F97FF; --accent-ink: #0C1018; --accent-soft: #1E2A50;
    --ok: #4CC38A; --ok-soft: #12321F; --warn: #E6A94E; --warn-soft: #382810; --bad: #F07A70; --bad-soft: #3B1917;
    --ins: rgba(76, 195, 138, .2); --del: rgba(240, 122, 112, .18);
    --side: #080B12; --side-2: #141A26; --side-ink: #A3ADC2; --side-strong: #FFFFFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1018; --surface: #141A24; --surface-2: #1C2330; --ink: #E6E9EF; --muted: #98A2B3; --line: #283040;
  --accent: #7F97FF; --accent-ink: #0C1018; --accent-soft: #1E2A50;
  --ok: #4CC38A; --ok-soft: #12321F; --warn: #E6A94E; --warn-soft: #382810; --bad: #F07A70; --bad-soft: #3B1917;
  --ins: rgba(76, 195, 138, .2); --del: rgba(240, 122, 112, .18);
  --side: #080B12; --side-2: #141A26; --side-ink: #A3ADC2; --side-strong: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 600 1.7rem/1.2 var(--serif); letter-spacing: -.01em; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: .9rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.pre { white-space: pre-wrap; }
.row { display: flex; align-items: center; }
.gap { gap: 8px; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 8px; }
.hint { color: var(--muted); font-size: .88rem; max-width: 72ch; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }
.error { color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: var(--r); font-size: .9rem; }
.tight { margin: 0; padding-left: 18px; display: grid; gap: 5px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--side) 0 240px, var(--bg) 240px); }
.side {
  background: var(--side); color: var(--side-ink);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--side-strong); padding: 0 6px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none; background: #2447D6; color: #fff;
  display: grid; place-items: center; font: 600 .95rem/1 var(--sans); letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(36, 71, 214, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand-name { display: block; font: 600 1.08rem/1.1 var(--serif); white-space: nowrap; }
.brand-sub { display: block; font: 400 .74rem/1.4 var(--sans); color: var(--side-ink); margin-top: 2px; white-space: nowrap; }
.new-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.new-btn svg, .nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px;
  text-decoration: none; color: var(--side-ink); font-weight: 500; font-size: .92rem;
}
.nav a:hover { background: var(--side-2); color: var(--side-strong); }
.nav a[aria-current] { background: var(--side-2); color: var(--side-strong); box-shadow: inset 3px 0 0 var(--accent); }
.badge { margin-left: auto; font: 500 .7rem var(--mono); background: var(--warn); color: #fff; border-radius: 10px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 8px; font-size: .76rem; padding: 0 6px; }
.pill { justify-self: start; font: 500 .72rem var(--mono); padding: 3px 9px; border-radius: 20px; }
.pill[data-state="missing"] { color: #FFD48A; background: rgba(230, 169, 78, .16); }
.pill[data-state="ready"] { color: #8FE3B6; background: rgba(76, 195, 138, .16); }

.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.main:focus { outline: none; }
.view { display: grid; gap: 18px; max-width: 1240px; margin: 0 auto; }
.view > * { min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--r); padding: 9px 15px; cursor: pointer;
  font-weight: 500; font-size: .9rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.btn.small { padding: 6px 11px; font-size: .82rem; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: progress; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-width: 30px; height: 28px; padding: 0 6px; cursor: pointer; font: 500 .78rem var(--mono); color: var(--muted); }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-size: .82rem; font-weight: 500; }

.field { display: grid; gap: 5px; align-content: start; }
.field > span { font-size: .78rem; font-weight: 500; color: var(--muted); }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.inline-field select { width: auto; padding: 5px 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: 1 / -1; }
.page-head input[type="search"] { width: 220px; }
.page-head select { width: auto; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head.bare { padding: 0; }
.panel-head.sub { margin-top: 6px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.empty-note { color: var(--muted); font-size: .9rem; padding: 6px 0; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empty-state.inline { border: 0; padding: 4px 0; background: none; }

/* ---------- chips & status ---------- */
.chip { display: inline-block; font: 500 .72rem/1.5 var(--mono); padding: 1px 8px; border-radius: 10px; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.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.accent { background: var(--accent-soft); color: var(--accent); }
.chip.ink { background: var(--ink); color: var(--surface); }
.chip.outline { background: transparent; border: 1px solid var(--line); }
.flags .chip, .kw .chip { white-space: normal; }
.kw, .chips, .flags { display: flex; flex-wrap: wrap; gap: 6px; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); }
.status { font: 500 .74rem var(--mono); padding: 2px 8px; border-radius: 10px; background: var(--surface-2); }
.s-applied { background: var(--accent-soft); color: var(--accent); }
.s-screening, .s-interview { background: var(--warn-soft); color: var(--warn); }
.s-offer, .s-accepted { background: var(--ok-soft); color: var(--ok); }
.s-rejected, .s-withdrawn { color: var(--muted); }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.kpi-num { font: 600 2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.kpi-num small { font: 500 .9rem var(--mono); color: var(--muted); margin-left: 4px; }
.kpi-sub { font-size: .78rem; color: var(--muted); }
.meter { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.dash-grid .wide { grid-column: 1 / -1; }
.actions { list-style: none; margin: 0; padding: 0; display: grid; }
.actions li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.actions li:first-child { border-top: 0; }
.actions li.overdue { box-shadow: inset 3px 0 0 var(--bad); padding-left: 10px; }
.action-main { display: grid; min-width: 0; }
.action-main a { text-decoration: none; font-weight: 500; }
.action-main a:hover { color: var(--accent); }
.action-side { display: flex; align-items: center; gap: 6px; flex: none; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: .88rem; }
.note.bad { background: var(--bad-soft); } .note.warn { background: var(--warn-soft); } .note.accent { background: var(--accent-soft); }
.note .link { white-space: nowrap; }
.search-rows { display: grid; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.search-row:first-child { border-top: 0; }
.search-role { font-weight: 500; }
.search-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-link { font-size: .8rem; text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.pill-link:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.list { border-collapse: collapse; width: 100%; font-size: .88rem; }
.list th, .list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.list a { text-decoration: none; font-weight: 500; }
.list a:hover { color: var(--accent); }

/* ---------- pipeline ---------- */
.board-wrap { overflow-x: auto; padding-bottom: 8px; }
.board { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 10px; min-width: 940px; }
.col { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; gap: 10px; align-content: start; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.col-head h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.count { font: 500 .72rem var(--mono); background: var(--surface); border-radius: 10px; padding: 1px 7px; }
.col-body { display: grid; gap: 8px; }
.col-empty { color: var(--muted); text-align: center; padding: 10px; }
.card-app { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.card-title { font-weight: 600; text-decoration: none; line-height: 1.3; }
.card-title:hover { color: var(--accent); }
.card-co { font-size: .85rem; }
.card-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.card-next { display: grid; gap: 3px; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 6px; }
.card-next .chip { justify-self: start; }
.card-status select { padding: 4px 6px; font-size: .8rem; }

/* ---------- profile ---------- */
.masters { display: grid; gap: 8px; }
.master { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.master-name { width: auto !important; flex: 1 1 180px; font-weight: 500; }
.file-ext { font: 500 .66rem var(--mono); background: var(--accent); color: var(--accent-ink); padding: 3px 5px; border-radius: 4px; }
.drop { position: relative; display: grid; gap: 4px; place-items: center; text-align: center; border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px 16px; cursor: pointer; background: var(--bg); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-title { font-weight: 500; }
.drop-sub { font-size: .8rem; color: var(--muted); }
.ach { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.ach li { display: flex; gap: 8px; align-items: flex-start; }
.copy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.copy-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.copy-block.span-all { grid-column: 1 / -1; }
.copy-head { display: flex; align-items: center; gap: 8px; }
.copy-head h3 { margin-right: auto; }
.bookmarklet { display: inline-block; padding: 8px 14px; border-radius: 20px; background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); font-weight: 600; text-decoration: none; cursor: grab; }
.bookmarklet.small { padding: 2px 9px; font-size: .82rem; }

/* ---------- workspace ---------- */
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ws-title { display: grid; gap: 6px; min-width: 0; }
.crumb { font-size: .8rem; color: var(--muted); text-decoration: none; }
.crumb::before { content: "← "; }
.crumb:hover { color: var(--accent); }
.at { color: var(--muted); font-weight: 500; }
.ws-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.next-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.next-label { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--warn); }
.next-bar input[type="text"] { flex: 1 1 240px; width: auto; }
.next-bar input[type="date"] { width: auto; }
.ws-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.ws-tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.ws-tabs a:hover { color: var(--ink); }
.ws-tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.ws-body { display: grid; gap: 18px; min-width: 0; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
#jd { font-size: .86rem; }

.progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.progress li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.progress li.active { color: var(--ink); }
.progress li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--ok); border-color: var(--ok); }
.progress li.fail::before { background: var(--bad); border-color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }

.decision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--muted); }
.decision.ok { box-shadow: inset 5px 0 0 var(--ok); }
.decision.accent { box-shadow: inset 5px 0 0 var(--accent); }
.decision.warn { box-shadow: inset 5px 0 0 var(--warn); }
.decision.bad { box-shadow: inset 5px 0 0 var(--bad); }
.decision-main { display: grid; gap: 8px; align-content: start; }
.decision-verdict { font: 600 1.5rem/1.1 var(--serif); }
.decision.ok .decision-verdict { color: var(--ok); } .decision.accent .decision-verdict { color: var(--accent); }
.decision.warn .decision-verdict { color: var(--warn); } .decision.bad .decision-verdict { color: var(--bad); }
.decision-head { font-size: 1rem; }
.decision-angle { font-size: .9rem; color: var(--muted); }
.decision-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: .88rem; }
.decision-lists h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.flags-list li::marker { color: var(--bad); }
.score-row { display: flex; gap: 18px; align-items: center; }
.gauge-num { font: 600 1.6rem var(--mono); }
.fit-bars { display: grid; gap: 8px; flex: 1; min-width: 0; }
.fit-bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 30px; align-items: center; gap: 10px; font-size: .84rem; }
.track { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 4px; }
.fit-bar .v { font: 500 .82rem var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.summary { font-size: .92rem; }
.cov { font: 500 .9rem var(--mono); }
.next-steps { display: flex; gap: 8px; flex-wrap: wrap; }

.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cv-main { display: grid; gap: 18px; min-width: 0; }
.cv-side { display: grid; gap: 18px; position: sticky; top: 16px; }
.stack { display: grid; gap: 8px; }
.edits { display: grid; gap: 10px; }
.edit { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.edit.off { opacity: .55; }
.edit input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.edit-main { display: grid; gap: 8px; min-width: 0; }
.edit-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .76rem; color: var(--muted); }
.kind { font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.diff { font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; }
.diff ins { background: var(--ins); text-decoration: none; border-radius: 3px; padding: 0 1px; }
.diff del { background: var(--del); color: var(--muted); border-radius: 3px; padding: 0 1px; }
.edit-tools { display: grid; gap: 6px; justify-items: start; }
.edit-tools textarea { width: 100%; }
.reason { font-size: .82rem; color: var(--muted); }
.ats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ats li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: .84rem; }
.ats li div { display: grid; gap: 2px; }
.ats li span:not(.ats-icon) { color: var(--muted); }
.ats-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem var(--mono); background: var(--surface-2); }
.ats .ok .ats-icon { background: var(--ok-soft); color: var(--ok); }
.ats .warn .ats-icon { background: var(--warn-soft); color: var(--warn); }
.ats .info .ats-icon { background: var(--accent-soft); color: var(--accent); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare > div { min-width: 0; }
.h-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.preview-box { max-height: 640px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #8A919C; }
.preview-box .docx-wrapper { background: #8A919C; padding: 14px; align-items: flex-start; }
.compare .preview-box .docx-wrapper > section.docx { zoom: .55; }
.preview-box .docx-wrapper > section.docx { box-shadow: 0 2px 10px rgba(0,0,0,.25); margin-bottom: 14px; }

.letter-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
textarea.letter { font: 400 .98rem/1.65 var(--serif); background: var(--surface); padding: 18px; }
.msg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.msg textarea { font-size: .9rem; }
.pitch p { font: 400 1rem/1.65 var(--serif); }
.qs { display: grid; gap: 8px; }
.qs details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.qs details[open] { background: var(--bg); }
.qs summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; font-weight: 500; list-style: none; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary .chip { flex: none; }
.qs details p { margin-top: 8px; font-size: .9rem; }
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: .88rem; }
.plan h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.gaps { margin: 0; display: grid; gap: 4px; font-size: .9rem; }
.gaps dt { font-weight: 600; margin-top: 6px; }
.gaps dd { margin: 0; color: var(--muted); }

.apply-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.apply-grid > aside { display: grid; gap: 18px; }
.qa { display: grid; gap: 10px; }
.qa-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.qa-item input { font-weight: 500; }
.qa-item textarea { grid-column: 1; }
.qa-item .icon-btn { grid-row: 1; grid-column: 2; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.checklist li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.checklist li span { font: 600 .9rem var(--mono); width: 16px; }
.checklist li.ok { color: var(--ink); }
.checklist li.ok span { color: var(--ok); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: .9rem; }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 16px; right: 16px; z-index: 50; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); font-size: .88rem; transition: opacity .3s, transform .3s; }
.toast.warn { background: var(--warn); color: #fff; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) { .progress li.active::before { animation: none; background: var(--accent); } .toast { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cv-grid, .letter-grid, .apply-grid, .job-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-side { position: static; }
  .copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; overflow-x: auto; }
  .brand-sub, .side-foot p, .new-btn { display: none; }
  .brand { padding: 0; }
  .nav { display: flex; gap: 2px; margin-left: auto; }
  .nav a { padding: 7px 9px; font-size: .84rem; white-space: nowrap; }
  .nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
  .side-foot { margin: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid, .two-col, .decision, .msg-grid, .plan, .compare { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .main { padding: 18px 16px 48px; }
  h1 { font-size: 1.4rem; }
  .nav svg { display: none; }
  .side-foot { display: none; }
  .grid-2, .copy-grid, .decision-lists { grid-template-columns: minmax(0, 1fr); }
  .kpi-num { font-size: 1.6rem; }
  .page-head input[type="search"] { width: 100%; }
  .score-row { flex-direction: column; align-items: stretch; }
}

/* ---------- AI engine picker ---------- */
.engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.engine-opt { position: relative; display: grid; gap: 6px; align-content: start; padding: 14px 14px 14px 40px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.engine-opt input { position: absolute; left: 14px; top: 16px; accent-color: var(--accent); }
.engine-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.engine-opt.disabled { cursor: not-allowed; opacity: .7; }
.engine-name { font-weight: 600; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.engine-sub { font-size: .84rem; color: var(--muted); }
.engine-form { display: grid; gap: 10px; }
@media (max-width: 900px) { .engines { grid-template-columns: minmax(0, 1fr); } }
.edit.confirm { border-style: dashed; border-color: var(--warn); }

[data-go] { cursor: pointer; }
.edit-meta .chip { white-space: normal; }

/* ---------- v3: jobs feed, market pulse, onboarding, help ---------- */
.badge.new { background: var(--accent); }
.side-link { color: var(--side-ink); font-size: .8rem; text-decoration: underline; text-underline-offset: 2px; }
.side-link:hover { color: var(--side-strong); }
.warn-text { color: var(--warn); }

.onboard { margin-bottom: 18px; border-color: var(--accent-soft); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.onboard-steps li { display: grid; gap: 8px; align-content: start; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.onboard-steps li.done { opacity: .72; }
.step-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 .8rem var(--mono); background: var(--accent); color: var(--accent-ink); }
.onboard-steps li.done .step-num { background: var(--ok); color: #fff; }

.callout { border-left: 4px solid var(--accent); margin-bottom: 16px; }
.jobs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.jobs-side { display: grid; gap: 18px; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filters input[type=search] { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.job-list { display: grid; }
.job { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); align-items: start; }
.job:last-child { border-bottom: 0; }
.job.is-new { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.score-pill { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font: 600 1.05rem var(--mono); background: var(--surface-2); }
.score-pill small { font-size: .7rem; opacity: .7; margin-left: 1px; }
.score-pill.ok { background: var(--ok-soft); color: var(--ok); }
.score-pill.warn { background: var(--warn-soft); color: var(--warn); }
.score-pill.bad { background: var(--bad-soft); color: var(--bad); }
.job-main { display: grid; gap: 5px; min-width: 0; }
.job-title-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.job-title { font-weight: 600; text-decoration: none; color: var(--ink); }
a.job-title:hover { color: var(--accent); text-decoration: underline; }
.job-meta { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.job-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.job-chips .chip { white-space: normal; }
.job-actions { display: flex; gap: 6px; align-items: center; }
.job-extra { margin-top: 8px; }
.job-detail { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kw-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kw-cols h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 3px; }
.jd-text { max-height: 320px; overflow: auto; margin-top: 8px; padding: 10px; background: var(--surface); border-radius: 8px; }
details summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: .88rem; }
.job-list.compact .job { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 10px 2px; }
.job-list.compact .score-pill { width: 40px; height: 40px; font-size: .95rem; }
.empty-state.slim { padding: 18px; }

.intel { display: grid; gap: 8px; }
.intel-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .86rem; }
.intel-list dt { color: var(--muted); }
.intel-list dd { margin: 0; }
.intel-box { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }

.radar { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.radar li { display: grid; grid-template-columns: minmax(0, 1fr) 60px 34px auto; gap: 8px; align-items: center; font-size: .84rem; }
.radar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.radar-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.radar-pct { font: .75rem var(--mono); color: var(--muted); text-align: right; }
.chip-btn { font: 500 .72rem/1.5 var(--mono); padding: 1px 8px; border-radius: 10px; border: 1px dashed var(--accent); background: transparent; color: var(--accent); cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: var(--accent-soft); }
.pay-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.pay-bench > div { display: grid; gap: 2px; }
.pay-num { font: 600 1.3rem var(--serif); }
.calc-out { display: grid; gap: 6px; background: var(--bg); border-radius: 10px; padding: 12px; font-size: .9rem; }
.board-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-link small { color: var(--muted); font-size: .7rem; }
.check-line { display: flex; gap: 8px; align-items: center; font-size: .88rem; }

.dup-bar { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); border-left: 4px solid var(--warn); font-size: .9rem; }

.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.help-grid > .panel:first-child { grid-column: 1 / -1; }
.how { margin: 0; padding-left: 20px; display: grid; gap: 8px; max-width: 80ch; }

@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .onboard-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .onboard-steps, .help-grid, .kw-cols, .pay-bench { grid-template-columns: minmax(0, 1fr); }
  .job { grid-template-columns: 44px minmax(0, 1fr); }
  .job-actions { grid-column: 2; }
  .score-pill { width: 40px; height: 40px; }
}

.job-meta .src { font: 500 .72rem var(--mono); color: var(--accent); }
code { font: .82em var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- v4: interview prep ---------- */
.grow { flex: 1 1 220px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.nowrap { white-space: nowrap; }
.lbl-s { display: none; }
.prep-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prep-tile { display: grid; gap: 6px; align-content: start; justify-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.small-num { font-size: 1.5rem !important; margin: 0; }
.small-num small { font-size: .8rem; color: var(--muted); font-family: var(--sans); margin-left: 4px; }
.mock-q { gap: 14px; }
.mock-question { font: 500 1.12rem/1.45 var(--serif); }
.mock-question.small { font-size: .95rem; color: var(--muted); }
.score-stars { color: var(--warn); font-size: 1.3rem; letter-spacing: 2px; }
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.story.draft { border-style: dashed; border-color: var(--warn); }
.star { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 8px; margin: 0; font-size: .88rem; }
.star dt { font: 600 .78rem var(--mono); color: var(--accent); padding-top: 2px; }
.star dd { margin: 0; }
.chip-filter { border: 0; cursor: pointer; }
.story-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-hits li { border-left: 3px solid var(--accent); padding-left: 10px; }
.flash { gap: 14px; min-height: 220px; }
.flash-q { font: 500 1.15rem/1.45 var(--serif); }
.flash-a { background: var(--bg); border-radius: 10px; padding: 14px; font-size: .92rem; }
.rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.iv-extras { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
table.offers td { vertical-align: top; }

/* ---------- v4: phones ---------- */
@media (max-width: 700px) {
  .shell { background: var(--bg); }
  .side { flex-wrap: nowrap; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: .82rem; }
  .new-btn { display: flex !important; margin-left: auto; padding: 7px 12px; font-size: .85rem; }
  .new-btn svg { width: 16px; height: 16px; }
  /* bottom tab bar */
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0;
    background: var(--side); border-top: 1px solid var(--side-2); padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .nav a { position: relative; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; min-height: 52px; font-size: .66rem; border-radius: 8px; text-align: center; }
  .nav svg { display: block !important; width: 22px; height: 22px; }
  .nav a[aria-current] { box-shadow: none; background: var(--side-2); color: var(--side-strong); }
  .nav .badge { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; font-size: .6rem; padding: 0 5px; }
  .lbl { display: none; }
  .lbl-s { display: inline; }
  .main { padding: 16px 14px calc(84px + env(safe-area-inset-bottom, 0px)); }
  .side-foot { display: none !important; }
  .page-head a.btn[data-go="#/new"] { display: none; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  /* touch sizes and no iOS zoom on focus */
  .btn { min-height: 42px; }
  .btn.small { min-height: 36px; }
  .icon-btn { min-width: 36px; min-height: 36px; }
  input, select, textarea { font-size: 16px !important; }
  .page-head { align-items: flex-start; }
  .page-head .row { width: 100%; }
  .page-head .row > .btn { flex: 1 1 auto; }
  .ws-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ws-tabs a { white-space: nowrap; }
  .prep-strip, .iv-extras, .stories { grid-template-columns: minmax(0, 1fr); }
  .rate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .inline-field { flex: 1 1 45%; }
  .filters .inline-field select { width: 100%; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px; }
  .job-actions { flex-wrap: wrap; }
  .next-bar { flex-wrap: wrap; }
  .next-bar input[type=text] { flex: 1 1 100%; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .prep-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv-extras { grid-template-columns: minmax(0, 1fr); }
}

.start-btn { justify-self: start; }

/* ---------- v5: autopilot ---------- */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; }
.ap-log { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; }
.ap-log li.done { color: var(--muted); }
.ap-log li.active { font-weight: 600; }
.ap-log li.active::after { content: ' …'; }
.chase { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chase li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
@media (max-width: 900px) { .ap-grid { grid-template-columns: minmax(0, 1fr); } }

/* v6: multi-site jobs feed */
.src-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0; }
.src-bar:empty { display: none; }
.src-pill { font: 500 .78rem var(--sans, inherit); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink, inherit); cursor: pointer; min-height: 30px; }
.src-pill b { font-weight: 600; margin-left: 4px; color: var(--muted); }
.src-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.src-pill.on b { color: #fff; opacity: .85; }
.feed-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 0; color: var(--muted); font-size: .84rem; border-bottom: 1px solid var(--line); }
.feed-sum:empty { display: none; }
.feed-sum b { color: var(--ink, inherit); font-weight: 600; }
.job-srcs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 2px 0 3px; }
.src-badge { font: 500 .7rem var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 4px; padding: 1px 6px; }
p.grow { flex: 1 1 auto; }

/* v7: Compare CVs */
:root { --edit: #D99A00; --move: #2447D6; }
.cmp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.cmp-stats > div { flex: 1 1 120px; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--bg); }
.cmp-stats b { display: block; font-size: 1.25rem; font-weight: 600; }
.cmp-stats span { color: var(--muted); font-size: .8rem; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--muted); }
.cmp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.lg-ins { background: var(--ins); outline: 1px solid rgba(18,122,74,.5); }
.lg-del { background: var(--del); outline: 1px solid rgba(179,38,30,.45); }
.lg-edit { background: var(--edit); } .lg-move { background: var(--move); } .lg-same { background: var(--line); }
.cmp-panel { padding: 0; overflow: hidden; }
.cmp-cols, .cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cmp-titles > div { padding: 10px 14px; font-weight: 600; font-size: .85rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.cmp-titles > div + div, .cmp-row > .cmp-b { border-left: 1px solid var(--line); }
.cmp-row { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; scroll-margin: 90px; }
.cmp-row > div { padding: 8px 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.cmp-row.k-same > div { color: var(--muted); }
.cmp-row.k-edited { border-left-color: var(--edit); background: color-mix(in srgb, var(--edit) 6%, transparent); }
.cmp-row.k-moved { border-left-color: var(--move); background: color-mix(in srgb, var(--move) 5%, transparent); }
.cmp-row.k-removed { border-left-color: #B3261E; background: var(--del); }
.cmp-row.is-h > div { font-weight: 600; color: inherit; padding-top: 14px; }
.cmp-row ins { background: var(--ins); text-decoration: none; border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -2px 0 rgba(18,122,74,.45); }
.cmp-row del { background: var(--del); border-radius: 3px; padding: 0 2px; }
.cmp-row.focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.cmp-gone { color: #B3261E; font-style: italic; font-size: .85rem; }
.chip.move { background: color-mix(in srgb, var(--move) 14%, transparent); color: var(--move); }
.cmp-lbl { display: none; }
.cmp-panel.only .cmp-row.k-same { display: none; }
@media (max-width: 700px) {
  .cmp-titles { display: none; }
  .cmp-row { grid-template-columns: minmax(0, 1fr); }
  .cmp-row > .cmp-b { border-left: 0; border-top: 1px dashed var(--line); }
  .cmp-lbl { display: block; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
  .cmp-row.k-same .cmp-a { display: none; }
  .cmp-row.k-same .cmp-lbl { display: none; }
}

/* v8: design polish */
.col-empty { font-size: .8rem; padding: 18px 8px; border: 1.5px dashed var(--line); border-radius: 10px; }
.ws-tabs { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
@media (min-width: 1100px) { .ws-tabs { mask-image: none; -webkit-mask-image: none; } }
.help-video { width: 100%; border-radius: 12px; background: #0F1729; aspect-ratio: 16 / 9; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) {
  .actions li { flex-direction: column; gap: 8px; }
  .action-side { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.mb { margin-bottom: 16px; }
.col, .col-body, .card-app { min-width: 0; } .card-title { overflow-wrap: anywhere; } .card-status select { width: 100%; }
.card-chips .chip { white-space: normal; max-width: 100%; } .card-app { overflow: hidden; }
.mic-help { margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); font-size: .88rem; line-height: 1.5; }

/* v10: application documents */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.docs-grid > .panel:first-child { grid-row: span 2; }
.dropzone { display: grid; gap: 4px; place-items: center; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; margin: 8px 0 14px; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.doc-list { display: grid; gap: 10px; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.doc.off { opacity: .6; }
.doc-ico { font: 600 .66rem var(--mono); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.doc-ico.k-pdf { background: #FCE4E2; color: #B3261E; } .doc-ico.k-image { background: #E1F3EA; color: #127A4A; }
.doc-ico.k-video, .doc-ico.k-audio { background: #EDE7FB; color: #5B3CC4; } .doc-ico.k-word { background: #E4E9FF; color: #2447D6; }
.doc-name { font-weight: 600; overflow-wrap: anywhere; }
.doc-actions { display: grid; gap: 6px; justify-items: end; }
.doc-note { width: 100%; margin-top: 6px; }
.doc-text { max-height: 220px; overflow: auto; background: var(--bg); padding: 8px; border-radius: 8px; margin-top: 6px; }
.mt-s { margin-top: 4px; }
.icon-btn.danger { color: var(--bad); font-size: .75rem; width: auto; padding: 0 6px; }
.chat { display: grid; gap: 8px; max-height: 420px; overflow: auto; margin-bottom: 10px; }
.chat:empty { display: none; }
.chat-q { justify-self: end; max-width: 85%; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 12px 12px 2px 12px; font-size: .9rem; }
.chat-a { max-width: 92%; background: var(--surface-2); padding: 10px 12px; border-radius: 12px 12px 12px 2px; font-size: .9rem; white-space: pre-wrap; }
#dc-form input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: minmax(0, 1fr); } .docs-grid > .panel:first-child { grid-row: auto; } .doc { grid-template-columns: auto minmax(0, 1fr); } .doc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; } }
.doc-check { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; }
.doc-check.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.doc-check.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.doc-check.busy { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.qs-doc details { padding: 6px 0; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* v11: documents mind map */
.docs-map { grid-column: 1 / -1; }
.mm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 8px; }
.grow-s { flex: 1 1 auto; }
.seg-mini { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; gap: 2px; background: var(--bg); }
.seg-mini button { border: 0; background: transparent; padding: 4px 12px; border-radius: 6px; font: 500 .82rem var(--sans); color: var(--muted); cursor: pointer; }
.seg-mini button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.mm-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow-x: auto; padding: 8px; }
.mm-svg { display: block; min-width: 900px; height: auto; }
.mm-t { font: 13px var(--sans); fill: var(--ink); }
.mm-node.d1 .mm-t { font-weight: 600; font-size: 14px; }
.mm-node { cursor: pointer; outline: none; }
.mm-node:hover .mm-t, .mm-node:focus .mm-t { text-decoration: underline; }
.mm-node.sel circle { stroke-width: 4; }
.mm-node.sel .mm-t { font-weight: 700; }
.mm-ct { font: 600 14px var(--sans); fill: #fff; }
.mm-detail-slot { margin-top: 10px; }
.mm-detail { border-left: 4px solid var(--accent); padding: 8px 12px; background: var(--surface-2); border-radius: 0 10px 10px 0; }
.mm-detail p { margin: 4px 0; }
.mm-outline, .mm-outline ul { list-style: none; margin: 0; padding-left: 18px; }
.mm-outline > li { padding-left: 0; }
.mm-outline li { margin: 4px 0; }
.mm-outline ul { border-left: 1px dashed var(--line); margin-left: 4px; }
@media (max-width: 700px) { .mm-svg { min-width: 680px; } }
.mm-t { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.mm-quote { margin: 6px 0 4px; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--surface); font-size: .88rem; font-style: italic; border-radius: 0 6px 6px 0; }

/* v12 delete controls */
.btn.danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.q-del { margin-left: auto; flex: none; border: 0; background: none; cursor: pointer; font-size: .85rem; padding: 2px 6px; border-radius: 6px; opacity: .45; line-height: 1; }
.q-del:hover, .q-del:focus-visible { opacity: 1; background: var(--surface-2); }
.chat-q { display: flex; align-items: flex-start; gap: 6px; }
.qs details > summary .q-text, .chat-q > span { flex: 1; }

/* v13 document questions */
.dq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.dq details[open] { border-color: var(--accent); }
.dq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; }
.dq summary::-webkit-details-marker { display: none; }
.dq summary:hover { background: var(--surface-2); }
.dq-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font: 600 .75rem/24px var(--mono); text-align: center; }
.dq details[open] .dq-n { background: var(--accent); color: var(--accent-ink, #fff); }
.dq-body { display: grid; gap: 4px; min-width: 0; }
.dq-q { font-weight: 500; line-height: 1.4; overflow-wrap: break-word; }
.dq-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .75rem; color: var(--muted); }
.dq summary .q-del { margin: 0; }
.dq-more { padding: 0 14px 12px 46px; display: grid; gap: 6px; }
.dq-more p, .dq-more ul { margin: 0; }
.dq-more .mm-quote { margin: 2px 0 0; }
.dq-list.compact .dq details { background: transparent; }
.dq-list.compact .dq summary { padding: 8px 10px; }
.dq-list.compact .dq-more { padding-left: 42px; }
.dq-themes .chip { margin-bottom: 4px; }
@media (max-width: 600px) { .dq-more { padding-left: 14px; } }
.dq-q { color: var(--ink); }

/* v14 documents: keep everything inside the panels + question tools */
.docs-grid .panel { overflow-wrap: break-word; word-break: normal; }
.docs-grid .chip { white-space: normal; max-width: 100%; }
.docs-grid .btn { white-space: normal; text-align: center; }
.docs-grid #dc-form .btn, .docs-grid .q-del, .docs-grid .dq-f { white-space: nowrap; }
.docs-grid .panel-head h2 { min-width: 0; }
.docs-grid .panel-head > .row { flex-wrap: wrap; }
.docs-grid .hint { max-width: none; }
.docs-grid .doc-text, .docs-grid .pre { white-space: pre-wrap; word-break: break-word; max-width: 100%; overflow-x: auto; }
.docs-grid .mm-quote { overflow-wrap: break-word; }
.dq-tools { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.dq-prog { display: flex; align-items: center; gap: 10px; }
.dq-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dq-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.dq-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dq-f { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 10px; font: 500 .78rem var(--sans); cursor: pointer; }
.dq-f span { color: var(--muted); font-family: var(--mono); margin-left: 2px; }
.dq-f[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.dq-f[aria-pressed="true"] span { color: inherit; opacity: .8; }
.dq.done .dq-n { background: var(--ok-soft); color: var(--ok); }
.dq.done .dq-q { color: var(--muted); }
.dq-notes-l { display: grid; gap: 4px; font-weight: 600; margin-top: 4px; }
.dq-notes { width: 100%; font: 400 .88rem/1.45 var(--sans); resize: vertical; }
.dq-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dq-src { overflow-wrap: break-word; }

/* Two columns only when there is real room; otherwise stack (the claude.ai viewer is often ~1000-1250px wide). */
@media (max-width: 1280px) { .docs-grid { grid-template-columns: minmax(0, 1fr); } .docs-grid > .panel:first-child { grid-row: auto; } }
.doc-main { min-width: 0; }
.doc-check { min-width: 0; }
.docs-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; }
.docs-jump button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: 500 .82rem var(--sans); cursor: pointer; }
.docs-jump button:hover { border-color: var(--accent); color: var(--accent); }
.docs-jump span { font-family: var(--mono); color: var(--muted); margin-left: 4px; font-size: .75rem; }
.docs-grid > .panel { scroll-margin-top: 52px; }

/* v15 grounded Q&A */
.chat { max-height: 560px; }
.chat-a { white-space: normal; display: grid; gap: 6px; }
.chat-a .ans { white-space: pre-wrap; }
.conf { justify-self: start; font: 500 .72rem/1.5 var(--mono); padding: 1px 8px; border-radius: 10px; background: var(--surface); }
.conf-high { color: var(--ok); background: var(--ok-soft); }
.conf-partial { color: var(--warn); background: var(--warn-soft); }
.conf-none { color: var(--muted); }
sup.cite { font: 600 .65rem var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; margin-left: 1px; cursor: help; }
sup.cite.unv { color: var(--warn); background: var(--warn-soft); }
.cites summary { cursor: pointer; color: var(--muted); }
.cites ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.cites li.unv .mm-quote { border-left-color: var(--warn); }
.dc-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* v16 my questions tab */
.myq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 980px; }
.myq-add { display: grid; gap: 8px; }
.myq-add textarea { width: 100%; font: 400 .92rem/1.45 var(--sans); }
.dq-more .row label { display: grid; gap: 3px; }
.dq-more .grow-s { flex: 1; min-width: 200px; }
.dq-more input[type=text] { width: 100%; }
.my-help { display: grid; gap: 6px; }
.my-help p, .my-help ul { margin: 0; }
.docs-jump .grow-s { flex: 1; }

/* v17 Studio (NotebookLM-style) */
.docs-studio { grid-column: 1 / -1; }
.st-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.st-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: 500 .85rem var(--sans); cursor: pointer; }
.st-tabs button span { color: var(--ok); font-size: .75rem; margin-left: 2px; }
.st-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
.st-tabs button[aria-selected="true"] span { color: inherit; }
.st-pane { display: grid; gap: 10px; min-width: 0; }
.st-pane > .hint { margin: 0; }
.st-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-body { display: grid; gap: 8px; max-width: 900px; }
.st-title { font: 600 1.15rem/1.3 var(--serif); margin: 4px 0 0; }
.st-lead { font-size: .95rem; margin: 0; }
.st-h { font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 2px; }
.st-points { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.st-points li { line-height: 1.5; }
.src-chip { display: inline-block; font: 500 .68rem/1.5 var(--mono); color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 0 6px; margin-left: 2px; cursor: help; white-space: normal; }
.st-body .mm-quote { margin: 4px 0 2px; font-size: .85rem; }
.st-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; }
.st-terms > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.st-terms dt { font-weight: 600; }
.st-terms dd { margin: 4px 0 0; font-size: .9rem; }
.st-qa { display: grid; gap: 6px; }
.st-qa details { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.st-qa summary { cursor: pointer; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.st-qa p { margin: 6px 0 0; font-size: .92rem; }
.st-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent-soft); display: grid; gap: 10px; }
.st-tl li { position: relative; display: grid; gap: 2px; padding-left: 10px; }
.st-tl li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.st-when { font: 600 .8rem var(--mono); color: var(--accent); }
.st-cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.st-person { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface); }
.fc-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.fc { width: 100%; max-width: 620px; min-height: 180px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; place-items: center; gap: 8px; padding: 24px; cursor: pointer; text-align: center; font: inherit; color: var(--ink); box-shadow: 0 2px 10px rgba(20,25,34,.06); transition: transform .15s; }
.fc:hover { transform: translateY(-1px); }
.fc.flipped { background: var(--accent-soft); border-color: var(--accent); }
.fc.known { box-shadow: inset 0 0 0 2px var(--ok); }
.fc-side { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fc-text { font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.fc-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz { margin: 0; padding-left: 20px; display: grid; gap: 14px; }
.quiz-q { font-weight: 500; margin: 0 0 6px; }
.quiz-opts { display: grid; gap: 6px; }
.quiz-opt { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; display: flex; gap: 8px; }
.quiz-opt:hover:not([disabled]) { border-color: var(--accent); }
.quiz-opt b { font-family: var(--mono); color: var(--muted); }
.quiz-opt[disabled] { cursor: default; opacity: .8; }
.quiz-opt.is-answer { border-color: var(--ok); background: var(--ok-soft); opacity: 1; }
.quiz-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); opacity: 1; }
.quiz-why { margin: 6px 0 0; }
.au-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); position: sticky; top: 44px; z-index: 2; }
.au-lines { display: grid; gap: 6px; max-height: 480px; overflow: auto; padding-right: 4px; }
.au-line { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; line-height: 1.5; }
.au-line b { font: 600 .72rem var(--mono); text-transform: uppercase; margin-right: 6px; }
.au-line.hA b { color: var(--accent); }
.au-line.hB b { color: #7C3AED; }
.au-line.speaking { border-color: var(--accent); background: var(--accent-soft); }
.st-note-add { display: grid; gap: 6px; }
.st-note-add textarea { width: 100%; font: 400 .92rem/1.45 var(--sans); }
.st-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.st-note { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #FFFBEA; display: grid; gap: 6px; }
.st-note.pinned { background: var(--accent-soft); }
.st-note .small { display: flex; align-items: center; gap: 6px; }
.st-note .q-del { margin-left: auto; }
.st-note-t { white-space: pre-wrap; font-size: .9rem; }
.docs-ask { grid-column: 1 / -1; } .docs-ask .chat, .docs-ask #dc-form, .docs-ask .dc-suggest { max-width: 900px; }
.docs-upd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 10px; font-size: .9rem; font-weight: 500; }
.docs-upd[hidden] { display: none; }

/* =====================================================================
   v18 — Enterprise theme (corporate look). Layered on top: tokens first,
   then shell, top bar, components, pricing and the tour.
   ===================================================================== */
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --surface-2: #EEF1F5; --ink: #1B2533; --muted: #5E6B7C; --line: #D6DCE4;
  --accent: #0A5BB5; --accent-ink: #FFFFFF; --accent-soft: #E7F0FB;
  --ok: #107E3E; --ok-soft: #E3F4EA; --warn: #A35A00; --warn-soft: #FDF1DE; --bad: #BB0000; --bad-soft: #FDE8E8;
  --side: #0E2240; --side-2: #173460; --side-ink: #B8C5D9; --side-strong: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .04);
  --serif: var(--sans);
  --r: 4px; --r-lg: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E141D; --surface: #151D29; --surface-2: #1C2634; --ink: #E4E9F0; --muted: #97A3B4; --line: #2A3647;
    --accent: #5EA3F2; --accent-ink: #08111C; --accent-soft: #16304F;
    --side: #0A1628; --side-2: #15294A; --side-ink: #A9B7CC;
  }
}
:root[data-theme="dark"] {
  --bg: #0E141D; --surface: #151D29; --surface-2: #1C2634; --ink: #E4E9F0; --muted: #97A3B4; --line: #2A3647;
  --accent: #5EA3F2; --accent-ink: #08111C; --accent-soft: #16304F;
  --side: #0A1628; --side-2: #15294A; --side-ink: #A9B7CC;
}
body { font-size: 14px; letter-spacing: .005em; }
h1 { font: 600 1.45rem/1.25 var(--sans); letter-spacing: -.005em; }
h2 { font-size: .98rem; font-weight: 600; }

/* shell */
@media (min-width: 901px) { .shell { grid-template-columns: 232px minmax(0, 1fr); background: linear-gradient(90deg, var(--side) 0 232px, var(--bg) 232px); } }
@media (min-width: 901px) { .side { padding: 16px 12px; gap: 16px; } }
@media (min-width: 901px) { .brand { padding: 2px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.08); } }
.brand-mark { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #1C74D9, #0A5BB5); box-shadow: none; font-weight: 700; }
.brand-name { font: 700 1.05rem/1.1 var(--sans); letter-spacing: .01em; }
.brand-sub { font-size: .72rem; opacity: .8; }
.new-btn { border-radius: var(--r); background: #1C74D9; }
@media (min-width: 901px) { .nav a { border-radius: var(--r); font-size: .88rem; padding: 8px 10px; } }
@media (min-width: 901px) { .nav a[aria-current] { background: rgba(94, 163, 242, .16); box-shadow: inset 3px 0 0 #5EA3F2; } }
.badge { border-radius: 3px; }
.work { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
@media (min-width: 701px) { .main { padding: 22px clamp(16px, 2.6vw, 36px) 56px; flex: 1; } }
.main { flex: 1; }
.view { max-width: 1280px; gap: 16px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 25; height: 56px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(240px, 520px) minmax(120px, 1fr); align-items: center; gap: 16px; padding: 0 clamp(16px, 2.6vw, 36px); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(16,32,56,.03); }
.tb-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-search { position: relative; display: flex; align-items: center; }
.tb-search svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.tb-search input[type="search"] { padding: 7px 34px 7px 32px; background: var(--surface-2); border-color: transparent; border-radius: var(--r); font-size: .88rem; }
.tb-search input[type="search"]:focus { background: var(--surface); border-color: var(--accent); }
.tb-search kbd { position: absolute; right: 8px; font: 500 .7rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; background: var(--surface); }
.tb-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(16,32,56,.14); padding: 4px; max-height: 420px; overflow: auto; z-index: 40; }
.tb-hit { width: 100%; display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 10px; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: var(--r); cursor: pointer; }
.tb-hit.on, .tb-hit:hover { background: var(--accent-soft); }
.tb-kind { grid-row: span 2; font: 500 .68rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.tb-t { font-weight: 500; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-s { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-empty { padding: 10px; color: var(--muted); font-size: .85rem; }
.tb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tb-link { text-decoration: none; font-weight: 500; font-size: .86rem; color: var(--accent); padding: 6px 8px; border-radius: var(--r); cursor: pointer; }
.tb-link:hover { background: var(--accent-soft); }
.tb-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; cursor: pointer; }
.tb-icon:hover { color: var(--accent); border-color: var(--accent); }
.tb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--side); color: #fff; display: grid; place-items: center; font: 600 .75rem var(--sans); text-decoration: none; cursor: pointer; }
@media (max-width: 900px) { .topbar { display: none; } .work { min-height: 0; } }

/* page heads */
.page-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.eyebrow { font: 600 .7rem var(--sans); letter-spacing: .08em; color: var(--accent); }

/* buttons & fields */
.btn { border-radius: var(--r); font-weight: 600; font-size: .86rem; padding: 8px 14px; }
.btn.small { padding: 5px 10px; font-size: .8rem; }
.btn.primary { background: var(--accent); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.btn.primary:hover { filter: none; background: #084C98; }
:root[data-theme="dark"] .btn.primary:hover { background: #7AB4F5; }
.btn.ghost { color: var(--accent); border-color: #B7C7DB; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn.ghost.danger, .btn.danger { color: var(--bad); }
.btn.ghost.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], select, textarea { background: var(--surface); border-color: #BFC9D6; border-radius: var(--r); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { border-color: var(--line); }
.field > span { font-weight: 600; color: var(--ink); font-size: .78rem; }

/* panels, cards, tiles */
.panel { border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 18px; }
.panel > .panel-head:first-child { margin: -16px -18px 4px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.panel > .panel-head:first-child h2 { font-size: .95rem; }
.kpi { border-radius: var(--r-lg); box-shadow: var(--shadow); border-top: 3px solid var(--accent); padding: 14px 16px; }
.kpi-num { font: 700 1.8rem/1.1 var(--sans); }
.kpi-label { text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; font-weight: 600; }
.col { border-radius: var(--r-lg); background: #E8ECF2; }
:root[data-theme="dark"] .col { background: var(--surface-2); }
.chip { border-radius: 3px; font-size: .7rem; }
.empty-state { border-radius: var(--r-lg); }
.ws-tabs { gap: 0; }
.ws-tabs a { font-weight: 600; font-size: .86rem; border-bottom-width: 3px; }
.toast { border-radius: var(--r); background: #1B2533; color: #fff; }
.st-tabs button, .dq-f, .docs-jump button { border-radius: var(--r); }
.dq details, .st-terms > div, .st-person, .st-qa details, .doc, .au-line, .quiz-opt, .fc, .st-note { border-radius: var(--r-lg); }
.dq-tools, .docs-upd { border-radius: var(--r-lg); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto auto 1fr auto; }
.plan-card.featured { border: 2px solid var(--accent); box-shadow: 0 6px 24px rgba(10, 91, 181, .12); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-top h2 { font-size: 1.1rem; }
.plan-price { margin: 0; color: var(--muted); }
.plan-price strong { font: 700 2rem/1 var(--sans); color: var(--ink); }
.plan-feats { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 7px; font-size: .88rem; }
.plan-feats li { padding-left: 22px; position: relative; }
.plan-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.compare-plans { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.compare-plans th, .compare-plans td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-plans thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-plans tbody th { font-weight: 500; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-dim { position: fixed; inset: 0; background: rgba(8, 18, 34, .55); }
.tour-hole { position: fixed; border-radius: 8px; box-shadow: 0 0 0 4000px rgba(8, 18, 34, .55), 0 0 0 3px #5EA3F2; transition: all .25s ease; pointer-events: none; }
.tour-card { position: fixed; background: var(--surface); color: var(--ink); border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 18px 20px; display: grid; gap: 8px; outline: none; }
.tour-card h2 { font-size: 1.05rem; }
.tour-card p { font-size: .9rem; line-height: 1.5; }
.tour-step { font: 600 .7rem var(--sans) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.tour-dots { display: flex; gap: 5px; margin-top: 2px; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots span.on { background: var(--accent); width: 18px; border-radius: 4px; }
.tour-acts { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-acts .grow-s { flex: 1; }
.prep-strip > * { min-width: 0; overflow-wrap: break-word; }
.prep-strip .btn { white-space: normal; text-align: center; max-width: 100%; }
.card, .job-card { border-radius: var(--r-lg); }

/* =====================================================================
   v19 — Dynamic website look: top navigation, hero headers, motion,
   hover lift, count-up numbers (JS), skeletons, light/dark switch.
   ===================================================================== */
:root { --hero-a: #E8F1FD; --hero-b: #F1ECFE; --hero-c: #E6F8F1; --glow: rgba(10, 91, 181, .18); --ease: cubic-bezier(.2, .7, .2, 1); }
:root[data-theme="dark"] { --hero-a: #13243D; --hero-b: #221A3B; --hero-c: #102D27; --glow: rgba(94, 163, 242, .22);
  --side: #0A1628; --side-2: #15294A; --ok-soft: #12321F; --warn-soft: #382810; --bad-soft: #3B1917; --ok: #4CC38A; --warn: #E6A94E; --bad: #F07A70; color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-a: #13243D; --hero-b: #221A3B; --hero-c: #102D27; --glow: rgba(94, 163, 242, .22); } }
:root[data-theme="light"] { color-scheme: light; }
html { scroll-behavior: smooth; }
body { transition: background-color .3s var(--ease), color .3s var(--ease); }

/* ---- top navigation (desktop) ---- */
@media (min-width: 901px) {
  .shell { display: block; background: var(--bg); }
  .side { position: sticky; top: 0; z-index: 40; height: auto; overflow: visible; flex-direction: row; align-items: center; gap: 18px;
    padding: 10px clamp(16px, 3vw, 40px); background: linear-gradient(100deg, #0B1E3A 0%, #0E2A55 55%, #123A6E 100%); box-shadow: 0 2px 18px rgba(8, 20, 40, .18); transition: padding .25s var(--ease); }
  .side .brand { padding: 0; border: 0; flex: none; }
  .side .nav { display: flex; gap: 2px; order: 2; margin: 0 auto; }
  .side .nav a { position: relative; padding: 8px 12px; border-radius: 999px; font-size: .88rem; box-shadow: none !important; background: none; transition: background .2s, color .2s; }
  .side .nav a:hover { background: rgba(255,255,255,.08); }
  .side .nav a[aria-current] { background: rgba(255,255,255,.14); color: #fff; }
  .side .nav a[aria-current]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #5EA3F2, #9B8CFF); }
  .side .nav .badge { margin-left: 6px; }
  .side .new-btn { order: 4; flex: none; border-radius: 999px; padding: 8px 16px; background: linear-gradient(90deg, #1C74D9, #5B5BF0); box-shadow: 0 4px 14px rgba(28, 116, 217, .35); }
  .side .new-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
  .side .side-foot { order: 3; margin: 0; display: flex; align-items: center; }
  .side .side-foot p { display: none; }
  .brand-mark { transition: width .25s var(--ease), height .25s var(--ease); }
  body.scrolled .side { padding-top: 6px; padding-bottom: 6px; }
  body.scrolled .side .brand-sub { display: none; }
  body.scrolled .brand-mark { width: 28px; height: 28px; font-size: .8rem; }
  .work { min-height: calc(100vh - 60px); }
  .topbar { position: relative; top: auto; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(8px); }
}

/* ---- hero page headers ---- */
.page-head { position: relative; overflow: hidden; border: 0; border-radius: 14px; padding: 22px 24px; background: linear-gradient(120deg, var(--hero-a), var(--hero-b), var(--hero-c), var(--hero-a)); background-size: 300% 300%; animation: heroShift 18s ease infinite; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.page-head::after { content: ''; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: 1.6rem; }
@keyframes heroShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---- page entrance and staggered sections ---- */
.view { animation: pageIn .45s var(--ease) both; }
.view > * { animation: rise .5s var(--ease) both; }
.view > *:nth-child(2) { animation-delay: .05s; } .view > *:nth-child(3) { animation-delay: .1s; } .view > *:nth-child(4) { animation-delay: .15s; }
.view > *:nth-child(5) { animation-delay: .2s; } .view > *:nth-child(6) { animation-delay: .25s; } .view > *:nth-child(n+7) { animation-delay: .3s; }
.kpis > * { animation: rise .5s var(--ease) both; } .kpis > *:nth-child(2) { animation-delay: .06s; } .kpis > *:nth-child(3) { animation-delay: .12s; } .kpis > *:nth-child(4) { animation-delay: .18s; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- hover lift ---- */
.kpi, .plan-card, .prep-tile, .job-list > *, .col > article, .st-terms > div, .st-person, .dq details, .doc, .engine-opt { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.kpi:hover, .plan-card:hover, .prep-tile:hover, .job-list > *:hover, .col > article:hover, .st-person:hover, .engine-opt:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16, 32, 56, .12); }
.panel { transition: box-shadow .25s var(--ease); }
.panel:hover { box-shadow: 0 6px 22px rgba(16, 32, 56, .08); }
.btn { transition: transform .15s var(--ease), background .2s, box-shadow .2s, filter .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #6D5BF0)); }
.btn.primary:hover { box-shadow: 0 6px 18px var(--glow); }
.kpi { border-top: 0; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #1C74D9, #7C6BF2, #22B07D); background-size: 200% 100%; animation: heroShift 8s linear infinite; }

/* ---- bars grow in, skeleton loaders ---- */
.meter span, .dq-bar i, .bar > span, .gauge circle:last-of-type { animation: growX 1s var(--ease) both; transform-origin: left center; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[aria-busy="true"] { position: relative; min-height: 80px; }
[aria-busy="true"]::before { content: ''; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 40%, var(--surface-2) 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; opacity: .8; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- footer ---- */
.site-foot { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: center; padding: 22px clamp(16px, 3vw, 40px); border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; margin-top: 12px; }
.sf-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark.sm { width: 26px; height: 26px; font-size: .72rem; border-radius: 6px; }
.sf-links { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }
.sf-links a, .sf-links .linkish { color: var(--muted); text-decoration: none; font-size: .85rem; cursor: pointer; }
.sf-links a:hover, .sf-links .linkish:hover { color: var(--accent); }
.sf-note { grid-column: 1 / -1; font-size: .78rem; }
@media (max-width: 700px) { .site-foot { grid-template-columns: 1fr; padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); } .sf-links { justify-content: flex-start; } }
.tb-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: -3px; }

@media (prefers-reduced-motion: reduce) {
  .page-head, .kpi::before, .view, .view > *, .kpis > *, .meter span, .dq-bar i { animation: none !important; }
  .kpi:hover, .plan-card:hover, .prep-tile:hover, .job-list > *:hover, .col > article:hover { transform: none; }
}
@media (min-width: 901px) {
  html { scroll-padding-top: 76px; }
  .docs-jump { top: 58px; }
  .au-bar { top: 110px; }
  .docs-grid > .panel, [id^="sec-"] { scroll-margin-top: 120px; }
}
@media (min-width: 901px) and (max-width: 1280px) {
  .side .nav .lbl { display: none; }
  .side .nav .lbl-s { display: inline; }
  .side .nav a { padding: 8px 9px; gap: 6px; }
  .side .brand-sub, .side .side-foot { display: none; }
  .side .new-btn .lbl { display: none; }
  .side .new-btn .lbl-s { display: inline; }
}
@media (min-width: 901px) { .lbl-s { display: none; } }
@media (min-width: 901px) and (max-width: 1280px) { .side .nav .lbl-s, .side .new-btn .lbl-s { display: inline; } }

/* =====================================================================
   v20 — "Portal" design, borrowing patterns from the busiest job and
   social sites: white icon-over-label header, big rounded search, a
   three-column home (profile card · feed · side widgets), logo tiles on
   job cards, pill buttons, quiet warm-grey canvas.
   ===================================================================== */
:root {
  --bg: #F4F2EE; --surface: #FFFFFF; --surface-2: #F3F2EF; --ink: #1D1D1F; --muted: #5F6368; --line: #E0DFDC;
  --accent: #1D5FD1; --accent-ink: #FFFFFF; --accent-soft: #E8F0FC; --r: 8px; --r-lg: 10px;
  --shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.04);
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1B1E22; --surface-2: #23272C; --ink: #ECEDEE; --muted: #A2A7AD; --line: #30353B;
  --accent: #7AA8F8; --accent-ink: #0B0D10; --accent-soft: #1C2B45;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #111315; --surface: #1B1E22; --surface-2: #23272C; --ink: #ECEDEE; --muted: #A2A7AD; --line: #30353B; --accent: #7AA8F8; --accent-ink: #0B0D10; --accent-soft: #1C2B45; } }

/* header: white bar, icons over labels */
@media (min-width: 901px) {
  .side { background: var(--surface); color: var(--muted); box-shadow: none; border-bottom: 1px solid var(--line); padding: 0 clamp(16px, 3vw, 40px); min-height: 60px; gap: 14px; }
  body.scrolled .side { padding-top: 0; padding-bottom: 0; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
  .side .brand { color: var(--ink); }
  .side .brand-sub { color: var(--muted); }
  .brand-mark { background: var(--accent); border-radius: 8px; }
  .side .nav { gap: 0; align-self: stretch; }
  .side .nav a { flex-direction: column; justify-content: center; gap: 2px; min-width: 76px; padding: 6px 10px 5px; border-radius: 0; color: var(--muted); font-size: .74rem; font-weight: 500; }
  .side .nav a svg { width: 22px; height: 22px; stroke-width: 1.7; }
  .side .nav a:hover { background: none; color: var(--ink); }
  .side .nav a[aria-current] { background: none; color: var(--ink); }
  .side .nav a[aria-current]::after { left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 0; background: var(--ink); }
  .side .nav .badge { position: absolute; top: 4px; left: calc(50% + 4px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #CC1016; color: #fff; font: 600 .62rem/16px var(--sans); text-align: center; }
  .side .new-btn { background: var(--accent); box-shadow: none; }
  .side .new-btn:hover { transform: none; filter: brightness(1.08); }
  .side .pill[data-state="ready"] { color: var(--ok); background: var(--ok-soft); }
  .side .pill[data-state="missing"] { color: var(--warn); background: var(--warn-soft); }
  .topbar { background: transparent; backdrop-filter: none; border-bottom: 0; box-shadow: none; height: 64px; }
  .tb-title { font-size: 1rem; }
  .tb-search input[type="search"] { height: 42px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); padding-left: 40px; font-size: .92rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
  .tb-search input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .tb-search svg { left: 15px; }
}

/* quieter page headers */
.page-head { background: none; animation: none; box-shadow: none; border-radius: 0; padding: 4px 2px 10px; border-bottom: 0; overflow: visible; }
.page-head::after { display: none; }
.page-head h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { color: var(--muted); letter-spacing: .06em; }

/* cards, buttons, chips */
.panel { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel:hover { box-shadow: var(--shadow); }
.panel > .panel-head:first-child { border-bottom: 0; padding-bottom: 4px; }
.panel > .panel-head:first-child h2 { font-size: 1.02rem; font-weight: 600; }
.btn { border-radius: 999px; font-weight: 600; }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); box-shadow: none; }
.btn.ghost { color: var(--accent); border: 1px solid var(--accent); background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.chip { border-radius: 999px; }
.kpi::before { display: none; }
.kpi { border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* home: three columns */
.dash3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.dash3 > * { display: grid; gap: 16px; min-width: 0; align-content: start; }
.d-left { position: sticky; top: 76px; }
@media (max-width: 1150px) { .dash3 { grid-template-columns: 230px minmax(0, 1fr); } .d-right { grid-column: 2; } }
@media (max-width: 900px) { .dash3 { grid-template-columns: minmax(0, 1fr); } .d-right { grid-column: auto; } .d-left { position: static; } }
.pcard { padding: 0 0 12px; gap: 8px; overflow: hidden; }
.pcard-cover { height: 58px; background: linear-gradient(120deg, #A7C4F5, #C9B8F3 55%, #A8E0CF); }
.pcard-avatar { width: 68px; height: 68px; margin: -38px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--side, #0E2240); color: #fff; font: 600 1.2rem var(--sans); text-decoration: none; border: 3px solid var(--surface); cursor: pointer; }
.pcard-body { display: grid; gap: 2px; text-align: center; padding: 0 14px; }
.pcard-name { font-size: 1.02rem; }
.pcard-head { font-size: .84rem; color: var(--ink); }
.pcard-strength { padding: 8px 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.pcard-links { display: grid; border-top: 1px solid var(--line); }
.pcard-links a { display: flex; justify-content: space-between; padding: 8px 14px; font-size: .84rem; text-decoration: none; color: var(--muted); cursor: pointer; }
.pcard-links a:hover { background: var(--surface-2); color: var(--ink); }
.pcard-links strong { color: var(--accent); }
.kpis-v { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis-v .kpi { padding: 12px; }
.kpis-v .kpi-num { font-size: 1.4rem; }
.kpis-v .kpi-sub { font-size: .72rem; }
@media (max-width: 900px) { .kpis-v { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* job cards with logo tiles */
.co-logo { flex: none; width: 40px; height: 40px; border-radius: 8px; display: inline-grid; place-items: center; margin-right: 4px; font: 700 1rem var(--sans);
  background: hsl(var(--h, 210) 60% 93%); color: hsl(var(--h, 210) 45% 32%); }
:root[data-theme="dark"] .co-logo { background: hsl(var(--h, 210) 35% 22%); color: hsl(var(--h, 210) 70% 80%); }
.job-title-row { align-items: center; }
.job-list > * { border-radius: 0; }
.job-list > *:hover { transform: none; box-shadow: none; background: var(--surface-2); }
.job-title { font-weight: 600; color: var(--accent); }
.d-right .prep-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-right .prep-tile:first-child, .d-right .prep-tile:nth-child(2) { grid-column: 1 / -1; }
.d-right .note { flex-direction: column; align-items: flex-start; gap: 4px; }
.d-right .prep-tile .btn { white-space: normal; }
@media (max-width: 1150px) { .d-right .prep-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .d-right .prep-tile:first-child, .d-right .prep-tile:nth-child(2) { grid-column: auto; } }
@media (max-width: 700px) { .d-right .prep-strip { grid-template-columns: minmax(0, 1fr); } }

/* v21 customise dashboard (Fiori-style edit home page) */
.cust-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-lg); background: var(--accent-soft); border: 1px dashed var(--accent); position: sticky; top: 70px; z-index: 20; }
.customising .dash3 > * { min-height: 120px; padding: 6px; border-radius: 12px; outline: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.sec-edit { position: relative; }
.sec-tools { display: flex; align-items: center; gap: 4px; padding: 6px 8px; margin: -6px -6px 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; grid-column: 1 / -1; }
.panel > .sec-tools { margin: -10px -12px 6px; }
.kpis > .sec-tools { grid-column: 1 / -1; margin: 0 0 4px; }
.sec-grip { cursor: grab; font-size: 1.1rem; color: var(--muted); padding: 0 4px; user-select: none; }
.sec-grip:active { cursor: grabbing; }
.sec-name { font-weight: 600; margin-right: auto; }
.sec-tools button { width: 28px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: .85rem; }
.sec-tools button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.sec-tools button:disabled { opacity: .35; cursor: default; }
.sec-hidden.sec-edit { opacity: .45; filter: grayscale(.6); }
.dragging { opacity: .4; }
.drop-before { box-shadow: 0 -4px 0 0 var(--accent) !important; }
.drop-col { background: var(--accent-soft); }
.dash3.no-right { grid-template-columns: 250px minmax(0, 1fr); }
.dash3.no-left { grid-template-columns: minmax(0, 1fr) 310px; }
.dash3.no-left.no-right { grid-template-columns: minmax(0, 1fr); }
.dash3.no-right > .d-right, .dash3.no-left > .d-left { display: none; }
@media (max-width: 1150px) { .dash3.no-left { grid-template-columns: minmax(0, 1fr); } .dash3.no-left .d-right { grid-column: auto; } }
@media (max-width: 900px) { .dash3.no-right, .dash3.no-left { grid-template-columns: minmax(0, 1fr); } }
.d-left .prep-strip { grid-template-columns: minmax(0, 1fr); }
.d-left .note { flex-direction: column; align-items: flex-start; gap: 4px; }
.d-left .prep-tile .btn { white-space: normal; }
.d-left .sec-tools button, .d-right .sec-tools button { width: 24px; }
@media (max-width: 900px) { .d-left .prep-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== v22: installable app, offline, update bar, dialogs ===== */
.tb-install { margin-right: 4px; }
.upd-bar, .offline-bar { position: fixed; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; gap: 12px; align-items: center;
  background: #1B1F29; color: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); max-width: calc(100vw - 32px); font-size: 14px; }
.upd-bar { bottom: 24px; }
.offline-bar { top: 12px; background: #7A4B00; }
@media (max-width: 900px) { .upd-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }
dialog.modal { border: 1px solid var(--line, #E3DFD8); border-radius: 16px; padding: 0; max-width: min(460px, calc(100vw - 32px)); background: var(--surface, #fff); color: var(--ink); }
dialog.modal::backdrop { background: rgba(15, 23, 41, .45); }
dialog.modal .modal-body { padding: 22px; }
dialog.modal h2 { margin-top: 0; }
.is-app .site-foot .sf-note { display: none; }

/* ===== v23: first-run welcome ===== */
body.no-scroll { overflow: hidden; }
.welcome { position: fixed; inset: 0; z-index: 120; background: rgba(15, 23, 41, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.wl-card { background: var(--surface); color: var(--ink); border-radius: 18px; width: min(560px, 100%); padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: calc(100dvh - 32px); overflow-y: auto; }
.wl-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wl-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.wl-steps li { flex: 1; font-size: 12px; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.wl-steps li.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.wl-steps li.done { border-color: var(--accent); opacity: .6; }
.wl-card h2 { margin: 0 0 4px; font-size: 22px; }
.wl-fields { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wl-chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer; min-height: 40px; }
.wl-chip:hover { border-color: var(--accent); }
.wl-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.wl-acts { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.wl-card .linkish { min-height: 32px; }
@media (max-width: 520px) { .wl-card { padding: 18px 16px 14px; border-radius: 14px; } .wl-card h2 { font-size: 19px; } .wl-chip { padding: 8px 12px; font-size: 13px; } }

/* ===== v24: tablets and touch ===== */
/* Tablets in portrait (701-900px): app-style bottom tab bar instead of a cramped top menu. */
@media (min-width: 701px) and (max-width: 900px) {
  .side { overflow: visible; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .new-btn { display: flex !important; margin-left: auto; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0;
    background: var(--side); border-top: 1px solid var(--side-2); padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .nav a { position: relative; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; min-height: 56px; font-size: .74rem; border-radius: 10px; text-align: center; }
  .nav svg { display: block !important; width: 22px; height: 22px; }
  .nav a[aria-current] { box-shadow: none; background: var(--side-2); color: var(--side-strong); }
  .nav .badge { position: absolute; top: 3px; right: calc(50% - 24px); margin: 0; font-size: .62rem; padding: 0 5px; }
  .lbl { display: none; }
  .lbl-s { display: inline; }
  .side-foot { display: none !important; }
  .main { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* Fingers need bigger targets than mouse pointers. */
@media (pointer: coarse) {
  .btn { min-height: 42px; }
  .btn.small { min-height: 38px; }
  .pill-link { min-height: 38px; display: inline-flex; align-items: center; padding-left: 12px; padding-right: 12px; }
  .linkish, .sf-links a { min-height: 36px; display: inline-flex; align-items: center; }
  .sf-links { row-gap: 2px; }
  .chip[data-src], #f-src [data-src] { min-height: 36px; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  select, input, textarea { font-size: 16px; }
}
/* Wide tables scroll inside their card, never the whole page. */
.table-scroll, .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
/* Jobs intro: short on phones, full text one tap away. Filters fold away on phones. */
.jobs-intro .more, .f-toggle { display: none; }
@media (max-width: 700px) {
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters #f-q { flex: 1 1 60%; }
  .filters .f-toggle { display: inline-flex; flex: 0 0 auto; }
  .filters:not(.open) > :not(#f-q):not(.f-toggle) { display: none; }
  .jobs-intro .hint { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .jobs-intro.open .hint { display: block; }
  .jobs-intro .more { display: inline-flex; margin-top: 6px; }
}
@media (max-width: 700px) { .page-head .row { flex-wrap: wrap; } }

/* ===== v25: careers sites from the CV ===== */
.emp-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.emp-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.emp-list .check-line { align-items: flex-start; margin: 0; }
.emp-list .check-line input { margin-top: 3px; }
.emp-add input { flex: 1 1 auto; min-width: 0; }

/* ===== v26: switch on free AI dialog ===== */
.engine-modal { max-width: min(520px, calc(100vw - 32px)); }
.eng-opts { display: grid; gap: 10px; margin: 14px 0 8px; }
.eng-opt { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); color: var(--ink); font: inherit; }
button.eng-opt { cursor: pointer; }
button.eng-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.eng-opt span { color: var(--muted); font-size: .88rem; }
.eng-opt input { flex: 1 1 auto; min-width: 0; }
.eng-claude { border-color: var(--accent); }
.claude-link summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.claude-link input { flex: 1 1 auto; min-width: 0; }

/* ===== v27: Ask AI drawer ===== */
.ask-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 110; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(15, 23, 41, .18); display: flex; flex-direction: column; animation: askIn .2s ease-out; }
@keyframes askIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ask-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.ask-intro p { margin-top: 0; color: var(--muted); }
.ask-q { justify-self: end; max-width: 85%; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; }
.ask-a { max-width: 95%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.ask-a p { margin: 0 0 8px; } .ask-a p:last-child { margin-bottom: 0; } .ask-a ul { margin: 4px 0 8px; padding-left: 18px; }
.ask-wait { color: var(--muted); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: .82rem; cursor: pointer; text-align: left; }
.chip-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.ask-form { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.ask-form textarea { flex: 1; min-width: 0; resize: none; }
@media (max-width: 700px) { .ask-drawer { width: 100vw; } }

/* ===== v28: encouragement ticker ===== */
.quote-bar { position: relative; display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, var(--accent-soft), var(--surface) 50%, var(--accent-soft));
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; min-height: 36px; padding-right: 36px; overflow: hidden; }
.q-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.q-track { display: inline-flex; gap: 48px; white-space: nowrap; padding: 8px 0; animation: qscroll 500s linear infinite; }
.quote-bar:hover .q-track, .quote-bar:focus-within .q-track { animation-play-state: paused; }
.q-item { font-style: italic; }
@keyframes qscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.q-static { display: none; margin: 0; padding: 8px 16px; font-style: italic; }
.q-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; width: 28px; height: 28px; border-radius: 6px; }
.q-close:hover { background: var(--surface-2); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .q-viewport { display: none; } .q-static { display: block; } }
@media (max-width: 900px) { .quote-bar { font-size: .82rem; } }
/* Illustrations */
:root { --art-a: #2447D6; --art-b: #7AA8F8; --art-c: #F2B84B; --art-d: #2FA37C; --art-skin: #E9B08B; --art-skin2: #8D5A3B; --art-ink: #1B2A4A; --art-paper: #FFFFFF; --art-soft: #E8EEFF; --art-line: #C9D3EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --art-paper: #23272C; --art-soft: #1C2B45; --art-line: #3A4250; --art-ink: #DCE3F2; } }
:root[data-theme="dark"] { --art-paper: #23272C; --art-soft: #1C2B45; --art-line: #3A4250; --art-ink: #DCE3F2; }
.art { display: block; width: 100%; height: auto; }

/* ===== v29: dashboard next step, quick tiles, CVs card ===== */
.start-panel { padding: 0; overflow: hidden; }
.next-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 20px 22px 8px;
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%); }
.next-hero h2 { margin: 2px 0 6px; font-size: 1.35rem; line-height: 1.25; }
.next-hero .muted { margin: 0 0 14px; }
.nh-art { max-width: 280px; justify-self: end; width: 100%; }
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.q-tile { display: grid; gap: 2px; align-content: start; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.q-tile:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(36, 71, 214, .12); }
.q-art { display: block; height: 64px; margin-bottom: 4px; }
.q-art .art { height: 64px; width: auto; }
.cv-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.cv-list li { display: flex; gap: 10px; align-items: flex-start; }
.cv-list .cv-skills { display: block; margin-top: 2px; }
.best-cv { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 1150px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .next-hero { grid-template-columns: minmax(0, 1fr); } .nh-art { max-width: 200px; justify-self: center; order: -1; } .next-hero h2 { font-size: 1.15rem; } }
.empty-art { max-width: 220px; margin: 0 auto 8px; }
.empty-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; }
.empty-hero .empty-art { margin: 0; }
.wl-art { max-width: 240px; margin: -6px auto 6px; }
@media (max-width: 700px) { .empty-hero { grid-template-columns: minmax(0, 1fr); } .wl-art { max-width: 170px; } }

/* =====================================================================
   v30 — Premium look: indigo/violet brand, depth, gradient accents,
   lively but calm motion (all switched off for reduced motion).
   ===================================================================== */
:root {
  --display: "Plus Jakarta Sans", var(--sans);
  --bg: #F5F6FB; --surface: #FFFFFF; --surface-2: #F2F4FA; --ink: #0F172A; --muted: #586179; --line: #E2E6F0;
  --accent: #4F46E5; --accent-ink: #FFFFFF; --accent-soft: #EEEDFF; --accent-2: #7C3AED; --accent-3: #0EA5E9;
  --grad: linear-gradient(120deg, #4F46E5 0%, #7C3AED 55%, #0EA5E9 120%);
  --r: 10px; --r-lg: 16px; --glow: rgba(79, 70, 229, .22);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px -12px rgba(30, 27, 75, .22);
  --art-a: #4F46E5; --art-b: #A5B4FC; --art-soft: #EEF0FF;
}
:root[data-theme="dark"] {
  --bg: #0A0D16; --surface: #121726; --surface-2: #1A2033; --ink: #E8EAF2; --muted: #9AA3B8; --line: #262E44;
  --accent: #8B93FF; --accent-ink: #0A0D16; --accent-soft: #1F2350; --accent-2: #B794F6; --accent-3: #38BDF8;
  --grad: linear-gradient(120deg, #6366F1 0%, #8B5CF6 55%, #0EA5E9 120%); --glow: rgba(139, 147, 255, .25);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25); --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6);
  --art-a: #8B93FF; --art-b: #4F57B8; --art-soft: #1B2042;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A0D16; --surface: #121726; --surface-2: #1A2033; --ink: #E8EAF2; --muted: #9AA3B8; --line: #262E44;
  --accent: #8B93FF; --accent-ink: #0A0D16; --accent-soft: #1F2350; --accent-2: #B794F6; --accent-3: #38BDF8;
  --grad: linear-gradient(120deg, #6366F1 0%, #8B5CF6 55%, #0EA5E9 120%); --glow: rgba(139, 147, 255, .25);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.25); --shadow-lg: 0 18px 40px -12px rgba(0,0,0,.6);
  --art-a: #8B93FF; --art-b: #4F57B8; --art-soft: #1B2042; } }

/* soft colour wash behind everything */
body { background:
  radial-gradient(900px 520px at 105% -8%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 62%),
  radial-gradient(800px 480px at -8% 4%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
  var(--bg); background-attachment: fixed; }
h1, h2, h3, .pcard-name, .kpi-num, .wl-card h2, .tour-card h2 { font-family: var(--display); letter-spacing: -.015em; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; background: linear-gradient(90deg, var(--ink) 30%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* header: glass bar, animated active tab */
@media (min-width: 901px) {
  .side { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
  .side::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); background-size: 200% 100%; opacity: .55; animation: gradSlide 10s linear infinite; }
  .side .nav a { transition: color .2s; }
  .side .nav a svg { transition: transform .25s var(--ease); }
  .side .nav a:hover svg { transform: translateY(-2px); }
  .side .nav a[aria-current] { color: var(--accent); }
  .side .nav a[aria-current]::after { background: var(--grad); height: 3px; border-radius: 3px 3px 0 0; animation: tabIn .35s var(--ease) both; }
  .side .new-btn { background: var(--grad); background-size: 160% 100%; box-shadow: 0 6px 18px -4px var(--glow); transition: background-position .4s var(--ease), transform .2s var(--ease), box-shadow .2s; }
  .side .new-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 10px 24px -6px var(--glow); filter: none; }
}
.brand-mark { background: var(--grad) !important; box-shadow: 0 4px 12px -2px var(--glow); position: relative; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 6s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes gradSlide { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes tabIn { from { transform: scaleX(.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* cards with depth */
.panel { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.panel:hover { box-shadow: var(--shadow-lg); }
.panel > .panel-head:first-child h2 { font-size: 1.05rem; font-weight: 700; }
.kpi { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi::before { display: block; height: 3px; background: var(--grad); background-size: 200% 100%; animation: gradSlide 8s linear infinite; }
.kpi-num { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-num small { -webkit-text-fill-color: var(--muted); }
.kpi:hover, .q-tile:hover, .prep-tile:hover, .plan-card:hover, .cv-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi, .q-tile, .prep-tile, .plan-card, .cv-list li { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }

/* buttons: gradient with a light sweep */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: .005em; }
.btn.primary { position: relative; overflow: hidden; border: 0; color: #fff; background: var(--grad); background-size: 170% 100%; box-shadow: 0 6px 16px -6px var(--glow); transition: background-position .45s var(--ease), transform .15s var(--ease), box-shadow .25s; }
.btn.primary:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 10px 24px -8px var(--glow); transform: translateY(-1px); }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s var(--ease); pointer-events: none; }
.btn.primary:hover::after { transform: translateX(130%); }
:root[data-theme="dark"] .btn.primary { color: #fff; }
.btn.ghost { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }

/* home: next-step hero with moving light */
.start-panel { position: relative; isolation: isolate; }
.start-panel .next-hero { position: relative; background: none; padding: 26px 26px 12px; }
.start-panel::before, .start-panel::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.start-panel::before { width: 320px; height: 320px; right: -80px; top: -140px; background: color-mix(in srgb, var(--accent-2) 40%, transparent); animation: floatA 14s ease-in-out infinite; }
.start-panel::after { width: 260px; height: 260px; left: -90px; top: 40px; background: color-mix(in srgb, var(--accent-3) 28%, transparent); animation: floatB 18s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes floatB { 50% { transform: translate(40px, -20px) scale(.94); } }
.next-hero h2 { font-size: 1.5rem; font-weight: 800; }
.next-hero .eyebrow { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: .68rem; letter-spacing: .08em; }
.nh-art .art { animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 14px 22px rgba(30, 27, 75, .14)); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.quick-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.q-tile { position: relative; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); }
.q-tile::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.q-tile:hover { border-color: transparent; }
.q-tile:hover::before { opacity: 1; }
.q-tile .q-art .art { transition: transform .35s var(--ease); }
.q-tile:hover .q-art .art { transform: scale(1.08) rotate(-2deg); }
.start-panel .onboard-steps { margin: 4px 16px 6px; padding: 0; }
.start-panel > .small { padding: 0 22px 16px; margin: 0; }
.onboard-steps li { transition: background .25s, transform .25s var(--ease); border-radius: 12px; }
.onboard-steps li.now { background: var(--accent-soft); }
.onboard-steps li.now .step-num { background: var(--grad); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); animation: pulseRing 2.4s ease-out infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* profile card */
.pcard-cover { height: 64px; background: var(--grad); background-size: 200% 100%; animation: gradSlide 16s linear infinite; }
.pcard-avatar { background: var(--surface) !important; color: var(--accent) !important; box-shadow: 0 6px 16px -6px var(--glow); font-family: var(--display); font-weight: 800; }
.pcard-edit { justify-self: center; margin-top: 4px; }

/* CVs card: long names and skills stay inside the box */
.cvs-card { overflow: hidden; }
.cvs-card p { overflow-wrap: anywhere; }
.cv-list li { min-width: 0; padding: 8px; border-radius: 12px; border: 1px solid transparent; }
.cv-list li:hover { border-color: var(--line); background: var(--surface-2); transform: none; box-shadow: none; }
.cv-meta { min-width: 0; flex: 1; }
.cv-name { display: flex; gap: 6px; align-items: center; min-width: 0; }
.cv-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-name .chip { flex: none; }
.cv-list .cv-skills { overflow-wrap: anywhere; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.file-ext { flex: none; background: var(--grad) !important; color: #fff !important; border: 0 !important; }

/* job cards */
.job-list > * { position: relative; transition: background .2s, transform .2s var(--ease); }
.job-list > *::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transition: transform .25s var(--ease); }
.job-list > *:hover::before { transform: scaleY(1); }
.score-pill { font-family: var(--display); font-weight: 800; }
.score-pill.ok, .score-pill.good { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent); }
.co-logo { border-radius: 12px; }

/* page entrance: only when you open a page, not when it refreshes itself */
.view, .view > * { animation: none; }
.view.page-in { animation: pageIn .4s var(--ease) both; }
.view.page-in > *, .view.page-in .dash3 > * > *, .view.page-in .job-list > * { animation: rise .55s var(--ease) both; }
.view.page-in > *:nth-child(2), .view.page-in .dash3 > * > *:nth-child(2), .view.page-in .job-list > *:nth-child(2) { animation-delay: .06s; }
.view.page-in > *:nth-child(3), .view.page-in .dash3 > * > *:nth-child(3), .view.page-in .job-list > *:nth-child(3) { animation-delay: .12s; }
.view.page-in > *:nth-child(4), .view.page-in .dash3 > * > *:nth-child(4), .view.page-in .job-list > *:nth-child(4) { animation-delay: .18s; }
.view.page-in > *:nth-child(n+5), .view.page-in .dash3 > * > *:nth-child(n+5), .view.page-in .job-list > *:nth-child(n+5) { animation-delay: .24s; }
.view.page-in .d-mid > * { animation-delay: .08s; }
.view.page-in .d-right > * { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.ws-tabs a { transition: color .2s, background .2s; }
.ws-tabs a[aria-current] { color: var(--accent); }

/* background work tray */
.bg-tray { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: min(340px, calc(100vw - 32px)); }
.bg-task { min-width: 0; }
.bg-task { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-lg); animation: rise .35s var(--ease) both; }
.bg-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bg-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; cursor: pointer; }
.bg-title:hover { color: var(--accent); }
.bg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; animation: pulseRing 1.6s ease-out infinite; }
.bg-task.done .bg-dot { background: var(--ok); animation: none; }
.bg-task.failed .bg-dot { background: var(--warn); animation: none; }
.bg-step { font-size: .8rem; color: var(--muted); margin: 2px 0 6px 17px; overflow-wrap: anywhere; }
.bg-bar { height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bg-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); background-size: 200% 100%; animation: gradSlide 1.6s linear infinite; transition: width .6s var(--ease); }
.bg-task.done .bg-bar i { background: var(--ok); animation: none; }
.icon-btn.sm { width: 24px; height: 24px; min-width: 24px; font-size: .9rem; }
.bg-note { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; }
.short-hint { background: var(--warn-soft); color: var(--ink); border-radius: 10px; padding: 8px 10px; }
.toast.with-link { display: flex; gap: 10px; align-items: center; }
.toast-link { color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 900px) { .bg-tray { right: 12px; left: 12px; width: auto; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } }

/* welcome wizard and dialogs: a little more polish */
.wl-card, .tour-card, .eng-card { border-radius: 20px; box-shadow: var(--shadow-lg); }
.wl-chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.wl-steps li.on { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .side::after, .brand-mark::after, .kpi::before, .pcard-cover, .start-panel::before, .start-panel::after, .nh-art .art, .onboard-steps li.now .step-num,
  .view.page-in, .view.page-in > *, .view.page-in .dash3 > * > *, .view.page-in .job-list > *, .bg-task, .bg-dot, .bg-bar i, .side .nav a[aria-current]::after { animation: none !important; }
  .btn.primary::after { display: none; }
  .kpi:hover, .q-tile:hover, .prep-tile:hover, .plan-card:hover, .q-tile:hover .q-art .art { transform: none; }
}
.paste-doc { margin: 8px 0 4px; }
.paste-doc summary { cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 600; }
.pd-form { display: grid; gap: 8px; margin-top: 8px; }
/* short screens: keep the welcome card's buttons in view */
@media (max-height: 760px) { .wl-art { display: none; } .wl-card { padding-top: 14px; padding-bottom: 14px; } }
.wl-acts { position: sticky; bottom: -1px; background: var(--surface); padding-top: 10px; }
/* career profile: application-form (Workday) details */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.wd-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; font-weight: 700; }
#wd-panel .grid-2 { margin-top: 10px; }
/* career profile: work experience cards */
.xp-list { display: grid; gap: 12px; margin: 8px 0 12px; }
.xp-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.xp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
.xp-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-cur { align-self: end; padding-bottom: 10px; }
.xp-card input[type="month"] { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); }
.xp-card input[type="month"]:disabled { opacity: .55; }
/* ---- wide screens: illustrated side rails ---- */
.rail { display: none; }
@media (min-width: 1640px) {
  .main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1280px) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .main > .view { grid-column: 2; grid-row: 1; width: 100%; max-width: none; margin: 0; }
  .rail { display: grid; gap: 14px; grid-row: 1; position: sticky; top: 76px; width: min(270px, 100%); animation: rise .6s var(--ease) both .2s; }
  .rail-l { grid-column: 1; justify-self: end; }
  .rail-r { grid-column: 3; justify-self: start; }
}
.rail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 8px; text-align: left; }
.rail-card h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.rail-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.rail-card .btn { justify-self: start; }
.rail-art { background: linear-gradient(160deg, var(--accent-soft), transparent 80%); border-radius: 12px; padding: 6px; }
.rail-art .art { width: 100%; height: auto; display: block; animation: bob 7s ease-in-out infinite; }
.rail-tip { border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.rail-tip-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.rail-tip p { margin: 4px 0 0; font-size: .85rem; color: var(--ink); line-height: 1.45; }
@media print { .rail { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .rail, .rail-art .art { animation: none !important; } }
/* jobs page intro: illustration on the right */
.jobs-intro { position: relative; }
.ji-art { display: none; }
@media (min-width: 900px) {
  .jobs-intro { padding-right: min(36%, 330px); min-height: 170px; }
  .ji-art { display: block; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: min(32%, 290px); pointer-events: none; }
  .ji-art .art { width: 100%; height: auto; display: block; }
}
/* tailoring: new bullets */
.nb-after { color: var(--muted); font-size: .85rem; }
.cmp-row.k-added .cmp-b { background: color-mix(in srgb, var(--ok, #2FA37C) 10%, transparent); }
.tech-cover { display: grid; gap: 6px; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.tech-cover .chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* ---- top of the screen: lighter, glassy bars and an at-a-glance strip ---- */
@media (min-width: 901px) {
  .topbar { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); grid-template-columns: minmax(200px, 1.2fr) minmax(240px, 480px) minmax(160px, 1fr); }
  .topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
}
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-title { font-family: var(--display, inherit); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.tb-pulse { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.tb-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), border-color .15s; }
a.tb-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.tb-chip.hot { color: var(--ok, #2FA37C); border-color: color-mix(in srgb, var(--ok, #2FA37C) 40%, var(--line)); background: color-mix(in srgb, var(--ok, #2FA37C) 10%, var(--surface)); }
.tb-chip.hot i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulseRing 1.8s ease-out infinite; }
.tb-chip.warn { color: var(--warn, #B7791F); border-color: color-mix(in srgb, var(--warn, #B7791F) 40%, var(--line)); background: color-mix(in srgb, var(--warn, #B7791F) 10%, var(--surface)); }
.tb-chip.calm { color: var(--muted); }
@media (max-width: 1280px) { .tb-chip:not(:first-child) { display: none; } }
.quote-bar { min-height: 30px; font-size: .84rem; }
.q-track { padding: 5px 0; }
@media (prefers-reduced-motion: reduce) { .tb-chip.hot i { animation: none; } }
/* ---- illustrated page headers ---- */
.page-head.hero-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 26px 28px; padding-right: 300px; min-height: 176px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent-2, #7C3AED) 16%, transparent), transparent 55%),
              radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--accent-3, #0EA5E9) 12%, transparent), transparent 60%), var(--surface); }
.page-head.hero-head h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.page-head.hero-head > .row { position: relative; z-index: 1; }
.ph-art { position: absolute; right: 14px; top: 8px; bottom: 0; display: flex; align-items: flex-end; pointer-events: none; }
.ph-art .art { height: 100%; width: auto; max-width: none; display: block; animation: phIn .7s var(--ease) both; }
@keyframes phIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .page-head.hero-head { padding-right: 250px; min-height: 150px; grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .page-head.hero-head { grid-template-columns: minmax(0, 1fr); padding: 18px 18px 16px; min-height: 0; border-radius: 18px; }
  .ph-art { position: static; justify-content: center; order: -1; margin: -4px 0 -2px; }
  .ph-art .art { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .ph-art .art { animation: none; } }
/* pipeline: delete a tile */
.card-app { position: relative; transition: opacity .2s, transform .2s; }
.card-del { position: absolute; top: 6px; right: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.card-app:hover .card-del, .card-del:focus-visible { opacity: 1; }
.card-del:hover { background: color-mix(in srgb, var(--bad, #C0392B) 12%, transparent); color: var(--bad, #C0392B); }
.card-app.confirm-del { border-color: var(--bad, #C0392B); }
.card-app.confirm-del .card-del { opacity: 1; background: var(--bad, #C0392B); color: #fff; font-size: .72rem; font-weight: 700; }
.card-app.leaving { opacity: 0; transform: scale(.96); }
.card-app .card-title { padding-right: 26px; }
@media (hover: none) { .card-del { opacity: .9; } }
/* ---- real photographs ---- */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 400 / 260; width: 100%;
  background: linear-gradient(110deg, var(--surface-2) 30%, color-mix(in srgb, var(--accent) 8%, var(--surface-2)) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: phShimmer 1.4s linear infinite; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.photo.in { animation: none; }
.photo.in img { opacity: 1; transform: none; }
.photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
@keyframes phShimmer { to { background-position: -200% 0; } }
.rail-art:has(.photo) { padding: 0; background: none; }
.rail-art .photo { aspect-ratio: 4 / 3; border-radius: 12px; }
.rail-card:hover .photo img { transform: scale(1.04); }
.nh-art .photo, .wl-art .photo, .empty-art .photo { border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(30, 27, 75, .45); }
.ji-art .photo { border-radius: 16px; box-shadow: 0 16px 36px -18px rgba(30, 27, 75, .45); }
/* page headers: the photo fills the right side and fades into the panel */
.page-head.hero-head:has(.photo) { padding-right: clamp(250px, 34%, 400px); }
.ph-art:has(.photo) { top: 0; right: 0; bottom: 0; width: clamp(270px, 36%, 420px); display: block; }
.ph-art .photo { height: 100%; aspect-ratio: auto; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 18%, #000 40%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.6) 18%, #000 40%); }
.ph-art .photo img { object-position: center 30%; }
@media (max-width: 760px) {
  .page-head.hero-head:has(.photo) { padding-right: 18px; }
  .ph-art:has(.photo) { width: auto; margin: -18px -18px 4px; }
  .ph-art .photo { height: 150px; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .photo, .photo img { animation: none; transition: none; transform: none; } }
/* quick tiles with photos: picture on top, title and line underneath */
.q-art:has(.photo) { height: auto; margin-bottom: 8px; }
.q-art .photo { aspect-ratio: 16 / 10; border-radius: 10px; }
.q-tile strong { font-size: .92rem; line-height: 1.25; }
.q-tile:hover .q-art .photo img { transform: scale(1.05); }
/* quick tiles: keep the photo, put the title and line on the bottom of the image */
.q-tile:has(.photo) { display: grid; grid-template: 1fr / 1fr; padding: 6px; gap: 0; overflow: hidden; }
.q-tile:has(.photo) > * { grid-area: 1 / 1; }
.q-tile:has(.photo) .q-art { margin: 0; }
.q-tile:has(.photo) .q-art .photo { aspect-ratio: 16 / 11; border-radius: 10px; }
.q-tile:has(.photo) .q-art .photo::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 12, 30, .55) 66%, rgba(10, 12, 30, .86)); }
.q-tile:has(.photo) strong, .q-tile:has(.photo) > .muted { position: relative; z-index: 2; align-self: end; color: #fff; padding: 0 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); pointer-events: none; }
.q-tile:has(.photo) strong { margin-bottom: 30px; font-size: .95rem; }
.q-tile:has(.photo) > .muted { margin-bottom: 11px; color: rgba(255, 255, 255, .88) !important; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* application forms: save row */
.wd-save-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
#wd-state.warn { color: var(--warn, #B7791F); border-color: color-mix(in srgb, var(--warn, #B7791F) 40%, var(--line)); }
#wd-state.ok { color: var(--ok, #2FA37C); border-color: color-mix(in srgb, var(--ok, #2FA37C) 40%, var(--line)); }
/* ---- Pipeline: community and official resources ---- */
.community { margin-top: 18px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.cm-h { font-size: .95rem; margin: 18px 0 8px; font-weight: 700; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cm-tile { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 34px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.cm-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cm-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--c); box-shadow: inset 0 -8px 16px rgba(0,0,0,.12); letter-spacing: -.02em; }
.cm-txt { display: grid; gap: 2px; min-width: 0; }
.cm-txt strong { font-size: .92rem; line-height: 1.25; }
.cm-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cm-host { font-size: .72rem; color: var(--accent); }
.cm-pin { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 16px; color: var(--muted); cursor: pointer; line-height: 1; padding: 4px; }
.cm-pin.on { color: #E8A317; }
.cm-del { position: absolute; bottom: 6px; right: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.cm-badge { position: absolute; bottom: 8px; right: 10px; font-size: .68rem; font-weight: 700; color: var(--ok, #2FA37C); }
.cm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.cm-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); display: grid; gap: 8px; align-content: start; }
.cm-prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cm-prog i { display: block; height: 100%; background: var(--grad, var(--accent)); border-radius: inherit; transition: width .3s; }
.cm-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-certs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.cm-add { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-add input { flex: 1 1 140px; min-width: 0; }
.cm-more { margin-top: 14px; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; }
.cm-more summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--accent); }
.myq-up { margin-top: 10px; }
.myq-up .dropzone { margin: 4px 0 8px; }
.myq-review { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: var(--bg); }
.myq-rlist { margin: 0; padding-left: 20px; max-height: 340px; overflow: auto; display: grid; gap: 4px; }
.myq-rlist .check-line { align-items: flex-start; }
.myq-rlist .chip { margin-left: 6px; }
.ask-tog { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 4px 10px; font: 600 .78rem/1.2 var(--sans); cursor: pointer; }
.ask-tog.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ask-vset { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ask-vset select { max-width: 230px; }
.ask-say { margin-top: 6px; }
.ask-note { justify-self: center; font-size: .82rem; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 6px 10px; }
.ask-mic { flex: none; width: 44px; height: 44px; align-self: flex-end; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.15rem; cursor: pointer; }
.ask-mic.live { background: #DC2626; border-color: #DC2626; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
.ask-mic:disabled { opacity: .5; cursor: default; }
.ask-head .row { flex-wrap: nowrap; align-items: center; }
.ask-head .linkish, .ask-tog { white-space: nowrap; }
