/* One quiet look for the whole tool: a calm page, one accent, plain controls. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #1b2430;
  --muted: #5b6776;
  --line: #d9dee5;
  --accent: #0f5e6b;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0f1;
  --warn: #8a4b00;
  --warn-soft: #fbecd6;
  --bad: #9b2c2c;
  --bad-soft: #fbe9e9;
  --you: #eef1f5;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171d; --surface: #1a212a; --fg: #e6eaef; --muted: #9aa6b4; --line: #2c3642;
    --accent: #6cc4cf; --accent-ink: #0c1418; --accent-soft: #17343a;
    --warn: #f0b66a; --warn-soft: #3a2a12; --bad: #f1a3a3; --bad-soft: #3b1d1d; --you: #222b36;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); }
h1 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; line-height: 1.2; margin: 0; text-wrap: balance; }
h1.quiet { font-size: 1.15rem; color: var(--muted); font-family: var(--body); font-weight: 600; }
p { margin: 0; }
.lede { color: var(--muted); max-width: 40rem; }
.small { color: var(--muted); font-size: 0.88rem; }

.demo-strip { background: var(--warn-soft); color: var(--warn); font-size: 0.88rem; font-weight: 500; padding: 8px 16px; text-align: center; }
.demo-strip .standin { display: inline-block; margin-left: 10px; font-weight: 600; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 60rem; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); }
.brand .org { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.brand .product { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.page { max-width: 60rem; margin: 0 auto; padding: 28px 16px 64px; }
section { display: flex; flex-direction: column; gap: 16px; }
.narrow { max-width: 26rem; }
.narrow.wide { max-width: 44rem; }
.crumb { font-size: 0.9rem; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

label { font-weight: 600; font-size: 0.92rem; }
input[type="text"], input[type="password"], textarea {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 18px; border: 1px solid transparent; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; align-self: flex-start; }
button.secondary { background: var(--surface); color: var(--fg); border-color: var(--line); align-self: flex-start; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }
button:disabled { opacity: 0.6; cursor: default; }

.problem { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 10px 14px; }
.problem ul { margin: 0; padding-left: 1.2rem; }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 14px; }
.door { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fg); min-width: 0; }
.door.open { border-color: var(--accent); }
.door.open:hover { background: var(--accent-soft); }
.door.shut { opacity: 0.62; }
.door-tag { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.door-title { font-family: var(--display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.door-text { color: var(--muted); font-size: 0.93rem; flex: 1; }
.door-go { font-weight: 600; font-size: 0.9rem; color: var(--accent); margin-top: 6px; }
.door.shut .door-go { color: var(--muted); }

.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-hint { color: var(--muted); font-size: 0.9rem; }
.file-list { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.file-list:empty { display: none; }
.to-come { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.to-come legend { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 6px; }
.check { font-weight: 400; display: flex; gap: 8px; align-items: baseline; }

.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.message { border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.message .who { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.message .text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Lists the person can tick, inside the tool's message (Triage). */
.message .text .words + .words, .message .text .ticks + .words { margin-top: 10px; }
.ticks { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; white-space: normal; }
.ticks label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 400; font-size: 1rem; }
.ticks label:hover { border-color: var(--accent); }
.ticks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ticks input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.18rem 0 0; accent-color: var(--accent); }
.ticks label:has(input:disabled) { cursor: default; color: var(--muted); }
.unseen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.from-tool { background: var(--surface); border: 1px solid var(--line); }
.from-you { background: var(--you); margin-left: min(12%, 4rem); }
.working { color: var(--muted); font-style: italic; }
.notice { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; }
[hidden] { display: none !important; }

/* ---- the experts' side ---- */
:root { --low: #2f7d4f; --medium: #b7791f; --high: #c2571a; --very-high: #a12828; --urgent-soft: #fde8e8; }
@media (prefers-color-scheme: dark) { :root { --low: #6cc08b; --medium: #e2b25c; --high: #f0935a; --very-high: #f08a8a; --urgent-soft: #3b1d1d; } }
.side { font-family: var(--body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-left: 6px; }
.account { display: flex; align-items: center; gap: 12px; }
.wide-page { max-width: 60rem; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; margin: 0; }
h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.quiet-card { background: transparent; }
.case-head { display: flex; flex-direction: column; gap: 4px; }
.wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
/* Tables that stack on a narrow screen: the table of a vendor case's recommendation, and on Triage's first page the
   tables of core facts and of reasons. Each was wider than a phone: the vendor table's last column, "The tool
   recommends", sat off the right edge, and the other two slid sideways in their boxes. Below 40rem each row is
   stacked, with each cell under its own column heading, which the cell carries. The headings are the tables' own
   words. At a desk's width the tables are as they were (21 November 2026). */
@media (max-width: 40rem) {
  table.stacks, table.stacks tbody, table.stacks tr, table.stacks td { display: block; }
  table.stacks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.stacks tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stacks td { border-bottom: 0; padding: 2px 0; }
  table.stacks td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
}
ul, ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 6px; }
.messages { padding-left: 0; }
details > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
details[open] > summary { margin-bottom: 8px; }
.notes { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 6px; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.file-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: 0.9rem; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 0; max-height: 22rem; overflow-y: auto; }

.cases { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.case.urgent { border-color: var(--very-high); border-left-width: 6px; }
.case-link { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: var(--fg); }
.case-link:hover { background: var(--accent-soft); border-radius: 12px; }
.case-top, .case-readings { display: flex; flex-wrap: wrap; gap: 8px; }
.case-who { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.case-meta { color: var(--muted); font-size: 0.88rem; }
.case-about, .about { color: var(--fg); font-size: 0.95rem; font-style: italic; }
.about { margin: 0; }
.key { margin: 0; }
.flags { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; padding-top: 10px; padding-bottom: 10px; }
.flag { margin: 0; font-size: 0.92rem; border-left: 4px solid var(--line); padding-left: 8px; }
.flag-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; }
.flag-raised { border-left-color: var(--very-high); }
/* "No flag" is grey, not the green of "low": it says no flag was raised, and is not a clearance (21 November 2026). */
.flag-none { border-left-color: var(--muted); }
.mark { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; border-radius: 999px; padding: 3px 10px; }
.urgent-mark { background: var(--very-high); color: #fff; }
.state { background: var(--accent-soft); color: var(--accent); }
.mark.quiet { background: var(--you); color: var(--muted); }
.reading { font-size: 0.88rem; border-left: 4px solid var(--line); padding-left: 8px; }
.level-low { border-left-color: var(--low); } .level-medium { border-left-color: var(--medium); }
.level-high { border-left-color: var(--high); } .level-very-high { border-left-color: var(--very-high); }

.time-critical { background: var(--urgent-soft); border: 2px solid var(--very-high); border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.time-critical h2 { color: var(--very-high); font-family: var(--body); font-size: 1.05rem; letter-spacing: 0.08em; }

.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 14px; }
.gauge-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gauge { display: flex; flex-direction: column; gap: 8px; }
.gauge h3 { margin: 0; }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.zone { text-align: center; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 9px 2px; border-radius: 6px; background: var(--you); color: var(--muted); border-bottom: 5px solid transparent; }
.zone-low { border-bottom-color: var(--low); } .zone-medium { border-bottom-color: var(--medium); }
.zone-high { border-bottom-color: var(--high); } .zone-very-high { border-bottom-color: var(--very-high); }
.zone.here { color: #fff; }
.zone-low.here { background: var(--low); } .zone-medium.here { background: var(--medium); }
.zone-high.here { background: var(--high); } .zone-very-high.here { background: var(--very-high); }
.scale.open .zone.here { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.28) 0 6px, transparent 6px 12px); }
.reading-text { font-family: var(--display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.rec { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.rec-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 14px; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.choice h3 { margin: 0; }
.standing { background: var(--accent-soft); border-radius: 8px; padding: 8px 10px; font-size: 0.92rem; }

/* ---- VendorCheck on the experts' side ---- */
.mark.module { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.memo { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.84rem; line-height: 1.5; max-height: 34rem; }
select { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.standing ol, .standing ul { margin-top: 4px; }

/* ---- the experts' landing page and Enterprise Risk Calibration ---- */
.door-icon { width: 46px; height: 46px; color: var(--accent); }
.kept { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 10px 14px; max-width: 46rem; }
.calibration-form { gap: 16px; }
.fact-label { font-weight: 600; font-size: 0.92rem; }
.question { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.question legend { font-weight: 600; padding: 0 6px; max-width: 100%; }
.q-number { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pick { display: flex; align-items: baseline; gap: 10px; font-weight: 400; font-size: 1rem; cursor: pointer; }
.pick input { flex: none; accent-color: var(--accent); }
input.short { max-width: 12rem; }
.entries { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.entries dt { font-weight: 600; font-size: 0.92rem; }
.entries dd { margin: 0; }
.asked { margin-top: 4px; gap: 12px; }
.asked .answer { display: block; background: var(--accent-soft); border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
.versions { list-style: none; padding-left: 0; }
.versions li { display: flex; flex-direction: column; gap: 2px; }

/* ---- the record of decisions ---- */
.record-link { max-width: 46rem; }
table.decisions td, table.decisions th { font-size: 0.9rem; }
/* Each decision is laid out as a block of its own, each part under its own heading, which the cell carries. As a
   table of up to nine columns it was wider than its box on any screen, so the reason, the name and the standing
   position sat off to the right behind a sideways scroll. The headings are the tables' own words. On a narrow
   screen the parts sit one under another (24 November 2026). */
table.decisions, table.decisions tbody { display: block; }
table.decisions thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
table.decisions tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 10px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
table.decisions tr:first-child { padding-top: 4px; }
table.decisions tr:last-child { border-bottom: 0; padding-bottom: 4px; }
table.decisions td { display: block; border-bottom: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
table.decisions td.whole { grid-column: 1 / -1; }
table.decisions td[data-label]::before { content: attr(data-label); display: block; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
table.counts { max-width: 34rem; }
table.counts td:not(:first-child), table.counts th:not(:first-child) { text-align: right; }
.earlier { display: block; }
table.decisions ol { margin-top: 4px; }

/* ---- standing positions ---- */
.position { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.position form { margin-top: 2px; }

/* ---- seen before: the earlier cases the tool names, and the note of where an assessment is kept ---- */
.similar { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.where-kept { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.where-kept .row { align-items: center; flex-wrap: nowrap; }
.where-kept input[type="text"] { flex: 1 1 auto; min-width: 0; }

/* ---- the parts of a proposal: one block for each, so that nothing is squeezed or cut off ---- */
.parts { display: flex; flex-direction: column; gap: 14px; }
.one-part { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 12px 28px; }
.one-part + .one-part { border-top: 1px solid var(--line); padding-top: 14px; }
.one-part .whole { grid-column: 1 / -1; }
.one-part dt { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.one-part dd { margin: 2px 0 0; }
.one-part .part-name { font-weight: 600; }

/* ==== Final look, for demo day (24 November 2026). Look only: no word on any page is changed. ====
   Each block below is one proposal put to Simon, and each can be taken out without touching the others. */

/* ---- A. The two sides told apart at a glance: the experts' side has a dark band at the top.
        The person's side keeps its white band. base.html marks the experts' pages with the class "experts". ---- */
:root { --band: #0c3f48; --band-ink: #ffffff; --band-muted: #c9dfe2; }
@media (prefers-color-scheme: dark) { :root { --band: #114a55; } }
body.experts .top { background: var(--band); border-bottom-color: var(--band); }
body.experts .brand { color: var(--band-ink); }
body.experts .brand .org, body.experts .account .small { color: var(--band-muted); }
body.experts .side { color: var(--band-ink); background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 2px; display: inline-block; white-space: nowrap; }
@media (max-width: 40rem) { body.experts .side { margin-left: 4px; padding: 2px 8px; } }
body.experts .top button.link { color: var(--band-ink); }
body.experts .top a:focus-visible, body.experts .top button:focus-visible { outline-color: var(--band-ink); }
/* On paper a browser leaves background colours out, so the band prints as dark words on white. */
@media print { :root { --band: transparent; --band-ink: #000000; --band-muted: #333333; } body.experts .side { background: none; border: 1px solid #000000; } }

/* ---- B. The tool's own mark beside its name, at the top of every page. It is the picture the browser's tab
        already shows. base.html puts it in; it carries no words. ---- */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-words { display: flex; flex-direction: column; min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: none; border-radius: 8px; }
body.experts .brand-mark { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
/* At a phone's width there is no room for the mark beside the name, so the top stays as it was. */
@media (max-width: 40rem) { .brand-mark { display: none; } }

/* ---- C. The front page's four doors sit two by two: the two open doors above the two still to come.
        At a phone's width they stay one under another, as now. ---- */
.doors { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

/* ---- D. A waiting line shows that the tool is at work: a small dot that slowly brightens and fades beside
        the same words. It is the same on both sides and for every step, and says nothing of how a case is going.
        A device set to show less movement gets a still dot. ---- */
.working { display: flex; align-items: baseline; gap: 10px; }
.working::before { content: ""; flex: none; align-self: center; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--accent); animation: working-dot 1.6s ease-in-out infinite; }
@keyframes working-dot { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .working::before { animation: none; opacity: 0.7; } }

/* ---- E. The start pages: the button for choosing files looks like the tool's other buttons, each label sits
        nearer its own box than the box above, and the "Not available yet" box has room round it. ---- */
input[type="file"] { font: inherit; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; cursor: pointer; margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
input[type="file"]::file-selector-button:hover { background: var(--accent-soft); border-color: var(--accent); }
#start-form > label, #start-form > .pair { margin-top: 8px; }
#start-form > .to-come { margin: 10px 0 6px; }

/* ---- F. Small finishing touches. A button answers the pointer. On the gauge, the white lettering of the marked
        level is easier to read: "medium" is a darker amber by day, and on a device set to dark colours the
        marked level and the TIME-CRITICAL mark use dark lettering on their pale colours. ---- */
button.primary:hover:not(:disabled) { filter: brightness(1.12); }
button.secondary:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
:root { --medium: #9a6410; }
@media (prefers-color-scheme: dark) {
  :root { --medium: #e2b25c; }
  .zone.here, .urgent-mark { color: #12171d; }
}

/* ---- G. Paper. An expert's page printed, or saved as a PDF, drops the bands at the top and every button and
        box to type in, keeps a card whole on one sheet where it fits, and prints black on white. ---- */
@media print {
  :root { --bg: #ffffff; --surface: #ffffff; --fg: #000000; --muted: #333333; --line: #999999; --you: #f1f1f1; --accent: #0f5e6b; --accent-soft: #eef4f5; color-scheme: light; }
  body { font-size: 11pt; }
  .top .account, .crumb, button, .choice form, .choice details, .where-kept, input[type="file"] { display: none !important; }
  .page { max-width: none; padding: 12pt 0 0; }
  .top { border-bottom: 1px solid #000; }
  .top-inner { max-width: none; padding-left: 0; padding-right: 0; }
  .card, .gauge-box, .case, .choice, .time-critical { break-inside: avoid; }
  .zone, .zone.here, .mark, .time-critical, .demo-strip, .standing, .notice, .problem, .kept { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .file-text { max-height: none; overflow: visible; }
  a { color: inherit; text-decoration: none; }
}

/* ==== The look of the tool, "Indigo wash", chosen by Simon on 24 November 2026 (decision 169). Look only: no word on any page is changed. ====
   It was the second of three looks drawn for that choice, and is the one in use.
   Drawn from three strands seen across governance, risk and compliance products: purple, indigo and violet as the
   main colour, a soft pale wash behind the top of the page, and rounded boxes with fully rounded buttons.
   Typefaces are the viewer's own device's: no outside font service is called.
   It sits after the seven blocks above and can be taken out whole. */
:root {
  --bg: #f5f4fc; --surface: #ffffff; --fg: #1c1938; --muted: #5c5978; --line: #dcd9f0;
  --accent: #4b3bd1; --accent-ink: #ffffff; --accent-soft: #eae7fc; --you: #eeecfa;
  --wash: #e3dffb; --lift: 0 1px 2px rgba(28, 25, 56, 0.05), 0 10px 28px rgba(28, 25, 56, 0.07);
  --band: #3a2bb4; --band-2: #6a4be3; --band-ink: #ffffff; --band-muted: #f0edff;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121028; --surface: #1b1839; --fg: #ecebfa; --muted: #a8a4c9; --line: #322e5c;
    --accent: #a79bff; --accent-ink: #14112c; --accent-soft: #2a2560; --you: #241f4a;
    --wash: #1e1a4a; --lift: none;
    --band: #2a2188; --band-2: #4a35b8; --band-ink: #ffffff; --band-muted: #cfcaf5;
  }
}
body { background: linear-gradient(180deg, var(--wash) 0, var(--bg) 24rem) no-repeat var(--bg); }
h1 { font-weight: 700; font-size: 2rem; letter-spacing: -0.025em; }
h1.quiet { font-size: 1.15rem; letter-spacing: 0; font-weight: 600; }
h2 { font-weight: 700; letter-spacing: -0.015em; }
.door-title, .case-who, .reading-text, .brand .product { font-weight: 700; letter-spacing: -0.01em; }
button { border-radius: 999px; }
button.link { border-radius: 0; }
input[type="text"], input[type="password"], textarea, select { border-radius: 12px; }
input[type="file"]::file-selector-button { border-radius: 999px; }
.card, .door, .case, .gauge-box { border-radius: 18px; border-color: transparent; box-shadow: var(--lift); }
.quiet-card { box-shadow: none; }
.choice, .question, .drop, .to-come, .message, .time-critical { border-radius: 14px; }
.case-link:hover { border-radius: 18px; }
.zone { border-radius: 10px; }
.top { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line); }
body.experts .top { background: linear-gradient(90deg, var(--band), var(--band-2)); box-shadow: none; }
.door.open .door-go { align-self: flex-start; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 6px 18px; margin-top: 10px; }
@media (prefers-color-scheme: dark) {
  .card, .door, .case, .gauge-box { border-color: var(--line); }
}
@media print {
  :root { --bg: #ffffff; --surface: #ffffff; --fg: #000000; --muted: #333333; --line: #999999; --you: #f1f1f1; --accent: #3a2bb4; --accent-soft: #eeecfa; --wash: #ffffff; --lift: none; --band: transparent; --band-2: transparent; --band-ink: #000000; --band-muted: #333333; }
  body, body.experts .top { background: none; }
  .card, .door, .case, .gauge-box { border-color: var(--line); }
}

/* The ROPA Builder (decision P37, slice 1): where each line of the record stands. Presumed is drawn in the warning
   colour, so that nothing presumed reads as decided; decided in the accent; not carried in the quiet grey. */
.mark.rd-presumed { background: var(--warn-soft); color: var(--warn); }
.mark.rd-decided { background: var(--accent-soft); color: var(--accent); }
.mark.rd-off { background: var(--you); color: var(--muted); }
table.rd-coverage td { white-space: nowrap; }
@media (min-width: 40rem) { table.rd-entries td:first-child { min-width: 14rem; } }
fieldset.rd-choice { border: 0; padding: 0; margin: 0; }
fieldset.rd-choice legend { font-weight: 600; font-size: 0.92rem; padding: 0; }
/* The ROPA Builder's slice 2 (P38): a person's answer, and each question on the person's page. */
.mark.rd-told { background: var(--you); color: var(--fg); border: 1px solid var(--line); }
.mark.rd-differs { background: var(--bad-soft); color: var(--bad); }
.mark.rd-evidenced { background: var(--accent-soft); color: var(--fg); border: 1px dashed var(--accent); }
/* Slice 5, part two: a country pack's sources are long web addresses, so they break where they must. */
.rd-sources dd { overflow-wrap: anywhere; }
ol.quotes blockquote { margin: 0.25rem 0 0.75rem; padding: 0.25rem 0.75rem; border-left: 3px solid var(--line); }
pre.kept-words { white-space: pre-wrap; max-height: 30rem; overflow: auto; }
fieldset.rd-ask { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
fieldset.rd-ask legend { float: left; width: 100%; margin-bottom: 8px; }
/* The ROPA Builder's slice 3 (P40): a form on one line, and the match on a case's page. */
form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rd-match { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
/* The assessment modules' slice 1: each risk's four ratings side by side, each with its label; two columns on a phone. */
.as-ratings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.as-ratings label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) { .as-ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The Notice Library (slice 1, "Review and keep", on the side line notice-modules): a finding's mark and edge. Missing in
   the bad colour, partly met in the warning colour, met in the accent; a notice as found in the warning colour. */
.mark.nl-missing, .mark.nl-not { background: var(--bad-soft); color: var(--bad); }
.mark.nl-partly, .mark.nl-found { background: var(--warn-soft); color: var(--warn); }
.mark.nl-met, .mark.nl-covered, .mark.nl-reviewed { background: var(--accent-soft); color: var(--accent); }
.nl-finding { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.nl-finding p { margin: 0; }
.nl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
a.button-link { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 10px 18px; font-weight: 600; text-decoration: none; }

/* The Notice Builder (slice 2): a field for one kind of answer shows once that answer is chosen, by the style sheet
   alone; a point's form folds behind "Decide"; a draft's own words. */
.nl-cond .nl-if-interests, .nl-cond .nl-if-consent, .nl-cond .nl-if-yes { display: none; }
.nl-cond input[value="interests"]:checked ~ .nl-if-interests,
.nl-cond input[value="consent"]:checked ~ .nl-if-consent,
.nl-cond input[value="yes"]:checked ~ .nl-if-yes { display: flex; }
details.nl-decide > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details.nl-decide[open] > summary { margin-bottom: 8px; }
.nl-draft h3 { margin: 0.6rem 0 0; }
.nl-draft p, .nl-draft li { margin: 0.25rem 0; }
.mark.nl-off { background: var(--you); color: var(--muted); }

/* The Notice Builder's slice 6, "peers' notices": each notice's finding on one item, one under another with a quiet
   edge; the table of how each notice reads; and each made-up peer's notice in its fold. */
.np-each { list-style: none; padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.np-each > li { border-left: 3px solid var(--line); padding-left: 10px; }
.np-each p { margin: 0; }
.np-measures caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.np-measures th[scope="row"] { text-align: left; font-weight: 600; }
details.np-peer > summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.np-text h3, .np-text h4 { margin: 0.6rem 0 0; }
.np-text p { margin: 0.25rem 0; }
/* The peer group (28 November 2026): its table, each peer's buttons under it, and the long addresses. */
.np-group caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.np-group th[scope="row"] { text-align: left; font-weight: 600; text-transform: none; letter-spacing: normal; font-size: inherit; color: inherit; }
.np-group th, .np-group td { padding-left: 6px; padding-right: 6px; white-space: normal; }
.np-address { min-width: 9rem; }
.np-address a { overflow-wrap: anywhere; }
.np-peer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.np-peer-actions p, .np-peer-actions form { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* ---- the Notice Builder's slice 5, "keeping notices alive": review dates and proposals to look again ---- */
.nc-line p { margin: 0.2rem 0; }
.mark.nc-reached, .mark.nc-kind { background: var(--warn-soft); color: var(--warn); }
.nc-list h2 { margin-top: 0; }
.nc-saw h3 { margin: 0.6rem 0 0; }
.nc-saw ul { margin: 0.2rem 0; }
dl.nc-finding { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 6px 16px; margin: 0; }
dl.nc-finding dt { font-weight: 600; }
dl.nc-finding dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { dl.nc-finding { grid-template-columns: 1fr; } dl.nc-finding dd { margin-bottom: 8px; } }

/* Notice Words, Second Round (28 November 2026): a linked DPIA's own words under a use's lawful basis. */
.nl-dpia-basis { margin: 8px 0 4px; padding: 4px 0 4px 10px; border-left: 3px solid var(--line); }
.nl-dpia-basis p { margin: 2px 0; }

/* technolex-doors (2 December 2026): the link back to the doors beside "Sign out", and the page's three doors. */
.account a.doors-link { color: var(--accent); }
body.experts .top a.doors-link { color: var(--band-ink); }
.doors button.door { display: block; width: 100%; text-align: left; background: var(--surface); color: var(--fg); border-color: var(--line); line-height: 1.5; }
.doors button.door:hover { border-color: var(--accent); }
.doors button.door strong { color: var(--accent); }
/* The video above the doors (2 December 2026, Simon's ask): the full width of the column, never wider than the screen. */
.video { margin-bottom: 32px; }
.video h2 { margin-bottom: 12px; }
.video video { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #000; }
