/* Ecirette Group dashboards: the one stylesheet, design system 2 (docs/DASHBOARD_STYLE_GUIDE.md, section 3).
   Source of truth: packages/ui/ui.css; copies are written by packages/ui/sync.py, never edited. The one app serves it
   once, cached for a year, at /static/ui.<content hash>.css (ecirette_ui.CSS_URL); no page inlines it.
   Order: Inter, the tokens (light, then dark), the kept rules every component styles itself with, then design system
   2 over them (Graphite, Inter, the sidebar shell). Those override rules are written `html:root ...`: the same weight
   as the `html[data-ui="2"] ...` they were while a classic look existed, so module CSS that lost to them still does.
   Each folds into its kept rule once no module relies on the difference (phases 2 to 5).
   Every colour pair is measured in light and dark with docs/redesign-2026-09/contrast.py; the design gallery (/design)
   shows each token with its values and contrast. */

/* ---------- Inter, from the one app's /static (relative to this file, so every host and staging get it) ---------- */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(inter-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;
  src:url(inter-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}


/* ---------- tokens, light (html:root and html:root[data-theme=dark]: the weight they had as html[data-ui="2"]) ---------- */
html:root{
  --font:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* look C (24 Oct): shadcn's zinc neutrals, green for good, orange for bad, amber for warn. Every colour comes from the
     one colour file, packages/tokens/tokens.json (React plan, step 1a): the Figma file's "Ecirette" collection
     (W4Sl8QS010Zf4vrZoQWaqM), except where C failed its contrast and took the nearest step of its own ramp that passes
     (docs/DASHBOARD_STYLE_GUIDE.md, 3.1): --muted, --line-strong, --comparison, --up and --warn-mark in light. */
  /* TOKENS:light:begin (written by packages/tokens/build.py from packages/tokens/tokens.json; never edit by hand) */
  /* Ink and greys: text, surfaces, borders, the selected tab and focus; never meaning. The accent is ink: colour means status or data. */
  --bg:#ffffff;--panel:#ffffff;--panel2:#f4f4f5;--line:#e4e4e7;--line2:#f0f0f2;--line-strong:#8c8c95;--text:#09090b;--muted:#6b6b74;--on:#ffffff;--accent:#09090b;--accent2:#3f3f46;--accent-soft:#f4f4f5;--focus:#1760c7;
  /* Status: the state of a record, a feed or a job, always with a word and an icon; never a chart series. A pill is the tint at full strength with the text colour; an alert row is its signal at 12% over the card. */
  --ok:#047857;--okbg:#ecfdf5;--warn:#b45309;--warnbg:#fffbeb;--bad:#c2410c;--badbg:#fff7ed;--info:#1760c7;--infobg:#e7effb;--mutedbg:#f4f4f5;--rowwarn:#faeee1;--rowbad:#fcebe2;--rowgood:#e1f4ee;
  /* Change: a mark that grew or fell, the warn mark, the previous period, and the logo mark (nothing else wears --brand). */
  --up:#09a171;--down:#ea580c;--warn-mark:#d67406;--comparison:#8c8c95;--brand:#28743c;
  /* Chart ink: gridlines and the zero line. */
  --grid:#f0f0f2;--baseline:#d4d4d8;
  /* Categorical: the channels, on every page and chart. */
  --c-ie:#a3578e;--c-wh:#6b5a1e;--c-talbot:#2f5bba;--c-baggot:#d0641b;--c-pearse:#1f8ad6;
  /* Every other category, in this order, never by rank. */
  --cat-1:#0f7f78;--cat-2:#7048c8;--cat-3:#8e2a52;--cat-4:#7a9214;--cat-5:#283a85;--cat-6:#5e2a1e;
  /* Sequential: one green in five steps, light to strong, dimmer in dark (--up at 15, 28, 40, 52 and 56% over the card). A number on a cell is --text, or --heat-ink on the two strongest steps. */
  --seq-1:#d1fae5;--seq-2:#6ee7b7;--seq-3:#10b981;--seq-4:#047857;--seq-5:#064e3b;--heat-ink:var(--panel);
  /* Diverging: orange for fewer, grey around, green for more. */
  --div-neg-2:#c2410c;--div-neg-1:#fdba74;--div-mid:#d4d4d8;--div-pos-1:#6ee7b7;--div-pos-2:#047857;
  /* Data, the charts' palette (React plan, step 1b; the Figma file's data/ variables): five categories in this order, never cycled or ranked; sequential, one blue in seven steps, light to strong; diverging, orange for fewer, grey for none, blue for more. Marks hold 3:1 on the card; steps and cells are shown. Green, amber and orange are status and never colour a series. */
  --data-cat-1:#2563eb;--data-cat-2:#db2777;--data-cat-3:#7c3aed;--data-cat-4:#0891b2;--data-cat-5:#4338ca;--data-seq-1:#cde2fb;--data-seq-2:#9ec5f4;--data-seq-3:#6da7ec;--data-seq-4:#3987e5;--data-seq-5:#256abf;--data-seq-6:#184f95;--data-seq-7:#0d366b;--data-div-neg-5:#a83d10;--data-div-neg-4:#d9541c;--data-div-neg-3:#f0804d;--data-div-neg-2:#f9b48e;--data-div-neg-1:#fde3d3;--data-div-mid:#f4f4f5;--data-div-pos-1:#cde2fb;--data-div-pos-2:#9ec5f4;--data-div-pos-3:#6da7ec;--data-div-pos-4:#3987e5;--data-div-pos-5:#256abf;
  /* TOKENS:light:end */
  /* type scale (section 3.2) and spacing in steps of 4 (section 3.3) */
  --fs-hero:32px;--fs-tile:28px;--fs-h1:22px;--fs-chart:16px;--fs-h2:14px;--fs-body:14px;--fs-small:13px;--fs-axis:12px;
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;
  /* surfaces and the frame */
  --shadow:0 1px 2px rgba(0,0,0,.04);--pop:0 12px 40px rgba(9,9,11,.16);
  --radius:12px;--radius-control:8px;--side:248px;--top:56px;
  /* Deprecated: the classic colour names, kept as aliases while module CSS still uses them. Each module drops them
     when it is rebuilt (phases 2 to 5); then they go. New CSS uses the names above. */
  --green:var(--accent);--green2:var(--accent2);--green-soft:var(--accent-soft);--gold:var(--warn);--muted2:var(--muted);
  --s1:var(--c-talbot);--s2:var(--c-baggot);--s3:var(--c-pearse);--s4:var(--c-wh);--s5:var(--c-ie);
  color-scheme:light;
}

/* ---------- tokens, dark: zinc 950 to 800, elevation by lightness ---------- */
html:root[data-theme=dark]{
  /* TOKENS:dark:begin (written by packages/tokens/build.py from packages/tokens/tokens.json; never edit by hand) */
  /* Ink and greys: text, surfaces, borders, the selected tab and focus; never meaning. The accent is ink: colour means status or data. */
  --bg:#09090b;--panel:#18181b;--panel2:#27272a;--line:#27272a;--line2:#27272a;--line-strong:#707079;--text:#fafafa;--muted:#a1a1aa;--on:#18181b;--accent:#fafafa;--accent2:#d4d4d8;--accent-soft:#27272a;--focus:#78b0f7;
  /* Status: the state of a record, a feed or a job, always with a word and an icon; never a chart series. A pill is the tint at full strength with the text colour; an alert row is its signal at 12% over the card. */
  --ok:#6ee7b7;--okbg:#0b3b2e;--warn:#fcd34d;--warnbg:#422006;--bad:#fdba74;--badbg:#431407;--info:#78b0f7;--infobg:#152338;--mutedbg:#27272a;--rowwarn:#332c1c;--rowbad:#33271f;--rowgood:#1b2e2a;
  /* Change: a mark that grew or fell, the warn mark, the previous period, and the logo mark (nothing else wears --brand). */
  --up:#34d399;--down:#fb923c;--warn-mark:#fbbf24;--comparison:#71717a;--brand:#28743c;
  /* Chart ink: gridlines and the zero line. */
  --grid:#27272a;--baseline:#3f3f46;
  /* Categorical: the channels, on every page and chart. */
  --c-ie:#e391c0;--c-wh:#d9c25e;--c-talbot:#5a9cf5;--c-baggot:#e8853a;--c-pearse:#8fd3f7;
  /* Every other category, in this order, never by rank. */
  --cat-1:#5aede3;--cat-2:#957ec8;--cat-3:#ca6878;--cat-4:#8da725;--cat-5:#a9b0e8;--cat-6:#daaa95;
  /* Sequential: one green in five steps, light to strong, dimmer in dark (--up at 15, 28, 40, 52 and 56% over the card). A number on a cell is --text, or --heat-ink on the two strongest steps. */
  --seq-1:#1c342e;--seq-2:#204c3e;--seq-3:#23634d;--seq-4:#27795d;--seq-5:#288162;--heat-ink:var(--text);
  /* Diverging: orange for fewer, grey around, green for more. */
  --div-neg-2:#955b2d;--div-neg-1:#583a24;--div-mid:#3f3f46;--div-pos-1:#204c3e;--div-pos-2:#288162;
  /* Data, the charts' palette (React plan, step 1b; the Figma file's data/ variables): five categories in this order, never cycled or ranked; sequential, one blue in seven steps, light to strong; diverging, orange for fewer, grey for none, blue for more. Marks hold 3:1 on the card; steps and cells are shown. Green, amber and orange are status and never colour a series. */
  --data-cat-1:#3b82f6;--data-cat-2:#ec4899;--data-cat-3:#8b5cf6;--data-cat-4:#0e9cbb;--data-cat-5:#6366f1;--data-seq-1:#172a46;--data-seq-2:#1c3d6b;--data-seq-3:#22549a;--data-seq-4:#2f6fca;--data-seq-5:#4a8be6;--data-seq-6:#79abf0;--data-seq-7:#b3d1f7;--data-div-neg-5:#f9a26f;--data-div-neg-4:#e0682a;--data-div-neg-3:#a64b1c;--data-div-neg-2:#6b3416;--data-div-neg-1:#3d2416;--data-div-mid:#27272a;--data-div-pos-1:#172a46;--data-div-pos-2:#1c3d6b;--data-div-pos-3:#2f6fca;--data-div-pos-4:#4a8be6;--data-div-pos-5:#79abf0;
  /* TOKENS:dark:end */
  --shadow:none;--pop:0 12px 40px rgba(0,0,0,.5);
  color-scheme:dark;
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased;min-width:0;position:relative}
a{color:var(--accent2);text-decoration:none}a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
h1,h2,h3{margin:0}
h1{font-size:20px;font-weight:700;letter-spacing:-.01em;margin:0 0 14px}
h2{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:22px 0 8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
h2 .n{color:var(--muted);font-weight:600;letter-spacing:0;text-transform:none}
h2 .right{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:500}
.mono{font-family:var(--mono);font-size:12.5px}
.muted{color:var(--muted)}.nowrap{white-space:nowrap}.r,td.r,th.r{text-align:right}.c,td.c,th.c{text-align:center}
.none{color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
main{max-width:1440px;margin:0 auto;padding:20px 24px 56px}
main.narrow{max-width:1200px}

/* dropdowns: a section tab's menu (Sales' Channels) and any app menu */
.dd{position:relative}.dd>summary{list-style:none}.dd>summary::-webkit-details-marker{display:none}
.dd>summary::after{content:"▾";color:var(--muted);font-size:12px}
.dd .menu{position:absolute;right:0;top:calc(100% + 6px);min-width:220px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--pop);padding:6px;z-index:30}
.dd .menu.left{right:auto;left:0}
.dd .menu a{display:block;padding:8px 10px;border-radius:6px;color:var(--text);font-weight:500;white-space:nowrap}
.dd .menu a:hover{background:var(--line2);text-decoration:none}.dd .menu a.on{background:var(--accent);color:var(--on)}
.dd .menu .h{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:6px 10px 2px}
.dd .menu .who{font-size:12px;color:var(--muted);padding:4px 10px 8px;border-bottom:1px solid var(--line2);margin-bottom:4px}
.dd .menu .who b{color:var(--text);font-weight:600;display:block}

/* ---------- cards, banner, toolbar ---------- */
.card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:16px;box-shadow:var(--shadow);min-width:0}
.pane{background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);min-width:0}
.banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dot{width:10px;height:10px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px var(--okbg);flex:none}
.dot.warn{background:var(--warn);box-shadow:0 0 0 4px var(--warnbg)}.dot.bad{background:var(--bad);box-shadow:0 0 0 4px var(--badbg)}.dot.muted{background:var(--muted);box-shadow:0 0 0 4px var(--mutedbg)}
.banner .label{font-weight:700}.banner .sub{color:var(--muted);flex:1;min-width:200px}
.banner .act,.banner .actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 16px}
.toolbar .spacer,.grow{flex:1}
.spacer{flex:1}

/* ---------- controls ---------- */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--panel);flex-wrap:wrap}
.seg a,.seg button,.seg span{padding:7px 12px;font-size:13px;font-weight:600;color:var(--text);border:0;border-right:1px solid var(--line);background:transparent;white-space:nowrap;cursor:pointer;min-height:34px;display:inline-flex;align-items:center;gap:6px}
.seg>:last-child{border-right:0}
.seg a:hover,.seg button:hover{background:var(--line2);text-decoration:none}
.seg .on,.seg .on:hover{background:var(--accent);color:var(--on)}
.seg i.sw{display:inline-block;width:10px;height:10px;border-radius:2px}
select,input[type=text],input[type=search],input[type=password],input[type=email],input[type=date],input[type=number],textarea{padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);max-width:100%;min-height:36px}
textarea{width:100%;min-height:72px}
input[type=search]{min-width:220px}
input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}
input::placeholder{color:var(--muted)}
.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:600;font-size:13px;padding:7px 12px;min-height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover,button:hover{background:var(--line2);text-decoration:none;border-color:var(--line)}
.btn.primary,button.primary{background:var(--accent);border-color:var(--accent);color:var(--on)}.btn.primary:hover,button.primary:hover{background:var(--accent2);border-color:var(--accent2)}
.btn.danger,button.danger{color:var(--bad);border-color:var(--bad);background:var(--panel)}.btn.danger:hover,button.danger:hover{background:var(--badbg)}
.btn.sm,button.sm{padding:4px 9px;min-height:28px;font-size:12px}
.btn.icon{width:36px;padding:0}
.btn:disabled,button:disabled{opacity:.5;cursor:default}
.linkish,button.linkish{border:0;background:none;padding:7px 12px;font-weight:500;font-size:14px;color:var(--text);border-radius:8px}
.linkish:hover,button.linkish:hover{background:var(--line2)}
.linklike{border:0;background:none;color:var(--accent2);cursor:pointer;padding:0;font-weight:500;min-height:0}
form.inline{display:inline}
label.f{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:12px 0 4px}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{width:100%}
.chip{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;background:var(--mutedbg);font-size:12px}

/* ---------- tiles ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}
.tile{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;min-width:0;box-shadow:var(--shadow)}
.tile .k{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;gap:6px}
.tile .v{font-size:28px;font-weight:700;color:var(--accent);line-height:1.2;margin:3px 0 2px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.tile .v.bad,.tile.bad .v{color:var(--bad)}.tile .v.ok,.tile.ok .v{color:var(--ok)}.tile .v.gold,.tile.gold .v{color:var(--warn)}.tile .v.neutral{color:var(--text)}
.tile .v.warn,.tile.warn .v{color:var(--warn)}
.tile .v a{color:inherit}   /* a linked value keeps its status colour: "Needs attention 3" was link-green on a bad tile (audit M15) */
.tile .s{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.delta{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}
.delta.ok{color:var(--ok)}.delta.bad{color:var(--bad)}.delta.flat,.delta.muted{color:var(--muted)}

/* ---------- layout grids ---------- */
.two,.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}
.two3,.grid-21{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
.two>*,.two3>*,.grid2>*,.grid3>*,.grid-21>*{min-width:0}

/* ---------- charts ---------- */
.chart{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px 10px;margin-bottom:16px;min-width:0;box-shadow:var(--shadow)}
.chart .ch{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.chart .ch .sub{font-size:12px;color:var(--muted);text-transform:none;letter-spacing:0;font-weight:500}
.chart .ch .tools{margin-left:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center;text-transform:none;letter-spacing:0;font-weight:500;min-width:0;max-width:100%}
.chart svg:not(.spark){width:100%;height:auto;display:block}   /* not sparklines: they drew full width in a chart pane (audit M15) */
.chart details{margin-top:6px;font-size:12.5px;color:var(--muted)}.chart details summary{cursor:pointer}
svg .ax{fill:var(--muted);font-size:11px;font-family:var(--font)}svg .ink{fill:var(--text);font-size:11px;font-family:var(--font)}
svg .grid{stroke:var(--grid)}svg .base{stroke:var(--baseline)}
.legend{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:6px 0 2px}
.legend i,.legend .lg i,.swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.legend .lg{display:inline-flex;align-items:center}
.bar{display:inline-block;width:70px;height:8px;background:var(--line2);border-radius:4px;vertical-align:middle;margin-right:6px}.bar i{display:block;height:100%;background:var(--accent2);border-radius:4px}
.progress{height:6px;background:var(--line2);border-radius:3px;overflow:hidden}.progress i{display:block;height:100%;background:var(--accent2)}

/* ---------- components, wave one (2026-09-06): sparklines, sortable headers, chips, chart table view ---------- */
.spark{display:inline-block;vertical-align:middle;overflow:visible}td .spark{margin-left:6px}.tile .spark{display:block;width:100%;height:36px;margin-top:6px}
.hbars{display:flex;flex-direction:column;gap:6px;--hb-label:210px}
.hbars .hb{display:grid;grid-template-columns:var(--hb-label) 1fr auto;gap:8px;align-items:center;color:var(--text);text-decoration:none;font-size:12.5px;min-height:20px}
.hbars a.hb:hover .l{color:var(--accent2)}.hbars a.hb:hover .b i{filter:brightness(1.12)}
.hbars .l{color:var(--muted);text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbars .b{height:16px;background:rgba(24,36,32,.06);border-radius:3px;overflow:hidden}html[data-theme=dark] .hbars .b{background:rgba(255,255,255,.06)}
.hbars .b i{display:block;height:100%;border-radius:3px}
.hbars .v{font-variant-numeric:tabular-nums;min-width:2.5em}
th.sortable a{color:inherit;text-decoration:none;display:inline-block}th.sortable a:hover{color:var(--text)}th.sorted a{color:var(--accent2)}
.chips{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.chip .x{margin-left:2px;color:var(--muted);font-weight:700;text-decoration:none;padding:0 2px;border-radius:999px;line-height:1}.chip .x:hover{color:var(--bad);text-decoration:none}
.chips-clear{font-size:12px;color:var(--muted);margin-left:4px}.chips-clear:hover{color:var(--accent2)}
details.tv{margin-top:6px;font-size:12.5px;color:var(--muted)}details.tv>summary{cursor:pointer;list-style:none;display:inline-block;padding:2px 0}details.tv>summary::-webkit-details-marker{display:none}details.tv[open]>summary{margin-bottom:8px}

/* ---------- components, wave two (2026-09-07, PF-4): disclosure, status strip, empty state, comparison cell, sticky table, cards on a phone; sheet, popover and lightbox on the popover attribute ---------- */
details.disc{font-size:13px}details.disc>summary{cursor:pointer;list-style:none;display:inline-flex;gap:6px;align-items:center;color:var(--muted);padding:2px 0}
details.disc>summary::-webkit-details-marker{display:none}details.disc>summary::before{content:"▸";font-size:11px}details.disc[open]>summary::before{content:"▾"}
details.disc>summary:hover{color:var(--accent2)}details.disc>summary .n{font-weight:400}details.disc>.db{margin:6px 0 4px;padding-left:14px;border-left:2px solid var(--line)}
td details.disc>summary{padding:0}
.strip{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.strip .st{display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 10px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:12.5px;color:var(--text);text-decoration:none;min-height:32px}
.strip .st .dot{width:8px;height:8px}.strip .st .l{font-weight:600}.strip .st .t{color:var(--muted)}
.strip a.st:hover{background:var(--line2);text-decoration:none}
.strip .st.bad .t{color:var(--bad)}.strip .st.warn .t{color:var(--warn)}
.empty.ok{color:var(--ok);background:var(--okbg)}.empty.warn{color:var(--warn);background:var(--warnbg)}
div.empty{border-radius:10px;font-size:13px}td.empty{font-size:13px}
.cmp{display:flex;gap:10px;flex-wrap:wrap;font-size:12.5px;font-variant-numeric:tabular-nums}
.cmp .c{display:inline-flex;flex-direction:column;gap:1px;min-width:0}.cmp .s{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cmp .c.diff .v{color:var(--bad);font-weight:600}.cmp .c.diff .s{color:var(--bad)}
/* sticky first column and sticky header: the wrapper scrolls, the pinned cells repaint over it with the table's own background */
.tw.sticky th:first-child,.tw.sticky td:first-child{position:sticky;left:0;z-index:2;background:var(--panel);box-shadow:1px 0 0 var(--line)}
.tw.sticky th:first-child{background:var(--panel2);z-index:3}.tw.sticky tbody tr:hover td:first-child{background:var(--panel2)}
.tw.sticky-head{overflow-y:auto}.tw.sticky-head thead th{position:sticky;top:0;z-index:2}.tw.sticky.sticky-head th:first-child{z-index:4}
/* sheet, popover, lightbox: [popover] elements in the top layer; the browser hides them until opened and closes them on an outside click or Escape */
[popover]{border:0;padding:0;color:var(--text);background:transparent;overflow:visible}
[popover]::backdrop{background:rgba(9,15,13,.45)}
.sheet[popover]{position:fixed;inset:0 0 0 auto;margin:0;width:min(520px,100vw);height:100%;max-height:none;background:var(--panel);border-left:1px solid var(--line);box-shadow:var(--pop);flex-direction:column}
.sheet:popover-open{display:flex;animation:shin .18s ease-out}
@keyframes shin{from{transform:translateX(24px);opacity:.6}to{transform:none;opacity:1}}
.sheet>.shh{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.sheet>.shh .t{font-weight:700;font-size:15px}.sheet>.shb{padding:16px 18px;overflow-y:auto;flex:1;font-size:13.5px}
.sheet .tw{border-radius:10px}
.pop[popover]{position:fixed;inset:auto;top:0;left:0;margin:0;min-width:220px;max-width:min(360px,90vw);padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--pop);font-size:12.5px;text-align:left;white-space:normal;font-variant-numeric:tabular-nums}
.pop::backdrop{background:transparent}
.linkish.sm{padding:2px 6px;min-height:0;font-size:inherit;font-weight:500;color:var(--accent2)}.linkish.sm:hover{text-decoration:underline}
.lbt{border:0;padding:0;background:transparent;box-shadow:none;min-height:0;cursor:zoom-in;vertical-align:middle;--lb:48px}
.lbt img{width:var(--lb);height:var(--lb);object-fit:cover;border-radius:8px;border:1px solid var(--line);background:var(--panel);display:block}
.lb[popover]{background:transparent;inset:0;margin:auto;width:fit-content;height:fit-content}.lb::backdrop{background:rgba(9,15,13,.82)}
.lb>button{border:0;padding:0;background:transparent;box-shadow:none;min-height:0;cursor:zoom-out;display:block}
.lb img{max-width:94vw;max-height:94vh;display:block;border-radius:6px;box-shadow:var(--pop)}

/* ---------- tables ---------- */
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--panel);border:1px solid var(--line);border-radius:10px;margin-bottom:16px;box-shadow:var(--shadow)}
.tw table{min-width:640px}
table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
th{background:var(--panel2);color:var(--muted);text-align:left;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:9px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:9px 12px;border-bottom:1px solid var(--line2);vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:var(--panel2)}
tr.row-warn td{background:var(--rowwarn)}tr.row-bad td{background:var(--rowbad)}
td.ck,th.ck{width:28px;padding-right:0}
td .bar{margin-left:8px}
.empty{padding:24px 16px;text-align:center;color:var(--muted)}
.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin:0 0 16px;color:var(--muted);font-size:13px}
.tfoot{display:flex;justify-content:space-between;padding:8px 12px;color:var(--muted);font-size:12px;border-top:1px solid var(--line2)}
th.sortable{cursor:pointer;user-select:none}th.sortable:hover{color:var(--text)}th.sorted{color:var(--accent2)}

/* ---------- pills, kv, misc ---------- */
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1.5}
.pill.ok{background:var(--okbg);color:var(--ok)}.pill.warn{background:var(--warnbg);color:var(--warn)}.pill.bad{background:var(--badbg);color:var(--bad)}.pill.muted{background:var(--mutedbg);color:var(--muted)}
a.pill:hover{text-decoration:none;filter:brightness(.96)}
.kv{display:grid;grid-template-columns:170px 1fr;gap:6px 12px;font-size:13px}.kv .k,.kv>div:nth-child(odd){color:var(--muted)}
.summary,.summary-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.summary .big,.summary-head .big,.big{font-size:22px;font-weight:700;letter-spacing:-.01em}
.summary .act,.summary-head .actions,.actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.note{font-size:12.5px;color:var(--muted);margin:6px 0 16px}
.help{background:var(--panel2);border:1px solid var(--line);border-left:3px solid var(--warn);border-radius:10px;padding:12px 16px;font-size:13px;color:var(--muted);margin:0 0 16px}
.help b{color:var(--text)}
.callout{border-left:3px solid var(--accent2);background:var(--panel2);padding:10px 14px;border-radius:0 8px 8px 0;margin:8px 0 16px;font-size:13px}
.callout.warn{border-left-color:var(--warn)}.callout.bad{border-left-color:var(--bad)}
.flash{background:var(--okbg);color:var(--ok);border-radius:10px;padding:10px 14px;margin-bottom:16px;font-weight:600}
.flash.warn{background:var(--warnbg);color:var(--warn)}.flash.bad{background:var(--badbg);color:var(--bad)}
.crumbs{font-size:12.5px;color:var(--muted);margin-bottom:8px}.crumbs a{color:var(--muted)}.crumbs a:hover{color:var(--accent2)}
details.sec{background:var(--panel);border:1px solid var(--line);border-radius:10px;margin-bottom:12px}
details.sec>summary{padding:12px 16px;cursor:pointer;font-weight:700;display:flex;gap:10px;align-items:center;list-style:none}
details.sec>summary::-webkit-details-marker{display:none}details.sec>summary::before{content:"▸";color:var(--muted);font-size:12px}details.sec[open]>summary::before{content:"▾"}
details.sec>summary .n{font-weight:400;color:var(--muted)}details.sec>summary .sp{margin-left:auto;display:flex;gap:6px}
details.sec .tw{border:0;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin:0;box-shadow:none}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:8px 0 16px;overflow-x:auto}
.tabs a,.tabs button{border:0;background:transparent;padding:10px 14px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;font-weight:500;border-radius:0;min-height:0}
.tabs .on{color:var(--accent2);border-bottom-color:var(--accent2)}
.skeleton{background:linear-gradient(90deg,var(--line2),var(--line),var(--line2));background-size:200% 100%;animation:sh 1.2s infinite;border-radius:8px}
@keyframes sh{from{background-position:200% 0}to{background-position:-200% 0}}
.bulk{position:sticky;bottom:0;background:var(--panel);border-top:1px solid var(--line);padding:10px 16px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 -24px;z-index:9}
.bulk .cnt{font-weight:700;color:var(--accent);min-width:90px}

/* ---------- full-page states: sign in, signed out, errors ---------- */
.state{display:grid;justify-items:center;align-content:start;padding:10vh 24px 40px}
.state .card{width:100%;max-width:420px;padding:28px;text-align:center}
.state .card>svg{height:40px;width:auto;margin:0 auto 14px;display:block;color:var(--text)}   /* the wordmark only, not an icon in a button (audit M15) */
.state .t{font-weight:700;font-size:18px;margin-bottom:6px}
.state p{color:var(--muted);margin:0 0 16px}
.state .code{font-family:var(--mono);color:var(--muted);font-size:12px;margin-top:14px}
.state .btn{width:100%}
.err{color:var(--bad);font-size:13px;margin-bottom:10px}

/* ---------- page templates (the redesign, phase 0): Overview, List, Detail (ui.overview, ui.list_page, ui.detail) ---------- */
.tpl-head{margin:0 0 16px}
.tpl-crumbs{display:flex;gap:6px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);margin-bottom:6px}.tpl-crumbs a{color:var(--muted);text-decoration:none}.tpl-crumbs a:hover{text-decoration:underline;color:var(--text)}
.tpl-titlerow{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}.tpl-title{min-width:0;flex:1 1 320px}
.tpl-titlerow h1{margin:0;font-size:20px;line-height:1.25;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tpl-count{font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.tpl-sub{margin:4px 0 0;color:var(--muted);font-size:13px;max-width:65ch}
.tpl-acts{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.tpl-tiles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
a.tpl-tile{text-decoration:none;color:inherit}a.tpl-tile:hover{border-color:var(--line-strong)}
.tpl-attn{padding:0;margin-bottom:16px}
.tpl-attn h2{font-size:13px;margin:0;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;gap:6px;align-items:baseline}
.tpl-attn ul{list-style:none;margin:0;padding:0}
.tpl-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:10px 16px;border-top:1px solid var(--line)}
.tpl-row:first-child{border-top:0}
.tpl-row .t{font-weight:600;color:var(--text);text-decoration:none}.tpl-row .t:hover{text-decoration:underline}
.tpl-row .m{grid-column:2;font-size:12.5px;color:var(--muted)}
.tpl-row .a{grid-row:1 / span 2;grid-column:3}
.tpl-row.bad{box-shadow:inset 3px 0 0 var(--bad)}.tpl-row.warn{box-shadow:inset 3px 0 0 var(--warn)}
.tpl-all{display:block;padding:10px 16px;border-top:1px solid var(--line);font-size:13px}
.tpl-attn .empty{margin:12px 16px}
.tpl-take{margin:0 0 8px;font-weight:600}
.tpl-charts{display:grid;gap:16px}
.tpl-views{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:12px;overflow-x:auto}
.tpl-views a{padding:8px 12px;color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:600;white-space:nowrap;font-size:13.5px}
.tpl-views a[aria-current="page"]{color:var(--text);border-bottom-color:var(--accent)}
.tpl-views .n{font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.tpl-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.tpl-bar input[type=search]{flex:1 1 220px;min-width:0}
.tpl-cols{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:start}
.tpl-main,.tpl-side{display:grid;gap:16px;min-width:0}
.tpl-panel{padding:0}.tpl-panel h2{font-size:13px;margin:0;padding:12px 16px;border-bottom:1px solid var(--line)}
.tpl-pb{padding:8px 16px 12px;min-width:0}.tpl-pb > .tw{margin:4px 0}.tpl-pb .tw table{min-width:0}
.tpl-summary{margin:0}
.tpl-summary > div{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr) auto;gap:8px;padding:6px 0;border-top:1px solid var(--line)}
.tpl-summary > div:first-child{border-top:0}
.tpl-summary dt{color:var(--muted);font-size:13px}.tpl-summary dd{margin:0;min-width:0;overflow-wrap:anywhere}.tpl-summary dd.act{font-size:12.5px}
.tpl-tl{list-style:none;margin:0;padding:0}
.tpl-tl li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;padding:6px 0;font-size:13.5px}
.tpl-tl li::before{content:"";width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--line-strong)}
.tpl-tl li.w::before{background:var(--warn)}
.tpl-tl .when{color:var(--muted);font-size:12px}.tpl-tl .who{color:var(--muted);font-size:12.5px}
.tpl-rel{list-style:none;margin:0;padding:0}
.tpl-rel a{display:flex;justify-content:space-between;gap:8px;padding:6px 0;text-decoration:none}.tpl-rel a span{color:var(--muted);font-size:12.5px}
.tpl-danger{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap}
.tpl-confirm{display:inline-block;position:relative}
.tpl-confirm > summary{list-style:none;cursor:pointer}.tpl-confirm > summary::-webkit-details-marker{display:none}
.tpl-confirm-pop{position:absolute;right:0;z-index:20;margin-top:6px;width:min(340px,86vw);padding:12px;background:var(--panel);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:var(--shadow)}
.tpl-confirm-pop p{margin:0 0 10px;font-size:13.5px}

/* ---------- the design gallery (/design, ui.design_gallery) ---------- */
.dg-tok{display:flex;align-items:center;gap:var(--sp-3);text-align:left}
.dg-sw{display:block;flex:none;width:40px;height:40px;border-radius:8px;border:1px solid var(--line)}
.dg-chip{display:inline-block;width:14px;height:14px;border-radius:4px;border:1px solid var(--line);vertical-align:-2px;margin-right:6px}
.dg-kind,.dg-need{font-size:var(--fs-axis);color:var(--muted)}
.dg-type{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap;padding:var(--sp-2) 0;border-bottom:1px solid var(--line2)}
.dg-type:last-child,.dg-sp:last-child{border-bottom:0}
.dg-type code,.dg-sp code{font-size:var(--fs-axis);color:var(--muted)}
.dg-sp{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:var(--sp-3);padding:var(--sp-1) 0}
.dg-sp span{display:block;height:var(--sp-3);background:var(--accent);border-radius:2px}
.dg-dep{margin:0;padding-left:var(--sp-5);columns:2 220px}

/* ---------- mobile ---------- */
@media(max-width:820px){
  .tpl-acts{margin-left:0;width:100%}.tpl-cols{grid-template-columns:1fr}.tpl-side{order:-1}.tpl-row{grid-template-columns:auto minmax(0,1fr)}.tpl-row .a{grid-row:auto;grid-column:2}.tpl-summary > div{grid-template-columns:1fr}.tpl-confirm-pop{left:0;right:auto}
  .dd{width:100%}.dd .menu,.dd .menu.left{position:static;box-shadow:none;border:0;padding:0 0 4px 12px;min-width:0;background:transparent}
  main{padding:12px 12px 40px}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tile{padding:10px 12px}.tile .v{font-size:22px}
  /* charts are SVGs scaled to the column, so on a phone their user units shrink by roughly half: axis and
     ink text is set larger in user units here to land at about 10px on screen (PF-5) */
  svg .ax,svg .ink{font-size:20px}
  .chart .ch .tools{margin-left:0;width:100%}   /* chart controls wrap under the title instead of widening the page (audit M15) */
  /* a segmented control scrolls sideways rather than wrapping an orphan onto a second line (PF-5) */
  .seg{flex-wrap:nowrap;overflow-x:auto;max-width:100%;scrollbar-width:none;-webkit-overflow-scrolling:touch}.seg::-webkit-scrollbar{display:none}
  .two,.two3,.grid2,.grid3,.grid-21{grid-template-columns:1fr}
  input[type=search]{min-width:0;width:100%}.toolbar>*{max-width:100%}.toolbar form.inline{display:flex;gap:8px;width:100%;flex-wrap:wrap}
  .kv{grid-template-columns:120px 1fr}
  .hbars .hb{grid-template-columns:minmax(90px,38%) 1fr auto}
  .banner .sub{width:100%;flex-basis:100%}.banner .act,.banner .actions,.summary .act,.summary-head .actions{margin-left:0;width:100%}
  .pager{justify-content:center}.big{font-size:18px}
  .bulk{margin:0 -12px}
  .state{padding:6vh 12px 32px}
  /* .tw.cards (ui.table): each row becomes a card and each cell a labelled line (data-l is the header); the header row goes */
  .tw.cards{overflow:visible;background:transparent;border:0;box-shadow:none}
  .tw.cards table{min-width:0;display:block}.tw.cards thead{display:none}.tw.cards tbody{display:block}
  .tw.cards tr{display:block;background:var(--panel);border:1px solid var(--line);border-radius:10px;margin-bottom:8px;padding:6px 12px}
  .tw.cards td{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--line2);text-align:right;position:static;box-shadow:none;background:transparent}
  .tw.cards td:last-child{border-bottom:0}.tw.cards tbody tr:hover td{background:transparent}
  /* a confirm in a card's cell sits at the cell's right edge, so its panel opens leftwards, inside the card (Switches tab at
     800 px, 7 Oct); :where keeps this below a module's own anchoring class (.dq-left, .lst-left and the like) */
  :where(.tw.cards td) .tpl-confirm-pop{left:auto;right:0;max-width:calc(100vw - 32px)}
  .tw.cards td::before{content:attr(data-l);color:var(--muted);font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:left;flex:none}
  .tw.cards td.empty{display:block;text-align:center}.tw.cards td.empty::before{content:none}
  .sheet[popover]{width:100vw;border-left:0}
}

/* ---------- print ---------- */
@media print{main{padding:0;max-width:none}body{background:#fff}.card,.tile,.chart,.pane{background:#fff;box-shadow:none;border-color:#ccc}}

/* ---------- design system 2 over the kept rules: base ---------- */
html:root body{font:14px/1.5 var(--font);font-feature-settings:"tnum" 1,"cv11" 1;padding-left:var(--side)}
html:root a{color:var(--text);text-decoration:none}
html:root main :where(p,li,dd,td,.sub,.note,.s,.callout,.help,.flash)>a:not(.btn){text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
html:root main :where(p,li,dd,td,.sub,.note,.s,.callout,.help,.flash)>a:not(.btn):hover{text-decoration-color:currentColor}
html:root .btn,html:root .btn:hover{text-decoration:none}
html:root main{max-width:1280px;margin:0;padding:24px 28px 64px}
html:root main.narrow{max-width:1100px}
html:root h1{font-size:22px;font-weight:650;letter-spacing:-.015em;text-wrap:balance}
html:root h2{font-size:14px;letter-spacing:0;text-transform:none;color:var(--text);font-weight:600}
html:root h2 .n{color:var(--muted);font-weight:500}
html:root .none{color:var(--muted)}
.eg2-skip{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--panel);padding:8px 12px;border:1px solid var(--line-strong);border-radius:8px}
.eg2-skip:focus{left:calc(var(--side) + 8px)}

/* ---------- sidebar ---------- */
.eg2-side{position:fixed;left:0;top:0;bottom:0;width:var(--side);z-index:30;background:var(--panel);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto}
.eg2-brand{height:var(--top);flex:none;display:flex;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none!important}
.eg2-brand svg{height:26px;width:auto;display:block}
.eg2-nav{padding:8px 10px 20px}
html:root .eg2-nav h2{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:16px 10px 4px}
.eg2-nav ul{list-style:none;margin:0;padding:0;display:grid;gap:1px}
.eg2-nav a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:6px;color:var(--text);text-decoration:none;font-size:13.5px;line-height:20px}
.eg2-nav a:hover{background:var(--bg);text-decoration:none}
.eg2-nav a[aria-current="page"]{background:var(--bg);font-weight:600;box-shadow:inset 3px 0 0 var(--accent)}
.eg2-nav svg{width:16px;height:16px;flex:none;color:var(--muted)}
.eg2-nav a[aria-current="page"] svg{color:var(--text)}
.eg2-nav .ct{margin-left:auto;font-size:11.5px;font-weight:600;min-width:20px;text-align:center;padding:1px 6px;border-radius:999px;background:var(--badbg);color:var(--bad)}
.eg2-nav .ct.w{background:var(--warnbg);color:var(--warn)}
.eg2-nav .ct:empty{display:none}
.eg2-nav .planned{display:flex;align-items:center;gap:10px;padding:7px 10px;color:var(--muted);font-size:13.5px;line-height:20px;cursor:default}
.eg2-nav .planned .soon{margin-left:auto;font-size:11px;color:var(--muted)}
.eg2-foot{margin-top:auto;padding:12px 18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:grid;gap:6px}
.eg2-foot button,.eg2-foot a{font-size:12.5px;background:none;border:0;padding:0;color:var(--text);cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.eg2-foot form{margin:0}

/* ---------- top bar and section tabs ---------- */
.eg2-top{position:sticky;top:0;z-index:20;height:var(--top);display:flex;align-items:center;gap:12px;padding:0 28px;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.eg2-top .eg2-menu{display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;margin-left:-8px;border:0;border-radius:8px;background:none;cursor:pointer;color:var(--muted)}
.eg2-top .eg2-menu:hover{color:var(--text);background:var(--panel)}
.eg2-top .eg2-menu svg{width:18px;height:18px}
.eg2-search{flex:1;max-width:520px;display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--muted);cursor:text;font-size:13.5px;text-align:left}
.eg2-search:hover{border-color:var(--line-strong)}
.eg2-search svg{width:16px;height:16px;flex:none}
.eg2-search kbd,.eg2-pal kbd{margin-left:auto;font:600 11px var(--mono);padding:2px 6px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;color:var(--muted);background:var(--bg)}
.eg2-search .s{display:none}
.eg2-top .pname{font-size:12.5px;color:var(--muted);white-space:nowrap}
.eg2-top .grow{flex:1}
.eg2-top .theme{display:inline-flex;align-items:center;border:0;background:none;padding:6px;border-radius:6px;cursor:pointer;color:var(--text)}
.eg2-top .theme:hover{background:var(--panel)}
.eg2-top .theme svg{width:18px;height:18px}.eg2-top .theme .tl{display:none}
.eg2-top .theme .sun{display:none}html[data-theme=dark] .eg2-top .theme .sun{display:block}html[data-theme=dark] .eg2-top .theme .moon{display:none}
.eg2-tabs{display:flex;gap:2px;align-items:center;border-bottom:1px solid var(--line);padding:0 28px;overflow-x:auto;background:var(--bg)}
html:root .eg2-tabs a,.eg2-tabs .linkish,.eg2-tabs .dd>summary{display:inline-flex;align-items:center;gap:6px;padding:10px 12px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:none;color:var(--muted);font-weight:550;font-size:13.5px;white-space:nowrap;text-decoration:none;border-radius:0;cursor:pointer}
html:root .eg2-tabs a:hover{color:var(--text);text-decoration:none}
html:root .eg2-tabs a.on,.eg2-tabs .dd>summary.on{color:var(--text);border-bottom-color:var(--accent);background:none}
.eg2-tabs .grow{flex:1}
.eg2-tabs .hsearch{display:inline-flex;margin:6px 0}.eg2-tabs .hsearch input{width:190px;min-height:32px;padding:4px 10px}
.eg2-tabs form.inline{display:contents}
.eg2-tabs .dd .menu a{border:0;padding:8px 10px;color:var(--text)}

/* ---------- components tuned for Graphite ---------- */
html:root .card,html:root .pane{border-radius:10px}
html:root .tile .v{color:var(--text);font-weight:650;letter-spacing:-.015em}          /* ink, never green for "no status" */
html:root .tile .v.ok,html:root .tile.ok .v{color:var(--ok)}
html:root .tile .v.warn,html:root .tile.warn .v{color:var(--warn)}
html:root .tile .v.bad,html:root .tile.bad .v{color:var(--bad)}
html:root .tile .k{text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:500}
html:root .dot{width:8px;height:8px;box-shadow:none}
html:root .banner .label{font-weight:600}
html:root .btn.primary,html:root button.primary{color:var(--on)}
html:root .btn,html:root button{border-color:var(--line-strong)}
html:root .linkish,html:root button.linkish{border:0}
html:root th{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600}
html:root .seg a.on,html:root .seg button.on,html:root .seg .on{color:var(--on)}

/* ---------- search palette ---------- */
.eg2-scrim{position:fixed;inset:0;z-index:60;background:rgba(10,12,14,.45);display:flex;justify-content:center;align-items:flex-start;padding:10vh 16px 16px}
.eg2-pal{width:min(640px,100%);background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--pop);overflow:hidden}
.eg2-pal input{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;padding:14px 16px;font-size:15px;outline:none;border-radius:0;min-height:0}
.eg2-pal .res{max-height:52vh;overflow:auto;padding:6px 0}
.eg2-pal h4{margin:10px 16px 4px;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600}
.eg2-pal .o{display:flex;gap:10px;align-items:center;padding:8px 16px;cursor:pointer;font-size:13.5px}
.eg2-pal .o .t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eg2-pal .o .w{margin-left:auto;color:var(--muted);font-size:12px;text-align:right;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}
.eg2-pal .nt{margin:6px 16px;font-size:12px;color:var(--muted)}
@media(max-width:600px){.eg2-pal .o{flex-wrap:wrap;gap:2px 10px}.eg2-pal .o .t{white-space:normal;flex-basis:100%}.eg2-pal .o .w{margin-left:0;max-width:100%;text-align:left;white-space:normal}}
.eg2-pal .o[aria-selected="true"]{background:var(--bg);box-shadow:inset 3px 0 0 var(--accent)}
.eg2-pal .ft{display:flex;gap:14px;padding:8px 16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
/* ---------- the six areas: sidebar marks, the laptop rail, the phone bar and its More sheet (redesign phase 1, step 5) ---------- */
.eg2-nav h2.cur{color:var(--text)}
.eg2-nav h2.cur::before{content:"";display:inline-block;width:6px;height:6px;margin:0 6px 1px 0;border-radius:50%;background:var(--accent);vertical-align:middle}
.eg2-nav a{position:relative;min-height:40px}
.eg2-nav a:focus-visible,.eg2-bottom a:focus-visible,.eg2-bottom button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
html.eg2-rail{--side:64px}
html.eg2-rail .eg2-brand{padding:0 0 0 23px;overflow:hidden}html.eg2-rail .eg2-brand svg{flex:none;clip-path:inset(0 calc(100% - 17px) 8px 0)}
html.eg2-rail .eg2-nav{padding:8px 8px 20px}
html.eg2-rail .eg2-side .eg2-nav h2{font-size:0;height:1px;margin:10px 4px;background:var(--line)}
html.eg2-rail .eg2-side .eg2-nav h2.cur{background:var(--accent)}html.eg2-rail .eg2-side .eg2-nav h2.cur::before{display:none}
html.eg2-rail .eg2-side .eg2-nav a,html.eg2-rail .eg2-side .eg2-nav .planned{justify-content:center;padding:10px 0}
html.eg2-rail .eg2-side .eg2-nav .lb,html.eg2-rail .eg2-side .eg2-nav .planned span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
html.eg2-rail .eg2-side .eg2-nav .ct{position:absolute;top:2px;right:2px;min-width:16px;padding:0 4px;font-size:10px}
html.eg2-rail .eg2-foot{padding:12px 6px;text-align:center}
.eg2-bottom{display:none;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--panel);border-top:1px solid var(--line)}
.eg2-bottom a,.eg2-bottom button{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:52px;padding:6px 2px 8px;font-size:11px;line-height:1.3;color:var(--muted);cursor:pointer;text-decoration:none;position:relative;border-radius:0}
.eg2-bottom span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eg2-bottom svg{width:20px;height:20px;flex:none}
.eg2-bottom [aria-current]{color:var(--text);font-weight:600}
.eg2-bottom [aria-current]::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--accent)}
.eg2-bottom.dg-bar{display:grid;position:static}
.eg2-more[popover]{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;max-height:85vh;margin:0;padding:0 0 env(safe-area-inset-bottom,0px);overflow-y:auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-bottom:0;border-radius:14px 14px 0 0;box-shadow:var(--pop)}
.eg2-more{display:none}      /* closed; open by the popover, or by the script's fallback (.open) where popover is missing */
.eg2-more:popover-open{display:block}
.eg2-more.open{display:block}
.eg2-more::backdrop{background:rgba(10,12,14,.4)}
.eg2-more .hd{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--panel);border-bottom:1px solid var(--line)}
html:root .eg2-more .hd h2{margin:0;font-size:var(--fs-h2)}
.eg2-more .hd .btn{min-height:40px}
.eg2-more .eg2-nav{padding:4px 12px 16px}
.eg2-more .eg2-nav a,.eg2-more .eg2-nav .planned{min-height:44px}
@media (min-width:820px){.eg2-more[popover]{inset:auto auto 0 50%;width:420px;transform:translateX(-50%)}}

/* ---------- laptop and desktop keep the sidebar (collapsible to its icons); phones get the bottom bar (3.3) ---------- */
@media (max-width:819px){
  html:root body{padding-left:0}
  .eg2-side,html.eg2-rail .eg2-side{display:none}
  .eg2-top .eg2-menu{display:none}
  .eg2-skip:focus{left:8px}
  html:root main{padding-bottom:96px}
  .eg2-bottom{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:20;padding-bottom:env(safe-area-inset-bottom,0px)}
}
@media (max-width:640px){
  html:root main{padding:16px 16px 96px}
  .eg2-top{padding:0 12px;gap:8px}.eg2-tabs{padding:0 12px}
  .eg2-search .l,.eg2-search kbd,.eg2-top .pname{display:none}.eg2-search .s{display:inline}
}
@media (prefers-reduced-motion:reduce){.eg2-side{transition:none}}
@media print{.eg2-side,.eg2-top,.eg2-tabs,.eg2-bottom,.eg2-more{display:none}html:root body{padding-left:0}}

/* ---------- Irish time, numbers and definitions (redesign phase 1, step 2, 23 Oct) ---------- */
/* delta(): good and bad in the diverging pair (blue good, orange bad), never by sign; both hold 4.5:1 as text in either theme */
.delta.good{color:var(--div-pos-2)}.delta.worse{color:var(--div-neg-2)}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* the freshness line under the filter bar (4.2) */
.fresh{margin:0 0 var(--sp-4);font-size:var(--fs-small);color:var(--muted)}
time.ago{text-decoration:underline dotted var(--line-strong);text-underline-offset:3px;cursor:help}
/* define(): the "i" button and its definition popover (4.9); 18 px drawn (border-box), a 40 px target: 16 px padding box + 2 * 12 */
html:root button.dfi{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;min-height:0;padding:0;margin:0 0 0 4px;vertical-align:middle;border:1px solid var(--line-strong);border-radius:50%;background:var(--panel);color:var(--muted);font:600 11px/1 var(--font);cursor:pointer}
html:root button.dfi::after{content:"";position:absolute;inset:-12px}
html:root button.dfi:hover{color:var(--text);border-color:var(--text)}
.dfp>span{display:block;margin:0 0 6px;font-size:var(--fs-small);line-height:1.45}.dfp>span:last-child{margin-bottom:0}
.dfp .dft{font-weight:600;color:var(--text)}
.dfp .dfs b{font-weight:600}.dfp .dfs,.dfp .dfc{color:var(--muted)}

/* ---------- the building blocks (redesign phase 1, step 3, 23 Oct): style guide 4.3 to 4.9 ---------- */
/* status words (4.7): normal states grey text with their icon; a pill only where a person should look */
.sw{display:inline-flex;align-items:center;gap:5px;font-size:var(--fs-small);font-weight:500;line-height:1.5;white-space:nowrap;color:var(--muted);vertical-align:middle}
.sw .si{width:16px;height:16px;flex:none}
.sw.ink{color:var(--text)}.sw.ok{color:var(--ok)}
html:root .sw.pill{padding:1px 9px 1px 6px;font-size:12px;font-weight:600}
/* headline tile (4.3) */
.ht .v{display:flex;align-items:center;gap:8px;font-size:var(--fs-tile)}
.ht .hs{display:inline-flex}.ht .hs .si{width:20px;height:20px}
.ht.warn .hs{color:var(--warn)}.ht.bad .hs{color:var(--bad)}
.ht .s{font-size:var(--fs-small)}.ht .s .delta{white-space:normal;font-size:var(--fs-small)}   /* a long "vs" wraps in a narrow tile */
.ht .hw{font-size:var(--fs-body);color:var(--muted);margin:6px 0 2px;line-height:1.4}
html:root .ht.warn .v,html:root .ht.bad .v{color:var(--text)}   /* the icon carries the state; the figure stays ink */
/* attention strip (4.4) */
.as{padding:0;margin-bottom:var(--sp-4)}
.as h2{font-size:var(--fs-h2);margin:0;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;gap:6px;align-items:baseline}
.as ol{list-style:none;margin:0;padding:0}
.as li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;padding:6px 16px;min-height:48px;border-top:1px solid var(--line)}
.as li:first-child{border-top:0}
.as .r{display:inline-flex;align-items:center;min-height:40px;font-weight:600;color:var(--text)}
.as .w{color:var(--text)}.as .h{color:var(--muted);font-size:var(--fs-small)}
.as .o{margin-left:auto;color:var(--muted);font-size:var(--fs-small)}
.as .all{display:flex;align-items:center;min-height:44px;padding:0 16px;border-top:1px solid var(--line);font-size:var(--fs-small);font-weight:600}
/* switch row (4.8) */
.swr{display:flex;gap:var(--sp-4);align-items:flex-start;justify-content:space-between;padding:var(--sp-4) 0;border-top:1px solid var(--line)}
.swr:first-child{border-top:0}
.swr-t{min-width:0;flex:1}
.swr h3{margin:0 0 2px;font-size:var(--fs-h2);font-weight:600}
.swr-does{margin:0 0 8px}
.swr-m{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:0 0 6px;font-size:var(--fs-small)}
.swr-m>div{display:contents}.swr-m dt{font-weight:600}.swr-m dd{margin:0;color:var(--muted)}
.swr-who{margin:0;font-size:var(--fs-small);color:var(--muted)}
.swr-c{position:relative;flex:none}
.swr-c>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 4px;cursor:pointer;border-radius:8px}
.swr-c>summary::-webkit-details-marker{display:none}
.swt{position:relative;display:inline-block;width:40px;height:24px;border-radius:999px;border:1px solid var(--line-strong);background:var(--panel2);flex:none}
.swt>span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--muted)}
.swt.on{background:var(--accent);border-color:var(--accent)}.swt.on>span{left:19px;background:var(--on)}
.swl{font-weight:600;font-size:var(--fs-small);min-width:2em}
.swr-pop{position:absolute;right:0;z-index:20;margin-top:6px;width:min(340px,86vw);padding:12px;background:var(--panel);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:var(--pop)}
.swr-pop p{margin:0 0 10px;font-size:13.5px}.swr-pop .swr-keep{margin:10px 0 0;font-size:var(--fs-small);color:var(--muted)}
.swr-c.locked{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 8px;max-width:220px;padding:8px 4px 0}
.swr-lock{margin:0;width:100%;text-align:right;font-size:var(--fs-small);color:var(--muted)}
.swl-list{padding-top:0;padding-bottom:0}
/* states (4.9): still skeletons in the shape of what is coming (3.6: nothing loops), and the sentence states */
.sk i{display:block;background:var(--line);border-radius:6px}
.tile.sk .l{width:45%;height:12px}.tile.sk .v{width:60%;height:28px;margin:10px 0 8px}.tile.sk .c{width:75%;height:12px}
.sk-chart .t{width:50%;height:16px}.sk-chart .c{width:70%;height:12px;margin:8px 0 16px}.sk-chart .p{height:180px;border-radius:8px}
.sk-table{padding:12px 16px}.sk-table .h{height:14px;width:100%;margin-bottom:14px}.sk-table .r{height:12px;margin:12px 0;width:92%}.sk-table .r:nth-child(odd){width:84%}
.vs{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;margin-bottom:var(--sp-4);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}
.vs .si{width:20px;height:20px;flex:none;margin-top:1px}
.vs p{margin:0}.vs .vs-since{color:var(--muted)}
.vs.quiet .si{color:var(--muted)}.vs.ok{background:var(--okbg)}.vs.ok .si{color:var(--ok)}
.vs.warn{background:var(--warnbg)}.vs.warn .si{color:var(--warn)}.vs.bad{background:var(--badbg)}.vs.bad .si{color:var(--bad)}
/* table additions (4.6): the tint always with its pill, in-cell bar and sparkline */
tr.tint-warn td{background:var(--rowwarn)}tr.tint-bad td{background:var(--rowbad)}
.cbar{display:inline-flex;align-items:center;gap:8px;justify-content:flex-end;width:100%}
.cbar-v{font-variant-numeric:tabular-nums}
.cbar-t{display:inline-block;width:72px;height:8px;border-radius:4px;background:var(--line2);overflow:hidden;flex:none}
.cbar-t>span{display:block;height:100%;border-radius:4px}
.cspark{display:inline-flex;align-items:center;gap:6px}.cspark .spark{margin-left:0}
/* chart card shell (4.5) */
.cc{padding:16px}
.cc-t{margin:0;font-size:var(--fs-chart);font-weight:600;line-height:1.35}
.cc-s{margin:2px 0 12px;font-size:var(--fs-small);color:var(--muted)}
.cc-p{min-width:0}
.cc-src{margin:8px 0 0;font-size:var(--fs-small);color:var(--muted)}
.cc-f{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:flex-start;margin-top:4px}
.cc-f details.disc{flex:1 1 100%}.cc-f details.disc>summary{min-height:40px}
.cc-csv{display:inline-flex;align-items:center;min-height:40px;font-size:var(--fs-small);font-weight:600}
.cc-f details.disc>.db .tw{margin:6px 0}.cc .tw table{min-width:0}
@media(max-width:820px){
  .swr{flex-direction:column}.swr-c{align-self:flex-start}.swr-pop{left:0;right:auto}
  .swr-c.locked{max-width:none;justify-content:flex-start}.swr-lock{text-align:left}
  .as .o{margin-left:0}
  .tw.cards.sticky-head{max-height:none !important}   /* cards have no header to pin, and a capped height spilled them over the next section */
  .tw.cards tr.tint-warn{background:var(--rowwarn)}.tw.cards tr.tint-bad{background:var(--rowbad)}
  .cbar{justify-content:flex-end;width:auto}
}
@media print{.sk,.swr-pop{display:none}}
/* charts (6), the filter bar (4.1) and live blocks: redesign phase 1, step 4. A chart's colours come from the tokens
   through charts.js, which redraws it when the theme switches. */
.ec{width:100%;min-width:0}
.ec-spark{display:inline-block;width:96px;vertical-align:middle}
.ec-off{margin:0;padding:12px;border:1px dashed var(--line);border-radius:8px;font-size:var(--fs-small);color:var(--muted)}
.fb{margin:0 0 16px}
.fb-row{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end}
.fb-f{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-small);color:var(--muted);min-width:0}
.fb-f>span{font-weight:550}
.fb-f select,.fb-f input{min-height:40px;color:var(--text);font-size:var(--fs-body)}
.fb-apply{min-height:40px}
.fb .fb-chips{margin:10px 0 0}
.fb .chip .x{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}
.fb .chips-clear{display:inline-flex;align-items:center;min-height:32px}
.fb-range{margin:8px 0 0;font-size:var(--fs-small);color:var(--muted)}
.fb-region:has(.fb.htmx-request)>:not(.fb),.live.htmx-request{opacity:.6;transition:opacity 150ms}
@media(max-width:820px){.fb-f{flex:1 1 calc(50% - 6px)}.fb-f select,.fb-f input{width:100%}}
@media(prefers-reduced-motion:reduce){.fb-region:has(.fb.htmx-request)>:not(.fb),.live.htmx-request{transition:none}}
@media print{.fb-row,.fb-chips{display:none}}
.dg-charts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));gap:16px}

/* ---------- the breadcrumb and title, and the Run shape (redesign phase 1, step 5, 24 Oct; style guide 2.1, 2.3, 2.4, 4.9) ---------- */
.eg-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;margin:0 0 4px;padding:0;font-size:var(--fs-small);color:var(--muted)}
.eg-crumbs li+li::before{content:"/";margin-right:6px;color:var(--line-strong)}
.eg-crumbs a{display:inline-block;padding:10px 0;margin:-10px 0;color:var(--muted)}
.eg-crumbs a:hover{color:var(--text);text-decoration:underline}
.eg-crumbs [aria-current="page"]{color:var(--text);font-weight:600}
.pt h1{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.pt h1 .sw{font-size:var(--fs-small);letter-spacing:0}
.dg-crumbs{display:grid;gap:var(--sp-5);padding:var(--sp-4)}.dg-crumbs .tpl-head{margin:0}
.rc{padding:12px 16px;margin-bottom:var(--sp-5)}
html:root .rc h2{margin:0 0 10px}
.rc-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(124px,1fr));gap:8px}
.rc-c{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:60px;height:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);text-decoration:none}
a.rc-c:hover{border-color:var(--line-strong);text-decoration:none}
.rc-c .d{font-size:var(--fs-small);font-weight:600}
.rc-c.warn{background:var(--warnbg)}.rc-c.bad{background:var(--badbg)}
.rc-c.none{border-style:dashed;color:var(--muted)}
.rc-c.sel{border:2px solid var(--accent);padding:7px 9px}
.rc-n{margin:10px 0 0;font-size:var(--fs-small);color:var(--muted)}
.run-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 var(--sp-3)}
html:root .run-h{font-size:var(--fs-chart)}
.stp{list-style:none;margin:0;padding:0}
.stp-s{display:flex;gap:12px;position:relative;padding:0 0 18px}
.stp-s:last-child{padding-bottom:0}
.stp-s:not(:last-child)::before{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:var(--line)}
.stp-n{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--line-strong);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:var(--panel);color:var(--muted)}
.stp-s.bad .stp-n{border-color:var(--bad);color:var(--bad)}.stp-s.warn .stp-n{border-color:var(--warn);color:var(--warn)}
.stp-s.cur .stp-n{border-color:var(--accent);background:var(--accent);color:var(--on)}
.stp-b{min-width:0;flex:1;padding-top:3px}
.stp-h{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
html:root .stp-h h3{margin:0;font-size:var(--fs-body);font-weight:600}
.stp-cur{font-size:12px;font-weight:600;padding:1px 8px;border-radius:999px;border:1px solid var(--accent);color:var(--text)}
.stp-t{margin:2px 0 0;font-size:var(--fs-small);color:var(--muted)}
.stp-o{margin:2px 0 0;overflow-wrap:anywhere}
.stp-o a{display:inline-flex;align-items:center;min-height:40px}
.run-f,.run-k{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.run-f a{display:inline-flex;align-items:center;min-height:40px;overflow-wrap:anywhere}
.run-k li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;padding:4px 0}
.run-k .d{flex-basis:100%;font-size:var(--fs-small);color:var(--muted)}
.run-sw{padding:12px 16px;margin-top:var(--sp-6)}
.tpl-run .tpl-cols .tpl-side{order:0}      /* a run's steps lead on a phone, unlike a Detail's summary */
html:root .run-sw h2{margin:0 0 4px}
.dg-navs{display:grid;grid-template-columns:248px minmax(0,390px);gap:var(--sp-5);align-items:start;margin-bottom:var(--sp-5)}
.dg-side{padding:0;width:248px}
html:root main .eg2-nav a{text-decoration:none}
.dg-ai{display:inline-flex;align-items:center;gap:8px}.dg-ai svg{width:16px;height:16px;flex:none;color:var(--muted)}
.dg-phone{max-width:390px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--bg);padding-top:120px}
.dg-runpage{border:1px dashed var(--line-strong);border-radius:var(--radius);padding:var(--sp-4);margin-bottom:var(--sp-6)}
@media (max-width:640px){.dg-navs{grid-template-columns:minmax(0,1fr)}.dg-side{width:auto}.dg-runpage{padding:var(--sp-3)}}

/* ---------- look C (redesign phase 2, step 1, 24 Oct; style guide 3.1, 3.4, 4.3, 4.7, 6.6). Figma W4Sl8QS010Zf4vrZoQWaqM.
   Written `html:root ...` like the design system 2 rules above, so module CSS cascades as it did. ---------- */
/* surfaces: cards on --panel with a 1 px --line border, 12 px radius, no shadow in dark (--shadow is none there) */
html:root .card,html:root .pane,html:root .tile,html:root .chart,html:root .tw,html:root details.sec,html:root div.empty,
html:root .vs,html:root .help,html:root .flash,html:root .dd .menu,html:root .pop[popover]{border-radius:var(--radius)}
html:root .tw.cards tr{border-radius:var(--radius)}
html:root th{background:var(--panel2);color:var(--muted)}
/* controls: 8 px radius, a 3:1 border; a segmented toggle is a --panel2 track with the selected segment on --panel */
html:root .btn,html:root button,html:root select,html:root input[type=text],html:root input[type=search],
html:root input[type=password],html:root input[type=email],html:root input[type=date],html:root input[type=number],
html:root textarea{border-radius:var(--radius-control)}
html:root select,html:root input[type=text],html:root input[type=search],html:root input[type=password],
html:root input[type=email],html:root input[type=date],html:root input[type=number],html:root textarea{border-color:var(--line-strong)}
html:root .seg{gap:2px;padding:2px;background:var(--panel2);border:1px solid var(--line-strong);border-radius:var(--radius-control)}
html:root .seg a,html:root .seg button,html:root .seg span{border:0;border-radius:6px;min-height:30px;background:transparent;color:var(--muted)}
html:root .seg a:hover,html:root .seg button:hover{background:transparent;color:var(--text)}
html:root .seg a.on,html:root .seg button.on,html:root .seg .on,html:root .seg .on:hover{background:var(--panel);color:var(--text);box-shadow:var(--shadow)}
/* pills, status words and trend chips: the tint at full strength with its text colour, never a colour at low opacity */
html:root .pill{font-weight:600}
html:root .delta.good,html:root .delta.worse{color:var(--muted);font-weight:500}
.delta .chg{display:inline-block;padding:1px 7px;border-radius:999px;font-weight:600;margin-right:2px}
.delta.good .chg{background:var(--okbg);color:var(--ok)}.delta.worse .chg{background:var(--badbg);color:var(--bad)}
/* alert rows: the signal at 12% over the card (--rowgood, --rowwarn, --rowbad), with the pill in front */
tr.row-good td,tr.tint-good td{background:var(--rowgood)}
html:root .tw.cards tr.tint-good{background:var(--rowgood)}
.as li:has(>.sw.pill.bad){background:var(--rowbad)}.as li:has(>.sw.pill.warn){background:var(--rowwarn)}   /* by its word: the markup stays <li> */
/* the tile's sparkline (6.6): 1.5 px, no fill, the last point a 5 px dot; a tile given one with too few points keeps
   its place */
html:root .tile .spark{height:32px;margin-top:8px}
.tile .spark-none{display:block;height:32px;margin-top:8px}
/* the sidebar: Today, then the six areas; only the current area open; the selected item on --panel2; the logo --brand */
html:root .eg2-side{background:var(--bg)}   /* as drawn: the sidebar is the page, the cards sit on it */
html:root .eg2-brand{color:var(--brand)}
html:root .eg2-nav a,.eg2-nav .eg2-ah{font-size:var(--fs-body)}
html:root .eg2-nav a:hover{background:var(--panel2)}
html:root .eg2-nav a[aria-current="page"]{background:var(--panel2);font-weight:400;box-shadow:none}
.eg2-area{margin:0}
.eg2-ah{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;padding:7px 10px;border-radius:6px;color:var(--text)}
.eg2-ah:hover{background:var(--panel2)}
.eg2-ah>svg{width:16px;height:16px;flex:none;color:var(--muted)}
html:root .eg2-nav .eg2-ah h2{flex:1;margin:0;font-size:var(--fs-body);font-weight:500;letter-spacing:0;text-transform:none;color:var(--text)}
html:root .eg2-nav .eg2-ah h2.cur::before{display:none}
.eg2-ah .ct{margin-left:auto}.eg2-area.open .eg2-ah .ct{display:none}
html:root .eg2-nav .eg2-ah button.chev{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;min-height:0;padding:0;border:0;border-radius:4px;background:none;color:var(--muted);cursor:pointer;transition:transform 150ms}
.eg2-ah .chev::after{content:"";position:absolute;inset:0;border-radius:6px}   /* the whole row opens it */
.eg2-ah .chev:focus-visible{outline:none}.eg2-ah:has(.chev:focus-visible){outline:2px solid var(--focus);outline-offset:-2px}
.eg2-ah .chev svg{width:14px;height:14px}
html:root .eg2-nav .eg2-area.open .eg2-ah button.chev{transform:rotate(90deg)}
.eg2-area:not(.open)>ul{display:none}
.eg2-area>ul{padding:2px 0 6px 18px}
html.eg2-rail .eg2-side .eg2-ah{justify-content:center;padding:10px 0}
html.eg2-rail .eg2-side .eg2-ah h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);margin:0;background:none}
html.eg2-rail .eg2-side .eg2-ah .chev svg{display:none}
html.eg2-rail .eg2-side .eg2-ah button.chev{position:static;width:0}
html.eg2-rail .eg2-side .eg2-area>ul{padding-left:0}
@media (prefers-reduced-motion:reduce){html:root .eg2-nav .eg2-ah button.chev{transition:none}}
/* the gallery's look C samples */
.dg-pills{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
