/* Universal CV ID — shared styles
   Palette: slate, near-black and lime, with orange and sky blue; tokens switch for dark mode. */

:root {
  --bg: #B4BFD0;
  --surface: #F6F6F8;
  --surface-2: #E3E7EE;
  --ink: #0F0A1F;
  --ink-2: #353A4D;
  --ink-3: #485064;
  --line: #CBD2DD;
  --accent: #C6FF3A;
  --accent-ink: #0F0A1F;
  --accent-soft: #E6FFA8;
  --accent-text: #3A6400;
  --accent-line: #0F0A1F;
  --pop: #FF8A1F;
  --sky: #BFE3FA;
  --night: #0F0A1F;
  --info-soft: #CFE9FB;
  --info: #12405F;
  --good: #147A4F;
  --good-soft: #DDF3E8;
  --warn: #9A5B00;
  --warn-soft: #FBEFD9;
  --bad: #B3261E;
  --bad-soft: #FBE3E1;
  --card-a: #1B1330;
  --card-b: #41326A;
  --shadow: 0 1px 2px rgba(15, 10, 31, .08), 0 10px 28px rgba(15, 10, 31, .10);
  --radius: 14px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --dot: 'Doto', 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0F0A1F; --surface: #1A1529; --surface-2: #262038; --ink: #F2F2F5; --ink-2: #B7BDCD; --ink-3: #8D95A9;
  --line: #352E48; --accent: #C6FF3A; --accent-ink: #0F0A1F; --accent-soft: #2A3A0B; --accent-text: #C6FF3A; --accent-line: #C6FF3A;
  --night: #1A1529; --info-soft: #1B3347; --info: #BFE3FA;
  --good: #5BD19A; --good-soft: #13301F; --warn: #F0B45A; --warn-soft: #33260F; --bad: #FF8A80; --bad-soft: #3A1715;
  --card-a: #2A2140; --card-b: #4B3C78;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0A1F; --surface: #1A1529; --surface-2: #262038; --ink: #F2F2F5; --ink-2: #B7BDCD; --ink-3: #8D95A9;
  --line: #352E48; --accent: #C6FF3A; --accent-ink: #0F0A1F; --accent-soft: #2A3A0B; --accent-text: #C6FF3A; --accent-line: #C6FF3A;
  --night: #1A1529; --info-soft: #1B3347; --info: #BFE3FA;
  --good: #5BD19A; --good-soft: #13301F; --warn: #F0B45A; --warn-soft: #33260F; --bad: #FF8A80; --bad-soft: #3A1715;
  --card-a: #2A2140; --card-b: #4B3C78;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-text); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 600 14px/1 var(--font);
  padding: .62rem 1rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-sm { padding: .42rem .7rem; font-size: 13px; }
.btn-danger { color: var(--bad); }
.btn-danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label.field { display: grid; gap: .3rem; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="month"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .7rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 84px; }
input, select, textarea { min-width: 0; max-width: 100%; }
.grid-2 > *, .item > *, label.field { min-width: 0; }
.hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: .8rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mono { font-family: var(--mono); }
.eyebrow { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--card-a), var(--card-b));
  position: relative; flex: none;
}
.brand-mark::before { content: ''; position: absolute; left: 5px; top: 5px; width: 7px; height: 9px; border-radius: 2px; background: #C6FF3A; }
.brand-mark::after { content: ''; position: absolute; left: 15px; right: 5px; top: 6px; height: 2px; background: rgba(255,255,255,.6); box-shadow: 0 4px 0 rgba(255,255,255,.4), 0 8px 0 rgba(255,255,255,.3); }

/* ---------- ID card ---------- */
.idcard {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 14px; padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
  aspect-ratio: 85.6 / 54; width: 100%; max-width: 420px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px;
  box-shadow: 0 18px 40px rgba(15, 10, 31, .32);
}
.idcard::before { /* guilloché-style security pattern */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background:
    repeating-radial-gradient(circle at 110% -10%, transparent 0 9px, #fff 9px 10px),
    repeating-radial-gradient(circle at -10% 120%, transparent 0 13px, #fff 13px 14px);
}
.idcard > * { position: relative; }
.idcard-top { display: flex; justify-content: space-between; align-items: center; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.idcard-body { display: flex; gap: 14px; align-items: center; min-width: 0; }
.idcard-photo {
  width: 64px; height: 78px; flex: none; border-radius: 6px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center;
  font: 700 22px/1 var(--display); letter-spacing: .02em;
}
.idcard-name { font: 700 clamp(17px, 4.2vw, 22px)/1.15 var(--display); overflow-wrap: anywhere; }
.idcard-label { font-size: 13px; opacity: .85; margin-top: 3px; }
.idcard-id { font: 600 15px/1 var(--mono); margin-top: 8px; letter-spacing: .06em; color: #C6FF3A; }
.idcard-mrz { font: 500 clamp(8.5px, 2.3vw, 11px)/1.35 var(--mono); letter-spacing: .12em; opacity: .9; white-space: pre; overflow: hidden; }

/* ---------- chips & pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--surface-2); color: var(--ink); border: 1px solid transparent;
}
button.chip { cursor: pointer; font-family: var(--font); }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-miss { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink-2); }
button.chip-miss:hover { border-style: solid; border-color: var(--accent-line); color: var(--accent-text); }
.chip x { font-style: normal; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.pill { display: inline-block; font: 600 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: .32rem .5rem; border-radius: 5px; }
.st-Saved { background: var(--surface-2); color: var(--ink-2); }
.st-Applied { background: var(--info-soft); color: var(--info); }
.st-Interview { background: var(--warn-soft); color: var(--warn); }
.st-Offer { background: var(--good-soft); color: var(--good); }
.st-Rejected { background: var(--bad-soft); color: var(--bad); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast.warn { background: var(--warn); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ================= APP ================= */
.app-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-bar-inner { max-width: 1440px; margin: 0 auto; padding: .7rem 16px; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.id-chip {
  font: 600 13px/1 var(--mono); letter-spacing: .05em; padding: .5rem .7rem; border-radius: 7px;
  background: #0F0A1F; color: #C6FF3A; border: 1px solid #352E48; cursor: pointer;
}
.version-picker { display: flex; align-items: center; gap: .35rem; min-width: 0; }
.version-picker select { width: auto; max-width: 240px; min-width: 0; padding: .45rem .6rem; font-weight: 600; font-size: 14px; }

.tabs { max-width: 1440px; margin: 0 auto; padding: 0 16px; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: none; font: 600 14px/1 var(--font); color: var(--ink-2); cursor: pointer;
  padding: .8rem .75rem; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-line); }
.tab .badge { font: 600 11px/1 var(--mono); padding: .2rem .35rem; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }

.workspace { max-width: 1440px; margin: 0 auto; padding: 20px 16px 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .workspace { grid-template-columns: minmax(0, 1fr); } }
.panel-col { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.panel h2 { font: 700 18px/1.2 var(--display); margin-bottom: .25rem; }
.panel > .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 1rem; }

/* collapsible editor groups */
details.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.group > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: .6rem;
  font: 700 16px/1.2 var(--display);
}
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
details.group[open] > summary::after { transform: rotate(-135deg); }
details.group > summary .count { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.group-body { padding: 0 18px 18px; display: grid; gap: .8rem; }
.item { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: .7rem; background: var(--bg); }
.item-head { display: flex; align-items: center; gap: .4rem; }
.item-head .title { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font: 600 14px/1 var(--font); display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn.armed { background: var(--bad); color: #fff; border-color: var(--bad); width: auto; padding: 0 .6rem; font-size: 12px; }

.tag-input { display: flex; flex-wrap: wrap; gap: .4rem; padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tag-input:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tag-input input { border: 0; box-shadow: none !important; padding: .25rem; flex: 1; min-width: 140px; background: transparent; }
.tag-input .chip button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }

/* checks */
.score { display: flex; align-items: center; gap: 14px; }
.ring { --v: 0; --c: var(--accent-line); width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-2) 0); }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.checklist { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: 14px; align-items: start; }
.checklist .lv { font: 600 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: .3rem .4rem; border-radius: 4px; margin-top: 1px; }
.lv-fix { background: var(--bad-soft); color: var(--bad); }
.lv-warn { background: var(--warn-soft); color: var(--warn); }
.lv-tip { background: var(--surface-2); color: var(--ink-2); }

/* design tab */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.tpl { border: 1.5px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); cursor: pointer; text-align: left; font-family: var(--font); color: var(--ink); display: grid; gap: 6px; }
.tpl[aria-pressed="true"] { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.tpl-thumb { height: 64px; border-radius: 4px; background: #fff; border: 1px solid #E5E7EB; position: relative; overflow: hidden; }
.tpl-thumb i { position: absolute; display: block; background: #CBD2DC; height: 3px; border-radius: 2px; }
.tpl b { font-size: 13.5px; }
.tpl small { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.order-list li { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: grab; }
.order-list li.dragging { opacity: .5; }
.order-list li.drop { border-color: var(--accent-line); }
.order-list .grip { color: var(--ink-3); font: 700 13px/1 var(--mono); letter-spacing: -1px; }
.order-list .name { flex: 1; font-weight: 600; font-size: 14px; }

/* match */
.kw-legend { display: flex; gap: 1rem; font-size: 13px; color: var(--ink-2); margin: .8rem 0 .5rem; }

/* tracker */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
@media (max-width: 560px) { .pipeline { grid-template-columns: repeat(3, 1fr); } }
.pipe { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; background: var(--surface); }
.pipe b { display: block; font: 700 22px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.pipe span { font-size: 12px; color: var(--ink-2); }
.apps { display: grid; gap: .6rem; }
.app-row { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; background: var(--surface); min-width: 0; }
.apps { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.app-row .top { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.app-row .who { font-weight: 700; }
.app-row .meta { font-size: 13px; color: var(--ink-2); }
.app-row .ctrls { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.app-row select { width: auto; padding: .35rem .5rem; font-size: 13px; }

/* share */
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
@media (max-width: 640px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
.qr { background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--line); width: 170px; height: 170px; display: grid; place-items: center; }
.qr img, .qr canvas { width: 150px !important; height: 150px !important; }
.linkbox { display: flex; gap: .4rem; }
.linkbox input { font: 13px/1.3 var(--mono); color: var(--ink-2); }

/* preview column */
.preview-col { position: sticky; top: 118px; min-width: 0; }
@media (max-width: 1000px) { .preview-col { position: static; } }
.preview-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 10px; flex-wrap: wrap; }
.preview-bar .eyebrow { margin-right: auto; }
.paper-wrap { background: var(--surface-2); border-radius: var(--radius); padding: 18px; overflow: hidden; }
.paper-scale { transform-origin: top left; }
.banner {
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
  padding: .75rem 1rem; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 500;
}
.banner .btn { margin-left: auto; }

.empty { text-align: center; padding: 1.4rem; color: var(--ink-2); font-size: 14px; border: 1px dashed var(--line); border-radius: 8px; }

/* ================= CV PAPER (always light, like printed paper) ================= */
.cv {
  --cv-accent: #2446C7; --cv-font: 'IBM Plex Sans', Arial, sans-serif; --cv-size: 13.33px; --cv-line: 1.45; --cv-margin: 57px; --cv-gap: 16px;
  background: #fff; color: #1B1F27; font: var(--cv-size)/var(--cv-line) var(--cv-font); text-align: left;
}
.cv-page {
  width: 794px; height: 1123px; /* A4 at 96dpi */
  padding: var(--cv-margin); display: flex; flex-direction: column; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); margin-bottom: 18px;
}
.cv-page:last-child { margin-bottom: 0; }
.cv-flow { flex: 1; min-height: 0; overflow: hidden; }
.cv h1, .cv h2, .cv p { margin: 0; }
.cv a { color: inherit; }
.cv ul { margin: .25em 0 0; padding-left: 1.25em; }
.cv li { margin: .1em 0; }
.cv-head.has-photo { display: flex; gap: 18px; align-items: center; }
.cv-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.cv-headtext { min-width: 0; flex: 1; }
.cv-name { font: 700 2.35em/1.1 'Bricolage Grotesque', var(--cv-font); letter-spacing: -.01em; }
.cv-label { color: var(--cv-accent); font-size: 1.2em; font-weight: 600; margin-top: .2em !important; }
.cv-contact { display: flex; flex-wrap: wrap; gap: .2em 1.2em; margin-top: .6em !important; color: #4B5263; font-size: .92em; }
.cv-id { font: 600 .8em/1 'IBM Plex Mono', monospace; letter-spacing: .08em; color: #6B7385; margin-top: .8em !important; }
.cv-sec { margin-top: var(--cv-gap); }
.cv-h { font: 700 .86em/1 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--cv-accent); padding-bottom: .5em; border-bottom: 1.5px solid var(--cv-accent); margin-bottom: .75em !important; }
.cv-cont { margin-top: 0; }
.cv-cont > .cv-h { display: none; }
.cv-item { margin-bottom: .85em; }
.cv-item.cv-compact { margin-bottom: .55em; }
.cv-body > .cv-item:last-child { margin-bottom: 0; }
.cv-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cv-row strong { font-size: 1.05em; }
.cv-date { color: #6B7385; font-size: .9em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-sub { color: #4B5263; font-size: .97em; }
.cv-text, .cv-summary { margin-top: .2em !important; }
.cv-tags { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: .4em; }
.cv-tags li { margin: 0; padding: .2em .65em; border-radius: 4px; background: color-mix(in srgb, var(--cv-accent) 9%, #fff); font-size: .94em; }
.cv-plain { list-style: none; padding: 0 !important; margin: 0 !important; }
.cv-pageno { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 9px/1 var(--cv-font); color: #8A91A0; }
.cv-placeholder { color: #9AA1AF; font-style: italic; }
.cv-letter-body { margin-top: 2.2em; max-width: 44em; }
.cv-letter-body p { margin: 0 0 1em; }

/* Meridian: centred header */
.t-meridian .cv-head { text-align: center; padding-bottom: 1.2em; border-bottom: 1px solid #E3E6EC; }
.t-meridian .cv-head.has-photo { flex-direction: column; gap: 10px; }
.t-meridian .cv-contact { justify-content: center; }
.t-meridian.cv-letter .cv-head { text-align: left; }
.t-meridian.cv-letter .cv-head.has-photo { flex-direction: row; }
.t-meridian.cv-letter .cv-contact { justify-content: flex-start; }

/* Classic: traditional, centred, black rules */
.t-classic .cv-head { text-align: center; }
.t-classic .cv-head.has-photo { flex-direction: column; gap: 10px; }
.t-classic .cv-name { font-family: var(--cv-font); font-weight: 700; letter-spacing: .02em; }
.t-classic .cv-label { color: #1B1F27; font-weight: 400; font-style: italic; }
.t-classic .cv-contact { justify-content: center; }
.t-classic .cv-h { font: 700 1em/1.2 var(--cv-font); letter-spacing: .08em; color: #111; border-bottom: 1px solid #111; padding-bottom: .25em; margin-bottom: .55em !important; }
.t-classic .cv-tags { display: block; }
.t-classic .cv-tags li { display: inline; background: none; padding: 0; font-size: 1em; }
.t-classic .cv-tags li:not(:last-child)::after { content: ' · '; }
.t-classic .cv-id { color: var(--cv-accent); }

/* Slate: minimal, headings in a left rail */
.t-slate .cv-name { font-weight: 600; }
.t-slate .cv-label { color: #4B5263; font-weight: 400; }
.t-slate .cv-sec { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 1.3em; }
.t-slate .cv-h { border: 0; padding: 0; margin: .25em 0 0 !important; color: #6B7385; font-size: .8em; line-height: 1.4; }
.t-slate .cv-cont { margin-top: 0; }
.t-slate .cv-cont > .cv-h { display: block; visibility: hidden; }
.t-slate .cv-tags li { background: #F1F3F6; }
.t-slate .cv-id { color: var(--cv-accent); }

/* Ledger: two columns with tinted sidebar */
.cv-page.t-ledger { padding: 0; }
.t-ledger .cv-head { background: color-mix(in srgb, var(--cv-accent) 92%, #000); color: #fff; padding: calc(var(--cv-margin) * .8) var(--cv-margin) calc(var(--cv-margin) * .5); flex: none; }
.t-ledger .cv-label { color: #fff; opacity: .9; }
.t-ledger .cv-contact, .t-ledger .cv-id { color: rgba(255,255,255,.84); }
.t-ledger .cv-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 31%; }
.t-ledger .cv-main { padding: 0 26px var(--cv-margin) var(--cv-margin); }
.t-ledger .cv-side { padding: 0 var(--cv-margin) var(--cv-margin) 22px; background: color-mix(in srgb, var(--cv-accent) 6%, #fff); overflow: hidden; }
.t-ledger .cv-cols:first-child .cv-main, .t-ledger .cv-cols:first-child .cv-side { padding-top: calc(var(--cv-margin) - var(--cv-gap)); }
.t-ledger .cv-side .cv-h { border-bottom-width: 1px; }
.t-ledger .cv-side .cv-row { display: block; }
.t-ledger .cv-side .cv-date { display: block; }

/* Compact: dense, name and contact on one line */
.t-compact .cv-headtext { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: end; padding-bottom: .6em; border-bottom: 2px solid var(--cv-accent); }
.t-compact .cv-name { font-size: 1.9em; grid-column: 1; }
.t-compact .cv-label { grid-column: 1; margin-top: .1em !important; font-size: 1.05em; }
.t-compact .cv-contact { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 0; margin: 0 !important; text-align: right; }
.t-compact .cv-id { grid-column: 1 / -1; margin-top: .4em !important; }
.t-compact .cv-h { border-bottom: 0; padding-bottom: 0; margin-bottom: .35em !important; font-size: .82em; }
.t-compact .cv-item { margin-bottom: .5em; }
.t-compact .cv-photo { width: 64px; height: 64px; }
.t-compact .cv-tags li { padding: .1em .5em; }

/* Plain ATS: black, single column, no boxes */
.t-plain .cv-name { font-family: Arial, Helvetica, sans-serif; font-size: 2em; }
.t-plain .cv-label { color: #111; }
.t-plain .cv-h { font-family: Arial, Helvetica, sans-serif; letter-spacing: .06em; color: #111; border-bottom: 1px solid #111; }
.t-plain .cv-id { font-family: Arial, Helvetica, sans-serif; }
.t-plain .cv-tags { display: block; }
.t-plain .cv-tags li { display: inline; background: none; padding: 0; font-size: 1em; }
.t-plain .cv-tags li:not(:last-child)::after { content: ', '; }

/* ================= LANDING ================= */
.wordmark { font: 900 1em/1 var(--dot); letter-spacing: .04em; text-transform: uppercase; }
.site-nav { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: flex; align-items: center; gap: 1rem; }
.site-nav .brand { font-size: 26px; gap: .7rem; }
.site-nav .brand-mark { width: 40px; height: 29px; border-radius: 6px; }
.site-nav .brand-mark::before { left: 7px; top: 7px; width: 9px; height: 12px; }
.site-nav .brand-mark::after { left: 20px; right: 7px; top: 8px; height: 3px; box-shadow: 0 5px 0 rgba(255,255,255,.4), 0 10px 0 rgba(255,255,255,.3); }
.site-nav .links { margin-left: auto; display: flex; gap: .3rem; align-items: center; }
.site-nav .links .btn { border-radius: 999px; }
@media (max-width: 760px) { .site-nav .links .btn-ghost { display: none; } }
@media (max-width: 420px) { .site-nav .brand { font-size: 21px; } .site-nav .links .btn { padding: .55rem .8rem; font-size: 13px; } }

.hero { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--night); color: #fff; border-radius: 28px; border: 1px solid #2A2340;
  padding: clamp(26px, 5vw, 64px);
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 56px); align-items: center;
}
.hero-panel::before, .hero-panel::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 2px dotted rgba(255,255,255,.16); pointer-events: none; }
.hero-panel::before { width: 620px; height: 620px; right: -150px; bottom: -220px; }
.hero-panel::after { width: 380px; height: 380px; right: -30px; bottom: -100px; border-color: rgba(198,255,58,.28); }
@media (max-width: 900px) { .hero-panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; } }
.hero-mark { display: inline-block; font-size: clamp(22px, 3.4vw, 38px); color: #C6FF3A; margin-bottom: 18px; }
.hero h1 { font: 700 clamp(40px, 6.2vw, 76px)/.98 var(--display); letter-spacing: -.035em; color: #fff; }
.hero h1 em { font-style: normal; color: #0F0A1F; background: #C6FF3A; padding: 0 .16em; border-radius: .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: #C9CDDA; margin-top: 20px; max-width: 34em; }
.hero .ctas { display: flex; gap: .6rem; margin-top: 28px; flex-wrap: wrap; }
.hero .ctas .btn, .cta-band .btn { padding: .95rem 1.4rem; font-size: 16px; border-radius: 999px; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.btn-on-dark:hover { border-color: #fff; }
.tagrow { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { display: inline-flex; align-items: center; padding: .5rem .95rem; border-radius: 999px; font: 600 13.5px/1 var(--font); background: #F6F6F8; color: #0F0A1F; }
.tag-lime { background: #C6FF3A; } .tag-sky { background: #BFE3FA; } .tag-pop { background: #FF8A1F; }
.tag-night { background: #0F0A1F; color: #fff; } .tag-soon { background: transparent; color: var(--ink); border: 1.5px dashed var(--ink-3); font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .42rem .7rem; }
.hero-visual { display: grid; gap: 14px; justify-items: center; min-width: 0; }
.stack-cards { position: relative; width: 100%; max-width: 440px; }
.stack-cards .idcard { z-index: 1; max-width: none; border: 1px solid rgba(255,255,255,.2); transform: rotate(-2deg); }
.stack-cards .ver {
  position: absolute; height: 44px; border-radius: 12px; background: #F6F6F8; color: #353A4D;
  display: flex; align-items: center; gap: .5rem; padding: 0 14px; font-size: 13px; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.stack-cards .ver b { color: #0F0A1F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stack-cards .ver .pill { margin-left: auto; }
.stack-cards .v1 { bottom: -52px; z-index: 0; left: 6%; right: 6%; }
.stack-cards .v2 { bottom: -102px; z-index: -1; left: 11%; right: 11%; opacity: .85; }
.hero .st-Interview { background: #FFE4C7; color: #8A4100; } .hero .st-Applied { background: #CFE9FB; color: #12405F; }
.hero-visual .caption { margin-top: 118px; font-size: 13px; color: #9AA1B5; text-align: center; max-width: 36ch; }

.section { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 16px; }
.section > .eyebrow { display: block; margin-bottom: 14px; color: var(--ink-2); }
.section > h2 { font: 700 clamp(30px, 4.4vw, 52px)/1.02 var(--display); letter-spacing: -.03em; max-width: 18ch; }
.section > .intro { color: var(--ink-2); font-size: clamp(16px, 1.5vw, 18px); margin-top: 14px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { position: relative; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 22px 22px 24px; display: grid; gap: .5rem; align-content: start; min-height: 190px; --sub: var(--ink-2); --eb: var(--ink-3); }
.feature .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.feature .eyebrow { color: var(--eb); }
.feature .num { font: 900 26px/1 var(--dot); color: var(--eb); }
.feature h3 { font: 700 21px/1.15 var(--display); letter-spacing: -.01em; }
.feature p { color: var(--sub); font-size: 15px; }
.feature.f-lime { background: #C6FF3A; color: #0F0A1F; --sub: #26330A; --eb: #3A5200; }
.feature.f-sky { background: #BFE3FA; color: #0F0A1F; --sub: #1D3447; --eb: #24536F; }
.feature.f-pop { background: #FF8A1F; color: #0F0A1F; --sub: #3A1F04; --eb: #5A2E00; }
.feature.f-night { background: var(--night); color: #fff; --sub: #C9CDDA; --eb: #C6FF3A; border: 1px solid #2A2340; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; padding: 0; counter-reset: step; }
@media (max-width: 760px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how li { list-style: none; border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: .4rem; }
.how li::before { counter-increment: step; content: '0' counter(step); font: 900 44px/1 var(--dot); color: var(--ink); margin-bottom: .3rem; }
.how h3 { font: 700 21px/1.2 var(--display); }
.how p { color: var(--ink-2); font-size: 15px; }

.band { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.pipeline-panel { background: var(--night); color: #fff; border: 1px solid #2A2340; border-radius: 28px; padding: clamp(26px, 5vw, 56px); }
.pipeline-panel .eyebrow { color: #C6FF3A; display: block; margin-bottom: 14px; }
.pipeline-panel h2 { font: 700 clamp(30px, 4.4vw, 52px)/1.02 var(--display); letter-spacing: -.03em; }
.pipeline-panel .intro { color: #C9CDDA; font-size: clamp(16px, 1.5vw, 18px); margin-top: 14px; max-width: 38em; }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 820px) { .soon-grid { grid-template-columns: minmax(0, 1fr); } }
.soon { border: 2px dashed rgba(255,255,255,.3); border-radius: 22px; padding: 22px; display: grid; gap: .55rem; align-content: start; }
.soon .tag-soon { justify-self: start; color: #C6FF3A; border-color: rgba(198,255,58,.6); margin-bottom: .9rem; }
.soon h3 { font: 700 22px/1.15 var(--display); }
.soon p { color: #C9CDDA; font-size: 15px; }
.pipeline-panel .fine { margin-top: 22px; font: 500 12px/1.5 var(--mono); color: #9AA1B5; letter-spacing: .02em; }

.privacy-strip { background: #BFE3FA; color: #0F0A1F; border-radius: 28px; padding: clamp(26px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 820px) { .privacy-strip { grid-template-columns: minmax(0, 1fr); } }
.privacy-strip .eyebrow { color: #24536F; display: block; margin-bottom: 14px; }
.privacy-strip h2 { font: 700 clamp(28px, 3.8vw, 44px)/1.04 var(--display); letter-spacing: -.03em; }
.privacy-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.privacy-strip li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: 16px; font-weight: 500; }
.privacy-strip li::before { content: ''; width: 12px; height: 12px; margin-top: 6px; border-radius: 3px; background: #0F0A1F; }
.privacy-strip .btn { margin-top: 22px; border-radius: 999px; background: #0F0A1F; color: #fff; border-color: #0F0A1F; }

.cta-band { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.cta-band .inner { background: #C6FF3A; color: #0F0A1F; border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.cta-band h2 { font: 700 clamp(28px, 4vw, 48px)/1.04 var(--display); letter-spacing: -.03em; flex: 1 1 340px; }
.cta-band .btn-primary { background: #0F0A1F; color: #C6FF3A; border-color: #0F0A1F; }
.site-foot { max-width: 1200px; margin: 0 auto; padding: 44px 16px 40px; display: grid; gap: 22px; color: var(--ink-2); font-size: 14px; }
.site-foot .wordmark { font-size: clamp(34px, 9.6vw, 124px); color: var(--ink); white-space: nowrap; letter-spacing: 0; }
.site-foot .foot-row { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--ink); font-weight: 600; }

/* ---------- document pages (privacy) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 16px 16px 56px; }
.doc-head { background: var(--night); color: #fff; border: 1px solid #2A2340; border-radius: 28px; padding: clamp(26px, 5vw, 52px); margin-bottom: 14px; }
.doc-head .eyebrow { color: #C6FF3A; display: block; margin-bottom: 14px; }
.doc-head h1 { font: 700 clamp(34px, 6vw, 58px)/1 var(--display); letter-spacing: -.03em; }
.doc-head p { color: #C9CDDA; font-size: 17px; margin-top: 16px; max-width: 36em; }
.doc-card { background: var(--surface); border-radius: 22px; padding: clamp(20px, 4vw, 32px); margin-bottom: 14px; }
.doc-card.lime { background: #C6FF3A; color: #0F0A1F; }
.doc-card h2 { font: 700 24px/1.15 var(--display); letter-spacing: -.01em; margin-bottom: .7rem; }
.doc-card p, .doc-card li { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.doc-card.lime p, .doc-card.lime li { color: #1B2407; font-weight: 500; }
.doc-card p + p { margin-top: .8rem; }
.doc-card ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.doc-card strong { color: var(--ink); }
.doc-card.lime strong { color: #0F0A1F; }
.doc-card a { color: var(--ink); font-weight: 600; }
.doc .updated { font: 500 12.5px/1.5 var(--mono); color: var(--ink-2); margin: 18px 4px 0; }

/* ================= PUBLIC PROFILE ================= */
.public-wrap { max-width: 900px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 16px; }
.public-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 16px; justify-items: start; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: 15px; }
.contact-card dt { color: var(--ink-3); font: 600 12px/1.8 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }

/* ================= PRINT: only the CV pages ================= */
#printRoot { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  body.printing > *:not(#printRoot) { display: none !important; }
  body.printing #printRoot { display: block; }
  #printRoot .cv-page { box-shadow: none; margin: 0; break-after: page; }
  #printRoot .cv-page:last-child { break-after: auto; }
  .cv, .cv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ================= BUILDER v3 additions ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .75rem; }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-3 > * { min-width: 0; }
.save-state { font: 500 12px/1 var(--mono); color: var(--ink-3); opacity: 0; transition: opacity .3s; }
.save-state.on { opacity: 1; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; cursor: pointer; }
.tick input { width: 17px; height: 17px; accent-color: var(--accent-line); cursor: pointer; margin: 0; }
.item.off, .bullet.off, .order-list li.off { opacity: .5; }
.item.off .item-head .title { text-decoration: line-through; }
.bullets-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bullets { display: grid; gap: .35rem; }
.bullet { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .4rem; align-items: start; border-radius: 8px; }
.bullet textarea { min-height: 0; resize: none; overflow: hidden; padding: .45rem .6rem; font-size: 14.5px; line-height: 1.4; }
.bullet .tick, .bullet .grip, .bullet .icon-btn { margin-top: 6px; }
.grip { cursor: grab; color: var(--ink-3); font: 700 13px/22px var(--mono); letter-spacing: -1px; user-select: none; padding: 0 2px; }
.icon-btn.sm { width: 24px; height: 24px; font-size: 11px; border-color: transparent; background: transparent; }
.bullet.dragging, .order-list li.dragging { opacity: .4; }
.bullet.drop { box-shadow: 0 -2px 0 var(--accent-line); }
.order-list li { cursor: default; }
.order-list li.drop { border-color: var(--accent-line); }
.chip.skill { padding: 0; overflow: hidden; }
.chip.skill button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: .28rem .2rem .28rem .6rem; }
.chip.skill button + button { padding: .28rem .55rem .28rem .2rem; color: var(--ink-3); }
.chip.skill.off { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink-3); }
.chip.skill.off .skill-name { text-decoration: line-through; }
.photo-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.photo-thumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.photo-thumb.empty { background: var(--surface-2); }
label.btn { cursor: pointer; }
.add-section { display: grid; gap: .6rem; }
.banner.info { background: var(--info-soft); color: var(--info); }
.switch { display: inline-flex; align-items: center; gap: .45rem; font-size: 14px; font-weight: 500; cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent-line); }
input[type="range"] { width: 100%; accent-color: var(--accent-line); padding: 0; }
.ring.big { width: 84px; height: 84px; }
.ring.big span { width: 66px; height: 66px; font-size: 24px; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin-top: 1rem; }
.cat { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; }
.cat b { display: block; font: 700 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.cat span { font-size: 12.5px; color: var(--ink-2); }
.checks { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: 14px; }
.checks .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font); margin-top: 1px; }
.checks .ok .mark { background: var(--good-soft); color: var(--good); }
.checks .no .mark { background: var(--bad-soft); color: var(--bad); }
.checks b { font-weight: 600; }
.checks .ok b { font-weight: 400; color: var(--ink-2); }
.checks p { color: var(--ink-2); font-size: 13.5px; margin-top: 1px; }
.paper-scale { transform-origin: top left; }
/* start screen */
body.is-start .tabs, body.is-start .preview-col, body.is-start .version-picker { display: none; }
body.is-start .workspace { grid-template-columns: minmax(0, 760px); justify-content: center; }
.start h2 { font-size: 26px; margin: .4rem 0 .25rem; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
@media (max-width: 700px) { .start-grid { grid-template-columns: 1fr; } }
.start-card { text-align: left; display: grid; gap: .4rem; align-content: start; padding: 18px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--font); font-size: 14px; position: relative; }
.start-card:hover, .start-card:focus-within { border-color: var(--accent-line); }
.start-card b { font: 700 17px/1.2 var(--display); }
.start-card span { color: var(--ink-2); }
.start-card em { font-style: normal; font-weight: 600; color: var(--accent-text); margin-top: .4rem; }
.start-card.primary { border-color: var(--accent-line); background: var(--accent-soft); }
.paste { margin-top: 1rem; font-size: 14px; }
.paste summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }

@media (max-width: 560px) {
  .app-bar-inner { gap: .5rem; }
  .app-bar-inner .spacer { display: none; }
  .version-picker { order: 3; flex: 1 1 100%; min-width: 0; }
  .version-picker select { flex: 1; max-width: none; }
  .version-picker .eyebrow { display: none; }
  .brand { font-size: 16px; }
  .save-state { margin-left: auto; }
  .bullet { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .25rem; }
}

.share-opts { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; font-size: 14px; color: var(--ink-2); margin-bottom: 1rem; }
.cv-contact a, .cv-date a { color: inherit; text-decoration: none; }
.public-note { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 8px; padding: .55rem .8rem; }

/* ================= v6: bolder brand, pill tabs, mobile navigation ================= */
.brand { font-size: 21px; }
.brand-mark { border-radius: 5px; }
.btn { border-radius: 10px; }
.id-chip { border-radius: 999px; padding: .5rem .8rem; }
.app-bar .tabs { padding-bottom: .6rem; gap: .3rem; }
.tab { border-bottom: 0; border-radius: 999px; padding: .55rem .9rem; }
.tab .tab-ic { display: inline-grid; }
.tab .tab-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab .tab-sh { display: none; }
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.tab[aria-selected="true"] .badge { background: var(--accent); color: var(--accent-ink); }
.tab .badge { border-radius: 999px; padding: .2rem .4rem; }
.start-card { border-radius: 16px; }
.fab { display: none; }

@media (max-width: 760px) {
  .app-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .brand { font-size: 19px; }
  .app-bar .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: none; margin: 0;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 2px;
    scroll-snap-type: x proximity; box-shadow: 0 -6px 20px rgba(15, 10, 31, .10);
  }
  .tab { flex: 0 0 21.5%; min-width: 70px; flex-direction: column; gap: 5px; padding: .5rem .2rem .45rem; font-size: 11.5px; border-radius: 14px; position: relative; scroll-snap-align: start; min-height: 54px; justify-content: center; }
  .tab .tab-ic svg { width: 22px; height: 22px; }
  .tab .tab-tx { display: none; }
  .tab .tab-sh { display: inline; }
  .tab .badge { position: absolute; top: 3px; left: calc(50% + 8px); font-size: 9.5px; padding: .16rem .32rem; }
  .workspace { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .toast-wrap { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  .fab {
    display: inline-flex; align-items: center; gap: .45rem; position: fixed; right: 12px; z-index: 31;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    font: 700 14px/1 var(--font); padding: .8rem 1.1rem; border-radius: 999px; cursor: pointer;
    background: var(--accent); color: var(--accent-ink); border: 1.5px solid #0F0A1F; box-shadow: 0 8px 22px rgba(15, 10, 31, .28);
  }
  .fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.is-start .fab { display: none; }
  /* one view at a time: the other stays laid out off-screen so sizes still measure correctly */
  body:not(.is-start):not(.show-preview) .preview-col,
  body.show-preview .panel-col { position: absolute; left: -200vw; top: 0; width: calc(100vw - 32px); height: 100vh; overflow: hidden; visibility: hidden; }
  .preview-bar [data-tab] { display: none; }
}

/* ================= v7: goal-based navigation, home, journey, next steps ================= */
.app-bar .tabs { padding-bottom: .5rem; }
.app-bar .tabs .tab { font-size: 15px; padding: .6rem 1.05rem; }
.subtabs { max-width: 1440px; margin: 0 auto; padding: 0 16px .6rem; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 13.5px/1 var(--font); padding: .5rem .8rem; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.subtab:hover { border-color: var(--ink-3); color: var(--ink); }
.subtab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-line); }
.subtab .step-n { font: 600 11px/1 var(--mono); width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.subtab[aria-selected="true"] .step-n { background: var(--accent-ink); color: var(--accent); }
.subtab .badge { font: 600 11px/1 var(--mono); padding: .2rem .4rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
body.is-start .subtabs { display: none; }

.ver-banner { background: var(--night); color: #fff; border: 1px solid #2A2340; border-radius: var(--radius); padding: 18px; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ver-banner > div { flex: 1 1 240px; min-width: 0; }
.ver-banner .eyebrow { color: #C6FF3A; }
.ver-banner h2 { font: 700 22px/1.15 var(--display); margin: .45rem 0 .2rem; overflow-wrap: anywhere; }
.ver-banner p { color: #C9CDDA; font-size: 14px; }
.master-head { border-top: 3px solid var(--ink); padding: 14px 2px 0; margin-top: 8px; }
.master-head h2 { font: 700 22px/1.15 var(--display); margin: .45rem 0 .2rem; }
.master-head p { color: var(--ink-2); font-size: 14px; }

.nextbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: var(--surface); border: 1.5px dashed var(--ink-3); border-radius: var(--radius); padding: 14px 18px; }
.nextbar .btn-primary { border-color: var(--accent-line); border-radius: 999px; padding: .7rem 1.1rem; }

.dash-head { background: var(--night); color: #fff; border: 1px solid #2A2340; border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.dash-head .eyebrow { color: #C6FF3A; font-size: 13px; }
.dash-head h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.05 var(--display); letter-spacing: -.02em; margin: .6rem 0 .4rem; overflow-wrap: anywhere; }
.dash-head p { color: #C9CDDA; }
.steps { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.steps li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 12px; }
.steps .n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); background: var(--surface-2); color: var(--ink-2); }
.steps button { border: 0; background: none; font: 500 15px/1.3 var(--font); color: var(--ink-2); cursor: pointer; padding: 0; text-align: left; flex: 1; }
.steps .done .n { background: var(--good-soft); color: var(--good); }
.steps .done button { color: var(--ink-3); }
.steps .cur { background: var(--accent); }
.steps .cur .n { background: #0F0A1F; color: #C6FF3A; }
.steps .cur button, .steps .cur .go { color: #0F0A1F; font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash { text-align: left; display: grid; gap: .3rem; align-content: start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 14px; cursor: pointer; }
button.dash:hover { border-color: var(--accent-line); }
.dash b { font: 700 20px/1.2 var(--display); margin-top: .5rem; }
.dash span:not(.eyebrow) { color: var(--ink-2); }
.dash em { font-style: normal; font-weight: 600; color: var(--accent-text); margin-top: .5rem; }
.dash.soon { cursor: default; background: transparent; border: 1.5px dashed var(--ink-3); }

@media (max-width: 760px) {
  .app-bar .tabs { padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .app-bar .tabs .tab { flex: 1 1 0; min-width: 0; font-size: 11.5px; padding: .5rem .1rem .45rem; }
  .subtabs { padding: 0 12px .55rem; }
  .preview-bar [data-tab] { display: none; }
}
.preview-col { top: 156px; }
@media (max-width: 1000px) { .preview-col { top: auto; } }

/* ================= v8: clearer second-level navigation, larger theme switch ================= */
.theme-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; }
.theme-btn:hover { border-color: var(--ink-3); background: var(--surface-2); }
.theme-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* One shape language: pills at both levels. The top level is the anchor (solid dark block); the second level is quieter. */
.app-bar-inner { padding-top: .85rem; padding-bottom: .5rem; }
.app-bar .tabs { padding: .35rem 16px .75rem; gap: .35rem; align-items: center; }
.app-bar .tabs .tab { border-radius: 999px; padding: .7rem 1.15rem; font-size: 15px; background: transparent; }
.app-bar .tabs .tab:hover { background: var(--surface-2); }
.app-bar .tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.tab-more { font: 600 10.5px/1 var(--mono); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid currentColor; opacity: .6; }
.subtabs { max-width: 1440px; margin: 0 auto; padding: .7rem 16px .8rem; background: transparent; border-top: 1px solid var(--line); align-items: center; gap: .4rem; }
.subtabs[hidden] { display: none; }
:root .subtab { background: var(--surface-2); border-color: transparent; color: var(--ink-2); font-weight: 500; padding: .5rem .9rem; }
:root .subtab:hover { color: var(--ink); border-color: var(--ink-3); }
:root .subtab[aria-selected="true"] { background: var(--surface); color: var(--ink); border-color: var(--accent-line); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.subtab .step-n, .subtab .badge { background: var(--surface); color: var(--ink-2); }
.subtab[aria-selected="true"] .step-n { background: var(--ink); color: var(--surface); }
.subtab[aria-selected="true"] .badge { background: var(--surface-2); color: var(--ink); }
.sub-arrow { color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) {
  .app-bar .tabs { align-items: stretch; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 2px; }
  .app-bar .tabs .tab { border-radius: 14px; padding: .5rem .1rem .45rem; font-size: 11.5px; }
  .tab-more { position: absolute; top: 3px; left: calc(50% + 9px); font-size: 9.5px; min-width: 15px; height: 15px; }
  .app-bar .tabs .tab .badge + .tab-more { display: none; }
  .subtabs { padding: .6rem 12px .7rem; }
}
.preview-col { top: 170px; }
@media (max-width: 1000px) { .preview-col { top: auto; } }

/* every second-level pill has the same height, with or without a step number */
:root .subtab { min-height: 38px; padding: 0 1rem; font-size: 14px; }

/* ================= v11: CV dashboard replaces the version dropdown ================= */
.ver-chip { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; max-width: 360px; padding: .45rem .5rem .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-family: var(--font); }
.ver-chip:hover { border-color: var(--ink-3); }
.ver-chip b { font: 700 14.5px/1.2 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ver-chip .sw { font: 600 12.5px/1 var(--font); padding: .45rem .7rem; border-radius: 999px; background: var(--ink); color: var(--surface); white-space: nowrap; }
.count-pill { font: 600 12px/1 var(--mono); padding: .25rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); vertical-align: middle; margin-left: .3rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vcard { display: grid; grid-template-rows: auto 1fr; border: 1.5px solid var(--line); border-radius: 18px; background: var(--bg); overflow: hidden; min-width: 0; }
.vcard.is-open { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent); }
.vthumb { padding: 14px 14px 0; background: var(--surface-2); }
.vthumb .tpl-thumb { height: 84px; border-radius: 6px 6px 0 0; border-bottom: 0; }
.vbody { padding: 12px 14px 14px; display: grid; gap: .3rem; align-content: start; min-width: 0; }
.vbody input[type="text"] { font: 700 16px/1.2 var(--display); padding: .35rem .5rem; margin-left: -.5rem; width: calc(100% + .5rem); background: transparent; border-color: transparent; }
.vbody input[type="text"]:hover { border-color: var(--line); }
.vbody input[type="text"]:focus { background: var(--surface); }
.vbody .meta { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.vnow { justify-self: start; background: var(--accent); color: var(--accent-ink); }
.vcard .ctrls { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.vcard.vnew { grid-template-rows: none; align-content: center; gap: .4rem; padding: 18px; background: transparent; border: 1.5px dashed var(--ink-3); }
.vnew b { font: 700 18px/1.2 var(--display); }
.vnew span { font-size: 13.5px; color: var(--ink-2); }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1250px) { .dash-grid.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ver-chip { max-width: none; width: 100%; justify-content: space-between; } .ver-chip b { flex: 1; text-align: left; } }
.vcard { background: var(--surface); }

/* ================= v12: dashboard + CV workspace; solid fills, no outline or dashed styles ================= */
#measure { position: absolute; left: -9999px; top: 0; width: 794px; visibility: hidden; pointer-events: none; }
.subtabs { display: none !important; }
.preview-col { top: 132px; }
@media (max-width: 1000px) { .preview-col { top: auto; } }

/* solid surfaces instead of outlined ones */
.panel, details.group, .item, .pipe, .cat, .app-row, .order-list li, .tag-input, .contact-card { border: 0; }
.pipe, .cat, .app-row, .order-list li { background: var(--surface-2); }
.btn { background: var(--surface-2); border-color: transparent; }
.btn:hover { background: color-mix(in srgb, var(--surface-2) 82%, var(--ink)); border-color: transparent; }
.btn-primary, .btn-primary:hover { background: var(--accent); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad-soft); }
.btn-on-dark, .btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: transparent; color: #fff; }
.privacy-strip .btn, .privacy-strip .btn:hover { background: #0F0A1F; }
.cta-band .btn-primary, .cta-band .btn-primary:hover { background: #0F0A1F; }
.theme-btn, .id-chip, .icon-btn { border: 0; }
.theme-btn, .icon-btn { background: var(--surface-2); }
.icon-btn.sm { background: transparent; }
.empty { border: 0; background: var(--surface-2); }
.chip-miss, button.chip-miss:hover { border: 0; background: var(--warn-soft); color: var(--warn); }
.chip.skill.off { border: 0; background: var(--surface-2); opacity: .6; }
.tag-soon, .soon .tag-soon { border: 0; background: #C6FF3A; color: #0F0A1F; }
.soon { border: 0; background: #221A3A; }
.master-head { border-top: 0; margin-top: 14px; }
.nextbar { border: 0; background: var(--night); }
.nextbar .eyebrow { color: #C6FF3A; }
.nextbar .btn-ghost { color: #fff; }
.nextbar .btn-primary { border: 0; }
.start-card { border: 0; background: var(--surface-2); }
.start-card:hover, .start-card:focus-within { background: color-mix(in srgb, var(--surface-2) 85%, var(--ink)); }
.start-card.primary, .start-card.primary:hover { background: var(--accent); color: var(--accent-ink); }
.start-card.primary span, .start-card.primary em { color: var(--accent-ink); }
.tpl { border: 0; background: var(--surface-2); }
.tpl[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: none; }
.tpl[aria-pressed="true"] small { color: inherit; opacity: .8; }
.steps .cur { background: var(--accent); }

/* app bar: one row of tabs for wherever you are */
.app-bar .tabs .tab[aria-selected="true"] .badge { background: var(--accent); color: var(--accent-ink); }
.ver-chip { border: 0; background: var(--surface-2); padding: .35rem .95rem .35rem .35rem; gap: .65rem; }
.ver-chip .sw { order: -1; padding: .55rem .85rem; font-size: 13px; }
body.mode-dash .version-picker, body.mode-dash .fab { display: none; }
body.mode-dash .workspace { grid-template-columns: minmax(0, 1180px); justify-content: center; }
body.mode-dash .preview-col { position: absolute; left: -200vw; top: 0; width: 720px; height: 100vh; overflow: hidden; visibility: hidden; }

/* dashboard */
.dash-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; border: 0; }
.dash-head > div { flex: 1 1 280px; min-width: 0; }
.dash-head .btn { border-radius: 999px; padding: .8rem 1.2rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { border-radius: 20px; padding: 18px 20px; display: grid; gap: .35rem; align-content: end; min-height: 124px; }
.kpi b { font: 700 clamp(34px, 4vw, 46px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 14px; font-weight: 500; }
.k-night { background: var(--night); color: #fff; } .k-night b { color: #C6FF3A; }
.k-lime { background: #C6FF3A; color: #0F0A1F; }
.k-sky { background: #BFE3FA; color: #0F0A1F; }
.k-plain { background: var(--surface); color: var(--ink); }
.dash-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .dash-two { grid-template-columns: minmax(0, 1fr); } }
.bars { display: grid; gap: .6rem; }
.bar-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 28px; gap: .7rem; align-items: center; font-size: 14px; }
.bar-row > b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; min-width: 0; }
.b-Saved { background: #8D95A9; } .b-Applied { background: #4C9BD8; } .b-Interview { background: #FF8A1F; } .b-Offer { background: #8FD400; } .b-Rejected { background: #D9534F; }
.cv-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 14px; }
.cv-table th { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: right; padding: 0 .6rem .3rem; }
.cv-table th:first-child, .cv-table td:first-child { text-align: left; }
.cv-table td { background: var(--surface-2); padding: .6rem; text-align: right; font-variant-numeric: tabular-nums; }
.cv-table td:first-child { border-radius: 10px 0 0 10px; } .cv-table td:last-child { border-radius: 0 10px 10px 0; }
.cv-table td button { border: 0; background: none; padding: 0; font: 700 14px/1.3 var(--font); color: var(--ink); cursor: pointer; text-align: left; }
.cv-table td button:hover { text-decoration: underline; }

/* CV cards */
.vgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vcard, .vcard.is-open { border: 0; box-shadow: none; background: var(--surface-2); }
.vthumb { position: relative; display: block; width: 100%; border: 0; cursor: pointer; padding: 16px 16px 0; background: var(--line); font: inherit; }
.vthumb:hover { background: var(--ink-3); }
.vthumb .tpl-thumb { border: 0; height: 96px; }
.vnow { position: absolute; left: 10px; top: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .5rem; border-radius: 6px; background: #C6FF3A; color: #0F0A1F; }
.vstats { display: flex; gap: .9rem; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: .3rem; }
.vstats b { font: 700 15px/1 var(--display); color: var(--ink); }
.vcard .btn { background: var(--surface); } .vcard .btn-primary { background: var(--accent); } .vcard .btn-danger { background: var(--bad-soft); }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.five .kpi:last-child { grid-column: 1 / -1; min-height: 96px; } }

/* ================= v14: edit on the page, tool rail beside it ================= */
#paper [data-e] { cursor: text; border-radius: 3px; outline: 0; transition: background .12s; }
#paper [data-e]:hover { background: rgba(198, 255, 58, .38); }
#paper [data-e]:focus { background: rgba(198, 255, 58, .6); }
#paper li[data-e]:empty::before, #paper [data-e]:empty::before { content: 'Type here'; opacity: .45; }
.panel-toggle { display: none; }
@media (min-width: 1001px) {
  /* CV workspace: tools down the left, a narrower panel, and the page as the main thing */
  body:not(.mode-dash):not(.is-start) .app-bar .tabs {
    position: absolute; left: 0; top: 100%; width: 92px; height: calc(100vh - 100%); max-width: none; margin: 0;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 14px 8px;
    background: var(--surface); overflow-y: auto;
  }
  body:not(.mode-dash):not(.is-start) .app-bar .tabs .tab { flex-direction: column; gap: 6px; padding: .7rem .2rem; border-radius: 14px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.15; position: relative; }
  body:not(.mode-dash):not(.is-start) .app-bar .tabs .tab .tab-ic svg { width: 22px; height: 22px; }
  body:not(.mode-dash):not(.is-start) .app-bar .tabs .tab .badge { position: absolute; top: 4px; right: 8px; font-size: 10px; }
  body:not(.mode-dash):not(.is-start) .app-bar-inner { padding-bottom: .85rem; }
  body:not(.mode-dash):not(.is-start) .workspace { max-width: none; margin: 0; padding-left: 112px; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); }
  body:not(.mode-dash):not(.is-start) .preview-col { top: 86px; max-width: 900px; width: 100%; justify-self: center; }
  body.panel-off:not(.mode-dash) .workspace { grid-template-columns: minmax(0, 1fr); }
  body.panel-off:not(.mode-dash) .panel-col { display: none; }
  .panel-toggle { display: inline-flex; }
}

/* ================= v15: applications tracker and profile ================= */
.trk-top { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.trk-top > div { flex: 1 1 260px; }
.trk-top .btn { border-radius: 999px; padding: .75rem 1.15rem; }
.trk-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 1rem; }
@media (max-width: 760px) { .trk-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trk-f { border: 0; border-radius: 16px; padding: 12px 14px; text-align: left; cursor: pointer; font-family: var(--font); background: var(--surface-2); color: var(--ink); display: grid; gap: .2rem; }
.trk-f b { font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.trk-f span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.trk-f:hover { background: color-mix(in srgb, var(--surface-2) 82%, var(--ink)); }
.trk-f[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.trk-f[aria-pressed="true"] span { color: inherit; opacity: .8; }
.trk-f[aria-pressed="true"] b { color: var(--accent); }
.trk-notes { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; font-size: 14px; }
.trk-goal { flex: 1 1 260px; display: grid; gap: .4rem; }
.trk-goal .bar { height: 10px; }
.trk-goal .bar i { background: var(--accent); }
:root:not([data-theme="dark"]) .trk-goal .bar i { background: #8FD400; }
.trk .apps { display: grid; gap: 6px; }
.trk-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) 118px 138px 138px 104px 32px; gap: 8px; align-items: center; }
.trk-headrow { padding: 0 12px 8px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.trk .app-row { padding: 10px 12px; border-radius: 14px; gap: 0; }
.trk .app-row.is-open { background: var(--surface-2); }
.trk-main { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-family: var(--font); color: var(--ink); display: grid; gap: .15rem; min-width: 0; }
.trk-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-main span { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-main em { font: 600 11px/1 var(--mono); font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--warn); margin-top: .2rem; }
.trk-row select, .trk-row input[type="date"] { width: 100%; padding: .42rem .5rem; font-size: 13px; background: var(--surface); }
.st-sel { font-weight: 600; border-color: transparent !important; }
select.st-Saved { background: var(--surface) !important; color: var(--ink-2); }
select.st-Applied { background: var(--info-soft) !important; color: var(--info); }
select.st-Interview { background: var(--warn-soft) !important; color: var(--warn); }
select.st-Offer { background: var(--good-soft) !important; color: var(--good); }
select.st-Rejected { background: var(--bad-soft) !important; color: var(--bad); }
.stars { display: inline-flex; }
.stars button { border: 0; background: none; padding: 0 1px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--line); }
.stars button.on { color: #FF8A1F; }
.trk-detail { display: grid; gap: .8rem; padding: 14px 0 4px; margin-top: 10px; border-top: 2px solid var(--surface); }
.trk-detail input, .trk-detail textarea { background: var(--surface); }
@media (max-width: 1000px) {
  .trk-headrow { display: none; }
  .trk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .trk-row .trk-main { grid-column: 1 / 3; }
  .trk-row > .icon-btn { grid-column: 3; grid-row: 1; }
  .trk-row .stars { grid-column: 1 / -1; }
}
.prof-top { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .prof-top { grid-template-columns: minmax(0, 1fr); } }
.prof-id .idcard { max-width: none; }
input[type="number"] { width: 100%; font: 15px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; }

/* ================= v16: selected states with real contrast in both themes ================= */
:root { --sel-bg: #0F0A1F; --sel-ink: #FFFFFF; --sel-num: #C6FF3A; --sel-chip-bg: #C6FF3A; --sel-chip-ink: #0F0A1F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sel-bg: #C6FF3A; --sel-ink: #0F0A1F; --sel-num: #0F0A1F; --sel-chip-bg: #0F0A1F; --sel-chip-ink: #C6FF3A; } }
:root[data-theme="dark"] { --sel-bg: #C6FF3A; --sel-ink: #0F0A1F; --sel-num: #0F0A1F; --sel-chip-bg: #0F0A1F; --sel-chip-ink: #C6FF3A; }
.trk-f[aria-pressed="true"], .app-bar .tabs .tab[aria-selected="true"], .tpl[aria-pressed="true"], .ver-chip .sw { background: var(--sel-bg); color: var(--sel-ink); }
.trk-f[aria-pressed="true"] b { color: var(--sel-num); }
.trk-f[aria-pressed="true"] span { color: var(--sel-ink); opacity: .85; }
.app-bar .tabs .tab[aria-selected="true"] .badge { background: var(--sel-chip-bg); color: var(--sel-chip-ink); }

/* ================= v17: tracking made prominent ================= */
.dash-head .dash-alt { background: rgba(255,255,255,.16); color: #fff; }
.dash-head .dash-alt:hover { background: rgba(255,255,255,.26); }
.apps.live { display: grid; gap: 6px; margin-top: 1rem; }
.live-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) 130px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.live-row select { padding: .42rem .5rem; font-size: 13px; }
.live-cv { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .live-row { grid-template-columns: minmax(0, 1fr) 120px; } .live-cv { display: none; } }
.log-prompt { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 45; width: min(760px, calc(100% - 24px)); background: #0F0A1F; color: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: 0 18px 44px rgba(15, 10, 31, .4); }
.log-prompt[hidden] { display: none; }
.log-prompt form { display: grid; gap: .8rem; }
.log-prompt b { display: block; font: 700 17px/1.2 var(--display); }
.log-prompt span { font-size: 13.5px; color: #C9CDDA; }
.log-prompt input { flex: 1 1 150px; background: #fff; color: #0F0A1F; border-color: transparent; padding: .6rem .7rem; border-radius: 10px; font: 15px/1.3 var(--font); min-width: 0; }
.log-prompt .btn { border-radius: 999px; }
.log-prompt .btn:not(.btn-primary) { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 760px) { .log-prompt { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.log-prompt { bottom: auto; top: 84px; }
@media (max-width: 760px) { .log-prompt { bottom: auto; top: 12px; } }

/* hero facts are information, not buttons: plain text with a tick, no pill */
.hero .tagrow { gap: .4rem 1.4rem; }
.hero .tagrow .tag { background: none; padding: 0; border-radius: 0; color: #C9CDDA; font: 500 15px/1.3 var(--font); gap: .45rem; }
.hero .tagrow .tag::before { content: '✓'; color: #C6FF3A; font-weight: 700; }

/* v18: feedback link in app bar */
.fb-link{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:var(--accent,#C6FF3A);color:#0F0A1F;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.fb-link:hover{filter:brightness(.95)}
.fb-link{gap:6px}.fb-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
@media (max-width:560px){.fb-link{width:36px;padding:0;justify-content:center}.fb-link span{display:none}}

/* v19: SEO hero kicker + FAQ */
.hero h1 .h1-kicker{display:block;font:600 clamp(13px,1.3vw,15px)/1.3 var(--font);letter-spacing:.06em;text-transform:uppercase;color:#C9CDDA;margin-bottom:14px}
.faq{display:grid;gap:10px;margin-top:22px;max-width:860px}
.faq-item{background:var(--surface);border-radius:var(--radius,14px)}
.faq-item>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:18px 20px}
.faq-item>summary::-webkit-details-marker{display:none}
.faq-item>summary h3{font-size:17px;margin:0;flex:1}
.faq-item>summary::after{content:'+';font:700 22px/1 var(--font);color:var(--ink-2)}
.faq-item[open]>summary::after{content:'–'}
.faq-item>p{padding:0 20px 18px;margin:0;color:var(--ink-2);max-width:62ch}

/* v20: multiple versions section */
.versions-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,4vw,48px);margin-top:18px;align-items:start}
.versions-copy .intro{color:var(--ink-2);font-size:clamp(16px,1.5vw,18px);margin:0 0 18px;max-width:40em}
.versions-list{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:12px}
.versions-list li{background:var(--surface);border-radius:12px;padding:14px 16px;color:var(--ink-2)}
.versions-list b{color:var(--ink)}
.versions-visual{display:grid;gap:12px}
.vv-block{border-radius:var(--radius,14px);padding:18px}
.vv-block .eyebrow{display:block;margin-bottom:12px}
.vv-before{background:var(--surface-2)}
.vv-files{list-style:none;padding:0;margin:0;display:grid;gap:6px;font:500 13px/1.3 var(--mono);color:var(--ink-3)}
.vv-files li{text-decoration:line-through;text-decoration-thickness:1.5px}
.vv-after{background:#0F0A1F;color:#fff}
.vv-after .eyebrow{color:#C6FF3A}
.vv-master{display:inline-block;background:#C6FF3A;color:#0F0A1F;font-weight:700;border-radius:8px;padding:8px 12px;margin-bottom:10px}
.vv-vers{list-style:none;padding:0 0 0 18px;margin:0;display:grid;gap:8px;border-left:2px solid #C6FF3A}
.vv-vers li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#1E1733;border-radius:8px;padding:10px 12px;font-size:14px}
.vv-vers b{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:820px){.versions-grid{grid-template-columns:1fr}}
