/* The client view. Everything is scoped to #cv-root so the developer view's styles and this one never meet. Colours, typefaces,
   radii and shadows are tokens from theme.css. */

body.cv-mode #app > :not(#cv-root) { display: none !important; }
body.cv-mode { background: var(--cv-bg, #f4f5fa); }

#cv-root {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The developer view styles elements directly (button, input, label, section, section h3). Inside the client view those are reset
   with :where(), which adds no specificity, so every class rule below wins without !important. */
#cv-root *, #cv-root *::before, #cv-root *::after { box-sizing: border-box; }
:where(#cv-root) button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: inherit; cursor: pointer; filter: none; line-height: inherit; text-align: inherit; }
:where(#cv-root) button:hover { filter: none; }
:where(#cv-root) button:disabled { opacity: 1; cursor: not-allowed; }
:where(#cv-root) :is(input, select, textarea) { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: var(--ink); box-shadow: none; }
:where(#cv-root) input[type=checkbox] { width: auto; }
:where(#cv-root) label { display: inline; margin: 0; font-size: inherit; font-weight: inherit; color: inherit; }
:where(#cv-root) section { border: 0; border-radius: 0; background: none; padding: 0; margin: 0; }
:where(#cv-root) :is(section h2, section h3) { margin: 0; font-size: inherit; text-transform: none; letter-spacing: normal; color: inherit; border-top: 0; padding-top: 0; font-weight: 700; }
:where(#cv-root) :is(h1, h2, h3, h4) { margin: 0; letter-spacing: -.015em; }
:where(#cv-root) a { color: var(--brand); }
#cv-root :focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
#cv-root .cv-hidden { display: none !important; }
#cv-root .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── top bar ─────────────────────────────────────────────────────────── */
.cv-top { position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 28px; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.cv-logo { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; font-weight: 700; font-size: 17px; letter-spacing: .03em; }
.cv-logo-mark { width: 34px; height: 34px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: none; }
.cv-proj { font-weight: 600; color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--line); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-stepper { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.cv-step { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.cv-step:not(:disabled):hover { background: var(--bg-2); }
.cv-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 13px; font-weight: 700; transition: all .4s var(--ease); }
.cv-step.done { color: var(--ink-2); }
.cv-step.done .n { background: var(--ok); color: var(--ok-ink); }
.cv-step.on { color: var(--brand); }
.cv-step.on .n { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px var(--brand-soft); }
.cv-step-line { flex: 0 1 34px; min-width: 10px; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.cv-step-line::after { content: ""; position: absolute; inset: 0; background: var(--ok); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cv-step-line.done::after { transform: scaleX(1); }
.cv-tools { display: flex; align-items: center; gap: 8px; }
.cv-icon-btn { width: 38px; height: 38px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s, transform .1s; }
.cv-icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.cv-icon-btn[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.cv-switch { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.cv-switch button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cv-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: none; }
/* The same switch, placed in the developer view's own top bar. */
.cv-devswitch { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2, #edebe4); border: 1px solid var(--border, #dad6cc); }
.cv-devswitch button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: 600 12.5px/1.2 var(--font, sans-serif); color: var(--ink-muted, #5b625f); cursor: pointer; }
.cv-devswitch button[aria-pressed="true"] { background: var(--surface, #fff); color: var(--ink, #171a1c); box-shadow: none; }

/* ── page frame ──────────────────────────────────────────────────────── */
.cv-main { max-width: 1480px; margin: 0 auto; padding: 34px 40px 120px; }
.cv-screen { animation: cvIn .45s var(--ease); }
@keyframes cvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cv-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cv-h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
.cv-lead { color: var(--ink-2); font-size: 16.5px; margin: 8px 0 0; max-width: 760px; }
.cv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.cv-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cv-split.wide-rail { grid-template-columns: minmax(0, 1fr) 420px; }
.cv-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.cv-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cv-panel.flat { box-shadow: none; }
.cv-panel h2 { font-size: 19px; font-weight: 700; }
.cv-panel h3 { font-size: 15px; font-weight: 700; }
.cv-sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.cv-muted { color: var(--ink-3); }
.cv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cv-stack { display: flex; flex-direction: column; gap: 14px; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.cv-btn { border: 0; border-radius: 4px; padding: 12px 22px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: transform .12s, box-shadow .25s, background .2s, opacity .2s; white-space: nowrap; }
.cv-btn:active:not(:disabled) { transform: scale(.97); }
.cv-btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.cv-btn.primary:hover:not(:disabled) { box-shadow: none; transform: translateY(-1px); }
.cv-btn.primary:disabled { background: var(--line-2); color: var(--ink-3); box-shadow: none; }
.cv-btn.big { padding: 16px 30px; font-size: 17px; border-radius: 8px; }
.cv-btn.block { width: 100%; }
.cv-btn.soft { background: var(--bg-2); color: var(--ink); }
.cv-btn.soft:hover:not(:disabled) { background: var(--line); }
.cv-btn.ok { background: var(--ok); color: var(--ok-ink); box-shadow: none; }
.cv-btn.ghost { background: none; color: var(--brand); padding: 8px 10px; }
.cv-btn.ghost:hover { background: var(--brand-soft); }
.cv-btn.cv-danger { background: var(--bad); color: var(--bad-ink); }
.cv-link { border: 0; background: none; padding: 0; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cv-link:hover { color: var(--ink); }
.cv-why { color: var(--ink-3); font-size: 14px; }
.cv-actions { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* help "?" and its popover */
.cv-help { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-3); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; vertical-align: middle; margin-left: 6px; padding: 0; line-height: 1; transition: all .2s; }
.cv-help:hover, .cv-help[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.cv-pop { position: absolute; z-index: 90; max-width: 340px; background: var(--ink); color: var(--card); font-size: 14px; line-height: 1.5; font-weight: 500; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); animation: cvPop .2s var(--ease); }
#cv-root[data-theme="dark"] .cv-pop { background: #f1f2fb; color: #171b2e; }
@keyframes cvPop { from { opacity: 0; transform: translateY(4px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── cards ───────────────────────────────────────────────────────────── */
.cv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cv-card { position: relative; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .25s, transform .2s var(--ease), background .2s; animation: cvRise .45s var(--ease) both; }
.cv-card:nth-child(2) { animation-delay: .04s; } .cv-card:nth-child(3) { animation-delay: .08s; } .cv-card:nth-child(4) { animation-delay: .12s; } .cv-card:nth-child(5) { animation-delay: .16s; } .cv-card:nth-child(6) { animation-delay: .2s; } .cv-card:nth-child(n+7) { animation-delay: .24s; }
@keyframes cvRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cv-card:hover:not(:disabled) { border-color: var(--brand-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.cv-card.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.cv-card .ic { width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: all .25s; }
.cv-card.sel .ic { background: var(--brand); color: var(--brand-ink); }
.cv-card .t { font-weight: 700; font-size: 16px; }
.cv-card .s { color: var(--ink-2); font-size: 14px; }
.cv-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.cv-tag.grey { background: var(--bg-2); color: var(--ink-2); }
.cv-tag.warn { background: var(--warn-soft); color: var(--warn); }
.cv-tag.bad { background: var(--bad-soft); color: var(--bad); }
.cv-tag.brand { background: var(--brand-soft); color: var(--brand); }
.cv-card .spinner-over { position: absolute; top: 14px; right: 14px; }

/* progressive questions */
.cv-q { margin-bottom: 34px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cv-q.locked { display: none; }
.cv-q.reveal { animation: cvReveal .55s var(--ease); }
@keyframes cvReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cv-q-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.cv-q-num { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; transition: background .4s; }
.cv-q.answered .cv-q-num { background: var(--ok); color: var(--ok-ink); }
.cv-q-title { font-size: 21px; font-weight: 700; }
.cv-q-sub { color: var(--ink-2); font-size: 14px; }
.cv-answer { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 700; animation: cvRise .35s var(--ease); }
.cv-answer .ic { color: var(--ok); }
.cv-answer .chg { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 13px; padding: 0; }
.cv-note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 8px; background: var(--brand-soft); font-size: 14px; }
.cv-note.warn { background: var(--warn-soft); }
.cv-note.bad { background: var(--bad-soft); }
.cv-note.ok { background: var(--ok-soft); }
.cv-note .ic { flex: 0 0 auto; margin-top: 1px; }

/* summary card on the setup rail */
.cv-summary-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cv-summary-row:last-child { border-bottom: 0; }
.cv-summary-row .ic { width: 34px; height: 34px; border-radius: 4px; background: var(--bg-2); color: var(--ink-3); display: grid; place-items: center; }
.cv-summary-row.set .ic { background: var(--ok-soft); color: var(--ok); }
.cv-summary-row .k { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.cv-summary-row .v { font-weight: 700; }
.cv-timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.cv-timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-2); }
.cv-timeline li b { color: var(--ink); }
.cv-timeline .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cv-timeline li.done .dot { background: var(--ok); color: var(--ok-ink); }
.cv-timeline li.on .dot { background: var(--brand); color: var(--brand-ink); }

/* ── home ────────────────────────────────────────────────────────────── */
.cv-home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.cv-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cv-new { min-height: 210px; border-radius: var(--radius); border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 50%, var(--card)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--brand-text); font-weight: 700; font-size: 17px; transition: all .25s var(--ease); }
.cv-new:hover { background: var(--brand-soft); border-color: var(--brand); transform: translateY(-3px); }
.cv-new .plus { width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: none; transition: transform .3s var(--spring); }
.cv-new:hover .plus { transform: rotate(90deg) scale(1.05); }
.cv-proj-card { position: relative; min-height: 210px; text-align: left; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s; animation: cvRise .45s var(--ease) both; }
.cv-proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cv-proj-card .pt { font-size: 18px; font-weight: 700; padding-right: 30px; }
.cv-proj-card .pk { color: var(--ink-2); font-size: 14px; }
.cv-proj-card .when { color: var(--ink-3); font-size: 13px; }
.cv-dots { display: flex; gap: 6px; margin-top: auto; }
.cv-dots span { flex: 1; height: 6px; border-radius: 4px; background: var(--bg-2); }
.cv-dots span.on { background: var(--ok); }
.cv-dots span.now { background: var(--brand); }
.cv-del { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 4px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; }
.cv-proj-card:hover .cv-del, .cv-del:focus-visible { opacity: 1; }
.cv-del:hover { background: var(--bad-soft); color: var(--bad); }
.cv-empty { text-align: center; padding: 40px; color: var(--ink-3); }
/* Chance of success (Task 3): a banded strip with the range bracketed on it. No needle: nothing here reads as an exact value. */
.cv-score-hero:has(.cv-chance) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; text-align: left; justify-items: stretch; }
.cv-chance { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.cv-chance-head { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cv-chance-strip { position: relative; display: flex; height: 34px; border-radius: 6px; margin-top: 6px; }
.cv-chance-names { display: flex; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.cv-chance-names span { text-align: center; min-width: 0; }
.cv-chance-strip .seg:first-of-type { border-radius: 6px 0 0 6px; }
.cv-chance-strip .seg:nth-of-type(3) { border-radius: 0 6px 6px 0; }
.cv-chance-strip .seg.b0 { background: var(--bad-soft); }
.cv-chance-strip .seg.b1 { background: var(--warn-soft); }
.cv-chance-strip .seg.b2 { background: var(--ok-soft); }
.cv-chance-strip .range { position: absolute; top: -5px; bottom: -5px; border: 3px solid var(--ink); border-radius: 8px; pointer-events: none; transition: left .6s var(--ease), width .6s var(--ease); }
.cv-chance-ticks { position: relative; height: 16px; font-size: 11px; color: var(--ink-3); }
.cv-chance-ticks span { position: absolute; transform: translateX(-50%); }
.cv-chance .warnline { color: var(--warn); font-weight: 600; }
.cv-chance-dq { border: 2px solid var(--bad); background: var(--bad-soft); border-radius: 8px; padding: 14px 16px; }
.cv-chance-dq .hd { font-size: 22px; font-weight: 800; color: var(--bad); }
.cv-chance-dq p { margin: 6px 0; }
.cv-chance-verdict { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; background: var(--card-2, var(--card)); }
.cv-chance-verdict .hd { font-size: 20px; font-weight: 700; }
.cv-chance-verdict.meets .hd { color: var(--ok); }
.cv-chance-verdict.gaps .hd { color: var(--warn); }
.cv-chance-verdict.notMet .hd { color: var(--bad); }
.cv-chance-verdict ul { margin: 4px 0 0; padding-left: 20px; }
.cv-chance-mode { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cv-chance-mode .cv-switch { display: flex !important; }
@media (max-width: 720px) { .cv-score-hero:has(.cv-chance) { grid-template-columns: minmax(0, 1fr); } }
/* Regenerate panel (Checks page): compact hint chips in the narrow column. */
#cv-rg .cv-chips { gap: 6px; }
#cv-rg .cv-chip { padding: 4px 10px; font-size: 13px; border-width: 1px; }
/* Home as a list (Cards / List switch): one row per project; the delete button and the progress dots keep their places. */
.cv-home-hero .cv-home-view { display: flex !important; }
.cv-home-grid.list { grid-template-columns: 1fr; gap: 10px; }
.cv-home-grid.list .cv-new { min-height: 0; flex-direction: row; justify-content: flex-start; padding: 12px 20px; gap: 16px; }
.cv-home-grid.list .cv-new .plus { width: 36px; height: 36px; }
.cv-home-grid.list .cv-new .plus svg { width: 20px; height: 20px; }
.cv-home-grid.list .cv-proj-card { min-height: 0; flex-direction: row; align-items: center; gap: 18px; padding: 14px 56px 14px 20px; }
.cv-home-grid.list .cv-proj-card .pt { flex: 1; min-width: 0; padding-right: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-home-grid.list .cv-proj-card .pk { flex: 0 1 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-home-grid.list .cv-proj-card .when { flex: none; }
.cv-home-grid.list .cv-proj-card .cv-dots { margin-top: 0; width: 120px; flex: none; }
.cv-home-grid.list .cv-proj-card:hover { transform: none; }
.cv-home-grid.list .cv-del { top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .cv-home-grid.list { grid-template-columns: minmax(0, 1fr); }
  .cv-home-grid.list .cv-new { flex-wrap: wrap; gap: 8px 16px; }
  .cv-home-grid.list .cv-proj-card { flex-wrap: wrap; gap: 6px 14px; padding-right: 48px; min-width: 0; }
  .cv-home-grid.list .cv-proj-card .pt { flex: 1 1 100%; white-space: normal; }
  .cv-home-grid.list .cv-proj-card .pk { flex: 1 1 auto; }
  .cv-home-grid.list .cv-proj-card .cv-dots { width: 100%; }
}

/* ── dialog ──────────────────────────────────────────────────────────── */
.cv-dialog-back { position: fixed; inset: 0; z-index: 120; background: rgba(10, 12, 25, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: cvFade .2s; }
@keyframes cvFade { from { opacity: 0; } to { opacity: 1; } }
.cv-dialog { width: min(480px, 100%); background: var(--card); color: var(--ink); border-radius: 8px; padding: 28px; box-shadow: var(--shadow-lg); animation: cvPop .3s var(--spring); }
.cv-dialog h2 { font-size: 21px; font-weight: 700; }
.cv-dialog p { color: var(--ink-2); margin: 8px 0 0; }
.cv-dialog .cv-actions { justify-content: flex-end; margin-top: 24px; }
.cv-input { width: 100%; border: 1.5px solid var(--line-2); border-radius: 4px; padding: 12px 14px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.cv-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea.cv-input { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ── files ───────────────────────────────────────────────────────────── */
.cv-drop { width: 100%; border: 2px dashed color-mix(in srgb, var(--brand) 40%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 45%, var(--card)); border-radius: var(--radius); padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: all .25s var(--ease); }
.cv-drop:hover, .cv-drop.drag { background: var(--brand-soft); border-color: var(--brand); }
.cv-drop.drag { transform: scale(1.01); }
.cv-drop .cloud { width: 66px; height: 66px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: none; transition: transform .3s var(--spring); }
.cv-drop:hover .cloud, .cv-drop.drag .cloud { transform: translateY(-4px); }
.cv-drop .big { font-size: 18px; font-weight: 700; }
.cv-files { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cv-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); animation: cvRise .35s var(--ease) both; }
#cv-file-list .cv-file { animation: none; }
.cv-file .fi { width: 40px; height: 40px; border-radius: 4px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: #7c8399; letter-spacing: .02em; }
.cv-file .fi.pdf { background: #e5534b; } .cv-file .fi.doc, .cv-file .fi.docx { background: #2f6fd6; } .cv-file .fi.xls, .cv-file .fi.xlsx, .cv-file .fi.csv { background: #1f9d55; } .cv-file .fi.ppt, .cv-file .fi.pptx { background: #d9652b; } .cv-file .fi.md, .cv-file .fi.txt { background: #6b5bd6; }
.cv-file .fn { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-file .fs { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-file .fa { display: flex; gap: 6px; align-items: center; }
.cv-bar { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; flex: 1; min-width: 80px; max-width: 180px; }
.cv-bar > span { display: block; height: 100%; border-radius: 4px; background: var(--brand-2); transition: width .6s var(--ease); }
.cv-bar.indet > span { width: 40% !important; animation: cvIndet 1.3s ease-in-out infinite; }
@keyframes cvIndet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.cv-okt { color: var(--ok); font-weight: 700; }
.cv-badt { color: var(--bad); font-weight: 700; }
.cv-x { width: 34px; height: 34px; border-radius: 4px; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; }
.cv-x:hover { background: var(--bad-soft); color: var(--bad); }
.cv-need ul { list-style: none; padding: 0; margin: 14px 0 0; }
.cv-need li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin-bottom: 12px; font-size: 14.5px; }
.cv-need .b { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cv-toggle-row { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cv-tg { position: relative; width: 46px; height: 27px; }
.cv-tg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.cv-tg span { position: absolute; inset: 0; border-radius: 8px; background: var(--line-2); transition: background .25s; }
.cv-tg span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .3s var(--spring); }
.cv-tg input:checked + span { background: var(--brand); }
.cv-tg input:checked + span::before { transform: translateX(19px); }
.cv-tg input:focus-visible + span { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* ── describe ────────────────────────────────────────────────────────── */
.cv-madlib { font-size: 23px; line-height: 2.25; font-weight: 500; color: var(--ink); }
.cv-blank { display: inline-block; position: relative; margin: 0 3px; vertical-align: baseline; }
.cv-blank select, .cv-blank input { font: inherit; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--brand); background: var(--brand-soft); border: 0; border-bottom: 3px dashed var(--brand-2); border-radius: 4px 4px 2px 2px; padding: 2px 10px; max-width: min(560px, 80vw); transition: all .25s var(--ease); appearance: none; -webkit-appearance: none; cursor: pointer; }
.cv-blank input { cursor: text; min-width: 120px; }
.cv-blank select { padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.cv-blank.filled select, .cv-blank.filled input { color: var(--ink); background-color: var(--ok-soft); border-bottom: 3px solid var(--ok); }
.cv-blank.none select { color: var(--ink-3); background-color: var(--bg-2); border-bottom: 3px solid var(--line-2); }
.cv-blank select:focus, .cv-blank input:focus { outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
.cv-blank .cv-other { margin-left: 4px; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-chip { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .2s var(--ease); }
.cv-chip:hover { border-color: var(--brand-2); color: var(--ink); }
.cv-chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: scale(1.02); }
.cv-subq { margin-top: 26px; }
.cv-label { display: flex; align-items: center; font-weight: 700; margin-bottom: 10px; }
.cv-own-switch { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cv-phases-list { list-style: none; padding: 0; margin: 14px 0 0; }
.cv-phases-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 8px 0; font-size: 14.5px; }
.cv-phases-list .ic { width: 36px; height: 36px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }

/* ── write ───────────────────────────────────────────────────────────── */
.cv-write-hero { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.cv-ring { position: relative; width: 200px; height: 200px; }
.cv-ring svg { transform: rotate(-90deg); display: block; }
.cv-ring .track { stroke: var(--bg-2); }
.cv-ring .fill { transition: stroke-dashoffset 1s var(--ease); }
.cv-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cv-ring .pct { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.cv-ring .lbl { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.cv-ring.busy::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--brand-2); animation: cvSpin 1.6s linear infinite; opacity: .6; }
.cv-phases { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.cv-phase { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); font-weight: 700; font-size: 13.5px; transition: all .35s var(--ease); }
.cv-phase.now { background: var(--brand-soft); color: var(--brand); }
.cv-phase.done { background: var(--ok-soft); color: var(--ok); }
.cv-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: cvSpin .8s linear infinite; flex: 0 0 auto; }
@keyframes cvSpin { to { transform: rotate(360deg); } }
.cv-write-body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.cv-parts { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding: 2px 4px 2px 2px; }
.cv-part { position: relative; overflow: hidden; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 700; color: var(--ink-3); text-align: left; transition: all .35s var(--ease); animation: cvRise .35s var(--ease) both; }
.cv-part .pi { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 11.5px; font-weight: 700; transition: all .35s var(--spring); }
.cv-part .pt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-part.now { color: var(--ink); border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.cv-part.now .pi { background: var(--brand); color: var(--brand-ink); }
.cv-part.done { color: var(--ink); }
.cv-part.done .pi { background: var(--ok); color: var(--ok-ink); }
.cv-part.now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent); animation: cvShim 1.4s infinite; }
@keyframes cvShim { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.cv-score { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.cv-score.na { background: var(--bg-2); color: var(--ink-3); }
.cv-paper { background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: var(--shadow-lg); padding: 52px 64px; min-height: 560px; font-family: var(--serif); font-size: 16px; line-height: 1.7; border: 1px solid var(--line); }
.cv-paper h1, .cv-paper h2, .cv-paper h3, .cv-paper h4 { font-family: var(--font); color: var(--paper-ink); letter-spacing: -.01em; margin: 1.3em 0 .5em; line-height: 1.25; }
.cv-paper :is(h1, h2, h3, h4) { font-weight: 700; text-transform: none; letter-spacing: -.01em; color: var(--paper-ink); }
.cv-paper h1 { font-size: 24px; } .cv-paper h2 { font-size: 21px; } .cv-paper h3 { font-size: 18px; } .cv-paper h4 { font-size: 16px; }
.cv-paper > .cv-sec > :first-child, .cv-paper > :first-child { margin-top: 0; }
.cv-paper p { margin: 0 0 .9em; }
.cv-paper table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: 13.5px; margin: 1em 0; display: block; overflow-x: auto; }
.cv-paper th, .cv-paper td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.cv-paper th { background: var(--bg-2); }
.cv-paper img { max-width: 100%; height: auto; }
.cv-paper ul, .cv-paper ol { padding-left: 1.4em; }
.cv-paper .internal-note { display: none; }
.cv-sec { scroll-margin-top: 100px; border-radius: 4px; transition: background .4s, box-shadow .4s; padding: 2px 0; }
.cv-sec + .cv-sec { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
/* The highlight grows outward (a wide soft band, then the line), so the text inside never moves and never touches the edge. */
.cv-sec.focus { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); box-shadow: 0 0 0 16px color-mix(in srgb, var(--brand-soft) 45%, transparent), 0 0 0 18px var(--brand-2); }
.cv-sec.arrive > * { animation: cvLine .6s var(--ease) both; }
.cv-sec.arrive > *:nth-child(2) { animation-delay: .08s; } .cv-sec.arrive > *:nth-child(3) { animation-delay: .16s; } .cv-sec.arrive > *:nth-child(4) { animation-delay: .24s; } .cv-sec.arrive > *:nth-child(5) { animation-delay: .32s; } .cv-sec.arrive > *:nth-child(n+6) { animation-delay: .4s; }
@keyframes cvLine { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.cv-skel { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.cv-paper > .cv-skel:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cv-skel i { display: block; height: 12px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--bg-2) 25%, color-mix(in srgb, var(--brand-soft) 70%, var(--bg-2)) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: cvSkel 1.4s infinite linear; }
.cv-skel i.h { height: 20px; width: 45%; margin-bottom: 18px; }
@keyframes cvSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cv-mark-pending { background: var(--hl); border-radius: 3px; }
mark.voice-add { background: var(--hl); color: inherit; border-radius: 3px; padding: 0 2px; }
.cv-done { text-align: center; padding: 40px 20px 30px; }
.cv-bigcheck { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: var(--ok-ink); display: grid; place-items: center; animation: cvPopIn .6s var(--spring); box-shadow: none; }
.cv-bigcheck.sm { width: 64px; height: 64px; }
@keyframes cvPopIn { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.cv-bigcheck svg path, .cv-bigcheck svg polyline { stroke-dasharray: 30; stroke-dashoffset: 30; animation: cvDraw .5s .25s var(--ease) forwards; }
@keyframes cvDraw { to { stroke-dashoffset: 0; } }
.cv-confetti { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; }
.cv-confetti i { position: absolute; top: -14px; width: 9px; height: 15px; border-radius: 2px; animation: cvFall 2s ease-in forwards; }
@keyframes cvFall { to { transform: translateY(108vh) rotate(620deg); } }

/* ── check ───────────────────────────────────────────────────────────── */
.cv-check-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-top: 14px; background: var(--card); animation: cvSlide .4s var(--ease); }
@keyframes cvSlide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.cv-check-card .where { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cv-check-card .what { font-weight: 700; margin: 8px 0 12px; font-size: 15.5px; line-height: 1.45; }
.cv-check-card blockquote { margin: 0 0 12px; padding: 10px 14px; background: color-mix(in srgb, var(--hl) 55%, var(--card)); border-left: 3px solid #e7b928; border-radius: 4px; font-family: var(--serif); font-size: 14.5px; color: var(--ink-2); }
.cv-check-card .after { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.cv-check-card .after b { color: var(--ok); }
.cv-check-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.cv-pdots { display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; }
.cv-pdots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all .3s; }
.cv-pdots span.cur { background: var(--brand); transform: scale(1.3); }
.cv-pdots span.fix { background: var(--ok); }
.cv-pdots span.keep { background: var(--ink-3); }
.cv-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cv-queue-item { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-2); padding: 9px 12px; border-radius: 4px; background: var(--bg-2); animation: cvRise .3s var(--ease); }
.cv-count-big { font-size: 15px; font-weight: 700; color: var(--brand); }

/* ── finish ──────────────────────────────────────────────────────────── */
.cv-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 4px; background: var(--bg-2); margin-bottom: 22px; }
.cv-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 4px; font-weight: 700; color: var(--ink-2); transition: all .2s; }
.cv-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: none; }
.cv-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cv-widgets > .full { grid-column: 1 / -1; }
.cv-widget { animation: cvRise .5s var(--ease) both; }
.cv-widget:nth-child(2) { animation-delay: .08s; } .cv-widget:nth-child(3) { animation-delay: .16s; } .cv-widget:nth-child(4) { animation-delay: .24s; } .cv-widget:nth-child(5) { animation-delay: .32s; }
.cv-score-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: center; }
.cv-gauge { text-align: center; position: relative; }
.cv-gauge svg { display: block; margin: 0 auto; }
.cv-gauge .gtrack { stroke: var(--bg-2); }
.cv-gauge .gfill { transition: stroke-dashoffset 1.4s var(--ease); }
.cv-gauge .val { font-size: 46px; font-weight: 700; letter-spacing: -.03em; margin-top: -66px; line-height: 1; }
.cv-gauge .of { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.cv-gauge .band { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.cv-crit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-bottom: 16px; }
.cv-crit .cn { font-weight: 700; font-size: 14.5px; }
.cv-crit .cw { font-size: 12.5px; color: var(--ink-3); }
.cv-crit .cs { font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; }
.cv-crit .cs small { color: var(--ink-3); font-weight: 600; font-size: 12px; margin-left: 4px; }
.cv-crit .tr { grid-column: 1 / -1; height: 10px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.cv-crit .fl { height: 100%; width: 0; border-radius: 4px; background: var(--brand-2); transition: width 1.1s var(--ease); }
.cv-crit .fl.na { width: 100% !important; background: repeating-linear-gradient(45deg, var(--line-2) 0 6px, var(--bg-2) 6px 12px); }
.cv-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.cv-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cv-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cv-status ul { list-style: none; padding: 0; margin: 12px 0 0; }
/* A full-width checklist reads in two columns on a wide screen. */
@media (min-width: 1100px) { .cv-status ul { columns: 2; column-gap: 32px; } .cv-status li { break-inside: avoid; } }
.cv-status li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cv-status li:last-child { border-bottom: 0; }
.cv-light { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.cv-light.ok { background: var(--ok); } .cv-light.warn { background: var(--warn); } .cv-light.bad { background: var(--bad); } .cv-light.na { background: var(--na); }
.cv-status .st { font-size: 12.5px; font-weight: 700; margin-top: 2px; }
.cv-status .st.ok { color: var(--ok); } .cv-status .st.warn { color: var(--warn); } .cv-status .st.bad { color: var(--bad); } .cv-status .st.na { color: var(--ink-3); }
.cv-status .nt { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.cv-cover { display: flex; gap: 20px; align-items: center; }
.cv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 6px; margin-top: 16px; }
.cv-tile { position: relative; aspect-ratio: 1; border-radius: 4px; border: 0; padding: 0; background: var(--ok); transition: transform .2s var(--spring); animation: cvPopIn .4s var(--spring) both; }
.cv-tile.pending { background: var(--line-2); }
.cv-tile:hover, .cv-tile:focus-visible { transform: scale(1.15); z-index: 2; }
.cv-tile .tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--card); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 4px; white-space: nowrap; z-index: 5; pointer-events: none; }
.cv-tile:hover .tip, .cv-tile:focus-visible .tip { display: block; }
.cv-actions-list { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: a; }
.cv-actions-list li { counter-increment: a; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cv-actions-list li:last-child { border-bottom: 0; }
.cv-actions-list li::before { content: counter(a); width: 30px; height: 30px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 13.5px; }
.cv-actions-list .at { font-weight: 700; }
.cv-actions-list .aw { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 4px; }
.cv-actions-list .ad { font-size: 14px; color: var(--ink-2); }
.cv-group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 18px 0 0; }
.cv-partlist { list-style: none; padding: 0; margin: 12px 0 0; }
.cv-partlist li button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; border-radius: 4px; }
.cv-partlist li button:hover { background: var(--bg-2); }
.cv-partlist .pn { width: 26px; height: 26px; border-radius: 4px; background: var(--bg-2); color: var(--ink-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.cv-partlist .pw { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.cv-dl { text-align: center; }
.cv-thumb { width: 124px; height: 156px; margin: 4px auto 18px; border-radius: 4px; background: var(--paper); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 16px 13px; display: flex; flex-direction: column; gap: 7px; position: relative; }
.cv-thumb i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.cv-thumb i.h { height: 8px; width: 62%; background: var(--brand); margin-bottom: 4px; }
.cv-thumb .w { position: absolute; right: -12px; bottom: -12px; width: 40px; height: 40px; border-radius: 4px; background: #2f6fd6; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.cv-thumb .draft { position: absolute; top: 46%; left: -8px; right: -8px; transform: rotate(-12deg); background: var(--warn); color: var(--warn-ink); font-weight: 700; font-size: 12px; letter-spacing: .12em; padding: 3px 0; }
.cv-fmts { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.cv-fmts button { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 2px 4px; font-size: 13.5px; }
.cv-opts { text-align: left; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cv-opts summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.cv-opts label { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-top: 10px; color: var(--ink-2); }

/* ── banners, toasts, errors ─────────────────────────────────────────── */
.cv-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 130; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.cv-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: cvToast .4s var(--spring); font-size: 14px; }
.cv-toast.bad { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.cv-toast.ok .ic { color: var(--ok); } .cv-toast.bad .ic { color: var(--bad); } .cv-toast.work .ic, .cv-toast.info .ic { color: var(--brand); }
.cv-toast .tt { font-weight: 700; }
.cv-toast .tb { color: var(--ink-2); white-space: pre-line; }
.cv-toast .tx { margin-left: auto; border: 0; background: none; color: var(--ink-3); padding: 0 2px; font-size: 18px; line-height: 1; }
@keyframes cvToast { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.cv-error { border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); background: var(--bad-soft); border-radius: 8px; padding: 18px 20px; margin-top: 18px; animation: cvRise .35s var(--ease); }
.cv-error .et { font-weight: 700; color: var(--bad); display: flex; gap: 8px; align-items: center; }
.cv-error .eb { color: var(--ink-2); margin: 6px 0 12px; white-space: pre-line; }
.cv-error details { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.cv-error details pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; font-size: 12px; }
.cv-loading { display: grid; place-items: center; min-height: 50vh; color: var(--ink-3); gap: 14px; }
.cv-loading .cv-spin { width: 28px; height: 28px; border-width: 3px; color: var(--brand); }

/* ── guide pointer ───────────────────────────────────────────────────── */
.cv-coach-ring { position: fixed; z-index: 60; pointer-events: none; border-radius: 8px; box-shadow: 0 0 0 3px var(--brand), 0 0 0 8px var(--brand-glow); opacity: 0; transition: opacity .35s, left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.cv-coach-ring.on { opacity: 1; animation: cvRing 2s ease-out infinite; }
@keyframes cvRing { 0% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 4px var(--brand-glow); } 70% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 18px transparent; } 100% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 18px transparent; } }
.cv-coach { position: fixed; z-index: 61; left: 0; top: 0; display: flex; align-items: center; gap: 0; pointer-events: none; opacity: 0; transition: opacity .3s, transform .65s var(--spring); }
.cv-coach.on { opacity: 1; }
.cv-coach .arrow { width: 54px; height: 54px; color: var(--brand); filter: drop-shadow(0 6px 10px var(--brand-glow)); animation: cvNudge 1.1s ease-in-out infinite; flex: 0 0 auto; }
.cv-coach .pill { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--ink); color: var(--card); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: var(--shadow-lg); }
#cv-root[data-theme="dark"] .cv-coach .pill { background: #f1f2fb; color: #12162a; }
.cv-coach .pill .dotp { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 0 var(--brand-glow); animation: cvDot 1.6s infinite; flex: 0 0 auto; }
@keyframes cvDot { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cv-coach .pill button { border: 0; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; line-height: 1; opacity: .8; }
.cv-coach .pill button:hover { opacity: 1; }
/* The arrow points down-left into the target's top-right corner. flip-x puts the pill on the left (arrow points down-right);
   flip-y puts the pair under the target (arrow points up). The nudge moves along the arrow, whichever way it points. */
.cv-coach { --sx: 1; --sy: 1; }
.cv-coach.flip-x { flex-direction: row-reverse; --sx: -1; }
.cv-coach.flip-y { --sy: -1; }
.cv-coach .arrow { transform: scale(var(--sx), var(--sy)); animation-name: cvNudge; }
.cv-coach.side .arrow { width: 44px; height: 44px; transform: rotate(45deg); animation-name: cvNudgeL; }
.cv-coach.side-l { flex-direction: row-reverse; }
.cv-coach.side-l .arrow { transform: rotate(-135deg); animation-name: cvNudgeR; }
@keyframes cvNudgeR { 0%, 100% { translate: 0 0; } 50% { translate: 7px 0; } }
/* Nowhere free beside the target: the ring alone marks it, so the pointer never covers a control. */
.cv-coach.mini { visibility: hidden; }
.cv-coach.inside .arrow { display: none; }
@keyframes cvNudgeL { 0%, 100% { translate: 0 0; } 50% { translate: -7px 0; } }
@keyframes cvNudge { 0%, 100% { translate: 0 0; } 50% { translate: calc(var(--sx) * -7px) calc(var(--sy) * 7px); } }

/* A repaint of the same screen (polling, a decision) must not replay the entrance animations: only what is new moves. */
.cv-still.cv-screen, .cv-still .cv-card, .cv-still .cv-part, .cv-still .cv-file, .cv-still .cv-tile, .cv-still .cv-widget,
.cv-still .cv-proj-card, .cv-still .cv-check-card.same, .cv-still .cv-answer, .cv-still .cv-q.reveal, .cv-still .cv-bigcheck,
.cv-still .cv-error, .cv-still .cv-queue-item, .cv-still .cv-note { animation: none !important; }
.cv-still .cv-bigcheck svg path, .cv-still .cv-bigcheck svg polyline { animation: none !important; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  #cv-root *, #cv-root *::before, #cv-root *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── narrower screens ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cv-split, .cv-split.wide-rail { grid-template-columns: minmax(0, 1fr); }
  .cv-rail { position: static; }
  /* One column: the actions (the download, the check card, what to add) come before the long reading. */
  .cv-split.wide-rail > .cv-rail { order: -1; }
  .cv-write-body { grid-template-columns: minmax(0, 1fr); }
  .cv-parts { position: static; max-height: none; }
  .cv-step .lbl { display: none; }
}
@media (max-width: 860px) {
  .cv-main { padding: 24px 18px 110px; }
  .cv-top { padding: 0 14px; gap: 10px; }
  .cv-proj { display: none; }
  .cv-widgets { grid-template-columns: minmax(0, 1fr); }
  .cv-score-hero, .cv-write-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .cv-paper { padding: 28px 22px; }
  .cv-madlib { font-size: 19px; }
  .cv-blank select, .cv-blank input { font-size: 17px; }
  .cv-h1 { font-size: 26px; }
}
@media (max-width: 600px) {
  .cv-step:not(.on), .cv-step-line { display: none; }
  .cv-step.on .lbl { display: inline; }
  .cv-logo span:last-child { display: none; }
  .cv-switch button { padding: 6px 9px; }
  .cv-tools .cv-icon-btn.opt { display: none; }
}
.cv-locked { display: flex; align-items: center; gap: 7px; margin-top: 10px; }

/* ══ Release 1.8 (docs/design/ASSISTANT-18_design.md), in the client view's own look ══════════════════════════════════════ */

/* Instructions off: every explanation on the page goes, only the questions and the actions stay (design 4.4). */
#cv-root.cv-no-instr .cv-instr, #cv-root.cv-no-instr .cv-lead { display: none !important; }
/* A screen whose right-hand column holds only instructions takes the whole width without them. */
.cv-split.instr-rail { grid-template-columns: minmax(0, 1fr) 340px; }
#cv-root.cv-no-instr .cv-split.instr-rail { grid-template-columns: minmax(0, 1fr); }
.instr-rail .cv-write-body { grid-template-columns: 290px minmax(0, 1fr); }
#cv-root.cv-no-instr .instr-rail .cv-write-body { grid-template-columns: 360px minmax(0, 1fr); }

/* the Instructions switch in the top bar */
.cv-instr-sw { display: inline-flex; align-items: center; gap: 9px; height: 38px; border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.cv-instr-sw:hover { background: var(--bg-2); color: var(--ink); }
.cv-instr-sw .knob { position: relative; width: 32px; height: 19px; border-radius: 8px; background: var(--line-2); transition: background .25s; flex: 0 0 auto; }
.cv-instr-sw .knob::before { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: none; transition: transform .3s var(--spring); }
.cv-instr-sw[aria-checked="true"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.cv-instr-sw[aria-checked="true"] .knob { background: var(--brand); }
.cv-instr-sw[aria-checked="true"] .knob::before { transform: translateX(13px); }

/* the instructions panel, in a right-hand column */
.cv-instr-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.cv-instr-panel .ih { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.cv-instr-panel .it { font-size: 17px; font-weight: 700; margin-top: 6px; }
.cv-instr-panel ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.cv-instr-panel ol li { margin-bottom: 6px; }
.cv-instr-panel .ex { margin-top: 12px; padding: 12px 14px; border-radius: 4px; background: var(--card-2); border: 1px dashed var(--line-2); font-size: 13.5px; }
.cv-instr-panel .ex b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cv-instr-panel .ex div { margin-bottom: 6px; color: var(--ink-2); }
.cv-instr-panel .ex div em { font-style: normal; font-weight: 700; color: var(--ink); }

/* Describe, one question at a time */
.cv-q-opt { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.cv-q-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.cv-answer { max-width: 100%; }
.cv-answer .av { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cv-answer .ic, .cv-answer .chg { flex: 0 0 auto; }
.cv-length { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cv-length .cv-card .t { display: flex; align-items: center; gap: 8px; }
.cv-card .ex { color: var(--ink-3); font-size: 13px; font-style: italic; margin-top: 2px; }
/* a character counter under a long text box: amber near the limit, red over it */
.cv-count { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.cv-count .n.near { color: var(--warn); font-weight: 700; }
.cv-count .n.over { color: var(--bad); font-weight: 700; }
.cv-count .saved { color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.cv-count .saved.bad { color: var(--bad); }
.cv-input.over { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

/* Files: examples, each file's part, what the review read */
.cv-need li .exl { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.cv-file .fn { display: flex; align-items: center; gap: 8px; }
.cv-file .fn .nm { overflow: hidden; text-overflow: ellipsis; }
.cv-inventory { border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); padding: 14px 18px; }
.cv-inventory .ih { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.cv-inventory ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cv-inventory li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.cv-inventory li .nm { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-inventory .left { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }

/* Write: citations kept in the page, never shown; a figure never taller than a screen */
.cv-paper .cv-cite { display: none; }
.cv-paper img { max-height: 520px; object-fit: contain; }
.cv-timing { font-size: 13px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }

/* Fix All */
.cv-fixall { border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 8px; padding: 14px 16px; margin-top: 14px; background: color-mix(in srgb, var(--ok-soft) 45%, var(--card)); }
.cv-fixall .fh { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.cv-fixall .fs { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.cv-fixall .cv-sub { color: var(--ink-2); }
.cv-fixjob { list-style: none; margin: 12px 0 0; padding: 0; }
.cv-fixjob li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cv-fixjob li .st { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cv-fixjob li.fixed .mk { color: var(--ok); } .cv-fixjob li.kept .mk { color: var(--warn); } .cv-fixjob li.failed .mk { color: var(--bad); } .cv-fixjob li.queued .mk { color: var(--ink-3); } .cv-fixjob li.fixing .mk { color: var(--brand); }
.cv-fixjob li .pt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-fixjob .undo { font-size: 13px; }

/* Finish: what memo 2 asked to see */
.cv-assessed { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; padding: 10px 14px; border-radius: 4px; background: var(--brand-soft); display: flex; gap: 8px; align-items: flex-start; }
.cv-crit .nad { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); background: var(--bg-2); border-radius: 4px; padding: 7px 10px; }
.cv-more-actions { margin-top: 10px; }

/* ── Buddy ── */
.cv-buddy-fab { height: 38px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; transition: background .2s, border-color .2s; }
.cv-buddy-fab:hover { background: var(--bg-2); }
.cv-buddy-fab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cv-buddy-face { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: 0 0 auto; }
.cv-buddy-fab[aria-pressed="true"] .cv-buddy-face { background: #fff; color: var(--brand); }
.cv-buddy-fab kbd { display: none; }
/* While pointing: what Buddy can explain gets a soft outline under the cursor. */
body.cv-buddy-pointing #cv-root { cursor: help; }
body.cv-buddy-pointing #cv-root .cv-buddy-hover { outline: 2px dashed var(--brand-2) !important; outline-offset: 3px; border-radius: 4px; }
.cv-buddy-hint { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); z-index: 126; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: cvPop .2s var(--ease); }
.cv-buddy-chip { position: fixed; z-index: 127; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--ink); color: var(--card); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-lg); animation: cvPop .15s var(--ease); }
.cv-buddy-chip .cv-buddy-face { width: 24px; height: 24px; }
.cv-buddy-panel { position: fixed; top: 68px; right: 0; bottom: 0; z-index: 124; width: min(440px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .3s var(--ease); }
.cv-buddy-panel.open { transform: none; }
.cv-buddy-panel .bh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cv-buddy-panel .bh .nm { font-weight: 700; font-size: 18px; flex: 1; }
.cv-buddy-panel .bb { flex: 1; overflow: auto; padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.cv-buddy-panel .bf { border-top: 1px solid var(--line); padding: 12px 18px 16px; display: flex; gap: 8px; }
.cv-buddy-panel .bf textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; }
.cv-buddy-sel { border-radius: 8px; background: var(--brand-soft); padding: 10px 14px; font-size: 13.5px; }
.cv-buddy-sel .k { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.cv-buddy-sel .q { font-family: var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cv-buddy-qs { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-buddy-qs button { border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); background: var(--card); }
.cv-buddy-qs button:hover { border-color: var(--brand-2); color: var(--ink); }
.cv-buddy-qs button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.cv-buddy-actions { padding: 10px 14px; }
.cv-buddy-quote { margin: 6px 0 2px; padding: 6px 10px; border-left: 3px solid var(--line); color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.cv-buddy-old, .cv-buddy-new { border-radius: 6px; padding: 8px 10px; margin: 4px 0 8px; font-size: 13.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.cv-buddy-old { background: var(--bad-soft); color: var(--ink-2); }
.cv-buddy-new { background: var(--ok-soft); color: var(--ink); }
.cv-buddy-ans .cv-sub.bad { color: var(--bad); }
.cv-buddy-ans { border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 14px; line-height: 1.55; animation: cvRise .3s var(--ease); }
.cv-buddy-ans .aq { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.cv-buddy-ans p { margin: 0 0 8px; }
.cv-buddy-ans .lbl { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.cv-buddy-ans .lbl.cited { background: var(--ok-soft); color: var(--ok); }
.cv-buddy-ans .lbl.uncited { background: var(--warn-soft); color: var(--warn); }
.cv-buddy-ans .lbl.none { background: var(--bad-soft); color: var(--bad); }
.cv-buddy-ans .lbl.calc, .cv-buddy-ans .lbl.help { background: var(--brand-soft); color: var(--brand); }
.cv-buddy-ex { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.cv-buddy-ex b { display: block; font-size: 12.5px; color: var(--ink-2); }
.cv-buddy-ex div { font-family: var(--serif); color: var(--ink); margin: 2px 0 8px; }
.cv-buddy-src { border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.cv-buddy-src .sh { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--bg-2); font-size: 13px; font-weight: 700; }
.cv-buddy-src .sh .pg { margin-left: auto; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-buddy-src .sh .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-buddy-src blockquote { margin: 0; padding: 10px 12px; font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--hl-edge); background: color-mix(in srgb, var(--hl) 30%, var(--card)); }
.cv-buddy-src blockquote mark { background: var(--hl); color: var(--ink); padding: 0 1px; border-radius: 3px; }
.cv-buddy-src .sa { display: flex; gap: 12px; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cv-buddy-page { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); padding: 10px; display: grid; place-items: center; min-height: 80px; }
.cv-buddy-page canvas { max-width: 100%; height: auto; box-shadow: none; background: #fff; border-radius: 4px; }
.cv-buddy-page .hlbox { position: absolute; background: color-mix(in srgb, #ffd400 38%, transparent); outline: 1px solid #d4a514; pointer-events: none; mix-blend-mode: multiply; }
.cv-buddy-calc { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cv-buddy-calc td, .cv-buddy-calc th { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
.cv-buddy-calc th { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.cv-buddy-calc td.n { text-align: right; }
.cv-buddy-calc tr.tot td { font-weight: 700; border-top: 2px solid var(--line-2); }
.cv-buddy-think { display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 13.5px; }
.cv-buddy-coverage { border-left: 3px solid var(--line-2); padding: 6px 10px; margin: 8px 0; font-size: 12.5px; }
.cv-buddy-details { margin: 10px 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; overflow-wrap: anywhere; }
.cv-buddy-details summary { cursor: pointer; font-weight: 600; }
.cv-buddy-details label { display: block; margin: 8px 0; font-size: 13px; }
.cv-buddy-details input, .cv-buddy-details textarea, .cv-buddy-details select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); padding: 7px; border-radius: 4px; }
.cv-buddy-diff del { text-decoration: line-through; background: var(--bad-soft); color: var(--ink); }
.cv-buddy-diff ins { text-decoration: underline; background: var(--ok-soft); color: var(--ink); }
.cv-buddy-step { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow-y: auto; font-size: 12px; }
.cv-buddy-table { overflow-x: auto; }
.cv-buddy-table th, .cv-buddy-table td { border: 1px solid var(--line); padding: 5px; text-align: left; }
.cv-buddy-decision { padding: 8px; border: 1px solid var(--line-2); }
.cv-buddy-panel :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cv-buddy-panel .lbl { white-space: normal; }

/* the top bar holds the steps and four tools: the project's name gives way first */
@media (max-width: 1600px) { .cv-proj { display: none; } }
@media (max-width: 1180px) {
  .cv-split.instr-rail, .instr-rail .cv-write-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .cv-length { grid-template-columns: minmax(0, 1fr); }
  .cv-instr-sw .lb { display: none; }
}
@media (max-width: 600px) {
  /* On a phone the bar keeps the step, Buddy, Instructions and the theme; the Client/Developer switch is an operator's tool. */
  .cv-step.on .lbl, .cv-switch { display: none !important; }
  .cv-buddy-fab .lb { display: none; }
  .cv-buddy-fab { padding: 0 4px; }
}

/* ══ Compass layer ════════════════════════════════════════════════════════════════════════════════════════════════════════════
   The house look from the design screens (docs/design/COMPASS-LOOK_plan.md): institutional, hairline-ruled, navy and teal, Inter with
   a monospaced metrics face. Colour is for state only; depth is hairlines and tonal planes; every number is tabular. */
#cv-root { font-variant-numeric: tabular-nums; }
#cv-root :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ── command bar: the logo, the house and product name, the project as a teal pill, the steps as tabs ── */
.cv-top { height: 60px; padding: 0 24px; gap: 16px; background: var(--card); backdrop-filter: none; border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow); }
.cv-logo { gap: 9px; padding: 4px 4px 4px 0; font-weight: 700; font-size: 16px; letter-spacing: -.015em; }
.cv-logo-mark { position: relative; width: 30px; height: 30px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.cv-logo-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-2); border: 2px solid var(--card); }
#cv-brand { display: inline-flex; align-items: center; }
#cv-brand[data-parent]::before { content: attr(data-parent); margin-right: 12px; padding-right: 12px; border-right: 1px solid var(--line-2); font-weight: 700; color: var(--ink); }
.cv-proj { padding: 4px 12px; border: 1px solid var(--teal-edge); border-left: 1px solid var(--teal-edge); border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-text); font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; max-width: 260px; }
.cv-step { padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; gap: 8px; }
.cv-step .n { width: 22px; height: 22px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 600; }
.cv-step.done .n { background: var(--ok); color: var(--ok-ink); }
.cv-step.on { background: var(--brand); color: var(--brand-ink); }
.cv-step.on .n { background: color-mix(in srgb, var(--brand-ink) 18%, transparent); color: var(--brand-ink); box-shadow: none; }
.cv-step-line { flex: 0 1 18px; min-width: 8px; height: 1px; border-radius: 0; }
.cv-icon-btn { width: 34px; height: 34px; border-radius: 4px; }
.cv-switch { padding: 2px; gap: 2px; border-radius: 4px; background: var(--card-2); border-color: var(--line-2); }
.cv-switch button { padding: 5px 12px; border-radius: 2px; font-size: 12.5px; font-weight: 600; }
.cv-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.cv-instr-sw { height: 34px; border-radius: 4px; font-size: 12.5px; font-weight: 600; border-color: var(--line-2); }
.cv-instr-sw .knob { border-radius: 8px; }
.cv-instr-sw[aria-checked="true"] { color: var(--brand-text); border-color: var(--brand-2); background: var(--brand-soft); }
.cv-instr-sw[aria-checked="true"] .knob { background: var(--brand-2); }
/* the assistant: the navy pill of the design, a teal face on it */
.cv-buddy-fab { height: 34px; border-radius: 4px; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; }
.cv-buddy-fab:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.cv-buddy-fab[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--brand-ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand-2); }
.cv-buddy-face { background: var(--brand-2); color: var(--brand-ink); border-radius: 4px; }
.cv-buddy-fab[aria-pressed="true"] .cv-buddy-face { background: var(--brand-ink); color: var(--teal); }
#cv-root[data-theme="dark"] .cv-buddy-fab .cv-buddy-face { background: var(--brand-ink); color: var(--brand); }

/* ── page frame ── */
.cv-main { max-width: 1480px; padding: 28px 32px 96px; }
.cv-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .05em; color: var(--brand-text); }
.cv-h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.cv-lead { font-size: 15px; }
.cv-panel { border-radius: var(--radius); box-shadow: none; padding: 20px; }
.cv-panel h2 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.cv-panel h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.cv-split { gap: 24px; }

/* ── buttons: navy for the action, teal for what verifies or commits, a hairline for the rest ── */
.cv-btn { border-radius: 4px; padding: 9px 16px; font-size: 14px; font-weight: 600; gap: 8px; }
.cv-btn:active:not(:disabled) { transform: none; }
.cv-btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.cv-btn.primary:hover:not(:disabled) { background: var(--brand-hover); box-shadow: none; transform: none; }
.cv-btn.primary:disabled { background: var(--line-2); color: var(--ink-3); }
.cv-btn.big { padding: 12px 22px; font-size: 15px; border-radius: 4px; }
.cv-btn.soft { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.cv-btn.soft:hover:not(:disabled) { background: var(--card-2); border-color: var(--ink); }
.cv-btn.ok { background: var(--teal); color: var(--brand-ink); box-shadow: none; }
.cv-btn.ok:hover:not(:disabled) { filter: brightness(1.08); }
.cv-btn.ghost { color: var(--brand-text); padding: 7px 10px; }
.cv-btn.ghost:hover { background: var(--brand-soft); }
.cv-btn.cv-danger { background: var(--card); color: var(--bad); border: 1px solid var(--bad); }
.cv-btn.cv-danger:hover:not(:disabled) { background: var(--bad-soft); }

/* ── choice cards and the new-project tile: hairlines, teal when chosen; no lift ── */
.cv-card { border-width: 1px; padding: 16px; }
.cv-card:hover:not(:disabled) { border-color: var(--brand-2); box-shadow: none; transform: none; }
.cv-card.sel { border-color: var(--brand-2); background: var(--teal-soft); box-shadow: inset 0 2px 0 var(--brand-2); }
.cv-card .ic { width: 36px; height: 36px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-text); }
.cv-card.sel .ic { background: var(--teal); color: var(--brand-ink); }
.cv-card .t { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.cv-proj-card { border-top: 2px solid var(--brand-2); padding: 20px; }
.cv-proj-card:hover { transform: none; box-shadow: none; border-color: var(--line-2); border-top-color: var(--brand-2); background: var(--card-2); }
.cv-proj-card .pt { font-weight: 600; letter-spacing: -.015em; }
.cv-new { border-width: 1px; border-style: dashed; border-color: var(--line-2); background: var(--card-2); }
.cv-new:hover { background: var(--brand-soft); border-color: var(--brand-2); transform: none; }
.cv-new .plus { width: 44px; height: 44px; border-radius: 6px; }

/* ── pills: mono, tracked, uppercase, with a fixed colour pair per meaning ── */
.cv-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: var(--label-track); text-transform: uppercase; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.cv-tag.grey { border-color: var(--line-2); }
.cv-tag.warn { border-color: var(--warn-edge); }
.cv-tag.bad { border-color: var(--bad-edge); }
.cv-tag.brand { color: var(--brand-text); border-color: var(--teal-edge); }
.cv-chip { border-width: 1px; border-color: var(--line-2); padding: 7px 14px; font-weight: 600; font-size: 13.5px; }
.cv-chip.on { transform: none; }
.cv-okt { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; }

/* ── inputs: flat, 36px, a teal edge when focused and no halo ── */
.cv-input { border-width: 1px; min-height: 36px; padding: 8px 12px; font-size: 14px; }
.cv-input:focus { border-color: var(--brand-2); box-shadow: none; }
.cv-input.over { box-shadow: none; }
.cv-blank select, .cv-blank input { border-radius: 4px; }

/* ── metrics and labels: the monospaced face for numbers and tracked metadata ── */
.cv-ring .pct, .cv-gauge .val { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -.02em; }
.cv-ring .lbl, .cv-gauge .of { font-size: 13px; }
.cv-gauge .band { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: var(--label-track); text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.cv-count, .cv-count-big, .cv-timing { font-family: var(--mono); font-size: 12px; }
.cv-count-big { font-weight: 600; color: var(--brand-text); }
.cv-instr-panel .ih, .cv-inventory .ih, .cv-instr-panel .ex b { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: var(--label-track); }
.cv-instr-panel .ih { color: var(--brand-text); }
.cv-instr-panel { box-shadow: none; border-top: 2px solid var(--brand-2); }
.cv-instr-panel .it { font-weight: 600; letter-spacing: -.01em; }
.cv-inventory { box-shadow: none; background: var(--card-2); }
.cv-inventory li .nm { font-weight: 600; }
.cv-file { border-radius: 8px; }
.cv-file .fn { font-weight: 600; }

/* ── the dialogs and floating things: tier 3 and 4 of the design's depth ── */
.cv-dialog-back { background: var(--backdrop); backdrop-filter: none; }
.cv-dialog { border: 1px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow-lg); }
.cv-toast { border-radius: 6px; box-shadow: var(--shadow-lg); }
.cv-pop { border-radius: 6px; }
.cv-buddy-panel { border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }

/* ── the footer strip ── */
.cv-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 32px; border-top: 1px solid var(--line-2); background: var(--card); font-size: 12px; color: var(--ink-2); }
.cv-foot[hidden] { display: none; }
.cv-foot b { color: var(--ink); font-weight: 700; }
.cv-foot span:last-child { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 700px) {
  .cv-main { padding: 20px 16px 80px; }
  .cv-foot { padding: 12px 16px; }
  .cv-foot span:last-child { margin-left: 0; }
}
/* the bar is 60px now: what hangs under it moves up with it */
.cv-buddy-panel { top: 60px; }
.cv-rail { top: 84px; }
@media (max-width: 600px) { #cv-brand { display: none; } }
/* the footer strip sits at the foot of the page, however short the page is */
#cv-root { display: flex; flex-direction: column; }
.cv-main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.cv-foot { flex: 0 0 auto; }

/* ══ Release 1.11 (docs/design/THIRD-ROUND-111_plan.md) ═══════════════════════════════════════════════════════════════════ */

/* The two top-bar switches, smaller (A6): they took too much of the bar. */
.cv-instr-sw { height: 30px; gap: 7px; padding: 0 9px; font-size: 12px; }
.cv-instr-sw .knob { width: 26px; height: 15px; border-radius: 7px; }
.cv-instr-sw .knob::before { width: 11px; height: 11px; }
.cv-instr-sw[aria-checked="true"] .knob::before { transform: translateX(11px); }

/* Write: the writing area a little wider (B1): a narrower instructions column and part list, and a wider page on large screens. */
@media (min-width: 1181px) {
  .cv-split.instr-rail { grid-template-columns: minmax(0, 1fr) 300px; }
  .instr-rail .cv-write-body { grid-template-columns: 260px minmax(0, 1fr); }
  .cv-main:has(.cv-write-body) { max-width: 1640px; }
}

/* Fix All: pick the kinds of check to fix. A calm card; a ticked kind is a filled box and an accent edge, not a green fill. */
.cv-fixall { background: var(--card); border: 1px solid var(--line-2); box-shadow: none; }
.cv-fixpick { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.cv-pick { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.cv-pick:hover { border-color: var(--line-2); background: var(--card-2); }
.cv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cv-pick .box { width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--card); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.cv-pick.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--card)); box-shadow: inset 3px 0 0 var(--brand); }
.cv-pick.on .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.cv-pick input:focus-visible ~ .box { outline: 2px solid var(--brand); outline-offset: 2px; }
.cv-pick .tx b { display: block; font-size: 14.5px; }
.cv-pick .tx small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.cv-pick .n { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The ticked kind, plainer (1.11): the house ink for the box and a quiet edge. The accent colour is green-teal here, and a green fill
   around the whole row read as heavy; the choice is shown by the filled box, the row stays a card. */
.cv-pick.on { border-color: var(--ink-2); background: var(--card); box-shadow: 0 1px 2px rgba(18, 22, 42, .06); }
.cv-pick.on .box { background: var(--ink); border-color: var(--ink); color: var(--card); }
.cv-pick:not(.on) .tx b { color: var(--ink-2); font-weight: 600; }
.cv-pick:not(.on) .n { color: var(--ink-3); }

/* The part a check is about, in the document (1.11): it was a thick green-teal frame around the whole part, which read as a heavy
   "selected box". Now a quiet tint and a slim bar at the edge, in the page's own text colour, so it works on the light page in both themes. */
.cv-sec.focus { position: relative; background: color-mix(in srgb, var(--paper-ink) 4%, transparent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--paper-ink) 4%, transparent); border-radius: 3px; }
.cv-sec.focus::before { content: ""; position: absolute; left: -22px; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--paper-ink); opacity: .8; }
@media (max-width: 860px) { .cv-sec.focus::before { left: -14px; } }

/* A Buddy answer's "From the guide" label is class `help`, which the developer app's own `.help` (the 16px "?" bubble) also matches:
   it came out as a small circle with its text overlapping the answer. Reset what that rule sets. */
.cv-buddy-ans .lbl.help { position: static; display: inline-block; width: auto; height: auto; margin-left: 0; border: 0; border-radius: 999px; line-height: normal; letter-spacing: .04em; text-transform: none; cursor: default; vertical-align: baseline; flex: initial; }
.cv-buddy-ans .lbl.help::after { display: none !important; }

/* The Check page: the document and the checks scroll on their own (1.11). Before, the checks column was only "sticky", so when it was taller
   than the window its lower part could not be reached until the whole page had scrolled, and scrolling it scrolled the document. */
@media (min-width: 1181px) {
  .cv-split.cv-scroll2 > .cv-paper, .cv-split.cv-scroll2 > .cv-rail { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; }
  .cv-split.cv-scroll2 > .cv-rail { padding-right: 4px; }
  /* The two columns scroll on their own, so their bars are slim and quiet (they were the browser's heavy dark ones). */
  .cv-split.cv-scroll2 > .cv-paper, .cv-split.cv-scroll2 > .cv-rail { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 30%, transparent) transparent; }
  .cv-split.cv-scroll2 > .cv-paper::-webkit-scrollbar, .cv-split.cv-scroll2 > .cv-rail::-webkit-scrollbar { width: 8px; background: transparent; }
  .cv-split.cv-scroll2 > .cv-paper::-webkit-scrollbar-track, .cv-split.cv-scroll2 > .cv-rail::-webkit-scrollbar-track { background: transparent; }
  .cv-split.cv-scroll2 > .cv-paper::-webkit-scrollbar-thumb, .cv-split.cv-scroll2 > .cv-rail::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 8px; }
  .cv-split.cv-scroll2 > .cv-paper::-webkit-scrollbar-thumb:hover, .cv-split.cv-scroll2 > .cv-rail::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 50%, transparent); }
}

/* The Check step, on a wide window: a screen of fixed height. The page does not scroll at all, so nothing a wheel does over one column
   can move the other (before, a wheel over the checks that could not scroll them went on to scroll the whole page, and the document
   moved with it). The document and the checks each scroll inside their own box. */
@media (min-width: 1181px) {
  #cv-root.cv-check { height: 100vh; overflow: hidden; }
  #cv-root.cv-check .cv-main { flex: 1 1 0; min-height: 0; overflow: hidden; padding-bottom: 20px; }
  #cv-root.cv-check .cv-screen { height: 100%; display: flex; flex-direction: column; }
  #cv-root.cv-check .cv-head { flex: none; }
  #cv-root.cv-check .cv-split.cv-scroll2 { flex: 1 1 0; min-height: 0; align-items: stretch; }
  #cv-root.cv-check .cv-split.cv-scroll2 > .cv-paper, #cv-root.cv-check .cv-split.cv-scroll2 > .cv-rail { position: static; top: auto; max-height: none; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
}

/* ── 1.13: what can be clicked looks clickable; what only informs does not ──────────────────────────────────────────────────────
   Live (2026-11-06, the admin, on the Files screen): the guide's "Done? Continue" was a solid dark pill beside the solid dark
   Continue button, so the hint read as a second button and pressing it did nothing. One rule now: an action has a solid fill or a
   border (buttons, choice chips, cards); a hint or a label has neither -- a soft tint, regular weight, a hint's dashed edge. */

/* The guide's hint: a note pinned to the button, never a button. Tinted and dashed, regular weight, a small "Tip" label first. */
.cv-coach .pill { background: var(--brand-soft); color: var(--ink-2); border: 1px dashed var(--brand-2); border-radius: 8px; font-weight: 500; font-size: 13px; padding: 7px 8px 7px 12px; box-shadow: var(--shadow); }
#cv-root[data-theme="dark"] .cv-coach .pill { background: color-mix(in srgb, var(--brand-2) 16%, var(--card)); color: var(--ink-2); }
.cv-coach .pill::before { content: "Tip"; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--brand-text); margin-right: -2px; }
.cv-coach .pill .dotp { display: none; }
.cv-coach .pill button { width: 20px; height: 20px; font-size: 13px; background: transparent; opacity: .6; }
.cv-coach .pill button:hover { background: color-mix(in srgb, currentColor 12%, transparent); opacity: 1; }

/* A label on a file or a finding ("Your draft", "Ready"): a tint and no edge, square-cornered, so it never reads as a button. */
.cv-tag { border: 0; border-radius: 3px; }

/* Where the writing has got to: a row of steps, not a row of tabs. Text and a mark only, no filled pill. */
.cv-phase { background: none; border-radius: 0; padding: 4px 0; margin-right: 10px; font-weight: 600; }
.cv-phase.now, .cv-phase.done { background: none; }
.cv-phase:not(:last-child)::after { content: "\203A"; margin-left: 10px; color: var(--ink-3); font-weight: 400; }

/* Chance of success: bright, saturated bands (they read as pale washes before). Rose, amber, emerald in both themes. */
.cv-chance-strip .seg.b0 { background: linear-gradient(90deg, #fb7185, #f97384); }
.cv-chance-strip .seg.b1 { background: linear-gradient(90deg, #fcd34d, #fbbf24); }
.cv-chance-strip .seg.b2 { background: linear-gradient(90deg, #4ade80, #22c55e); }
.cv-chance-strip { box-shadow: 0 1px 0 rgba(0,0,0,.04), inset 0 0 0 1px rgba(0,0,0,.05); }
.cv-chance-strip .range { background: rgba(255,255,255,.18); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }

/* Where each source is used (literature review's Finish page): a source-by-part citation map. */
.cv-evmap .cv-ev-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.cv-evmap .cv-ev-head .cv-sub { max-width: 620px; margin-top: 4px; }
.cv-ev-stat { display: flex; align-items: baseline; gap: 4px; flex: 0 0 auto; text-align: right; flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
.cv-ev-stat b { font-size: 34px; line-height: 1; letter-spacing: -.03em; color: var(--brand); }
.cv-ev-stat span { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.cv-ev-stat small { flex: 0 0 100%; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.cv-ev-grid { margin-top: 18px; display: flex; flex-direction: column; overflow-x: auto; }
.cv-ev-row { display: grid; align-items: center; column-gap: 4px; min-width: 520px; padding: 6px 0; border-top: 1px solid var(--line); }
.cv-ev-row.hd { border-top: 0; padding: 0 0 4px; }
.cv-ev-row.hd .pc { text-align: center; font: 600 11px var(--mono, monospace); color: var(--ink-3); cursor: default; }
.cv-ev-row .nm { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.cv-ev-row .cell { display: grid; place-items: center; height: 30px; border-radius: 6px; }
.cv-ev-row:hover .cell { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.cv-ev-row .cell.on i { display: block; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--brand-2, var(--brand)) 70%, white), var(--brand)); box-shadow: 0 2px 6px var(--brand-glow, rgba(0,0,0,.15)); animation: cvPop .4s var(--ease) both; }
.cv-ev-row .tot { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.cv-ev-row .tot b { font-size: 13px; min-width: 18px; text-align: right; }
.cv-ev-row .tot .bar { width: 34px; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.cv-ev-row .tot .bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.cv-ev-unc { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--warn-soft); border: 1px dashed var(--warn); }
.cv-ev-unc .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cv-ev-unc .chip { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Certainty ladder (How strong is the evidence?) and the risk-of-bias grid (How far can each study be trusted?). */
.cv-ladder-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cv-ladder-legend span, .cv-matrix-key span { display: inline-flex; align-items: center; gap: 6px; }
.cv-ladder-legend i, .cv-matrix-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.l0 { --lv: #f43f5e; } .l1 { --lv: #fb923c; } .l2 { --lv: #facc15; } .l3 { --lv: #22c55e; }
.cv-ladder-legend i { background: var(--lv); }
.cv-ladder-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(150px, 1fr) minmax(90px, .5fr); gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cv-ladder-row .who b { display: block; font-size: 14px; text-transform: capitalize; }
.cv-ladder-row .who small, .cv-ladder-row .lv small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.cv-ladder-row .ladder { display: flex; gap: 4px; }
.cv-ladder-row .st { flex: 1; height: 14px; border-radius: 4px; background: var(--bg-2); transform-origin: left; }
.cv-ladder-row .st.on { background: var(--lv); box-shadow: 0 2px 8px color-mix(in srgb, var(--lv) 45%, transparent); animation: cvIn .5s var(--ease) both; }
.cv-ladder-row .lv { font-weight: 800; font-size: 14px; color: color-mix(in srgb, var(--lv) 78%, var(--ink)); text-align: right; }
.cv-matrix-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; margin-top: 16px; gap: 2px; }
.cv-matrix-bar span { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 56px; color: #fff; }
.cv-matrix-bar b { font-size: 17px; line-height: 1; } .cv-matrix-bar small { font-size: 11px; font-weight: 600; opacity: .92; white-space: nowrap; }
.cv-matrix-bar .good, .cv-matrix-key .good, .cv-matrix-row .good { background: #22c55e; }
.cv-matrix-bar .warn, .cv-matrix-key .warn, .cv-matrix-row .warn { background: #fbbf24; }
.cv-matrix-bar .bad, .cv-matrix-key .bad, .cv-matrix-row .bad { background: #f43f5e; }
.cv-matrix-bar .na, .cv-matrix-key .na, .cv-matrix-row .na { background: #cbd5e1; }
.cv-matrix-bar .warn { color: #4a3300; } .cv-matrix-bar .na { color: #334155; }
.cv-matrix-grid { margin-top: 16px; display: flex; flex-direction: column; overflow-x: auto; }
.cv-matrix-row { display: grid; align-items: center; column-gap: 5px; min-width: 560px; padding: 4px 0; }
.cv-matrix-row.hd { align-items: end; padding-bottom: 6px; }
.cv-matrix-row .dh { display: flex; justify-content: center; height: 96px; }
.cv-matrix-row .dh em { writing-mode: vertical-rl; transform: rotate(180deg); font: normal 600 11.5px var(--sans, inherit); color: var(--ink-3); white-space: nowrap; text-transform: capitalize; }
.cv-matrix-row .sn { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.cv-matrix-row .sn b { font-family: var(--mono, monospace); font-size: 11.5px; color: var(--ink-3); margin-right: 4px; }
.cv-matrix-row .dot { justify-self: center; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.cv-matrix-row .ov { justify-self: center; width: 8px; height: 22px; border-radius: 4px; }
.cv-matrix-row:not(.hd):hover { background: color-mix(in srgb, var(--brand) 5%, transparent); border-radius: 6px; }
.cv-matrix-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cv-matrix-key i { border-radius: 50%; }
@media (max-width: 720px) { .cv-ladder-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } .cv-ladder-row .lv { text-align: left; } }

/* Where each source is used, as a ranked list (replaces the sparse source-by-part grid). */
.cv-ev-lean { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: 8px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); font-size: 13.5px; }
.cv-ev-lean b { font-size: 22px; color: var(--warn); letter-spacing: -.02em; }
.cv-ev-rank { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cv-ev-item { animation: cvRise .45s var(--ease) both; }
.cv-ev-item .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cv-ev-item .nm { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-ev-item .n { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.cv-ev-item .n b { color: var(--ink); font-size: 15px; }
.cv-ev-item .track { height: 12px; border-radius: 6px; background: var(--bg-2); margin: 6px 0; overflow: hidden; }
.cv-ev-item .track i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand-2, var(--brand)) 70%, #5eead4)); box-shadow: 0 2px 8px var(--brand-glow, rgba(0,0,0,.15)); transform-origin: left; animation: cvGrow .8s var(--ease) both; }
@keyframes cvGrow { from { transform: scaleX(0); } to { transform: none; } }
.cv-ev-item .in { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }
.cv-ev-item .pc { min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--brand-soft, var(--bg-2)); color: var(--brand-text, var(--brand)); font: 700 11px var(--mono, monospace); cursor: default; }

/* Evidence panels, one calmer palette that sits with the teal and navy of the rest of the page (the first pass was too loud). */
.cv-ladder, .cv-matrix { --c-good: #3aa886; --c-warn: #e8b04a; --c-bad: #e0566b; --c-na: #d6dce5; }
#cv-root[data-theme="dark"] .cv-ladder, #cv-root[data-theme="dark"] .cv-matrix { --c-na: #3a4256; }
.l0 { --lv: #e0566b; } .l1 { --lv: #ec9a5a; } .l2 { --lv: #e8b04a; } .l3 { --lv: #3aa886; }
.cv-ladder-row .st.on { box-shadow: none; }
.cv-matrix-bar { height: auto; gap: 8px; }
.cv-matrix-bar span { background: color-mix(in srgb, var(--k) 14%, var(--card)) !important; color: var(--ink) !important; border-radius: 8px; border-top: 4px solid var(--k); padding: 8px 12px; }
.cv-matrix-bar span b { color: color-mix(in srgb, var(--k) 70%, var(--ink)); font-size: 20px; }
.cv-matrix-bar span small { color: var(--ink-2); opacity: 1; }
.cv-matrix-bar .good, .cv-matrix-key .good { --k: var(--c-good); } .cv-matrix-bar .warn, .cv-matrix-key .warn { --k: var(--c-warn); }
.cv-matrix-bar .bad, .cv-matrix-key .bad { --k: var(--c-bad); } .cv-matrix-bar .na, .cv-matrix-key .na { --k: var(--c-na); }
.cv-matrix-key i { background: var(--k); }
.cv-matrix-row .dot, .cv-matrix-row .ov { background: var(--k); }
.cv-matrix-row .good { --k: var(--c-good); } .cv-matrix-row .warn { --k: var(--c-warn); } .cv-matrix-row .bad { --k: var(--c-bad); } .cv-matrix-row .na { --k: var(--c-na); }
.cv-matrix-row .dot.na { background: transparent; box-shadow: inset 0 0 0 2px var(--c-na); }
.cv-matrix-row .dot { width: 16px; height: 16px; box-shadow: none; }
.cv-matrix-row .dot.na { box-shadow: inset 0 0 0 2px var(--c-na); }
.cv-matrix-row .dh { height: auto; min-height: 60px; }
.cv-matrix-row .dh em { max-height: 190px; overflow: visible; }
.cv-matrix-key i.good, .cv-matrix-key i.warn, .cv-matrix-key i.bad, .cv-matrix-key i.na { background: var(--k); }
.cv-matrix-key i.na { background: transparent; box-shadow: inset 0 0 0 2px var(--c-na); }

/* Finish: everything still pending, in one card first in the right-hand column. Brand teal on white, like the rest of the page. */
.cv-pending { border: 0; background: linear-gradient(170deg, var(--brand-soft), var(--card) 55%); box-shadow: 0 0 0 2px var(--brand), 0 8px 24px var(--brand-glow); position: relative; overflow: hidden; animation: cvRise .5s var(--ease) both; }
.cv-pending::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
.cv-pending .ph-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.cv-pending .ph-head h2 { font-size: 20px; margin: 0; letter-spacing: -.01em; }
.cv-pending .mk { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--card); flex: 0 0 auto; }
.cv-pending .mk .pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 var(--brand-glow); animation: cvDot 1.8s infinite; }
.cv-pending .pr { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.cv-pending .pr:first-of-type { border-top: 0; margin-top: 4px; }
.cv-pending .pt { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cv-pending .px { margin: 4px 0 10px; color: var(--ink-2); font-size: 13.5px; }
.cv-pending .pt + .cv-btn { margin-top: 10px; }
.cv-pending .ph { margin: 8px 0 4px; text-align: center; }

/* Chance of success: the range's own numbers above its bracket, and 0 and 100 at the ends of the scale. */
.cv-chance-rangelbl { position: relative; height: 18px; margin: 6px 0 -2px; }
.cv-chance-rangelbl span { position: absolute; transform: translateX(-50%); font: 700 12px var(--mono, monospace); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.cv-chance-ticks span.end { color: var(--ink-3); opacity: .8; }
.cv-chance-ticks span.end.s { transform: none; }
.cv-chance-ticks span.end.e { transform: translateX(-100%); }
.cv-crit .cw { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 1px; }

/* ─── Verification screen and the degraded strip (WP-5, release 1.17) ─── */
.cv-degraded { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--warn-edge); background: var(--warn-soft); color: var(--ink); border-radius: var(--radius-sm); font-size: 14px; }
.cv-degraded svg { flex: none; margin-top: 2px; color: var(--warn); }
.cv-vf-signer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 12px; }
.cv-vf-signer label { font-weight: 700; font-size: 14px; }
.cv-vf-signer .cv-input { flex: 1 1 200px; max-width: 320px; }
.cv-vf-progress { font-weight: 700; margin: 4px 0; overflow-wrap: anywhere; }
.cv-vf-banner { margin: 12px 0; padding: 10px 14px; border: 1px solid var(--teal-edge); background: var(--teal-soft); border-radius: var(--radius-sm); font-size: 14px; }
.cv-vf-filters { margin: 14px 0; }
.cv-vf-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.cv-vf-item { border: 1px solid var(--line); border-left: 4px solid var(--warn-edge); border-radius: var(--radius-sm); background: var(--card); padding: 14px 16px; min-width: 0; }
.cv-vf-item.confirmed { border-left-color: var(--ok); }
.cv-vf-item.changed { border-left-color: var(--brand-2); }
.cv-vf-item.rejected { border-left-color: var(--bad); }
.cv-vf-item .vh { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cv-vf-item .vt { font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cv-vf-item .vd { margin: 10px 0 0; display: grid; gap: 6px; }
.cv-vf-item .vd div { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 4px 12px; }
.cv-vf-item dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.cv-vf-item dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.cv-vf-item .vr { margin-top: 10px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cv-vf-item .vrerun { margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); border: 1px solid var(--warn-edge); font-size: 13.5px; overflow-wrap: anywhere; }
.cv-vf-item .vrerun.ok { background: var(--ok-soft); border-color: var(--ok); }
.cv-vf-item .va { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cv-vf-item .vform { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; margin-top: 12px; }
.cv-vf-item .vfld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cv-vf-item .vfld.wide, .cv-vf-item .vform .va, .cv-vf-item .vform .verr { grid-column: 1 / -1; }
.cv-vf-item .vfld label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cv-vf-item .vrange { display: flex; gap: 8px; }
.cv-vf-item .vrange .cv-input { min-width: 0; }
.cv-vf-item .verr { color: var(--bad); font-weight: 600; font-size: 14px; }
.cv-vf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.cv-vf-stats div { border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.cv-vf-stats dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.cv-vf-stats dd { margin: 2px 0 0; font: 700 18px var(--mono); overflow-wrap: anywhere; }
@media (max-width: 600px) { .cv-vf-item .vd div { grid-template-columns: minmax(0, 1fr); } .cv-vf-signer .cv-input { max-width: none; } }

/* Stand-ins for files left out on purpose (placeholders): visibly not an uploaded file. */
.cv-file.ph { border-style: dashed; background: transparent; }
.cv-file .fi.ph { background: var(--bg-2); color: var(--ink-2); border: 1px dashed var(--line-2); }
.cv-ph-form { margin-top: 16px; }
.cv-ph-form .cv-sub { margin: 6px 0 12px; }
.cv-ph-field { margin-top: 12px; }
.cv-ph-field label { display: block; margin-bottom: 6px; font-size: 13.5px; }
.cv-ph-form .cv-q-foot { margin-top: 14px; }
.cv-ph-err { color: var(--bad); margin-top: 8px; min-height: 0; }
.cv-tag.vs.pending { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-edge); }
.cv-tag.vs.confirmed { background: var(--ok-soft); color: var(--ok); }
.cv-tag.vs.changed { background: var(--brand-soft); color: var(--brand-text); border-color: var(--teal-edge); }
.cv-tag.vs.rejected { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-edge); }

/* WP-5 (release 1.17): the top bar's steps overlapped the logo and the tools between phone and laptop widths (the steps are nowrap and the
   stepper may shrink to nothing). Below 1180px only the current step keeps its name; the stepper never paints outside its own box. */
.cv-stepper { overflow: hidden; }
@media (max-width: 1360px) { .cv-step:not(.on) .lbl { display: none; } .cv-step { padding: 6px 4px; } }
@media (max-width: 1000px) { .cv-logo > span:not(.cv-logo-mark), .cv-buddy-fab .lb, .cv-buddy-fab kbd { display: none; } .cv-top { gap: 8px; } }
@media (max-width: 760px) { .cv-logo { font-size: 0; } #cv-brand, .cv-switch { display: none !important; } }
/* A part's name is shown in full: it wraps instead of ending in an ellipsis. */
.cv-part .pt { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
/* A saved answer is shown in full (it was cut with an ellipsis): it wraps, up to six lines (the whole text is in the box under Change), and the Change button stays beside it. */
.cv-answer .av { overflow: hidden; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.cv-fixall { margin-bottom: 16px; }
.cv-fixjob li .pt { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.cv-inventory li .nm { max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }

/* ── Buddy writes the description (Describe step) and compares two parts of the report ── */
.cv-bw-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.cv-bw-line { flex: 1 1 220px; font-size: 13.5px; color: var(--ink-2); }
.cv-bw-row .cv-btn { flex: 0 0 auto; }
.cv-bw-flash { animation: cvBwFlash 1.8s var(--ease); }
@keyframes cvBwFlash { 0% { box-shadow: 0 0 0 4px var(--brand-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
.cv-bw { display: flex; flex-direction: column; gap: 12px; }
.cv-bw-title { font-weight: 700; font-size: 16px; }
.cv-bw-ex-title { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-top: 4px; }
.cv-bw-exs { display: flex; flex-direction: column; gap: 8px; }
.cv-bw-ex { text-align: left; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--card); cursor: pointer; overflow-wrap: anywhere; }
.cv-bw-ex:hover, .cv-bw-ex:focus-visible { border-color: var(--brand-2); }
.cv-bw-msg { border-radius: 10px; padding: 11px 13px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.cv-bw-msg.me { background: var(--brand-soft); color: var(--ink); align-self: flex-end; max-width: 92%; white-space: pre-wrap; }
.cv-bw-msg.me .who { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); margin-bottom: 2px; }
.cv-bw-msg.buddy { border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.cv-bw-msg.err { border-color: var(--bad); }
.cv-bw-text { white-space: pre-wrap; }
.cv-bw-ask { font-weight: 700; font-size: 13px; }
.cv-bw-q .qt { font-weight: 600; margin-bottom: 6px; }
.cv-bw-a { color: var(--ink-2); font-size: 13.5px; }
.cv-bw-meta { font-size: 12px; color: var(--ink-3); }
.cv-bw-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.cv-bw-notes .ck { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft, var(--bg-2)); color: var(--warn, var(--ink)); margin-right: 4px; }
.cv-bw-acts button.cv-bw-use { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cv-bw-acts button:disabled { opacity: .5; cursor: default; }
.cv-bw-used { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); }
.cv-bw-used span { flex: 1; color: var(--ink-2); }
.cv-bw-src-toggle { align-self: flex-start; font-size: 12.5px; }
.cv-bw-sources { display: flex; flex-direction: column; gap: 8px; }
.cv-bw-src { border-left: 3px solid var(--line); padding-left: 10px; font-size: 13px; }
.cv-bw-src .nm { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 12px; color: var(--ink-2); }
.cv-bw-src .qt { display: block; color: var(--ink-2); }
.cv-cc { display: flex; flex-direction: column; gap: 10px; }
.cv-cc .pair { display: grid; gap: 8px; }
.cv-cc .side { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cv-cc .side .k { font-size: 11px; font-weight: 800; color: var(--ink-3); margin-bottom: 3px; }
.cv-cc .rel { font-weight: 700; font-size: 14px; }
.cv-cc .rel.conflict { color: var(--bad); }
.cv-cc .rel.agree { color: var(--ok); }
.cv-cc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cv-cc th, .cv-cc td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.cv-cc mark { background: var(--warn-soft, var(--brand-soft)); color: inherit; border-radius: 3px; padding: 0 2px; }
.cv-cc-hint { border: 1.5px dashed var(--brand-2); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
