/* Steering page, in the LexMask charter « Feuille » (docs/design/DESIGN.md,
   visual redesign): white sheets, thin rules, light weights, the brand green
   for the selection only, faint dots of the public site. No external
   resource: the charter's fonts are served by the page, charts are inline SVG. */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-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: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-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; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-mono-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: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/atkinson-hyperlegible-mono-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; }

:root {
  color-scheme: light;
  --spine: #f6f7f6; --spine-text: #161a18; --spine-muted: #626966; --spine-hover: #eceeed;
  --ground: #ffffff; --sheet: #ffffff; --sheet-line: #e3e6e4; --rule: #edefee; --panel: #f6f7f6; --row-hover: #f4f6f5;
  --highlight: #f1f3f2; --dot: #d3d8d5; --logo: #1e3d35;
  --ink: #161a18; --ink-2: #4a514e; --ink-3: #626966;
  --primary: #1f5a4c; --primary-tint: #ecf3ef; --on-primary: #ffffff;
  --focus: #c27a12; --button-line: #d9dddb; --button-line-hover: #b9bfbc;
  --valid: #1d6a42; --valid-tint: #e2f3e8;
  --review: #8a4b00; --review-tint: #fdf0d9; --review-line: #f2d9ae;
  --closed: #3a4f6b; --closed-tint: #e8edf4;
  --destroy: #9a2c1c; --destroy-tint: #fbe6e1; --danger: #ad3a2a; --danger-tint: #fdf0ee; --danger-line: #f3cfc8;
  --single: #6a4a12; --single-tint: #f5f0e4;
  --idle: #626966; --idle-tint: #f1f3f2;
  --shadow-sheet: 0 1px 2px rgb(16 22 20 / .04);
  --shadow-float: 0 12px 32px -8px rgb(16 22 20 / .18), 0 2px 6px rgb(16 22 20 / .06);
}
/* Dark mode: the tokens of the application (D112). Follows the system unless
   the switch at the bottom of the spine says light or dark. */
@media (prefers-color-scheme: dark) {
  :root:not(:has(#th-light:checked)) {
    color-scheme: dark;
    --spine: #0b0c0c; --spine-text: #e8eaea; --spine-muted: #969999; --spine-hover: #1b1c1c;
    --ground: #111212; --sheet: #161717; --sheet-line: #2a2b2b; --rule: #222323; --panel: #1c1d1d; --row-hover: #1f2020;
    --highlight: #262828; --dot: #2c2e2e; --logo: #edf1ee;
    --ink: #ededed; --ink-2: #b4b6b6; --ink-3: #969999;
    --primary: #7cc8ae; --primary-tint: #1a2e27; --on-primary: #0d1a15;
    --focus: #e6a64a; --button-line: #333535; --button-line-hover: #4a4d4c;
    --valid: #7fd09f; --valid-tint: #1c3a2a; --review: #f2b866; --review-tint: #3b2c14; --review-line: #6e5021;
    --closed: #b3c2d8; --closed-tint: #26303f; --destroy: #f39a87; --destroy-tint: #3f211b;
    --danger: #f28b7e; --danger-tint: #3b1e1a; --danger-line: #723329;
    --single: #e3c182; --single-tint: #2f2817; --idle: #969999; --idle-tint: #232424;
    --shadow-sheet: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-float: 0 16px 40px -8px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .35);
  }
}
:root:has(#th-dark:checked) {
  color-scheme: dark;
  --spine: #0b0c0c; --spine-text: #e8eaea; --spine-muted: #969999; --spine-hover: #1b1c1c;
  --ground: #111212; --sheet: #161717; --sheet-line: #2a2b2b; --rule: #222323; --panel: #1c1d1d; --row-hover: #1f2020;
  --highlight: #262828; --dot: #2c2e2e; --logo: #edf1ee;
  --ink: #ededed; --ink-2: #b4b6b6; --ink-3: #969999;
  --primary: #7cc8ae; --primary-tint: #1a2e27; --on-primary: #0d1a15;
  --focus: #e6a64a; --button-line: #333535; --button-line-hover: #4a4d4c;
  --valid: #7fd09f; --valid-tint: #1c3a2a; --review: #f2b866; --review-tint: #3b2c14; --review-line: #6e5021;
  --closed: #b3c2d8; --closed-tint: #26303f; --destroy: #f39a87; --destroy-tint: #3f211b;
  --danger: #f28b7e; --danger-tint: #3b1e1a; --danger-line: #723329;
  --single: #e3c182; --single-tint: #2f2817; --idle: #969999; --idle-tint: #232424;
  --shadow-sheet: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-float: 0 16px 40px -8px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .35);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 14px/1.43 "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, .mono { font: 500 .9em/1.4 "Atkinson Hyperlegible Mono", ui-monospace, monospace; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
* { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.logo path { fill: var(--logo); } /* the brand kit: green on light, negative on dark */

/* Frame: the spine on the left, the page on the right */
.frame { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.spine { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--spine); color: var(--spine-text);
  border-right: 1px solid var(--sheet-line); display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; }
.spine-logo { display: block; padding: 0 8px; }
.logo { display: block; height: 24px; width: auto; }
.spine-name { margin: 6px 0 14px 8px; color: var(--spine-muted); font-size: 12px; }
.nav-group { display: grid; gap: 2px; margin-bottom: 14px; }
.nav-group p { margin: 0 0 4px 8px; color: var(--spine-muted); font-size: 12px; font-weight: 500; }
.nav-group a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px;
  padding: 6px 8px; color: var(--spine-text); border-radius: 6px; font-size: 13px; line-height: 18px; }
.nav-group a:hover { background: var(--spine-hover); text-decoration: none; }
.nav-group a[aria-current="page"] { background: var(--primary-tint); color: var(--primary); font-weight: 500; }
.nav-group small { font-size: 11px; font-weight: 500; color: var(--spine-muted); border: 1px dashed currentColor; border-radius: 999px; padding: 0 6px; }
.nav-group a[aria-current="page"] small { color: var(--primary); }
.spine-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--sheet-line); display: grid; gap: 10px; }
.spine-foot p { margin: 0; font-size: 12px; line-height: 16px; color: var(--spine-muted); }
.page { position: relative; min-width: 0; padding: 32px 40px 24px; }
.page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 240px; pointer-events: none;
  background-image: radial-gradient(circle at center, var(--dot) 1px, transparent 1.4px); background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent); }
.page > * { position: relative; }
main { max-width: 1120px; }
.page-head { margin-bottom: 8px; }
h1 { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 6px; }
h2 { font-size: 16px; line-height: 22px; font-weight: 500; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 14px; line-height: 20px; font-weight: 500; margin: 0; }
section { padding-top: 32px; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.subnav a { padding: 4px 10px; border: 1px solid var(--button-line); border-radius: 6px; background: var(--sheet); color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sheet); }
.subnav a:hover { background: var(--row-hover); border-color: var(--button-line-hover); text-decoration: none; }
.lead { color: var(--ink-2); margin: 0 0 12px; }
.meta { color: var(--ink-3); font-size: 12px; line-height: 16px; margin: 0; }
.count { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--panel); box-shadow: inset 0 0 0 1px var(--sheet-line); border-radius: 999px; padding: 0 7px; }
.empty { color: var(--ink-3); list-style: none; padding: 8px 0; }
.masked { color: var(--ink-3); font-style: italic; }
.foot { max-width: 1120px; color: var(--ink-3); font-size: 12px; border-top: 1px solid var(--rule); margin-top: 40px; padding-top: 14px; }

/* Sheets */
.card, .sheet { background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow-sheet); }
.card h3 { margin-bottom: 10px; }
.card:hover, .sheet:hover { border-color: var(--button-line); }

/* Overview */
.overview { display: grid; gap: 14px; grid-template-columns: 1.25fr 1fr 1fr; margin-top: 12px; }
.overview .numbers, .overview .signups { grid-column: 1 / -1; }
.big { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.big b { font-size: 30px; line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.big span, .figure { color: var(--ink-2); }
.figure { margin: 0 0 12px; }
.figure b { color: var(--ink); font-size: 22px; font-weight: 500; }
.bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--rule); margin: 0 0 12px; overflow: hidden; }
.f-done { fill: var(--valid); background: var(--valid); } .f-doing { fill: var(--closed); background: var(--closed); }
.f-review { fill: var(--review); background: var(--review); } .f-ready { fill: var(--primary); background: var(--primary); }
.f-todo { fill: var(--button-line); background: var(--button-line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.legend b { color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.numbers dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 10px; border: 1px solid var(--rule); border-radius: 8px; }
.numbers dl div { padding: 8px 12px; } .numbers dl div + div { border-left: 1px solid var(--rule); }
.numbers dt { color: var(--ink-3); font-size: 12px; }
.numbers dd { margin: 0; font: 500 18px/1.3 "Atkinson Hyperlegible Mono", ui-monospace, monospace; }

/* Status: word and icon, never colour alone */
.badge, .st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); }
.badge::before { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.badge.done, .st-valid { color: var(--valid); background: var(--valid-tint); }
.badge.done::before { border-radius: 1px; background: currentColor; transform: rotate(45deg); width: 6px; height: 6px; }
.badge.doing, .st-closed { color: var(--closed); background: var(--closed-tint); }
.badge.doing::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.badge.review, .st-review { color: var(--review); background: var(--review-tint); }
.badge.ready { color: var(--primary); background: var(--primary-tint); }
.badge.ready::before { background: currentColor; }
.badge.todo, .st-idle { color: var(--idle); background: var(--idle-tint); }
.badge.todo::before { border-style: dashed; }
.st-destroy { color: var(--destroy); background: var(--destroy-tint); }
.st svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.done { color: var(--valid); } .doing { color: var(--closed); } .review { color: var(--review); } .ready { color: var(--primary); } .todo { color: var(--idle); }
.tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.tag.c-a { color: var(--on-primary); background: var(--primary); }
.tag.c-b { color: var(--single); background: var(--single-tint); box-shadow: inset 0 0 0 1px var(--single); }

/* Waiting list */
.waitlist { list-style: none; padding: 0; margin: 0; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; box-shadow: var(--shadow-sheet); }
.todo-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 18px; }
.todo-item:hover { background: var(--row-hover); }
.todo-item + .todo-item { border-top: 1px solid var(--rule); }
.kind { flex: none; width: 112px; font-size: 12px; font-weight: 500; padding-top: 1px; }
.k-deadline { color: var(--danger); } .k-review { color: var(--review); } .k-pr { color: var(--primary); } .k-draft { color: var(--ink-3); }
.what { min-width: 0; flex: 1; }
.what .title { margin: 0 0 2px; font-weight: 500; }
.what details { margin-top: 6px; }
.what ol { margin: 8px 0 0; padding-left: 1.3em; color: var(--ink-2); }
.what li { margin-bottom: 6px; }

/* Toolbar of the roadmap */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; padding: 0 0 12px; font-size: 13px;
  border-bottom: 1px solid var(--rule); }
.toolbar input[type="checkbox"], .toolbar input[type="radio"], .tabs input, .theme input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sep { width: 1px; height: 20px; background: var(--sheet-line); }
.switch, .chip, .seg label, .tabs label { cursor: pointer; user-select: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.switch::before { content: ""; width: 30px; height: 18px; border-radius: 999px; border: 1px solid var(--button-line);
  background: radial-gradient(circle at 8px 50%, var(--ink-3) 5px, var(--sheet) 5.5px); }
#f-hide-done:checked + .switch::before { border-color: var(--primary); background: radial-gradient(circle at 20px 50%, var(--sheet) 5px, var(--primary) 5.5px); }
.chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.chip { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--button-line); background: var(--sheet); color: var(--ink-3); font-weight: 500; text-decoration: line-through; }
input:checked + .chip { color: var(--primary); text-decoration: none; border-color: transparent; background: var(--primary-tint); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--highlight); font-size: 13px; }
.seg label { padding: 2px 10px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.seg input:checked + label { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(16 22 20 / .08), inset 0 0 0 1px var(--sheet-line); }
.seg.theme { align-self: start; font-size: 12px; }
input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.search { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.search[hidden] { display: none; }
#q { width: 230px; max-width: 52vw; height: 32px; padding: 0 10px; border: 1px solid var(--button-line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; box-shadow: var(--shadow-sheet); }
#q:hover { border-color: var(--button-line-hover); }
#q:focus-visible { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 28%, transparent); }
#q-count { color: var(--ink-3); font-size: 12px; min-width: 5ch; }

/* Roadmap */
.phases { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; box-shadow: var(--shadow-sheet); }
.phase { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 18px; }
.phase + .phase { border-top: 1px solid var(--rule); }
.phase .num { font: 500 13px/22px "Atkinson Hyperlegible Mono", ui-monospace, monospace; color: var(--ink-2); }
.phase .title { margin: 0 0 6px; font-weight: 500; }
.phase.s-done .title { color: var(--ink-2); font-weight: 400; }
.phase.s-done .body { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.phase.s-done .title { margin: 0; flex: 1 1 320px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase.s-done details { margin: 0; flex-basis: 100%; }
.phase.s-done details:not([open]) { flex-basis: auto; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 12px; color: var(--ink-3); }
details > summary { cursor: pointer; color: var(--ink-3); font-size: 12px; list-style: none; }
details > summary:hover { color: var(--ink); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform 150ms ease; }
details[open] > summary::before { content: "▾"; }
.phase details { margin-top: 6px; }
.detail { color: var(--ink-2); font-size: 13px; margin: 6px 0 0; overflow-wrap: anywhere; }

/* Index: tabs on a muted track (like shadcn's Tabs), the panel below */
.tabs { display: inline-flex; gap: 2px; margin: 10px 0 10px; padding: 3px; border-radius: 8px; background: var(--highlight); }
.tabs label { padding: 4px 12px; color: var(--ink-2); font-size: 13px; font-weight: 500; border-radius: 6px; }
.tabs label:hover { color: var(--ink); }
.tabs input:checked + label { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(16 22 20 / .08), inset 0 0 0 1px var(--sheet-line); }
.panel { display: none; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow-sheet); }
body:has(#t-d:checked) #p-d, body:has(#t-adr:checked) #p-adr, body:has(#t-m:checked) #p-m, body.searching .panel { display: block; }
.panel .card { box-shadow: none; }
.group { border-top: 1px solid var(--rule); }
.group:first-of-type { border-top: 0; }
.group > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; color: var(--ink); font-size: 14px; }
.group > summary .meta { margin-left: auto; }
.group .rows { padding: 0 0 10px 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; line-height: 18px; align-items: baseline; }
.rows > .row:first-child { border-top: 0; }
.row .ref { font: 500 12px/1.5 "Atkinson Hyperlegible Mono", ui-monospace, monospace; color: var(--primary); }
.row .meta { text-align: right; }
.row.past { opacity: .6; }
ul.rows.card { padding: 6px 18px; }

/* Activity */
.activity { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.activity .wide { grid-column: 1 / -1; }
.activity .card h3 { margin-bottom: 6px; }
.activity .row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.activity .card:nth-child(1) .row .meta { grid-column: 2; text-align: left; }
.activity .card:nth-child(2) .row { grid-template-columns: minmax(0, 1fr) auto; }

/* Mock-up pages */
.notice { margin: 8px 0 18px; padding: 12px 16px; background: var(--review-tint); color: var(--ink); border: 1px solid var(--review-line); border-radius: 10px; font-size: 13px; }
.notice p { margin: 0; } .notice p + p { margin-top: 6px; color: var(--ink-2); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; box-shadow: var(--shadow-sheet); }
.figures.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.figures div { padding: 12px 16px; } .figures div + div { border-left: 1px solid var(--rule); }
.figures dt { color: var(--ink-3); font-size: 12px; font-weight: 500; }
.figures dd { margin: 2px 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sheet { min-width: 0; }
.sheet.wide { grid-column: 1 / -1; }
.sheet > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.fictive { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--review); border: 1px dashed currentColor; border-radius: 999px; padding: 0 7px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); height: 36px; padding: 0 10px 0 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--row-hover); }
.num { text-align: right; white-space: nowrap; }
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.chart line { stroke: var(--sheet-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart rect { fill: var(--primary); }
.chart polyline { fill: none; stroke: var(--primary); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { fill: var(--primary-tint); }
.chart figcaption { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-top: 6px; }
.gauge { display: block; width: 100%; min-width: 80px; height: 6px; border-radius: 3px; overflow: hidden; }
.gauge .track { fill: var(--rule); } .gauge rect + rect { fill: var(--primary); }
.gauge.near rect + rect { fill: var(--focus); } .gauge.over rect + rect { fill: var(--danger); }
.weeks { display: grid; gap: 8px; }
.week { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--rule); }
.week:first-child { border-top: 0; }
.week .meta { width: 150px; }
.week span { font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; }
.chip-blog { color: var(--primary); background: var(--primary-tint); }
.chip-li { color: var(--closed); background: var(--closed-tint); }
.chip-yt { color: var(--destroy); background: var(--destroy-tint); }
.chip-mail { color: var(--single); background: var(--single-tint); }
.checks { margin: 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 6px; }
.funnel { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.step p { margin: 0; color: var(--ink-2); } .step .gauge { grid-column: 1 / -1; }

/* Announcements (D287): one sheet per announcement, its preview in a
   sandboxed frame at the width of a mail client, or of a phone. */
.annonces { display: grid; gap: 14px; }
.annonce { min-width: 0; }
.annonce-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.annonce-head h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 10px; border: 1px solid var(--rule); border-radius: 8px; }
.facts div { padding: 8px 12px; min-width: 0; } .facts div + div { border-left: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); font-size: 12px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.annonce > .meta { margin-bottom: 4px; }
.preview { margin-top: 10px; }
.preview > summary { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 4px 0; }
.preview-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; }
.widths input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mail-box { overflow-x: auto; padding: 16px; background: var(--panel); border: 1px solid var(--sheet-line); border-radius: 8px; }
.mail-frame { display: block; width: 600px; height: 78vh; min-height: 480px; max-height: 1100px; margin: 0 auto;
  border: 1px solid var(--sheet-line); border-radius: 6px; background: #fff; }
.annonce:has(.w-375:checked) .mail-frame { width: 375px; }
.preview-note { margin: 10px 0 0; padding: 10px 14px; font-size: 13px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
.preview-note.refused { color: var(--ink); background: var(--danger-tint); border-color: var(--danger-line); }

/* Filters (CSS only: the toolbar check boxes drive what is shown) */
body:has(#f-hide-done:checked) .f.s-done,
body:has(#f-st-doing:not(:checked)) .f.s-doing,
body:has(#f-st-review:not(:checked)) .f.s-review,
body:has(#f-st-ready:not(:checked)) .f.s-ready,
body:has(#f-st-todo:not(:checked)) .f.s-todo,
body:has(#f-c-a:checked) .f:not(.c-a),
body:has(#f-c-b:checked) .f:not(.c-b),
.no-match { display: none !important; }

@media (max-width: 1100px) {
  .overview { grid-template-columns: 1fr 1fr; }
  .overview .global { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; }
  .spine { position: static; height: auto; padding: 12px 16px 10px; border-right: 0; border-bottom: 1px solid var(--sheet-line); }
  .spine nav { display: flex; gap: 14px; overflow-x: auto; }
  .nav-group { display: flex; align-items: center; margin: 0; gap: 2px; }
  .nav-group p { display: none; }
  .nav-group a { border-radius: 6px; white-space: nowrap; min-height: 32px; }
  .nav-group a[aria-current="page"] { border-radius: 6px; }
  .spine-name { display: none; }
  .spine-foot { flex-direction: row; display: flex; align-items: center; padding: 8px 0 0; border-top: 0; }
  .spine-foot p { display: none; }
  .page { padding: 20px 16px; }
  .page::before { height: 160px; }
  .overview, .activity, .sheets { grid-template-columns: 1fr; }
  .figures, .numbers dl, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures div:nth-child(3), .numbers dl div:nth-child(3), .facts div:nth-child(3) { border-left: 0; }
  .figures div:nth-child(n+3), .numbers dl div:nth-child(n+3), .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .mail-box { padding: 10px; }
}
@media (max-width: 560px) {
  .todo-item { flex-direction: column; gap: 4px; }
  .kind { width: auto; }
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row .meta { grid-column: 2; text-align: left; }
  .search { margin-left: 0; width: 100%; }
  #q { flex: 1; max-width: none; }
  .sep { display: none; }
  .phase { grid-template-columns: 36px minmax(0, 1fr); padding: 10px 14px; }
  .phase.s-done .title { white-space: normal; }
  .week .meta { width: 100%; }
}
/* Short pages of the function: an update in progress, a refusal */
main.waiting { max-width: 28rem; margin: 18vh auto 0; padding: 24px 28px; background: var(--sheet); border: 1px solid var(--sheet-line); border-radius: 10px; box-shadow: var(--shadow-float); }
main.waiting progress { width: 100%; height: 6px; margin-top: 6px; accent-color: var(--primary); }
/* While the figures are updated: the page keeps its layout and its titles,
   its contents show as grey blocks until the new page replaces it. */
.runner { position: absolute; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.updating-note { margin: 0 0 14px; color: var(--ink-3); font-size: .92rem; }
body.updating main :is(p, li, td, dd, dt, figure, .big, .num, .chips, .tags, .bar, .count, progress):not(.updating-note) {
  color: transparent !important; background: var(--rule) !important; border-color: transparent !important;
  border-radius: 6px; user-select: none; animation: skeleton 1.4s ease-in-out infinite; }
body.updating main :is(p, li, td, dd, dt, figure, .big, .num, .chips, .tags, .bar, .count):not(.updating-note) * { visibility: hidden; }
body.updating main td { background-clip: content-box !important; }
body.updating main :is(input, button, label, .search, .toolbar, .tabs, .switch, .seg, a) { pointer-events: none; }
@keyframes skeleton { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } body.updating main * { animation: none !important; } }
@media print {
  .spine, .toolbar { display: none; } .frame { display: block; }
  body { background: #fff; } details > * { display: block; }
}

/* Blog page and its actions (ADR 0036) */
.head { margin-bottom: 18px; }
.lede { color: var(--ink-2); font-size: 14px; line-height: 20px; margin: 0; max-width: 70ch; }
.muted { color: var(--ink-3); font-size: 13px; margin: 4px 0; }
.crumbs { font-size: 13px; margin: 0 0 6px; }
section + section { margin-top: 22px; }
section > h2 { margin-bottom: 8px; }
.row.action-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.actions { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
form.inline { display: inline; margin: 0; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form label small { font-weight: 400; color: var(--ink-3); }
.form input, .form textarea, .form select { width: 100%; padding: 8px 10px; border: 1px solid var(--button-line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-weight: 400; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible, .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.form textarea.editor { font: 13px/1.55 "Atkinson Hyperlegible Mono", ui-monospace, monospace; min-height: 420px; resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.btn { align-self: flex-start; padding: 6px 14px; border: 1px solid var(--button-line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-sheet); }
.btn:hover { border-color: var(--button-line-hover); }
.btn-primary { background: var(--primary); border-color: transparent; color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.publish { margin-top: 14px; }
.notice-error { background: var(--panel); border-color: var(--focus); }
