/* ProposalForge minimal pages (stage S2). Colours and type from the wireframe. */
:root {
  --bg: #FFFFFF; --panel: #F6F5F1; --ink: #1D1D1B; --ink2: #585253; --ink3: #6B6460;
  --line: #E3E0D6; --line2: #B8B2A6; --field-bd: #8A8379; --lime: #C4D600;
  --acc: #1D1D1B; --acc-ink: #FFFFFF; --pill-bg: #ECEAE4;
  --err-bg: #F9EFEF; --err-fg: #8E2A2E; --ok-bg: #F2F6CC; --ok-fg: #3F4A00;
  --amb-bg: #FBF3D9; --amb-fg: #7A5A00;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131413; --panel: #1A1B19; --ink: #F3F1EB; --ink2: #C2BCB2; --ink3: #A8A196;
    --line: #2A2B28; --line2: #4A4B46; --field-bd: #7C7A73; --acc: #C4D600; --acc-ink: #1D1D1B;
    --pill-bg: #3A3A37; --err-bg: #3A2526; --err-fg: #F2B8BB; --ok-bg: #33391A; --ok-fg: #DDE88A;
    --amb-bg: #3A3220; --amb-fg: #F2D27A;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the hidden attribute wins over display rules below */
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif; }
a { color: inherit; }
h1 { margin: 0; font-size: 26px; font-weight: 600; }
h2 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; }
p.lead { margin: 4px 0 0; color: var(--ink2); max-width: 720px; }
.muted { color: var(--ink2); }
.small { font-size: 13px; }
code, .mono { font-family: Consolas, ui-monospace, monospace; font-size: 13px; }

header { display: flex; align-items: center; gap: 24px; padding: 12px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }
.brand i { display: inline-block; width: 10px; height: 10px; background: var(--lime); margin-right: 8px; }
header nav { display: flex; gap: 18px; flex: 1; }
header nav a { text-decoration: none; color: var(--ink2); padding: 4px 0; border-bottom: 2px solid transparent; }
header nav a.on { color: var(--ink); border-color: var(--lime); }
.who { color: var(--ink2); font-size: 13px; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; }

button, .btn { font: inherit; cursor: pointer; border-radius: 4px; border: 1px solid var(--acc); background: var(--acc);
  color: var(--acc-ink); padding: 7px 14px; text-decoration: none; display: inline-block; }
button.secondary, .btn.secondary { background: transparent; color: var(--ink); border-color: var(--line2); }
button.danger { background: transparent; color: var(--err-fg); border-color: var(--err-fg); }
button.link { background: none; border: none; color: var(--ink2); padding: 0; text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
button.icon { background: none; border: 1px solid transparent; color: var(--ink2); padding: 2px 6px; }
input, select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--field-bd); border-radius: 4px; padding: 7px 10px; width: 100%; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
label.inline { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
label.inline input { width: auto; margin-top: 4px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.note { padding: 10px 14px; border-radius: 4px; background: var(--panel); color: var(--ink2); font-size: 14px; }
.error { padding: 10px 14px; border-radius: 4px; background: var(--err-bg); color: var(--err-fg); }
.ok { padding: 10px 14px; border-radius: 4px; background: var(--ok-bg); color: var(--ok-fg); }
.warn { padding: 10px 14px; border-radius: 4px; background: var(--amb-bg); color: var(--amb-fg); }

.signin { max-width: 400px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 24px; }
.poc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.poc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--ink2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel); }
.table-wrap { overflow-x: auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 12px; }
.tabs button { background: none; color: var(--ink2); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px; }
.tabs button.on { color: var(--ink); border-color: var(--lime); font-weight: 600; }

.drop { border: 2px dashed var(--line2); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start; background: var(--panel); margin-top: 20px; }
.drop.over { border-color: var(--lime); }
.drop .step { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.drop strong { font-size: 16px; }
progress { width: 100%; height: 8px; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--pill-bg); font-size: 12px; white-space: nowrap; }
.sev-BLOCKER { background: var(--err-bg); color: var(--err-fg); }
.sev-WARNING { background: var(--amb-bg); color: var(--amb-fg); }
.sev-ADVISORY { background: var(--pill-bg); color: var(--ink2); }
.st-done { background: var(--ok-bg); color: var(--ok-fg); }
.st-failed { background: var(--err-bg); color: var(--err-fg); }
.counts { display: flex; gap: 8px; flex-wrap: wrap; }

.masked { font-family: Consolas, ui-monospace, monospace; letter-spacing: .06em; }
.menu { position: relative; display: inline-block; }
.menu-list { position: absolute; right: 0; top: 100%; z-index: 5; background: var(--bg); border: 1px solid var(--line2); border-radius: 4px;
  display: flex; flex-direction: column; min-width: 180px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.menu-list button { background: none; color: var(--ink); border: none; border-radius: 0; text-align: left; padding: 8px 12px; }
.menu-list button:hover { background: var(--panel); }

dialog { border: 1px solid var(--line2); border-radius: 6px; padding: 24px; max-width: 520px; width: calc(100% - 32px); background: var(--bg); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { margin-top: 0; }
.secret { font-family: Consolas, ui-monospace, monospace; font-size: 16px; padding: 10px 12px; background: var(--panel); border-radius: 4px; word-break: break-all; }
.evidence { color: var(--ink2); font-size: 13px; }

@media (max-width: 640px) {
  header { padding: 10px 16px; gap: 12px; }
  main { padding: 20px 16px 48px; }
  th, td { padding: 6px; }
}

/* layout helpers (no inline styles: the page's CSP allows none) */
.grow { flex: 1; }
.end { justify-content: flex-end; }
.mt { margin-top: 14px; }
.nowrap { gap: 4px; flex-wrap: nowrap; }
.right { text-align: right; }
fieldset.plain { border: none; padding: 0; margin: 0; gap: 8px; }
div.plain { gap: 8px; }
.legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.searchbox { margin: 16px 0 8px; max-width: 360px; }

/* library (stage S3) */
.searchbox-wide { max-width: 520px; }
.thumb { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; background: var(--panel); }
.banner { border: 1px solid var(--ink); padding: 14px 16px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.card { border: 1px solid var(--line2); border-radius: 4px; padding: 14px 16px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.side { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.side .value { font-weight: 600; }
.side ul, ul.obs { margin: 0; padding-left: 16px; }
ul.obs li { margin-bottom: 6px; }
.gallery { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.gallery img.photo { width: 96px; height: 104px; object-fit: cover; border-radius: 4px; }
.gallery img.image { max-width: 280px; max-height: 190px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; }
button.small, .btn.small { padding: 4px 10px; font-size: 13px; }
td form.row { flex-wrap: wrap; }
td form.row .grow { min-width: 180px; }

/* Assemble a sample */
.pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }
.picker { border: 1px solid var(--line2); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pick-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--field-bd); border-radius: 4px; padding: 7px 10px; width: 100%; }

/* bids (stage S4) */
.empty { border: 1px dashed var(--line2); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.empty p { margin: 0; }
.stepper { list-style: none; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 0; margin: 20px 0 8px; border-bottom: 1px solid var(--line); }
.stepper li > a, .stepper li > span.off { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; text-decoration: none;
  border-bottom: 2px solid transparent; min-width: 96px; }
.stepper li.on > a { border-color: var(--lime); font-weight: 600; }
.stepper li > span.off { color: var(--ink3); }
.stepper .mark { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center;
  font-size: 12px; background: var(--pill-bg); color: var(--ink2); }
.stepper li.st-done .mark { background: var(--ok-bg); color: var(--ok-fg); }
.stepper li.st-current .mark { background: var(--lime); color: #1D1D1B; }
.stepper li.st-needs_refresh .mark { background: var(--amb-bg); color: var(--amb-fg); }
.warn-text { color: var(--amb-fg); }
.err-text { color: var(--err-fg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tile { background: var(--panel); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; }
.tile b { font-size: 22px; font-weight: 600; }
.tile span { font-size: 13px; color: var(--ink2); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.choice { border: 1px solid var(--line2); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.choice p { margin: 0; }
.icon-big { font-size: 18px; }
table.details th { width: 180px; text-transform: none; letter-spacing: 0; font-size: 14px; }
th.cand { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; min-width: 200px; }
a.src { white-space: nowrap; }
button.review { background: transparent; color: var(--ink2); border: 1.5px dashed var(--line2); padding: 2px 8px; font-size: 12px; white-space: nowrap; }
button.review.on { background: var(--ok-bg); color: var(--ok-fg); border: 1.5px solid transparent; }
ul.notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
details summary { cursor: pointer; }
ul.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
li.doc { border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
details.standard > summary { padding: 8px 0; border-top: 1px solid var(--line); }
.lines { display: block; white-space: pre-line; }   /* CV text keeps its line breaks */
td.code { white-space: nowrap; }
svg.page-icon { width: 10px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.stepper .why { max-width: 160px; }
.refresh { margin: 8px 0; gap: 12px; }
section.question h3 { margin: 4px 0; font-size: 16px; }
section.question.review { border-color: var(--amb-fg); }
tr.review > td { background: var(--amb-bg); }
.draft-text p { line-height: 1.6; max-width: 72ch; }
.draft-text .fact { text-decoration: underline dotted; text-underline-offset: 3px; }
.part { border-top: 1px solid var(--line, #ddd); margin-top: 1rem; padding-top: .75rem; }
.part h3 { margin: 0; font-size: 1rem; }
mark.gap { background: var(--amb-bg); color: var(--amb-fg); padding: 0 3px; border-radius: 3px; }
.answer { background: var(--ok-bg); color: var(--ok-fg); border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.suggestions { display: flex; flex-direction: column; gap: 6px; }
.suggestion { border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.suggestion.used { border-color: var(--ok-fg); }
textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--field-bd); border-radius: 4px; padding: 7px 10px; width: 100%; resize: vertical; }
.arabic-input { width: 18em; font-size: 15px; }
select.auto-width { width: auto; }
textarea.edit-text { width: 100%; font: inherit; line-height: 1.6; }
.notes { background: var(--amb-bg); color: var(--amb-fg); border-radius: 4px; padding: 6px 10px; }
.notes ul { margin: 4px 0 0; }
.fill { margin: 4px 0 8px; }

/* The Checker report (report.js): entries with their slides, and the side preview */
.cat-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.cat-list[hidden] { display: none; }
.finding-entry { border: 1px solid var(--line2); border-radius: 4px; margin: 8px 0; background: var(--bg); }
.finding-entry > summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.finding-entry > summary::-webkit-details-marker { display: none; }
.sev-edge-BLOCKER { border-left: 4px solid var(--err-fg); }
.sev-edge-WARNING { border-left: 4px solid var(--amb-fg); }
.sev-edge-ADVISORY { border-left: 4px solid var(--line2); }
.entry-title { min-width: 0; overflow-wrap: anywhere; }
.entry-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slide-thumb { display: flex; flex-direction: column; gap: 4px; }   /* not .thumb: the library's round photos */
.thumb-btn { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.thumb-btn img, .thumb-blank { width: 100%; aspect-ratio: 210 / 297; object-fit: contain; background: var(--panel); display: block; }
.suggested { display: flex; flex-direction: column; gap: 4px; }
.fix-from { background: var(--err-bg); color: var(--err-fg); text-decoration: line-through; padding: 1px 6px; border-radius: 3px; }
.fix-to { background: var(--ok-bg); color: var(--ok-fg); padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.slide-preview { position: fixed; right: 16px; top: 76px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 92px); overflow: auto; z-index: 30; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); border: 1px solid var(--line2); border-radius: 6px; background: var(--bg); display: flex; flex-direction: column; }
.slide-preview[hidden] { display: none; }
.preview-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.slide-frame { position: relative; margin: 10px 12px; border: 1px solid var(--line2); background: var(--panel); }
.slide-frame img { display: block; width: 100%; height: auto; }
.slide-frame.no-image { padding: 16px; }
.slide-frame .hl { position: absolute; border: 2px solid var(--err-fg); background: rgba(200, 16, 46, .08); border-radius: 2px; pointer-events: none; }
.preview-nav { justify-content: space-between; align-items: center; margin: 0 12px; }
.preview-body { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 14px; }
/* an Arabic deck's names with no Arabic yet, and the drawer that gives one */
.names-list { list-style: none; padding: 0; margin: 8px 0 0; }
.names-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.names-drawer input[dir="rtl"] { text-align: right; }

/* RFP citations (the wireframe): the chip, the source drawer, the page full size */
.cite-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 6px;
  background: var(--bg); color: var(--ink); padding: 5px 10px; font-size: 14px; white-space: nowrap; cursor: pointer; max-width: 100%; }
.cite-chip:hover { border-color: var(--ink); }
.cite-chip .page-icon { width: 13px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; flex: none; }
.cite-chip .eye-icon { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.cite-chip .chip-sep { width: 1px; height: 16px; background: var(--line2); }
.cite-chip .chip-file { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.source-drawer { position: fixed; top: 56px; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg);
  border-left: 1px solid var(--ink); box-shadow: 0 8px 30px rgba(29,29,27,.14); z-index: 40; overflow: auto; }
.drawer-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.drawer-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.drawer-req { margin: 0; }
.page-view { position: relative; width: 100%; background: #FFFFFF; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.page-view .page-img { display: block; width: 100%; height: 100%; }
.page-view .quote-box { position: absolute; border: 1.5px solid #C4D600; background: rgba(196,214,0,.28); border-radius: 2px;
  margin: -2px; padding: 2px; }
.page-view.text-only { padding: 14px; max-height: 60vh; overflow: auto; color: #1D1D1B; }
.page-text { white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
mark.quote { background: rgba(196,214,0,.4); color: inherit; outline: 1.5px solid #C4D600; }
.quote-text { margin: 0; font-size: 13px; color: var(--ink2); border-left: 3px solid #C4D600; padding-left: 10px; }
.page-full { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; display: flex; align-items: center;
  justify-content: center; padding: 24px; }
.page-full-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; max-width: calc(100vw - 48px); }
.page-view.big { height: min(82vh, 1100px); width: auto; max-width: calc(100vw - 48px); box-shadow: 0 10px 40px rgba(0,0,0,.4); border: 0; }
.page-view.big.text-only { width: min(800px, calc(100vw - 48px)); height: auto; max-height: 82vh; }
.page-full-bar { color: #FFFFFF; gap: 14px; }
.page-full-bar button { color: #FFFFFF; border-color: #FFFFFF; background: transparent; }

/* The feedback card (check_export.js) */
.feedback { border-color: var(--ink); }
.fb-q { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.fb-ends { justify-content: space-between; max-width: 260px; }
.stars { display: flex; gap: 4px; }
.stars .star { background: none; border: none; padding: 0 2px; font-size: 26px; line-height: 1; color: var(--line2); }
.stars .star.on { color: var(--ink); }
input.hours { width: 110px; }

/* Mark as done / Won't fix (report.js) */
.mark-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mark-actions input { width: min(380px, 100%); }
.mark-done { background: var(--ok-bg); color: var(--ok-fg); margin-left: 6px; }
.mark-wont_fix { background: var(--pill-bg); color: var(--ink2); margin-left: 6px; }
.diff-line { gap: 8px; align-items: center; margin: 8px 0; }

/* The Impact tab (impact.js) */
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg button { background: var(--bg); color: var(--ink); border: none; border-radius: 0; padding: 6px 12px; }
.seg button.on { background: var(--ink); color: var(--bg); font-weight: 700; }
.imp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.imp-card { border: 1px solid var(--line2); border-radius: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.imp-value { font-size: 28px; }
.imp-tag { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 3px; border: 1px solid var(--line2); }
.tag-measured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag-estimated { border-style: dashed; border-color: var(--ink2); }
.bar { height: 6px; background: var(--panel); border-radius: 3px; overflow: hidden; flex: 1; min-width: 60px; }
.bar-fill { height: 100%; background: var(--ink); }
.bar-fill.warn { background: var(--amb-fg); }
.weeks { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.week { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.week-bar { width: 100%; background: var(--lime); min-height: 1px; }
.step-row { align-items: center; gap: 10px; }
.step-l { width: 140px; }
.imp-group { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.imp-panel { width: min(420px, calc(100vw - 32px)); }
.imp-row { align-items: center; gap: 12px; }
/* The requirement register (the wireframe): priority and category rows, the standard-term switch, tags */
.filter-label { min-width: 64px; }
.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 4px 6px; }
.switch .switch-knob { width: 30px; height: 16px; border-radius: 8px; background: var(--line2); position: relative; flex: none; }
.switch .switch-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #FFFFFF; transition: left .15s; }
.switch.on .switch-knob { background: var(--ink); }
.switch.on .switch-knob::after { left: 16px; }
.req-tags { gap: 6px; margin-top: 4px; }
.pill.std-term { border: 1px dashed var(--line2); background: transparent; }
/* Run steps (the wireframe's empty states) and the cost line under every AI button */
.run-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 36px 24px; }
.run-step > p { max-width: 560px; margin: 0; }
.run-step-label { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.run-step-stats { justify-content: center; }
.cost-line { margin-top: 4px; }
.stack.plain.right { align-items: flex-end; text-align: right; }
/* Team by role (the wireframe): ranked rows, the total as a bar, criteria as dots */
.cand-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 8px; }
.cand-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px auto; gap: 12px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--line); }
.cand-row.picked { background: var(--panel); }
.cand-rank { font-weight: 700; color: var(--ink2); }
.cand-score { display: flex; flex-direction: column; gap: 4px; }
.score-bar { display: block; height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.score-fill { display: block; height: 100%; background: var(--ink); }
.crit-list { padding: 8px 12px 12px 52px; display: flex; flex-direction: column; gap: 6px; background: var(--panel);
  border-bottom: 1px solid var(--line); }
.crit { display: grid; grid-template-columns: minmax(140px, 220px) auto 40px minmax(0, 1fr); gap: 10px; align-items: start; }
.dots { display: inline-flex; gap: 3px; padding-top: 4px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line2); }
.dot.on { background: var(--ink); border-color: var(--ink); }
.crit-why { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) { .cand-row { grid-template-columns: 32px 1fr; } .crit { grid-template-columns: 1fr auto; } .crit-list { padding-left: 12px; } }
/* The Plan table: a long section's sub-sections under it */
.plan-table tr.sub-row td { background: var(--panel); border-top: 0; }
.plan-table .sub-mark { color: var(--ink2); padding-left: 14px; }
.card.target, .part.target { outline: 2px solid #C4D600; outline-offset: 2px; }
.edit-note { color: var(--ink2); margin-top: 4px; }
