/* The portal's work screen (mock-up approved by Hans on 11 November 2026).

   It sits on site.css, the website's own sheet (tokens and resets; its IBM Plex is no longer used: fonts.css holds
   Source Sans 3 and Source Code Pro, Hans 19 Nov 2026; the old note: ATOnsite is Plex Sans, CLMono is Plex Mono,
   both served from static/site/fonts) and its resets. Everything else is here: a calm, dense screen in grey and white,
   with colour only for status and the one primary button. Nothing is loaded from outside this server (the content
   security policy forbids it), and no style is written inside a page. */

/* ---- tokens ------------------------------------------------------------------------------------------------------ */
:root{
  /* The v3.0 look (reporting redesign DESIGN.md section 3, mock-up boards 1 and 2, approved by Hans on 3 Dec 2026):
     the same names with new values, so no template changes. Canvas, surface, subtle, text, text secondary, border. */
  --ct-ink:#172B3C; --ct-dim:#4B5D6E; --ct-faint:#56687A; --ct-line:#9DABBB; --ct-rule:#CBD5E1; --ct-rule-soft:#E2E8F0;
  --ct-ground:#F5F7FA; --ct-surface:#FFFFFF; --ct-sunk:#EDF2F6; --ct-link:#17677D; --ct-link-hover:#0F4F60;
  /* Status: the same meaning on every screen. Danger (High), warning, success. */
  --ct-red:#B42318; --ct-orange:#A34B06; --ct-green:#146B50; --ct-grey:#8A99A8;
  /* The one primary button: white on the link colour. */
  --ct-primary:#17677D; --ct-primary-hover:#0F5466; --ct-on-primary:#FFFFFF;
  /* The dark top bar. */
  --ct-bar:#0F2A3D; --ct-bar-ink:#FFFFFF; --ct-bar-dim:#B4C3D0; --ct-bar-link:#C9D5DF; --ct-bar-accent:#74D3E6;
  --ct-bar-field:#163548; --ct-bar-rule:#25445B;
  --ct-sans:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --ct-mono:"Source Code Pro",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* Text on a fill that is itself the colour of text (ink, a status colour): white here, the canvas in dark. */
  --ct-on-ink:#FFFFFF; --ct-on-sev:#FFFFFF;
  /* Tints and tags, each named for its role. */
  --ct-blue-bg:#E6F2F5; --ct-blue-bg-sel:#DCEEF2; --ct-blue-bg-soft:#E9F3F6; --ct-blue-line:#C3DEE6;
  --ct-blue-line-soft:#A8D0DC; --ct-blue-line-label:#9CC8D5; --ct-blue-edge:#8CC3D3; --ct-blue-ink:#0F4F60;
  --ct-blue-ink-pill:#135A6D; --ct-planned:#7CC4D8;
  --ct-amber-bg:#FDF0E1; --ct-amber-bg-soft:#FEF7EE; --ct-amber-bg-hover:#FCEAD5; --ct-amber-line:#EFC596;
  --ct-purple-bg:#EDE7F8; --ct-purple-bg-soft:#F3EEFB; --ct-purple-line:#C9B8EC; --ct-purple-line-soft:#D9CDF1;
  --ct-purple-ink:#4B2A8F; --ct-purple:#6A3FB8; --ct-purple-edge:#B49CE6;
  --ct-red-bg:#FCE9E6; --ct-red-line:#E8A79F; --ct-green-bg:#E3F3EC; --ct-green-bg-pill:#DBEFE5; --ct-green-line:#A9D7C2;
  --ct-green-ink:#0F5640; --ct-mark:#FFF0B3;
  --ct-sev-low:#1C5FA8; --ct-sev-accepted:#5E6E7E; --ct-sev-all:#172B3C; --ct-blue-dot:#1C5FA8; --ct-focus:#2563EB;
  /* Info (Low) and its tint, the code block, Critical (black with a red ring) and the tile's shadow (v3.0 look). */
  --ct-info:#1C5FA8; --ct-info-bg:#E5EFFA; --ct-code-bg:#F1F4F8; --ct-crit-bg:#111827; --ct-crit-ink:#FFFFFF;
  --ct-crit-ring:#E5372C; --ct-shadow:0 1px 2px rgba(23,43,60,.06);
  /* The left edges of sites 2 to 4 on Add a cluster. */
  --ct-site-2:#F2B886; --ct-site-3:#A8D5A2; --ct-site-4:#C9B6E4;
  --ct-pop-shadow:0 6px 20px rgba(15,42,61,.12); --ct-tip-shadow:0 8px 24px rgba(15,42,61,.35);
  --ct-gutter:24px; --ct-max:1440px; --ct-r:8px;
}
/* Dark and light mode (design of 15 Nov 2026, docs/v3/dark-mode.md). The portal follows the device, and the button in
   the top bar (static/js/theme.js) can turn it the other way; that choice sets data-theme on <html>. The same two
   blocks as site.css: the media block follows the device unless the button chose light, the attribute block follows
   the button. Dark is for the screen only: a page printed from a dark screen still prints light.

   site.css's own tokens first, light, on every :root, so its own dark blocks never mix its colours into the portal;
   the portal's dark blocks below give them their dark values. Report pages carry data-theme="light" and
   data-theme-fixed: they are made for print and for sending on, and stay light whatever the device says. */
:root,:root:not([data-theme="light"]),:root[data-theme="dark"]{
  color-scheme:light;
  --ink:#172B3C; --dim:#4B5D6E; --faint:#56687A; --rule:#CBD5E1; --ground:#F5F7FA; --surface:#FFFFFF; --sunk:#EDF2F6;
  --accent:#17677D; --accent-soft:#E9F3F6; --chip-ink:#FFFFFF; --high:#A34B06; --med:#A34B06; --low:#56687A;
  --geen:#146B50; --sans:var(--ct-sans); --serif:var(--ct-sans); --mono:var(--ct-mono);
}
/* Dark: every token above, and site.css's, in its dark value. The top bar goes from navy to near black (v3.0 look). */
@media screen and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --ct-ink:#E7EEF6; --ct-dim:#BAC8D7; --ct-faint:#9FAFC1; --ct-line:#5B728A; --ct-rule:#42576C; --ct-rule-soft:#2B3D52;
    --ct-ground:#0E1623; --ct-surface:#172333; --ct-sunk:#202F42; --ct-link:#74D3E6; --ct-link-hover:#A8E6F2;
    --ct-red:#FCA5A5; --ct-orange:#FDBA74; --ct-green:#79D9B0; --ct-grey:#6F8297;
    --ct-primary:#74D3E6; --ct-primary-hover:#A8E6F2; --ct-on-primary:#0E1623;
    --ct-on-ink:#0E1623; --ct-on-sev:#0E1623; --ct-bar:#0A111C; --ct-bar-field:#121D2B; --ct-bar-rule:#24364A;
    --ct-blue-bg:#14323F; --ct-blue-bg-sel:#173A49; --ct-blue-bg-soft:#14323F; --ct-blue-line:#24506A;
    --ct-blue-line-soft:#24506A; --ct-blue-line-label:#2B5D74; --ct-blue-edge:#74D3E6; --ct-blue-ink:#A8E6F2;
    --ct-blue-ink-pill:#A8E6F2; --ct-planned:#2F7F97;
    --ct-amber-bg:#3D2A14; --ct-amber-bg-soft:#33230F; --ct-amber-bg-hover:#3D2A14; --ct-amber-line:#7A531D;
    --ct-purple-bg:#211A3D; --ct-purple-bg-soft:#1D1736; --ct-purple-line:#4A3C85; --ct-purple-line-soft:#4A3C85;
    --ct-purple-ink:#C9B8F7; --ct-purple:#9273E6; --ct-purple-edge:#9273E6;
    --ct-red-bg:#44201F; --ct-red-line:#8A3A3E; --ct-green-bg:#17382F; --ct-green-bg-pill:#17382F; --ct-green-line:#2E6B55;
    --ct-green-ink:#9BE6C4; --ct-mark:#6B5600;
    --ct-sev-low:#93C5FD; --ct-sev-accepted:#A9B6C4; --ct-sev-all:#E7EEF6; --ct-blue-dot:#93C5FD; --ct-focus:#74D3E6;
    --ct-info:#93C5FD; --ct-info-bg:#1B3350; --ct-code-bg:#111C2A; --ct-crit-bg:#05080D; --ct-crit-ink:#FFFFFF;
    --ct-crit-ring:#FF5A4F; --ct-shadow:none;
    --ct-site-2:#B9763A; --ct-site-3:#4E9A47; --ct-site-4:#7F63B8;
    --ct-pop-shadow:0 6px 20px rgba(0,0,0,.5); --ct-tip-shadow:0 8px 24px rgba(0,0,0,.6);
    --ink:#E7EEF6; --dim:#BAC8D7; --faint:#9FAFC1; --rule:#42576C; --ground:#0E1623; --surface:#172333; --sunk:#202F42;
    --accent:#74D3E6; --accent-soft:#14323F; --chip-ink:#0E1623; --high:#FDBA74; --med:#FDBA74; --low:#9FAFC1;
    --geen:#79D9B0;
  }
}
@media screen{
  :root[data-theme="dark"]{
    color-scheme:dark;
    --ct-ink:#E7EEF6; --ct-dim:#BAC8D7; --ct-faint:#9FAFC1; --ct-line:#5B728A; --ct-rule:#42576C; --ct-rule-soft:#2B3D52;
    --ct-ground:#0E1623; --ct-surface:#172333; --ct-sunk:#202F42; --ct-link:#74D3E6; --ct-link-hover:#A8E6F2;
    --ct-red:#FCA5A5; --ct-orange:#FDBA74; --ct-green:#79D9B0; --ct-grey:#6F8297;
    --ct-primary:#74D3E6; --ct-primary-hover:#A8E6F2; --ct-on-primary:#0E1623;
    --ct-on-ink:#0E1623; --ct-on-sev:#0E1623; --ct-bar:#0A111C; --ct-bar-field:#121D2B; --ct-bar-rule:#24364A;
    --ct-blue-bg:#14323F; --ct-blue-bg-sel:#173A49; --ct-blue-bg-soft:#14323F; --ct-blue-line:#24506A;
    --ct-blue-line-soft:#24506A; --ct-blue-line-label:#2B5D74; --ct-blue-edge:#74D3E6; --ct-blue-ink:#A8E6F2;
    --ct-blue-ink-pill:#A8E6F2; --ct-planned:#2F7F97;
    --ct-amber-bg:#3D2A14; --ct-amber-bg-soft:#33230F; --ct-amber-bg-hover:#3D2A14; --ct-amber-line:#7A531D;
    --ct-purple-bg:#211A3D; --ct-purple-bg-soft:#1D1736; --ct-purple-line:#4A3C85; --ct-purple-line-soft:#4A3C85;
    --ct-purple-ink:#C9B8F7; --ct-purple:#9273E6; --ct-purple-edge:#9273E6;
    --ct-red-bg:#44201F; --ct-red-line:#8A3A3E; --ct-green-bg:#17382F; --ct-green-bg-pill:#17382F; --ct-green-line:#2E6B55;
    --ct-green-ink:#9BE6C4; --ct-mark:#6B5600;
    --ct-sev-low:#93C5FD; --ct-sev-accepted:#A9B6C4; --ct-sev-all:#E7EEF6; --ct-blue-dot:#93C5FD; --ct-focus:#74D3E6;
    --ct-info:#93C5FD; --ct-info-bg:#1B3350; --ct-code-bg:#111C2A; --ct-crit-bg:#05080D; --ct-crit-ink:#FFFFFF;
    --ct-crit-ring:#FF5A4F; --ct-shadow:none;
    --ct-site-2:#B9763A; --ct-site-3:#4E9A47; --ct-site-4:#7F63B8;
    --ct-pop-shadow:0 6px 20px rgba(0,0,0,.5); --ct-tip-shadow:0 8px 24px rgba(0,0,0,.6);
    --ink:#E7EEF6; --dim:#BAC8D7; --faint:#9FAFC1; --rule:#42576C; --ground:#0E1623; --surface:#172333; --sunk:#202F42;
    --accent:#74D3E6; --accent-soft:#14323F; --chip-ink:#0E1623; --high:#FDBA74; --med:#FDBA74; --low:#9FAFC1;
    --geen:#79D9B0;
  }
}

/* ---- page -------------------------------------------------------------------------------------------------------- */
body.portal{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--ct-ground);color:var(--ct-ink);
  font-family:var(--ct-sans);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-wrap:normal;word-break:normal;hyphens:manual}
.portal a{color:var(--ct-link)}
.portal a:hover{color:var(--ct-link-hover)}
.ct-main{flex:1 0 auto;width:100%;max-width:var(--ct-max);margin:0 auto;padding:20px var(--ct-gutter) 28px;
  display:flex;flex-direction:column;gap:16px}
/* The type scale of the v3.0 look: 28 page title, 20 section, 16 sub-head, 15 body, 13 secondary, 12 table head. */
.ct-main h1{margin:0;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:0}
.ct-main h2{margin:0;font-size:20px;font-weight:700;line-height:1.3}
.ct-main h3{margin:0;font-size:16px;font-weight:700;line-height:1.3}
.ct-main p{margin:0}
.ct-hide{position:absolute;left:-9999px}
.mono{font-family:var(--ct-mono);font-variant-numeric:tabular-nums}
.num{font-family:var(--ct-mono);font-variant-numeric:tabular-nums;text-align:right}
.muted,.dim{color:var(--ct-faint)}
.sans{font-family:var(--ct-sans)}
.small{font-size:13px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.spread{justify-content:space-between;align-items:baseline}
form{margin:0}

/* ---- top bar ----------------------------------------------------------------------------------------------------- */
.ct-top{background:var(--ct-bar);color:var(--ct-bar-ink);display:flex;align-items:center;flex-wrap:wrap;gap:4px 24px;
  padding:0 var(--ct-gutter);min-height:48px;
  position:sticky;top:0;z-index:50}
/* The top bar stays on screen while the page scrolls, so Clusters, Risks, Reports and the menu are always one click
   away (Hans, 16 Nov 2026). Jumps to an anchor and the sticky bulk bar on the release desk stop below it. */
html{scroll-padding-top:var(--ct-top-h)}
:root{--ct-top-h:56px}
/* A phone must not "dance" (Hans, 16 Nov 2026): pulling the page down, left or right showed white space around it.
   No rubber band and no pull to refresh on the page itself, nothing wider than the screen to slide sideways to, and
   the ground colour behind the page in case a browser still bounces (white in dark mode was the worst of it). */
html{background:var(--ct-ground);overscroll-behavior:none}
body.portal{overflow-x:clip;overscroll-behavior:none}
.portal .ct-mark{color:#FFFFFF;text-decoration:none;font-weight:600;font-size:16px;padding:8px 0;white-space:nowrap;
  display:inline-flex;align-items:center;gap:8px}
/* The ClusterTriage logo (Hans, 20 Nov 2026): the icon and the two-tone word, on a phone too, where the first row has
   room beside the theme switch and the menu; the menu items go on the row below. */
.portal .ct-mark img{display:block;width:26px;height:26px;flex:none}
.portal .ct-mark-w span{color:var(--ct-bar-accent)}
.portal .ct-mark-w .ct-mark-p{color:var(--ct-bar-ink);font-weight:400}
.portal .ct-mark:hover{color:#FFFFFF}
.ct-menu{display:flex;gap:4px;flex:1 1 auto;min-width:0}
.portal .ct-menu a{color:var(--ct-bar-link);text-decoration:none;padding:13px 12px 10px;border-bottom:3px solid transparent;
  white-space:nowrap}
.portal .ct-menu a:hover{color:#FFFFFF}
.portal .ct-menu a[aria-current="page"]{color:#FFFFFF;border-bottom-color:var(--ct-bar-accent);font-weight:500}
.ct-search input{background:var(--ct-bar-field);border:1px solid var(--ct-bar-rule);border-radius:6px;height:32px;
  padding:0 10px;color:var(--ct-bar-ink);font:inherit;width:170px}
.ct-search input::placeholder{color:var(--ct-bar-dim)}
.ct-search input:focus{outline:2px solid var(--ct-bar-accent);outline-offset:1px}
.ct-who{display:flex;gap:12px;align-items:center;white-space:nowrap}
.ct-org{color:var(--ct-bar-ink)}
.ct-user{color:var(--ct-bar-dim)}
.portal .ct-who a{color:var(--ct-bar-ink);text-decoration:none}
.ct-out button{background:transparent;border:0;color:var(--ct-bar-dim);font:inherit;cursor:pointer;padding:6px 0}
.ct-out button:hover{color:#FFFFFF;text-decoration:underline}
/* The dark and light switch (static/js/theme.js): one icon button, a moon in light (goes dark), a sun in dark. */
.ct-theme{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:6px;
  background:transparent;color:var(--ct-bar-link);cursor:pointer;flex:none}
.ct-theme:hover{color:#FFFFFF;background:#ffffff1a}
.ct-theme:focus-visible{outline:2px solid var(--ct-bar-accent);outline-offset:1px}
.ct-theme .i-sun{display:none}
/* A report page stays light (data-theme-fixed, see the dark mode tokens above), so it has nothing to switch. */
[data-theme-fixed] .ct-theme{display:none}

/* ---- the language switch: EN NL DE (clustertriage/ui_lang.py; mock-up portal-mockup/ui-languages) ---------------- */
/* Three short buttons in one frame, as high as the search field (32 px). The language in use is the lit one. */
.ct-lang{display:inline-flex;flex:none;gap:2px;margin:0;padding:2px;border:1px solid var(--ct-bar-rule);border-radius:6px}
.ct-lang button{display:inline-grid;place-items:center;width:auto;min-width:30px;height:26px;padding:0 6px;border:0;
  border-radius:4px;background:transparent;color:var(--ct-bar-link);font:600 12px/1 var(--ct-sans);letter-spacing:.04em;
  cursor:pointer}
.ct-lang button:hover{color:#FFFFFF;background:#ffffff1a}
.ct-lang button[aria-pressed="true"]{color:#FFFFFF;background:var(--ct-bar-rule);cursor:default}
.ct-lang button:focus-visible{outline:2px solid var(--ct-bar-accent);outline-offset:1px}
/* Signed out it stands in the bar just left of the sun/moon: the two "how the portal looks to me" switches. */
/* margin-left:auto keeps the pair at the right, where no menu fills the row. */
.ct-top>.ct-lang{margin-left:auto;margin-right:-12px}
/* Signed in it is the first row of the settings menu, at every width (Hans, 26 Nov 2026: "in the hamburger"). */
.ct-ham-lang{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;
  border-bottom:1px solid var(--ct-bar-rule);color:var(--ct-bar-dim)}
.ct-ham-box .ct-lang button{flex-direction:row;width:auto;min-width:44px;height:32px;padding:0 8px;border-left:0;
  font:600 13px/1 var(--ct-sans);color:var(--ct-bar-link)}
.ct-ham-box .ct-lang button:hover{border-left:0;background:#ffffff1a}
.ct-ham-box .ct-lang button[aria-pressed="true"]{color:#FFFFFF;background:var(--ct-bar-rule)}
@media (max-width:720px){
  /* Signed out the phone bar is almost empty (logo, sun/moon), so the switch stays in it, at the right. */
  .ct-top>.ct-lang{margin:0 6px 0 auto}
  .ct-top>.ct-lang+.ct-theme{margin-left:0}
  .ct-top>.ct-lang button{min-width:34px;height:30px}
}

/* ---- footer: one grey line --------------------------------------------------------------------------------------- */
.ct-foot{font-size:12px;color:var(--ct-faint);padding:10px var(--ct-gutter);border-top:1px solid var(--ct-rule-soft)}
.portal .ct-foot a{color:var(--ct-faint)}

/* ---- buttons ----------------------------------------------------------------------------------------------------- */
.portal .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;
  padding:6px 12px;min-height:32px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);
  color:var(--ct-link);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;transform:none;white-space:nowrap}
.portal .btn:hover{border-color:var(--ct-link);color:var(--ct-link-hover);transform:none}
.portal .btn.primary{background:var(--ct-primary);border-color:var(--ct-primary);color:var(--ct-on-primary)}
.portal .btn.primary:hover{background:var(--ct-primary-hover);border-color:var(--ct-primary-hover);color:var(--ct-on-primary)}

/* ---- status ------------------------------------------------------------------------------------------------------ */
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--ct-grey);flex:none}
.dot.red{background:var(--ct-red)} .dot.orange{background:var(--ct-orange)} .dot.green{background:var(--ct-green)}
.c-red{color:var(--ct-red)} .c-orange{color:var(--ct-orange)} .c-green{color:var(--ct-green)} .c-ink{color:var(--ct-ink)}
.strong-num{font-weight:600}

/* ---- counters ---------------------------------------------------------------------------------------------------- */
.counters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
/* The one tile of the v3.0 look: the label on top, the number under it. */
.portal .counter{display:flex;flex-direction:column;gap:0;background:var(--ct-surface);border:1px solid var(--ct-rule);
  border-radius:var(--ct-r);padding:12px 16px;text-decoration:none;color:var(--ct-ink);box-shadow:var(--ct-shadow)}
.portal .counter:hover{border-color:var(--ct-line);color:var(--ct-ink)}
.counter .n{font-family:var(--ct-sans);font-size:30px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}
.counter .l{order:-1;font-size:13px;font-weight:600;color:var(--ct-dim)}

/* ---- segmented switches (staff) ---------------------------------------------------------------------------------- */
.switches{display:flex;flex-wrap:wrap;gap:8px 24px;align-items:center}
.switch{display:flex;align-items:center;gap:8px}
.switch>span{font-size:12px;color:var(--ct-faint)}
.seg{display:flex;border:1px solid var(--ct-line);border-radius:6px;overflow:hidden}
.portal .seg a{padding:6px 12px;min-height:32px;box-sizing:border-box;text-decoration:none;color:var(--ct-dim);
  background:var(--ct-surface);white-space:nowrap}
.portal .seg a[aria-current="true"]{background:var(--ct-ink);color:var(--ct-on-ink);font-weight:600}

/* ---- the clusters list ------------------------------------------------------------------------------------------- */
/* One grid for the head and every row, so the columns line up. The last column is fixed: every next-step button
   fills it, centred and on one line, so all buttons have the same width (Hans, 11 Nov 2026). */
.cl-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow-x:auto;font-size:14px}
.cl-grid{display:grid;grid-template-columns:28px minmax(110px,1fr) 92px minmax(90px,1fr) 96px minmax(190px,1.6fr) 56px 56px
  56px 104px 84px 56px 156px;align-items:center;gap:0 8px;padding:0 12px;min-width:1290px;box-sizing:border-box}
.cl-phone-label{display:none}
.cl-not{display:block;font-family:var(--ct-sans);font-size:12px;color:var(--ct-faint)}
.cl-head{height:38px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ct-dim);
  background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule)}
.cl-head .num{font-family:var(--ct-sans)}
.nowrap{white-space:nowrap}
.cl-row{min-height:44px;border-bottom:1px solid var(--ct-rule-soft);color:var(--ct-dim)}
.cl-row:last-child{border-bottom:0}
.cl-row>.dot{justify-self:center}
.cl-name{display:flex;flex-direction:column;min-width:0}
.portal .cl-name a{font-weight:600;text-decoration:none;color:var(--ct-ink)}
.cl-name small{font-size:12px;color:var(--ct-faint)}
.portal .cl-row .loc{text-decoration:none;color:var(--ct-dim)}
.cl-date{font-family:var(--ct-mono);font-size:13px;white-space:nowrap}
.cl-group{display:flex;align-items:center;gap:12px;padding:0 12px;height:34px;background:var(--ct-sunk);
  border-bottom:1px solid var(--ct-rule);font-weight:600;min-width:1080px;box-sizing:border-box}
.cl-group small{font-weight:400;color:var(--ct-faint);font-size:12px}
.portal .next{justify-self:stretch;width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legend{font-size:13px;color:var(--ct-faint)}
.ct-empty{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);padding:16px}

/* Under 720px the rows become cards, as in the phone mock-up: a status stripe on the left, the name, one line of
   counts and dates, and the next-step button across the full width of the card. */
@media (max-width:720px){
  /* One row of 52 px on a phone (Hans, 21 Nov 2026, mock-up "Portal on phones"): the logo mark, the menu items, the
     search icon and the settings menu. The words of the logo, the user and the theme switch leave the bar. */
  :root{--ct-gutter:16px;--ct-top-h:52px}
  body.portal{font-size:15px}
  .ct-top{flex-wrap:nowrap;gap:0 2px;padding:0 8px;min-height:52px}
  .portal .ct-mark{flex:none;padding:0 2px 0 0}
  .portal .ct-mark-w{display:none}
  .ct-menu{flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}
  .ct-menu::-webkit-scrollbar{display:none}
  .portal .ct-menu a{padding:15px 5px 12px}
  .ct-search{display:none}
  .ct-who{margin-left:auto}
  .ct-org{display:none}
  .counters{grid-template-columns:1fr 1fr;gap:8px}
  .portal .counter{flex-direction:column;gap:0;padding:8px 12px}
  .counter .l{font-size:13px}
  .cl-list{background:transparent;border:0;overflow:visible;display:flex;flex-direction:column;gap:8px}
  .cl-grid.cl-head{display:none}
  .cl-name small{display:none}
  .cl-row>.c-sites{display:none}
  .cl-phone-label{display:inline}
  .cl-grid{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:12px}
  .cl-row{background:var(--ct-surface);border:1px solid var(--ct-rule);border-left:4px solid var(--ct-grey);
    border-radius:var(--ct-r)}
  .cl-row:last-child{border-bottom:1px solid var(--ct-rule)}
  .cl-row.red{border-left-color:var(--ct-red)} .cl-row.orange{border-left-color:var(--ct-orange)}
  .cl-row.green{border-left-color:var(--ct-green)}
  .cl-row>.dot,.cl-row>.c-storage,.cl-row>.c-sev,.cl-row>.c-last,.cl-row>.c-next,.cl-row>.c-change{display:none}
  .cl-name{grid-column:1/-1}
  .portal .cl-name a{font-size:16px}
  .cl-row>.loc,.cl-row>.c-type{font-size:13px;color:var(--ct-faint)}
  .cl-row>.c-type{justify-self:end}
  .cl-row>.c-phone{display:block;grid-column:1/-1;font-size:13px}
  .portal .next{grid-column:1/-1;min-height:44px;padding:10px 12px}
  .cl-group{min-width:0;background:transparent;border:0;padding:8px 0 0;height:auto;flex-wrap:wrap}
}
@media (min-width:721px){.c-phone{display:none}}

/* ---- panels, facts, tables (other pages) ------------------------------------------------------------------------- */
.panel{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);padding:16px}
.grid2{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:820px){.grid2{grid-template-columns:minmax(0,1fr)}}
dl.facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 16px;margin:0}
dl.facts dt{color:var(--ct-faint)}
dl.facts dd{margin:0}
.eyebrow{font-size:13px;font-weight:400;color:var(--ct-faint);text-transform:none;letter-spacing:0;margin:0}
.eyebrow::before{display:none}
.tagline{font-size:13px;padding:1px 10px;border:1px solid var(--ct-rule);border-radius:999px;color:var(--ct-dim);background:var(--ct-surface);
  white-space:nowrap}
.state{display:inline-flex;align-items:center;gap:6px}
/* Whose result (release desk, measurements/_customer_mark.html): Real in red, Test and Demo in grey; one line high. */
.cmark{display:inline-block;font-size:11px;font-weight:700;line-height:16px;padding:0 6px;margin:0 4px;border-radius:999px;
  vertical-align:middle;white-space:nowrap;letter-spacing:.02em;text-transform:uppercase}
.cmark-real{color:var(--ct-red);background:var(--ct-red-bg);border:1px solid var(--ct-red-line)}
.cmark-test{color:var(--ct-dim);background:var(--ct-surface);border:1px solid var(--ct-rule)}
.dr-org{font-size:.6em;font-weight:600;color:var(--ct-dim);white-space:nowrap}
.state::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ct-grey)}
.state.ok::before{background:var(--ct-green)} .state.wait::before{background:var(--ct-orange)}
.state.bad::before{background:var(--ct-red)}
.tbl{overflow-x:auto}
/* The one table of the v3.0 look: a head in small capitals on the subtle colour, rows parted by a hairline. */
.portal table{border-collapse:collapse;width:100%;font-size:14px}
.portal th{text-align:left;font-weight:600;color:var(--ct-dim);font-size:12px;letter-spacing:.04em;text-transform:uppercase;
  padding:9px 12px;background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule)}
.portal td{padding:9px 12px;border-bottom:1px solid var(--ct-rule-soft);vertical-align:top}
.portal td a,.portal .list-row a,.portal .cl-row a{text-decoration:none}
.portal td a:hover,.portal .list-row a:hover,.portal .cl-row a:hover{text-decoration:underline}
.portal tr:last-child td{border-bottom:0}
.cl-table{table-layout:fixed}
.cl-table .c-name{width:20%}.cl-table .c-type{width:24%}.cl-table .c-storage{width:34%}.cl-table .c-upload{width:22%}
@media (max-width:700px){.cl-table{table-layout:auto}}
.portal a.strong{font-weight:600;text-decoration:none}
.portal a.strong:hover{text-decoration:underline}
.loc-link{color:var(--ct-ink)!important;text-decoration:none}

/* Where you are: organisation, location, cluster, each a link back. */
/* The path bar: where you are, and every step back is a link. The same on every page below a menu item. */
.crumbs,.path{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;font-size:15px;font-weight:600;
  background:var(--ct-surface);border:1px solid var(--ct-rule);border-left:4px solid var(--ct-bar-accent);
  border-radius:6px;padding:7px 12px;margin-bottom:6px}
.portal .crumbs a,.portal .path a{text-decoration:none;color:var(--ct-link);padding:2px 6px;border-radius:4px}
.portal .crumbs a:hover,.portal .path a:hover{background:var(--ct-blue-bg);text-decoration:underline}
.crumbs>*+*::before{content:"\203A";color:var(--ct-faint);margin:0 8px 0 2px;font-weight:400}
.crumbs [aria-current="page"]{color:var(--ct-ink);padding:2px 6px}
.portal .crumbs a+a::before,.portal .crumbs a+span::before{display:inline-block;text-decoration:none}

/* ---- forms ------------------------------------------------------------------------------------------------------- */
form.signup{display:grid;gap:14px}
.portal label{font-size:14px;font-weight:500;color:var(--ct-ink);display:grid;gap:6px}
.portal input[type=text],.portal input[type=email],.portal input[type=tel],.portal input[type=number],.portal input[type=file],
.portal select{font:inherit;font-size:16px;
  padding:8px 10px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);
  width:100%;box-sizing:border-box}
.portal input[type=text]:focus,.portal input[type=email]:focus,.portal input[type=tel]:focus,
.portal input[type=number]:focus,.portal select:focus{outline:2px solid var(--ct-primary);
  outline-offset:1px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.two{grid-template-columns:1fr}}
.portal label.check{display:flex;gap:10px;align-items:flex-start;font-weight:400}
.check input{margin-top:4px}
/* Add a cluster: Single-Site or Multi-Site, and the locations with their nodes (templates/clusters/add.html) */
.ms-mode{display:flex;align-items:center;gap:10px;flex-wrap:wrap;position:relative}
.ms-label{font-size:14px;font-weight:500;color:var(--ct-ink)}
.seg-radio label{display:flex;flex-direction:row;align-items:center;gap:0;font-weight:500;cursor:pointer}
.seg-radio input{position:absolute;opacity:0;width:1px;height:1px}
.seg-radio span{padding:6px 14px;min-height:32px;box-sizing:border-box;display:flex;align-items:center;color:var(--ct-dim)}
.seg-radio label+label span{border-left:1px solid var(--ct-line)}
.seg-radio input:checked+span{background:var(--ct-primary);color:#FFFFFF}
.seg-radio input:focus-visible+span{outline:2px solid var(--ct-primary);outline-offset:-3px}
.ms-site{display:grid;gap:10px}
.ms-site.on,.ms-more{border-left:4px solid var(--ct-blue-edge);padding:10px 0 10px 12px;background:var(--ct-sunk);border-radius:0 6px 6px 0}
#ms-2{border-left-color:var(--ct-site-2)}#ms-3{border-left-color:var(--ct-site-3)}#ms-4{border-left-color:var(--ct-site-4)}
.ms-n{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ct-ink);color:var(--ct-on-ink);
  font-size:12px;font-weight:600;margin-right:8px}
#ms-main:not(.on) .ms-n{display:none}
.portal .ms-site textarea{min-height:0;resize:vertical}
.fixed-field p{margin:0;padding:8px 10px;border:1px dashed var(--ct-line);border-radius:6px;color:var(--ct-ink)}
/* The one note box of the v3.0 look: the subtle colour with a bar on the left; .notice is its warning form. */
.callout{background:var(--ct-sunk);border-left:4px solid var(--ct-link);border-radius:0 6px 6px 0;padding:10px 14px}
.notice{border-left:4px solid var(--ct-orange);padding-left:10px}
.errorlist{color:var(--ct-red);font-size:13px;margin:0;padding-left:18px}
.portal input[type=tel],.portal input[type=datetime-local],.portal textarea{font:inherit;font-size:16px;padding:8px 10px;
  border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);width:100%;
  box-sizing:border-box}
.portal textarea{resize:vertical;min-height:5.5em}
.portal input[type=tel]:focus,.portal input[type=datetime-local]:focus,.portal textarea:focus{
  outline:2px solid var(--ct-primary);outline-offset:1px}
.portal .help{font-size:12px;font-weight:400;color:var(--ct-faint)}
/* A question with its answers as radio buttons (Django's RadioSelect: a div of divs, each a label around an input). */
.portal fieldset.choices{border:0;margin:0;padding:0;display:grid;gap:6px}
.portal fieldset.choices legend{font-size:14px;font-weight:500;color:var(--ct-ink);padding:0;margin-bottom:6px}
.portal fieldset.choices label{display:flex;gap:10px;align-items:center;font-weight:400;padding:7px 10px;
  border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);cursor:pointer}
.portal fieldset.choices label:has(input:checked){border-color:var(--ct-primary);background:var(--ct-blue-bg)}
.portal fieldset.choices > div{display:grid;gap:6px}

/* ---- incidents and ClusterDown (incidents/) --------------------------------------------------------------------- */
.cd-down{border-left:4px solid var(--ct-red)}
.cd-down h2{color:var(--ct-red)}
ol.cd-steps{margin:0;padding-left:20px;display:grid;gap:6px}
ol.cd-steps li::marker{font-weight:600;color:var(--ct-primary)}
.cd-step{display:grid;gap:8px}
.cd-signin{margin:0;font-weight:600}
.cd-signin a{color:var(--ct-primary)}
form.cd-where{display:grid;gap:10px}
form.cd-where label.opt{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--ct-line);border-radius:8px;cursor:pointer}
form.cd-where label.opt:has(input:checked){border-color:var(--ct-primary)}
.cd-step h2 .n{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;margin-right:8px;
  background:var(--ct-primary);color:var(--ct-on-primary);font-size:13px;font-weight:600;vertical-align:1px}
.cd-said{white-space:pre-wrap;margin:0}

/* ---- upload ------------------------------------------------------------------------------------------------------ */
.drop{border:2px dashed var(--ct-line);border-radius:var(--ct-r);padding:24px 16px;text-align:center;background:var(--ct-sunk)}
.drop .big{font-weight:600}
.checks{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.checks li{display:grid;grid-template-columns:1.4rem minmax(0,1fr) auto;gap:8px;align-items:baseline}
.checks .ic{font-family:var(--ct-mono);font-weight:500}
.checks .ok{color:var(--ct-green)} .checks .bad{color:var(--ct-red)}
.checks .run{color:var(--ct-orange)} .checks .todo{color:var(--ct-faint)}
.checks li.todo span{color:var(--ct-faint)}
/* The one code style of the v3.0 look. */
.code{font-family:var(--ct-mono);font-size:13px;background:var(--ct-code-bg);border:1px solid var(--ct-rule);border-radius:6px;padding:4px 8px}
.portal code{font-family:var(--ct-mono);font-size:13px;background:var(--ct-code-bg);padding:1px 5px;border-radius:4px}
.portal pre{font-family:var(--ct-mono);font-size:13px;line-height:1.55;background:var(--ct-code-bg);border:1px solid var(--ct-rule);
  border-radius:6px;padding:10px 12px;white-space:pre-wrap;margin:0}
.portal pre code{background:none;padding:0}

/* ---- activity timeline ------------------------------------------------------------------------------------------- */
.tl{list-style:none;margin:0;padding:0;border-left:2px solid var(--ct-rule);display:grid;gap:10px}
.tl li{position:relative;padding-left:14px}
.tl li::before{content:"";position:absolute;left:-6px;top:6px;width:10px;height:10px;border-radius:50%;
  background:var(--ct-surface);border:2px solid var(--ct-grey)}
.tl time{font-family:var(--ct-mono);font-size:12px;color:var(--ct-faint);display:block}

/* Staff activity record (Hans, 24 Nov 2026): tight rows, smaller font, every column only as wide as its content and never
   wrapped (a cluster name shows in full), What takes the rest of the width on one line; the full text is in its title. */
.act-table th,.act-table td{padding:4px 8px;white-space:nowrap;width:1%}
.act-table td{font-size:13px;line-height:1.35}
.act-table td.mono{font-size:12px}
.act-table .act-what{width:auto}
.act-table td.act-what{max-width:0;overflow:hidden;text-overflow:ellipsis}
/* Staff Activity sections (Hans, 26 Nov 2026: "Make Activity collapsable"): Stalled, Record and Blocked addresses
   fold open and shut on their heading; Blocked addresses sits last and starts shut. */
details.act-sec>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}
details.act-sec>summary::-webkit-details-marker{display:none}
details.act-sec>summary::before{content:"";width:0;height:0;border-left:6px solid var(--ct-link);border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .12s}
details.act-sec[open]>summary::before{transform:rotate(90deg)}
details.act-sec>summary h2{margin:0}
details.act-sec{margin:20px 0 0}
details.act-sec[open]>summary{margin-bottom:10px}
.act-n{font-family:var(--ct-mono);font-size:13px;font-weight:500;color:var(--ct-dim);margin-left:4px}
/* Block and Unblock for ticked addresses: a box before each address, one button per list. */
.portal .act-table .act-tick{display:inline-flex;align-items:center;gap:6px;cursor:pointer;margin:0;font:inherit;color:inherit;line-height:inherit;height:17px}
.portal .act-table .act-tick input{margin:0;width:13px;height:13px;min-height:0;padding:0}
.switches .act-many{margin-left:auto}
/* Kind colour in the record (activity/views.py level): green normal, orange needs attention, red malicious. */
.act-table .act-kind .dot{width:8px;height:8px;margin-right:6px;vertical-align:1px}
.act-table .act-kind.red{color:var(--ct-red)} .act-table .act-kind.orange{color:var(--ct-orange)}
.act-table .btn.act-btn{padding:0 8px;min-height:0;font-size:12px;line-height:20px}
.act-table form{margin:0}
.act-many .act-n:empty{display:none}
form.act-many{margin:8px 0}
@media (max-width:720px){.act-table td.act-what{max-width:22em;min-width:22em}}

/* ---- the cluster page -------------------------------------------------------------------------------------------- */
.cp-head{align-items:flex-start}
.cp-title{gap:4px}
.cp-name{gap:10px}
.dot.big{width:12px;height:12px}
.cp-facts{display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--ct-dim)}
.portal .cp-facts a{text-decoration:none}
.cp-conn{gap:6px;align-items:center} .cp-conn select{min-height:28px}
.cp-actions{gap:8px}
.cp-position{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;background:var(--ct-surface);
  border:1px solid var(--ct-rule);border-radius:var(--ct-r);padding:10px 14px}
.cp-position strong{font-weight:600}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--ct-rule);overflow-x:auto}
.portal .tabs a{padding:8px 14px;min-height:40px;box-sizing:border-box;display:flex;align-items:center;gap:6px;
  text-decoration:none;color:var(--ct-dim);font-weight:600;border-bottom:3px solid transparent;white-space:nowrap}
.portal .tabs a[aria-current="page"]{color:var(--ct-ink);border-bottom-color:var(--ct-link)}

/* Risk labels: the report's severity palette. Critical is black with a red ring, as in the reports. */
.labels{gap:8px}
.portal .label-filter{display:flex;align-items:center;gap:8px;min-height:32px;padding:4px 10px 4px 4px;box-sizing:border-box;
  border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);text-decoration:none}
.portal .label-filter[aria-current="true"]{background:var(--ct-blue-bg-sel);border-color:var(--ct-primary)}
/* The one badge of the v3.0 look: the level's colour as text and rim on its own tint. Critical stays black with a red
   ring. An accepted finding keeps its own level, with a dashed rim, so the original risk stays visible (Hans, 13 Nov
   2026; v3.0 look, 3 Dec 2026). */
.sev{display:inline-block;background:var(--ct-sunk);color:var(--ct-dim);border:1.5px solid var(--ct-grey);border-radius:4px;
  padding:0 8px;font-size:12.5px;line-height:1.5;font-weight:700;white-space:nowrap}
.sev.critical{background:var(--ct-crit-bg);color:var(--ct-crit-ink);border-color:var(--ct-crit-ring)}
.sev.high{background:var(--ct-red-bg);color:var(--ct-red);border-color:var(--ct-red)}
.sev.medium{background:var(--ct-amber-bg);color:var(--ct-orange);border-color:var(--ct-orange)}
.sev.low{background:var(--ct-info-bg);color:var(--ct-info);border-color:var(--ct-info)}
.sev.fixed{background:var(--ct-green-bg);color:var(--ct-green);border-color:var(--ct-green)}
.sev.accepted{background:transparent;color:var(--ct-dim);border-color:var(--ct-sev-accepted);border-style:dashed}
.sev.all{background:var(--ct-sev-all);color:var(--ct-on-ink);border-color:var(--ct-sev-all)}
.sev.was{background:transparent;border-style:dashed}
/* Column sorting (static/js/sort-table.js): the header becomes a button with an arrow for the sorted column. */
.th-sort{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font:inherit;color:inherit}
.th-sort:hover{color:var(--ct-ink);text-decoration:underline}
.th-sort:focus-visible{outline:2px solid var(--ct-focus);outline-offset:2px;border-radius:2px}
[aria-sort="ascending"] .th-sort::after{content:"\25B2";font-size:.7em}
[aria-sort="descending"] .th-sort::after{content:"\25BC";font-size:.7em}

/* Work in hand and the timeline bars are SVG, so their widths are attributes, not styles. */
.work{gap:8px 16px}
.key{display:inline-block;width:8px;height:8px;border-radius:2px;vertical-align:middle;box-sizing:border-box}
.w-progress{fill:var(--ct-primary);background:var(--ct-primary)}
.w-planned{fill:var(--ct-planned);background:var(--ct-planned)}
.w-rest{fill:var(--ct-rule-soft);background:var(--ct-rule-soft)}
.key.w-rest{border:1px solid var(--ct-line)}
.s-critical{fill:#0A1024;background:#0A1024;stroke:#FF3B30;stroke-width:2px;box-shadow:inset 0 0 0 1.5px #FF3B30}
rect.s-critical{clip-path:inset(0 round 3px)}
.s-high{fill:var(--ct-red);background:var(--ct-red)}
.s-medium{fill:#E8870E;background:#E8870E} .s-low{fill:#4C8FD6;background:#4C8FD6}
.key.s-critical,.key.s-high,.key.s-medium,.key.s-low{width:10px;height:10px}
.work-bar,.t-bar{display:block;max-width:100%}

/* Lists on the cluster page: one grid per list for the head and the rows. */
.list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow-x:auto;font-size:14px}
.list-head{height:38px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ct-dim);
  background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule)}
.list-head .num{font-family:var(--ct-sans)}
.list-row{min-height:44px;border-bottom:1px solid var(--ct-rule-soft);padding-top:4px;padding-bottom:4px}
.list-row:last-child{border-bottom:0}
.list-note{padding:8px 12px;font-size:12px;color:var(--ct-faint)}
.f-grid,.t-grid,.m-grid{display:grid;align-items:center;gap:0 10px;padding-left:12px;padding-right:12px;box-sizing:border-box}
.f-grid{grid-template-columns:44px 84px minmax(280px,3fr) 64px minmax(120px,1fr) 160px 110px 96px 56px;min-width:1146px}
.t-grid{grid-template-columns:104px 150px 272px 64px 72px 72px;min-width:780px}
.m-grid{grid-template-columns:48px minmax(180px,1.3fr) minmax(200px,2.2fr) 128px 64px 120px minmax(90px,0.8fr);min-width:914px}
.f-title{font-weight:500;color:var(--ct-ink)}
.m-name{display:flex;align-items:baseline;gap:8px;min-width:0}
.m-name .m-info{flex:none;font-weight:400;white-space:nowrap}
.ws{display:flex;align-items:center;gap:6px}
/* Hans, 14 Nov 2026: the State cell keeps one line; "by the engineer" is a tag, the review date is in the hover. */
.f-ws{min-width:0;white-space:nowrap}
ul.plain{list-style:none;margin:0;padding:0;display:grid;gap:4px}

@media (max-width:720px){
  .cp-actions{width:100%}
  .cp-actions .btn,.cp-actions form{flex:1 1 100%}
  .cp-actions form .btn{width:100%}
  .list{background:transparent;border:0;overflow:visible;display:flex;flex-direction:column;gap:8px}
  .list-head{display:none}
  .f-grid,.t-grid,.m-grid{min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 12px}
  .list-row{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
  .list-row:last-child{border-bottom:1px solid var(--ct-rule)}
  .f-grid .f-title,.m-grid .f-title,.m-grid>span:nth-child(3){grid-column:1/-1}
  /* A finding on the phone: risk and first seen, the title, where (often a long node list, so a line of its own),
     then state and owner. Two equal columns, so a long field never pushes another over it. */
  .f-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .f-grid>.f-seen{order:1;justify-self:end;white-space:nowrap}
  .f-grid>.f-title{order:2}
  .f-grid>.f-where{order:3;grid-column:1/-1}
  .f-grid>.f-mod{display:none}
  .f-grid>.f-ws{order:4}
  .f-grid>.f-owner{order:5;justify-self:end;text-align:right}
  .t-grid .t-bar{grid-column:1/-1}
}

/* Reading page (How we handle credentials): a readable line length inside the dense frame. */
.ct-prose{max-width:72ch}
.ct-prose h2{font-size:16px;font-weight:600;margin:20px 0 6px}
.ct-prose p{margin:0 0 10px}
.ct-prose .ct-table{overflow-x:auto;margin:8px 0 16px}
.ct-prose table{border-collapse:collapse;width:100%;background:var(--ct-surface)}
.ct-prose th,.ct-prose td{text-align:left;vertical-align:top;padding:8px 10px;border:1px solid var(--ct-rule)}
.ct-prose th{font-size:12px;font-weight:500;color:var(--ct-faint)}

/* Location page: move a cluster to another location, and notes after an action. */
.ct-move{display:flex;gap:6px;align-items:center}
.ct-move select{font:inherit;min-height:32px;min-width:12em}
.ct-note{margin:0;padding:10px 14px;border-radius:0 6px 6px 0;border:0;border-left:4px solid var(--ct-link);
  background:var(--ct-sunk)}
.ct-note-error{border-color:var(--ct-red);background:var(--ct-red-bg);color:var(--ct-red)}
.ct-note-success{border-color:var(--ct-green);background:var(--ct-green-bg)}
/* The RCA review page while the analysis or the writing agent runs, and when it is done: green, so it stands out (Hans, 24 Nov 2026). */
.ct-note.rc-busy{border-color:var(--ct-green);background:var(--ct-green-bg);color:var(--ct-green-ink);font-weight:500}
.rc-busy .ft-live::before{border-color:var(--ct-green);border-right-color:transparent}
/* A page that follows by itself and has news while you type or have something open (static/js/live.js, Hans, 27 Nov
   2026): a small bar in a corner instead of a reload under you. Above the review page's bottom bar on a phone. */
.live-bar{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:70;display:flex;gap:10px;
  align-items:center;max-width:calc(100vw - 32px);box-sizing:border-box;padding:6px 6px 6px 12px;
  border-radius:var(--ct-r);border:1px solid var(--ct-blue-line);background:var(--ct-blue-bg);color:var(--ct-blue-ink);
  box-shadow:var(--ct-pop-shadow)}
.live-bar .live-go{min-height:30px}
@media (max-width:720px){.live-bar{left:16px;right:16px;justify-content:space-between}
  body:has(.dr-next) .live-bar{bottom:calc(80px + env(safe-area-inset-bottom))}}

/* Release desk (staff): the waiting list and one result with its card of facts beside the buttons. */
/* Hans, 14 Nov 2026: the list scrolled sideways at his width and cut the Open button. The text columns shrink with
   "..." (full text on hover) instead; between 721 and 1100px Held because and Waiting since step aside (both stay on
   the review page; 1100 since the status line, 27 Nov 2026), and under 720px the rows are cards. Hans, 21 Nov 2026
   (mock-up "Staff screens on a phone"): every row names its measured date beside the cluster at every width. Hans, 27 Nov 2026 (design "One status line"): the
   Texts chip and the next-step button became one Status column, the status line (.sl below). */
.d-grid{display:grid;grid-template-columns:28px minmax(156px,1.1fr) minmax(70px,.7fr) 112px 52px 44px 56px minmax(70px,.7fr)
  minmax(360px,3fr);align-items:center;gap:0 10px;padding:0 12px;min-width:0;box-sizing:border-box}
.d-name{display:flex;align-items:baseline;gap:8px;min-width:0}
.d-name a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d-name .cl-date{color:var(--ct-faint);flex:none}
.d-line{min-width:0}
.d-holds{font-size:13px}
.d-top{margin:0;padding:0 0 0 20px;display:grid;gap:14px}
.d-top li{display:grid;gap:4px}
.d-facts{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px 12px;margin:0}
.d-facts dt{font-size:12px;color:var(--ct-faint);padding-top:2px}
.d-facts dd{margin:0;display:grid;gap:6px}
.d-crit li{color:var(--ct-red)}
.d-wide{width:100%}
.d-more summary{cursor:pointer;color:var(--ct-link);padding:6px 0}
.d-more form{padding-top:8px}
.d-more input,.d-more textarea{font:inherit;padding:6px 8px;border:1px solid var(--ct-line);border-radius:6px}
@media (min-width:721px) and (max-width:1100px){
  .d-grid{grid-template-columns:28px minmax(150px,1.1fr) minmax(60px,.7fr) 52px 44px 56px minmax(330px,2.6fr)}
  .d-grid>.d-holds,.d-grid>.d-since{display:none}
}
/* A row on a phone: the dot, the cluster and its measured date; under it the organisation and the counts, then the
   status line (stacked, see .sl). A hold rule shows as a chip only when there is one. */
@media (max-width:720px){
  .d-grid{min-width:0;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 8px;padding:10px 12px}
  .d-grid.cl-head{display:none}
  .cl-row.d-grid>.dot{display:inline-block;grid-column:1;grid-row:1}
  .d-grid>.cl-name{grid-column:2;grid-row:1}
  .d-grid>.cl-name{grid-column:2/-1}
  .d-grid>.c-phone{grid-column:1/-1;grid-row:2;font-size:13px;color:var(--ct-dim)}
  .d-grid>.d-line{grid-column:1/-1;grid-row:3;border-top:1px solid var(--ct-rule-soft);padding-top:6px}
  .cl-row>.d-org,.cl-row>.d-since,.cl-row.d-grid>.c-sev{display:none}
  .cl-row>.d-holds{grid-column:1/-1;grid-row:4;justify-self:start;max-width:100%;font-size:12px;padding:1px 8px;
    border:1px solid var(--ct-amber-line);background:var(--ct-amber-bg);border-radius:999px;color:var(--ct-ink)}
  .cl-row>.d-holds.none{display:none}
  .portal .d-name a{font-size:16px}
  .d-name .cl-date{font-size:13px}
  .grid2{grid-template-columns:minmax(0,1fr)}
  .d-facts{grid-template-columns:minmax(0,1fr)}
  .d-layout>aside{order:-1}
}
.ct-note-warning{border-color:var(--ct-orange);background:var(--ct-amber-bg)}
/* The root cause analyses on the desk list (Hans, 27 Nov 2026, design "One status line"; rca/workflow.py): the same
   rows as the results, with fewer columns, and the same Status column, so a row keeps the height of a result's. */
.d-grid.d-rca{grid-template-columns:minmax(156px,1.1fr) minmax(70px,.7fr) 128px minmax(360px,3fr)}
@media (min-width:721px) and (max-width:1100px){.d-grid.d-rca{grid-template-columns:minmax(150px,1.1fr) minmax(60px,.7fr) minmax(330px,2.6fr)}}
@media (max-width:720px){.d-grid.d-rca{grid-template-columns:minmax(0,1fr)}.d-grid.d-rca>.cl-name{grid-column:1/-1}}

/* The status line (Hans, 27 Nov 2026, design "One status line"; measurements/workflow.py and
   templates/measurements/_status_line.html): the step of five as a track (done green, now blue, now red when stuck),
   who it waits on as a pill, what happens now on one line with "..." (all of it on hover), and the one button or
   nothing. Nothing in it wraps on a wider screen, so the desk's rows keep one height. On a phone the track and the pill
   stand on one line with the button at the right, and the text under them. */
.sl{display:grid;grid-template-columns:88px 64px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0}
.sl.sl-bare{grid-template-columns:88px 64px minmax(0,1fr)}
.sl-track{display:flex;align-items:center;gap:3px;white-space:nowrap}
.sl-track i{display:block;flex:none;width:10px;height:6px;border-radius:2px;background:var(--ct-line)}
.sl-track i.d{background:var(--ct-green)}
.sl-track i.n{background:var(--ct-primary)}
.sl-track i.s{background:var(--ct-red)}
/* Six steps (a root cause analysis, rca/workflow.py, 30 Nov 2026) in the same 88px as five: narrower marks. */
.sl-track i:first-of-type:nth-last-of-type(6),.sl-track i:first-of-type:nth-last-of-type(6)~i{width:8px}
.sl-n{font-family:var(--ct-mono);font-size:12px;color:var(--ct-faint);margin-left:3px}
.sl-who{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:22px;padding:0 9px;
  border-radius:11px;border:1px solid var(--ct-rule);font-size:12.5px;font-weight:600;white-space:nowrap;
  color:var(--ct-dim);background:transparent;justify-self:start}
.sl-who.you{background:var(--ct-primary);border-color:var(--ct-primary);color:var(--ct-on-primary)}
.sl-who.agent{background:var(--ct-amber-bg);border-color:transparent;color:var(--ct-orange)}
.sl-who.portal{background:var(--ct-sunk)}
.sl-who.customer{background:var(--ct-purple-bg);border-color:transparent;color:var(--ct-purple-ink)}
.sl-who.stuck{background:var(--ct-red-bg);border-color:transparent;color:var(--ct-red)}
.sl-who.nobody{border-style:dashed;color:var(--ct-faint)}
.sl-what{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ct-ink)}
.sl-what b{font-weight:600}
.sl-what span{color:var(--ct-faint)}
.sl-clock{font-variant-numeric:tabular-nums;white-space:nowrap}
.sl-act{justify-self:end;display:flex}
.sl-act form{margin:0}
.sl-none{color:var(--ct-faint);font-size:13px;white-space:nowrap}
/* The line alone in a panel at the top of a page (Finding texts, the Demo page's build, Agent runs narrowed to one
   result; Hans, 27 Nov 2026): one row on a wider screen, and on a phone the whole text on more lines, as on the review
   page. */
.sl-box{padding:6px 12px;border:1px solid var(--ct-rule);border-radius:var(--ct-r);background:var(--ct-surface);
  min-width:0}
.sl-box>.sl{min-height:36px}   /* one height with a button or without */
.sl-lead{margin:0 0 4px}
@media (max-width:720px){
  .sl,.sl.sl-bare{grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"track who . act" "what what what what";
    grid-template-rows:minmax(36px,auto) auto;gap:4px 10px}
  .sl-track{grid-area:track}
  .sl-who{grid-area:who}
  .sl-what{grid-area:what}
  .sl-act{grid-area:act}
  .sl-box{padding:8px 10px}
  .sl-box .sl-what{white-space:normal}
}

/* Failed uploads (staff): refused (orange) and failed (red) uploads, the reason, Run again and Remove per row. */
.fu-grid{display:grid;grid-template-columns:28px minmax(140px,1.1fr) minmax(120px,.9fr) 120px 84px minmax(260px,2.4fr) 196px;
  align-items:center;gap:0 10px;padding:6px 12px;min-width:1100px;box-sizing:border-box}
.fu-grid.cl-head{padding:0 12px}
.fu-sum{gap:8px}
.fu-state{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;color:var(--ct-on-sev);
  white-space:nowrap;background:var(--ct-grey)}
.fu-state.refused{background:var(--ct-orange)} .fu-state.failed{background:var(--ct-red)}
.portal .fu-org a{color:var(--ct-dim);text-decoration:none}
.fu-why{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px}
.fu-file{font-size:12px;color:var(--ct-faint);overflow-wrap:anywhere}
.fu-reason{color:var(--ct-ink);overflow-wrap:anywhere}
.fu-more summary{cursor:pointer;color:var(--ct-link);font-size:12px}
.fu-more ul{margin:4px 0 0;padding-left:18px}
.fu-more li{overflow-wrap:anywhere}
.fu-later{font-size:12px;color:var(--ct-green)}
.fu-gone{font-size:12px;color:var(--ct-red)}
.fu-acts{display:flex;gap:6px;justify-content:flex-end}
.fu-acts form{margin:0}
.portal .btn.fu-remove{color:var(--ct-red);border-color:var(--ct-red)}
.portal .btn.fu-remove:hover:not(:disabled){background:var(--ct-red);color:var(--ct-on-sev)}
/* A row on a phone (Hans, 21 Nov 2026, mock-up "Portal on phones"), the same height for every row: the dot, the
   cluster and the state; the customer and the time; the reason on one line (every reason in its title); Run again and
   Remove side by side at the right, normal width. The file, more reasons and the notes stay on the wide screen. */
@media (max-width:720px){
  .fu-grid{min-width:0;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:24px 20px 20px 36px;gap:4px 8px;
    padding:8px 12px;align-items:center}
  .fu-grid.cl-head{display:none}
  .fu-grid.cl-row>.dot{display:inline-block;grid-area:1/1}
  .fu-grid>.cl-name{grid-area:1/2;min-width:0}
  .fu-grid>.cl-name a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .fu-grid>.fu-st{grid-area:1/3;justify-self:end}
  .fu-grid>.fu-org,.fu-grid>.fu-when{font-size:13px;color:var(--ct-faint)}
  .fu-grid>.fu-org{grid-area:2/1/3/3}
  .fu-grid>.fu-when{grid-area:2/3;justify-self:end}
  .fu-grid>.fu-why{grid-area:3/1/4/-1;min-width:0}
  .fu-why>:not(.fu-reason){display:none}
  .fu-why>.fu-reason{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fu-grid>.fu-acts{grid-area:4/1/5/-1;justify-content:flex-end}
  .fu-acts form{flex:none}
  .portal .fu-acts .btn{width:auto;min-height:36px}
}

/* All clusters (staff): a tree of customer, location and cluster, and removing one. */
.t-tree{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);margin-bottom:16px;overflow:hidden}
.t-grid{display:grid;grid-template-columns:300px 200px 84px 124px 96px minmax(150px,1fr);
  align-items:center;gap:0 12px;padding:0 14px;min-height:38px;box-sizing:border-box;border-left:4px solid transparent}
.t-head{min-height:34px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ct-dim);
  border-bottom:1px solid var(--ct-rule)}
.t-head .num{font-family:var(--ct-sans)}
.t-grid .num{text-align:right}
.t-grid>:last-child{justify-self:end}
.t-span{grid-column:2/5}
.t-count{font-size:12px}
/* The customer: a light row on the page's own surface, the name bold in ink, the edge in the colour of its group
   (Hans, 22 Nov 2026: no dark navy rows on a light site, but customers must stand out from their details). Its
   locations are the light blue bands under it, its clusters the plain indented rows with guide lines. */
.t-org+.t-org{border-top:1px solid var(--ct-rule)}
.t-org-row{background:var(--ct-surface);color:var(--ct-ink);cursor:pointer;list-style:none;min-height:42px;
  border-left:4px solid var(--ct-blue-edge);border-top:1px solid var(--ct-rule)}
.t-org-row:hover{background:var(--ct-sunk)}
.t-org[open]>.t-org-row{border-bottom:1px solid var(--ct-line)}
.portal .t-org-row .t-name a{color:var(--ct-ink);font-weight:600;font-size:15px;text-decoration:none}
.portal .t-org-row .t-name a:hover{text-decoration:underline}
.t-org-row .t-count{color:var(--ct-dim)}
/* The location: a light blue band, one step in. */
.t-loc-row{background:var(--ct-blue-bg);cursor:pointer;list-style:none;border-top:1px solid var(--ct-blue-line);border-left:4px solid var(--ct-blue-edge)}
.t-loc-row .t-name{padding-left:20px}
.portal .t-loc-row .t-name a{color:var(--ct-ink);font-weight:600;text-decoration:none}
.portal .t-loc-row .t-name a:hover{text-decoration:underline}
.t-loc-row .t-count{color:var(--ct-dim)}
.t-org-row::-webkit-details-marker,.t-loc-row::-webkit-details-marker{display:none}
.t-org-row .t-name::before,.t-loc-row .t-name::before{content:"\25B8";display:inline-block;width:18px;color:var(--ct-faint)}
.t-loc-row .t-name::before{color:var(--ct-primary)}
.t-org[open]>.t-org-row .t-name::before,.t-loc[open]>.t-loc-row .t-name::before{content:"\25BE"}
/* The cluster: two steps in, with a guide line down from its location. */
.t-cl-row{border-top:1px solid var(--ct-rule-soft);color:var(--ct-dim);position:relative}
.portal .t-cl-row .t-name{padding-left:72px}
.portal .t-cl-row.t-flat .t-name{padding-left:0}
.t-cl-row::before{content:"";position:absolute;left:46px;top:0;bottom:50%;width:22px;border-left:1px solid var(--ct-line);
  border-bottom:1px solid var(--ct-line)}
.t-cl-row:not(:last-child)::after{content:"";position:absolute;left:46px;top:50%;bottom:0;border-left:1px solid var(--ct-line)}
.portal .t-cl-row .t-name{text-decoration:none}
.t-cl-row:hover{background:var(--ct-sunk)}
.t-cl-row.t-flat::before,.t-cl-row.t-flat::after{display:none}
.portal .t-pill{display:inline-block;min-width:22px;padding:1px 6px;border-radius:10px;background:var(--ct-orange);color:var(--ct-on-sev);
  font-weight:600;font-size:12px;text-align:center;text-decoration:none;box-sizing:border-box}
@media (max-width:720px){
  .t-grid{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 12px}
  .t-head{display:none}
  .t-span{grid-column:auto}
  .t-grid>:last-child{grid-column:1/-1}
  .t-grid>span:last-child:empty{display:none}
  .t-cl-row>:nth-child(3),.t-cl-row>:nth-child(4),.t-cl-row>:nth-child(5),.t-org-row>:nth-child(3),.t-loc-row>:nth-child(3){display:none}
  .t-loc-row .t-name{padding-left:10px}
  .portal .t-cl-row .t-name{padding-left:44px}
  .t-cl-row::before,.t-cl-row:not(:last-child)::after{left:30px}
  .t-cl-row::before{width:16px}
}
.portal .btn.s-danger{background:var(--ct-red);border-color:var(--ct-red);color:var(--ct-on-sev)}
.d-confirm{font:inherit;padding:6px 8px;border:1px solid var(--ct-line);border-radius:6px;max-width:20rem}
@media (max-width:720px){
  .s-grid{min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:12px}
  .s-grid.cl-head{display:none}
  .s-grid>.num,.s-grid>.cl-date{display:none}
  .s-grid .next{grid-column:1/-1}
}
.portal .linkish{background:none;border:0;padding:0;font:inherit;font-size:12px;color:var(--ct-link);cursor:pointer;text-decoration:underline}

/* Reports (measurements/reports.py): the list of every report, newest first, and one report to read or print. */
.r-grid{display:grid;align-items:center;gap:0 10px;padding-left:12px;padding-right:12px;box-sizing:border-box;
  grid-template-columns:132px 132px 130px minmax(140px,1fr) 160px 130px 110px 192px;min-width:1140px}
/* Written: a translation that left findings in English is a button, Translate again (measurements/writer.translate_gaps). */
.r-trans{display:inline}
/* The cell holds the chip, the label, an ⓘ with the rest and the run count: it never wraps, and is never cut off
   (Hans, 21 Nov 2026: "use an infobox if it doesn't fit"), so the ⓘ's box can show. */
.r-written{white-space:nowrap}
.r-trans button{font:inherit;cursor:pointer;border:0}
/* Staff see one more column, Written: who wrote the finding texts and when (measurements/writer.written_by). */
.r-grid.r-staff{grid-template-columns:132px 132px 130px minmax(120px,1fr) 150px 120px 100px 210px 192px;
  min-width:1300px}
/* Staff Reports of every customer (Hans, 21 Nov 2026): the customer first, Location a little narrower. */
.r-grid.r-staff.r-all{grid-template-columns:minmax(100px,1fr) 124px 124px 120px minmax(80px,1fr) 150px 90px 90px 210px 192px;
  min-width:1390px}
.r-orgs{margin-bottom:6px}
/* Three fixed places in the last cell (Open, PDF, Word), so the buttons line up; a row without Word leaves its place
   empty. A row without buttons (Under review) is as high as a row with them. */
.r-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
/* The order button of a locked line ("Get the full report", "Order 2026-0042") takes two places, or all three alone. */
.r-open:has(.r-order){grid-template-columns:60px minmax(0,1fr)}
.portal .r-open .r-order{padding-left:6px;padding-right:6px}
.r-open .r-order:first-child{grid-column:1/-1}
.r-grid.list-row{min-height:44px}
/* The kind filter above the Reports list (?kind=): the label buttons of the Risks page, a name instead of a level */
.r-kinds{flex-wrap:wrap;margin:0 0 12px}
.portal .r-kinds .label-filter{padding-left:10px;white-space:nowrap}
.r-row-head{gap:8px}
.r-report{max-width:880px}
/* The Top 5 in the v3.0 layout (reporting redesign block 6, board 8; templates/measurements/_report_body.html): the kind
   as a kicker over the cluster name, a lead paragraph, one row per finding (number, level, text), what was and was not
   looked at beside the calls to action. On a phone the row keeps number and level on one line above the text. */
.t5-head h1{margin:0}
.t5-kicker{font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ct-link)}
.t5-level{font-variant-numeric:tabular-nums}
.t5-lead{font-size:17px;line-height:1.5;margin:0}
.t5-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--ct-rule)}
.t5-row{display:grid;grid-template-columns:44px 84px minmax(0,1fr);gap:10px;padding:12px 0;border-bottom:1px solid var(--ct-rule-soft);align-items:start}
.t5-num{padding-top:3px;font-size:14px}
.t5-sev .sev{justify-self:start}
.t5-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.t5-text .f-title{font-weight:700}
.t5-meta{font-size:13px;color:var(--ct-dim)}
.t5-text p{margin:2px 0 0}
.t5-text code{overflow-wrap:anywhere}
.t5-why{color:var(--ct-dim)}
.t5-pattern{margin:0;padding:10px 14px;border-left:3px solid var(--ct-rule);background:var(--ct-sunk)}
.t5-lang{margin:0 0 12px}  /* left, above the Top 5, as on the Findings page (Hans 5 Dec 2026) */
.t5-end{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;margin-top:8px}
.t5-end:not(:has(.t5-cta)){grid-template-columns:minmax(0,1fr)}
.t5-scope{margin:0}
.t5-cta{background:var(--ct-sunk);padding:14px 16px;border-radius:8px}
.t5-cta p{margin:0}
.t5-buttons{flex-wrap:wrap;gap:8px;margin-top:10px}
/* On paper a row and the closing block never split over two pages. */
.t5-row,.t5-end{break-inside:avoid}
@media (max-width:640px){
  .t5-row{grid-template-columns:44px minmax(0,1fr)}
  .t5-text{grid-column:1/-1}
  .t5-end{grid-template-columns:minmax(0,1fr);gap:16px}
}
/* Download the PDF / Word on a report page (measurements/pdfs.py): the buttons with one status line under them, the
   busy text or why the PDF could not be made. */
.dl{align-items:flex-end;gap:6px;min-width:0}
.dl-msg{margin:0;text-align:right;max-width:52ch;font-variant-numeric:tabular-nums}
.dl-msg:empty{display:none}
.dl-msg.fail{color:var(--ct-red)}
.dl-word{display:inline-flex;align-items:center;gap:6px}
.dl-word .ct-i{display:none}
.dl-word.none .ct-i{display:inline-grid}
.portal a.btn.is-busy{pointer-events:none}
/* One place for a report's buttons on every report (Hans, 24 Nov 2026, of the RCA: "Nu staat het links. Graag standaard
   houden"): the title block takes the room that is left and wraps its own facts, so a long line of facts no longer
   pushes the buttons onto a line of their own at the left. They stay top right, beside the name. */
.cp-head:has(>.dl)>.cp-title{flex:1 1 280px;min-width:0}
.cp-head>.dl{flex:0 1 auto;margin-left:auto}
.dl>.cp-actions{justify-content:flex-end}
@media (max-width:720px){
  .dl{width:100%;align-items:stretch}
  .dl-msg{text-align:left;max-width:none}
  .dl .cp-actions .btn:not(.primary),.dl .cp-actions .dl-word{flex:1 1 calc(50% - 4px)}
  .dl .cp-actions .dl-word .btn{flex:1 1 auto}
  .r-open{display:flex}
  /* A report on a phone (Hans, 21 Nov 2026, mock-up "Portal on phones"): two lines, the same for every row.
     1 cluster, kind and round, PDF at the right; 2 the date and the state (staff: who wrote it at the right). The kind
     is the link that covers the row (.r-go), so a tap anywhere opens the report; PDF and the staff buttons lie above
     it. Every customer's reports (staff) add the customer's name as a first line to every row. */
  .r-grid,.r-grid.r-staff,.r-grid.r-staff.r-all{min-width:0;grid-template-columns:minmax(0,max-content) auto minmax(0,1fr) auto;
    grid-template-rows:34px 22px;gap:2px 8px;padding:6px 12px;align-items:center}
  .r-grid.list-row{position:relative}
  .r-grid.r-all,.r-grid.r-staff.r-all{grid-template-rows:22px 34px 22px}
  .r-grid .r-org{grid-area:1/1/2/-1;font-weight:600}
  .r-grid .r-cluster{grid-area:1/1}
  .portal .r-grid .r-cluster a{color:var(--ct-ink);text-decoration:none;font-weight:600}
  .r-grid .r-written .ct-i{width:18px;height:18px;font-size:12px;vertical-align:-4px}
  .r-grid .r-kind{grid-area:1/2;white-space:nowrap}
  .r-grid .r-round{grid-area:1/3;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .r-grid .r-open{grid-area:1/4;justify-self:end}
  .r-grid .r-date{grid-area:2/1;white-space:nowrap}
  .r-grid .r-state{grid-area:2/2/3/4;font-size:13px;white-space:nowrap}
  .r-grid.r-staff .r-state{grid-area:2/2}
  .r-grid .r-written{grid-area:2/3/3/5;justify-self:end;font-size:13px}
  .r-grid.r-all .r-cluster,.r-grid.r-all .r-kind,.r-grid.r-all .r-round,.r-grid.r-all .r-open{grid-row:2}
  .r-grid.r-all .r-date,.r-grid.r-all .r-state,.r-grid.r-all .r-written{grid-row:3}
  .r-grid .r-time,.r-grid .r-loc,.r-grid .r-upd,.portal .r-grid .r-wide{display:none}
  .r-grid.list-head{display:none}
  .r-grid .r-go::after{content:"";position:absolute;inset:0}
  .r-grid .r-open,.r-grid .r-written{position:relative;z-index:1}
  .portal .r-grid .next{min-height:32px;padding:3px 12px}
}
/* The System Documentation (templates/measurements/sysdoc.html): the document engine's own page in a frame. */
/* width:1px plus min-width:100%: Safari on iPhone and iPad otherwise widens a frame to its content (the A4 document),
   and the page then scrolls sideways under the frame. The document has its own phone layout (cards for wide tables,
   figures of their own), so a phone gets the frame too. */
.sd-frame{display:block;width:1px;min-width:100%;height:82vh;min-height:480px;border:1px solid var(--ct-rule);
  border-radius:var(--ct-r);background:var(--ct-surface);box-sizing:border-box}
@media print{
  .ct-top,.ct-foot,.skip,.no-print{display:none !important}
  .portal .r-report{border:0;padding:0;max-width:none}
  .sev{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Risks (templates/clusters/risks.html): every finding of every cluster in one list. One grid for the head and the
   rows. A row with State and Owner to set is a form; the script saves it on a change, so its Save button only shows
   without the script. Printed, the choices print as plain words and the filters stay off the paper. */
.h-sub{font-size:14px;font-weight:400;color:var(--ct-dim)}
.rk-grid{display:grid;grid-template-columns:44px 84px minmax(240px,3fr) minmax(210px,1.4fr) 56px minmax(110px,1fr) 176px 160px 92px 56px;
  align-items:center;gap:0 10px;padding-left:12px;padding-right:12px;min-width:1326px;box-sizing:border-box;margin:0}
/* The Where column stays one line; the full text is in the tooltip (Hans, 13 Nov 2026: two lines at most; 14 Nov
   2026: rows stay one line). */
.rk-where,.f-where{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rk-grid .rk-save{grid-column:1/-1;justify-self:end;padding:4px 0}
.rk-js .rk-save,.rk-js .rk-go{display:none}
/* A finding's history (templates/clusters/_history.html). Closed, it is the last cell of the row ("▸ 3"), so the row
   stays one line (Hans, 14 Nov 2026: rows keep one height). Opened, it takes a line of its own under the row. */
.f-hist{min-width:0;justify-self:end;white-space:nowrap}
.f-hist[open]{grid-column:1/-1;justify-self:stretch;white-space:normal;padding:2px 0 6px 54px}
.f-hist summary{cursor:pointer;color:var(--ct-link);font-size:12px;padding:2px 0}
.f-hist[open] summary{text-align:right}
.f-hist-word{display:none}
.f-hist[open] .f-hist-word{display:inline}
.f-hist-list{margin:4px 0 0;gap:2px}
.f-hist-list li{display:grid;grid-template-columns:84px minmax(0,1fr);gap:0 8px;font-size:14px}
/* The cluster Timeline: open by level, accepted inside its level (hatched, as in the approved design), not measured,
   fixed and new. */
.tl-grid{display:grid;align-items:center;gap:0 10px;padding-left:12px;padding-right:12px;box-sizing:border-box;
  grid-template-columns:128px 130px 400px 84px 56px 84px 112px 56px 56px;min-width:1210px}
.tl-grid .t-bar{height:auto}
.t-n{fill:#fff;font:600 12px var(--ct-mono);paint-order:stroke;stroke:rgba(10,16,36,.45);stroke-width:2px;stroke-linejoin:round}
.tl-grid .strong-num{font-size:16px}
.tl-grid .num{text-align:right}
.t-hatch{fill:url(#tl-hatch)}
.key.acc{width:18px;background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(255,255,255,.8) 3px 5px)}
.rk-cluster{display:flex;flex-direction:column;line-height:1.3}
.portal .rk-title,.portal .rk-cluster a{text-decoration:none}
.portal .rk-title{color:var(--ct-ink)}
.portal .rk-title:hover,.portal .rk-cluster a:hover{text-decoration:underline}
/* The State cell is one line: the state only. Who accepted or proposed it, the review date and the reason are in its
   tooltip and on the finding's own page (Hans, 27 Nov 2026). */
.rk-state{display:flex;flex-wrap:nowrap;align-items:center;gap:0 6px;min-width:0}
.rk-state>.ws{min-width:0}
/* The State form on a finding's own page (templates/clusters/finding.html, static/js/finding_state.js): state, owner
   and review date on one line, the reason under it. With the script the reason shows only with Accepted or Propose
   to accept, the review date only with Accepted. */
.fd-state{display:flex;flex-direction:column;gap:10px}
.fd-state-row{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end}
.fd-field{display:flex;flex-direction:column;gap:4px;min-width:0}
.portal .fd-field>span:first-child{font-size:12px;font-weight:400;color:var(--ct-faint)}
.portal .fd-field select,.portal .fd-field input{font-size:14px;padding:4px 8px;min-height:32px;min-width:12em;box-sizing:border-box}
.fd-field>.ws{min-height:32px;display:flex;align-items:center;gap:6px}
.fd-reason{max-width:640px}
.portal .fd-reason textarea{font-size:14px;width:100%;box-sizing:border-box}
.fd-by,.fd-why{margin:0}
.fd-js .fd-reason,.fd-js .fd-review{display:none}
.fd-js.fd-asking .fd-reason,.fd-js.fd-accept .fd-review{display:flex}
@media (max-width:720px){.fd-field,.portal .fd-field select,.portal .fd-field input{width:100%}}
.rk-state select{flex:1 1 0}
.portal .rk-state select,.portal .rk-owner select,.portal .rk-pick select{font-size:14px;padding:4px 8px;min-height:32px;
  width:100%;min-width:0}
.portal .rk-pick select{width:auto;min-width:10em}
.portal .rk-pick label{font-size:12px;font-weight:400;color:var(--ct-faint);display:inline}
.rk-print{display:none}
.rk-gap{margin:0}
.w-fixed{background:var(--ct-green)} .w-accepted{background:var(--ct-sev-accepted)}
.w-proposed{background:var(--ct-surface);border:2px solid var(--ct-sev-accepted)} .w-again{background:var(--ct-red)}
@media (max-width:720px){
  /* A risk on a phone (Hans, 21 Nov 2026, mock-up "Portal on phones"): three lines, the same for every row.
     1 level, number, first seen at the right; 2 the title, one line; 3 cluster and location at the left, state and
     owner at the right. State and owner stay the row's own pickers, drawn as text with a caret, so a tap opens the
     phone's picker and a change saves as on the wide screen (static/js/risks.js). History and where are on the
     risk's own page. */
  .rk-grid{min-width:0;grid-template-columns:auto auto minmax(0,1fr) auto auto;
    grid-template-rows:minmax(22px,auto) minmax(22px,auto) minmax(28px,auto);gap:2px 8px;padding:8px 12px;align-items:center}
  .rk-grid.list-head{display:none}
  .rk-filters .switch{max-width:100%;min-width:0}
  .rk-filters .seg{overflow-x:auto;max-width:100%}
  .rk-grid>.rk-sev{grid-area:1/1;line-height:1}
  .rk-grid>.rk-no{grid-area:1/2;justify-self:start}
  .rk-grid>.rk-seen{grid-area:1/3/2/-1;justify-self:end;white-space:nowrap}
  .rk-grid>.rk-title{grid-area:2/1/3/-1;min-width:0}
  .rk-grid .rk-title .one-line{white-space:nowrap}
  .portal .rk-grid .rk-title a.f-title{color:var(--ct-ink);text-decoration:none;font-weight:600}
  .rk-grid .rk-title .lk-tag{display:inline;flex:none}
  .rk-grid>.rk-cluster{grid-area:3/1/4/4;flex-direction:row;flex-wrap:nowrap;gap:0 6px;align-items:baseline;min-width:0;
    font-size:14px}
  .rk-grid>.rk-cluster>.one-line::before{content:"\00B7";margin-right:6px;color:var(--ct-faint)}
  .rk-grid>.rk-state{grid-area:3/4;flex-wrap:nowrap;justify-self:end;min-width:0;font-size:14px}
  .rk-grid>.rk-owner{grid-area:3/5;justify-self:end;min-width:0;max-width:34vw;font-size:14px;display:flex;align-items:center}
  .rk-grid>.rk-owner::before{content:"\00B7";margin-right:6px;color:var(--ct-faint)}
  .rk-grid>.rk-owner>.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .rk-grid>.rk-module,.rk-grid>.rk-where,.rk-grid>.f-hist,.rk-grid>span:empty:not(.rk-state):not(.rk-owner){display:none}
  .rk-grid>.rk-save{grid-column:1/-1;grid-row:auto}
  .portal .rk-grid .rk-state select,.portal .rk-grid .rk-owner select{appearance:none;-webkit-appearance:none;border:0;
    background-color:transparent;color:var(--ct-ink);font:inherit;font-size:16px;line-height:1.2;min-height:28px;
    height:28px;width:auto;max-width:100%;padding:0 14px 0 0;field-sizing:content;cursor:pointer;
    background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
    background-position:calc(100% - 7px) 55%,calc(100% - 3px) 55%;background-size:4px 4px;background-repeat:no-repeat;
    text-overflow:ellipsis}
  .portal .rk-grid .rk-owner select{max-width:34vw}
  .portal .rk-grid .rk-state select:focus-visible,.portal .rk-grid .rk-owner select:focus-visible{outline:2px solid var(--ct-primary);
    outline-offset:1px;border-radius:3px}
  .f-hist,.f-hist[open]{order:9;grid-column:1/-1;justify-self:stretch;padding-left:0}
  .f-hist summary,.f-hist[open] summary{text-align:left}
  .f-hist .f-hist-word{display:inline}
  .tl-grid{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;padding:10px 12px}
  .tl-grid.list-head{display:none}
  .tl-grid .t-bar{flex:0 0 100%;align-self:center}
  .tl-grid .num:empty{display:none}
  .tl-grid .num[data-l]::before{content:attr(data-l) " ";font:400 12px var(--ct-sans);color:var(--ct-faint)}
}
@media print{
  .ct-top,.ct-foot,.rk-noprint,.rk-save,.rk-state select,.rk-owner select,.rk-state>.key{display:none!important}
  .rk-print{display:inline}
  .rk-where,.f-where{display:block;overflow:visible}
  .list{border:0;overflow:visible}
  .rk-grid{min-width:0;grid-template-columns:70px minmax(0,3fr) minmax(0,1fr) 40px minmax(0,1fr) 100px 100px 72px;font-size:11px}
  .list-row{break-inside:avoid}
}

/* Organisation (accounts/org_views.py): people with their roles, open invitations, and locations. */
.o-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;margin-top:16px}
.o-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.o-grid{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1.2fr) 210px minmax(130px,1fr) minmax(170px,auto);
  align-items:center;gap:0 12px;padding:0 14px;min-height:44px;box-sizing:border-box}
.o-grid.o-loc{grid-template-columns:minmax(200px,1fr) 90px 80px minmax(190px,auto)}
.o-head{min-height:34px;font-size:13px;font-weight:600;color:var(--ct-ink);border-bottom:1px solid var(--ct-rule)}
.o-row+.o-row{border-top:1px solid var(--ct-rule-soft)}
.o-row:hover{background:var(--ct-sunk)}
.o-mail{color:var(--ct-dim)}
/* People: Name, Company, E-mail and Phone each in their own column (Hans, 27 Nov 2026). Every column may shrink, so the
   list fits next to the invite panel; a long text ends in … with the whole text in the title, rows stay one line. */
.o-list.o-people-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) auto auto minmax(0,.8fr) auto;
  column-gap:12px}
/* Every row takes the list's columns (subgrid), so Role and the actions get one width over all rows and the columns line up. */
.o-people-list>.o-grid.o-people{grid-column:1/-1;grid-template-columns:subgrid}
.o-co,.o-tel{color:var(--ct-dim)}
.o-tel a{color:inherit;text-decoration:none}
.portal .o-name a{text-decoration:none}
.o-grid .num{text-align:right}
.o-head .num{font-family:var(--ct-sans)}
.o-role{display:flex;gap:6px;align-items:center}
.o-role select{font:inherit;padding:4px 6px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface)}
.portal .o-role .btn{padding:4px 10px;min-height:0}
.o-pill{display:inline-block;padding:2px 10px;border-radius:10px;background:var(--ct-sunk);border:1px solid var(--ct-rule);
  font-size:12px;font-weight:600;color:var(--ct-dim)}
.o-pill.o-owner{background:var(--ct-bar);border-color:var(--ct-bar);color:#FFFFFF}
.o-pill.o-wait{background:var(--ct-amber-bg);border-color:var(--ct-amber-line);color:var(--ct-orange)}
.o-acts{display:flex;gap:14px;justify-content:flex-end;align-items:center}
.portal .linkish.o-danger{color:var(--ct-red)}
.o-roles{font-size:13px;color:var(--ct-dim)}
.o-roles summary{cursor:pointer;color:var(--ct-link)}
.o-roles dl{display:grid;grid-template-columns:120px 1fr;gap:4px 12px;margin:8px 0 0}
.o-roles dt{font-weight:600;color:var(--ct-ink)}
.o-roles dd{margin:0}
@media (max-width:900px){
  .o-layout{grid-template-columns:minmax(0,1fr)}
  .o-grid,.o-grid.o-loc{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 12px}
  .o-head{display:none}
  .o-mail{grid-column:1/-1}
  .o-list.o-people-list{display:block}
  .o-people-list>.o-grid.o-people{grid-template-columns:minmax(0,1fr) auto}
  .o-people .o-name,.o-people .o-co,.o-people .o-tel{grid-column:1/-1}
  .o-people .o-co:empty::before,.o-people .o-tel:empty::before{content:"—"}
  .o-acts{grid-column:1/-1;justify-content:flex-start}
}
.o-reach{color:var(--ct-dim);font-size:13px}
.o-access{border:1px solid var(--ct-rule);border-radius:6px;padding:8px 12px 10px;margin:0;display:grid;gap:4px}
.o-access legend{font-weight:600;padding:0 4px}
.portal .o-access .o-choice,.portal .o-access .o-picks label{display:flex;flex-direction:row;align-items:center;margin:0}
.portal .o-access input{width:auto;margin:0;min-height:0}
.o-choice{display:flex;gap:8px;align-items:center;font-weight:500}
.o-picks{display:none;flex-wrap:wrap;gap:4px 14px;padding:2px 0 6px 24px;font-size:13px}
.o-picks label{display:flex;gap:6px;align-items:center;font-weight:400}
.o-pick-loc{flex-basis:100%;font-size:12px;color:var(--ct-faint);margin-top:2px}
.o-choice:has(input:checked)+.o-picks{display:flex}
.o-edit{position:relative}
.o-edit>summary{list-style:none;cursor:pointer;font-size:12px}
.o-edit>summary::-webkit-details-marker{display:none}
.o-edit[open]>form{position:absolute;right:0;top:22px;z-index:5;width:300px;background:var(--ct-surface);
  border:1px solid var(--ct-rule);border-radius:var(--ct-r);box-shadow:var(--ct-pop-shadow);padding:12px;
  display:grid;gap:10px}
@media (max-width:900px){.o-acts{flex-wrap:wrap}.o-edit[open]{flex-basis:100%;order:9}.o-edit[open]>form{position:static;width:auto;margin-top:6px}}
/* ---- staff tree: the flag of a cluster whose customer waits on a new device ---------------------------------------- */
.portal .t-cl-row .t-name>a:first-child{text-decoration:none}
.portal .t-flag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;border:1px solid var(--ct-orange);
  color:var(--ct-orange);font-size:11px;font-weight:600;text-decoration:none;vertical-align:1px;white-space:nowrap}
.portal .t-flag:hover{background:var(--ct-amber-bg-hover);color:var(--ct-orange)}

/* ---- Devices (staff) ---------------------------------------------------------------------------------------------- */
.dv-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.dv-fam-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow-x:auto}
/* Fixed tracks: every row is a grid of its own, so the columns line up only when they are fixed. The Change track
   holds the widest pair, "Mark field-tested" plus the list at its set width (Hans, 27 Nov 2026: the list was cut off at
   the right edge). The row is 1298px at least, so it fits the page from a 1360 window on. */
.dv-grid{display:grid;grid-template-columns:minmax(180px,1.6fr) 140px 210px 92px 72px 96px 166px 248px;
  gap:0 10px;align-items:center;padding:0 12px;min-width:1298px;box-sizing:border-box}
.dv-grid.list-head{min-height:34px;font-size:13px;font-weight:600;color:var(--ct-ink);border-bottom:1px solid var(--ct-rule)}
.dv-grid .num{text-align:right}
.dv-group{display:flex;align-items:center;gap:12px;padding:0 12px;min-height:34px;background:var(--ct-blue-bg);
  border-top:1px solid var(--ct-blue-line);border-left:4px solid var(--ct-blue-edge);font-weight:600;min-width:1298px;box-sizing:border-box}
.dv-group .small{font-weight:400;color:var(--ct-dim)}
.dv-row{min-height:44px;padding-top:4px;padding-bottom:4px;border-top:1px solid var(--ct-rule-soft);color:var(--ct-dim)}
.dv-row:hover{background:var(--ct-sunk)}
.dv-name{display:flex;flex-direction:column;min-width:0;padding-left:16px}
.dv-name strong{color:var(--ct-ink);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-name small{font-size:12px;color:var(--ct-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dv-change{display:flex;gap:6px;align-items:center;justify-content:flex-end}
.dv-change>*{flex:none}
.portal .dv-change select{width:112px;font-size:13px;padding:4px 6px;min-height:32px}
.dv-js .dv-set{display:none}
.dv-filters{gap:8px 16px}
.dv-filters label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:var(--ct-dim)}
.portal .dv-filters select{width:auto;max-width:240px;font-size:13px;padding:4px 6px;min-height:32px}
.portal .dv-note{font:inherit;padding:8px 10px;border:1px solid var(--ct-line);border-radius:6px;width:100%;box-sizing:border-box;resize:vertical}
@media (max-width:720px){
  .dv-fam-list{background:transparent;border:0;overflow:visible;display:flex;flex-direction:column;gap:8px}
  .dv-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .dv-filters label{flex-direction:column;align-items:stretch;gap:2px;min-width:0}
  .portal .dv-filters select{width:100%;max-width:none}
  .dv-grid.list-head{display:none}
  .dv-group{min-width:0;border:0;background:transparent;padding:8px 0 0}
  .dv-grid{min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 12px}
  .dv-row{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
  .dv-name{grid-column:1/-1;padding-left:0}
  .dv-name strong,.dv-name small{white-space:normal}
  .dv-row>:nth-child(5),.dv-row>:nth-child(6){display:none}
  .dv-change{grid-column:1/-1;justify-content:flex-start;flex-wrap:wrap}
}

/* ---- Search -------------------------------------------------------------------------------------------------------- */
.sr-box{display:flex;gap:8px;max-width:40rem}
.portal .sr-box input{flex:1;font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--ct-line);border-radius:6px;
  background:var(--ct-surface);color:var(--ct-ink);min-width:0}
.portal .sr-box input:focus{outline:2px solid var(--ct-primary);outline-offset:1px}
.sr-group{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow:hidden}
.sr-head{display:flex;align-items:baseline;gap:10px;padding:8px 12px;background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule)}
.sr-head h2{font-size:15px}
.sr-hit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);gap:2px 16px;align-items:baseline;padding:8px 12px;
  border-top:1px solid var(--ct-rule-soft)}
.sr-hit:first-of-type{border-top:0}
.sr-hit:hover{background:var(--ct-sunk)}
.portal .sr-hit>a{font-weight:600;text-decoration:none;color:var(--ct-ink)}
.portal .sr-hit>a:hover{text-decoration:underline;color:var(--ct-link)}
.sr-where{font-size:12px;color:var(--ct-faint);text-align:right;white-space:nowrap}
.sr-detail{grid-column:1/-1;font-size:12px;color:var(--ct-dim)}
.sr-detail mark,.sr-hit mark{background:var(--ct-mark);color:inherit;padding:0 1px;border-radius:2px}
.ct-phone-only{display:none}
/* Search in the top bar on a phone: an icon beside the settings menu (the field is wide only). */
.portal .ct-find{place-items:center;flex:none;width:32px;height:36px;margin-left:auto;border-radius:6px;color:var(--ct-bar-link)}
.portal .ct-find:hover,.portal .ct-find[aria-current="page"]{color:var(--ct-bar-ink);background:var(--ct-bar-rule)}
@media (max-width:720px){
  .portal a.ct-find.ct-phone-only{display:inline-grid}
  .sr-hit{grid-template-columns:minmax(0,1fr)}
  .sr-where{text-align:left;white-space:normal}
}
.sr-where .sev,.sr-where .tagline{margin-right:6px}
/* Passkeys (accounts/passkeys.py) */
a.ct-user{color:var(--ct-bar-dim);text-decoration:none}
a.ct-user:hover{color:#FFFFFF;text-decoration:underline}
.o-grid.pkey-grid{grid-template-columns:minmax(160px,1fr) 110px 150px minmax(150px,auto)}
.pk-signin{margin-top:4px}
.pk-offer{margin:8px 0 12px}
@media (max-width:900px){.o-grid.pkey-grid{grid-template-columns:minmax(0,1fr) auto}}
/* Staff looking at one customer's portal (accounts/access.py StaffReader) */
.ct-look{display:flex;flex-wrap:nowrap;gap:8px;align-items:center;padding:6px var(--ct-gutter);
  background:var(--ct-amber-bg);border-bottom:2px solid var(--ct-amber-line);color:var(--ct-ink);font-size:14px}
.ct-look>strong{flex:none}
.ct-look-org{flex:0 1 auto}
.portal .ct-look>a{font-weight:600;color:var(--ct-orange);margin-left:auto;flex:none;white-space:nowrap}
/* The demo bar (accounts/demo.py, design portal-mockup/demo-account .dm-bar): one line on a desktop; on a phone the
   two buttons go below, side by side, one height. The purple tokens carry light and dark. */
.dm-bar{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;min-height:44px;padding:6px 24px;
  background:var(--ct-purple-bg-soft);border-bottom:1px solid var(--ct-purple-line);color:var(--ct-ink);font-size:14px}
.dm-bar .dm-what{flex:1 1 320px;min-width:0}
.dm-bar .dm-what strong{color:var(--ct-purple-ink)}
.dm-bar .dm-leave{margin-left:6px;white-space:nowrap}
.dm-bar .dm-go{display:flex;gap:8px;flex-wrap:wrap}
.portal .dm-bar .btn{white-space:nowrap}
@media (max-width:720px){.dm-bar{padding:6px 16px}.dm-bar .dm-go{flex:1 0 100%;flex-wrap:nowrap}
  .portal .dm-bar .dm-go .btn{flex:1 1 0;min-width:0;text-align:center;white-space:normal}}
.portal .t-open{font-size:13px;font-weight:600;color:var(--ct-link);text-decoration:none}
.portal .t-open:hover{color:var(--ct-link-hover);text-decoration:underline}
/* The demo account (docs/v3/demo.md step 4, design portal-mockup/demo-account): the visitor's paused and closed pages,
   and for staff the Demo group on Customers (counts, one row per prospect, one height) and the Demo account card. */
.dm-paused{max-width:560px;margin:48px auto}
.dm-counts{display:flex;gap:6px 22px;flex-wrap:wrap;padding:8px 14px;font-size:13px;color:var(--ct-dim);
  border-top:1px solid var(--ct-rule)}
.dm-counts b{font-family:var(--ct-mono);font-weight:600;color:var(--ct-ink);margin-right:5px}
.dm-wrap{overflow-x:auto}
/* The stats row of a group on staff Customers, one row high, and one empty row after it, not after the last group
   (Hans, 24 Nov 2026; design portal-mockup/customers-stats-rows). */
.dm-counts{min-height:40px;align-items:center;box-sizing:border-box}
.dm-counts>span{white-space:nowrap}
.nw-gap{height:40px;border-top:1px solid var(--ct-rule)}
.cx-tree>.nw-grp:last-of-type>.nw-gap{display:none}
@media (max-width:720px){.dm-counts{gap:4px 16px;padding:10px 12px}.nw-gap{height:24px}}
.dm-table{width:100%;border-collapse:collapse;font-size:13px}
.dm-table th,.dm-table td{height:36px;padding:0 10px;vertical-align:middle;text-align:left;white-space:nowrap;
  border-top:1px solid var(--ct-rule)}
.dm-table th{font-weight:600;color:var(--ct-dim)}
.dm-table td.num,.dm-table th.num{text-align:right;font-family:var(--ct-mono)}
.dm-table td.who{max-width:230px;overflow:hidden;text-overflow:ellipsis}
.dm-check{display:inline-block;flex:none;padding:0 7px;border-radius:4px;font-size:12px;font-weight:600;line-height:1.5;
  background:var(--ct-amber-bg);color:var(--ct-orange);border:1px solid var(--ct-amber-line)}
.dm-card .row{gap:8px;min-height:32px;flex-wrap:wrap}

/* ---- Multi-Site clusters (docs/v3/multi-site.md, clusters/sites.py) ---------------------------------------------- */
/* The label every cluster carries. Multi-Site in the purple of the mock-up, Single-Site in the brand's light blue. */
.site-label{display:inline-block;font-size:12px;font-weight:600;line-height:1.5;padding:0 7px;border-radius:4px;
  border:1px solid var(--ct-blue-line-label);background:var(--ct-blue-bg-sel);color:var(--ct-blue-ink);white-space:nowrap;vertical-align:1px}
.site-label.multi{border-color:var(--ct-purple-line);background:var(--ct-purple-bg);color:var(--ct-purple-ink)}
.cl-name-line{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0}
.portal .cl-row .loc a{text-decoration:none;color:var(--ct-dim)}
.portal .cl-row .loc a:hover{text-decoration:underline}
.crumbs-plus{color:var(--ct-faint);font-weight:400}
.crumbs-plain{padding:2px 6px}
.t-type{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.t-also{display:block;font-size:12px;color:var(--ct-faint);font-weight:400;padding-top:1px}
/* The one-time card: which location is each site. */
.sites-card{border-left:4px solid var(--ct-purple);border-color:var(--ct-purple-line) var(--ct-purple-line) var(--ct-purple-line) var(--ct-purple)}
.sites-card-head{gap:2px}
.sites-grid{display:grid;grid-template-columns:minmax(110px,max-content) minmax(0,max-content) minmax(220px,280px);
  justify-content:start;align-items:center;gap:10px 24px}
.sites-name{font-weight:600}
.sites-pick{display:block}
.portal .sites-pick select{min-height:44px}
.sites-save{gap:10px 16px}
/* The Locations block of one cluster, on the location page. */
.loc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) 200px;align-items:center;
  gap:4px 12px;padding-left:12px;padding-right:12px}
.loc-grid>:last-child{justify-self:end;text-align:right}
.loc-table .c-name{width:18%}.loc-table .c-site{width:30%}.loc-table .c-type{width:18%}.loc-table .c-storage{width:16%}
.loc-table .c-act{width:18%}
.loc-acts{gap:6px}
@media (max-width:720px){
  .sites-grid{grid-template-columns:minmax(0,1fr)}
  .sites-grid .sites-nodes{margin-top:-8px}
  .sites-grid .sites-pick{margin-bottom:6px}
  .loc-grid{grid-template-columns:minmax(0,1fr)}
  /* On the phone a location's clusters show name, label and actions; type and storage are on the cluster page. */
  .loc-table .lt-wide{display:none}
  .loc-grid>:last-child{justify-self:start;text-align:left}
  .loc-list .loc-grid{padding:10px 12px}
}
/* The Equipment tab (clusters/equipment.py): a panel per location in the location's own colour. The colours stay
   clear of the red, orange, blue and green that mean risk and state; white on each is at least 5.9:1. */
.loc-c0{--loc:#6A3FB8;--loc-soft:var(--ct-purple-bg-soft)} .loc-c1{--loc:#B0307A;--loc-soft:#FBEAF3}
.loc-c2{--loc:#7D5F00;--loc-soft:#F8F1DC} .loc-c3{--loc:#8A2D9E;--loc-soft:#F6EAF8}
.eq-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:14px;align-items:start}
.eq-panel{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.eq-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:9px 14px;background:var(--loc);
  color:#FFFFFF;border-radius:7px 7px 0 0;list-style:none;cursor:pointer}
.eq-panel:not([open])>.eq-head{border-radius:7px}
.eq-head::-webkit-details-marker{display:none}
.portal .eq-head .eq-loc{color:#FFFFFF;font-size:16px;font-weight:600;text-decoration:none}
.portal .eq-head a.eq-loc:hover{text-decoration:underline}
.eq-main{font-size:12px;font-weight:600;background:var(--ct-surface);color:var(--loc);border-radius:4px;padding:0 7px;white-space:nowrap}
.eq-counts{margin-left:auto;font-size:13px}
.eq-site{font-size:13px;color:var(--ct-dim);background:var(--loc-soft);padding:6px 14px;border-bottom:1px solid var(--ct-rule)}
.eq-group{display:flex;justify-content:space-between;gap:10px;padding:7px 14px 5px;font-size:12px;font-weight:600;
  color:var(--loc-ink,var(--loc));background:var(--ct-ground);border-bottom:1px solid var(--ct-rule-soft)}
.eq-group .mono{font-weight:500;color:var(--ct-faint)}
.eq-row{display:grid;grid-template-columns:10px minmax(0,1fr) minmax(0,1.1fr) minmax(0,.8fr) 64px;align-items:center;
  gap:0 10px;padding:4px 14px;min-height:36px;box-sizing:border-box;border-bottom:1px solid var(--ct-rule-soft)}
.eq-row.eq-can{grid-template-columns:10px minmax(0,1fr) minmax(0,1.1fr) minmax(0,.8fr) 64px 40px}
/* Dutch and German words are longer ("Niet beoordeeld", "Verplaatsen"): wider last columns, so they never overlap
   (Hans, 26 Nov 2026). */
@media (min-width:721px){
  html:lang(nl) .eq-row:not(.lc-row),html:lang(de) .eq-row:not(.lc-row){grid-template-columns:10px minmax(0,1fr) minmax(0,1.1fr) minmax(0,.8fr) 104px}
  html:lang(nl) .eq-row.eq-can:not(.lc-row),html:lang(de) .eq-row.eq-can:not(.lc-row){grid-template-columns:10px minmax(0,1fr) minmax(0,1.1fr) minmax(0,.8fr) 104px 74px}
}
/* The device's address (Hans, 26 Nov 2026): what the measurement reached a node on, a BMC, switch or array its listed
   address. */
.eq-addr{font-size:12px;color:var(--ct-dim);min-width:0}
.eq-name{font-size:13px;font-weight:500;color:var(--ct-ink)}
.eq-model{font-size:13px;color:var(--ct-dim);display:flex;align-items:center;gap:6px;min-width:0}
.eq-new{font-size:12px;font-weight:600;background:var(--ct-surface);color:var(--ct-dim);border-radius:4px;padding:0 7px}
.eq-unknown{padding:0;margin-top:12px}
.eq-hand{flex:none;font-size:11px;line-height:16px;color:var(--ct-dim);border:1px solid var(--ct-rule);border-radius:4px;
  padding:0 5px;white-space:nowrap}
/* Hans, 14 Nov 2026: rows in a list keep one height. A cell with text that can grow uses .one-line (shortens with "...",
   full text in a title) instead of wrapping; a short status goes in a tag beside it, never as a second line. */
.one-line{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A table cell that takes the room the other columns leave and shortens with "..." (Corrected rules, What was wrong). */
td.fill-cell{width:100%;max-width:0}
.eq-open{font-size:13px;text-align:right;white-space:nowrap}
.portal .eq-open a{text-decoration:none}
.eq-missing{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 10px;padding:6px 14px;
  min-height:36px;box-sizing:border-box;font-size:13px;color:var(--ct-faint);border-bottom:1px solid var(--ct-rule-soft)}
.portal .eq-missing a{text-decoration:none;white-space:nowrap}
.eq-panel>:last-child{border-bottom:0}
/* Move: a quiet word at the end of the row; the choice opens under it. */
.eq-move{position:relative;justify-self:end}
.eq-move>summary{list-style:none;cursor:pointer;font-size:12px;color:var(--ct-faint);text-decoration:underline}
.eq-move>summary::-webkit-details-marker{display:none}
.eq-move>summary:hover{color:var(--ct-link)}
.eq-move[open]>.eq-pop{position:absolute;right:0;top:22px;z-index:5;width:260px;background:var(--ct-surface);gap:8px;
  border:1px solid var(--ct-rule);border-radius:var(--ct-r);box-shadow:var(--ct-pop-shadow);padding:12px}
.eq-pop form{display:grid;gap:8px;justify-items:start}
.portal .eq-pick{font-size:13px;width:100%}
.portal .eq-pick select{font-size:14px;padding:5px 8px;min-height:34px}
/* Not placed yet: above the panels, in the colour of the one-time card on the same page. */
.eq-loose{background:var(--ct-purple-bg-soft);border-color:var(--ct-purple-line);border-left:4px solid var(--ct-purple);padding:10px 14px;gap:8px}
.eq-loose-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
.eq-loose-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;background:var(--ct-surface);
  border:1px solid var(--ct-rule);border-radius:6px;padding:8px 12px}
.eq-place{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.portal .eq-place .eq-pick{display:flex;align-items:center;gap:8px;width:auto;font-weight:400}
.portal .eq-place select{width:auto;min-width:12em}
.eq-between{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow:hidden}
.ct-main .eq-between-head{padding:8px 14px;background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule);font-size:14px}
.eq-brow{display:flex;align-items:center;gap:10px;padding:8px 14px;color:var(--ct-dim)}
.eq-brow strong{font-weight:600;color:var(--ct-ink)}
.eq-filter{gap:8px}
@media (min-width:721px){
  /* Side by side, the panels stay open: only the location's name in the header is a link. */
  .eq-head{pointer-events:none;cursor:default}
  .eq-head a{pointer-events:auto}
}
@media (max-width:720px){
  .eq-panels{grid-template-columns:minmax(0,1fr)}
  .eq-head::before{content:"\25BE";width:12px}
  .eq-panel:not([open])>.eq-head::before{content:"\25B8"}
  .eq-counts{margin-left:0;flex-basis:100%;padding-left:24px}
  /* A row on the phone: dot, name, open findings and Move on one line, the model under the name. */
  .eq-row,.eq-row.eq-can{grid-template-columns:10px minmax(0,1fr) auto;gap:2px 10px;padding:6px 14px}
  .eq-row.eq-can{grid-template-columns:10px minmax(0,1fr) auto auto}
  .eq-row>.eq-model{grid-row:2;grid-column:2}
  .eq-row>.eq-model:empty{display:none}
  .eq-row>.eq-addr{grid-row:2;grid-column:3/-1;text-align:right}
  .eq-row>.eq-addr:empty{display:none}
  .eq-place{margin-left:0;width:100%}
  .portal .eq-place .eq-pick{flex:1 1 100%;flex-wrap:wrap}
  .portal .eq-place select{flex:1 1 auto;min-height:44px}
  .eq-move[open]>.eq-pop{width:240px}
  /* The location filter on the cluster's Risks tab scrolls sideways, as the filters on Risks do. */
  .eq-places .switch{max-width:100%;min-width:0}
  .eq-places .seg{overflow-x:auto;max-width:100%}
}
/* The Equipment tab's switch (List / Physical / VLANs / Subnets) and the network drawings (clusters/network.py), with
   the System Documentation's figure tokens (--dg-*, documents/docengine/html/sd.css) in light and dark. The drawing
   is the document's own SVG, rebuilt from a fixed list of elements: its light colours are attributes, these classes
   give it the portal's theme. The phone drawing replaces the screen drawing at 720 px and below. */
:root,:root:not([data-theme="light"]),:root[data-theme="dark"]{
  --dg-ink:#0F172A; --dg-ink-2:#334155; --dg-box:#FFFFFF; --dg-box-line:#64748B; --dg-tile:#E8EDF4;
  --dg-chip-line:#B4BFCE; --dg-ico:#1E293B; --dg-unm:#7B8799; --dg-net:#1D5FBF; --dg-plain:#B6C0CE; --dg-page:#FFFFFF;
}
@media screen and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --dg-ink:#F3F6FB; --dg-ink-2:#C5CEDD; --dg-box:#1F2A40; --dg-box-line:#8494B0; --dg-tile:#33425F;
    --dg-chip-line:#7889A8; --dg-ico:#E8EDF6; --dg-unm:#9AA8C0; --dg-net:#8FBDFF; --dg-plain:#55627A;
    --dg-page:#0D1322; --dg-fade:.6;
  }
}
@media screen{
  :root[data-theme="dark"]{
    --dg-ink:#F3F6FB; --dg-ink-2:#C5CEDD; --dg-box:#1F2A40; --dg-box-line:#8494B0; --dg-tile:#33425F;
    --dg-chip-line:#7889A8; --dg-ico:#E8EDF6; --dg-unm:#9AA8C0; --dg-net:#8FBDFF; --dg-plain:#55627A;
    --dg-page:#0D1322; --dg-fade:.6;
  }
}
.nd-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px}
.portal .nd-bar .seg a{min-height:36px;padding:7px 14px;font-weight:500}
.nd-note{font-size:13px;color:var(--ct-dim);margin:0 0 10px}
.nd-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.nd-view{overflow:auto;-webkit-overflow-scrolling:touch;background:var(--dg-page);padding:4px 0 0;max-width:100%}
.nd-view svg{display:block;margin:0 auto;max-width:100%;height:auto}
.nd-foot{padding:0 14px 12px;background:var(--dg-page);border-radius:0 0 7px 7px}
.nd-empty{padding:18px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.nd-empty p{flex:1 1 300px;margin:0}
.nd-rest{padding:0;overflow:hidden}
svg.dg{font-family:var(--ct-sans)}
svg.dg .dg-box{fill:var(--dg-box);stroke:var(--dg-box-line)}
svg.dg .dg-unm .dg-box{fill:none;stroke:var(--dg-unm)}
svg.dg .dg-tile,svg.dg .dg-chip-b{fill:var(--dg-tile)}
svg.dg .dg-chip-b{stroke:var(--dg-chip-line);stroke-width:1}
svg.dg .dg-chip.dg-unm .dg-chip-b{fill:none;stroke:var(--dg-unm)}
svg.dg .dg-chip-t{fill:var(--dg-ink);font-family:var(--ct-mono);font-weight:500}
svg.dg .dg-chip.dg-unm .dg-chip-t{fill:var(--dg-ink-2)}
/* An Azure Local logical network on a Subnets rail: a pill on the block's fill with an outline in the link colour. */
svg.dg .dg-lnet-b{fill:var(--dg-box);stroke:var(--dg-net);stroke-width:1.5}
svg.dg .dg-lnet-t{fill:var(--dg-ink);font-family:var(--ct-sans);font-weight:600}
svg.dg .dg-ico{color:var(--dg-ico)}
svg.dg .dg-name{fill:var(--dg-ink)} svg.dg .dg-unm .dg-name{fill:var(--dg-ink-2)}
svg.dg .dg-fact,svg.dg .dg-col,svg.dg .dg-lbl{fill:var(--dg-ink-2)}
svg.dg .dg-net{stroke:var(--dg-net)} svg.dg path.dg-unm{stroke:var(--dg-unm)} svg.dg .dg-plain{stroke:var(--dg-plain)}
svg.dg .dg-line{stroke-width:2} svg.dg .dg-line.dg-plain{stroke-width:1}
.dg-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;font-size:12px;color:var(--ct-dim)}
.dg-key{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.dg-key-i{color:var(--dg-ico)}
.dg-key-l{display:inline-block;width:22px;height:0;border-top:2px solid var(--dg-net)}
.dg-kl-unm{border-top:2px dashed var(--dg-unm)}
.dg-notes{margin:4px 0 0;font-size:12px;color:var(--ct-dim)}
.nd-view svg.dg-phone{display:none}
/* The VLANs view: the "Show" row (a pill per VLAN, a link to ?vlan=), and the drawings with one VLAN chosen
   (.nd-on): every chip, line and label that does not carry it (.nd-hit, set by the server and by
   js/network-vlans.js) fades to --dg-fade; the chips that carry it get an outline in the link colour and their lines
   grow to 2.5 px. The device blocks stay. */
.nd-pick{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;font-size:13px;color:var(--ct-dim)}
.portal .nd-pill{display:inline-flex;align-items:center;font:500 13px/1 var(--ct-sans);min-height:30px;padding:0 11px;
  border-radius:15px;border:1px solid var(--ct-line);background:var(--ct-surface);color:var(--ct-ink);
  text-decoration:none;white-space:nowrap}
.portal .nd-pill .mono{font-weight:600;margin-right:5px}
.portal .nd-pill[aria-current="true"]{background:var(--ct-ink);color:var(--ct-on-ink);border-color:var(--ct-ink)}
.nd-on svg.dg-vlan .dg-chip:not(.nd-hit),.nd-on svg.dg-vlan .dg-line:not(.nd-hit),
.nd-on svg.dg-vlan .dg-lbl:not(.nd-hit){opacity:var(--dg-fade,.45)}
.nd-on svg.dg-vlan .nd-hit .dg-chip-b{stroke:var(--dg-net);stroke-width:1.5}
.nd-on svg.dg-vlan path.nd-hit{stroke-width:2.5}
/* Zoom out, Zoom in, Fit and Find over each drawing (js/network-zoom.js shows the row; REQ S-04): what Find holds gets
   an outline and its words in the accent colour, the rest fades. Zoomed, the frame keeps a page-high window and pans
   by scroll, arrow keys or dragging. Under the drawing, "Shortened in the drawing" folds open on a table of each text
   the drawing cut, in full. A phone zooms with its fingers, so there the row is Find alone. */
/* Expand and Close (_network_figure.html): the System Documentation's own control (sd.css .dg-open, .dg-fig:target):
   the drawing laid over the whole page with its zoom, Find and key; Close or Esc puts it back. */
.nd-back{display:block;position:relative;top:-80px}
.nd-ex{display:flex;justify-content:flex-end;padding:8px 14px 0;background:var(--dg-page)}
.nd-open,.nd-close{font-size:12px;font-weight:600;color:var(--accent);text-decoration:none;white-space:nowrap;
  border:1px solid var(--ct-rule-soft);border-radius:6px;padding:4px 10px;min-height:24px}
.nd-open:hover,.nd-close:hover{border-color:var(--accent)}
.nd-close{display:none}
.nd-fig:target{position:fixed;inset:0;z-index:90;margin:0;background:var(--dg-page);display:flex;flex-direction:column;
  overflow:hidden}
.nd-fig:target .nd-open{display:none} .nd-fig:target .nd-close{display:inline-block}
.nd-fig:target .nd-view{flex:1 1 auto;min-height:0;max-height:none}
.nd-fig:target .nd-foot{max-height:30vh;overflow:auto}
.nd-fig:target .nd-view svg.dg-screen{display:block !important;margin:8px auto} .nd-fig:target .nd-view svg.dg-phone{display:none !important}
.nd-fig:target .nd-zoom{display:inline-flex !important}
.nd-fig:target .nd-view.nd-zoomed{max-height:none}
.nd-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 14px 4px;background:var(--dg-page)}
.nd-tools[hidden]{display:none}
.nd-zoom{display:inline-flex;gap:4px}
.portal .nd-tools .nd-z{min-height:32px;min-width:36px;padding:4px 10px;font-weight:600}
.portal .nd-find{flex:0 1 240px;min-width:0;min-height:32px;padding:4px 10px;font:14px var(--ct-sans)}
.nd-count{font-size:12.5px;color:var(--ct-dim)}
.nd-view.nd-zoomed{max-height:80vh;cursor:grab} .nd-view.nd-drag{cursor:grabbing;user-select:none}
.nd-view:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.nd-view.nd-finding svg.dg g:not(.nd-found) .dg-name,.nd-view.nd-finding svg.dg g:not(.nd-found) .dg-chip-t{opacity:.55}
.nd-view svg.dg .nd-found .dg-box,.nd-view svg.dg .nd-found .dg-chip-b{stroke:var(--accent);stroke-width:3}
.nd-view svg.dg .nd-found .dg-name,.nd-view svg.dg .nd-found .dg-chip-t,.nd-view svg.dg text.nd-found{fill:var(--accent)}
.nd-cut{margin:6px 0 0;font-size:12.5px}
.nd-cut summary{cursor:pointer;color:var(--ct-dim);font-weight:600;width:max-content;max-width:100%}
.nd-cut .tw{margin-top:6px;overflow-x:auto}
.nd-cut-t{width:100%;border-collapse:collapse;font-size:12.5px}
.nd-cut-t th,.nd-cut-t td{text-align:left;padding:5px 8px;border-bottom:1px solid var(--ct-rule-soft);vertical-align:top}
.nd-cut-t td.mono{overflow-wrap:break-word}
/* The device column holds the device name only, so it stays narrow; the text as drawn is short (a chip) and stays on
   one line; the text in full takes the rest of the width (Hans, 4 Dec 2026: "Tabelindeling niet mooi"). */
.nd-cut-t td.nd-cut-d{width:1%;white-space:nowrap;font-weight:600}
.nd-cut-t td.nd-cut-s{width:1%;white-space:nowrap}
@media (max-width:600px){
  .nd-cut-t thead{display:none}
  .nd-cut-t tr{display:block;padding:6px 0;border-bottom:1px solid var(--ct-rule-soft)}
  .nd-cut-t td,.nd-cut-t td.nd-cut-d,.nd-cut-t td.nd-cut-s{display:flex;gap:12px;width:auto;padding:1px 0;border:0;white-space:normal}
  .nd-cut-t td.mono::before{content:attr(data-l);flex:0 0 7em;color:var(--ct-dim);font-family:var(--ct-sans);font-size:12px}
}
@media (max-width:720px){ .nd-zoom{display:none} .portal .nd-find{flex:1 1 auto} .nd-tools{padding:8px 10px 4px} }
/* The Subnets view: "On both locations" names the subnets in the drawings of more than one location. */
.nd-shared>span{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline}
.nd-shared .mono{color:var(--ct-ink)}
/* Download draw.io (clusters/network.py drawio): right of the switch on the three drawing views; on a phone a line of
   its own under the switch, so the switch keeps its whole width, the button at its own width. */
.nd-dl{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.portal .nd-dl .btn{min-height:36px;padding:7px 14px;font-weight:500;white-space:nowrap}
@media (max-width:720px){
  .nd-dl{flex:1 1 100%;margin-left:0}
  .nd-view svg.dg-screen{display:none} .nd-view svg.dg-phone{display:block}
  .nd-view{padding:8px 0 0} .nd-view svg{width:calc(100% - 16px);max-width:400px}
  .nd-bar .seg{flex:1 1 0} .portal .nd-bar .seg a{flex:1 1 0;padding:7px 4px;text-align:center}
  .nd-foot{padding:0 10px 10px}
  .nd-pick{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .portal .nd-pill{flex:none}
}
/* The location page (clusters/location_page.py): the square in the location's colour, the Clusters tab on the grid of
   the start page with the other locations and the actions, the Equipment tab per cluster, and the Settings form. */
.loc-square{width:14px;height:14px;border-radius:3px;background:var(--loc);flex:none}
.cl-grid.lc-grid{grid-template-columns:28px minmax(120px,1fr) minmax(170px,1.5fr) 96px minmax(110px,1fr) 56px 56px
  64px 104px;gap:0 12px;min-width:920px}
.cl-grid.lc-grid.lc-acts{grid-template-columns:28px minmax(120px,1fr) minmax(170px,1.5fr) 96px minmax(110px,1fr) 56px
  56px 64px 104px 340px;min-width:1180px}
.lc-site{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px}
.lc-act{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:4px 0}
.portal .lc-act .ct-move select{min-width:0;width:auto;font-size:14px;padding:5px 8px;min-height:32px}
.lc-group{overflow:hidden}
.lc-group+.lc-group{margin-top:10px}
.lc-group-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:8px 14px;background:var(--loc-soft);
  border-left:4px solid var(--loc);border-bottom:1px solid var(--ct-rule);list-style:none;cursor:pointer}
.lc-group-head::-webkit-details-marker{display:none}
.lc-group-head::before{content:"\25BE";color:var(--loc-ink,var(--loc));width:10px}
.lc-group:not([open])>.lc-group-head{border-bottom:0}
.lc-group:not([open])>.lc-group-head::before{content:"\25B8"}
.portal .lc-group-head>a{font-size:15px;font-weight:600;text-decoration:none}
.lc-note{font-size:13px;color:var(--ct-dim)}
.portal .lc-note a{text-decoration:none}
.eq-row.lc-row{grid-template-columns:10px minmax(0,1.1fr) minmax(0,.9fr) minmax(0,1.4fr) minmax(0,.5fr) 72px;
  padding-left:28px}
.lc-kind,.lc-rack{font-size:13px;color:var(--ct-dim)}
.lc-sub{display:none}
.lc-settings{max-width:960px;box-sizing:border-box}
.lc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px 24px;align-items:start}
.lc-field{display:grid;gap:6px;min-width:0}
.lc-save{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px}
.lc-read dd{white-space:pre-line}
.lc-remove{max-width:960px;box-sizing:border-box}
@media (max-width:720px){
  .cl-grid.lc-grid,.cl-grid.lc-grid.lc-acts{min-width:0;grid-template-columns:minmax(0,1fr) auto}
  .cl-row>.lc-act{grid-column:1/-1}
  /* Three tabs fit side by side on the phone. */
  .portal .lc-tabs a{padding:8px 9px}
  .eq-row.lc-row{grid-template-columns:10px minmax(0,1fr) auto;padding-left:14px}
  .eq-row.lc-row>.lc-kind,.eq-row.lc-row>.eq-model,.eq-row.lc-row>.lc-rack{display:none}
  .lc-sub{display:block;grid-row:2;grid-column:2/-1;font-size:13px;color:var(--ct-dim)}
}
/* Measure the equipment (clusters/measure_views.py): a panel per equipment script, each in its own colour (white text
   on each: at least 5.1:1), the BMC module information, the equipment files that wait, and the instruction page. */
.dot.blue{background:var(--ct-blue-dot)}
.me-title{gap:10px}
.me-facts{color:var(--ct-dim)}
.me-intro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;
  padding:14px 16px;background:var(--ct-blue-bg-soft);border:1px solid var(--ct-blue-line-soft);border-radius:var(--ct-r)}
.me-intro-text{flex:1 1 420px;min-width:0}
.ct-main .me-intro h2{margin:0 0 4px;font-size:16px}
.me-intro p{margin:0;color:var(--ct-dim)}
.me-intro-acts{display:flex;flex-wrap:wrap;gap:10px}
.portal .me-btn{min-height:44px;padding:8px 16px}
.me-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;align-items:start}
.me-panel{--me:#1F5FBF;background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);min-width:0}
.me-panel.me-fabric{--me:#0B7A75} .me-panel.me-array{--me:#8A4B08}
.me-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;padding:10px 14px;
  background:var(--me);color:#FFFFFF;border-radius:7px 7px 0 0}
.ct-main .me-head h2{margin:0;font-size:16px;color:#FFFFFF}
.me-head .me-state{color:#FFFFFF}
.me-state{font-size:13px;color:var(--ct-dim)}
.me-body{padding:12px 14px 14px;gap:10px}
.me-body p{margin:0;color:var(--ct-dim)}
.me-body strong{color:var(--ct-ink)}
.me-rule{border-top:1px solid var(--ct-rule-soft);padding-top:12px}
.ct-main .me-rule h3{margin:0 0 8px;font-size:14px}
.me-msg{margin-bottom:8px;border-color:var(--me);color:var(--ct-ink)}
/* Hans, 13 Nov 2026: room for "From the measurement of ..." on one line. */
.me-src{white-space:nowrap}
.me-addr{display:grid;gap:2px;min-width:0}
.portal .me-addr input[type=text]{min-height:44px}
.me-src{font-size:12px;color:var(--ct-faint)}
.me-err{font-size:12px;color:var(--ct-red)}
.portal .me-addr input[aria-invalid="true"]{border-color:var(--ct-red)}
.me-way{border:1px solid var(--ct-rule);border-radius:6px;padding:10px 12px}
.me-way p{margin-top:2px}
.me-list{margin:0 0 6px;padding-left:20px;color:var(--ct-dim)}
.me-links{display:flex;flex-direction:column;gap:2px}
.portal .me-links a{text-decoration:none;font-weight:500;min-height:32px;display:flex;align-items:center}
.me-files{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow:hidden}
.me-files-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 12px;
  padding:9px 14px;background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule)}
.ct-main .me-files-head h2{margin:0;font-size:14px}
.me-file{display:grid;grid-template-columns:10px minmax(0,.7fr) minmax(0,.9fr) minmax(0,1.6fr) 150px minmax(0,1.8fr);align-items:center;
  gap:2px 12px;padding:8px 14px;min-height:40px;box-sizing:border-box;border-bottom:1px solid var(--ct-rule-soft)}
.me-kind{font-weight:500}
.me-dev{font-size:13px;color:var(--ct-dim);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-fname{font-size:12px;color:var(--ct-dim)}
.me-got{font-size:12px;color:var(--ct-dim);white-space:nowrap}
.me-fstate{color:var(--ct-dim)}
.me-fver{font-size:12px;color:var(--ct-dim)}
.me-file-none{margin:0;padding:10px 14px;border-bottom:1px solid var(--ct-rule-soft)}
.me-add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;padding:12px 14px}
.portal .me-pick{flex:1 1 320px;min-width:0}
.portal .me-pick input[type=file]{min-height:44px}
.me-doc{max-width:860px;box-sizing:border-box;overflow-wrap:anywhere}
.ct-main .me-doc h1{margin-top:0}
.me-doc pre{background:var(--ct-sunk);border-radius:6px;padding:10px 12px;overflow-x:auto;white-space:pre}
.me-doc code{font-family:var(--ct-mono);font-size:13px}
.me-doc li+li{margin-top:4px}
@media (max-width:720px){
  .me-panels{grid-template-columns:minmax(0,1fr)}
  .me-intro-acts,.me-intro-acts form{width:100%}
  .me-intro-acts .me-btn{width:100%}
  /* A file on the phone: the dot and the kind on one line, the device and the state under it. */
  .me-file{grid-template-columns:10px minmax(0,1fr)}
  .me-file>.me-dev,.me-file>.me-fname,.me-file>.me-got,.me-file>.me-fstate{grid-column:2}
  .me-add .me-btn{width:100%}
}

/* ---- Settings menu and Settings pages (Hans, 12 Nov 2026: "a hamburger for settings ... put all other configuration in there") */
/* The settings hamburger in the top bar: the website's .menu button (three strokes, a cross when open) and its box. */
.ct-ham{position:relative;flex:none}
.ct-ham>summary{list-style:none;display:block;background:transparent;color:#FFFFFF;border-radius:6px}
.ct-ham>summary::-webkit-details-marker{display:none}
.ct-ham>summary:hover,.ct-ham[open]>summary{background:var(--ct-bar-rule)}
.ct-ham[open] .ham{display:none}
.ct-ham[open] .kruis{display:inline}
.ct-ham-box{position:absolute;right:0;top:calc(100% + 11px);z-index:40;width:max-content;min-width:min(270px,calc(100vw - 16px));
  max-width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 70px);overflow-y:auto;overflow-x:hidden;box-sizing:border-box;
  padding:0 0 8px;background:var(--ct-bar);color:var(--ct-bar-ink);border:1px solid #ffffff33;border-radius:10px;
  box-shadow:0 12px 32px rgba(0,0,0,.45);font-size:14px;white-space:normal;overflow-wrap:anywhere}
/* static/js/settings-menu.js pins the open box to the window (position fixed, measured from the button), so it never
   runs past an edge, also when the page itself is wider than the window. */
.ct-ham-box.ct-pinned{position:fixed}
.ct-ham-who{display:flex;flex-direction:column;padding:10px 16px;border-bottom:1px solid var(--ct-bar-rule)}
.ct-ham-who strong{color:#FFFFFF;font-weight:600}
.ct-ham-who span{color:var(--ct-bar-dim);font-size:12px}
.ct-ham-head{margin:0;padding:12px 16px 4px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ct-bar-accent)}
.ct-ham-head.staff{color:#F5B169}
.ct-ham-as{margin-left:6px;padding:0 6px;border:1px solid #F5B169;border-radius:4px;color:#F5B169;letter-spacing:0;text-transform:none}
.portal .ct-ham-box a.ct-ham-line{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.portal .ct-ham-box a,.ct-ham-box button{display:flex;flex-direction:column;width:100%;box-sizing:border-box;
  padding:7px 16px 7px 13px;border:0;border-left:3px solid transparent;background:none;color:#FFFFFF;font:inherit;
  font-weight:500;text-align:left;text-decoration:none;cursor:pointer}
.ct-ham-box a small{color:var(--ct-bar-dim);font-size:12px;font-weight:400}
.portal .ct-ham-box a:hover,.ct-ham-box button:hover,.portal .ct-ham-box a[aria-current="page"]{background:var(--ct-bar-field);
  border-left-color:var(--ct-bar-accent);color:#FFFFFF}
.ct-ham-sep{border-top:1px solid var(--ct-bar-rule);margin:8px 0 4px}
/* Settings menu, Staff part: folding groups (Hans, 21 Nov 2026: "The staff menu is getting long ... group menu items").
   Each group is the fold Archiving introduced (18 Nov 2026), its items indented. The groups share name="ct-staff", so
   the browser closes the open one when another opens: no script. The summary is one row with the number of pages at
   the right before the arrow; an open group's name is amber, with a rule above and below. Every row has one height:
   the hint that used to be a second line is the link's title. */
.ct-ham-sub>summary{list-style:none;display:flex;flex-direction:row;align-items:center;gap:8px;padding:7px 34px 7px 13px;
  border-left:3px solid transparent;color:#FFFFFF;font-weight:500;cursor:pointer;position:relative}
.ct-ham-sub>summary::-webkit-details-marker{display:none}
.ct-ham-sub>summary::after{content:"";position:absolute;right:18px;top:14px;width:7px;height:7px;border-right:2px solid var(--ct-bar-dim);
  border-bottom:2px solid var(--ct-bar-dim);transform:rotate(-45deg)}
.ct-ham-sub[open]>summary::after{transform:rotate(45deg);top:11px}
.ct-ham-sub>summary .n{color:var(--ct-bar-dim);font-size:12px;font-weight:400;margin-left:auto}
.ct-ham-sub[open]>summary{color:#F5B169}
.ct-ham-sub[open]{border-top:1px solid var(--ct-bar-rule);border-bottom:1px solid var(--ct-bar-rule);padding-bottom:4px}
.ct-ham-sub[open]+.ct-ham-sub[open]{border-top:0}
.ct-ham-sub>summary:hover{background:var(--ct-bar-field);border-left-color:var(--ct-bar-accent)}
.portal .ct-ham-box .ct-ham-sub>a{padding-left:29px;flex-direction:row;align-items:center}
@media (max-width:720px){
  .ct-who{display:none}
  /* On a phone the sun/moon sits at the right, beside the menu, where Hans looks for it (16 Nov 2026). Signed in it
     stays in the bar too, between Search and the menu (Hans, 25 Nov 2026: "light/dark on top, not in menu"). */
  .ct-theme{margin-left:auto}
  .ct-top:has(.ct-ham)>.ct-theme{margin-left:0}
  .ct-ham{margin-left:0}
  .ct-ham-box{top:calc(100% + 4px);right:-8px}
  .portal .ct-ham-box a,.ct-ham-box button,.ct-ham-sub>summary{padding-top:11px;padding-bottom:11px}
  /* Rows are taller on a phone: the fold arrow moves down with them. */
  .ct-ham-sub>summary::after{top:18px}
  .ct-ham-sub[open]>summary::after{top:15px}
}
/* Staff changing a customer's settings: the note under the path bar. */
.ct-note.ct-note-staff{background:var(--ct-amber-bg);border-color:var(--ct-amber-line);border-left:4px solid var(--ct-orange)}
/* Settings > Locations: the staff tree's bands on its own columns. */
.t-tree.st-list{overflow:visible}
.t-grid.st-grid{grid-template-columns:minmax(300px,1.4fr) 130px 100px minmax(380px,1fr);min-height:44px}
.t-grid.st-grid.t-head{min-height:34px;border-radius:7px 7px 0 0}
.st-grid.t-loc-row{cursor:default}
.st-grid.t-loc-row .t-name{padding-left:4px;display:flex;align-items:center;gap:10px}
.st-grid.t-loc-row .t-name::before{content:none}
.portal .st-grid.t-loc-row .t-name a{font-size:15px}
.portal .st-grid.t-cl-row .t-name{padding-left:52px}
.st-grid.t-cl-row::before,.st-grid.t-cl-row:not(:last-child)::after{left:28px}
.st-grid.t-cl-row .t-type{grid-column:2/4}
.st-grid:last-child{border-radius:0 0 7px 7px}
.st-acts{display:grid;grid-template-columns:auto 168px auto;align-items:center;gap:6px 8px}
.st-acts.st-hint{display:block}
.st-why{font-size:12px;font-weight:500;color:var(--ct-orange);text-align:right}
.portal .btn[disabled]{background:var(--ct-sunk);border-color:var(--ct-rule);color:var(--ct-faint);cursor:not-allowed}
/* Slow buttons (static/js/busy.js, Hans 13 Nov 2026): busy, not greyed out, with a turning ring; a progress bar under an upload. */
.portal .btn.is-busy{cursor:progress;opacity:.85}
.portal .btn.primary.is-busy{background:var(--ct-primary);border-color:var(--ct-primary);color:var(--ct-on-primary)}
.portal .btn.is-busy::before{content:"";display:inline-block;width:.8em;height:.8em;margin-right:.45em;vertical-align:-.1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ct-turn .8s linear infinite}
@keyframes ct-turn{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.portal .btn.is-busy::before{animation:none}}
.portal .busy-progress{display:flex;align-items:center;gap:10px;margin-top:8px}
.portal .busy-progress progress{flex:1;max-width:420px;height:10px}
.portal .btn.st-remove:not([disabled]){color:var(--ct-red);border-color:var(--ct-red-line)}
.portal .btn.st-remove:not([disabled]):hover{border-color:var(--ct-red)}
.st-grid.st-editing{background:var(--ct-surface);box-shadow:inset 0 0 0 2px var(--ct-primary);border-left-color:var(--ct-primary)}
.st-rename{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0}
.portal .st-rename input[type=text]{width:240px;font-size:15px;font-weight:600;padding:5px 8px;min-height:32px}
.st-grid.st-editing .t-name{grid-column:1/4}
.portal .st-grid.t-loc-row .st-rename a{font-size:13px;font-weight:400;color:var(--ct-link);text-decoration:underline}
@media (max-width:720px){
  .t-grid.st-grid{grid-template-columns:minmax(0,1fr) auto;min-height:0}
  .st-grid>.st-country{display:none}
  .st-grid.t-loc-row>.st-count{display:block}
  .st-grid.t-loc-row .t-name{padding-left:0}
  .t-grid.st-grid>.st-acts{grid-column:1/-1;justify-self:stretch;display:flex;flex-wrap:wrap;padding:4px 0 2px 24px}
  .t-grid.st-grid>.lc-act{justify-self:stretch}
  .st-acts .st-why{order:9;flex-basis:100%;text-align:left}
  .st-acts .st-why:empty{display:none}
  .portal .st-grid.t-cl-row .t-name{padding-left:30px}
  .st-grid.t-cl-row::before,.st-grid.t-cl-row:not(:last-child)::after{left:14px}
  .st-grid.t-cl-row::before{width:12px}
  .st-grid.t-cl-row .t-type{grid-column:auto}
  .st-grid.t-cl-row>.lc-act{display:flex;grid-column:1/-1;padding-left:30px}
  .st-grid.st-editing .t-name{grid-column:1/-1}
  .portal .st-rename input[type=text]{flex:1 1 100%;width:100%}
}

/* ---- Packs and versions (staff, packs/) --------------------------------------------------------------------------- */
.pk-vers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pk-ver{background:var(--ct-surface);border:1px solid var(--ct-rule);border-left:4px solid var(--ct-blue-edge);border-radius:var(--ct-r);padding:8px 14px 10px;display:flex;flex-direction:column;gap:1px;min-width:0}
.pk-ver .k{font-size:12px;font-weight:600;color:var(--ct-dim)}
.pk-ver .v{font-family:var(--ct-mono);font-size:20px;font-weight:600;color:var(--ct-ink);line-height:1.3}
.pk-ver .d{font-size:12px;color:var(--ct-faint)}
.pk-run{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.pk-run .small{text-align:right;line-height:1.35}
.pk-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow-x:auto}
.pk-grid{display:grid;grid-template-columns:minmax(250px,1.5fr) 64px minmax(150px,1fr) 100px 100px 100px minmax(230px,1.15fr) 104px;gap:0 12px;align-items:center;padding:0 12px;min-width:1180px;box-sizing:border-box}
.pk-grid.list-head{min-height:34px;font-size:13px;font-weight:600;color:var(--ct-ink);border-bottom:1px solid var(--ct-rule)}
.pk-grid .num{text-align:right}
.pk-grid>:last-child{justify-self:end}
details.pk-kind>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:0 12px;min-height:34px;background:var(--ct-blue-bg);border-top:1px solid var(--ct-blue-line);border-left:4px solid var(--ct-blue-edge);font-weight:600;min-width:1180px;box-sizing:border-box}
details.pk-kind>summary::-webkit-details-marker{display:none}
details.pk-kind>summary::before{content:"";width:0;height:0;border-left:6px solid var(--ct-link);border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform .12s}
details.pk-kind[open]>summary::before{transform:rotate(90deg)}
details.pk-kind>summary .small{font-weight:400;color:var(--ct-dim)}
details.pk-kind.k-os>summary{background:var(--ct-purple-bg);border-color:var(--ct-purple-line-soft);border-left-color:var(--ct-purple-edge)}
details.pk-kind.k-attn>summary .small b{color:var(--ct-red);font-weight:600}
.pk-row{min-height:44px;padding-top:4px;padding-bottom:4px;border-top:1px solid var(--ct-rule-soft);color:var(--ct-dim)}
.pk-row:hover{background:var(--ct-sunk)}
.pk-name{display:flex;flex-direction:column;min-width:0;padding-left:16px}
.portal .pk-name a{color:var(--ct-ink);font-weight:600;text-decoration:none}
.portal .pk-name a:hover{color:var(--ct-link);text-decoration:underline}
.pk-name small{font-size:12px;color:var(--ct-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-v{font-family:var(--ct-mono);font-weight:600;color:var(--ct-ink)}
.pk-new{font-family:var(--ct-mono);font-size:13px;line-height:1.35}
.pk-fresh{display:inline-block;font-family:var(--ct-sans,inherit);font-size:11px;font-weight:600;padding:0 6px;border-radius:4px;background:var(--ct-green-bg-pill);color:var(--ct-green-ink);margin-left:4px}
.pk-state{display:flex;flex-direction:column;min-width:0}
.pk-state small{font-size:12px;color:var(--ct-faint);padding-left:14px}
.portal .btn.pk-s{min-height:30px;padding:3px 10px;font-size:13px}
.pk-legend{display:flex;flex-wrap:wrap;gap:4px 18px}
.pk-two{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;align-items:start}
.pk-card{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.pk-card.wait{border-left:4px solid var(--ct-orange);background:var(--ct-amber-bg-soft)}
.pk-facts{display:grid;grid-template-columns:repeat(7,auto);gap:4px 28px;justify-content:start;align-items:start}
.pk-facts div{display:flex;flex-direction:column}
.pk-facts .k{font-size:12px;color:var(--ct-faint)}
.pk-facts .v{font-weight:600;color:var(--ct-ink)}
.pk-t{width:100%;border-collapse:collapse}
.pk-t th{text-align:left;font-size:13px;font-weight:600;padding:6px 12px 6px 0;border-bottom:1px solid var(--ct-rule);white-space:nowrap}
.pk-t td{padding:7px 12px 7px 0;border-bottom:1px solid var(--ct-rule-soft);vertical-align:top;color:var(--ct-dim)}
.pk-t tr:last-child td{border-bottom:0}
.pk-t td strong{color:var(--ct-ink)}
.pk-t .mono{font-size:13px;white-space:nowrap}
.pk-login{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;background:var(--ct-amber-bg-soft);border:1px solid var(--ct-amber-line);border-radius:6px;padding:10px 12px}
.pk-login label{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600;color:var(--ct-dim)}
.portal .pk-login input{min-height:32px;padding:4px 8px;font-size:14px;width:230px}
.pk-pills{display:flex;flex-wrap:wrap;gap:4px}
.pk-pill{font-size:12px;padding:0 7px;line-height:1.6;border-radius:4px;background:var(--ct-blue-bg);border:1px solid var(--ct-blue-line);color:var(--ct-blue-ink-pill);white-space:nowrap}
.pk-pill.os{background:var(--ct-purple-bg);border-color:var(--ct-purple-line-soft);color:var(--ct-purple-ink)}
.pk-inline{display:inline-flex;gap:6px;align-items:center;margin:0}
.portal .pk-inline select{width:auto;font-size:13px;padding:3px 6px;min-height:30px}
.pk-run form{margin:0}
.pk-row form{margin:0}
.pk-changed{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;word-break:break-all}
.pk-changed .small{white-space:nowrap;word-break:normal}
.pk-log{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.pk-url{word-break:break-all}
.pk-off td{opacity:.6}
.pk-add{display:flex;gap:8px;align-items:center}
.portal .pk-add input{flex:1;min-height:30px;padding:3px 8px;font-size:13px}
.pk-why{flex-basis:100%}
@media (max-width:720px){
  .pk-vers{grid-template-columns:1fr 1fr}
  .pk-run{justify-content:flex-start}.pk-run .small{text-align:left}
  .pk-list{background:transparent;border:0;overflow:visible;display:flex;flex-direction:column;gap:8px}
  .pk-grid.list-head{display:none}
  details.pk-kind{display:flex;flex-direction:column;gap:8px}
  details.pk-kind>summary{min-width:0;border-radius:6px;border-top:0}
  .pk-grid{min-width:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 12px}
  .pk-row{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);margin-top:8px}
  .pk-name{padding-left:0}.pk-name small{white-space:normal}
  .pk-row>.pk-v::before{content:"v";font-weight:400;color:var(--ct-faint)}
  .pk-row>.pk-new{grid-column:1/-1;white-space:normal}
  .pk-row>.pk-new:empty{display:none}
  .pk-row>[data-l]{font-size:13px}
  .pk-row>[data-l]::before{content:attr(data-l) " ";font-family:var(--ct-sans,"Source Sans 3",sans-serif);font-size:12px;color:var(--ct-faint)}
  .pk-row>.pk-next{display:none}
  .pk-row>.pk-state{grid-column:1/-1}
  .pk-grid>:last-child{grid-column:1/-1;justify-self:start}
  .pk-row>:last-child .btn:not(.primary){display:none}
  .pk-two{grid-template-columns:1fr}
  .pk-facts{grid-template-columns:1fr 1fr}
  .pk-t thead{display:none}.pk-t,.pk-t tbody,.pk-t tr,.pk-t td{display:block}
  .pk-t tr{padding:8px 0;border-bottom:1px solid var(--ct-rule-soft)}.pk-t td{border:0;padding:1px 0}
  .portal .pk-login input{width:100%}.pk-login label{flex:1 1 100%}
}

/* ---- Staff › Customers: archive, restore, export, import and delete a customer (accounts/customer_views.py) ------ */
.portal .ct-ham-box a.ct-ham-danger{color:#FFB4A8}
.portal .t-org-row .t-acts{display:flex;gap:18px;align-items:center;justify-content:flex-end}
.portal .t-org-row .t-acts a.t-arch{font-size:12px;font-weight:400;color:var(--ct-dim);text-decoration:underline}
.portal .t-org-row .t-acts a.t-arch:hover{color:var(--ct-link-hover)}
/* Staff > Customers: one list, the tree's look on its own columns. */
.t-grid.cu-grid{grid-template-columns:minmax(140px,1.2fr) minmax(84px,.8fr) 72px 66px 56px 100px 0 270px;min-height:40px}
.cu-grid.t-head{min-height:34px}
.cu-band{display:flex;align-items:center;gap:10px;padding:0 14px;min-height:36px;font-weight:600;font-size:14px;
  background:var(--ct-bar);color:#FFFFFF;border-left:4px solid var(--ct-bar-accent)}
.cu-band small{font-weight:400;font-size:12px;color:var(--ct-bar-dim)}
.cu-band.arch{background:var(--ct-amber-bg);color:var(--ct-ink);border-left-color:var(--ct-orange);border-top:1px solid var(--ct-amber-line);border-bottom:1px solid var(--ct-amber-line)}
.cu-band.arch small{color:var(--ct-dim)}
.cu-row{border-top:1px solid var(--ct-rule-soft);color:var(--ct-dim)}
.cu-row:hover{background:var(--ct-sunk)}
.portal .cu-row .t-name a{font-weight:600;text-decoration:none}
.cu-row.arch .t-name{color:var(--ct-ink);font-weight:600}
.cu-phone{display:none}
.cu-acts{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.portal .cu-acts .btn{padding:3px 10px;min-height:28px;font-size:13px}
.portal .btn.cu-del{color:var(--ct-red);border-color:var(--ct-red-line)}
.portal .btn.cu-del:hover{border-color:var(--ct-red);color:var(--ct-red)}
.cu-tag{display:inline-block;margin-left:8px;padding:0 7px;border-radius:4px;font-size:12px;font-weight:600;
  background:var(--ct-amber-bg);border:1px solid var(--ct-amber-line);color:var(--ct-orange);vertical-align:middle}
/* The customer's own page for staff: what it has (left), what you can do (right). */
.cu-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.cu-two.wide-left{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.cu-card{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r);overflow:hidden}
.cu-card>h2{padding:9px 14px;border-bottom:1px solid var(--ct-rule);display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.cu-card>h2 small{font-weight:400;font-size:12px;color:var(--ct-faint)}
.cu-card.go{border-color:var(--ct-red-line)}
.cu-card.go>h2{background:var(--ct-red-bg);color:var(--ct-red);border-bottom-color:var(--ct-red-line)}
.cu-card.stay>h2{background:var(--ct-green-bg);color:var(--ct-green);border-bottom-color:var(--ct-green-line)}
.cu-card.stay{border-color:var(--ct-green-line)}
.cu-card.blue>h2{background:var(--ct-blue-bg);border-bottom-color:var(--ct-blue-line)}
.cu-card.amber{border-color:var(--ct-amber-line)}
.cu-card.amber>h2{background:var(--ct-amber-bg);border-bottom-color:var(--ct-amber-line)}
.cu-body{padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.cu-list{display:grid;grid-template-columns:minmax(150px,auto) 44px minmax(0,1fr);margin:0}
.cu-list>*{padding:6px 0;border-top:1px solid var(--ct-rule-soft);margin:0}
.cu-list>:nth-child(-n+3){border-top:0}
.cu-list dt{padding-left:14px;font-weight:600;color:var(--ct-ink)}
.cu-list .n{font-family:var(--ct-mono);text-align:right;color:var(--ct-ink);font-weight:500}
.cu-list dd{padding-left:14px;padding-right:14px;color:var(--ct-dim)}
.cu-list.fx{grid-template-columns:minmax(120px,auto) minmax(0,1fr)}
.cu-list.fx>:nth-child(3){border-top:1px solid var(--ct-rule-soft)}
.cu-who{display:grid;grid-template-columns:minmax(120px,auto) minmax(110px,auto) minmax(0,1fr);margin:0}
.cu-who>*{padding:5px 0 5px 14px;border-top:1px solid var(--ct-rule-soft)}
.cu-who>:nth-child(-n+3){border-top:0}
.cu-who .nm{font-weight:600;color:var(--ct-ink)}
.cu-who .out{color:var(--ct-red);font-weight:500;padding-right:14px}
.cu-who .keep{color:var(--ct-green);font-weight:500;padding-right:14px}
.cu-sub{padding:7px 14px;font-size:12px;font-weight:600;color:var(--ct-dim);background:var(--ct-sunk);
  border-top:1px solid var(--ct-rule);border-bottom:1px solid var(--ct-rule)}
.cu-confirm{display:block}
.portal .cu-confirm input{display:block;margin-top:4px}
.portal .cu-confirm input{width:100%;max-width:22rem;box-sizing:border-box}
.cu-ask{border-left:4px solid var(--ct-primary)}
/* The info button: explanation on demand instead of text on the screen. Hover, keyboard focus or tap opens it. */
.ct-i{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--ct-link);color:var(--ct-link);
  font:italic 600 11px/1 Georgia,serif;cursor:help;vertical-align:1px;margin-left:2px;flex:none;background:var(--ct-surface);user-select:none}
.ct-i:hover,.ct-i:focus,.ct-i.open{background:var(--ct-link);color:var(--ct-on-ink);outline:none}
.ct-i:focus-visible{box-shadow:0 0 0 2px var(--ct-surface),0 0 0 4px var(--ct-primary)}
.ct-i-pop{display:none;position:absolute;z-index:60;margin-top:22px;margin-left:-10px;width:max-content;max-width:min(300px,calc(100vw - 32px));box-sizing:border-box;padding:8px 10px;
  border-radius:6px;background:var(--ct-bar);color:#FFFFFF;font:400 13px/1.4 var(--ct-sans);text-align:left;text-transform:none;letter-spacing:0;
  white-space:normal;overflow-wrap:anywhere;box-shadow:var(--ct-tip-shadow);cursor:default;justify-self:start;align-self:start}
.ct-i.r .ct-i-pop{justify-self:end;margin-left:0;margin-right:-10px}
.ct-i:hover .ct-i-pop,.ct-i:focus .ct-i-pop,.ct-i:focus-within .ct-i-pop,.ct-i.open .ct-i-pop{display:block}
.cu-open,.cu-card{overflow:visible}
.cu-card>h2{border-radius:7px 7px 0 0}
.cu-open>.cu-band:first-child{border-radius:7px 7px 0 0}
.cu-open>.cu-row:last-child{border-radius:0 0 7px 7px}
/* Export and import of a customer. */
.cu-exp{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:8px 10px;border-radius:6px;border:1px solid var(--ct-green-line);border-left:4px solid var(--ct-green);background:var(--ct-green-bg)}
.cu-exp.none{border-color:var(--ct-amber-line);border-left-color:var(--ct-orange);background:var(--ct-amber-bg)}
.cu-exp strong{color:var(--ct-ink)}
.portal .cu-tick{display:flex;flex-direction:row;gap:8px;align-items:flex-start;color:var(--ct-dim);font-weight:400}
.portal .cu-tick input{margin:3px 0 0;width:auto;flex:none}
.cu-who .txt{padding-right:14px;color:var(--ct-dim)}
.t-grid.ex-grid{grid-template-columns:minmax(0,1fr) 138px 52px 62px 92px 72px;min-height:38px;min-width:0}
/* An export on the customer page (Hans, 21 Nov 2026, "format Exports better"): the file name on one line, the facts
   under it, Download on the right; every row the same two lines high. */
.ex-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 12px;align-items:center;
  padding:8px 16px;min-height:52px;box-sizing:border-box}
.ex-row .ex-name{grid-column:1;grid-row:1}
.ex-row .ex-meta{grid-column:1;grid-row:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ex-row .ex-dl{grid-column:2;grid-row:1/3}
.cu-cmd{font-family:var(--ct-mono);font-size:12px;background:var(--ct-bar);color:#E6EDF7;padding:8px 10px;border-radius:6px;overflow-x:auto;white-space:nowrap}
.cu-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 10px;border:1px dashed var(--ct-line);border-radius:6px;background:var(--ct-sunk)}
.cu-rule{color:var(--ct-orange);font-weight:600}
.cu-ok{color:var(--ct-green);font-weight:600}
.cu-ask .row{gap:8px}
.cu-closed{border-left:4px solid var(--ct-orange)}
/* The customer list needs about 910px; below that its rows stack as on a phone, so the actions never fall off the edge. */
@media (max-width:940px){
  .t-grid.cu-grid{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 12px}
  .cu-grid.t-head{display:none}
  .cu-grid>.cu-hide{display:none}
  .cu-phone{display:inline;flex:1 1 100%}
  .cu-acts{flex-wrap:wrap}
  .t-grid.cu-grid>.cu-acts{grid-column:1/-1;justify-self:stretch;justify-content:flex-start;padding-top:4px}
}
@media (max-width:720px){
  .t-grid.cu-grid{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 12px}
  .cu-grid>.cu-hide{display:none}
  .cu-phone{display:inline;flex:1 1 100%}
  .cu-acts{flex-wrap:wrap}
  .cu-grid>.cu-meta{grid-column:1/-1;font-size:12px;justify-self:start;text-align:left}
  .t-grid.cu-grid>.cu-acts{grid-column:1/-1;justify-self:stretch;justify-content:flex-start;padding-top:4px}
  .cu-two,.cu-two.wide-left{grid-template-columns:minmax(0,1fr)}
  .ct-i{width:20px;height:20px;font-size:13px;vertical-align:-3px}
  .ct-i-pop,.ct-i.r .ct-i-pop{position:fixed;left:16px;right:16px;width:auto;max-width:none;margin:22px 0 0}
  .t-grid.ex-grid{grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:8px 12px}
  .ex-grid>.cu-hide{display:none}
  .ex-grid .mono{overflow-wrap:anywhere}
  .cu-list{grid-template-columns:minmax(0,1fr) 44px}
  .cu-list>dd{grid-column:1/-1;border-top:0!important;padding-top:0;padding-right:14px}
  .cu-list>dd:empty{display:none}
  .cu-list>:nth-child(-n+3){border-top:1px solid var(--ct-rule-soft)}
  .cu-list>:nth-child(-n+2){border-top:0}
  .cu-list dd{padding-left:14px}
  .cu-list .n{padding-right:14px}
  .cu-list.fx{grid-template-columns:minmax(0,1fr)}
  .cu-list.fx>*{border-top:1px solid var(--ct-rule-soft)}
  .cu-list.fx>:first-child{border-top:0}
  .cu-list.fx>dd{border-top:0!important;padding-top:0}
  .cu-list.fx>dt{padding-bottom:2px}
  .cu-who{grid-template-columns:minmax(0,1fr) auto}
  .cu-who>.role{text-align:right;padding-right:14px}
  .cu-who>.out,.cu-who>.keep,.cu-who>.txt{grid-column:1/-1;border-top:0;padding-top:0}
  .cu-who>:nth-child(3){border-top:0}
  .portal .t-org-row .t-acts{justify-content:flex-start}
  .cu-ask .row .btn{flex:1 1 100%}
}
.portal .cu-acts form{display:inline}
.portal .cu-cmd{margin:0}


/* The release desk: every finding of the measurement under the Top 5 (Hans, 13 Nov 2026). */
.d-all{width:100%;border-collapse:collapse;font-size:.9rem}
.d-all th{text-align:left;font-weight:600;padding:4px 8px;border-bottom:1px solid var(--ct-line)}
.d-all td{padding:4px 8px;border-bottom:1px solid var(--ct-rule);vertical-align:top}
/* A finding opens in place on the desk, to read what the customer reads (Hans, 13 Nov 2026). */
.d-open summary{cursor:pointer;color:var(--ct-ink)} .d-open summary:hover{text-decoration:underline}
.d-open[open] summary{font-weight:600} .d-open p{margin:6px 0 0;max-width:72ch}
.d-all td:first-child{white-space:nowrap}

/* Release desk review (measurements/review.py, static/js/desk-review.js; mock-up approved 13 Nov 2026). */
.dr-tabs{margin-top:4px}
.dr-tabbar{display:flex;align-items:flex-end;gap:12px;border-bottom:1px solid var(--ct-rule)}
.dr-tabbar>.dr-tabs{flex:1 1 auto;min-width:0;border-bottom:0}
/* The head: the cluster and its measured date on one line, waiting since behind the info button. */
.dr-head{gap:8px;align-items:center;flex-wrap:nowrap}
.dr-head h1{min-width:0}
.dr-measured{font-size:15px;font-weight:400;color:var(--ct-faint);white-space:nowrap}
/* The status line in a panel (Hans, 27 Nov 2026, design "One status line", in place of the step bar 1 Texts, 2 Review,
   3 Release), a plain Finding texts link beside it, and the one next-step button at its right. On a phone that button
   and More sit in a bar fixed to the bottom of the screen, and More opens the aside as a sheet above it. */
.dr-stepbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.dr-line{display:flex;align-items:center;gap:16px;min-width:0;min-height:32px;padding:6px 12px;
  border:1px solid var(--ct-rule);border-radius:var(--ct-r);background:var(--ct-surface)}
.dr-line>.sl{flex:1 1 auto}
.dr-ftlink{flex:none;white-space:nowrap}
.dr-next>.dr-idle{padding-top:15px}   /* level with the text of the line beside it */
.dr-next{display:flex;align-items:flex-start;gap:8px;max-width:360px}
.dr-next form{margin:0}
.dr-relbox{display:flex;flex-direction:column;gap:4px;min-width:0}
.dr-relbox p{margin:0}
.dr-relbox[hidden],.dr-next [hidden]{display:none}
.portal .dr-relall,.portal .dr-relsoft{display:none}   /* phone only (below) */
.dr-tag .dr-short{display:none}   /* a shorter word for a tag on a phone (below) */
.portal .dr-next .dr-release{white-space:normal;text-align:center}
@media (min-width:721px){.portal .dr-more-btn{display:none}}
.portal .dr-tabs a[aria-selected="true"]{color:var(--ct-ink);font-weight:600;border-bottom-color:var(--ct-primary)}
.dr-filters{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dr-meta .dr-link{margin-left:auto}
.dr-chip{border:1px solid var(--ct-line);background:var(--ct-surface);border-radius:999px;padding:3px 10px;cursor:pointer;color:var(--ct-dim);font:inherit}
.dr-chip[aria-pressed="true"]{background:var(--ct-ink);border-color:var(--ct-ink);color:var(--ct-on-ink)}
.dr-link{background:none;border:0;padding:0;color:var(--ct-link);cursor:pointer;font:inherit;font-size:12px;text-decoration:underline}
.dr-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--ct-blue-bg-soft);border:1px solid var(--ct-primary);border-radius:var(--ct-r);padding:8px 10px;position:sticky;top:var(--ct-top-h);z-index:2}
.dr-bulk input[type=text]{flex:1 1 220px;min-width:0}
.dr-rows{display:flex;flex-direction:column}
.dr-empty{padding:10px 0}
.dr-r{border-top:1px solid var(--ct-rule-soft);padding:8px 2px;display:grid;grid-template-columns:22px 86px minmax(0,1fr) auto;gap:6px 10px;align-items:start}
.dr-r.sel{background:var(--ct-blue-bg-soft)}
.dr-r.out .dr-t{color:var(--ct-faint);text-decoration:line-through}
.dr-t{font-weight:600}
.dr-meta{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin-top:2px}
.dr-was{display:block;font-size:11px;color:var(--ct-faint);margin-top:2px}
.dr-tag{font-size:12px;padding:0 8px;border:1px solid var(--ct-rule);border-radius:999px;color:var(--ct-dim);white-space:nowrap}
/* Gate A (reporting redesign v3.0, block 9; mock-up board 2): "since last time", the agent's note, the banner. */
.dr-tag.flag{border-color:var(--ct-orange);color:var(--ct-orange);background:var(--ct-amber-bg);font-weight:600}
.dr-tag.same{border-color:transparent;padding-left:0}
.dr-chg{font-size:13px;color:var(--ct-dim);margin-top:2px}
.dr-note{margin-top:8px;max-width:560px;font-size:13.5px;background:var(--ct-surface);border:1px solid var(--ct-rule);border-left:4px solid var(--ct-info);border-radius:0 6px 6px 0;padding:8px 12px}
.dr-note .gl{display:block;font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ct-info);margin-bottom:2px}
.dr-note.wait{color:var(--ct-dim);border-left-color:var(--ct-rule)}
.dr-r.noted{background:var(--ct-amber-bg-soft)}
.dr-gate{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0;padding:10px 14px;border-left:4px solid var(--ct-orange);border-radius:0 6px 6px 0;background:var(--ct-amber-bg)}
.dr-gate p{margin:0;flex:1 1 320px}
.dr-tag.new{border-color:var(--ct-sev-low);color:var(--ct-sev-low)}.dr-tag.back{border-color:var(--ct-orange);color:var(--ct-orange)}.dr-tag.carry{background:var(--ct-sunk)}.dr-tag.cust{border-color:var(--ct-orange);color:var(--ct-orange)}
.dr-seg{display:inline-flex;border:1px solid var(--ct-line);border-radius:6px;overflow:hidden}
.dr-seg button{border:0;border-left:1px solid var(--ct-line);background:var(--ct-surface);padding:4px 9px;cursor:pointer;color:var(--ct-dim);white-space:nowrap;font:inherit}
.dr-seg button:first-child{border-left:0}
.dr-seg button.on.show{background:var(--ct-ink);color:var(--ct-on-ink)}.dr-seg button.on.na{background:var(--ct-sev-accepted);color:var(--ct-on-sev)}.dr-seg button.on.ok{background:var(--ct-green);color:var(--ct-on-sev)}
.dr-dec{display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.dr-why{grid-column:3/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.dr-why input{flex:1 1 240px;min-width:0}
/* Saving… / Saved beside a box (item 12): one short word, never wraps, keeps the row its height. */
.dr-saved{font-weight:400;white-space:nowrap}
.dr-saved:empty{display:none}
.dr-review{display:flex;align-items:center;gap:6px;color:var(--ct-faint)}
.dr-why .dr-review input{flex:0 0 auto;width:auto}
.dr-need{color:var(--ct-red);font-size:12px}
.dr-more{grid-column:3/-1;background:var(--ct-sunk);border-radius:6px;padding:10px;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.dr-more p{margin:0;max-width:80ch}
.dr-written{display:flex;flex-direction:column;gap:8px}.dr-wp p,.dr-wp ol,.dr-wp ul{margin:2px 0 0;max-width:80ch}.dr-wp ol{padding-left:20px}
/* A section in Details reads as the report does: paragraphs apart, a list as a list (Hans, 2 Dec 2026). */
.dr-wp p+p,.dr-wp ul+p,.dr-wp ol+p{margin-top:8px}.dr-wp ul:not(.plain){padding-left:20px;margin-top:4px}.dr-wp li+li{margin-top:3px}.dr-wp p,.dr-wp li{overflow-wrap:anywhere}
.dr-more label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--ct-faint)}
.dr-more .full{grid-column:1/-1}
.dr-more textarea,.dr-more input,.dr-more select{font:inherit;font-size:14px;color:var(--ct-ink)}
/* The measured rows behind a finding (desk-review.js evTable): compact, the flagged rows marked. */
.dr-ev{display:flex;flex-direction:column;gap:4px;min-width:0}
.dr-evh{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.dr-evw{overflow-x:auto;background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:6px}
.dr-evt{border-collapse:collapse;width:100%;font-size:12px}
.dr-evt th{text-align:left;font-weight:600;font-size:12px;color:var(--ct-dim);padding:4px 6px;border-bottom:1px solid var(--ct-rule);white-space:nowrap}
.dr-evt td{padding:3px 6px;border-top:1px solid var(--ct-rule-soft);font-family:var(--ct-mono);font-variant-numeric:tabular-nums;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis}
.dr-evt tbody tr:first-child td{border-top:0}
.dr-evt tr.hit td{background:var(--ct-amber-bg)}
.dr-evt tr.hit td:first-child{box-shadow:inset 3px 0 0 var(--ct-orange);font-weight:600}
.dr textarea{width:100%;box-sizing:border-box;resize:vertical}
.dr-gap{border-top:1px solid var(--ct-rule-soft);padding-top:8px;display:grid;gap:4px}
.dr-top5{margin:0;padding-left:20px;display:grid;gap:4px}
.dr-facts>summary{cursor:pointer;list-style:none}.dr-facts>summary h2{display:inline}
.dr-cv h3{font-size:13px;font-weight:600;color:var(--ct-faint);text-transform:uppercase;letter-spacing:.05em;margin:8px 0 0}
.dr-item{border-top:1px solid var(--ct-rule-soft);padding:8px 0;display:grid;gap:3px}
.r-eng,.rk-eng{border-left:3px solid var(--ct-primary);padding-left:8px;color:var(--ct-dim);display:block}
.rk-title{display:flex;flex-direction:column;gap:2px}
.rk-left-out{margin-top:12px}.rk-left-out>summary{cursor:pointer;font-weight:600}
body.dr-saving .dr-r button,body.dr-saving .dr-bulk button{cursor:progress}
.dr[hidden],.dr-bulk[hidden],#dr-gaps-panel[hidden]{display:none}
.dr-sum{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 10px;margin:0}
.dr-sum dt{font-size:12px;color:var(--ct-faint);padding-top:2px}.dr-sum dd{margin:0}
.dr-facts>summary h2::before{content:"\25B8 ";color:var(--ct-faint)}.dr-facts[open]>summary h2::before{content:"\25BE "}
@media (max-width:820px){.d-layout.dr>aside{order:0}}
@media (max-width:720px){
  .dr-stepbar{grid-template-columns:minmax(0,1fr)}
  .dr-line{align-items:flex-start;gap:10px;padding:8px 10px}
  .dr-line .sl{grid-template-rows:auto auto}
  .dr-line .sl-what{white-space:normal}   /* one panel, not a row of a list: the whole text, on more lines */
  .dr-next>.dr-idle{flex:1 1 0;padding-top:0}
  .dr-next{position:fixed;left:0;right:0;bottom:0;z-index:40;max-width:none;flex-wrap:wrap;align-items:center;
    background:var(--ct-surface);border-top:1px solid var(--ct-line);box-shadow:var(--ct-pop-shadow);
    padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
  .dr-next>.dr-go,.dr-next>.dr-relbox{flex:1 1 0;min-width:0}
  .dr-next .dr-go .btn,.dr-next .dr-relbox .btn{width:100%}
  .portal .dr-next .btn{min-height:44px}
  .dr-next>.dr-relbox{display:contents}
  .dr-next>.dr-relbox[hidden]{display:none}
  .dr-next>.dr-relbox>form{flex:1 1 0;min-width:0}
  .dr-next>.dr-relbox>p,.dr-next>.dr-relbox>.dr-relall,.dr-next>.dr-relbox>.dr-relsoft{flex:1 0 100%;order:-1}
  /* The hold in at most 3 lines, Show all opens it; the soft lines fold into one line that opens them. */
  .dr-next>.dr-relbox>#dr-relmsg:not(.open):not([hidden]){display:-webkit-box;-webkit-box-orient:vertical;
    -webkit-line-clamp:3;line-clamp:3;overflow:hidden}
  .dr-next>.dr-relbox>#dr-relmsg.open{max-height:40vh;overflow-y:auto}
  .portal .dr-next>.dr-relbox>.dr-relall:not([hidden]),.portal .dr-next>.dr-relbox>.dr-relsoft:not([hidden]){
    display:block;text-align:left;margin:0;padding:6px 0;min-height:32px}
  .dr-next>.dr-relbox:not(.soft-open)>#dr-relwords,.dr-next>.dr-relbox:not(.soft-open)>#dr-plainmsg{display:none}
  .dr-next>.dr-relbox.soft-open>#dr-relwords,.dr-next>.dr-relbox.soft-open>#dr-plainmsg{max-height:25vh;overflow-y:auto}
  .portal .dr-more-btn{display:inline-flex;flex:none}
  body.portal:has(#dr-next){padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  body.portal:has(#dr-next .dr-relbox>p:not([hidden])){padding-bottom:calc(var(--dr-bar,120px) + 8px)}
  /* More: the aside as a sheet above the bar */
  .d-layout.dr>.dr-aside{display:none}
  .d-layout.dr>.dr-aside.open{display:flex;position:fixed;left:0;right:0;bottom:calc(65px + env(safe-area-inset-bottom));
    z-index:39;max-height:70vh;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px;background:var(--ct-ground);
    border-top:1px solid var(--ct-line);box-shadow:var(--ct-pop-shadow)}
  /* Filters on one row that slides sideways, Tick all in view at its end. */
  .dr-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .dr-chip,.dr-filters .dr-link{flex:none;white-space:nowrap}
  /* A finding: level, number and title; where on one line; the decision and Details on one line. */
  .dr-r{grid-template-columns:22px auto minmax(0,1fr);gap:4px 8px;padding:8px 0}
  .dr-r>input[type=checkbox]{grid-column:1;grid-row:1;margin-top:3px}
  .dr-sevc{grid-column:2;grid-row:1}
  .dr-body{grid-column:3;grid-row:1;min-width:0}
  .dr-t{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dr-meta{flex-wrap:nowrap;overflow:hidden}
  .dr-meta>*{flex:none}
  .dr-meta>.dr-where{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .dr-dec{grid-column:2/-1;grid-row:2;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}
  .dr-meta .dr-link{font-size:13px}
  .dr-meta .dr-lk-w{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* The tick and Details always show: tags take their fixed short labels and are never clipped; only where gives
     way. "Unchanged" is the normal state, so it is left to screen readers, as "looked at" is. */
  .dr-meta>.dr-tag{flex:none}
  .dr-tag .dr-long{display:none}.dr-tag .dr-short{display:inline}
  .dr-meta>.dr-ph-sr{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);
    white-space:nowrap}
  .dr-seg button{padding:4px 8px}
  .dr-why,.dr-more{grid-column:1/-1}
}
/* The narrowest phones (320 px; Hans, 4 Dec 2026: Details was cut off on 10 rows). Where gives way first, as before;
   only when the tags, the tick and Details alone do not fit does the line wrap, with Details at its end, never past
   the edge. The decision takes the row's full width so Acceptable is not cut either. */
@media (max-width:400px){
  .dr-meta{flex-wrap:wrap;overflow:visible}
  .dr-meta>.dr-where{flex:1 1 0;min-width:3.5em;max-width:max-content}
  .dr-dec{grid-column:1/-1}
  .dr-seg button{padding:4px 7px}
}
/* One finding (clusters/finding.html). */
.fd-head{gap:10px;align-items:baseline;flex-wrap:nowrap}
.fd-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:0}
.fd-facts dt{color:var(--ct-faint);font-size:12px}
.fd-facts dd{margin:0;overflow-wrap:anywhere}
/* Risks page rows stay one line (Hans, 14 Nov 2026): title and cluster place shorten, a note is a tag. */
.rk-grid .rk-line{display:flex;flex-direction:row;align-items:baseline;gap:6px;min-width:0}
/* The cluster name never wraps (Hans, 18 Nov 2026: "AZLCL01-CL" broke at its hyphen); the location gives way. */
.rk-grid .rk-cluster>a{flex:none;white-space:nowrap}
.rk-grid .rk-cluster>.one-line{min-width:3em}
.rk-tag{flex:none;font-size:11px;line-height:16px;color:var(--ct-dim);border:1px solid var(--ct-rule);border-radius:4px;
  padding:0 5px;white-space:nowrap;align-self:center}

/* ---- Switch and array addresses on "Measure the equipment" (templates/clusters/_addresses.html) ------------------- */
.me-eq-form,.me-eq-read{display:grid;gap:8px}
.me-eq-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.portal .me-eq-brand{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--ct-ink)}
.portal .me-eq-tick{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;font-weight:400;color:var(--ct-ink)}
.portal .me-eq-tick input{width:18px;height:18px;margin:0}
.me-eq-rows{display:grid;gap:8px}
.me-eq-head{font-size:12px;color:var(--ct-faint);align-items:end}
.portal .me-eq-row input[type=text]{min-height:44px;width:100%;box-sizing:border-box;min-width:0;padding-left:7px;padding-right:7px;font-size:13px}
.portal .me-eq-x{min-height:44px;width:44px;padding:0;font-size:18px;line-height:1;color:var(--ct-dim)}
.portal .me-eq-x:hover{color:var(--ct-red);border-color:var(--ct-red)}
.me-eq-grp{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.me-eq-form .help{margin:0}
.me-eq-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.me-nologin{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--ct-ink)!important;background:var(--ct-sunk);border-radius:6px;padding:6px 10px;margin:0 0 8px}
.me-nologin svg{flex:none}
@media (max-width:720px){.me-eq-acts .me-btn{flex:1 1 auto}}

/* ---- One row layout for BMCs, switches and arrays (measure-align design by Fable, Hans approved 17 Nov 2026) ------- */
/* Panels: the same blocks start at the same height in all three (subgrid); Save and the links sit at the bottom.      */
.me-panels{align-items:stretch}
.me-panel{display:grid;grid-template-rows:subgrid;grid-row:span 4;row-gap:0}
.me-body{display:contents}
.me-how{display:grid;gap:10px;align-content:start;padding:12px 14px}
.me-how p,.me-rule p{margin:0;color:var(--ct-dim)}
.me-panel .me-rule{margin:0 14px;padding:12px 0 4px;display:flex;flex-direction:column}
.me-panel .me-rule>.me-eq-form,.me-panel .me-rule>.me-eq-read{flex:1 1 auto}
.me-panel .me-rule>h3{margin:0 0 8px}
.me-panel .me-rule.me-empty{border:0;padding:0}
.me-panel .me-links{padding:4px 14px 12px}
.ct-main .me-rule h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Brand line: 36 px in all three; the BMC brand is a box like the select, dashed and sunk = cannot be changed.        */
.me-eq-form,.me-eq-read{grid-template-rows:auto auto 1fr;align-content:start}
.me-eq-top{min-height:36px;flex-wrap:nowrap}
.portal .me-eq-brand select,.me-eq-ro{min-height:36px;min-width:160px;box-sizing:border-box;font-size:14px;padding:4px 8px}
.me-eq-ro{display:inline-flex;align-items:center;border:1px dashed var(--ct-line);border-radius:6px;background:var(--ct-sunk);
  color:var(--ct-ink);font-weight:400;cursor:default}
.me-eq-ro.none{color:var(--ct-faint)}
/* Rows: Name | Address | source tag | remove. One line, 44 px, the same columns in every panel. Name 40: a switch
   name like AmsStorSW1 fits whole (17 Nov 2026, it showed as "AmsStorSW:"), and so does haastor1.splgroup.net.   */
.me-eq-row{display:grid;grid-template-columns:minmax(0,40fr) minmax(0,60fr) 60px 44px;align-items:center;gap:6px;min-height:44px}
.me-eq-row:not(.named){grid-template-columns:minmax(0,1fr) 60px 44px}
.me-eq-row.me-eq-head{min-height:20px}
.me-eq-head>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.me-eq-rows{align-content:start}
.me-eq-name{font-size:13px;color:var(--ct-ink)}
.me-tag{justify-self:start;cursor:default}
.me-tag.err{color:var(--ct-red);border-color:var(--ct-red)}
.me-eq-read .me-eq-row{min-height:36px}
.me-eq-read .me-eq-row>.mono,.me-eq-read .me-addr .mono{font-size:13px}
/* Foot of each list: option line (arrays), one help line, the buttons. Pinned to the bottom of the panel.            */
.me-eq-foot{display:grid;gap:8px;align-content:end;justify-items:start;padding-top:4px}
.me-eq-foot .help{margin:0}
/* The Azure (ARM) and Azure Migrate cards (devices/azure_ids.py, design of 18 Nov 2026): a row of their own under the
   devices, two per row from about 1100 px; fixed rows Field | Value | source tag, no brand line. */
.me-panels.me-az{grid-template-columns:repeat(auto-fill,minmax(min(520px,100%),1fr));margin-top:14px}
.me-panel.me-azure{--me:#4B3FA0} .me-panel.me-migrate{--me:#7A2E7A}
.me-eq-row.ids{grid-template-columns:128px minmax(0,1fr) 60px}
.me-eq-label{font-size:13px;color:var(--ct-ink)}
.me-eq-form.ids,.me-eq-read.ids{grid-template-rows:auto 1fr}
@media (max-width:720px){
  .me-panel{display:block}
  .me-how{padding-bottom:0}
  .me-eq-head{display:none}
  .me-eq-row.named{grid-template-columns:minmax(0,1fr) auto 44px;grid-template-areas:"name tag x" "addr addr addr";gap:4px 6px}
  .me-eq-row.named.fixed{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name tag" "addr addr"}
  .me-eq-row.named>:nth-child(1){grid-area:name}
  .me-eq-row.named>.me-addr{grid-area:addr}
  .me-eq-row.named>.me-tag{grid-area:tag}
  .me-eq-row.named>.me-eq-x{grid-area:x}
  .me-eq-row.fixed{min-height:0}
  .me-eq-rows{gap:10px}
  .portal .me-eq-row input[type=text]{font-size:16px}
  .me-eq-top{flex-wrap:wrap}
}

/* ---- dark mode: the rules that differ in more than a token (design of 15 Nov 2026) -------------------------------- */
/* Each rule is written twice, once per selector, as the tokens are. In order: the switch shows the sun; the navy top bar
   gets a thin line to part it from the dark page; Critical stays black with the red ring and white text (decision E2);
   the Timeline bars get the bright fills with dark numbers (white on Critical, whose ring is drawn inside its edge), dark
   hatch lines and, on a hatched part, a halo in the segment's colour; the date field gets the dark field; a location's
   colour used as text gets a lighter twin (--loc-ink) while its panel head keeps the colour; the "main" tag on that head
   stays white. */
@media screen and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .ct-theme .i-sun{display:block}
  :root:not([data-theme="light"]) .ct-theme .i-moon{display:none}
  :root:not([data-theme="light"]) .ct-top{border-bottom:1px solid var(--ct-bar-rule)}
  :root:not([data-theme="light"]) .s-medium{fill:#FFA94D;background:#FFA94D}
  :root:not([data-theme="light"]) .s-low{fill:#4DABF7;background:#4DABF7}
  :root:not([data-theme="light"]) .s-critical{fill:#000000;background:#000000}
  :root:not([data-theme="light"]) .c-critical{background:#000000}
  :root:not([data-theme="light"]) .t-n{fill:#0B0F1A;stroke:none}
  :root:not([data-theme="light"]) .s-critical+.t-n{fill:#FFFFFF}
  :root:not([data-theme="light"]) #tl-hatch rect{fill:#0B0F1A;fill-opacity:.55}
  :root:not([data-theme="light"]) .key.acc{background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(11,15,26,.6) 3px 5px)}
  :root:not([data-theme="light"]) .t-hatch+.t-n{paint-order:stroke;stroke-width:5px;stroke-linejoin:round}
  :root:not([data-theme="light"]) .s-high.acc+.t-hatch+.t-n{stroke:#FF6B6B}
  :root:not([data-theme="light"]) .s-medium.acc+.t-hatch+.t-n{stroke:#FFA94D}
  :root:not([data-theme="light"]) .s-low.acc+.t-hatch+.t-n{stroke:#4DABF7}
  :root:not([data-theme="light"]) .portal input[type=date]{background:var(--ct-surface);color:var(--ct-ink);border:1px solid var(--ct-line);border-radius:6px}
  :root:not([data-theme="light"]) .dot.red{box-shadow:0 0 0 3px #ff6b6b26}
  :root:not([data-theme="light"]) .loc-c0{--loc-ink:#B9A2F5;--loc-soft:#1D1736}
  :root:not([data-theme="light"]) .loc-c1{--loc-ink:#F28CC2;--loc-soft:#2A1423}
  :root:not([data-theme="light"]) .loc-c2{--loc-ink:#E3C04F;--loc-soft:#262010}
  :root:not([data-theme="light"]) .loc-c3{--loc-ink:#DB93EA;--loc-soft:#27152C}
  :root:not([data-theme="light"]) .eq-main{background:#FFFFFF}
}
@media screen{
  :root[data-theme="dark"] .ct-theme .i-sun{display:block}
  :root[data-theme="dark"] .ct-theme .i-moon{display:none}
  :root[data-theme="dark"] .ct-top{border-bottom:1px solid var(--ct-bar-rule)}
  :root[data-theme="dark"] .s-medium{fill:#FFA94D;background:#FFA94D}
  :root[data-theme="dark"] .s-low{fill:#4DABF7;background:#4DABF7}
  :root[data-theme="dark"] .s-critical{fill:#000000;background:#000000}
  :root[data-theme="dark"] .c-critical{background:#000000}
  :root[data-theme="dark"] .t-n{fill:#0B0F1A;stroke:none}
  :root[data-theme="dark"] .s-critical+.t-n{fill:#FFFFFF}
  :root[data-theme="dark"] #tl-hatch rect{fill:#0B0F1A;fill-opacity:.55}
  :root[data-theme="dark"] .key.acc{background-image:repeating-linear-gradient(135deg,transparent 0 3px,rgba(11,15,26,.6) 3px 5px)}
  :root[data-theme="dark"] .t-hatch+.t-n{paint-order:stroke;stroke-width:5px;stroke-linejoin:round}
  :root[data-theme="dark"] .s-high.acc+.t-hatch+.t-n{stroke:#FF6B6B}
  :root[data-theme="dark"] .s-medium.acc+.t-hatch+.t-n{stroke:#FFA94D}
  :root[data-theme="dark"] .s-low.acc+.t-hatch+.t-n{stroke:#4DABF7}
  :root[data-theme="dark"] .portal input[type=date]{background:var(--ct-surface);color:var(--ct-ink);border:1px solid var(--ct-line);border-radius:6px}
  :root[data-theme="dark"] .dot.red{box-shadow:0 0 0 3px #ff6b6b26}
  :root[data-theme="dark"] .loc-c0{--loc-ink:#B9A2F5;--loc-soft:#1D1736}
  :root[data-theme="dark"] .loc-c1{--loc-ink:#F28CC2;--loc-soft:#2A1423}
  :root[data-theme="dark"] .loc-c2{--loc-ink:#E3C04F;--loc-soft:#262010}
  :root[data-theme="dark"] .loc-c3{--loc-ink:#DB93EA;--loc-soft:#27152C}
  :root[data-theme="dark"] .eq-main{background:#FFFFFF}
}

/* The phone's PDF viewer (templates/measurements/pdf_view.html, static/js/pdf-view.js): a dark bar with the title,
   Save and an X in the top right corner; the pages one under the other at the width of the screen. */
.pv-body{background:var(--ct-sunk);margin:0;min-height:100vh}
.pv-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;height:52px;
  padding:0 max(8px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
  padding-top:env(safe-area-inset-top);background:var(--ct-bar);color:var(--ct-bar-ink)}
.pv-title{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.pv-save{flex:none;color:var(--ct-bar-ink);text-decoration:none;padding:6px 12px;border:1px solid var(--ct-bar-rule);border-radius:6px}
.pv-close{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;
  color:var(--ct-bar-ink);text-decoration:none;font-size:32px;line-height:1}
.pv-save:hover,.pv-close:hover{color:var(--ct-bar-accent)}
.pv-pages{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 8px calc(24px + env(safe-area-inset-bottom))}
.pv-page{display:block;width:100%;max-width:1100px;height:auto;background:#fff;box-shadow:0 1px 3px rgba(10,16,36,.18)}
.pv-msg{margin:24px 16px;color:var(--ct-dim);text-align:center}
.pv-msg.fail{color:var(--ct-red)}

/* ---- Customers, Locations, Clusters: the top bar items and their lists (cx-; design /mnt/project-files/portal-mockup/customers-menu/) -------------------------------------------------------------- */
/* The staff-only item in the top bar, with the staff amber of the hamburger's Staff head as its underline. */
.portal .ct-menu a.cx-staff{color:#F5B169}
.portal .ct-menu a.cx-staff:hover{color:#FFD9AE}
.portal .ct-menu a.cx-staff[aria-current="page"]{color:#FFFFFF;border-bottom-color:#F5B169}
/* Demo, for a prospect in their own organisation (accounts/context.py demo_link): the demo's purple (.nw-tag.demo) as a
   dot, the word in a light purple. The bar is dark in both themes, so neither changes with the theme. */
.portal .ct-menu a.cx-demo{color:#C9B8F7}
.portal .ct-menu a.cx-demo::before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;
  border-radius:50%;background:#7048E8;box-shadow:0 0 0 1.5px #C9B8F766;vertical-align:1px}
.portal .ct-menu a.cx-demo:hover{color:#FFFFFF}
/* The tool row over the tree: filter, one expand/collapse button, sort (phone only), the totals. */
.cx-tools{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.cx-find{position:relative;flex:0 1 300px;min-width:0}
.portal .cx-find input{width:100%;box-sizing:border-box;height:36px;min-height:36px;padding:0 30px 0 10px;font:inherit;font-size:14px;
  border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink)}
.portal .cx-find input:focus{outline:2px solid var(--ct-primary);outline-offset:1px}
.portal .cx-find input::placeholder{color:var(--ct-faint)}
.portal .cx-clear{position:absolute;right:2px;top:2px;width:32px;height:32px;border:0;background:none;color:var(--ct-faint);font-size:18px;line-height:1;cursor:pointer}
.portal .cx-tools .btn{min-height:36px;min-width:112px}
.cx-sort{display:none}
.cx-total{margin-left:auto;white-space:nowrap}
/* The columns. On top of .t-grid, like .cu-grid. */
.cx-tree{overflow:visible}
.t-grid.cx-grid{grid-template-columns:minmax(250px,2.2fr) minmax(170px,.9fr) 68px 100px 84px 54px 124px 190px;min-height:40px;gap:0 10px}
/* Free: the customer's free first measurement (orders/balance.py free_first_line), one tag; hidden on a phone (.cx-h). */
.cx-grid>.cx-free{white-space:nowrap;overflow:hidden}
.cx-grid>.cx-free .state{font-size:13px;max-width:100%}
.cx-grid>.cx-free .mono{font-size:12px}
.cx-grid.t-head{min-height:34px;border-radius:7px 7px 0 0}
.cx-grid>*{min-width:0}
.cx-grid .t-name{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap}
.cx-grid .t-name::before{flex:none;width:12px!important}
.cx-grid .t-name>a,.cx-grid .t-name>.cx-nm{min-width:0;overflow:hidden;text-overflow:ellipsis}
.cx-grid .t-name .t-flag,.cx-grid .t-name .cu-tag{margin-left:0;flex:none}
/* The customer's name comes first (Hans, 3 Dec 2026: "H…" beside two tags): the tags beside it give way before it
   does, cut with … themselves, down to a few letters; only then the name is cut. */
.cx-grid.t-org-row .t-name>a{flex:0 1 auto}
.cx-grid.t-org-row .t-name>.cu-tag,.cx-grid.t-org-row .t-name>.nw-tag,.cx-grid.t-org-row .t-name>.dm-check{flex:0 99 auto;min-width:4ch;overflow:hidden;text-overflow:ellipsis}
/* A partner's customer on staff Customers (.cx-man): its locations and their clusters one step further in. */
.cx-man>.t-loc>.t-loc-row .t-name{padding-left:46px}
.portal .cx-man>.t-loc>.t-cl-row .t-name{padding-left:98px}
.cx-man>.t-loc>.t-cl-row::before,.cx-man>.t-loc>.t-cl-row:not(:last-child)::after{left:72px}
@media (max-width:720px){
  .cx-man>.t-loc>.t-loc-row .t-name{padding-left:24px}
  .portal .cx-man>.t-loc>.t-cl-row .t-name{padding-left:58px}
  .cx-man>.t-loc>.t-cl-row::before,.cx-man>.t-loc>.t-cl-row:not(:last-child)::after{left:44px}
}
/* "via" and the partner's name is never cut (Hans, 3 Dec 2026: "vi…"); the last columns give the name their spare room. */
.cx-grid.t-org-row .t-name>.cu-tag.cx-via{flex:none}
.cx-grid .t-count,.cx-grid .t-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-wrap:nowrap}
.cx-grid .t-type{display:flex;gap:8px}
.cx-also{font-size:12px;color:var(--ct-faint);min-width:0;overflow:hidden;text-overflow:ellipsis}
.cx-never{color:var(--ct-faint);font-family:var(--ct-sans)}
.portal .cx-acts{display:flex;gap:16px;align-items:center;justify-content:flex-end;white-space:nowrap}
.portal .cx-acts a,.portal .cx-acts .linkish{font-size:12px}
.portal .t-org-row .cx-acts a{color:var(--ct-dim)}
.portal .t-org-row .cx-acts a:hover{color:var(--ct-link-hover)}
.portal .t-org-row .cx-acts a.t-open{color:var(--ct-link);font-size:13px}
.cx-tree .t-org-row .num,.cx-tree .t-org-row .mono,.cx-tree .t-loc-row .num,.cx-tree .t-loc-row .mono{color:var(--ct-dim)}
/* A location reads as a detail of its customer: lighter and a step smaller than the customer's name. */
.portal .cx-tree .t-loc-row .t-name a{font-weight:500;font-size:14px}
/* A closed customer or location takes no room (Hans, 22 Nov 2026: empty space under customers after Collapse all):
   some browsers kept the height of the open rows for a closed <details>, so its rows are taken out explicitly. */
.cx-tree details:not([open])>:not(summary){display:none}
.cx-tree details:not([open])::details-content{display:none}
.cx-tree .t-org:last-of-type:not([open])>.t-org-row,.cx-tree>details:last-child:not([open])>summary{border-radius:0 0 7px 7px}
/* A row that the filter found: the found letters are marked. */
.cx-tree mark{background:var(--ct-mark);color:inherit;padding:0 1px;border-radius:2px}
.cx-none{padding:14px;color:var(--ct-faint)}
/* The bands under the tree: archived customers, archived clusters, exports of deleted customers. Closed by default. */
.cx-band{cursor:pointer;list-style:none}
.cx-band::-webkit-details-marker{display:none}
.cx-band::before{content:"\25B8";display:inline-block;width:12px;color:var(--ct-orange)}
details[open]>.cx-band::before{content:"\25BE"}
.cx-fold+.cx-fold>.cx-band{border-top:0}
.t-grid.cx-agrid{grid-template-columns:minmax(200px,1.5fr) minmax(150px,1fr) 100px 110px minmax(100px,.7fr) 300px;min-height:40px}
.cx-agrid>*{min-width:0}
.cx-agrid .t-name,.cx-agrid>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-agrid .cu-acts{overflow:visible}
.cx-only-phone{display:none}
/* The legend in the info box: one line per dot. */
.cx-leg{display:grid;grid-template-columns:14px minmax(0,1fr);gap:5px 8px;align-items:baseline}
.cx-leg .dot{align-self:center;box-shadow:0 0 0 1.5px #ffffff40}
.cx-leg i{grid-column:1/-1;font-style:normal;color:#C9D1DE;padding-top:3px;border-top:1px solid #2C3549;margin-top:2px}
.ct-i-pop.cx-pop{--ct-red:#FF6B6B;--ct-orange:#FFA94D;--ct-green:#51CF66;--ct-grey:#8A93A8;max-width:min(340px,calc(100vw - 32px))}
/* ---- the customer's own item: the organisation's name in the bar, and its tree Location > Cluster ---- */
.portal .ct-menu a.cx-org{flex:0 1 auto;min-width:64px;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.portal .ct-menu.cx-menu a:not(.cx-org){flex:none}
.t-grid.cx-grid.cx-cgrid{grid-template-columns:minmax(230px,1.5fr) minmax(170px,.9fr) 66px 56px 70px 118px 104px 176px}
.cx-c .t-loc-row .t-name{padding-left:4px}
.portal .cx-c .t-cl-row .t-name{padding-left:52px}
.cx-c .t-cl-row::before,.cx-c .t-cl-row:not(:last-child)::after{left:28px}
.cx-c>.t-loc:first-of-type>.t-loc-row{border-top:0}
.cx-c>.t-loc:last-of-type:not([open])>.t-loc-row{border-radius:0 0 7px 7px}
.portal .cx-acts a.btn{padding:3px 10px;min-height:28px;font-size:13px;min-width:128px}
.cx-c .strong-num{font-weight:600}
/* ---- Locations: its own item between the first item and Clusters; a flat list of locations ---- */
.t-grid.cx-grid.cx-lgrid.s{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) 70px minmax(200px,1.5fr) 78px 112px 84px 90px}
.t-grid.cx-grid.cx-lgrid.c{grid-template-columns:minmax(170px,1fr) 70px minmax(220px,1.6fr) 66px 56px 70px 118px 104px}
.cx-lrow{border-top:1px solid var(--ct-rule-soft);border-left:4px solid var(--ct-blue-edge);color:var(--ct-dim)}
.cx-lrow:hover{background:var(--ct-blue-bg)}
.cx-lrow .t-name::before{content:none}
.portal .cx-lrow .t-name a{color:var(--ct-ink);font-weight:600;text-decoration:none}
.portal .cx-lrow .t-name a:hover{text-decoration:underline}
.portal .cx-lrow .cx-cust a{text-decoration:none}
.cx-lrow>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-lrow>.cx-acts{overflow:visible}
.cx-names{display:flex;gap:8px;align-items:baseline}
.cx-names .mono{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis}
@media (min-width:721px){.portal .ct-ham-box .cx-ph{display:none}}
@media (max-width:720px){
  /* No room for six on a phone (Hans): Locations leaves the bar there; it is reached through the first item's tree.
     Since 21 Nov 2026 the customer's own name leaves it too (the settings menu has it), so the bar is one row:
     Clusters, Risks, Reports (staff: Customers first), the search icon and the menu. */
  .portal .ct-menu.cx-menu{gap:0}
  .portal .ct-menu.cx-menu a{padding-left:5px;padding-right:5px}
  .portal .ct-menu.cx-menu a.cx-wide,.portal .ct-menu.cx-menu a.cx-org{display:none}
  .cx-names .mono{display:none}
  .cx-grid.cx-lrow .t-name .cx-also{display:inline}
  .cx-find{flex:1 0 100%}
  .portal .cx-find input{height:44px;font-size:16px}
  .portal .cx-clear{height:40px;width:40px}
  .portal .cx-tools .btn{min-height:40px}
  .portal .cx-sort{display:block;flex:1 1 0;min-width:0;min-height:40px;height:40px;font-size:15px;padding:0 8px}
  .cx-total{display:none}
  /* One line per row on a phone too: name, one fact, one thing to tap. */
  .t-grid.cx-grid,.t-grid.cx-grid.cx-cgrid,.t-grid.cx-grid.cx-lgrid.s,.t-grid.cx-grid.cx-lgrid.c,.t-grid.cx-agrid{grid-template-columns:minmax(0,1fr) auto auto;gap:0 10px;padding:0 12px;min-height:44px}
  .t-grid.cx-grid.t-org-row{grid-template-columns:minmax(0,1fr) auto auto auto}
  .cx-grid>*,.cx-agrid>*{grid-column:auto!important}
  .t-grid.cx-grid>.cx-fact,.t-grid.cx-grid>.num{display:block}
  .portal .cx-h{display:none!important}
  .portal span.ct-phone-only{display:inline}  /* a short label that stands in for a .cx-h one on a phone */
  .cx-grid .t-name{display:flex}
  .cx-grid .t-name .cx-also{display:none}
  .cx-only-phone{display:inline}
  .cx-grid>.cx-fact{font-size:12px;white-space:nowrap}
  .portal .cx-acts{display:flex}
  .portal .cx-acts a.t-open{padding:10px 0}
  .t-grid.cx-grid>span:last-child:empty{display:none}
  .cx-agrid .cu-acts{display:flex}
  .portal .ct-menu a.cx-org{max-width:none}
  .cx-c .t-loc-row .t-name{padding-left:0}
  .portal .cx-c .t-cl-row .t-name{padding-left:30px}
  .cx-c .t-cl-row::before,.cx-c .t-cl-row:not(:last-child)::after{left:14px}
  .cx-c .t-cl-row::before{width:12px}
}
.portal .t-flag.cx-red{border-color:var(--ct-red);color:var(--ct-red)}
.portal .t-flag.cx-quiet{border-color:var(--ct-line);color:var(--ct-dim)}
.cx-tree [hidden],.cx-tools [hidden]{display:none!important}
/* Staff Clusters with no customer chosen: every cluster, flat, with its customer and locations; BPS is the Best
   Practices Score of the newest released measurement (hidden on a phone, as Released). */
.t-grid.cx-grid.cx-kgrid{grid-template-columns:minmax(170px,1.1fr) minmax(150px,1fr) minmax(150px,1fr) minmax(170px,.9fr) 78px 112px 52px 84px 80px}
.portal .cx-lrow .cx-cust a,.portal .cx-lrow .cx-locs a{color:var(--ct-dim)}
@media (max-width:720px){.t-grid.cx-grid.cx-kgrid{grid-template-columns:minmax(0,1fr) auto auto;gap:0 10px;padding:0 12px;min-height:44px}}

/* ---- The first ten minutes: the guided start (clusters/first.py; design of 16 Nov 2026) -------------------------------------------
   Every colour is a portal token, so dark mode
   needs no rules of its own. Reused as they are: .crumbs, .grid2, .panel, dl.facts, form.signup, .two, .fixed-field,
   .ms-mode, .seg-radio, fieldset.choices, .btn, .btn.primary, .btn.is-busy, .ct-i, .drop, .checks, .state, .sev,
   .label-filter, .d-top, .r-row-head, .r-eng, .list, .list-row, .one-line, .ct-note, .tagline, .linkish. */

/* The path: one box, four steps, the current one open. */
.ft-path{list-style:none;margin:0;padding:0;background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.ft-step{border-bottom:1px solid var(--ct-rule-soft)}
.ft-step:last-child{border-bottom:0}
/* Every step head keeps one height, open or closed: number, title, what was answered, one small action. */
.ft-head{display:grid;grid-template-columns:24px max-content minmax(0,1fr) auto;align-items:center;gap:0 10px;
  height:44px;padding:0 14px;box-sizing:border-box}
.ft-head h2{white-space:nowrap}
.ft-n{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;box-sizing:border-box;
  font-size:13px;font-weight:600;border:1.5px solid var(--ct-line);color:var(--ct-faint);background:var(--ct-surface)}
.ft-step.open .ft-n{background:var(--ct-ink);border-color:var(--ct-ink);color:var(--ct-on-ink)}
.ft-step.done .ft-n{border-color:var(--ct-green);color:var(--ct-green)}
.ft-step.todo h2{color:var(--ct-faint);font-weight:500}
.ft-sum{color:var(--ct-faint)}
.ft-sum .mono{font-size:13px}
.ft-step.open .ft-sum{display:none}
.ft-act{font-size:12px;white-space:nowrap}
.ft-body{display:grid;gap:14px;padding:4px 14px 16px 48px}
.ft-step:not(.open) .ft-body{display:none}
.ft-of{font-family:var(--ct-mono);font-size:12px;color:var(--ct-faint);white-space:nowrap}
.ft-main{max-width:920px}

/* Step 1: the reason switch is not a second coloured button, so its chosen side is ink, as .seg is. */
.ft-path .seg-radio input:checked+span{background:var(--ct-ink);color:var(--ct-on-ink)}
.ft-path form.signup{max-width:36rem}
.ft-fixed{display:flex;align-items:center;gap:6px}
.ft-fixed .ct-i{margin-left:0}
.ft-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}

.ft-field{display:grid;gap:6px;align-content:start}
.ft-field label{display:inline}
/* Hans, 16 Nov 2026: a box in .ft-field (a label with an ⓘ beside it) looked lighter and thinner than the boxes inside a
   <label>, which give them weight 500 and the ink colour. Same here. */
.portal .ft-field input,.portal .ft-field select,.portal .ft-field textarea{font-weight:500;color:var(--ct-ink)}
.ft-rule{border:0;border-top:1px solid var(--ct-rule-soft);margin:0;width:100%}
.ft-gap{margin-top:6px!important}
.ft-plain{font-weight:400}
.ft-step.todo .ft-head h2 span,.ft-head h2 span{font:inherit}


/* Step 2: three things to do, each one line. */
.ft-do{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:ft}
.ft-do>li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:0 10px;align-items:center;min-height:32px;counter-increment:ft}
.ft-do>li::before{content:counter(ft, lower-alpha);font-family:var(--ct-mono);font-size:12px;color:var(--ct-faint)}
.ft-do>li>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0}
.ft-cmd{display:flex;align-items:stretch;gap:8px;min-width:0;flex:1 1 320px;max-width:560px}
.ft-cmd code{flex:1 1 auto;min-width:0;display:block;font-family:var(--ct-mono);font-size:13px;line-height:30px;
  padding:0 10px;background:var(--ct-sunk);border:1px solid var(--ct-rule);border-radius:6px;color:var(--ct-ink);
  white-space:nowrap;overflow-x:auto}
.ft-tags{display:flex;flex-wrap:wrap;gap:6px 8px}
.ft-tags .tagline{display:inline-flex;align-items:center;gap:6px;padding:2px 6px 2px 10px;white-space:nowrap}
/* A line that says the page is waiting and follows by itself. */
.ft-wait{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:8px 12px;border:1px solid var(--ct-rule);
  border-radius:6px;background:var(--ct-sunk)}
.ft-live{display:inline-flex;align-items:center;gap:8px;font-weight:500}
.ft-live::before{content:"";width:.8em;height:.8em;border:2px solid var(--ct-orange);border-right-color:transparent;
  border-radius:50%;animation:ct-turn .8s linear infinite;flex:none}
@media (prefers-reduced-motion:reduce){.ft-live::before{animation:none}}
.ft-wait .btn{margin-left:auto}

/* Step 3: the file, then its checks and the processing side by side. */
.ft-file{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.ft-file .mono{font-size:13px}
.ft-cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px 28px}
.ft-cols h3{font-size:12px;font-weight:500;color:var(--ct-faint);margin-bottom:6px}
.ft-path .checks li{min-height:22px;grid-template-columns:1.2rem minmax(0,1fr) auto}
.ft-path .checks li>span:nth-child(2){min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ft-path .checks .mono{font-size:12px;white-space:nowrap}
.ft-path .drop{padding:18px 16px;display:grid;gap:8px;justify-items:center}
.ft-path .drop input{max-width:26rem}
.ft-picked{font-size:13px}

/* Step 4. */
.ft-facts{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px 12px;margin:0;align-items:center}
.ft-facts dt{font-size:12px;color:var(--ct-faint)}
.ft-facts dd{margin:0;min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.ft-counts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ft-counts .label-filter{cursor:default}
.ft-result{display:grid;gap:14px;max-width:820px}
.ft-result h3{display:flex;align-items:center;gap:8px}
.ft-d-top{padding-left:0;list-style:none}
.ft-d-top>li{padding:10px 12px;border:1px solid var(--ct-rule-soft);border-radius:6px}
.ft-incident{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center}
.ft-order{display:flex;flex-wrap:wrap;align-items:center;gap:10px}

@media (max-width:820px){
  .ft-cols{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  /* On a phone the answer of a closed step goes under its title; every head still has one height. */
  .ft-head{grid-template-columns:24px minmax(0,1fr) auto;height:52px;padding:0 12px}
  .ft-head h2{align-self:end;overflow:hidden;text-overflow:ellipsis}
  .ft-sum{grid-column:2;grid-row:2;align-self:start;font-size:12px}
  .ft-head .ft-n,.ft-head .ft-act{grid-row:1 / span 2}
  .ft-step.open .ft-head h2,.ft-step.todo .ft-head h2{grid-row:1 / span 2;align-self:center}
  .ft-step.todo .ft-sum{display:none}
  .ft-body{padding:2px 12px 14px}
  .ft-do>li{align-items:start}
  .ft-do>li::before{line-height:32px}
  .ft-do>li>div{min-height:32px}
  .ft-cmd{flex-basis:100%;max-width:none}
  .ft-wait .btn{margin-left:0}
  .ft-facts{grid-template-columns:84px minmax(0,1fr)}
  .ft-row .btn.primary,.ft-order .btn.primary{flex:1 0 100%;text-align:center}
}
/* ==== Findings report (phase 3; design portal-mockup/findings-report/DESIGN.md, version B chosen by Hans 16 Nov 2026).
   The page is fixed light, like every report page. measurements/findings_report.py, templates/measurements/_find* ==== */

/* ---- page: the report beside a rail with its contents ------------------------------------------------------------ */
.fr{display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:24px;align-items:start}
.fr-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.fr-rail{position:sticky;top:16px;display:grid;gap:2px;padding:12px;font-size:13px}
.fr-rail h2{font-size:12px;font-weight:600;color:var(--ct-faint);margin:0 0 6px}
.portal .fr-rail a{display:flex;justify-content:space-between;gap:8px;padding:4px 8px;border-radius:4px;text-decoration:none;
  color:var(--ct-ink)}
.portal .fr-rail a:hover{background:var(--ct-blue-bg)}
.fr-rail a.sub{padding-left:20px;color:var(--ct-dim)}
.fr-rail a b{font:400 12px/1.6 var(--ct-mono);color:var(--ct-faint)}
.fr-prose{max-width:70ch}
.ct-main .fr h2{font-size:16px}
.fr-h{display:flex;align-items:center;gap:6px}
.fr-count{font:400 13px/1 var(--ct-mono);color:var(--ct-faint);margin-left:4px}

/* ---- summary ----------------------------------------------------------------------------------------------------- */
.fr-sum{display:grid;gap:14px}
.fr-stand{display:grid;gap:6px}
.fr-stand .state{font-weight:600}
.fr-score{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.fr-score-n{font:600 22px/1 var(--ct-mono);color:var(--ct-ink)}
.fr-charts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px 32px;align-items:start}
.fr-left{display:grid;gap:18px;min-width:0}
.fr-fig{display:grid;gap:8px;margin:0;min-width:0}
.ct-main .fr-fig h3{font-size:13px;display:flex;align-items:center;gap:6px}

/* Findings by severity: one bar, each part as wide as its count and never narrower than its number, the count
   written inside it. 2px of surface between the parts. The words stand under the bar, never colour alone. */
.fr-sevbar{display:flex;gap:2px;height:30px}
.fr-sevbar a,.fr-sevbar span.p{display:grid;place-items:center;min-width:30px;color:#FFFFFF;text-decoration:none;
  font:600 14px/1 var(--ct-mono);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.portal .fr-sevbar a,.portal .fr-sevbar a:hover{color:#FFFFFF}
.fr-sevbar>:first-child{border-radius:4px 0 0 4px}
.fr-sevbar>:last-child{border-radius:0 4px 4px 0}
.fr-sevbar a:hover,.fr-sevbar a:focus-visible{outline:2px solid var(--ct-focus);outline-offset:1px}
/* Critical is black with a red ring and white text everywhere (Hans, 26 Nov 2026): the ring is drawn inside the part's
   edge so it never covers the 2px gap; the legend square gets the thinner ring the trend chart's legend has. */
.c-critical{background:#0A1024;box-shadow:inset 0 0 0 2px #FF3B30}
.fr-key i.c-critical{box-shadow:inset 0 0 0 1.5px #FF3B30}
.c-high{background:var(--ct-red)}.c-medium{background:var(--ct-orange)}
.c-low{background:var(--ct-sev-low)}
.fr-key{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--ct-dim);margin:0;padding:0;list-style:none}
.fr-key li{display:inline-flex;align-items:center;gap:5px}
.fr-key i{width:10px;height:10px;border-radius:2px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.fr-key b{font:500 12px/1 var(--ct-mono);color:var(--ct-ink)}
.fr-total{font-size:13px;color:var(--ct-dim)}
.fr-total b{color:var(--ct-ink);font-weight:600}

/* ---- the one table design ---------------------------------------------------------------------------------------- */
/* Header and cells take their type from the same column definition: t text, m name or value (mono), n number
   (right, mono, never wraps), s short word (never wraps), i short id (mono, never wraps). Text and names wrap inside the cell, anywhere if they must,
   so a table never grows wider than its frame. */
.fr-tw{overflow-x:auto;border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-surface);max-width:100%}
.portal .fr-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.4}
.portal .fr-table th{font-size:12px;font-weight:600;color:var(--ct-dim);background:var(--ct-sunk);padding:6px 10px;
  border-bottom:1px solid var(--ct-rule);text-align:left;vertical-align:bottom}
.portal .fr-table td{padding:6px 10px;border-bottom:1px solid var(--ct-rule-soft);vertical-align:top;
  overflow-wrap:break-word;background:var(--ct-surface)}
.portal .fr-table tr:last-child td{border-bottom:0}
.portal .fr-table .m{font-family:var(--ct-mono);font-size:12.5px}
.portal .fr-table .n{font-family:var(--ct-mono);font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;
  overflow-wrap:normal}
.portal .fr-table .s{white-space:nowrap;overflow-wrap:normal}
.portal .fr-table td.i{font-family:var(--ct-mono);font-size:12.5px;white-space:nowrap;overflow-wrap:normal}
.portal .fr-table th.n{font-family:inherit;white-space:normal}
.portal .fr-table th.m{font-family:inherit;font-size:12px}
/* An amount column marked .num (partner invoices, prices, finder fees): its header stands right over the amounts. */
.portal .fr-table th.num{text-align:right;font-family:inherit}
.fr-table .bad{color:var(--ct-red);font-weight:600}
/* A table of five or six columns keeps a readable width on a narrow screen and scrolls inside its own frame, the
   first column in view. Seven columns or more is not a table: it becomes a list per item. */
.fr-table.wide{min-width:560px}
.fr-table.wide th:first-child,.fr-table.wide td:first-child{position:sticky;left:0;z-index:1;
  box-shadow:1px 0 0 var(--ct-rule-soft)}

/* Findings by area: the same table, with a bar in one column. A unit is as wide in every row. */
.portal .fr-area td{padding:4px 10px;vertical-align:middle}
.fr-area .bar{width:46%}
.fr-area .track{display:flex;gap:2px;height:20px}
.fr-area .track span{display:grid;place-items:center;color:#FFFFFF;font:600 12px/1 var(--ct-mono);min-width:16px;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
.fr-area .track span:first-child{border-radius:3px 0 0 3px}
.fr-area .track span:last-child{border-radius:0 3px 3px 0}
.fr-area tr.none td{color:var(--ct-faint)}
.portal .fr-area a{color:var(--ct-ink);text-decoration:none}
.portal .fr-area a:hover{color:var(--ct-link-hover);text-decoration:underline}
.fr-area .zero{color:var(--ct-faint)}

/* ---- the findings list ------------------------------------------------------------------------------------------- */
.fr-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;justify-content:space-between}
.fr-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.portal .fr-filter a{padding:5px 10px;font-size:13px;display:inline-flex;align-items:center;gap:6px}
.fr-filter a b{font:400 12px/1 var(--ct-mono);opacity:.75}
.portal .fr-tools .btn{min-height:32px;padding:4px 10px;font-size:13px}
.fr-now{font-size:13px;color:var(--ct-dim);margin:0}
.fr-now[hidden]{display:none}
.fr-list{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.ct-main .fr-group{display:flex;align-items:center;gap:8px;margin:0;padding:8px 14px;font-size:13px;font-weight:600;
  background:var(--ct-sunk);border-bottom:1px solid var(--ct-rule);border-top:1px solid var(--ct-rule)}
.ct-main .fr-group:first-child{border-top:0;border-radius:7px 7px 0 0}
.fr-group[hidden]{display:none}

/* One finding. Closed: number, severity, title, area, then where and one line of advice. A click opens the rest. */
.fr-f{border-bottom:1px solid var(--ct-rule-soft)}
.fr-f:last-child{border-bottom:0}
.fr-f[hidden]{display:none}
.fr-f>summary{display:grid;grid-template-columns:38px 70px minmax(0,1fr) auto 18px;gap:2px 10px;align-items:baseline;
  padding:10px 14px;cursor:pointer;list-style:none}
.fr-f>summary::-webkit-details-marker{display:none}
.fr-f>summary:hover{background:var(--ct-blue-bg-soft)}
.fr-f>summary:focus-visible{outline:2px solid var(--ct-focus);outline-offset:-2px}
.fr-id{font:400 12px/1.6 var(--ct-mono);color:var(--ct-faint)}
.fr-f .sev{justify-self:start}
.fr-t{font-weight:600;color:var(--ct-ink);font-size:14px}
.fr-ar{font-size:12px;color:var(--ct-dim);white-space:nowrap}
.fr-chev{width:8px;height:8px;border-right:2px solid var(--ct-faint);border-bottom:2px solid var(--ct-faint);
  transform:rotate(-45deg);align-self:center;justify-self:center;transition:transform .12s}
.fr-f[open]>summary .fr-chev{transform:rotate(45deg)}
.fr-wh{grid-column:3/5;font:400 12px/1.5 var(--ct-mono);color:var(--ct-faint)}
.fr-adv{grid-column:3/5;color:var(--ct-ink);max-width:70ch}
.fr-adv::before{content:"\2192";color:var(--ct-primary);font-weight:600;margin-right:6px}
.fr-f[open]>summary{background:var(--ct-sunk)}

/* Open: short label left, text right, about seventy characters wide. */
.fr-body{display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px 10px;padding:14px 14px 16px 14px;
  border-top:1px solid var(--ct-rule-soft)}
.ct-main .fr-body h4{margin:0;font-size:12px;font-weight:600;color:var(--ct-dim);line-height:1.6}
.fr-body>div{min-width:0;display:grid;gap:8px;justify-items:start}
.fr-body>div>*{max-width:100%}
.fr-body p,.fr-steps{max-width:70ch}
.fr-steps{margin:0;padding-left:20px;display:grid;gap:8px}
.fr-steps li{padding-left:2px}
.fr-cmd{display:block;margin:4px 0 0;padding:6px 10px;border:1px solid var(--ct-rule);border-radius:4px;
  background:var(--ct-sunk);font:400 12.5px/1.5 var(--ct-mono);padding-left:calc(10px + 2ch);text-indent:-2ch;overflow-wrap:anywhere;color:var(--ct-ink)}
.fr-cmd span{text-indent:0}
.fr-cmd span{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.fr-body code{font:400 12.5px/1.4 var(--ct-mono)}
.fr-ev{width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.fr-ev>*{min-width:0;justify-self:stretch}
.fr-ev .fr-tw{max-width:640px;justify-self:start;width:100%}
.fr-src{font-size:12px;color:var(--ct-faint);overflow-wrap:anywhere}
.fr-src .mono{font-size:12px}
.fr-ref{font-size:13px;overflow-wrap:anywhere}
.fr-body>.fr-foot{grid-column:2;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px}

/* Capacity: used against available, drawn from the measured numbers. */
.fr-cap{width:100%;max-width:640px;display:grid;gap:4px}
.fr-cap .track{position:relative;height:22px;background:var(--ct-rule-soft);border-radius:4px}
.fr-cap .used{position:absolute;inset:0 auto 0 0;background:var(--ct-orange);border-radius:4px 0 0 4px;display:grid;
  place-items:center end;color:#FFFFFF;font:600 12px/1 var(--ct-mono);padding-right:8px;box-sizing:border-box;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
.fr-cap .mark{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ct-ink)}
.fr-cap .scale{position:relative;height:30px;font-size:12px;color:var(--ct-dim)}
.fr-cap .scale span{position:absolute;top:2px;white-space:nowrap}
.fr-cap .scale b{font:500 12px/1 var(--ct-mono);color:var(--ct-ink)}

/* ---- the closing sections ---------------------------------------------------------------------------------------- */
.fr-more{padding:0}
.fr-more>summary{display:flex;align-items:center;gap:8px;padding:12px 14px;cursor:pointer;list-style:none;font-weight:600;
  font-size:15px}
.fr-more>summary::-webkit-details-marker{display:none}
.fr-more>summary .fr-chev{margin-left:auto}
.fr-more[open]>summary .fr-chev{transform:rotate(45deg)}
.fr-more>div{padding:0 14px 14px;display:grid;gap:10px}
.fr-list2{margin:0;padding-left:18px;display:grid;gap:4px;max-width:70ch}
.fr-facts{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 16px;margin:0}
.fr-facts dt{color:var(--ct-faint)}
.fr-facts dd{margin:0}

@media (max-width:1100px){
  .fr{grid-template-columns:minmax(0,1fr)}
  .fr-rail{display:none}
}
@media (max-width:720px){
  .fr-charts{grid-template-columns:minmax(0,1fr)}
  .fr-area .bar{width:38%}
  .fr-bar{align-items:stretch}
  .fr-filter{overflow-x:auto;max-width:100%}
  .fr-f>summary{grid-template-columns:auto auto minmax(0,1fr) 18px;padding:10px 12px}
  .fr-id{grid-area:1/1}.fr-f .sev{grid-area:1/2}.fr-ar{grid-area:1/3;justify-self:end}.fr-chev{grid-area:1/4}
  .fr-t{grid-area:2/1/3/-1}.fr-wh{grid-area:3/1/4/-1}.fr-adv{grid-area:4/1/5/-1}
  .fr-body{grid-template-columns:minmax(0,1fr);gap:4px;padding:12px}
  .fr-body>div{margin-bottom:8px}
  .fr-body>.fr-foot{grid-column:1}
  .ct-main .fr-group{padding:8px 12px}
  .fr-cap .scale{height:44px}
  .fr-cap .scale .t3{top:18px}
}

/* A finding without a known level, and the evidence of more than six columns as a list per row. */
.c-unrated{background:var(--ct-grey)}
.fr-evlist{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px;max-width:70ch}
.fr-evlist .m{font-family:var(--ct-mono);font-size:12.5px;overflow-wrap:anywhere}
.fr-evlist li.bad{color:var(--ct-red)}
.fr-evlist li.bad .s{font-weight:600}
.fr-more>summary .ct-i{font-weight:400}

/* Finding texts at the release desk (measurements/writer.py, desk_texts.html). */
/* Write again, the model and Check the texts under More, below the status line (Hans, 27 Nov 2026, design "One status
   line"): corrections you choose, not steps, so they are closed by default and never primary. */
.wt-more-body,.wt-again{gap:10px;flex-wrap:wrap}
.wt-stop{gap:8px;align-items:center}
.wt-more-body form{padding-top:0}
.wt-more p{margin:6px 0 0}
.portal .wt-model{display:flex;align-items:center;gap:6px}
.portal .wt-model select{width:auto;font-size:14px;padding:6px 8px}
/* The texts (Hans, 2 Dec 2026, mock-up "Finding texts page"): every finding one closed row of one height, the ones
   Release waits on first under their own heading. Opened: why it waits, the changed sentences as Was and Now with
   the changed words marked (never struck through), and the text boxes behind Change the text. */
.wt-group{margin:18px 0 6px;font-size:14px;font-weight:600;scroll-margin-top:70px}
.wt-group small{font-weight:400;color:var(--ct-dim)}
.wt-rows{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.wt-r{border-top:1px solid var(--ct-rule-soft);scroll-margin-top:70px}
.wt-r:first-child{border-top:0}
.wt-r>summary{display:grid;grid-template-columns:44px 74px minmax(0,1fr) auto auto;gap:0 12px;align-items:center;min-height:40px;padding:0 14px;cursor:pointer;list-style:none}
.wt-r>summary::-webkit-details-marker{display:none}
.wt-r>summary>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wt-r[open]>summary{border-bottom:1px solid var(--ct-rule-soft);font-weight:600}
.wt-in{padding:12px 14px 16px;display:flex;flex-direction:column;gap:14px}
.wt-in>p{margin:0}
.wt-part>h3{font-size:12px;font-weight:600;color:var(--ct-faint);margin:0 0 6px}
.wt-why{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:13px;overflow-wrap:anywhere}
.wt-why b{font-weight:600}
.wt-ch{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(0,1fr);gap:0 14px;font-size:13px;line-height:1.45;border-top:1px solid var(--ct-rule-soft);padding:8px 0;overflow-wrap:anywhere}
.wt-part>.wt-ch:first-of-type,.wt-part>details>.wt-ch:first-of-type{border-top:0;padding-top:0}
.wt-ch .k{font-weight:600}
.wt-ch .was{color:var(--ct-dim)}
.wt-ch .lab{display:block;font-size:11px;font-weight:600;color:var(--ct-faint);margin-bottom:2px}
.wt-ch mark{background:color-mix(in srgb,var(--ct-orange) 22%,transparent);color:inherit;border-radius:3px;padding:0 2px}
.wt-acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* Write this text again (one-finding/DESIGN.md): the instruction takes the room left on the line. */
.wt-one{gap:6px;align-items:center;flex:1 1 320px}.wt-one input[type=text]{flex:1 1 200px;min-width:0}
.wt-edit{flex:1 1 100%;order:3}
.wt-edit>summary{list-style:none;display:inline-flex;cursor:pointer}
.wt-edit>summary::-webkit-details-marker{display:none}
.wt-edit>form{margin-top:10px}
.wt-panels{margin-top:14px}
@media (max-width:720px){
  .wt-r>summary{grid-template-columns:44px minmax(0,1fr) auto auto;min-height:56px}
  .wt-r>summary>:nth-child(2){display:none}
  .wt-ch{grid-template-columns:minmax(0,1fr);gap:4px}
}
.wt-field textarea{width:100%;box-sizing:border-box;font:inherit;line-height:1.45;min-height:0;overflow-y:auto}
/* Item 27: the steps box beside its print preview; one under the other on a narrow screen. */
.wt-steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.wt-field textarea.wt-steps-box{font-family:var(--ct-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);font-size:13px;line-height:1.5;min-height:16em}
.wt-steps-prev{border:1px solid var(--ct-rule);border-radius:var(--ct-r);padding:8px 10px;max-height:40em;overflow:auto;font-size:14px}
.wt-steps-prev .fr3-steps{max-width:none;margin:0}
@media (max-width:900px){.wt-steps{grid-template-columns:minmax(0,1fr)}}
/* Hans, 16 Nov 2026: the boxes grow with the text (js/finding-texts.js); field-sizing does it where the browser knows it. */
.wt-field textarea{field-sizing:content}
.wt-prompt{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:480px;overflow:auto;font-size:12px;
  background:var(--sunk);color:var(--ink);padding:10px;border-radius:6px;margin:0}
/* The writing agent's prose in a finding block: paragraphs, lists, commands that wrap (writer.blocks). */
.fr-prose p,.fr-prose li,.fr-steps li{overflow-wrap:anywhere}
ul.fr-list{margin:0;padding-left:18px;max-width:70ch}
ul.fr-list li+li{margin-top:2px}
/* Full finding text (findings-report DESIGN.md, 16 Nov 2026): every field at its full length, commands inline. */
.fr-body{gap:16px 10px}
.fr-body p{margin:0;line-height:1.6}
.fr-body p,.fr-body>div>.fr-steps,.fr-body>div>.fr-note{max-width:72ch}
.ct-main .fr-body h4{line-height:22.4px}
.fr-lead{font-weight:600}
.fr-steps{display:grid;gap:10px;padding-left:24px;margin:0}
.fr-steps li::marker{font:600 13px var(--ct-mono);color:var(--ct-dim)}
.fr-c{font:400 12.5px/1.4 var(--ct-mono);background:var(--ct-sunk);border:1px solid var(--ct-rule-soft);border-radius:3px;
  padding:1px 4px;white-space:normal;overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* Measured (report-quality DESIGN.md 2c): line 2 of a closed row starts with the value; the open finding's first field
   holds the value, its scope and where, then the value per measurement or "Unchanged since ..." */
.fr-wh .fr-mv{font-weight:600;color:var(--ct-ink)}
.fr-meas{display:grid;gap:6px;min-width:0}
.fr-meas p{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.fr-meas p b{font:600 14px/1.4 var(--ct-mono);color:var(--ct-ink);overflow-wrap:anywhere}
.fr-meas p span{font-size:13px;color:var(--ct-dim)}
.fr-meas .fr-mon{font-family:var(--ct-mono);font-size:12.5px;overflow-wrap:anywhere}
.fr-meas .fr-nr{color:var(--ct-faint);display:block}
.fr-unch{font-size:12.5px;color:var(--ct-faint)}
.fr-hist{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.fr-hist li{display:inline-flex;align-items:baseline;gap:8px;padding:2px 8px;border:1px solid var(--ct-rule);border-radius:4px;
  font:400 12px/1.5 var(--ct-mono);color:var(--ct-dim);background:var(--ct-surface);max-width:100%;overflow-wrap:anywhere}
.fr-hist li span{font-family:var(--ct-sans);color:var(--ct-faint);white-space:nowrap}
.fr-hist li.now{border-color:var(--ct-ink);color:var(--ct-ink);font-weight:500}
.fr-note{padding:8px 12px;border-left:3px solid var(--ct-primary);background:var(--ct-blue-bg-soft);display:grid;gap:4px}
.fr-note.acc{border-left-color:var(--ct-sev-accepted);background:var(--ct-sunk)}
.fr-by{font-size:12px;font-weight:600;color:var(--ct-dim)}
.fr-tag{display:inline-block;border:1px solid var(--ct-sev-accepted);color:var(--ct-sev-accepted);font-size:11px;font-weight:600;
  border-radius:3px;padding:0 5px;margin-left:6px;vertical-align:1px}
.fr-refs{display:grid;gap:4px}
@media (max-width:720px){.fr-body{gap:2px}.fr-body>div{margin-bottom:12px}}

/* ==== Risks over time (Fable, 16 Nov 2026; portal-mockup/risk-trend). measurements/trend.py draws it. ==== */
/* Everything uses the portal tokens; the chart colours are the --rt-* tokens below, light and dark. */

/* ---- colours ----------------------------------------------------------------------------------------------------
   Critical, High and Low are the portal's severity colours. Medium is the Timeline bar's orange (.s-medium), because
   --ct-orange is too close to --ct-red inside one bar. Resolved (teal) and No risk (green) are new. --rt-on-* is the
   colour of the number written on a part. */
:root{
  --rt-critical:#0A1024; --rt-ring:#FF3B30; --rt-high:var(--ct-red); --rt-medium:#E8870E; --rt-low:var(--ct-sev-low);
  --rt-resolved:#22B8A8; --rt-norisk:#2B8A3E;
  --rt-on-critical:#FFFFFF; --rt-on-high:#FFFFFF; --rt-on-medium:#0A1024; --rt-on-low:#FFFFFF;
  --rt-on-resolved:#0A1024; --rt-on-norisk:#FFFFFF;
}
@media screen and (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --rt-medium:var(--ct-orange); --rt-resolved:#3DD6C4; --rt-norisk:#2F9E44;
    --rt-on-high:#0B0F1A; --rt-on-medium:#0B0F1A; --rt-on-low:#0B0F1A; --rt-on-resolved:#0B0F1A; --rt-on-norisk:#FFFFFF;
  }
}
@media screen{
  :root[data-theme="dark"]{
    --rt-medium:var(--ct-orange); --rt-resolved:#3DD6C4; --rt-norisk:#2F9E44;
    --rt-on-high:#0B0F1A; --rt-on-medium:#0B0F1A; --rt-on-low:#0B0F1A; --rt-on-resolved:#0B0F1A; --rt-on-norisk:#FFFFFF;
  }
}
.rt-critical{fill:var(--rt-critical);background:var(--rt-critical)}
.rt-high{fill:var(--rt-high);background:var(--rt-high)}
.rt-medium{fill:var(--rt-medium);background:var(--rt-medium)}
.rt-low{fill:var(--rt-low);background:var(--rt-low)}
.rt-resolved{fill:var(--rt-resolved);background:var(--rt-resolved)}
.rt-norisk{fill:var(--rt-norisk);background:var(--rt-norisk)}
/* Critical is black with a red ring, as everywhere in the portal; the ring also keeps it visible in dark mode. */
rect.rt-critical{stroke:var(--rt-ring);stroke-width:2px;paint-order:fill}
i.rt-ring{box-shadow:0 0 0 1.5px var(--rt-ring)}
.rt rect,.rt circle,.rt polyline,.rt-key i,.rt-lv i{-webkit-print-color-adjust:exact;print-color-adjust:exact}

/* ---- page parts ------------------------------------------------------------------------------------------------- */
.rt-page{display:flex;flex-direction:column;gap:16px;min-width:0}
.rt-defs{position:absolute}
.rt{display:grid;gap:14px;min-width:0}
.ct-main .rt-h,.ct-main .rt-h2{font-size:16px}
.rt-count{font:400 13px/1 var(--ct-mono);color:var(--ct-faint);margin-left:4px}
.rt-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px 32px;align-items:start}
.rt-stacked .rt-grid{grid-template-columns:minmax(0,1fr)}
.rt-fig{display:grid;gap:8px;min-width:0;align-content:start}
.ct-main .rt-fig h3{font-size:13px;display:flex;align-items:center;gap:6px}

/* ---- the bars: one column per measurement; the plot, then the rows under it ------------------------------------- */
.rt-row{display:flex;align-items:flex-end}
/* The label column is as wide as the longest label on one line with its ⓘ right after it ("Best Practices Score ⓘ",
   "Bestandene Prüfungen ⓘ"); every row shares it, so the bars and their numbers stay under their dates. */
.rt-lab{flex:0 0 144px;font-size:12px;color:var(--ct-faint);display:flex;align-items:center;gap:4px;align-self:center;
  white-space:nowrap}
.rt-lab .ct-i-pop{white-space:normal}
/* Next to the label column a bar needs 54px; seven bars or more in a narrow figure (the Findings report, a window just
   over 1100px) put each label above its numbers instead, as on a phone (trend.bars sets rt-cols7 to rt-cols11, 11 for 11 or more). */
.rt-bars{container:rt-bars/inline-size}
@container rt-bars (max-width:521px){.rt-cols7 .rt-row{display:block} .rt-cols7 .rt-plot .rt-lab,.rt-cols7 .rt-dates .rt-lab{display:none}}
@container rt-bars (max-width:575px){.rt-cols8 .rt-row{display:block} .rt-cols8 .rt-plot .rt-lab,.rt-cols8 .rt-dates .rt-lab{display:none}}
@container rt-bars (max-width:629px){.rt-cols9 .rt-row{display:block} .rt-cols9 .rt-plot .rt-lab,.rt-cols9 .rt-dates .rt-lab{display:none}}
@container rt-bars (max-width:683px){.rt-cols10 .rt-row{display:block} .rt-cols10 .rt-plot .rt-lab,.rt-cols10 .rt-dates .rt-lab{display:none}}
@container rt-bars (max-width:737px){.rt-cols11 .rt-row{display:block} .rt-cols11 .rt-plot .rt-lab,.rt-cols11 .rt-dates .rt-lab{display:none}}
.rt-cells{flex:1 1 0;min-width:0;display:flex;align-items:inherit}
.rt-c{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;
  font:400 12px/1.35 var(--ct-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.rt-plot{border-bottom:1px solid var(--ct-line)}
.rt-plot .rt-lab{align-self:stretch}
.rt-bar{display:block;overflow:visible}
.rt-dates,.rt-checks,.rt-score{padding-top:5px;align-items:flex-start}
.rt-dates .rt-lab,.rt-checks .rt-lab,.rt-score .rt-lab{align-self:flex-start;min-height:17px}
.rt-dates .rt-c{font-family:var(--ct-sans);color:var(--ct-ink)}
.rt-dates .rt-c>span{white-space:nowrap} .rt-nth{font-size:11px;color:var(--ct-dim)}
.rt-c small{font-size:11px;color:var(--ct-faint);min-height:15px}
.rt-checks{border-top:1px solid var(--ct-rule-soft);margin-top:2px}
/* What changed since the measurement before (Hans, 30 Nov 2026): a tinted band under the dates, one height per row. */
.rt-band{margin-top:6px;padding:4px 0 2px;background:var(--ct-bg-soft, rgba(127,127,127,.06));border-radius:6px}
.rt-band-h{display:block;padding:0 0 2px 6px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ct-faint)}
.rt-chg{align-items:center;min-height:22px}
.rt-chg .rt-lab{padding-left:6px}
.rt-chg .rt-lab i{display:inline-block;width:10px;height:10px;border-radius:2px;flex:0 0 10px}
.rt-chg .rt-c{font-family:var(--ct-mono);font-size:13px;color:var(--ct-ink)}
.rt-chg .rt-zero{color:var(--ct-faint)}
.rt-checks .rt-parts{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.rt-checks .rt-c{color:var(--ct-dim)}
.rt-part{color:var(--ct-orange);font-weight:600;border-bottom:2px dotted var(--ct-orange)}
.rt-na{color:var(--ct-faint);font-family:var(--ct-sans);font-size:11px}
.rt-score{border-top:1px solid var(--ct-rule-soft)}
.rt-score b{font-weight:600;font-size:13px;color:var(--ct-ink)}
.rt-score b.bp-n{font-weight:700;color:var(--bp)}
.rt-less{display:none;margin:0}
/* Numbers on the parts: large enough to read, in the colour that reads on that part. */
.rt-n{font:600 12px var(--ct-mono)}
.rt-n.on-critical{fill:var(--rt-on-critical)} .rt-n.on-high{fill:var(--rt-on-high)}
.rt-n.on-medium{fill:var(--rt-on-medium)} .rt-n.on-low{fill:var(--rt-on-low)}
.rt-n.on-resolved{fill:var(--rt-on-resolved)} .rt-n.on-norisk{fill:var(--rt-on-norisk)}
/* An accepted part: its level colour with stripes of the surface. The number stands on a rim of the level colour. */
.rt-hatch{fill:url(#rt-hatch)}
.rt-hatch-line{fill:var(--ct-surface);fill-opacity:.72}
.rt-n.acc{paint-order:stroke;stroke-width:5px;stroke-linejoin:round}
.rt-n.acc.on-critical{stroke:var(--rt-critical)} .rt-n.acc.on-high{stroke:var(--rt-high)}
.rt-n.acc.on-medium{stroke:var(--rt-medium)} .rt-n.acc.on-low{stroke:var(--rt-low)}
/* No risk not recorded: an open, dashed cap of a fixed height with a question mark. It is not to scale. */
.rt-unknown{fill:none;stroke:var(--ct-faint);stroke-width:1.5px;stroke-dasharray:4 3}
.rt-q{font:600 12px var(--ct-mono);fill:var(--ct-dim)}
.rt-total{font:400 11px var(--ct-sans);fill:var(--ct-faint)}
.rt-total-n{font:600 12px var(--ct-mono);fill:var(--ct-ink)}

/* ---- the trend: one lane per level ------------------------------------------------------------------------------ */
.rt-trend{display:block;max-width:100%;height:auto}
.rt-phone{display:none}
.rt-rule{stroke:var(--ct-rule-soft);stroke-width:1px}
.rt-base{stroke:var(--ct-rule);stroke-width:1px}
.rt-lane{font:500 12px var(--ct-sans);fill:var(--ct-ink)}
.rt-line{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}
.rt-pt{stroke:var(--ct-surface);stroke-width:2px}
.l-critical{stroke:var(--ct-ink)} circle.l-critical{fill:var(--rt-critical);stroke:var(--rt-ring);stroke-width:1.5px}
.l-high{stroke:var(--rt-high)} circle.l-high{fill:var(--rt-high);stroke:var(--ct-surface)}
.l-medium{stroke:var(--rt-medium)} circle.l-medium{fill:var(--rt-medium);stroke:var(--ct-surface)}
.l-low{stroke:var(--rt-low)} circle.l-low{fill:var(--rt-low);stroke:var(--ct-surface)}
.l-resolved{stroke:var(--rt-resolved)} circle.l-resolved{fill:var(--rt-resolved);stroke:var(--ct-surface)}
.rt-v{font:500 12px var(--ct-mono);fill:var(--ct-ink);paint-order:stroke;stroke:var(--ct-surface);stroke-width:3px;stroke-linejoin:round}
.rt-vna{fill:var(--ct-faint)}
.rt-date{font:400 12px var(--ct-sans);fill:var(--ct-ink)}
.rt-phone .rt-date{font-size:11px}
.rt-year{font:400 11px var(--ct-mono);fill:var(--ct-faint)}

/* ---- the words for the colours ---------------------------------------------------------------------------------- */
.rt-key{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px;color:var(--ct-dim);margin:0;padding:10px 0 0;list-style:none;
  border-top:1px solid var(--ct-rule-soft)}
.rt-key li{display:inline-flex;align-items:center;gap:6px}
.rt-key i,.rt-lv i{width:11px;height:11px;border-radius:2px;flex:none;display:inline-block}
.rt-key i.rt-acc{width:20px;background-image:repeating-linear-gradient(135deg,transparent 0 3px,var(--ct-surface) 3px 5.5px)}
.rt-key i.rt-unknown-key{width:16px;height:13px;border:1.5px dashed var(--ct-faint);box-sizing:border-box;display:inline-grid;
  place-items:center;font:600 10px/1 var(--ct-mono);color:var(--ct-dim)}

/* ---- the report summary: state word, the score beside it, the position now -------------------------------------- */
.rt-sum{display:grid;gap:16px}
.rt-stand{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 32px;align-items:start}
.rt-state{display:flex;flex-direction:column;gap:6px;align-items:flex-start;align-self:stretch}
.rt-state .state{font-weight:600;font-size:16px}
.rt-prose{max-width:70ch;margin:0}
.rt-scorebox{display:grid;justify-items:end;gap:2px;padding-left:24px;border-left:1px solid var(--ct-rule)}
.rt-scorelab{font-size:12px;color:var(--ct-faint);display:flex;align-items:center;gap:4px}
.rt-big{font:600 44px/1 var(--ct-mono);letter-spacing:-.02em;color:var(--ct-ink)}
.rt-delta{font-size:13px;color:var(--ct-dim)}
.rt-how{max-width:300px;text-align:right;font-size:12px;line-height:1.35;color:var(--ct-dim)}
.rt-arrow{font-size:10px;color:var(--ct-green)}
.rt-facts{display:flex;flex-wrap:wrap;gap:8px 28px;margin:auto 0 0;padding-top:12px}
.rt-facts div{display:grid;gap:1px}
.rt-facts dt{font-size:12px;color:var(--ct-faint)}
.rt-facts dd{margin:0;font:600 18px/1.2 var(--ct-mono)}
.rt-go{cursor:pointer;border-radius:6px;margin:-4px -8px;padding:4px 8px}
.rt-go:hover,.rt-go:focus-visible{background:var(--ct-rule-soft)}
.rt-go:hover dd,.rt-go:focus-visible dd{color:var(--ct-link,var(--ct-ink));text-decoration:underline}
.rt-go[aria-current="true"]{background:var(--ct-rule-soft)}
/* ---- the numbers as a table ------------------------------------------------------------------------------------- */
.rt-more>summary{cursor:pointer;font-weight:600;font-size:15px}
.rt-more[open]>summary{margin-bottom:12px}
.rt-tw{overflow-x:auto;border:1px solid var(--ct-rule);border-radius:6px;max-width:100%}
.portal .rt-table{width:100%;min-width:560px;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.4}
.portal .rt-table th{font-size:12px;font-weight:600;color:var(--ct-dim);background:var(--ct-sunk);padding:6px 10px;
  border-bottom:1px solid var(--ct-rule);text-align:right;vertical-align:bottom}
.portal .rt-table td{padding:6px 10px;border-bottom:1px solid var(--ct-rule-soft);text-align:right;
  font-family:var(--ct-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.portal .rt-table th:nth-child(-n+2),.portal .rt-table td:nth-child(-n+2){text-align:left}
.portal .rt-table tr:last-child td{border-bottom:0}
.rt-table td small{display:block;font:400 11px var(--ct-sans);color:var(--ct-faint)}
.rt-table td b{display:inline-block;min-width:22px;font-weight:600}
.rt-lv{display:inline-flex;align-items:center;gap:4px;margin-left:10px;min-width:30px}
/* The numbers per measurement: one column per level (gate review of 21 Nov 2026), the count under its own heading. */
.rt-numbers td.rt-lvc .rt-lv{margin-left:0;min-width:0}
.portal .rt-numbers td:nth-child(2){text-align:right}
.rt-next{margin:0}

/* ---- the Timeline list with the two new columns (No risk, Score) ------------------------------------------------ */
/* Twelve columns fit without scrolling from about 1240px (Hans, 21 Nov 2026): the Findings bar takes what is left
   (drawn in percent), heads may take two lines. */
.tl-grid.rt-tl{grid-template-columns:136px 104px minmax(220px,1fr) 62px 44px 76px 80px 64px 40px 64px 56px 92px 92px;
  gap:0 8px;min-width:1170px}
/* "First measured" (13th column) and the quiet Report tag of a report round of an imported v2 register (design
   "v2 register import as history", section 4). */
.tag-was{margin-left:4px;font-size:.85em;color:var(--ct-faint);white-space:nowrap}
.tag-report{display:inline-block;margin-left:4px;padding:0 6px;border:1px solid var(--ct-rule);border-radius:9px;
  font-size:11px;line-height:16px;color:var(--ct-faint);vertical-align:1px}
.tl-grid.rt-tl.list-head>span{line-height:1.2}
.rt-tl.list-head .bp-h{white-space:normal;line-height:1.15}   /* "Best Practices / Score (i)" on two lines */
.tl-grid .tl-bar{width:100%;height:22px;overflow:visible}
.cp-balances{display:inline-flex;flex-direction:column;gap:2px;line-height:1.2}

/* ---- narrower --------------------------------------------------------------------------------------------------- */
@media (max-width:1100px){
  .rt-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  /* A phone shows the newest six measurements, bars and lines alike; the list or the table has all of them. */
  .rt-old{display:none}
  .rt-less{display:block}
  .rt-wide{display:none} .rt-phone{display:block;width:100%}
  .rt-row{display:block}
  .rt-lab{min-height:0}
  .rt-plot .rt-lab{display:none}
  .rt-dates .rt-lab{display:none}
  .rt-checks .rt-lab,.rt-score .rt-lab,.rt-chg .rt-lab{padding-bottom:2px}
  .rt-stand{grid-template-columns:minmax(0,1fr)}
  .rt-scorebox{justify-items:start;padding:12px 0 0;border-left:0;border-top:1px solid var(--ct-rule)}
  .rt-how{text-align:left}
  .tl-grid.rt-tl{min-width:0}
  .panel.rt,.panel.rt-sum,.panel.rt-more{padding:14px 12px}
}

/* ---- Accepted toggle (16 Nov) ------------------------------------------------------------------------------------
   A switch that is a link (the page is drawn again with or without ?accepted=0). Title left, switch right. */
.rt-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.rt-togs{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 20px}
/* Switch and info are plain inline content on one unbreakable line, so the ⓘ always follows the last letter, whatever
   font size the browser uses (Hans, 21 Nov 2026: the ⓘ sat on "checks" and "risks" in his Chrome, twice). */
.rt-tog{display:inline-block;flex:none;white-space:nowrap;line-height:32px}
.rt-tog>.ct-i{position:static;margin-left:8px;vertical-align:middle}
.portal a.rt-switch{display:inline;padding:0 2px;font-size:13px;font-weight:500;color:var(--ct-ink);
  text-decoration:none;white-space:nowrap}
.rt-switch i{display:inline-block;position:relative;width:34px;height:20px;margin-right:8px;vertical-align:middle;
  border-radius:10px;background:var(--ct-grey);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rt-switch i::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#FFFFFF}
.rt-switch[aria-checked="true"] i{background:var(--ct-primary)}
.rt-switch[aria-checked="true"] i::after{left:16px}
.rt-switch:hover i{box-shadow:0 0 0 3px var(--ct-blue-bg)}
.rt-switch:focus-visible{outline:2px solid var(--ct-focus);outline-offset:2px;border-radius:4px}
.rt-accnote{margin:0;font-size:13px;color:var(--ct-dim)}
.rt-accnote b{font-weight:600;color:var(--ct-ink)}
.rt-without{font-size:12px;color:var(--ct-dim)}
.rt-hid dd{color:var(--ct-faint)}

/* ==== Follow-up report (measurements/follow_up.py; design portal-mockup/follow-up-report/DESIGN.md, Fable 16 Nov 2026).
   On top of the .rt-* (summary, Risks over time) and .fr-* (the finding block) styles above. Portal tokens only. */

/* ---- In this report: one line of jump links under the page head -------------------------------------------------- */
.fu-jump{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:13px;margin:0}
.portal .fu-jump a{text-decoration:none;white-space:nowrap}
.portal .fu-jump a:hover{text-decoration:underline}
.fu-jump b{font:400 12px/1 var(--ct-mono);color:var(--ct-faint);margin-left:2px}
.fu-sec{gap:10px;scroll-margin-top:12px}
.fu-sec .fr-h{font-size:16px;margin:0}

/* ---- the sum: open before, plus and minus what changed, open now -------------------------------------------------- */
.fu-sumrow{display:flex;align-items:flex-start;gap:8px}
.fu-sum{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.fu-b{display:grid;gap:2px;align-content:start;padding:8px 12px;min-width:86px;box-sizing:border-box;border:1px solid var(--ct-rule);
  border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);text-decoration:none}
.fu-b span{font-size:12px;color:var(--ct-faint);white-space:nowrap}
.fu-b b{font:600 18px/1.2 var(--ct-mono);font-variant-numeric:tabular-nums}
.fu-b.end{background:var(--ct-sunk);border-color:var(--ct-line)}
.fu-b.zero b{color:var(--ct-faint);font-weight:400}
.fu-b.apart{margin-left:16px}
.portal a.fu-b{color:var(--ct-ink);text-decoration:none}
.portal a.fu-b:hover{background:var(--ct-blue-bg-soft)}
.portal a.fu-b[aria-current="true"]{border-color:var(--ct-primary);box-shadow:inset 0 0 0 1px var(--ct-primary)}

/* ---- the kind of change: a word in a rim. The colour repeats what the word says, it never stands alone ----------- */
.fu-k{display:inline-block;box-sizing:border-box;padding:0 6px;border:1px solid var(--ct-sev-accepted);border-radius:4px;
  font-size:11px;font-weight:600;line-height:17px;color:var(--ct-sev-accepted);white-space:nowrap;justify-self:start}
.fu-k.new,.fu-k.back,.fu-k.up{border-color:var(--ct-orange);color:var(--ct-orange)}
.fu-k.resolved,.fu-k.down{border-color:var(--ct-green);color:var(--ct-green)}
.fu-k.up::before{content:"\25B2\00A0";font-size:8px;vertical-align:1px}
.fu-k.down::before{content:"\25BC\00A0";font-size:8px;vertical-align:1px}
.fu-none{font-size:12px;color:var(--ct-faint)}

/* ---- the list of changes: one row, one height. A cell that does not fit ends in an ellipsis and shows its whole
   text on hover; opening the row shows everything in full ----------------------------------------------------------- */
.fu-head,.fu-c>summary{display:grid;grid-template-columns:112px 34px 142px minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) 92px 18px;
  gap:0 12px;align-items:center;padding:0 14px}
.fu-head{min-height:32px;font-size:12px;font-weight:600;color:var(--ct-dim);background:var(--ct-sunk);
  border-bottom:1px solid var(--ct-rule);border-radius:7px 7px 0 0}
.fu-head>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.fu-c{border-bottom:1px solid var(--ct-rule-soft)}
.fu-c:last-child{border-bottom:0}
.fu-c[hidden]{display:none}
.fu-c>summary{height:40px;cursor:pointer;list-style:none}
.fu-c>summary::-webkit-details-marker{display:none}
.fu-c>summary:hover{background:var(--ct-blue-bg-soft)}
.fu-c>summary:focus-visible{outline:2px solid var(--ct-focus);outline-offset:-2px}
.fu-c[open]>summary{background:var(--ct-sunk)}
.fu-c[open]>summary .fr-chev{transform:rotate(45deg)}
.fu-vs{display:contents}
.fu-t,.fu-v,.fu-by{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fu-t{font-weight:600;font-size:14px}
.fu-v{font-size:13px;color:var(--ct-dim)}
.fu-v.now{color:var(--ct-ink)}
.fu-by{font-size:13px;color:var(--ct-dim)}
.fu-lv{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.fu-lv i{font-style:normal;color:var(--ct-faint)}

/* ---- What changed, the first field of the open block -------------------------------------------------------------- */
.fu-chg{display:grid;gap:8px;width:100%}
.fu-chg .fr-tw{max-width:640px}
.portal .fu-ba th[scope=row]{background:none;font-weight:600;color:var(--ct-dim);text-align:left;width:86px;
  border-bottom:1px solid var(--ct-rule-soft)}
.portal .fu-ba tr:last-child th{border-bottom:0}
.portal .fu-ba td{vertical-align:middle}
.portal .fu-ba td.chg{font-weight:600}
.portal .fu-ba tr.same td{color:var(--ct-dim)}
.fu-same{font-size:12px;font-weight:400;color:var(--ct-faint);margin-left:4px}

/* ---- Remaining risks: the findings-report block; closed, each of its three lines is one line ---------------------- */
.fu-one .fr-t{display:flex;align-items:center;gap:6px;min-width:0}
.fu-one .fr-t .fr-tag{margin-left:0}
.fu-one .fr-t .fr-tag,.fu-one .fr-t .fu-k{flex:none}
.fu-tt{min-width:0}
.fu-one .fr-f>summary{grid-template-columns:38px 70px minmax(0,1fr) auto 18px}
.fu-one .fr-wh{grid-column:3/4;min-width:0}
.fu-since{grid-column:4/6;justify-self:end;font-size:12px;color:var(--ct-dim);white-space:nowrap}
.fu-one .fr-adv{max-width:none;min-width:0}
.fu-one .fr-f:not([open])>summary .fu-tt,.fu-one .fr-f:not([open])>summary .fr-wh,
.fu-one .fr-f:not([open])>summary .fr-adv{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fu-one .fr-f[open]>summary .fr-t{flex-wrap:wrap}
.fu-one .fr-f[open]>summary .fr-adv{max-width:72ch}
.ct-main .fu-accgroup{border-top:2px solid var(--ct-line)}
.fu-hidden{margin:0;font-size:13px;color:var(--ct-dim)}

/* ---- empty states -------------------------------------------------------------------------------------------------- */
.fu-empty{display:grid;gap:8px;justify-items:start}
.fu-empty .state{font-weight:600;font-size:15px}
.fu-empty p{margin:0;max-width:72ch}
.fu-acts{gap:8px;flex-wrap:wrap;margin-top:4px}

/* ---- narrower: a change becomes three lines, every row still the same height --------------------------------------- */
@media (max-width:900px){
  .fu-head{display:none}
  .fu-list{border-radius:var(--ct-r)}
  .fu-c>summary{grid-template-columns:auto auto minmax(0,1fr) auto 18px;height:auto;padding:10px 12px;gap:5px 8px;grid-template-rows:22px 22px 36px}
  .fu-c .fu-k{grid-area:1/1}.fu-c .fr-id{grid-area:1/2}.fu-lv{grid-area:1/3}.fu-c .fr-chev{grid-area:1/5}
  .fu-t{grid-area:2/1/3/4}.fu-by{grid-area:2/4/3/6;justify-self:end;font-size:12px}
  .fu-vs{display:grid;grid-area:3/1/4/6;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .fu-v::before{content:attr(data-l);display:block;font-size:11px;color:var(--ct-faint)}
}
@media (max-width:720px){
  .fu-sumrow>.ct-i{display:none}
  .fu-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .fu-b{min-width:0;padding:8px 10px}
  .fu-b.apart{margin-left:0}
  .fu-one .fr-f>summary{grid-template-columns:auto auto minmax(0,1fr) auto 18px}
  .fu-one .fr-ar{grid-area:1/3/2/5;justify-self:end}.fu-one .fr-chev{grid-area:1/5}
  .fu-one .fr-wh{grid-area:3/1/4/4}
  .fu-since{grid-area:3/4/4/6}
  .fu-sec .fr-tools{width:100%}
}
/* ---- the Follow-up report on paper (followup_report_pdf.html) ----------------------------------------------------- */
.pf .fu-sum{gap:6px;margin:0 0 8px}
.pf .fu-b{padding:5px 9px;min-width:74px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.pf .fu-b b{font-size:15px}
.pf .fu-b.apart{margin-left:10px}
.fu-pnote{margin:0 0 10px;font-size:12.5px;color:var(--ct-dim)}
.fu-pby{font-size:11px;color:var(--ct-faint)}
.pf .fu-pch td:nth-child(3){width:auto}
.pf .fu-pch td:nth-child(4){width:34%}
.pf .fu-pch .muted{font-size:11.5px}
.pf .fu-prem td:nth-child(3){width:36%}
.pf .fu-prem .fu-k,.pf-fh .fu-k,.pf-fh .fr-tag{margin-left:6px}
.pf .fr-table a{color:inherit;text-decoration:none}
.pf .fu-k,.pf .sev{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.pf-fh h3{display:block}
.pf .fu-chg .fr-tw{max-width:none}
.ct-main.pf .pf-h3 .fr-count{margin-left:6px}
.pf .rt-tw{overflow:visible;border-left:0;border-right:0;border-radius:0}
.pf .rt-table{min-width:0;font-size:12px}
/* Ten columns on paper (27 Nov 2026: Already in order beside Passed checks): narrower cells and headers that wrap,
   so the last column stays inside the margin in German too. */
.pf .rt-numbers{table-layout:auto;font-size:11px}
.pf .rt-numbers th,.pf .rt-numbers td{padding:5px 5px}
.pf .rt-numbers th{font-size:10.5px;white-space:normal;overflow-wrap:anywhere;hyphens:auto;vertical-align:bottom}
.pf .rt-table tr{break-inside:avoid}
.pf-keep{break-inside:avoid}
.pf .pf-keep+.fr-body{padding-top:10px}

/* The Reason switch of step 1 (clusters/_first_step1.html): the incident questions and "Report and get the script"
   show only with "Report an incident" chosen. CSS alone, so it holds without script too. */
.ft-switch:not(:has(#why_incident:checked)) [data-reason="incident"],
.ft-switch:has(#why_incident:checked) [data-reason="measure"]{display:none}
/* The ClusterDown mail note: the text, and "Send the mail again" beside it. */
.ft-mail{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
.ft-mail p{margin:0;flex:1 1 24rem}

/* ==== Report quality (portal-mockup/report-quality/DESIGN.md of 19 Nov 2026): the Findings report, the Follow-up
   report and the cluster's position line. Tokens only, so the reports follow the dark mode on screen; paper is light. */

/* Dates, names and check ids never break inside (problem 18). */
.nw{white-space:nowrap}
.fr-none{color:var(--ct-faint)}

/* ---- the introduction every document opens with: four short lines, never a page (section 4) -------------------- */
.dc-intro{margin:0;padding:10px 14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px;
  border:1px solid var(--ct-rule);border-left:3px solid var(--ct-primary);border-radius:0 6px 6px 0;background:var(--ct-surface)}
.dc-intro>div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;align-items:baseline}
.dc-intro dt{font-size:12px;font-weight:600;color:var(--ct-dim)}
.dc-intro dd{margin:0;font-size:13px;line-height:1.5;color:var(--ct-ink);overflow-wrap:break-word}

/* ---- Full or Short (Hans, 19 Nov 2026) --------------------------------------------------------------------------- */
.fr-vers{display:flex;align-items:center;gap:8px;font-size:13px}
.fr-vers-l{color:var(--ct-dim)}
.portal .fr-ver a{padding:4px 14px;font-size:13px}
.portal .fr-lang a{padding:4px 10px;font-size:13px}
.fr-vers .fr-lang-l{margin-left:12px}
.fr-trans{margin:8px 0}
@media (max-width:600px){.fr-vers{flex-wrap:wrap}.fr-vers .fr-lang-l{margin-left:0}}

/* ---- the summary: state and text left, the score right; the sum of the score behind its info box (2b) ----------- */
.fr-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 32px;align-items:start}
/* The Best Practices Score as an eye-catcher (Hans, 26 Nov 2026, portal-mockup/best-practices-score). Its colour is
   its band (measurements/score.py BANDS): red below 50, orange 50 to 69, blue 70 to 89, green from 90. One class sets
   --bp, so the position line, the Timeline, the chart row and both reports always agree; tokens only, so dark mode and
   paper (light) need nothing more. */
.bp-red{--bp:var(--ct-red)} .bp-orange{--bp:var(--ct-orange)}
.bp-blue{--bp:var(--ct-sev-low)} .bp-green{--bp:var(--ct-green)}
.bp-n{color:var(--bp);font-weight:700}
.sc-box{display:grid;justify-items:end;gap:3px;padding-left:24px;border-left:1px solid var(--ct-rule);text-align:right;
  min-width:210px}
.sc-lab{font-size:13px;font-weight:600;color:var(--ct-ink);display:inline-flex;gap:4px;align-items:center}
.sc-n{font:700 48px/1 var(--ct-mono);letter-spacing:-.02em;color:var(--bp,var(--ct-ink))}
.rt-sum .sc-n{font-size:48px}
/* the change since the previous measurement: a rise green, a fall red, no change grey; "since 3 Aug" dim */
.sc-d{font-size:12.5px;font-weight:500;color:var(--ct-dim);white-space:nowrap}
.sc-d i{font-style:normal;font-size:11px;color:var(--ct-grey)}
.sc-d.up,.sc-d.up i{color:var(--ct-green)} .sc-d.down,.sc-d.down i{color:var(--ct-red)}
.sc-d .sc-since{color:var(--ct-dim);font-weight:400}
/* the band scale under the number: four segments, the score's own one full, a marker at the score. Fixed pixels and
   no calc(), so WeasyPrint lays it out as the browser does; the marker is an SVG placed at 2 px per percent. */
.sc-scale{position:relative;width:200px;height:22px;margin-top:2px}
.sc-scale>span{position:absolute;top:8px;height:6px;border-radius:1px;opacity:.3}
.sc-scale>span.on{opacity:1}
.sc-scale .b1{left:0;width:98px;background-color:var(--ct-red)}
.sc-scale .b2{left:100px;width:38px;background-color:var(--ct-orange)}
.sc-scale .b3{left:140px;width:38px;background-color:var(--ct-sev-low)}
.sc-scale .b4{left:180px;width:20px;background-color:var(--ct-green)}
.sc-scale>.sc-mark{position:absolute;top:0;left:0;overflow:visible}
.sc-mark polygon{fill:var(--ct-ink)}
.sc-ticks{position:relative;width:200px;height:12px;font:400 10px/1 var(--ct-mono);color:var(--ct-faint)}
.sc-ticks>span{position:absolute;top:0;transform:translateX(-50%)}
.sc-ticks .t0{left:0;transform:none} .sc-ticks .t50{left:100px} .sc-ticks .t70{left:140px} .sc-ticks .t90{left:180px}
.sc-sub{font-size:12px;color:var(--ct-faint)}
.fr-sum>.fr-charts{padding-top:14px;border-top:1px solid var(--ct-rule-soft)}
.fr-over{border-top:1px solid var(--ct-rule-soft);padding-top:14px;min-width:0}
.ct-main .fr-h3{font-size:13px;font-weight:600;margin:0;display:flex;align-items:center;gap:6px}
.ct-main .fr-h4{font-size:12px;font-weight:600;color:var(--ct-dim);margin:0}
.fr-trend{gap:10px}
.fr-trend .rt-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
.rt-acts{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 16px}

/* ---- the list of findings: every closed row three lines of one height (problem 4) ------------------------------- */
.fr-full .fr-wh{grid-column:3/5}
.fr-full .fr-wh .nw+.nw{margin-left:0}
.fr-f[open]>summary .fr-adv.dup{display:none}           /* open, the Advice field says it; never twice (problem 14) */
.fu-one .fr-f[open]>summary .fr-wh{white-space:normal}
.fr-acc{border:0;border-top:1px solid var(--ct-rule-soft);border-radius:0}
ul.fr-ul{margin:0;padding-left:20px;display:grid;gap:2px;max-width:70ch}

/* ---- evidence: readable heads, rows of one height, what is the same in every row said once (problems 5, 6) ------ */
.ev{display:grid;gap:6px;min-width:0;width:100%}
.ev-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px}
.ev-sum{font-size:13px;color:var(--ct-dim);margin:0}
.ev-sum b{color:var(--ct-ink)}
.ev-same{margin:0;display:flex;flex-wrap:wrap;gap:4px 6px;align-items:baseline;font-size:12.5px}
.ev-same dt{color:var(--ct-faint);margin-right:4px}
.ev-same dd{margin:0;padding:1px 8px;border:1px solid var(--ct-rule);border-radius:4px;font-family:var(--ct-mono);
  font-size:12px;background:var(--ct-surface);overflow-wrap:anywhere}
.ev-same dd span{font-family:var(--ct-sans);color:var(--ct-faint);margin-right:4px}
.fr-ev .ev .fr-tw{max-width:100%;justify-self:start;width:auto}
.portal .ev-t{width:auto;min-width:0;table-layout:auto}
.portal .ev-t td{vertical-align:middle}
.portal .ev-t td>span{display:block;max-width:44ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal .ev-t td.k{font-weight:500}
.fr-src .ct-i{margin-left:4px}
.portal .fr-refs a.fr-ref{display:block;max-width:72ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* A report's tables sort on screen (problem 16): sort-table.js wires a table inside a report that carries .fr-sort. */
.portal .fr-sort th .th-sort{font:inherit;color:inherit}
.portal .fr-sort th[aria-sort]{color:var(--ct-ink)}

/* ---- the Short version: one line per finding --------------------------------------------------------------------- */
.portal .fr-short{table-layout:fixed;min-width:0}
.fr-short th.i{width:52px}.fr-short th.s{width:170px}.fr-short th:nth-child(3){width:22%}
/* The Short version is read, not scanned: its texts wrap, on screen as on paper (Hans, 19 Nov 2026: "a choice to read
   the full version or an abbreviated version"). The level and the Accepted tag stay on one line. */
.portal .fr-short td{vertical-align:top}
.portal .fr-short td>span{display:block;white-space:normal;overflow-wrap:anywhere}
.portal .fr-short td.s{white-space:nowrap}
.portal .fr-short td.k{font-weight:600}
.portal .fr-short td.k a{color:var(--ct-ink);text-decoration:none}
.portal .fr-short td.k a:hover{color:var(--ct-link-hover);text-decoration:underline}
.fr-short .fr-tag{margin-left:6px}
/* the Short version of the RCA report (rca/_short.html): the same reading table, with its own column widths */
.rc-short th.s{width:150px}.rc-short.a th:nth-child(2){width:26%}.rc-short.a th:nth-child(3){width:150px}
.rc-short.b th:nth-child(3){width:34%}.rc-short.c th:nth-child(1){width:24%}.rc-short.c th:nth-child(3){width:30%}
.portal .rc-short td.s{white-space:normal}

/* ---- Expand and Close (section 9): a large figure or table opens over the whole page at its own size. A link to its
   id opens it (:target), so it works without script; Close and the browser's Back close it; expand.js adds Escape. */
.xp-at{display:block;position:relative;top:-12px;height:0}
.xp-ctl{display:inline-flex;gap:8px;font-size:13px}
.portal .xp-ctl a{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 10px;border:1px solid var(--ct-rule);
  border-radius:5px;background:var(--ct-surface);color:var(--ct-link);text-decoration:none;white-space:nowrap}
.portal .xp-ctl a:hover{border-color:var(--ct-primary)}
.xp-ctl a::before{content:"";width:10px;height:10px;border:1.5px solid currentColor;border-radius:1px;box-sizing:border-box}
.xp-ctl .xp-close::before{border:0;content:"\00D7";width:auto;height:auto;font-size:15px;line-height:1}
.portal .xp .xp-close,.portal .xp:target .xp-open{display:none}
.portal .xp:target .xp-close{display:inline-flex}
.xp:target{position:fixed;inset:0;z-index:80;margin:0;overflow:auto;border-radius:0;border:0;padding:20px 24px 32px;
  background:var(--ct-surface);box-shadow:none;align-content:start}
.xp:target .rt-trend,.xp:target .fr-tw{max-width:none}
.xp:target .rt-grid{grid-template-columns:minmax(520px,1.25fr) minmax(560px,1fr)}
.xp:target .ev-t td>span{max-width:none}
.xp:target .ev-head{position:sticky;top:-20px;background:var(--ct-surface);padding:8px 0;z-index:2}

/* ---- the cluster's position line: the score as a filled tile in its band colour, at the right end (2b) ---------- */
.cp-score{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.cp-position .cp-score{margin-left:auto}
.cp-score .cp-lab{font-weight:600;color:var(--ct-ink);display:inline-flex;align-items:center;gap:6px}
.cp-score b{font:700 20px/1 var(--ct-mono);letter-spacing:-.01em;color:var(--ct-on-sev);
  background:var(--bp,var(--ct-grey));padding:6px 10px;border-radius:6px}
.cp-score .sc-d{font-size:13px}

@media (max-width:900px){
  .fr-top{grid-template-columns:minmax(0,1fr)}
  .sc-box{justify-items:start;text-align:left;border-left:0;padding-left:0;grid-template-columns:auto 1fr;
    align-items:baseline;gap:2px 10px;min-width:0}
  .sc-lab,.sc-scale,.sc-ticks,.sc-sub{grid-column:1/-1}
  .sc-n,.rt-sum .sc-n{font-size:40px}
  .rt-sum .sc-box{padding-top:12px;border-top:1px solid var(--ct-rule)}
  .fr-trend .rt-grid{grid-template-columns:minmax(0,1fr)}
  .dc-intro{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .dc-intro>div{grid-template-columns:minmax(0,1fr);gap:0}
  .fr-full .fr-wh{grid-area:3/1/4/-1}
  /* a phone has no room for columns and no hover: every measured row is a small card, label left, value right */
  .portal .ev-t thead,.portal .fr-short thead{position:absolute;left:-9999px}
  .portal .ev-t,.portal .ev-t tbody,.portal .ev-t tr,.portal .fr-short,.portal .fr-short tbody,.portal .fr-short tr{display:block;width:100%}
  .fr-ev .ev .fr-tw{width:100%}
  .portal .ev-t tr,.portal .fr-short tr{padding:8px 10px;border-bottom:1px solid var(--ct-rule-soft)}
  .portal .ev-t tr:last-child,.portal .fr-short tr:last-child{border-bottom:0}
  .portal .ev-t td,.portal .fr-short td{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px;padding:1px 0;border:0;
    text-align:left;white-space:normal}
  .portal .ev-t td::before,.portal .fr-short td::before{content:attr(data-l);font:400 12px/1.6 var(--ct-sans);color:var(--ct-faint)}
  .portal .ev-t td>span,.portal .fr-short td>span{white-space:normal;overflow:visible;overflow-wrap:anywhere;max-width:none}
  .portal .ev-t td>span.nw{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .portal .ev-t td.k,.portal .fr-short td.k{grid-template-columns:minmax(0,1fr);font-weight:600}
  .portal .ev-t td.k::before,.portal .fr-short td.k::before{content:none}
  .portal .fr-short td.s{grid-template-columns:104px auto auto;justify-content:start;align-items:center}
  .portal .fr-short td.s .sev,.portal .fr-short td.s .fr-tag{justify-self:start;margin:0}
  .portal .fr-refs a.fr-ref{white-space:normal;overflow-wrap:anywhere}
  .xp:target{padding:14px 12px 24px}
  .xp:target .rt-grid{grid-template-columns:minmax(0,1fr)}
  .cp-score{white-space:normal}
  /* a phone: the score is the first row of the position box, at full width, its label on a line of its own */
  .cp-position .cp-score{margin-left:0;flex:0 0 100%;flex-wrap:wrap;gap:6px 8px;order:-1;padding-bottom:6px;
    border-bottom:1px solid var(--ct-rule-soft)}
  .cp-score .cp-lab{flex:0 0 100%}
}
@media print{
  .xp-ctl,.xp-at{display:none}
}

/* ---- the reports on paper (findings_report_pdf.html, followup_report_pdf.html; light, WeasyPrint) ------------- */
.pf .dc-intro{display:block;padding:7px 12px;margin:0 0 12px;break-inside:avoid}
.pf .dc-intro>div{display:block;margin:0 0 2px}
.pf .dc-intro dt{display:inline;font-size:11px;margin-right:6px}
.pf .dc-intro dt::after{content:":"}
.pf .dc-intro dd{display:inline;font-size:11.5px}
.pf .xp-ctl,.pf .xp-at{display:none}
/* Risks over time: the chart and its legend on one page, never a legend alone (problem 11). */
.pf .rt,.pf .fr-trend{break-inside:avoid}
.pf .rt-key{display:block;break-before:avoid;padding-top:6px}
.pf .rt-key li{display:inline-block;white-space:nowrap;margin:0 14px 4px 0}
.pf .rt-pkey{display:inline-block;vertical-align:-1px;margin-right:5px}
/* The bars figure is half a page wide on paper: each label stands on one line above its numbers, as on a phone, so
   the bars keep their width (next to the label column six bars ran into each other). */
.pf .rt-row{display:block}
.pf .rt-plot .rt-lab,.pf .rt-dates .rt-lab{display:none}
.pf .rt-checks .rt-lab,.pf .rt-score .rt-lab,.pf .rt-chg .rt-lab{min-height:0;padding-bottom:2px}
/* Evidence: a fixed layout in which long values wrap and never pass the margin (section 9). */
.pf .fr-ev,.pf .ev{display:block}
.pf .ev{break-inside:avoid;margin-bottom:6px}
.pf .ev-head{display:block}
.pf .ev-sum{font-size:11.5px;margin:0 0 3px}
.pf .ev-same{display:block;font-size:11px;margin:0 0 5px}
.pf .ev-same dt,.pf .ev-same dd{display:inline-block;margin:0 5px 3px 0}
.pf .ev-same dd{font-size:10.5px}
.pf .fr-ev .ev .fr-tw{width:100%}
/* Evidence on paper (second gate review, 21 Nov 2026: a switch name split in two): page-wide, each column at least as
   wide as its longest word (automatic layout), a value breaks only at a space or after a comma (findings_report.paper_text);
   a table too wide for that leaves columns out on paper (findings_report._paper_fit). */
.pf .ev-t,.portal .pf .ev-t{width:100%;table-layout:auto;font-size:9px;line-height:1.3;margin-bottom:4px}
.pf .ev-t th{font-size:8.5px;padding:3px 5px;overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal}
.pf .ev-t td{padding:3px 5px;font-size:9px;vertical-align:top;overflow-wrap:normal;word-break:normal;hyphens:none;
  white-space:normal}
.portal .pf .ev-t td>span,.portal .pf .ev-t td>span.nw{display:block;white-space:normal;overflow:visible;max-width:none;
  overflow-wrap:normal;word-break:normal}
.portal .pf .ev-t td.m,.portal .pf .ev-t td.n,.portal .pf .ev-t th.m{font-family:var(--ct-sans);font-size:9px}
.portal .pf .ev-t td.k{font-family:var(--ct-mono);font-size:8.5px;font-weight:600}
.pf .ev-same dd{white-space:normal;overflow-wrap:normal;word-break:normal;max-width:100%}
.pf .fr-ref{overflow-wrap:anywhere}
/* Follow-up tables: fixed column shares, the texts get the room, the dates and numbers only what they need. */
.pf table.fu-pch,.pf table.fu-prem{table-layout:fixed;width:100%}
.pf .fu-pch th:nth-child(1){width:15%}.pf .fu-pch th:nth-child(2){width:7%}.pf .fu-pch th:nth-child(3){width:14%}
.pf .fu-pch th:nth-child(4){width:30%}.pf .fu-pch th:nth-child(5),.pf .fu-pch th:nth-child(6){width:17%}
.pf .fu-prem th:nth-child(1){width:7%}.pf .fu-prem th:nth-child(2){width:11%}.pf .fu-prem th:nth-child(3){width:34%}
.pf .fu-prem th:nth-child(4){width:36%}.pf .fu-prem th:nth-child(5){width:12%}
.pf .fu-prem td,.pf .fu-pch td,.pf .fu-prem th,.pf .fu-pch th{overflow-wrap:anywhere;white-space:normal}
.pf .fu-pch td:nth-child(4),.pf .fu-prem td:nth-child(3){width:auto}

/* ---- Orders, paid by bank transfer with the SEPA QR (orders/; design first-ten-minutes "Orders and payment") ---- */
.or-page{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.or-form{max-width:none}
.or-form>h2{margin-bottom:-4px}
.or-seg{width:max-content;max-width:100%}
/* On the order page the product switch is not the coloured control: the pay button is. */
.or-form .seg-radio input:checked+span{background:var(--ct-ink);color:var(--ct-on-ink)}
.or-form .seg-radio input:disabled+span{opacity:.5;cursor:not-allowed}
.or-form:not(:has(#pr_r:checked)) [data-product="r"],.or-form:has(#pr_r:checked) [data-product="m"],
.or-page:not(:has(#pr_r:checked)) .or-sum [data-product="r"],.or-page:has(#pr_r:checked) .or-sum [data-product="m"]{display:none}
.or-page:has(#pl_d:checked) [data-plan="year"],.or-page:not(:has(#pl_d:checked)) [data-plan="demand"]{display:none}
.or-plan{gap:10px}
.or-lines{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;margin:0}
.or-lines dt{color:var(--ct-dim)}
.or-lines dd{margin:0;text-align:right;white-space:nowrap}
.or-to dd{padding-left:12px}
.or-lines{column-gap:0}
.or-lines dd{padding-left:16px}
.or-lines .or-total{font-weight:600;color:var(--ct-ink);border-top:1px solid var(--ct-rule);padding-top:8px;margin-top:2px}
.or-settings{max-width:760px}
/* The modules of an order (Hans, 21 Nov 2026): one checkbox per orderable module, all rows one height; one column on
   a phone. The name shortens with "..." (full name on hover); the code stays readable beside it. */
.or-mods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.portal label.or-mod{display:flex;align-items:center;gap:8px;height:36px;min-width:0;font-weight:400;cursor:pointer;
  border-bottom:1px solid var(--ct-rule-soft)}
.portal label.or-mod[hidden]{display:none}
.or-mod input{flex:none;margin:0;width:16px;height:16px;accent-color:var(--ct-primary)}
.or-mod .one-line{flex:1;min-width:0}
.or-mod .mono{flex:none}
@media (max-width:560px){.or-mods{grid-template-columns:minmax(0,1fr)}}
.or-save{margin:0;color:var(--ct-green-ink)}
.or-cluster select{max-width:100%}
.portal .mv-modset{display:flex;flex-wrap:wrap;gap:4px 12px}
.portal label.mv-mod{display:inline-flex;flex-direction:row;align-items:center;gap:4px;font-size:13px;font-weight:400;
  color:var(--ct-dim);height:24px;white-space:nowrap;cursor:pointer}
.mv-mod input{margin:0}
.portal .mv-row select{width:auto;max-width:100%;min-height:32px;padding:4px 8px;font-size:14px}
.or-pay{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;justify-items:start}
.or-pay .btn{width:100%;text-align:center}
.or-how{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px}
.or-facts{grid-template-columns:104px minmax(0,1fr)}
/* The transfer: the QR code (always black on white, for the scanner) beside the account and the reference. */
.or-bank{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 16px;align-items:center}
.or-qr{background:#fff;border:1px solid var(--ct-rule);border-radius:6px;padding:4px;line-height:0}
.or-qr svg{width:132px;height:132px}
.or-to{grid-template-columns:auto minmax(0,1fr);font-size:13px}
.or-to dd{text-align:left;white-space:normal;overflow-wrap:anywhere}
.or-switches{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center}
.or-switches .switch{display:flex;align-items:center;gap:8px}
/* Columns (Hans, 1 Dec 2026): order, order date, organisation, invoice, due date, paid date, product, total, state,
   action. No sideways scroll on a desk screen of 1360 px (Hans, 4 Dec 2026, item 25): a credit invoice goes on its own
   line under the invoice, so that column is 130 px, not 220; numbers and dates fit 80 px. */
.or-grid{display:grid;grid-template-columns:80px 80px minmax(96px,1fr) 130px 80px 80px minmax(112px,1.3fr) 96px 150px 270px;
  align-items:center;gap:0 12px;padding-left:12px;padding-right:12px;box-sizing:border-box}
.or-cgrid{display:grid;grid-template-columns:84px minmax(0,1fr) 104px 168px 92px;align-items:center;gap:0 12px;
  padding-left:12px;padding-right:12px;box-sizing:border-box}
.or-grid.list-row,.or-cgrid.list-row{height:44px;padding-top:0;padding-bottom:0}
.or-grid .state,.or-cgrid .state{white-space:nowrap}
.or-act{display:flex;justify-content:flex-end;gap:6px}
.or-act form,.or-act .btn{width:100%}
.or-act .btn{white-space:nowrap}
/* A To close row (30 days past due) has Close as Not paid beside Mark as paid: every row of the list then gets the
   wider action column, so the columns stay in line. */
.or-grid.wide-act{grid-template-columns:80px 80px minmax(96px,1fr) 130px 80px 80px minmax(112px,1.2fr) 96px 150px 420px}
.or-grid .or-inv{min-width:0;display:flex;flex-direction:column;justify-content:center;line-height:17px}
.or-grid .or-inv a+a{margin-left:8px}
.or-grid .or-inv .or-cn{margin-right:6px;font:12px/17px var(--ct-sans)}   /* Credit 26-0018 PDF under its invoice */
.inv-print{display:flex;gap:8px}
/* Export for the bookkeeping: one row of selects under the switches, shown after a click on Export. */
.or-export{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;justify-content:flex-end}
.or-export.is-closed{display:none}
.portal .or-export label{display:inline;font-size:13px;font-weight:400;color:var(--ct-dim)}
.portal .or-export select{width:auto;font-size:14px;padding:4px 8px;min-height:36px}
/* Not paid (Hans, 21 Nov 2026): the invoice stays, the line says why there is no QR. */
.pay-unpaid{font-weight:600;color:var(--ct-red)}
.or-close{gap:6px;align-items:center}
/* Staff: the Refund card on a paid order (orders/refund.py): amount, reason, button in one row. */
.or-refund-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.portal .or-refund-amount{display:inline-flex;align-items:center;gap:4px}
.portal .or-refund-amount input{width:7.5rem}
.portal .or-refund-row input[name="reason"]{flex:1 1 12rem;min-width:0}
.or-credit a:first-child{overflow:hidden;text-overflow:ellipsis}
/* The review hour of a yearly package (orders/review.py). The order page's row stays one line, also on a phone: the
   preferred times end in "..." with the whole text on hover. Staff's card: date, time, note and Book in one row. */
.or-facts dd.or-one{flex-wrap:nowrap}
.or-facts dd.or-one .one-line{flex:0 1 auto;white-space:nowrap}
.or-review-form{border-top:1px solid var(--ct-rule-soft);padding-top:12px;gap:10px}
.portal .or-review-form textarea{min-height:0;resize:vertical}
.or-review-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.portal .or-review-row input[name="day"]{font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--ct-line);
  border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);box-sizing:border-box;width:auto}
.portal .or-review-row input[name="time"]{width:5.5rem}
.portal .or-review-row input[name="note"]{flex:1 1 12rem;min-width:0}
/* Two or three credits on a phone do not fit one line next to the label: the amount and date go under the links. */
.or-facts dd.or-inv.or-credit{flex-wrap:wrap;white-space:normal}
.or-facts dd.or-inv.or-credit a{white-space:nowrap;flex:none}
/* The invoice: a page to print, always light. */
.inv{max-width:820px;display:grid;gap:24px;padding:28px 32px;overflow-wrap:break-word}
.inv-head>*,.inv-to{min-width:0}
.inv-to h2,.inv-head h2{font-size:12px;font-weight:500;color:var(--ct-faint);margin:0 0 4px}
.inv-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px}
.inv-title dl,.inv-pay dl{display:grid;grid-template-columns:auto minmax(0,auto);justify-content:start;gap:2px 14px;margin:6px 0 0}
.inv-title dd,.inv-pay dd{margin:0;font-family:var(--ct-mono);font-size:13px;overflow-wrap:anywhere}
.inv-lines{table-layout:fixed}
.inv-lines th:nth-child(2),.inv-lines td:nth-child(2){width:5.5rem}
.inv-lines th:nth-child(3),.inv-lines td:nth-child(3),.inv-lines th:nth-child(4),.inv-lines td:nth-child(4){width:7.5rem}
.inv-lines{width:100%;border-collapse:collapse}
.inv-lines th,.inv-lines td{padding:6px 8px;border-bottom:1px solid var(--ct-rule-soft);text-align:left;overflow-wrap:break-word}
.inv-print{justify-self:start}
@media print{.inv-print,.crumbs,.ct-top,.ct-foot{display:none!important}.inv{border:0;padding:0}}
.inv-lines .num{text-align:right;white-space:nowrap}
/* The description column starts on the page's left margin and the amounts end on its right one, as From, Invoice to
   and the bank lines (Hans, 1 Dec 2026: "make left margin left justified"). */
.inv-lines th:first-child,.inv-lines td:first-child{padding-left:0}
.inv-lines th:last-child,.inv-lines td:last-child{padding-right:0}
.inv-total td{font-weight:600;border-top:1px solid var(--ct-rule)}
.inv-paid{font-weight:600;color:var(--ct-green)}
/* The invoice row on the order page: "Invoice 2026-0004", "PDF" and the due date stay one row. */
.or-facts dd.or-inv{flex-wrap:nowrap;white-space:nowrap}
/* The pay link (orders/paylink.py) under the QR: the link in a read-only field and Copy, one row. */
.or-paylink{display:grid;gap:4px;min-width:0}
.or-paylink-row{display:flex;gap:8px;align-items:center;min-width:0}
.portal .or-paylink-row input{flex:1 1 auto;min-width:0;height:36px;font-size:12px;text-overflow:ellipsis}
.or-paylink-row .btn{flex:none;white-space:nowrap}
/* The pay link's own page (templates/orders/pay.html): the invoice, the QR beside the bank details. */
.pay-bank dl{margin:0}
.pay-gone{max-width:620px}
.pay-gone h1{font-size:20px;margin:0 0 8px}
@media (max-width:820px){.or-page{grid-template-columns:minmax(0,1fr)}}
@media (max-width:720px){
  /* An order is a card on a phone: number and state, the customer, the product, the total and the button. */
  .or-grid,.or-grid.wide-act,.or-cgrid{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:10px 12px}
  .or-grid.list-head,.or-cgrid.list-head{display:none}
  .or-grid.list-row{height:132px;align-content:center}
  .or-cgrid.list-row{height:92px;align-content:center}
  .or-grid>:nth-child(3){grid-row:2;grid-column:1 / -1}
  .or-grid>:nth-child(7){grid-row:3;grid-column:1 / -1;color:var(--ct-faint);font-size:13px}
  .or-grid>:nth-child(8){grid-row:4;grid-column:1;text-align:left}
  .or-grid>:nth-child(9){grid-row:1;grid-column:2}
  .or-grid>:nth-child(2),.or-grid>:nth-child(4),.or-grid>:nth-child(5),.or-grid>:nth-child(6){display:none}
  .or-grid>:nth-child(10){grid-row:4;grid-column:2}
  .or-cgrid>:nth-child(2){grid-row:2;grid-column:1 / -1}
  .or-cgrid>:nth-child(3){grid-row:3;grid-column:1;text-align:left}
  .or-cgrid>:nth-child(4){grid-row:1;grid-column:2}
  .or-cgrid>:nth-child(5){grid-row:3;grid-column:2;justify-self:end}
  .or-facts .one-line{white-space:normal}
  .or-switches .seg a{white-space:nowrap;padding:6px 9px}
  .or-bank{grid-template-columns:minmax(0,1fr);justify-items:start}
  .inv{padding:18px 16px}
  .inv-lines th,.inv-lines td{padding:6px 4px}
  .inv-lines th:nth-child(2),.inv-lines td:nth-child(2){width:2.2rem}
  .inv-lines th:nth-child(3),.inv-lines td:nth-child(3),.inv-lines th:nth-child(4),.inv-lines td:nth-child(4){width:5.6rem}
  .inv-lines th:nth-child(2){font-size:0}
  .inv-lines th:nth-child(2)::after{content:"Qty";font-size:12px}
  /* € 3,200.00 in two neighbouring columns of 5.6rem touched; a size smaller leaves a gap. */
  .inv-lines td.num{font-size:12px}
}
/* Staff customer page: Give free measurements (orders/balance.py) */
.cu-give input[name="n"]{width:56px}
.cu-give input[name="note"]{flex:1 1 160px;min-width:0}
.cu-list dt.im-dt{align-self:center}
.cu-picks{display:flex;flex-direction:column}
.portal .cu-pick{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px 14px;border-top:1px solid var(--ct-rule-soft);min-height:40px;box-sizing:border-box}
.cu-pick:first-child{border-top:0}
.portal .cu-pick input[type=checkbox]{flex:none;width:auto;margin:0}
.cu-pick>span{flex:none}
.cu-pick .mono{margin-left:auto}
.cu-list dd.im-row{display:flex;align-items:center;gap:8px;padding-top:3px;padding-bottom:3px}
.portal .cu-list input.im-name{flex:0 1 360px;width:auto;min-width:0;min-height:32px;padding:4px 8px}
.cp-balance{align-self:center}
/* The lock until paid (orders/lock.py): a locked finding shows its title only */
.lk-box{max-width:720px}
.lk-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--ct-dim);white-space:nowrap;margin-left:8px}
@media (max-width:720px){.rk-title .lk-tag{display:block;margin-left:0}}
.lk-tag a{color:inherit}
.lk-title{color:var(--ct-dim)}
.ft-rest{display:grid;gap:6px;margin:0}
.ft-rest li{flex-wrap:nowrap;min-width:0}

/* ---- NEW: new customers on the staff lists (nw-) -------------------------------------------------------------- */
/* One tag per customer, one colour per state. Solid, so it is not taken for the tinted Single-Site/Multi-Site label
   or the outlined flags. The same colours in light and dark and on the navy customer band. */
.nw-tag{display:inline-block;flex:none;padding:0 7px;border-radius:4px;font-size:12px;font-weight:600;line-height:1.5;
  white-space:nowrap;border:1px solid transparent;vertical-align:1px}
.nw-tag.down{background:#D6336C;border-color:#D6336C;color:#FFFFFF}
.nw-tag.new{background:#1971C2;border-color:#1971C2;color:#FFFFFF}
/* ClusterTriage (was Existing customers, renamed 24 Nov 2026): green (Hans, 18 Nov 2026: "Existing customers color green, New customers color blue"). */
.nw-tag.demo{background:#7048E8;border-color:#7048E8;color:#FFFFFF}
.nw-tag.pros{background:#0C8599;border-color:#0C8599;color:#FFFFFF}
.nw-tag.rest{background:#2B8A3E;border-color:#2B8A3E;color:#FFFFFF}
/* Partners (Hans, 3 Dec 2026): the orange of the Partner and via tags (.cu-tag), solid like the other groups. */
.nw-tag.part{background:#C2570C;border-color:#C2570C;color:#FFFFFF}
.nw-tag.unconf{background:transparent;border:1px dashed #D6336C;color:#C2255C}
/* Clusters for staff: a band per group over its rows. Closed and opened like the customers of the tree. */
.nw-grp>summary{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 14px 0 10px;cursor:pointer;list-style:none;
  background:var(--ct-sunk);border-top:1px solid var(--ct-rule);border-left:4px solid var(--ct-blue-edge);white-space:nowrap}
.nw-grp>summary::-webkit-details-marker{display:none}
.nw-grp>summary::before{content:"\25B8";flex:none;width:12px;color:var(--ct-faint)}
.nw-grp[open]>summary::before{content:"\25BE"}
.nw-grp>summary .nw-n{color:var(--ct-dim);font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis}
.nw-grp>summary .nw-rest{font-weight:600;font-size:13px;color:var(--ct-ink)}
.nw-grp.down>summary,.nw-grp.down>.cx-lrow{border-left-color:#D6336C}
.nw-grp.new>summary,.nw-grp.new>.cx-lrow{border-left-color:#1971C2}
.nw-grp.rest>summary,.nw-grp.rest>.cx-lrow{border-left-color:#2B8A3E}
.nw-grp.demo>summary,.nw-grp.demo>.cx-lrow{border-left-color:#7048E8}
/* Customers for staff: the customer row's edge takes the colour of its group. */
.nw-grp.down>.t-org>.t-org-row{border-left-color:#D6336C}
.nw-grp.new>.t-org>.t-org-row{border-left-color:#1971C2}
.nw-grp.rest>.t-org>.t-org-row{border-left-color:#2B8A3E}
.nw-grp.demo>.t-org>.t-org-row{border-left-color:#7048E8}
.nw-grp.pros>summary,.nw-grp.pros>.t-org>.t-org-row{border-left-color:#0C8599}
.nw-grp.part>summary,.nw-grp.part>.t-org>.t-org-row,.nw-grp.part>.cx-lrow{border-left-color:#C2570C}
.nw-grp>.t-org:first-of-type{border-top:0}
.nw-grp:first-of-type>summary{border-top:0}
.cx-tree>.nw-grp:last-of-type:not([open])>summary{border-radius:0 0 7px 7px}
.cx-grid.cx-lrow .t-name .nw-tag{margin-left:0}
@media (max-width:720px){
  .nw-grp>summary{min-height:44px;padding:0 12px 0 8px}
  /* The tag stays on a phone; the customer's name beside the cluster gives way first. */
  .cx-grid .t-name .nw-tag{font-size:11px;padding:0 5px}
  .cx-grid.cx-lrow .t-name .cx-also{flex:0 1 auto}
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .nw-tag.unconf{border-color:#F783AC;color:#F783AC}}
:root[data-theme="dark"] .nw-tag.unconf{border-color:#F783AC;color:#F783AC}
/* The legend lines of the tags in the info box (dark ground in both modes). */
.cx-leg .nw-tag{justify-self:start;font-size:11px}
.cx-leg.nw-leg{grid-template-columns:auto minmax(0,1fr);margin-top:8px;padding-top:8px;border-top:1px solid #2C3549}
.cx-leg.nw-leg .nw-tag.unconf{border-color:#F783AC;color:#F783AC}
.cx-leg.cx-extra{margin-top:8px}
/* ---- NEW: the staff note beside the greyed button of the ClusterDown form ---- */
.ft-staff{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ct-orange)}
.ft-staff::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ct-orange)}
/* ClusterDown form: a field the cluster type or storage type fills by itself (js/clusterdown-form.js). */
select.ft-auto{background-color:var(--ct-surface-2,rgba(127,127,127,.12));color:var(--ct-text-dim,inherit);cursor:default}

/* The link at the end of a done step (Hans, 18 Nov 2026: "the Open is hard to see"): a small outlined button. */
.ft-path a.ft-btn{font-size:13px;font-weight:600;padding:3px 10px;border:1px solid var(--ct-link);border-radius:6px;
  color:var(--ct-link);background:var(--ct-surface);text-decoration:none;line-height:1.4}
.ft-path a.ft-btn:hover{background:var(--ct-blue-bg);color:var(--ct-link-hover)}
.ia-form{max-width:920px}

/* Staff fill in the ClusterDown form for a caller (design staff-clusterdown): the button in the ClusterDown band,
   outlined in the band's pink so the band keeps its height, and the form in one panel with a pink edge. */
.nw-grp summary .nw-new{margin-left:auto;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:6px;
  border:1px solid #D6336C;color:#C2255C;background:var(--ct-surface);font-size:13px;font-weight:600;
  text-decoration:none;white-space:nowrap}
.nw-grp summary .nw-new:hover{background:#D6336C;color:#FFFFFF}
@media (max-width:640px){.nw-grp summary .nw-new{height:32px}.nw-new-long{display:none}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .nw-grp summary .nw-new{border-color:#F783AC;color:#F783AC}}
:root[data-theme="dark"] .nw-grp summary .nw-new{border-color:#F783AC;color:#F783AC}
.cd-staff-form{max-width:920px;border-left:4px solid #D6336C}
.ft-terms{margin:0;display:flex;align-items:center;gap:6px}
/* ---- Import results, staff (si-): measurements/import_views.py, design staff-import (18 Nov 2026) --------------------------------------------------------- */
/* The form: cluster left, files right, on top of .cu-card / .cu-body / .cu-file. One column on a phone. */
.si-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;align-items:start}
.si-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.si-lab{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:500;color:var(--ct-ink)}
.portal .si-lab label{display:inline}
.portal .si-field select{min-height:42px;text-overflow:ellipsis}
.portal .si-field .cu-file{min-height:42px;box-sizing:border-box;padding:4px 10px}
.portal .si-field .cu-file input{border:0;background:none;padding:4px 0;font-size:14px;min-width:0}
.si-go{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.portal .si-go .btn{min-width:150px}
.portal .si-go label.check{align-items:center;gap:8px}
.si-go .si-rel{display:flex;align-items:center;gap:4px}
/* The chosen files: one line each, name, size, kind. */
.si-picked{list-style:none;margin:0;padding:0;border:1px solid var(--ct-rule-soft);border-radius:6px}
.si-picked li{display:grid;grid-template-columns:minmax(0,1fr) 64px 80px;gap:0 10px;align-items:center;height:32px;padding:0 10px;
  border-top:1px solid var(--ct-rule-soft)}
.si-picked li:first-child{border-top:0}
.si-picked .mono,.si-file{font-family:var(--ct-mono);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.si-picked .sz{font-family:var(--ct-mono);font-size:12px;color:var(--ct-faint);text-align:right;white-space:nowrap}
/* A small tag: the kind of zip, where the date came from. One word, never wraps. */
.si-tag{display:inline-block;justify-self:start;padding:0 7px;border-radius:4px;border:1px solid var(--ct-line);color:var(--ct-dim);
  font-size:12px;font-weight:500;line-height:18px;white-space:nowrap}
.si-tag.blue{border-color:var(--ct-blue-line-soft);background:var(--ct-blue-bg);color:var(--ct-blue-ink)}
.si-tag.amber{border-color:var(--ct-amber-line);background:var(--ct-amber-bg);color:var(--ct-orange)}
/* The list: one grid for the head and every row, like .fu-grid. Every row 40 px, one line. */
.si-headline{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-top:8px}
.si-headline h2{margin:0}
.si-sum{font-size:13px;color:var(--ct-dim);white-space:nowrap}
.si-sum strong{color:var(--ct-ink)}
.cl-list.si-list{overflow:visible}
.si-grid{display:grid;grid-template-columns:20px minmax(250px,2.4fr) 80px 108px minmax(80px,.7fr) 126px 100px 64px minmax(276px,1fr) 84px;
  align-items:center;gap:0 10px;padding:0 12px;height:40px;min-height:40px;box-sizing:border-box}
.si-grid.cl-head{height:34px;min-height:34px}
.si-grid>*{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.si-grid>.dot{overflow:visible}
.portal .si-grid a{text-decoration:none}
.portal .si-grid a:hover{text-decoration:underline}
.portal .si-file a{color:var(--ct-ink)}
.portal .si-cl a{font-weight:600;color:var(--ct-ink)}
.portal .si-org a{color:var(--ct-dim)}
.si-grid .num{text-align:right;font-family:var(--ct-mono);font-size:13px;color:var(--ct-ink)}
.si-grid.cl-head .num{font-family:var(--ct-sans);font-size:12px;color:inherit}
.si-none{color:var(--ct-faint);font-family:var(--ct-sans);font-size:13px}
.si-list .cl-row:last-child{border-radius:0 0 7px 7px}
.si-row.new{background:var(--ct-blue-bg-soft)}
/* The outcome cell: a pill and one link, or the progress of a running job, or the date that is missing. */
.si-out{display:flex;align-items:center;gap:8px;overflow:visible!important}
.si-out>.si-why{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--ct-dim)}
.si-out>.si-more{margin-left:auto;font-size:12px;flex:none}
.portal a.fu-state{color:var(--ct-on-sev)}
.fu-state.si-ok{background:var(--ct-green)}
.fu-state.si-desk{background:var(--ct-amber-bg);color:var(--ct-orange);box-shadow:inset 0 0 0 1px var(--ct-amber-line)}
.portal a.fu-state.si-desk{color:var(--ct-orange)}
.si-pips{display:inline-flex;gap:3px;flex:none}
.si-pips i{width:8px;height:10px;border-radius:2px;background:var(--ct-rule)}
.si-pips i.d{background:var(--ct-green)}
.si-pips i.r{background:var(--ct-blue-dot);animation:si-pulse 1.2s ease-in-out infinite}
.dot.si-run{animation:si-pulse 1.2s ease-in-out infinite}
@keyframes si-pulse{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.si-pips i.r,.dot.si-run{animation:none}}
.si-step{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:var(--ct-ink)}
.si-short{display:none}
.si-time{margin-left:auto;font-size:12px;color:var(--ct-faint);flex:none}
.si-wait{font-size:13px;color:var(--ct-faint)}
.si-rm{margin:0 0 0 auto;flex:none}
.portal .si-x{width:26px;height:26px;min-height:26px;padding:0;border:1px solid var(--ct-line);border-radius:6px;background:transparent;
  color:var(--ct-dim);font-size:16px;line-height:1;cursor:pointer}
.portal .si-x:hover{color:var(--ct-red,#e5484d);border-color:currentColor}
.si-redo{display:flex;align-items:center;gap:6px;margin:0;min-width:0}
.portal .si-redo input[type=date]{font:inherit;font-size:13px;height:30px;min-height:30px;box-sizing:border-box;padding:2px 6px;width:138px;
  border:1px solid var(--ct-orange);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);color-scheme:inherit}
.portal .si-redo .btn{min-height:30px;padding:3px 10px;font-size:13px;white-space:nowrap}
.si-sort{display:none}
.si-phone{display:none}
/* Narrower desktops and tablets: columns leave, most missable first, so the list never scrolls sideways. */
@media (max-width:1300px){
  .si-grid{grid-template-columns:20px minmax(200px,2fr) 80px 108px 126px 100px 64px minmax(236px,1fr) 84px}
  .si-grid>.si-org{display:none}
}
@media (max-width:1100px){
  .si-grid{grid-template-columns:20px minmax(170px,1.6fr) 108px 126px 100px 64px minmax(236px,1fr)}
  .si-grid>.si-kind,.si-grid>.si-at{display:none}
}
@media (max-width:900px){
  .si-grid{grid-template-columns:20px minmax(150px,1.6fr) 108px 126px 64px minmax(236px,1fr)}
  .si-grid>.si-from{display:none}
}
@media (max-width:720px){
  .si-form{grid-template-columns:minmax(0,1fr)}
  .portal .si-go .btn{flex:1 0 100%;min-height:44px}
  .si-picked li{grid-template-columns:minmax(0,1fr) auto auto}
  /* One line per row on a phone too: dot, file, one fact, the outcome. The head row goes; a Sort box takes its place. */
  .si-grid{grid-template-columns:minmax(0,1fr) auto auto;height:44px;min-height:44px;gap:0 8px;padding:0 10px}
  .si-row.blue{border-left-color:var(--ct-blue-dot)}
  .si-grid>.si-file{font-size:13px}
  .si-grid.cl-head,.si-grid>.si-kind,.si-grid>.si-cl,.si-grid>.si-org,.si-grid>.si-when,.si-grid>.si-from,.si-grid>.si-at{display:none}
  .si-grid>.si-n:empty{display:none}
  .si-grid>.si-n{font-size:12px}
  .si-phone{display:inline}
  .si-out>.si-more,.si-out>.si-why,.si-pips,.si-long{display:none}
  .si-short{display:inline}
  .si-time{margin-left:0}
  .portal .si-sort{display:block;width:auto;min-height:40px;font-size:15px;padding:0 8px}
  .portal .si-redo input[type=date]{width:128px;height:34px;font-size:14px}
  .portal .si-redo .btn{min-height:34px}
  .si-sum{white-space:normal}
}
.si-picked[hidden]{display:none}

/* From ClusterDown to ClusterTriage (design clusterdown-upgrade): under the Top 5 each order button keeps its ⓘ
   beside it; on the staff customer page the Move card. */
.ft-order .ft-pair,.ft-order .ft-links{display:inline-flex;align-items:center;gap:6px;min-height:32px}
.ft-order .ft-links{gap:12px}
@media (max-width:640px){.ft-order .ft-pair{width:100%}.ft-order .ft-pair .btn{flex:1}}
/* "Start your free measurement" posts: its form takes no box, so the button sits in the pair as the links do. */
.ft-order .ft-pair form{display:contents}
.cu-free{margin:0}
.cu-count{margin-top:10px}
.cu-count summary{cursor:pointer;font-size:13px;color:var(--ct-faint)}
.cu-count-rows{margin-top:6px}
.portal p.cu-count-row{display:flex;gap:12px;align-items:center;height:28px;margin:0;font-size:13px}
.cu-count-row .cu-count-n{flex:none;width:28px;text-align:right}
.cu-count-row>.one-line{flex:1;min-width:0}
.mv-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-height:32px}
.mv-lab{width:64px;color:var(--ct-dim);font-size:13px}
.portal label.mv-mods{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;color:var(--ct-dim);font-weight:400}
.portal .mv-mods input{width:3.5em;min-height:32px;padding:4px 8px}
.mv-open{flex-wrap:nowrap;gap:12px}
.mv-open .one-line{min-width:0;flex:1}
/* New cluster... in the Cluster select opens this panel inside the form card: customer, location, cluster name. */
.si-new{display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--ct-blue-line-soft);border-left:4px solid var(--ct-blue-dot);
  border-radius:6px;background:var(--ct-blue-bg-soft)}
.si-new[hidden]{display:none}
.si-new-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
.portal .si-new input[type=text]{min-height:42px;box-sizing:border-box;width:100%;min-width:0}
.si-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,150px);gap:8px}
.si-two[hidden],.si-new input[hidden]{display:none}
/* One line that says what the button will make or use: Customer > Location > Cluster, each with a tag. */
.si-path{display:flex;align-items:center;gap:6px;min-height:24px;margin:0;font-size:13px;color:var(--ct-dim);min-width:0}
.si-path .lab{flex:none;font-weight:600;color:var(--ct-ink)}
.si-path b{font-weight:600;color:var(--ct-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.si-path .si-seg{display:inline-flex;align-items:center;gap:6px;min-width:0}
.si-path .sep{flex:none;color:var(--ct-faint)}
.si-path .si-tag{flex:none}
.si-path .say{flex:none;margin-left:8px}
.si-path .todo{color:var(--ct-faint);font-weight:400;white-space:nowrap}
@media (max-width:820px){
  .si-new-grid{grid-template-columns:minmax(0,1fr)}
  .si-path{flex-wrap:wrap;gap:4px 6px}
  .si-path .say{margin-left:0;flex:1 0 100%}
}
/* Staff "Make again" under the System Documentation buttons (templates/measurements/sysdoc.html). */
.sd-remake{gap:8px;align-items:center;justify-content:flex-end;margin-top:4px;flex-wrap:nowrap}
.sd-remake .fail{color:var(--ct-red)}

/* Agent runs (staff): every writing, check and translation run with its tokens and API price (Hans, 20 Nov 2026). */
/* Hans, 21 Nov 2026 "Make columns fit": the customer and the start time in full, the numbers as wide as they need. */
.ar-grid{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(140px,1fr) 150px 64px 92px minmax(130px,1.2fr) 64px 92px 84px 84px 96px 80px;
  align-items:center;gap:0 10px;padding:6px 12px;min-height:36px;min-width:1340px;box-sizing:border-box}
.ar-grid.cl-head{padding:0 12px}
.ar-grid .num{text-align:right;justify-self:end;white-space:nowrap}
.ar-grid>span{min-width:0}
.ar-total{border-top:2px solid var(--ct-rule);font-weight:600}
.ar-sub{border-top:1px solid var(--ct-rule);border-bottom:1px solid var(--ct-rule);background:var(--ct-surface-2,var(--ct-surface));color:var(--ct-dim);font-weight:600;font-size:13px}
.is-sorted>.ar-sub{display:none}
.ar-sum{font-size:14px;color:var(--ct-dim)}
/* The default writing model (Hans, 2 Dec 2026): at the right of the Customer filter, its label on one line. */
.ar-model{margin-left:auto;gap:8px}
.portal .ar-model label{display:inline-flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
.portal .ar-model select{width:auto;min-height:28px;padding:0 6px;font-size:13px}
.ar-list{overflow-x:auto}
@media (max-width:720px){
  .ar-grid{min-width:1340px}
}

/* ==== Root cause analysis (R1, rca/ and orders/hours.py; design portal-mockup/rca/DESIGN.md of 20 Nov 2026): order,
   progress, staff review, report. The --ct-* tokens only, so it follows light and dark. */

/* ---- certainty: three levels, always a word, never colour alone ---- */
.rc-cert{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--ct-ink);
  padding:1px 8px 1px 6px;border:1px solid var(--ct-line);border-radius:4px;background:var(--ct-surface);line-height:1.6}
.rc-cert .g{display:inline-flex;gap:2px;align-items:flex-end}
.rc-cert .g i{display:block;width:4px;height:11px;border-radius:1px;background:var(--ct-ink);border:1px solid var(--ct-ink);box-sizing:border-box}
.rc-cert.prob .g i:nth-child(3){background:transparent}
.rc-cert.und{border-style:dashed;color:var(--ct-dim)}
.rc-cert.und .g i{background:transparent;border-color:var(--ct-faint);border-style:dashed}
.rc-cert.big{font-size:20px;padding:4px 12px 4px 10px;gap:10px;border-width:1.5px}
.rc-cert.big .g i{width:7px;height:20px}

/* ---- certainty as on board 9 of reporting v3.0 (block 7): a pill with its word; Established green, Probable blue,
   Not determined dashed. The word always stands; colour only adds to it. ---- */
.rc-cert{border-radius:999px;font-weight:700;padding:1px 10px;border-width:1.5px}
.rc-cert .g{display:none}
.rc-cert.est{color:var(--ct-green);background:var(--ct-green-bg);border-color:var(--ct-green)}
.rc-cert.prob{color:var(--ct-info);background:var(--ct-info-bg);border-color:var(--ct-info)}
.rc-cert.und{color:var(--ct-dim);background:transparent;border-color:var(--ct-line);border-style:dashed}
.rc-cert.big{padding:3px 14px}

/* ---- the verdict, the claim table, "What led to what", "Not part of this incident" (board 9; rca/claims.py) ---- */
.rc-verdict{display:grid;gap:12px}
.rc-vp{font-size:17px;line-height:1.55;margin:0;max-width:90ch}
.rc-nx{margin:0;font-size:15px}
.rc-claims td.t{white-space:normal}
.rc-claims td.m{white-space:normal}
.rc-chain{display:flex;flex-direction:column;align-items:center;gap:0;margin:4px 0 6px}
.rc-in{display:flex;justify-content:center;gap:28px;width:100%;flex-wrap:wrap}
.rc-in.two>.rc-cn{flex:1 1 280px;max-width:420px}
.rc-cn{display:flex;flex-direction:column;gap:3px;text-align:center;border:1.5px solid var(--ct-ink);border-radius:8px;
  padding:8px 16px;background:var(--ct-surface);min-width:min(300px,100%);max-width:560px;box-sizing:border-box}
.rc-cn b{font-weight:600;font-size:15px;line-height:1.35}
.rc-cn>span{font-size:12.5px;color:var(--ct-dim)}
.rc-cn.dash{border-style:dashed;border-color:var(--ct-orange);background:var(--ct-amber-bg-soft)}
.rc-ca{color:var(--ct-dim);font-size:18px;line-height:1.5;text-align:center}
.rc-br{display:flex;gap:24px;width:100%;justify-content:center;align-items:flex-start;flex-wrap:wrap}
.rc-col{display:flex;flex-direction:column;align-items:center;flex:1 1 280px;max-width:460px}
.rc-col>.rc-cn{width:100%;box-sizing:border-box}
.rc-cn.recovery{border-style:dotted}
.rc-apart{display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0 6px;padding-top:8px;border-top:1px dashed var(--ct-rule-soft)}
.rc-ca.dash{border-left:1.5px dashed var(--ct-dim);color:transparent;width:0;height:22px;font-size:0}
.rc-aside{margin:0;padding-left:0;list-style:none;display:grid;gap:4px}
.rc-aside li{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.rc-kept{border-left:3px solid var(--ct-orange);margin:8px 0}
@media (max-width:720px){.rc-cn{min-width:0;width:100%}.rc-vp{font-size:16px}}

/* ---- a citation: a small chip that names the evidence row; hover, focus or tap shows the row ---- */
.rc-e{position:relative;display:inline-block;font:500 11px/1.5 var(--ct-mono);padding:0 5px;margin:0 1px;border:1px solid var(--ct-blue-line);
  border-radius:3px;background:var(--ct-blue-bg);color:var(--ct-blue-ink);text-decoration:none;white-space:nowrap;vertical-align:1px}
.portal .rc-e{color:var(--ct-blue-ink);text-decoration:none}
.rc-e.f{background:var(--ct-purple-bg);border-color:var(--ct-purple-line);color:var(--ct-purple-ink)}
.portal .rc-e.f{color:var(--ct-purple-ink)}
.rc-e.r{background:transparent;border-style:dashed;border-color:var(--ct-line);color:var(--ct-dim)}
.portal .rc-e.r{color:var(--ct-dim)}
.rc-e:hover,.rc-e:focus{border-color:var(--ct-link);outline:none}
.rc-e-pop{display:none;position:absolute;z-index:60;left:-8px;top:22px;width:max-content;max-width:min(380px,calc(100vw - 32px));
  box-sizing:border-box;padding:8px 10px;border-radius:6px;background:var(--ct-bar);color:var(--ct-bar-ink);box-shadow:var(--ct-tip-shadow);
  font:400 12.5px/1.45 var(--ct-sans);white-space:normal;text-align:left}
.rc-e-pop b{display:block;font:500 11.5px/1.5 var(--ct-mono);color:var(--ct-bar-dim)}
.rc-e:hover .rc-e-pop,.rc-e:focus .rc-e-pop{display:block}
.rc-cites{display:inline}
/* the key to the codes, in the introduction (Hans, 4 Dec 2026): even columns as wide as the longest meaning needs (2 on a
   desk screen, 1 on a phone), each code as it looks in the text */
.dc-intro>.rc-codes-row{grid-column:1/-1}
.rc-codes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,24em),1fr));gap:4px 24px}
.rc-codes li{min-width:0;display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:baseline}
.rc-codes .rc-e{margin:0;text-align:center}
.rc-codes small{font-size:12px;color:var(--ct-dim);white-space:nowrap}
/* On a screen the two columns are only as wide as their longest meaning, close together (Hans, 4 Dec 2026, item 26:
   "mag dichter bij elkaar"); the paper keeps the grid above. */
@media screen and (min-width:721px){.rc-codes{grid-template-columns:repeat(2,minmax(0,max-content));justify-content:start;gap:4px 48px}}
.rc-e.k{background:transparent;border-color:var(--ct-line);color:var(--ct-ink)}
.portal .rc-codes a{color:var(--ct-dim)}
tr:target>td,li:target,.rc-ev-row:target{background:var(--ct-mark)!important}

/* ---- the report: conclusion ---- */
.rc-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 32px;align-items:start}
.rc-cause{display:grid;gap:8px}
.rc-cause .lead{font-size:17px;line-height:1.45;font-weight:600;color:var(--ct-ink);max-width:62ch;margin:0}
.rc-cause p{margin:0;max-width:72ch}
.rc-certbox{display:grid;justify-items:end;gap:6px;padding-left:24px;border-left:1px solid var(--ct-rule);text-align:right;max-width:250px}
.rc-certbox .l{font-size:12px;color:var(--ct-dim);display:inline-flex;gap:4px;align-items:center}
.rc-certbox .d{font-size:12.5px;color:var(--ct-dim);line-height:1.45}
/* ---- the report: conclusion, the answer first (Hans, 24 Nov 2026) ---- */
.rc-ans{margin:0;display:grid;border:1px solid var(--ct-rule);border-left:4px solid var(--ct-ink);border-radius:0 6px 6px 0;background:var(--ct-sunk)}
.rc-ans>div{display:grid;grid-template-columns:190px minmax(0,1fr);gap:0 16px;align-items:baseline;padding:8px 14px}
.rc-ans>div+div{border-top:1px solid var(--ct-rule-soft)}
.rc-ans dt{font-size:12px;color:var(--ct-dim);display:flex;gap:4px;align-items:center}
.rc-ans dd{margin:0;font-size:15px;line-height:1.45;font-weight:600;color:var(--ct-ink);max-width:72ch}
.rc-ans>div:first-child{align-items:center}
.rc-ans dd.v{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center}
.rc-ans dd.v small{font:400 12.5px/1.45 var(--ct-sans);color:var(--ct-dim)}
.rc-blk{display:grid;gap:6px}
.rc-blk>p{margin:0}
.rc-delta{margin:0;display:grid;gap:4px;font-size:13px}
.rc-delta>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:0 8px;align-items:baseline}
.rc-delta dt{color:var(--ct-dim)}
.rc-delta dt b{font:600 13px var(--ct-mono);color:var(--ct-ink);margin-left:4px}
.rc-delta dd{margin:0;display:flex;flex-wrap:wrap;gap:3px 2px}
.rc-ans dd.v small .rc-cert{font-size:12px}
.rc-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--ct-rule-soft);border-bottom:1px solid var(--ct-rule-soft);margin:0}
.rc-kpis>div{padding:10px 14px 10px 0;display:grid;gap:1px;align-content:start}
.rc-kpis>div+div{padding-left:14px;border-left:1px solid var(--ct-rule-soft)}
.rc-kpis dt{font-size:12px;color:var(--ct-dim);display:flex;gap:4px;align-items:center}
.rc-kpis dd{margin:0;font:600 20px/1.25 var(--ct-mono);letter-spacing:-.01em;color:var(--ct-ink)}
.rc-kpis dd small{display:block;font:400 12px/1.4 var(--ct-sans);color:var(--ct-faint);letter-spacing:0}
.ct-main .rc-h3{font-size:13px;font-weight:600;margin:0;display:flex;align-items:center;gap:6px}
.rc-first{list-style:none;margin:0;padding:0;display:grid;gap:0;border:1px solid var(--ct-rule);border-radius:6px;overflow:hidden}
.rc-first li{display:grid;grid-template-columns:34px 92px minmax(0,1fr) auto;gap:0 10px;align-items:center;height:36px;padding:0 12px;
  border-bottom:1px solid var(--ct-rule-soft);background:var(--ct-surface)}
.rc-first li:last-child{border-bottom:0}
.rc-first .id{font:400 12px var(--ct-mono);color:var(--ct-faint)}
.rc-first a.t{font-weight:600;text-decoration:none;color:var(--ct-ink)}
.rc-first a.t:hover{text-decoration:underline}
.rc-when{font-size:12px;padding:1px 8px;border:1px solid var(--ct-rule);border-radius:999px;color:var(--ct-dim);white-space:nowrap;justify-self:start}
.rc-when.now{border-color:var(--ct-ink);color:var(--ct-ink);font-weight:600}

/* ---- parts ---- */
.rc-part{display:grid;gap:12px}
.rc-part>h2{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.rc-part>h2 .n{font:600 13px var(--ct-mono);color:var(--ct-primary)}
.rc-part>h2 .rc-cert{margin-left:auto}
.rc-lead{margin:0;max-width:76ch;color:var(--ct-ink)}
.rc-sub{display:grid;gap:8px;padding-top:12px;border-top:1px solid var(--ct-rule-soft)}
.rc-sub>h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:14px}
.rc-sub>h3 .rc-cert{margin-left:auto}
.rc-why{font-size:12.5px;color:var(--ct-dim);max-width:76ch;margin:0}
.rc-why b{font-weight:600;color:var(--ct-ink)}

/* rows of one height that open: the chain, what was reported, alternatives, actions */
.rc-rows{border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-surface)}
.rc-row{border-bottom:1px solid var(--ct-rule-soft)}
.rc-row:last-child{border-bottom:0}
.rc-row>summary{display:grid;grid-template-columns:28px 78px minmax(0,1fr) auto 18px;gap:0 10px;align-items:center;height:44px;padding:0 12px;
  cursor:pointer;list-style:none}
.rc-row>summary::-webkit-details-marker{display:none}
.rc-row>summary:hover{background:var(--ct-blue-bg-soft)}
.rc-row[open]>summary{background:var(--ct-sunk)}
.rc-row[open]>summary .fr-chev{transform:rotate(45deg)}
.rc-row .no{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ct-ink);color:var(--ct-on-ink);
  font:600 12px var(--ct-mono)}
.rc-row .no.plain{background:transparent;color:var(--ct-faint);font-weight:400}
.rc-row .tm{font:500 12.5px var(--ct-mono);color:var(--ct-dim);white-space:nowrap}
.rc-row .tt{font-weight:600;color:var(--ct-ink);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-row .tt q{font-weight:400;quotes:"\201C" "\201D"}
.rc-row .rt{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.rc-row.w3>summary{grid-template-columns:34px minmax(0,1fr) auto 18px}
.rc-row.w3 .id{font:400 12px var(--ct-mono);color:var(--ct-faint)}
.rc-open{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;padding:12px 14px 14px;border-top:1px solid var(--ct-rule-soft)}
.ct-main .rc-open h4{margin:0;font-size:12px;font-weight:600;color:var(--ct-dim);line-height:1.6}
.rc-open>div{min-width:0;display:grid;gap:6px}
.rc-open p{margin:0;max-width:72ch}
.rc-quote{margin:0;padding:0;list-style:none;display:grid;gap:4px;max-width:100%}
.rc-quote li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;align-items:baseline;font-size:12.5px}
.rc-quote .q{font-family:var(--ct-mono);font-size:12px;color:var(--ct-ink);overflow-wrap:anywhere}
.rc-quote .q span{display:block;font-family:var(--ct-sans);color:var(--ct-faint)}
.rc-proof{padding:6px 10px;border-left:3px solid var(--ct-green);background:var(--ct-green-bg);border-radius:0 6px 6px 0;max-width:72ch}

/* ---- the timeline figure ---- */
.rc-fig{margin:0;border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-surface)}
.rc-fig>figcaption{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--ct-rule-soft);font-size:13px}
.rc-fig>figcaption b{font-weight:600}
.rc-fig>figcaption .x{margin-left:auto;font-size:12px}
.rc-fig .fr{display:block;overflow-x:auto;padding:8px 12px 4px}
.rc-fig svg{display:block;min-width:900px;width:100%;height:auto}
.rc-key{list-style:none;margin:0;padding:8px 12px 10px;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--ct-dim);border-top:1px solid var(--ct-rule-soft)}
.rc-key li{display:inline-flex;align-items:center;gap:6px}
.rc-key i{width:16px;height:10px;border-radius:2px;display:inline-block;box-sizing:border-box}
.rc-fignote{margin:0;padding:0 12px 10px;font-size:12px;color:var(--ct-faint)}
/* the figure's colours: tokens on screen (the SVG also carries light values as attributes, for paper) */
.tl-txt{fill:var(--ct-ink);font:500 12px var(--ct-sans)}
.tl-dim{fill:var(--ct-dim);font:400 11.5px var(--ct-sans)}
.tl-mono{fill:var(--ct-dim);font:400 11px var(--ct-mono)}
.tl-in{fill:var(--ct-ink);font:500 11.5px var(--ct-sans)}
.tl-gl{stroke:var(--ct-rule-soft)}
.tl-axis{stroke:var(--ct-line)}
.tl-ok{fill:var(--ct-sunk);stroke:var(--ct-line)}
.tl-deg{fill:var(--ct-amber-bg);stroke:var(--ct-orange)}
.tl-out{fill:var(--ct-red-bg);stroke:var(--ct-red)}
.tl-re{fill:var(--ct-blue-bg);stroke:var(--ct-link)}
.tl-hatch{stroke:var(--ct-orange)}
.tl-phase{fill:var(--ct-sunk)}
.tl-mk{fill:var(--ct-ink)}
.tl-mkt{fill:var(--ct-on-ink);font:600 11px var(--ct-mono)}
.tl-lead{stroke:var(--ct-ink);stroke-dasharray:2 3}
.rc-nums{margin:12px 0 4px}
.rc-nums ul{margin:4px 0 0;padding-left:18px;font-size:13px;color:var(--ct-dim);display:grid;gap:2px}
.rc-outw{display:inline-block;font-size:11px;line-height:16px;padding:0 6px;border-radius:8px;border:1px dashed var(--ct-line);color:var(--ct-dim);white-space:nowrap}
.tl-unc{fill:var(--ct-ink);fill-opacity:.08}
.tl-win{stroke:var(--ct-link);stroke-dasharray:5 4}
.tl-id{fill:var(--ct-dim);font:400 9.5px var(--ct-mono);user-select:text;paint-order:stroke;stroke:var(--ct-surface);stroke-width:3px}
.rc-key .k-unc{background:var(--ct-ink);opacity:.15}
.rc-key .k-win{width:2px;height:12px;border-radius:0;border-left:2px dashed var(--ct-link)}
.rc-key .k-ok{background:var(--ct-sunk);border:1px solid var(--ct-line)}
.rc-key .k-deg{background:repeating-linear-gradient(135deg,var(--ct-amber-bg) 0 3px,var(--ct-orange) 3px 4px);border:1px solid var(--ct-orange)}
.rc-key .k-out{background:var(--ct-red-bg);border:1px solid var(--ct-red)}
.rc-key .k-re{background:var(--ct-blue-bg);border:1px solid var(--ct-link)}
.rc-key .k-mk{width:14px;height:14px;border-radius:50%;background:var(--ct-ink)}
/* Expand: the same figure over the whole page; works without script (a link to its id) */
.rc-over{display:none;position:fixed;inset:0;z-index:200;background:var(--ct-ground);padding:16px;overflow:auto}
.rc-over:target{display:block}
.rc-over .rc-fig svg{min-width:1200px}
/* the phone gets the same moments top to bottom */
.rc-tlv{display:none;list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--ct-line)}
.rc-tlv li{position:relative;padding:0 0 12px 12px;display:grid;gap:1px}
.rc-tlv li::before{content:attr(data-n);position:absolute;left:-26px;top:0;width:22px;height:22px;border-radius:50%;background:var(--ct-ink);
  color:var(--ct-on-ink);font:600 12px/22px var(--ct-mono);text-align:center}
.rc-tlv .tm{font:500 12.5px var(--ct-mono);color:var(--ct-dim)}
.rc-tlv b{font-weight:600}
.rc-tlv span{font-size:13px;color:var(--ct-dim)}

/* tables in the report */
.portal .rc-t td{vertical-align:middle;height:22px}
.portal .rc-t td.l>span{display:block;max-width:60ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rc-t .held{color:var(--ct-green-ink);font-weight:600}
.rc-t .fail{color:var(--ct-red);font-weight:600}
/* Part 9: the two tables (Evidence incomplete, Data that would decide more) share one column grid (Hans 24 Nov 2026). */
@media (min-width:721px){.rc-3c{table-layout:fixed;width:100%}.rc-3c col.c1{width:22%}.rc-3c col.c2{width:48%}.rc-3c col.c3{width:30%}.portal .rc-3c td{vertical-align:top;text-align:left}.portal .rc-3c th{text-align:left}}
.rc-more{font-size:12.5px}
.rc-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rc-tools .seg a{font-size:13px;padding:4px 10px;min-height:28px}
/* The node filter of table 3.1 scrolls on a phone instead of widening the page (R-25). */
.rc-tools{min-width:0;max-width:100%}.rc-tools .seg{overflow-x:auto;max-width:100%;scrollbar-width:none}
.rc-part>*{min-width:0}
.rc-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rc-next>div{border:1px solid var(--ct-rule);border-radius:6px;padding:12px 14px;display:grid;gap:6px;align-content:start;background:var(--ct-surface)}
.rc-next b{font-weight:600}
.rc-limits{font-size:12.5px;color:var(--ct-faint);max-width:90ch;margin:0}
.rc-slot{border:1px dashed var(--ct-line);border-radius:6px;padding:8px 12px;font-size:13px;color:var(--ct-dim);background:var(--ct-sunk)}

/* ---- order page ---- */
.rc-q{display:grid;gap:8px}
.rc-q>h2{display:flex;align-items:center;gap:8px;margin:0}
.rc-q>h2 .n{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ct-ink);color:var(--ct-on-ink);font:600 12px var(--ct-mono)}
.portal .rc-q textarea{font:inherit;font-size:15px;line-height:1.5;padding:8px 10px;border:1px solid var(--ct-line);border-radius:6px;
  background:var(--ct-surface);color:var(--ct-ink);width:100%;box-sizing:border-box;min-height:9.5em}
.rc-under{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:12px;color:var(--ct-faint)}
.rc-fixed{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:36px;padding:0 12px;border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-sunk)}
.rc-fixed .linkish{margin-left:auto}
.rc-terms{margin:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0;border-top:1px solid var(--ct-rule-soft)}
.rc-terms>div{display:grid;grid-template-columns:118px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:34px;border-bottom:1px solid var(--ct-rule-soft)}
.rc-terms dt{font-size:12px;color:var(--ct-faint)}
.rc-terms dd{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---- hours ---- */
.rc-meter{display:grid;gap:6px}
.rc-meter .bar{height:10px;border-radius:5px;background:var(--ct-sunk);border:1px solid var(--ct-rule);overflow:hidden;display:flex}
.rc-meter .bar i{display:block;background:var(--ct-ink)}
.rc-meter .bar i.plan{background:repeating-linear-gradient(135deg,var(--ct-surface) 0 3px,var(--ct-faint) 3px 5px)}
.rc-meter .bar i.over{background:var(--ct-orange)}
.rc-meter .n{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;color:var(--ct-dim)}
.rc-meter .n b{font:600 18px var(--ct-mono);color:var(--ct-ink)}
.rc-ask{border:1px solid var(--ct-amber-line);border-left:4px solid var(--ct-orange);background:var(--ct-amber-bg-soft);border-radius:0 6px 6px 0;
  padding:12px 14px;display:grid;gap:8px}
.rc-ask h3{margin:0;font-size:14px;display:flex;align-items:center;gap:8px}
.rc-ask p{margin:0;max-width:76ch}
.rc-ask .acts{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.rc-clocks{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--ct-rule);border-radius:6px;overflow:hidden}
.rc-clocks>div{padding:8px 12px;display:grid;gap:1px}
.rc-clocks>div+div{border-left:1px solid var(--ct-rule)}
.rc-clocks .l{font-size:12px;color:var(--ct-faint);display:flex;gap:4px;align-items:center}
.rc-clocks .v{font:600 14px var(--ct-mono);color:var(--ct-ink)}
.rc-top5{list-style:none;margin:0;padding:0;border:1px solid var(--ct-rule);border-radius:6px}
.rc-top5 li{display:grid;grid-template-columns:18px 66px minmax(0,1fr) auto;gap:0 10px;align-items:center;height:36px;padding:0 12px;border-bottom:1px solid var(--ct-rule-soft)}
.rc-top5 li:last-child{border-bottom:0}
.rc-top5 .where{font:400 12px var(--ct-mono);color:var(--ct-faint);white-space:nowrap}

/* ---- staff review ---- */
.rw-rows{border:1px solid var(--ct-rule);border-radius:6px}
.rw-row{border-bottom:1px solid var(--ct-rule-soft)}
.rw-row:last-child{border-bottom:0}
.rw-row>summary,.rw-line{display:grid;grid-template-columns:24px minmax(0,1fr) 58px 58px 156px 18px;gap:0 10px;align-items:center;height:44px;padding:0 12px;list-style:none}
.rw-row>summary{cursor:pointer}
.rw-row>summary::-webkit-details-marker{display:none}
.rw-row[open]>summary{background:var(--ct-sunk)}
.rw-row[open]>summary .fr-chev{transform:rotate(45deg)}
.rw-head{height:30px;font-size:12px;color:var(--ct-faint);border-bottom:1px solid var(--ct-rule);background:var(--ct-sunk);border-radius:6px 6px 0 0}
.rw-row .tt{font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw-row .num{font:500 13px var(--ct-mono);text-align:right}
.portal .rw-row select,.portal .rw-sel{font:inherit;font-size:13px;padding:3px 6px;height:30px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);width:100%}
.rw-fa{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;padding:12px 14px 14px 46px;border-top:1px solid var(--ct-rule-soft)}
.ct-main .rw-fa h4{margin:0 0 4px;font-size:12px;font-weight:600;color:var(--ct-dim)}
.rw-fa ul{margin:0;padding-left:18px;display:grid;gap:3px;font-size:13px}
.rw-part{display:grid;grid-template-columns:24px minmax(0,1.1fr) minmax(0,1.4fr) 64px;gap:0 10px;align-items:center;height:36px;padding:0 12px;border-bottom:1px solid var(--ct-rule-soft)}
.rw-part:last-child{border-bottom:0}
.rw-part .n{font:400 12px var(--ct-mono);color:var(--ct-faint)}
.rw-part .tt{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw-part .st{font-size:13px;color:var(--ct-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw-part.bad .st{color:var(--ct-red);font-weight:600}
.rw-part a{font-size:12px;justify-self:end}
.rw-said{margin:0;padding:8px 10px;border-left:3px solid var(--ct-line);background:var(--ct-sunk);font-size:13.5px;line-height:1.5;border-radius:0 6px 6px 0}
.rw-book{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rw-book .rw-sel{width:auto;flex:1 1 120px}
.rw-block{font-size:12.5px;color:var(--ct-red);font-weight:600;margin:0}

@media (max-width:900px){
  .rc-top{grid-template-columns:minmax(0,1fr)}
  .rc-certbox{justify-items:start;text-align:left;border-left:0;padding-left:0;max-width:none}
  .rc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rc-kpis>div:nth-child(3){padding-left:0;border-left:0}
  .rc-kpis>div:nth-child(n+3){border-top:1px solid var(--ct-rule-soft)}
  .rc-next{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){

  .rc-ans>div{grid-template-columns:minmax(0,1fr);gap:2px;padding:8px 12px}
  .rc-delta>div{grid-template-columns:minmax(0,1fr);gap:2px}
  .portal .rc-chg th,.portal .rc-chg td{padding:6px 4px;font-size:12.5px}
  .portal .rc-chg td.t .mono{display:block}
  .portal .rc-t.cards td>.rc-e{justify-self:start}
  .rc-fig.screen{display:none}
  .rc-tlv{display:block}
  .rc-row>summary{grid-template-columns:28px minmax(0,1fr) 18px;height:auto;min-height:56px;padding:6px 12px;gap:0 10px}
  .rc-row>summary .tm{grid-column:2;grid-row:1}
  .rc-row>summary .tt{grid-column:2;grid-row:2;white-space:normal}
  .rc-row>summary .no{grid-row:1/4}
  .rc-row>summary .rt{grid-column:2;grid-row:3;margin-top:2px}
  .rc-row>summary .fr-chev{grid-column:3;grid-row:1/4}
  .rc-row.w3>summary{grid-template-columns:34px minmax(0,1fr) 18px}
  .rc-row.w3>summary .id{grid-row:1/3}
  .rc-row.w3>summary .tt{grid-row:1}
  .rc-row.w3>summary .rt{grid-row:2}
  .rc-row.w3>summary .fr-chev{grid-row:1/3}
  .rc-open{grid-template-columns:minmax(0,1fr);gap:2px 0}
  .rc-open>div{margin-bottom:8px}
  .rc-first li{grid-template-columns:30px minmax(0,1fr);height:auto;padding:8px 12px;gap:2px 8px}
  .rc-first .rc-when{grid-column:2;grid-row:1}
  .rc-first a.t{grid-column:2}
  .rc-first .rc-cites{grid-column:2}
  .rc-part>h2 .rc-cert,.rc-sub>h3 .rc-cert{margin-left:0}
  /* a table of more than four columns becomes a card per row */
  .portal .rc-t.cards thead{position:absolute;left:-9999px}
  .portal .rc-t.cards,.portal .rc-t.cards tbody,.portal .rc-t.cards tr{display:block;width:100%}
  .portal .rc-t.cards tr{padding:8px 10px;border-bottom:1px solid var(--ct-rule-soft)}
  .portal .rc-t.cards td{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;padding:1px 0;border:0;height:auto;text-align:left;white-space:normal}
  .portal .rc-t.cards td::before{content:attr(data-l);font:400 12px/1.6 var(--ct-sans);color:var(--ct-faint)}
  .portal .rc-t.cards td.l>span{white-space:normal;max-width:none;overflow:visible}
  .rw-row>summary,.rw-line{grid-template-columns:24px minmax(0,1fr) 40px 40px 18px}
  .rw-row>summary>.v,.rw-line>.v{display:none}
  .rw-fa{grid-template-columns:1fr;padding-left:14px}
  .rc-terms>div{grid-template-columns:96px minmax(0,1fr) auto}
  .rc-terms dd{white-space:normal}
}
.rc-why .rc-cert{margin:0 4px}
@media (max-width:720px){.rc-first a.t{white-space:normal}.rc-q .or-seg{width:100%}.rc-q .or-seg label{flex:1}.rc-q .or-seg span{width:100%;justify-content:center;padding:6px 4px}}
.or-form{grid-template-columns:minmax(0,1fr)}
.rc-fixed>*{min-width:0}
.rc-fixed .one-line{flex:1 1 180px}
.rc-fixed{padding-top:6px;padding-bottom:6px}
.drop{display:grid;gap:4px;justify-items:center}

/* ---- the order page as built: the evidence line switches with "Make a new run instead"; the billing line opens ---- */
.rc-new{position:absolute;opacity:0;width:1px;height:1px}
.rc-ev:has(.rc-new:checked) .rc-ev-run{display:none}
.rc-ev:not(:has(.rc-new:checked)) .rc-ev-new{display:none}
.rc-switch{margin-left:auto;cursor:pointer}
.rc-new:focus-visible~.rc-ev-new .rc-switch,.rc-new:focus-visible~.rc-ev-run .rc-switch{outline:2px solid var(--ct-primary)}
.rc-bill>summary{cursor:pointer;list-style:none}
.rc-bill>summary::-webkit-details-marker{display:none}
.rc-bill>summary .linkish{margin-left:auto;color:var(--ct-link)}
.rc-bill[open]>summary .linkish{visibility:hidden}
.rc-bill-fields{padding-top:12px}
.rc-order select{max-width:100%}
.seg-radio a.or-seg-link{padding:0;min-height:0;border-left:1px solid var(--ct-line);color:var(--ct-dim);text-decoration:none}
.seg-radio a.or-seg-link:hover span{color:var(--ct-ink)}
/* ---- hours on the order page ---- */
.rc-hours td.n{text-align:right;font-family:var(--ct-mono);white-space:nowrap}
.rc-book{display:grid;gap:8px}
.rc-book .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.portal .rc-book select,.portal .rc-book input[type=text]{font:inherit;font-size:13px;height:32px;padding:3px 8px;border:1px solid var(--ct-line);
  border-radius:6px;background:var(--ct-surface);color:var(--ct-ink)}
.portal .rc-book input.mins{width:5.5em}
.portal .rc-book textarea{font:inherit;font-size:13px;padding:6px 8px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);
  color:var(--ct-ink);width:100%;box-sizing:border-box;min-height:4em}
.rc-credit{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.or-lines dd.neg{color:var(--ct-green-ink)}
.portal .rc-book .row select{width:auto;flex:1 1 160px;max-width:340px}
.portal .rc-book .row input.mins{flex:0 0 auto}
/* The progress page of a root cause analysis (templates/rca/progress.html): the files added, one line each. */
.rc-files{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rc-files li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:baseline;min-height:22px}
.rc-ask form{margin:0}
.rc-top5 .where{max-width:16rem}
@media (max-width:560px){.rc-top5 li{grid-template-columns:18px 66px minmax(0,1fr)}.rc-top5 .where{display:none}}
/* the verdict on the RCA review page: the select and, without scripts, its Save button on one line */
.rw-verdict{display:flex;gap:6px;align-items:center;margin:0}

/* Measurements left: green and bold while one can be started (orders/balance.py Balance.css; Hans, 21 Nov 2026). */
.bal-on,.small.muted.bal-on,a.small.muted.bal-on{color:var(--ct-green);font-weight:700}
.two.two-errs{margin-top:-6px}

/* ---- Service hours (orders/service.py; design portal-mockup/service-hours, Hans 21 Nov 2026) ----------------------- */
.sh-low{color:var(--ct-red);font-weight:600}
.rc-meter .bar i.low{background:var(--ct-red)}
.sh-t td.d{max-width:0;width:46%}
.sh-t td.d>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-t td.n,.sh-t th.n{text-align:right;font-family:var(--ct-mono);white-space:nowrap}
.sh-t th.n{font-family:var(--ct-sans)}
.portal .sh-t td{height:22px;vertical-align:middle;white-space:nowrap}
.sh-t tr.nb td.n{color:var(--ct-faint)}
.sh-t td form{display:inline}
.sh-book .row{min-height:32px}
.portal .sh-book input.day{width:9.5em}
.portal .sh-book input.time{width:4.6em;text-align:right;font-family:var(--ct-mono)}
.portal .sh-book input.note{flex:1 1 220px;min-width:0;width:auto}
.portal .sh-book .row select{flex:0 1 190px}
.sh-book label.chk{display:inline-flex;gap:6px;align-items:center;font-size:13px;min-height:32px}
.sh-kinds{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 14px;margin:0;font-size:13px}
.sh-kinds dt{color:var(--ct-dim)}
.sh-kinds dd{margin:0;text-align:right;font-family:var(--ct-mono)}
.sh-kinds .tot{font-weight:600;color:var(--ct-ink);border-top:1px solid var(--ct-rule);padding-top:6px;margin-top:2px}
.sh-new .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:32px}
.portal .sh-new input[type=text]{font:inherit;font-size:13px;height:32px;width:4.6em;padding:3px 8px;border:1px solid var(--ct-line);
  border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);text-align:right;font-family:var(--ct-mono);box-sizing:border-box}
.portal .sh-new select{font:inherit;font-size:13px;height:32px;max-width:260px}
/* Import page: the labels in one column, the invoice number wide enough for 26-0016 (Hans, 1 Dec 2026: "this does not fit") */
.sh-new .row>label.small{flex:0 0 8.5em;margin:0}
.portal .sh-new input#imp-inv{width:9em;text-align:left}
.portal .sh-new input[type=file]{font-size:13px;max-width:100%}
.sh-stmt .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:32px}
.portal .sh-stmt select{font:inherit;font-size:13px;height:32px;width:auto;flex:0 1 auto;min-width:0}
.portal .sh-stmt input[type=date]{font:inherit;font-size:13px;height:32px;width:auto;padding:3px 8px;box-sizing:border-box}
.sh-stmt summary{cursor:pointer;color:var(--ct-dim)}
.sh-stmt details .row{margin-top:6px}
.sh-all{display:grid;grid-template-columns:minmax(150px,1.6fr) 96px 80px 96px 104px minmax(170px,1.4fr) 160px;gap:0 12px;
  align-items:center;padding-left:14px;padding-right:14px}
.sh-all .num{text-align:right;font-family:var(--ct-mono)}
.sh-month{border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-surface)}
.sh-month>summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;padding:8px 12px;font-weight:600;font-size:13px;min-height:22px}
.sh-month>summary span.m{font-family:var(--ct-mono);font-weight:500;color:var(--ct-dim)}
.sh-month .fr-tw{border:0;border-top:1px solid var(--ct-rule);border-radius:0 0 6px 6px}
@media (max-width:820px){
  .sh-all{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding-top:8px;padding-bottom:8px}
  .sh-all.list-head{display:none}
  .sh-all>span:nth-child(n+3):not(.or-act){display:none}
  .sh-all>.or-act{grid-column:1/-1}
  .portal .sh-t.cards td.d{max-width:none;width:auto}
  .portal .sh-t.cards td.d>span{white-space:normal}
  .portal .sh-t.cards td{white-space:normal}
}

/* Report language on the staff customer card (Hans, 21 Nov 2026): a select and Save on the row's one line. */
.cu-lang{display:inline-flex;align-items:center;gap:8px;margin:0 6px 0 0}
.cu-lang select{min-height:28px;padding:0 6px;font-size:13px}

/* A running count of seconds (static/js/elapsed.js): digits of one width, so 9 s to 100 s does not shift the line. */
.ct-elapsed{font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---- The demo customer, staff page (accounts/demo_staff.py; design portal-mockup/demo-account .dm-table) ------- */
/* Rows of one height: every cell on one line; the table scrolls sideways on a phone. */
.dm-table td,.dm-table th{white-space:nowrap;height:36px;padding-top:0;padding-bottom:0;vertical-align:middle}

/* ---- Partners (accounts/partner_views.py; design portal-mockup/partner-role) ------------------------------------ */
.pr-all{display:grid;grid-template-columns:minmax(150px,1.6fr) 90px 100px 90px 110px 80px;gap:0 12px;align-items:center;padding-left:14px;padding-right:14px}
.pr-all .num{text-align:right;font-family:var(--ct-mono)}
.pr-all.list-head .num{font-family:var(--ct-sans)}
.pr-t td,.pr-t th{white-space:nowrap;vertical-align:middle}
.pr-h{display:flex;gap:6px;align-items:center}
.pr-line{gap:8px;min-height:32px;flex-wrap:wrap;align-items:center}
.portal .pr-line select{flex:1 1 220px;min-width:0;width:auto;height:32px;font-size:13px}
.portal input.pr-pct,.portal .pr-line input[type=number]{font:inherit;font-size:13px;height:32px;width:4.6em;flex:0 0 auto;padding:3px 8px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink);text-align:right;font-family:var(--ct-mono)}
.pr-move{display:flex;gap:8px;align-items:center}
.pr-log{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1.4fr) 170px 80px;gap:0 12px;align-items:center;padding-left:14px;padding-right:14px;min-height:40px}
.pr-log .pr-act{text-align:right}.pr-log form{display:inline}
.pr-logins{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:start}
.pr-add{max-width:640px}
.portal .pr-line input.pr-name{font:inherit;font-size:13px;height:32px;flex:1 1 140px;min-width:0;padding:3px 8px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink)}
@media (max-width:760px){.pr-logins{grid-template-columns:minmax(0,1fr)}.pr-log{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding-top:8px;padding-bottom:8px}.pr-log.list-head{display:none}.pr-log>span:nth-child(2){display:none}}
.portal .pr-move select{height:32px;font-size:13px;width:auto;max-width:220px}
.pr-new>summary{cursor:pointer;min-height:22px}
.pr-new .pr-two{margin-top:14px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.t-loc.pr-own>summary{border-left:4px solid var(--ct-green)}
@media (max-width:820px){
  .pr-all{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding-top:8px;padding-bottom:8px}
  .pr-all.list-head{display:none}.pr-all>span:nth-child(n+2):not(.keep){display:none}
  .pr-new .pr-two{grid-template-columns:minmax(0,1fr)}
  .pr-move{flex-wrap:wrap}
}

/* ---- Staff › Customers › Accounts (accounts/customer_views.py accounts_list; Hans, 22 Nov 2026) ---------------- */
/* One line per account; on a phone name and kind, then the address. */
.ac-all{display:grid;grid-template-columns:minmax(110px,1fr) minmax(170px,1.3fr) 90px minmax(160px,1.6fr) minmax(110px,.9fr) minmax(120px,.8fr) 70px 130px 90px 104px;gap:0 12px;align-items:center;padding-left:14px;padding-right:14px}
.ac-all .num{text-align:right;font-family:var(--ct-mono)}
.ac-all.list-head .num{font-family:var(--ct-sans)}
.ac-mail{display:flex;gap:6px;align-items:center;min-width:0}
.portal .ac-acts{text-align:right;white-space:nowrap}
.portal .ac-acts a{font-size:12px}
/* The delete page: one line per organisation; the one left without people in the warning amber. */
.ad-orgs{list-style:none;margin:0;padding:0}
.ad-orgs li{padding:6px 14px;border-top:1px solid var(--ct-rule-soft);color:var(--ct-dim)}
.ad-orgs li:first-child{border-top:0}
.ad-orgs li.gone{color:var(--ct-red);font-weight:500}
.ad-orgs li.stays{background:var(--ct-amber-bg);color:var(--ct-ink);border-left:4px solid var(--ct-amber-line)}
.ad-orgs li.stays a{margin-left:8px;white-space:nowrap}
@media (max-width:820px){
  .ac-all{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding-top:8px;padding-bottom:8px}
  .ac-all.list-head{display:none}.ac-all>span:not(.keep){display:none}
  .ac-all>span:nth-child(3){order:1}.ac-all>.ac-mail{order:2;grid-column:1/-1;color:var(--ct-dim)}
}

/* ---- Staff sign-in and Sign-ins (accounts/signin_views.py; Hans, 24 Nov 2026) ------------------------------------ */
.sk-all{display:grid;grid-template-columns:minmax(170px,1.3fr) minmax(170px,1.4fr) 100px 140px 80px;gap:0 12px;align-items:center;padding-left:14px;padding-right:14px}
.si-all{display:grid;grid-template-columns:140px minmax(110px,1fr) minmax(170px,1.3fr) minmax(140px,1.2fr) 90px 120px;gap:0 12px;align-items:center;padding-left:14px;padding-right:14px}
.si-all.si-staff{grid-template-columns:140px 110px minmax(170px,1fr) minmax(220px,1.8fr) 120px}
/* The whole reason of a refusal behind the info button: a wider box, long words break. */
.si-res .ct-i-pop{max-width:min(460px,calc(100vw - 32px));white-space:normal;overflow-wrap:anywhere}
.sk-all .ac-acts .ct-i{vertical-align:middle}
@media (max-width:820px){
  .sk-all,.si-all,.si-all.si-staff{grid-template-columns:minmax(0,1fr) auto;row-gap:2px;padding-top:8px;padding-bottom:8px}
  .sk-all.list-head,.si-all.list-head{display:none}
  .sk-all>span:not(.keep),.si-all>span:not(.keep){display:none}
  .sk-all>.f-title{order:1}.sk-all>.ac-acts{order:2}.sk-all>.sk-acct{order:3;grid-column:1/-1;color:var(--ct-dim)}
  .si-all:not(.si-staff)>span:nth-child(2){order:1}.si-all:not(.si-staff)>span:nth-child(1){order:2}
  .si-all>.si-mail{order:3;grid-column:1/-1;color:var(--ct-dim)}
}

/* ---- The cluster page on a phone (Hans, 21 Nov 2026, mock-up "Staff screens on a phone") ---------------------- */
/* Staff: the rare actions in a small menu at the right of the name, and a line for results that wait at the desk. */
.cp-name .cp-more{margin-left:auto;position:relative}
.portal .cp-more>summary{list-style:none;min-height:28px;padding:2px 10px;font-size:14px}
.cp-more>summary::-webkit-details-marker{display:none}
.cp-more-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:30;display:flex;flex-direction:column;min-width:200px;
  padding:4px 0;background:var(--ct-surface);border:1px solid var(--ct-line);border-radius:6px;box-shadow:var(--ct-pop-shadow)}
.portal .cp-more-pop a{padding:8px 14px;text-decoration:none;color:var(--ct-link);white-space:nowrap}
.portal .cp-more-pop a:hover{background:var(--ct-blue-bg)}
.cp-desk{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;padding:8px 12px;font-size:14px;
  background:var(--ct-amber-bg);border:1px solid var(--ct-amber-line);border-radius:var(--ct-r)}
.cp-hand{display:none}
.cp-labels .ct-i{align-self:center}
@media (max-width:720px){
  .portal .cp-wide{display:none}
  .cp-name{flex-wrap:nowrap;gap:8px}
  .cp-name h1{min-width:0;overflow-wrap:anywhere}
  /* Facts on one line, with middots, wrapping only when they must; the cluster id stays on the wide screen. */
  .cp-dots{gap:2px 0;font-size:14px}
  .cp-dots>*+*::before{content:"\00B7";margin:0 6px;color:var(--ct-faint)}
  .cp-dots>.cp-id{display:none}
  .cp-dots>.cp-conn::before{content:none}
  .portal .cp-actions .cp-sysdoc{flex:0 0 auto}
  .cp-position{gap:2px 12px;padding:8px 12px}
  .cp-m{flex:1 1 auto}
  .cp-hand{display:flex;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin:0}
  .cp-hand>span{white-space:nowrap}
  .cp-labels{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .cp-labels>.label-filter{flex:none}
  /* A finding: level, number and the date at the right end of the first line. */
  .f-grid{grid-template-columns:auto minmax(0,1fr) auto}
  .f-grid>.f-sev{order:-1;grid-column:1}
  .f-grid>.f-no{grid-column:2;justify-self:start}
  .f-grid>.f-seen{grid-column:3}
  .f-grid>.f-ws{grid-column:1/3}
  .f-grid>.f-owner{grid-column:3;max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .f-grid>span:empty{display:none}
}

/* ---- Phones, step 1 (Hans, 21 Nov 2026, mock-up "Portal on phones") ---------------------------------------------- */
/* The path bar: a path of one item only repeats the page title, so it is not shown (at every width). On a phone the
   path is one line that slides sideways, scrolled to its end so the page itself shows (static/js/crumbs.js). */
.crumbs:not(:has(>:nth-child(2))){display:none}
@media (max-width:720px){
  .crumbs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  .crumbs::-webkit-scrollbar{display:none}
  .crumbs>*{flex:none}
}
/* A row of chips that slides sideways on a phone instead of wrapping (risk levels, kinds of report). */
@media (max-width:720px){
  .labels.ct-slide{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .labels.ct-slide::-webkit-scrollbar{display:none}
  .labels.ct-slide>*{flex:none}
}
/* Filter (templates/_fold_button.html, static/js/fold.js): on a phone the filters of a list sit behind one button in
   the title row, which shows how many are set; the panel is open while one is. A wide screen shows them as before. */
.portal .ct-fold-btn{display:none}
.ct-fold-btn.on{border-color:var(--ct-primary)}
.ct-fold-n{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;box-sizing:border-box;border-radius:9px;
  background:var(--ct-primary);color:var(--ct-on-primary);font-size:12px;line-height:1}
@media (max-width:720px){
  .portal .ct-fold-btn{display:inline-flex}
  .ct-fold:not(.open){display:none!important}
}
/* The title rows of Risks and Reports: the title with its count and ⓘ, the buttons at the right, on one line. */
.rk-head,.r-head{flex-wrap:nowrap;align-items:center}
.rk-head h1,.r-head h1{min-width:0}
.rk-acts{gap:8px;flex-wrap:nowrap}
.rk-head .h-sub .mono,.r-head .h-sub{white-space:nowrap}
/* Reports: the kind is the row's link on a phone; on a wide screen it reads as plain text beside the Open button. */
.portal .r-kind .r-go{color:inherit;text-decoration:none}
.portal .r-kind .r-go:hover{text-decoration:underline}
/* The settings menu's dark and light row (phone only, .cx-ph); a report page that stays light has nothing to switch. */
[data-theme-fixed] .ct-ham-theme{display:none!important}
@media (max-width:720px){
  .sr-key{display:none}
  .rk-head h1,.r-head h1{font-size:20px}
  .r-head .h-sub{font-size:13px}
}

/* ---- Phones, step 2 (Hans, 21 Nov 2026, mock-up "Portal on phones") --------------------------------------------- */
/* A row of segmented buttons (Show, Location, Work: the .switch of any page) slides sideways on a phone instead of
   making the page wider than the screen (the staff Orders page scrolled to 488 px at 390). */
@media (max-width:720px){
  .switches,.switch{min-width:0;max-width:100%}
  .switch>.seg{min-width:0;overflow-x:auto;scrollbar-width:none}
  .switch>.seg::-webkit-scrollbar{display:none}
}
/* A notice of one line with its one button at the right (No measurements left, Order more). */
.ct-notice{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;padding:8px 12px;font-size:14px;
  background:var(--ct-amber-bg);border:1px solid var(--ct-amber-line);border-radius:var(--ct-r);color:var(--ct-ink)}
.ct-notice>span{min-width:0}
.portal .ct-notice .btn{flex:none}
/* Clusters (clusters/home.html, org_tree.html): on a phone the tiles are one line beside the title, the legend is the
   title's ⓘ, Order more is asked once above the list, and a cluster is two lines that open it. */
.cl-sum-ph,.ct-notice-ph,.cl-bal-ph{display:none}
.cl-sum{white-space:nowrap}
@media (max-width:720px){
  .cl-sum-ph{display:inline}
  .cl-sum{font-size:13px}
  .cl-top{flex-wrap:nowrap;align-items:center}
  .cl-top h1{min-width:0;font-size:20px}
  .cl-top-acts{gap:8px;flex-wrap:nowrap;flex:none}
  .portal .cl-top .cl-add{min-height:32px;padding:3px 12px}
  .cl-top .cl-bal-wide,.cl-top .cl-add-none,.cl-tiles,.cl-legend{display:none}
  .ct-notice-ph{display:flex}
  .cl-bal-ph{display:block;margin:0}
  .cl-list.cl-home{display:block;background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
  .cl-home .cl-grid.cl-row{position:relative;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:24px 20px;
    gap:2px 8px;padding:8px 12px;align-items:center;background:transparent;border:0;border-bottom:1px solid var(--ct-rule-soft);
    border-radius:0}
  .cl-home .cl-grid.cl-row:last-child{border-bottom:0}
  .cl-home .cl-row>.dot{display:inline-block;grid-area:1/1}
  .cl-home .cl-row>.cl-name{grid-area:1/2;min-width:0}
  .cl-home .cl-name-line{flex-wrap:nowrap}
  .cl-home .cl-name-line .site-label{flex:none}
  .portal .cl-home .cl-name a{font-size:16px}
  .cl-home .cl-name a::after{content:"";position:absolute;inset:0}
  .cl-home .cl-row>.c-ph-n{grid-area:1/3;justify-self:end;max-width:44vw;font-size:13px}
  .cl-home .cl-row>.c-ph-where{grid-area:2/1/3/3;font-size:13px;color:var(--ct-faint)}
  .cl-home .cl-row>.c-ph-date{grid-area:2/3;justify-self:end;max-width:44vw;font-size:13px;color:var(--ct-faint)}
  .cl-home .cl-row>.loc,.cl-home .cl-row>.c-type,.cl-home .cl-row>.next{display:none}
}
/* The cluster page, customer (clusters/detail.html): one blue button, Upload result and Report incident small side by
   side, the rest under More (a phone only: a wide screen keeps its buttons). The tabs slide, with short counts, and a
   finding is the Risks page's three lines with state and owner as pickers where this person may change them. */
.cp-ph,.cp-pick,.cp-save{display:none}
@media (min-width:721px){.cp-more-ph{display:none}}
.cp-more-pop form{margin:0}
.portal .cp-more-pop button{display:block;width:100%;box-sizing:border-box;margin:0;padding:8px 14px;border:0;background:none;
  font:inherit;text-align:left;color:var(--ct-link);white-space:nowrap;cursor:pointer}
.portal .cp-more-pop button:hover{background:var(--ct-blue-bg)}
@media (max-width:720px){
  .portal .cp-ph{display:inline}
  .portal .cp-actions .cp-small{flex:1 1 calc(50% - 4px);min-height:36px;padding:6px 10px}
  .cp-head>.ct-notice,.cp-head>.cp-title{flex:1 1 100%;min-width:0}
  /* Tabs (the cluster page, a location) slide sideways instead of being cut off ("Equip"). */
  .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:0}
  .tabs::-webkit-scrollbar{display:none}
  .portal .tabs a{flex:none;padding:8px 10px}
  .f-grid.cp-risk{grid-template-columns:auto auto minmax(0,1fr) auto auto;grid-template-rows:22px 22px 28px;gap:2px 8px;
    padding:8px 12px;align-items:center}
  .f-grid.cp-risk>.f-sev{grid-area:1/1;line-height:1}
  .f-grid.cp-risk>.f-no{grid-area:1/2;justify-self:start}
  .f-grid.cp-risk>.f-seen{grid-area:1/3/2/-1;justify-self:end;white-space:nowrap}
  .f-grid.cp-risk>.f-title{grid-area:2/1/3/-1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .portal .f-grid.cp-risk>.f-title a{color:var(--ct-ink);text-decoration:none;font-weight:600}
  .f-grid.cp-risk>.f-title>.small{display:none}
  .f-grid.cp-risk>.f-where{grid-area:3/1/4/4;min-width:0;font-size:13px}
  .f-grid.cp-risk>.f-ws{grid-area:3/4;justify-self:end;font-size:14px}
  .f-grid.cp-risk>.f-owner{grid-area:3/5;justify-self:end;max-width:34vw;font-size:14px;overflow:hidden;text-overflow:ellipsis;
    white-space:nowrap}
  .f-grid.cp-risk>.f-owner::before{content:"\00B7";margin-right:6px;color:var(--ct-faint)}
  .f-grid.cp-risk>.f-mod,.f-grid.cp-risk>.f-hist,.f-grid.cp-risk>span:empty:not(.f-ws):not(.f-owner){display:none}
  /* State and owner as pickers: text with a caret, a tap opens the phone's list and a change saves the row. */
  .f-grid.cp-risk:has(>.cp-pick)>.f-ws,.f-grid.cp-risk:has(>.cp-pick)>.f-owner{display:none}
  .f-grid.cp-risk>.cp-pick{grid-area:3/4/4/-1;justify-self:end;display:flex;align-items:center;gap:0 6px;min-width:0;font-size:14px}
  .cp-pick .cp-dot{color:var(--ct-faint)}
  .portal .cp-pick select{appearance:none;-webkit-appearance:none;border:0;background-color:transparent;color:var(--ct-ink);
    font:inherit;font-size:16px;line-height:1.2;min-height:28px;height:28px;width:auto;max-width:34vw;padding:0 14px 0 0;
    field-sizing:content;cursor:pointer;text-overflow:ellipsis;
    background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
    background-position:calc(100% - 7px) 55%,calc(100% - 3px) 55%;background-size:4px 4px;background-repeat:no-repeat}
  .portal .cp-pick select:focus-visible{outline:2px solid var(--ct-primary);outline-offset:1px;border-radius:3px}
  html:not(.rk-js) .f-grid.cp-risk{grid-template-rows:22px 22px 28px auto}
  html:not(.rk-js) .f-grid.cp-risk>.cp-save{display:block;grid-area:4/1/5/-1;justify-self:end}
}
/* Orders (staff, orders/staff_list.html; the customer's orders/list.html): the page was wider than a phone (488 px at
   390). Show slides sideways under the title; an order is two lines (number, customer, total; state, product and the
   button), three when the list has a To close row, whose two buttons take a line of their own. */
@media (max-width:720px){
  .or-head{align-items:center}
  .or-head .or-switches{flex:1 1 100%;min-width:0;justify-content:space-between;gap:8px 16px}
  .or-grid,.or-grid.wide-act{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:24px 32px;gap:4px 8px}
  .or-grid.list-row{height:auto;padding:8px 12px;align-content:center}
  .or-grid.wide-act{grid-template-rows:24px 24px 32px}
  .or-grid>:nth-child(1){grid-area:1/1}
  .or-grid>:nth-child(3){grid-area:1/2;min-width:0}
  .or-grid>:nth-child(8){grid-area:1/3;text-align:right}
  .or-grid>:nth-child(9){grid-area:2/1}
  .or-grid>:nth-child(7){grid-area:2/2;min-width:0;color:var(--ct-faint);font-size:13px}
  .or-grid>:nth-child(10){grid-area:2/3}
  .or-grid.wide-act>:nth-child(10){grid-area:3/1/4/-1;justify-self:end}
  .or-grid .or-act form,.or-grid .or-act .btn{width:auto}
  .portal .or-grid .or-act .btn{min-height:32px;padding:3px 10px}
  /* Service hours (staff, orders/hours_staff_list.html): one blue button on a phone, so a row's Send new contract is a
     normal button there; Send contract below stays the blue one. */
  .portal .sh-all .or-act .btn.primary{background:var(--ct-surface);border-color:var(--ct-line);color:var(--ct-link)}
}
/* Search (templates/search/page.html): a hit on a phone is two lines, the same in every group: the title; the level,
   the location and the cluster. The matched text stays on the wide screen; the whole row opens the hit. */
@media (max-width:720px){
  .sr-hit{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:22px 20px;gap:2px 0;align-items:center}
  .sr-hit>a,.sr-hit>.strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sr-hit>a::after{content:"";position:absolute;inset:0}
  .sr-hit>.sr-where{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sr-hit>.sr-detail{display:none}
}
/* Staff, Finder's fees (orders/finder_views.py): the small forms inside a table row keep the row's one height. */
.ff-form{gap:6px;flex-wrap:nowrap;align-items:center;margin:0}
.ff-form.ff-end{justify-content:flex-end}
.portal .ff-form input[type=text]{font:inherit;font-size:13px;height:28px;width:9.5em;padding:2px 8px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink)}
.ff-form .btn{min-height:28px;padding:2px 10px;font-size:13px}
.portal input.pr-pct.pr-rate{width:6.4em}
/* Build demo in one press (accounts/demo_staff.py advance): the four steps, the current one marked. */
.dm-steps{margin:0;padding-left:20px;display:grid;gap:4px}
.dm-steps li.state{display:list-item}
/* Price sheet and re-price (templates/orders/staff_prices.html): every row one line high, the table scrolls sideways on a phone. */
.ps-t th,.ps-t td{white-space:nowrap}
.ps-t td.ps-in input{width:8.5em;max-width:8.5em;min-height:0;padding:3px 8px;margin:0;text-align:right;font:inherit;font-family:var(--ct-mono)}
.ps-t td.ps-in{padding-top:3px;padding-bottom:3px}
@media (max-width:600px){#ps-products th:nth-child(4),#ps-products td:nth-child(4){display:none}#ps-products td:nth-child(2) .one-line{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.ps-t td.ps-in input{width:6.5em}}
/* Service hours: "No hours booked yet" (orders/service.py unbooked) */
.sh-unbooked{border:1px solid var(--ct-amber-line);border-radius:8px;padding:8px 10px;background:var(--ct-amber-bg-soft)}
.sh-ub{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.sh-ub li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;min-height:34px}

/* ---- A partner's own logo on reports (Hans, 24 Nov 2026; accounts/partner_settings.html, staff_partner.html) ---- */
/* The report header panel for the preview, the same rules as measurements/templatetags/brand.py BRAND_CSS and
   PARTNER_CSS (the page's security policy allows no <style> in the page; tests/test_partner_logo.py keeps them equal). */
.ct-brand{display:inline-block;white-space:nowrap;background:#E4F2F8;border:1px solid #C6E3EE;border-radius:9px;padding:7px 16px 7px 8px;-webkit-print-color-adjust:exact;print-color-adjust:exact}.ct-brand img{display:inline-block;width:42px;height:42px;vertical-align:middle;margin-right:11px}.ct-brand-t{display:inline-block;vertical-align:middle;line-height:1.1}.ct-brand-w{display:block;font:700 25px/1.1 'Source Sans 3',sans-serif;letter-spacing:-.01em;color:#0A1024}.ct-brand-w span{color:#0A6F8C}.ct-brand-s{display:block;margin-top:2px;font:500 9.5px 'Source Code Pro',monospace;color:#3A4255;letter-spacing:.02em}
.ct-brand-p{padding:7px 14px 7px 12px}.ct-brand-p .ct-brand-l{display:inline-block;vertical-align:middle;height:42px;line-height:42px}.ct-brand-p .ct-brand-l img{margin:0;vertical-align:middle}.ct-brand-by{display:inline-block;vertical-align:middle;margin-left:14px;padding-left:13px;border-left:1px solid #C6E3EE;line-height:1.1}.ct-brand-by i{display:block;font:500 8px 'Source Code Pro',monospace;font-style:normal;color:#3A4255;letter-spacing:.04em;margin-bottom:3px}.ct-brand .ct-brand-by img{width:15px;height:15px;margin-right:5px;vertical-align:-3px}.ct-brand-by b{font:700 13px/1 'Source Sans 3',sans-serif;letter-spacing:-.01em;color:#0A1024}.ct-brand-by b span{color:#0A6F8C}
.pl-h{display:flex;gap:6px;align-items:center}
.pl-prev{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--ct-rule);border-radius:6px;padding:12px 14px;min-height:60px;overflow:hidden}
.pl-prev>small{font:400 12px var(--ct-sans);color:#5A6274;white-space:nowrap}
.pl-acts{gap:8px;min-height:32px;flex-wrap:wrap;align-items:center}
.pl-acts .pl-file{color:var(--ct-dim);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pl-acts .pl-file .mono{font-size:12.5px}
.pl-acts input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pl-acts form{display:inline-flex;gap:8px;margin:0}
.pl-mini{padding:8px 10px;min-height:0}
.pl-mini .ct-brand{zoom:.72}
@media (max-width:820px){.pl-prev>small{display:none}}
@media (max-width:480px){.pl-prev{padding:10px}.pl-prev .ct-brand{zoom:.8}.pl-mini .ct-brand{zoom:.72}}
/* Release desk invoice steps on one row (measurements/todo.py): Order, Invoice, then Send by e-mail or Mark as paid. */
.todo-steps{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
.todo-steps form{display:flex;gap:6px;align-items:center;margin:0}
.portal .todo-steps input[type=date]{font:inherit;font-size:14px;width:150px;min-width:150px;height:34px;
  box-sizing:border-box;padding:3px 8px;flex:none}
/* The SEPA QR on the invoice page, left of the bank lines as in the PDF (Hans, 1 Dec 2026). */
.inv-bank{display:flex;gap:16px;align-items:center}
.inv-qr{flex:none}
/* The Paid on date next to Mark as paid (templates/orders/_paid_on.html). */
.portal input.paid-on{font:inherit;font-size:14px;width:150px;min-width:150px;height:34px;box-sizing:border-box;
  padding:3px 8px;margin-right:6px;flex:none}
/* On a phone the order card has no room for the Paid on date: Mark as paid there takes the moment it is pressed. */
@media (max-width:720px){.or-grid input.paid-on{display:none}}
.or-act form{display:inline-flex;align-items:center}
.or-act form .btn{width:auto}
/* The shared facts on Finding texts (measurements/shared_facts.py, templates/measurements/_shared_facts.html; Hans,
   2 Dec 2026: "a consistency check before the writing"), as the mock-up portal-mockup/shared-facts draws them. */
.sf{background:var(--ct-surface);border:1px solid var(--ct-rule);border-radius:var(--ct-r)}
.sf>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;align-items:center;min-height:40px;padding:0 14px;cursor:pointer;list-style:none}
.sf>summary::-webkit-details-marker{display:none}
.sf[open]>summary{border-bottom:1px solid var(--ct-rule-soft);font-weight:600}
.sf>summary small{font-weight:400;color:var(--ct-dim)}
.sf-in{padding:4px 14px 14px}
.portal .sf-g{margin:14px 0 2px;font-size:12px;font-weight:600;color:var(--ct-faint);text-transform:none}
.sf-l{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 14px;align-items:center;min-height:32px;border-top:1px solid var(--ct-rule-soft);font-size:13px;line-height:1.4}
.sf-g+.sf-l{border-top:0}
.sf-l .src{color:var(--ct-faint);font-size:12px;white-space:nowrap}
.sf-l .src.you{color:var(--ct-primary)}
.sf-acts{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.sf-edit{flex:1 1 100%;order:3}
.sf-edit>summary{list-style:none;display:inline-flex}
.sf-edit>summary::-webkit-details-marker{display:none}
.sf-edit label{display:flex;flex-direction:column;gap:4px;margin-top:10px}
.sf-edit label span{font-size:12px;font-weight:600}
.portal .sf-edit textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px;line-height:1.45;padding:6px 8px;border:1px solid var(--ct-line);border-radius:6px;background:var(--ct-surface);color:var(--ct-ink)}
@media (max-width:720px){
  .sf-l{grid-template-columns:minmax(0,1fr);padding:6px 0}
}

/* ---- Give access to a customer (ga-; accounts/give_access.py, design portal-mockup/staff-assign, Hans 3 Dec 2026) - */
/* The card's rows: label left, control right, every row one height (32px); on a phone the control goes below. */
.ga-form{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px 12px;align-items:center}
.ga-form>label,.ga-form>.ga-l{font-weight:600;color:var(--ct-ink);min-height:32px;display:flex;align-items:center;gap:6px}
.ga-form select{min-height:32px;width:100%;max-width:340px;box-sizing:border-box}
.ga-form .seg-radio{width:max-content;max-width:100%}
.ga-ticks{grid-column:2;display:grid;gap:0;border:1px solid var(--ct-rule);border-radius:6px;max-width:340px;overflow:hidden}
.ga-ticks label{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 10px;font-weight:400;cursor:pointer}
.ga-ticks label+label{border-top:1px solid var(--ct-rule-soft)}
.ga-ticks label small{margin-left:auto;color:var(--ct-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ga-ticks label.off{color:var(--ct-faint);cursor:default}
.ga-hint{grid-column:2;font-size:12px;color:var(--ct-faint);margin-top:-4px}
/* What the button will do, in one sentence per effect, before it is pressed. */
.ga-will{margin:0;padding:8px 12px;border-radius:6px;background:var(--ct-blue-bg);border:1px solid var(--ct-blue-line);
  display:grid;gap:2px;font-size:13px}
.ga-will b{font-weight:600}
/* Rows the script hides (the role on the partner route, an empty hint), and a person's name as a row's label. */
.ga-form [hidden],.ga-will[hidden]{display:none!important}
.ga-form>label .one-line{min-width:0}
@media (max-width:720px){.ga-form{grid-template-columns:minmax(0,1fr);gap:2px 0}.ga-form>label,.ga-form>.ga-l{min-height:24px;margin-top:6px}
  .ga-ticks,.ga-hint{grid-column:1}.ga-form select,.ga-ticks{max-width:none}.ga-hint{margin-top:2px}}

/* ==== Findings report v3.0 (reporting redesign block 4; reporting-v3 DESIGN.md section 2, mock-up boards 3 to 6,
   approved by Hans on 3 Dec 2026): A summary, B action register, C work packages, D open findings, E accepted risks,
   F evidence (templates/measurements/_fr3_body.html). The PDF's own sheet (findings_report_pdf.html) makes it denser. */
.fr3 .fr-main{display:flex;flex-direction:column;gap:22px}
.fr3-sec{display:flex;flex-direction:column;gap:12px}
.fr3-h2s{font-size:13.5px;font-weight:400;color:var(--ct-dim);margin-left:8px}
.ct-main .fr3-h{margin:6px 0 0}
.fr3-dim{display:block;color:var(--ct-dim);font-size:13px}
.fr3-rv{display:block;margin-top:2px}
.fr3-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fr3-tiles .counter .s{font-size:13px;color:var(--ct-dim);line-height:1.35}
.fr3-tiles .n.bp-green{color:var(--ct-green)} .fr3-tiles .n.bp-orange{color:var(--ct-orange)}
.fr3-tiles .n.bp-red{color:var(--ct-red)} .fr3-tiles .n.bp-blue{color:var(--ct-link)}
.fr3-tiles b.bp-green{color:var(--ct-green)} .fr3-tiles b.bp-orange{color:var(--ct-orange)}
.fr3-tiles b.bp-red{color:var(--ct-red)} .fr3-tiles b.bp-blue{color:var(--ct-link)}
@media (max-width:720px){.fr3-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fr3-sum{max-width:90ch}
.fr3-lead{margin:0;padding:0;list-style:none;counter-reset:l;display:grid;gap:8px}
.fr3-lead li{counter-increment:l;position:relative;background:var(--ct-sunk);padding:10px 14px 10px 40px;border-radius:6px}
.fr3-lead li::before{content:counter(l);font-weight:700;color:var(--ct-dim);position:absolute;left:14px}
.portal .fr3-lead a{color:inherit;text-decoration:none}
.fr3-tag{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ct-link);
  border:1px solid var(--ct-link);border-radius:4px;padding:0 7px;margin-left:6px;vertical-align:1px;white-space:nowrap}
.fr3-ev{white-space:nowrap}
.fr3-ev::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:var(--ct-ink);
  vertical-align:1px}
.fr3-ev.hist::before,.fr3-ev.gone::before{background:transparent;border:1.5px solid var(--ct-dim);box-sizing:border-box}
.fr3-ev.hist,.fr3-ev.gone{color:var(--ct-dim)}
.fr3-flag{display:inline-block;font-weight:600;color:var(--ct-orange);background:var(--ct-amber-bg);padding:0 6px;border-radius:4px;
  white-space:nowrap}
.fr3-warn{color:var(--ct-orange)}
.sev.acc{background:transparent;border-style:dashed}
.sev.big{font-size:15px;padding:3px 10px}
.fr3-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.fr3-pk{border:1px solid var(--ct-rule);border-top:4px solid var(--ct-link);border-radius:6px;padding:10px 14px;display:flex;
  flex-direction:column;gap:4px;background:var(--ct-surface)}
.fr3-pk p{margin:0}
.fr3-refs a{display:inline-block;font-family:var(--ct-mono);font-size:12.5px;background:var(--ct-sunk);border-radius:4px;
  padding:0 6px;margin:0 4px 2px 0;text-decoration:none}
.fr3-f{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--ct-rule);padding-top:18px;margin-top:6px}
.fr3-fh1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fr3-state{font-weight:600;color:var(--ct-dim)}
.fr3-back{margin-left:auto;font-size:13px}
.ct-main .fr3-ft{font-size:22px;margin:4px 0 0}
.fr3-where{color:var(--ct-dim);font-size:13.5px}
.ct-main .fr3-f h4{margin:10px 0 0;font-size:15px;font-weight:700;color:var(--ct-ink)}
.fr3-f .fr-prose,.fr3-steps{max-width:90ch}
.fr3-meas{width:auto}
.fr3-meas .now{font-weight:700}
.fr3-steps{margin:2px 0 0;padding-left:22px}
.fr3-steps li{margin:3px 0;padding-left:4px}
.fr3-steps li>p{margin:0}
.fr3-code{margin:6px 0 4px;border:1px solid var(--ct-rule);border-radius:6px;overflow:hidden;background:var(--ct-code-bg)}
.ct-main .fr3-cl{margin:0;font-size:12px;font-weight:600;color:var(--ct-dim);padding:4px 12px;border-bottom:1px solid var(--ct-rule-soft);
  background:var(--ct-sunk)}
.portal .fr3-code pre{margin:0;border:0;border-radius:0;background:transparent;padding:8px 12px}
/* Copy on each command block of the on-screen Findings report (Hans, 4 Dec 2026); not on paper. */
.ct-main .fr3-cl{display:flex;align-items:center;justify-content:space-between;gap:8px}
.fr3-copy{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--ct-dim);cursor:pointer;
  padding:2px 4px;border-radius:4px;font:inherit}
.fr3-copy:hover,.fr3-copy:focus-visible{color:var(--ct-ink);background:var(--ct-rule-soft)}
.fr3-copied:empty{display:none}
@media print{.fr3-copy{display:none}}
/* Done when is a proposed check: neutral, never the green of a confirmed pass (spec p. 17, block 15 REQ F-10). */
.fr3-donep{border-left:4px solid var(--ct-dim);background:var(--ct-sunk);padding:8px 14px;border-radius:0 6px 6px 0;max-width:90ch}
/* Block 15: action word in the head, check-before-the-change box, measured value with threshold and bar, the
   suggested order of a multi-device job, numbered commands, package gates (boards 4 and 5). */
.fr3-fh1 .fr3-tag{margin-left:0}
.fr3-warnbox{border-left:4px solid var(--ct-orange);background:var(--ct-amber-bg);padding:8px 14px;border-radius:0 6px 6px 0;
  max-width:90ch}
.fr3-warnbox p{margin:0}
.fr3-warnbox p+p{margin-top:4px}
.fr3-sht{border-collapse:collapse;width:100%;margin:8px 0 4px}
.fr3-sht th{text-align:left;vertical-align:top;font-weight:600;color:var(--ct-dim);width:150px;padding:4px 12px 4px 0;white-space:nowrap}
.fr3-sht td{vertical-align:top;padding:4px 0}
.fr3-sht td p{margin:0 0 4px}
.fr3-sht td .fr3-code{margin:4px 0}
@media (max-width:720px){.fr3-sht th,.fr3-sht td{display:block;width:auto;padding:2px 0}.fr3-sht td{padding-bottom:8px}}
.fr3-wcmd code{font-size:12.5px;overflow-wrap:anywhere}
.fr3-metric{max-width:720px}
table.fr3-mt{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:8px 0;margin:4px -8px 0}
.fr3-mt td{border:1px solid var(--ct-rule);border-radius:6px;background:var(--ct-sunk);padding:8px 12px;vertical-align:top}
.fr3-mt td>span{display:block;font-size:13px;color:var(--ct-dim);line-height:1.35}
.fr3-mt td>span:first-child{font-weight:600}
.fr3-mt td>b{display:block;font-size:22px;line-height:1.25;font-variant-numeric:tabular-nums}
.fr3-mt td>b.fr3-mbad{color:var(--ct-orange)}
.fr3-bar{margin:10px 0 0}
.fr3-bart{position:relative;height:16px;background:var(--ct-sunk);border:1px solid var(--ct-rule);border-radius:4px}
.fr3-barv{position:absolute;left:0;top:0;bottom:0;background:var(--ct-orange);border-radius:3px 0 0 3px}
.fr3-bart u{position:absolute;top:-5px;bottom:-5px;width:3px;margin-left:-1px;background:var(--ct-ink);text-decoration:none}
.fr3-bart u.fr3-barp{width:0;border-left:2px dashed var(--ct-dim);background:transparent}
.fr3-barx{position:relative;height:20px;font-size:12.5px;color:var(--ct-dim);margin-top:4px}
.fr3-barx span{position:absolute;white-space:nowrap}
.fr3-barx .fr3-barlt{transform:translateX(-50%);color:var(--ct-ink);font-weight:600}
.fr3-barx .fr3-bar100{transform:translateX(-100%)}
.fr3-barx .fr3-barlt.hi{transform:translateX(-100%)}
.fr3-barx .fr3-barlt.lo{transform:none}
.fr3-barkey{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:var(--ct-dim);margin:2px 0 0}
.fr3-barkey i{display:inline-block;width:12px;height:10px;margin-right:6px;vertical-align:-1px}
.fr3-barkey .fr3-kv{background:var(--ct-orange)} .fr3-barkey .fr3-kl{width:3px;background:var(--ct-ink)}
.fr3-barkey .fr3-kp{width:0;border-left:2px dashed var(--ct-dim)}
.fr3-h4s{font-size:13px;font-weight:400;color:var(--ct-dim);margin-left:6px}
.fr3-flow{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:4px 0 0}
.fr3-site{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px dashed var(--ct-rule);border-radius:8px;padding:8px 12px}
.fr3-site b{min-width:80px}
.fr3-nd{font-family:var(--ct-mono);font-size:13px;border:1.5px solid var(--ct-ink);border-radius:6px;padding:3px 10px;
  background:var(--ct-paper,transparent)}
.fr3-gt{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ct-orange);
  border:1.5px solid var(--ct-orange);background:var(--ct-amber-bg);padding:1px 8px;border-radius:999px}
.fr3-ar,.fr3-fdn{color:var(--ct-dim);font-size:16px;line-height:1}
.fr3-fdn{margin-left:40px}
.fr3-flowtext{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.fr3-gate{border-left:4px solid var(--ct-link);background:var(--ct-sunk);padding:8px 14px;border-radius:0 6px 6px 0;max-width:90ch}
.fr3-cn{color:var(--ct-ink)}
.fr3-code.chg .fr3-cl{color:var(--ct-ink)}
.fr3-pkg,.fr3-pkm{font-size:13px;color:var(--ct-dim)}
.fr3-pkintro{max-width:90ch;color:var(--ct-dim)}
@media (max-width:720px){table.fr3-mt,table.fr3-mt tbody,table.fr3-mt tr{display:block}
  table.fr3-mt td{display:block;margin:0 0 8px}}
.fr3-note{max-width:90ch}
.fr3-ffoot{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:8px;padding-top:8px;border-top:1px solid var(--ct-rule-soft);
  font-size:13px;color:var(--ct-dim)}
.fr3-evf h4{margin:10px 0 4px;font-size:15px}
.portal .fr3-evf h4 a{text-decoration:none}
.fr3-bp{color:var(--ct-dim);font-size:14px}
.ct-main .fr3-bpl{font-weight:600;font-size:13px;margin-top:4px}
.fr3-ffoot .fr3-sep{display:none}
/* The v3.0 Follow-up report (reporting redesign block 5, mock-up board 7; templates/measurements/_fu3_body.html).
   Screen only; the PDF sets its own sizes in followup_report_pdf.html. Bars: open findings per level, accepted striped
   and apart from them; green only on a measured pass (spec p. 17). */
.fu3-sec{display:flex;flex-direction:column;gap:12px}
.fu3-sec h2{margin:0;font-size:20px;line-height:1.25}
.fu3-h2s{font-size:13.5px;font-weight:400;color:var(--ct-dim);margin-left:8px}
.fu3-h3{margin:6px 0 0;font-size:16px}
.fu3-dim{display:block;color:var(--ct-dim);font-size:13px}
p.fu3-dim{margin:0}
.fu3-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fu3-tiles .counter .s{font-size:13px;color:var(--ct-dim);line-height:1.35}
.fu3-tiles .n.bp-green{color:var(--ct-green)} .fu3-tiles .n.bp-orange{color:var(--ct-orange)}
.fu3-tiles .n.bp-red{color:var(--ct-red)} .fu3-tiles .n.bp-blue{color:var(--ct-link)}
.fu3-tiles b.bp-green{color:var(--ct-green)} .fu3-tiles b.bp-orange{color:var(--ct-orange)}
.fu3-tiles b.bp-red{color:var(--ct-red)} .fu3-tiles b.bp-blue{color:var(--ct-link)}
.fu3-lead{margin:0}
.fu3-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.fu3-col h3,.fu3-chart h3{margin:0 0 10px;font-size:16px}
/* Risks over time in the Follow-up (measurements/fu_charts.py, design brief of 5 Dec 2026): mm geometry scaled to
   its box; two panels side by side up to 6 measurements on a wide column, the phone copy (newest 8) under 720 px */
.fc .rt-head h3{margin:0 0 8px;font-size:16px}
.fc h4{margin:12px 0 4px;font-size:14px;font-weight:600}
.fc-svg{display:block;width:100%;height:auto;max-width:900px;overflow:visible}
.fc-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.fc-two .fc-svg{max-width:none}
.fc-phone{display:none}
@media (max-width:1100px){.fc-two{grid-template-columns:minmax(0,1fr)}}
@media (max-width:720px){.fc-wide{display:none}.fc-phone{display:block}}
.fc-cap{margin:6px 0 0;font-size:13px;color:var(--ct-dim);max-width:900px}
.fc .rt-key{margin:6px 0 0;padding:0}
.fc-t{font-family:var(--ct-sans);fill:var(--ct-ink)} .fc-b{font-weight:700}
.fc-a,.fc-y{fill:var(--ct-dim)} .fc-v{font-variant-numeric:tabular-nums}
.fc-n.on-critical{fill:var(--rt-on-critical)} .fc-n.on-high{fill:var(--rt-on-high)}
.fc-n.on-medium{fill:var(--rt-on-medium)} .fc-n.on-low{fill:var(--rt-on-low)}
.fc-rule{stroke:var(--ct-rule);stroke-width:.2} .fc-base{stroke:var(--ct-faint);stroke-width:.3}
.fc-ring{stroke:var(--rt-ring);stroke-width:.35}
.fc-line{fill:none;stroke-width:.6;stroke-linejoin:round;stroke-linecap:round}
.fc-line.l-critical{stroke:var(--ct-ink)} .fc-line.l-high{stroke:var(--rt-high)}
.fc-line.l-medium{stroke:var(--rt-medium)} .fc-line.l-low{stroke:var(--rt-low)}
.fc-svg circle.fc-dot{stroke:var(--ct-surface);stroke-width:.5} .fc-svg circle.fc-dot.l-critical{fill:var(--rt-critical);stroke:var(--rt-ring)}
.fc-svg circle.fc-dot.l-high{fill:var(--rt-high)} .fc-svg circle.fc-dot.l-medium{fill:var(--rt-medium)}
.fc-svg circle.fc-dot.l-low{fill:var(--rt-low)}
.fc-svg [tabindex]:focus{outline:none;stroke:var(--ct-focus);stroke-width:.6}
.fc .sr-only{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* the chart over the full width, the count beside its notes (review of the pilot on release 335) */
.fu3-chart{max-width:980px}
.fu3-two{margin-top:18px}
.fu3-notes{display:flex;flex-direction:column;gap:10px}
.fu3-notes>*{margin:0}
.fu3-of{white-space:nowrap;color:var(--ct-dim)}
.fu3-hb{display:grid;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 0 10px}
.fu3-hd{font:400 13px/1.4 var(--ct-mono)}
.fu3-track{display:flex;height:32px;min-width:0}
.fu3-seg{display:block;height:100%;min-width:3px;box-sizing:border-box;font:normal 700 15px/32px var(--ct-sans,inherit);
  color:#FFFFFF;text-align:center;overflow:hidden;white-space:nowrap}
/* the accepted part is striped: its count on a small plate so it reads on the stripes */
.fu3-seg.acc b{display:inline-block;padding:0 4px;border-radius:3px;background:var(--ct-surface);color:var(--ct-ink);line-height:1.35}
.fu3-seg+.fu3-seg{border-left:2px solid var(--ct-surface)}
/* the colours of the chart of all measurements above it (--rt-*: Medium is the lighter orange, the portal's orange is
   too close to High inside one bar), so a level has one colour on the page */
.fu3-seg.critical,.fu3-key.critical{background:var(--rt-critical);outline:2px solid var(--rt-ring);outline-offset:-2px}
.fu3-seg.high,.fu3-key.high{background:var(--rt-high)} .fu3-seg.medium,.fu3-key.medium{background:var(--rt-medium)}
.fu3-seg.low,.fu3-key.low{background:var(--rt-low)}
.fu3-seg.critical{color:var(--rt-on-critical)} .fu3-seg.high{color:var(--rt-on-high)} .fu3-seg.medium{color:var(--rt-on-medium)}
.fu3-seg.low{color:var(--rt-on-low)}
.fu3-seg.acc,.fu3-key.acc{border:1.5px dashed var(--ct-sev-accepted);background-color:transparent;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='6' height='6'><path d='M-1,1 l2,-2 M0,6 l6,-6 M5,7 l2,-2' stroke='%237A8A9A' stroke-width='1.6'/></svg>")}
.fu3-seg.acc{margin-left:8px;border-left:1.5px dashed var(--ct-sev-accepted)}
.fu3-hn{font-size:17px;white-space:nowrap} .fu3-hn .fu3-dim{display:inline}
.fu3-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:2px 0 0 102px;font-size:13px;color:var(--ct-dim)}
.fu3-key{display:inline-block;width:11px;height:11px;border-radius:2px;margin-right:5px;vertical-align:-1px;box-sizing:border-box}
.fu3-count td.n,.fu3-nums td.n,.fu3-nums th.n{text-align:right;font-variant-numeric:tabular-nums}
.fu3-count .fu3-zero td{color:var(--ct-dim)}
.fu3-count .fu3-sum td{font-weight:700;border-top:2px solid var(--ct-rule)}
.fu3-nums .fu3-cmp td{font-weight:700}
.fu3-warn{margin:0;padding:8px 12px;border-left:4px solid var(--ct-red);background:var(--ct-red-bg)}
.fu3-how{max-width:760px} .fu3-how p{margin:0}
.fu3-restated{max-width:760px;margin:8px 0 0;padding:6px 10px;border-left:3px solid var(--ct-line);color:var(--ct-dim)}
.fu3-comp{margin:0;max-width:820px}
.fu3-ok{color:var(--ct-green);font-weight:600}
.fu3-flag{display:inline-block;margin-left:6px;padding:0 5px;border:1px solid var(--ct-orange);border-radius:4px;color:var(--ct-orange);
  font-size:12px;font-weight:600}
.fu3-ev{white-space:nowrap}
.fu3-ev.hist,.fu3-ev.gone{color:var(--ct-orange)}
.fu3-t td{vertical-align:top}
.fu3-to{display:block;margin-top:3px;color:var(--ct-dim);white-space:nowrap}
.fu3-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
.fu3-next h3{margin:0 0 4px;font-size:16px}
.fu3-next ul{margin:0;padding-left:18px}
.fu3-next .fu3-dim{display:inline}
@media (max-width:720px){.fu3-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.fu3-two,.fu3-next{grid-template-columns:minmax(0,1fr)}
  .fu3-hb{grid-template-columns:84px minmax(0,1fr) auto}.fu3-legend{margin-left:0}}
/* Follow-up tables on a phone (review of PR 511, as the Findings register in PR 509): each row a card, the field
   name from data-l beside its value, nothing scrolls sideways */
@media (max-width:720px){
  .portal .fu3-t.cards thead{position:absolute;left:-9999px}
  .portal .fu3-t.cards,.portal .fu3-t.cards tbody,.portal .fu3-t.cards tr{display:block;width:100%;min-width:0}
  .portal .fu3-t.cards tr{padding:10px 12px;border-bottom:1px solid var(--ct-rule-soft)}
  .portal .fu3-t.cards td{display:block;position:relative;padding:2px 0 2px 104px;border:0;min-height:20px;text-align:left;white-space:normal;width:auto;max-width:none}
  .portal .fu3-t.cards td::before{content:attr(data-l);position:absolute;left:0;top:2px;width:96px;font:400 12px/1.6 var(--ct-sans);color:var(--ct-faint);overflow-wrap:anywhere}
  .portal .fu3-t.cards td.i{padding-top:0}
  .portal .fr-tw:has(>.fu3-t.cards){overflow-x:visible}
}
/* Findings register on a phone (Fable review of PR 509): each row a card, field names from data-l, nothing sideways */
@media (max-width:720px){
  .portal .fr3-reg.cards thead{position:absolute;left:-9999px}
  .portal .fr3-reg.cards,.portal .fr3-reg.cards tbody,.portal .fr3-reg.cards tr{display:block;width:100%;min-width:0}
  .portal .fr3-reg.cards tr{padding:10px 12px;border-bottom:1px solid var(--ct-rule-soft)}
  .portal .fr3-reg.cards td{display:grid;grid-template-columns:96px minmax(0,1fr);gap:0 8px;padding:2px 0;border:0;height:auto;text-align:left;white-space:normal;width:auto;max-width:none}
  .portal .fr3-reg.cards td::before{content:attr(data-l);font:400 12px/1.6 var(--ct-sans);color:var(--ct-faint)}
  .portal .fr3-reg.cards td>*{grid-column:2;justify-self:start}
  .portal .fr3-reg.cards td>.fr3-dim{display:block;justify-self:stretch}
  .portal .fr-tw:has(>.fr3-reg.cards){overflow-x:visible}
}
