/* The contributor portal's one stylesheet. Every colour is a named one below: PortalContrastTests reads them and
   holds each pairing to WCAG 2.1 AA, in the light theme and in the dark one. The content security policy allows no
   inline style, so everything is here.

   The rail, the dashboard's opening band, a code block and a pointer's label are dark in both themes (night, deep,
   onnight, nightline, brand), so those five are named once. So is the stage a person sees before they sign in, which
   is the product site's: stage, onstage, stagetext, stageaccent, live, mark, onmark, and the tiles' colours. */
:root {
    --ink: #172033; --muted: #56627a; --line: #d9dee8; --paper: #ffffff; --wash: #f3f5f9;
    --accent: #1d4fd7; --accentstrong: #142a66; --onaccent: #ffffff; --ok: #1a6a39; --warn: #8a5300; --bad: #a3261d; --focus: #172033; --field: #6f7b8c;
    --accenttint: #e8eefc; --oktint: #e6f4ec; --warntint: #fdf1dc; --badtint: #fbe9e7; --nonetint: #edf0f5;
    --night: #0a0f1f; --deep: #142a66; --onnight: #c9d4ec; --nightline: #2a3a6b; --brand: #1d4fd7;
    --stage: #070b1a; --onstage: #f4f6fc; --stagetext: #a9b4cf; --stageaccent: #5b8cff; --live: #34d399; --mark: #ffd84a; --onmark: #0a0f24;
    --tileblue: #2563eb; --tileteal: #0d9488; --tealdeep: #0f766e; --tileviolet: #7c3aed; --tileindigo: #4338ca;
    --radius: .5rem; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    color-scheme: light;
}
/* The headline face of the product site, served by the portal itself (the content security policy takes a font from
   nowhere else). Only the stage before sign-in uses it. Until it has loaded, the fallback keeps the lines where they are. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2"); }
@font-face { font-family: "SpaceGrotesk-fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 98%; descent-override: 29%; line-gap-override: 0%; }
/* theme: dark, chosen by the person (shell.js writes their choice on the page) */
:root[data-theme="dark"] {
    --ink: #e6ebf5; --muted: #a3aec2; --line: #2a3550; --paper: #141c2e; --wash: #0c1220;
    --accent: #8fb0ff; --accentstrong: #b3c8ff; --onaccent: #0a0f1f; --ok: #5fd08a; --warn: #f0b44c; --bad: #ff8a80; --focus: #e6ebf5; --field: #7c89a3;
    --accenttint: #1a2a55; --oktint: #12301f; --warntint: #3a2a0c; --badtint: #3d1512; --nonetint: #1f283b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
    color-scheme: dark;
}
/* theme: dark, by the system's own setting, for who has chosen neither. The same colours as the block above:
   PortalContrastTests fails when the two differ. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    --ink: #e6ebf5; --muted: #a3aec2; --line: #2a3550; --paper: #141c2e; --wash: #0c1220;
    --accent: #8fb0ff; --accentstrong: #b3c8ff; --onaccent: #0a0f1f; --ok: #5fd08a; --warn: #f0b44c; --bad: #ff8a80; --focus: #e6ebf5; --field: #7c89a3;
    --accenttint: #1a2a55; --oktint: #12301f; --warntint: #3a2a0c; --badtint: #3d1512; --nonetint: #1f283b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
    color-scheme: dark;
    }
}
* { box-sizing: border-box; }
html { font: 15px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--wash); }
body { margin: 0; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ── The shell: a fixed dark rail beside the page ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .15s ease; }
.side { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--night), var(--deep)); color: var(--onnight); padding: 1.1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
.side nav { flex: 1; }
.side .label { white-space: nowrap; }
.rail-toggle { display: flex; align-items: center; gap: .65rem; width: 100%; margin-top: .75rem; padding: .5rem .6rem; border: 1px solid var(--nightline); border-radius: .4rem; background: none; color: var(--onnight); font: inherit; cursor: pointer; }
.rail-toggle[hidden] { display: none; }
.rail-toggle:hover { background: var(--nightline); color: #fff; }
.rail-toggle:focus-visible { outline-color: #fff; }
.brand { display: flex; align-items: center; gap: .6rem; margin: 0 .5rem 1.5rem; color: #fff; font-weight: 650; letter-spacing: .01em; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--onnight); }
.side h2 { margin: 1.25rem .6rem .35rem; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--onnight); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: .4rem; color: var(--onnight); text-decoration: none; border-left: 3px solid transparent; }
.side a:hover { background: var(--nightline); color: #fff; }
.side a.active { background: var(--nightline); color: #fff; font-weight: 600; border-left-color: #fff; }
.side a:focus-visible { outline-color: #fff; }
.page { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 1rem 1.5rem; padding: .55rem 1.75rem; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 5; }
.top::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--deep), var(--brand)); }
.top-where { display: flex; align-items: center; gap: .7rem; margin: 0; line-height: 1.2; }
.top-where small, .person small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.top-where strong { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em; }
.top-tile { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .55rem; background: var(--accenttint); color: var(--accent); }
.top-day { display: flex; align-items: center; gap: .4rem; margin: 0 0 0 auto; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--wash); font-size: .85rem; white-space: nowrap; }
.top-day .icon { width: 1rem; height: 1rem; color: var(--muted); }
.user-menu { position: relative; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.user-menu summary { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 2rem; list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover, .user-menu[open] summary { background: var(--wash); }
.user-menu summary .icon { width: 1rem; height: 1rem; color: var(--muted); transition: transform .12s ease; }
.user-menu[open] summary .icon { transform: rotate(180deg); }
.user-pop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; min-width: 16rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 28px rgba(16, 24, 40, .18); }
.user-pop .person { margin: 0; padding: .5rem .6rem .75rem; border-bottom: 1px solid var(--line); }
.user-pop .sign-out { margin: .4rem 0 0; }
.menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .6rem; border: 0; border-radius: .4rem; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--wash); }
.menu-item .icon { color: var(--muted); }
.person { display: flex; align-items: center; gap: .6rem; line-height: 1.2; }
.person strong { display: block; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--brand)); color: #fff; font-size: .8rem; font-weight: 700; flex: none; }
/* A page takes the whole width beside the rail: tables and charts use it. Running text keeps its own measure. */
main { width: 100%; padding: 1.75rem; }
/* -- Before sign-in: what the portal is, beside the page (sign in, signed out, a problem) -- */
.entry { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
/* The brand panel is the product site's own stage: near-black, with blurred glows of colour, a faint grid that fades
   out, a headline whose last words are marked in yellow, and glass cards. It is the same in both themes. */
.entry-brand { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 2rem; padding: 2.25rem 3.25rem; overflow: hidden; background: var(--stage); color: var(--stagetext); }
.entry-brand::before { content: ""; position: absolute; inset: -20% -10%; z-index: -2; filter: blur(20px);
    background: radial-gradient(34% 40% at 18% 28%, rgba(37, 99, 235, .55), transparent 68%), radial-gradient(30% 36% at 82% 22%, rgba(124, 58, 237, .42), transparent 68%), radial-gradient(28% 30% at 62% 78%, rgba(13, 148, 136, .34), transparent 70%), radial-gradient(22% 26% at 30% 82%, rgba(234, 88, 12, .22), transparent 70%); }
.entry-brand::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(80% 75% at 50% 30%, black 20%, transparent 78%); mask-image: radial-gradient(80% 75% at 50% 30%, black 20%, transparent 78%); }
.entry-brand .brand { margin: 0; padding: 0; color: var(--onstage); font-size: 1.1rem; }
.entry-brand .brand small { color: var(--stagetext); }
.entry-pitch { margin: auto 0; max-width: 38rem; }
.entry-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.5rem; padding: .4rem .9rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--onstage); font-size: .82rem; font-weight: 600; }
.entry-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(52, 211, 153, .34); }
.entry-accent { color: var(--stageaccent); }
.entry-line { margin: 0; font-family: "Space Grotesk", "SpaceGrotesk-fallback", "Segoe UI", system-ui, sans-serif; font-size: clamp(2.2rem, 4.1vw, 3.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; color: var(--onstage); text-wrap: balance; }
.entry-mark { display: inline-block; margin-top: .12em; padding: 0 .16em; border-radius: .12em; background: var(--mark); color: var(--onmark); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.entry-sub { margin: 1.4rem 0 0; max-width: 33rem; font-size: 1.1rem; line-height: 1.6; }
.entry-pitch ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.entry-pitch li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; padding: .8rem .95rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: .8rem; background: rgba(255, 255, 255, .05); line-height: 1.4; font-size: .93rem; }
.entry-pitch li strong { display: block; color: var(--onstage); font-weight: 600; font-size: 1rem; }
.entry-tile { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .65rem; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(0, 0, 0, .6); }
.entry-tile.blue { background: linear-gradient(135deg, var(--tileblue), var(--brand)); }
.entry-tile.teal { background: linear-gradient(135deg, var(--tileteal), var(--tealdeep)); }
.entry-tile.violet { background: linear-gradient(135deg, var(--tileviolet), var(--tileindigo)); }
.entry-foot { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; font-size: .82rem; }
.entry-foot span { display: inline-flex; align-items: center; gap: .4rem; }
.entry-foot .icon { width: 1rem; height: 1rem; }
.entry-main { display: grid; place-items: center; width: auto; padding: 2rem 1.5rem; background: var(--bg); }
.entry-card { width: 100%; max-width: 27rem; padding: 2.25rem 2.25rem 2rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper); box-shadow: 0 18px 44px rgba(16, 24, 40, .12); }
.entry-card h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; text-wrap: balance; }
.entry-kicker { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.entry-lead { margin: .75rem 0 0; color: var(--muted); line-height: 1.55; }
.entry-action { margin: 1.6rem 0 0; }
.button.wide { display: flex; justify-content: center; width: 100%; padding: .7rem 1rem; font-size: 1rem; }
.entry-or { display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 0; color: var(--muted); font-size: .85rem; }
.entry-or::before, .entry-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.entry-form { margin: 1.2rem 0 0; }
.entry-form .field { margin: .85rem 0 0; max-width: none; }
.entry-form .field label { display: block; font-weight: 600; font-size: .9rem; }
.entry-form .field input { display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; font-size: 1rem; }
.entry-form .notice { margin: 0 0 .25rem; }
.entry-form .entry-action { margin-top: 1.2rem; }
.entry-notes { list-style: none; margin: 1.4rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.entry-notes li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; }
.entry-notes .icon { width: 1.05rem; height: 1.05rem; margin-top: .1rem; color: var(--accent); }
.entry-help { margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }
.entry-state { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 0 1.1rem; border-radius: 50%; }
.entry-state .icon { width: 1.5rem; height: 1.5rem; }
.entry-state.ok { background: var(--oktint); color: var(--ok); }
.entry-state.warn { background: var(--warntint); color: var(--warn); }
@media (max-width: 56rem) {
    .entry { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .entry-brand { padding: 1.1rem 1.25rem; gap: 0; }
    .entry-brand::after { display: none; }
    .entry-pitch, .entry-foot { display: none; }
    .entry-main { place-items: start center; padding: 1.5rem 1rem; }
    .entry-card { padding: 1.6rem 1.35rem; }
}

/* ── Words ────────────────────────────────────────────────────────────────────────────────────────────────────── */
h1 { font-size: 1.6rem; font-weight: 650; line-height: 1.25; margin: 0 0 .4rem; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: 1.1rem; margin: 2rem 0 .6rem; }
.lead { margin: 0 0 1.5rem; max-width: 46rem; font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
.lead, .hint, .secondary { color: var(--muted); }
.secondary { font-weight: 400; }
.hint { font-size: .9rem; margin: .25rem 0 0; font-weight: 400; }
.ref { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* ── Cards, counters and the list of what waits ───────────────────────────────────────────────────────────────── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > h2 { margin: 0; padding: .85rem 1.1rem; font-size: 1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .5rem; }
.card > h2 .count { margin-left: auto; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.counter { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: center; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; }
.counters > li { display: grid; }
.counter { align-content: start; }
.counter:hover { border-color: var(--accent); }
.counter .tile { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .6rem; background: var(--nonetint); color: var(--muted); }
.counter.bad .tile { background: var(--badtint); color: var(--bad); }
.counter.warn .tile { background: var(--warntint); color: var(--warn); }
.counter.ok .tile { background: var(--oktint); color: var(--ok); }
.counter .tile .icon { width: 1.4rem; height: 1.4rem; }
.counter strong { font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.counter span.label { color: var(--muted); font-size: .9rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; }
.rows .what { flex: 1 1 18rem; min-width: 0; }
.rows .what strong { display: block; font-weight: 600; }
.rows .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; color: var(--muted); font-size: .9rem; }
.more { margin: 0; padding: .7rem 1.1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.pack { margin-bottom: 1.25rem; overflow: hidden; }
.pack-head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.pack-head h2 { margin: 0 0 .35rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pack-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0; color: var(--muted); font-size: .9rem; }
.pack-head details { margin-top: .6rem; font-size: .92rem; }
.pack-head summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.pack-head details p { margin: .4rem 0 0; color: var(--ink); max-width: 60rem; }
.card table { border: 0; border-radius: 0; box-shadow: none; }
tbody th a { color: var(--ink); text-decoration: none; }
tbody th a:hover, .rows strong a:hover { color: var(--accent); text-decoration: underline; }
.rows strong a { color: var(--ink); text-decoration: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 0 .75rem; padding: 0; color: var(--muted); font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1rem; }
.title-row h1 { margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 1.5rem; margin: 0; padding: 1rem 1.1rem; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; }
.facts .hint { display: block; }
.prose { padding: .25rem 1.1rem; }
.prose h3 { font-size: .9rem; margin: 1rem 0 0; }
.prose p { margin: .6rem 0; max-width: 60rem; white-space: pre-line; }
.form-card { padding: .5rem 1.25rem 1.1rem; max-width: 46rem; }
.form-card .field, .form-card fieldset { max-width: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.25rem; }
.drop { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem 1rem; border: 2px dashed var(--field); border-radius: var(--radius); background: var(--wash); text-align: center; }
.drop .icon { width: 1.8rem; height: 1.8rem; color: var(--accent); }
.drop input[type="file"] { max-width: 100%; font: inherit; }
.drop:focus-within { border-color: var(--accent); background: var(--accenttint); }
.results { display: flex; flex-wrap: wrap; gap: .35rem; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; background: var(--nonetint); padding: .05rem .3rem; border-radius: .25rem; }
pre code { background: none; padding: 0; font-size: .85rem; }
/* -- The dashboard: its opening band, its meters and its three small charts -- */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; padding: 1.4rem 1.6rem; border-radius: .75rem; background: linear-gradient(120deg, var(--night), var(--deep)); color: var(--onnight); box-shadow: var(--shadow); }
.hero h1 { margin: 0; font-size: 1.9rem; color: #fff; }
.eyebrow { margin: 0 0 .2rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--onnight); }
.hero-lead { margin: .35rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.5; color: var(--onnight); }
.hero-status { max-width: 24rem; padding: .85rem 1rem; border: 1px solid var(--nightline); border-radius: var(--radius); background: var(--nightline); }
.hero-status .badge { font-size: .9rem; padding: .2rem .7rem; }
.hero-status p { margin: .5rem 0 0; color: #fff; line-height: 1.45; }
.counter .meter { grid-column: 1 / -1; margin-top: .6rem; }
.meter, .bar { display: block; width: 100%; height: .4rem; border-radius: 1rem; overflow: hidden; }
.bar { height: .75rem; }
.bar.thin { height: .4rem; }
.track { fill: var(--nonetint); }
.fill-ok { fill: var(--ok); } .fill-warn { fill: var(--warn); } .fill-bad { fill: var(--bad); } .fill-none { fill: var(--field); } .fill-accent { fill: var(--accent); }
.chart-card { margin-bottom: 1.25rem; }
.chart-body { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding: 1.1rem; }
.chart-body.stack { display: grid; gap: .85rem; }
.donut { width: 9.5rem; height: 9.5rem; flex: none; }
.donut .ring, .donut .arc { fill: none; stroke-width: 5; }
.donut .ring { stroke: var(--nonetint); }
.seg-ok { stroke: var(--ok); } .seg-warn { stroke: var(--warn); } .seg-bad { stroke: var(--bad); } .seg-none { stroke: var(--field); }
.donut-figure { font-size: 7px; font-weight: 700; fill: var(--ink); }
.donut-note { font-size: 3px; fill: var(--muted); }
.legend { flex: 1 1 12rem; list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.legend li { display: flex; align-items: center; gap: .6rem; }
.legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.legend.across { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--muted); font-size: .9rem; }
.legend.across strong { margin-left: .15rem; color: var(--ink); }
.key { width: .75rem; height: .75rem; border-radius: .2rem; flex: none; }
.key.seg-ok { background: var(--ok); } .key.seg-warn { background: var(--warn); } .key.seg-bad { background: var(--bad); } .key.seg-none { background: var(--field); }
table.mini { font-size: .9rem; }
table.mini th, table.mini td { padding: .4rem .5rem; vertical-align: middle; }
table.mini td.wide { width: 40%; }
.columns { display: block; width: 100%; height: 8rem; }
.columns .axis { stroke: var(--line); stroke-width: .5; }
.axis-note { display: flex; justify-content: space-between; margin: 0; }
.tile.small { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .5rem; flex: none; background: var(--nonetint); color: var(--muted); }
.tile.small.bad { background: var(--badtint); color: var(--bad); } .tile.small.warn { background: var(--warntint); color: var(--warn); }
ol.rows { counter-reset: none; }
/* -- The rail folded to its icons. Only where the rail stands beside the page; on a narrow screen it is a strip of links. -- */
@media (min-width: 56.01rem) {
    html[data-rail="narrow"] .shell { grid-template-columns: 4.4rem minmax(0, 1fr); }
    html[data-rail="narrow"] .side { padding-inline: .6rem; }
    html[data-rail="narrow"] .brand { justify-content: center; margin-inline: 0; }
    html[data-rail="narrow"] .brand > span, html[data-rail="narrow"] .side .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    html[data-rail="narrow"] .side h2 { height: 1px; margin: .9rem .5rem; padding: 0; overflow: hidden; background: var(--nightline); color: transparent; }
    html[data-rail="narrow"] .side a, html[data-rail="narrow"] .rail-toggle { justify-content: center; padding-inline: 0; }
    html[data-rail="narrow"] .side a { border-left-width: 0; }
    html[data-rail="narrow"] .side .icon { width: 1.3rem; height: 1.3rem; }
    html[data-rail="narrow"] .rail-toggle .icon { transform: scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) { .shell { transition: none; } }
/* -- What answers the pointer and the keyboard: a figure lifts, a chart part comes forward, a label names it -- */
.counter, .arc, .bar rect, .columns .fill-accent, .legend a, .chip { transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease, stroke-width .12s ease, background-color .12s ease; }
@media (prefers-reduced-motion: reduce) { .counter, .arc, .bar rect, .columns .fill-accent, .legend a, .chip { transition: none; } }
.counter:hover, .counter:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.counter .go { margin-left: auto; align-self: start; color: var(--muted); }
.donut a, .bar a, .columns a { cursor: pointer; outline: none; }
.donut a:hover .arc, .donut a:focus-visible .arc { stroke-width: 6.4; }
.donut:has(a:hover) a:not(:hover) .arc, .donut:has(a:focus-visible) a:not(:focus-visible) .arc { opacity: .35; }
.bar:has(a:hover) a:not(:hover) rect, .bar:has(a:focus-visible) a:not(:focus-visible) rect { opacity: .35; }
.bar a:focus-visible rect, .columns a:focus-visible .fill-accent { stroke: var(--focus); stroke-width: 1; }
.columns .hit { fill: transparent; }
.columns a:hover .hit, .columns a:focus-visible .hit { fill: var(--accenttint); }
.columns a:hover .fill-accent { fill: var(--accentstrong); }
.legend a { display: flex; align-items: center; gap: .6rem; flex: 1; padding: .2rem .4rem; margin: -.2rem -.4rem; border-radius: .4rem; color: var(--ink); text-decoration: none; }
.legend.across a { flex: none; gap: .4rem; color: var(--muted); }
.legend a:hover { background: var(--wash); }
/* A legend row under the pointer brings its own part of the chart forward, and the other way round. */
.chart-body:has(.legend a[data-k="bad"]:hover) svg a:not([data-k="bad"]) :is(.arc, rect),
.chart-body:has(.legend a[data-k="warn"]:hover) svg a:not([data-k="warn"]) :is(.arc, rect),
.chart-body:has(.legend a[data-k="none"]:hover) svg a:not([data-k="none"]) :is(.arc, rect),
.chart-body:has(.legend a[data-k="ok"]:hover) svg a:not([data-k="ok"]) :is(.arc, rect) { opacity: .35; }
.chart-body:has(svg a[data-k="bad"]:hover) .legend a[data-k="bad"],
.chart-body:has(svg a[data-k="warn"]:hover) .legend a[data-k="warn"],
.chart-body:has(svg a[data-k="none"]:hover) .legend a[data-k="none"],
.chart-body:has(svg a[data-k="ok"]:hover) .legend a[data-k="ok"] { background: var(--wash); }
table.mini th a { color: var(--accent); }
.tip { position: fixed; z-index: 20; max-width: 18rem; padding: .35rem .6rem; border: 1px solid var(--nightline); border-radius: .4rem; background: var(--night); color: #fff; font-size: .82rem; line-height: 1.35; box-shadow: 0 4px 12px rgba(16, 24, 40, .25); pointer-events: none; }
.tip[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); color: var(--ink); font-size: .9rem; text-decoration: none; }
.chip:hover { border-color: var(--accent); background: var(--accenttint); }
.chip[aria-current="true"] { border-color: var(--accent); background: var(--accent); color: var(--onaccent); font-weight: 600; }
.chip[aria-current="true"] .count { background: var(--paper); color: var(--accent); }
/* -- A named section of a page: a heading bar, then its words -- */
.section { margin-bottom: 1.25rem; }
.two > .section { margin-bottom: 0; }
.section-body { padding: .35rem 1.1rem .6rem; }
.section-body p { margin: .6rem 0; max-width: 62rem; line-height: 1.6; white-space: pre-line; }
.section-body .hint { white-space: normal; }
.lead-section { border-left: 4px solid var(--accent); }
.lead-section > h2 { background: var(--accenttint); }
.asked-title { font-size: 1.05rem; font-weight: 600; }
/* -- A page with a panel that stays beside it: the request and its discussion -- */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.25rem; align-items: start; }
.main-col { min-width: 0; }
.discussion { position: sticky; top: 4.5rem; display: flex; flex-direction: column; max-height: calc(100vh - 5.75rem); }
.talk-body { flex: 1; min-height: 6rem; overflow-y: auto; padding: .25rem .9rem .75rem; }
.threads, .replies { list-style: none; margin: 0; padding: 0; }
.threads > li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.threads > li:last-child { border-bottom: 0; }
.replies { margin: .6rem 0 0 1.1rem; padding-left: .9rem; border-left: 2px solid var(--line); display: grid; gap: .6rem; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: .6rem; scroll-margin-top: 5rem; }
.comment .avatar { width: 1.8rem; height: 1.8rem; font-size: .7rem; }
.comment.mine .avatar { background: var(--accenttint); color: var(--accent); }
.comment:target .said { background: var(--accenttint); border-radius: .4rem; box-shadow: 0 0 0 .35rem var(--accenttint); }
.comment .by { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin: 0; font-size: .9rem; }
.comment time { color: var(--muted); font-size: .8rem; }
.comment .words { margin: .2rem 0 0; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.reply-to { margin: .5rem 0 0 2.4rem; font-size: .88rem; }
.reply-to a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; text-decoration: none; }
.reply-to a:hover { text-decoration: underline; }
.reply-to .icon, .replying .icon { width: 1rem; height: 1rem; }
.list-talk { margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.list-talk summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.say { padding: .8rem .9rem .9rem; border-top: 1px solid var(--line); background: var(--wash); border-radius: 0 0 var(--radius) var(--radius); scroll-margin-top: 5rem; }
.say label { display: block; font-weight: 600; font-size: .9rem; }
.say textarea { margin-top: .25rem; resize: vertical; }
.say .actions { margin: .6rem 0 0; }
.say .notice { margin: 0 0 .6rem; }
.replying { display: flex; justify-content: space-between; gap: .75rem; margin: 0 0 .6rem; padding: .45rem .6rem; border-left: 3px solid var(--accent); border-radius: .3rem; background: var(--accenttint); font-size: .88rem; }
@media (max-width: 78rem) {
    .with-side { grid-template-columns: minmax(0, 1fr); }
    .discussion { position: static; max-height: none; }
}
/* -- A request's status and the menu that changes it -- */
.status-menu { position: relative; display: inline-block; }
.status-menu summary { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .35rem .15rem .15rem; border-radius: 1rem; list-style: none; cursor: pointer; }
.status-menu summary::-webkit-details-marker { display: none; }
.status-menu summary:hover, .status-menu[open] summary { background: var(--wash); }
.status-menu summary > .icon { width: 1rem; height: 1rem; color: var(--muted); transition: transform .12s ease; }
.status-menu[open] summary > .icon { transform: rotate(180deg); }
.status-pop { position: absolute; left: 0; top: calc(100% + .4rem); z-index: 10; width: min(22rem, 80vw); padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 28px rgba(16, 24, 40, .18); }
.status-pop label { display: block; margin-top: .6rem; font-weight: 600; font-size: .9rem; }
.status-pop label:first-of-type { margin-top: 0; }
.status-pop select, .status-pop textarea { margin-top: .25rem; width: 100%; }
.status-pop .actions { margin: .7rem 0 0; }
.status-pop .notice { margin: 0 0 .6rem; }
/* -- What became of a request, newest first -- */
/* It stays at the bottom of the window while the tab above it scrolls, as the discussion stays at the side; a long
   history scrolls inside itself. On a narrow window, where the discussion is under the page, it is in the flow. */
.history { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; max-height: min(17rem, 40vh); margin-top: 1.25rem; margin-bottom: 0; box-shadow: 0 -6px 18px rgba(16, 24, 40, .14), var(--shadow); scroll-margin-top: 5rem; }
.history > h2 { flex: none; }
.timeline { list-style: none; margin: 0; padding: .9rem 1.1rem .4rem 1.6rem; overflow-y: auto; }
@media (max-width: 78rem) {
    .history { position: static; max-height: none; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
    .timeline { overflow-y: visible; }
}
.timeline > li { position: relative; padding: 0 0 1rem 1.25rem; border-left: 2px solid var(--line); }
.timeline > li:last-child { border-left-color: transparent; padding-bottom: .4rem; }
.timeline > li::before { content: ""; position: absolute; left: -.42rem; top: .3rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.timeline p { margin: 0; }
.timeline .what { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.timeline .note { margin-top: .3rem; max-width: 62rem; line-height: 1.5; overflow-wrap: anywhere; }
.timeline .hint { margin-top: .2rem; }
/* -- Tabs: the parts of one page, each a link -- */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.5rem 0 1rem; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 3px solid transparent; border-radius: .5rem .5rem 0 0; color: var(--muted); font-weight: 600; text-decoration: none; }
.tabs a:hover { color: var(--ink); background: var(--nonetint); }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); background: var(--paper); border-color: var(--line) var(--line) var(--accent); }
.notice p { margin: 0; }
/* -- A panel from the right, over the page it belongs to -- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(10, 15, 31, .55); cursor: default; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 31; display: flex; flex-direction: column; width: min(30rem, 100vw); background: var(--paper); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(10, 15, 31, .3); animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(2rem); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
body:has(.drawer) { overflow: hidden; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: linear-gradient(120deg, var(--night), var(--deep)); color: var(--onnight); }
.drawer-head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.15rem; color: #fff; }
.drawer-head .hint, .drawer-head .ref { color: var(--onnight); }
.drawer-head .button.quiet { border-color: var(--nightline); background: none; color: #fff; }
.drawer-head .button.quiet:hover { background: var(--nightline); }
.drawer-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: .5rem 1.25rem 1rem; }
.drawer-body .field { max-width: none; }
.drawer-foot { display: flex; gap: .75rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--wash); }
/* -- Finding requests: one bar of filters, the lists as tiles, and a due day with its distance from today -- */
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; margin-bottom: 1.25rem; padding: .9rem 1.1rem; }
.filters .field { margin: 0; flex: 0 1 11rem; }
.filters .field.grow { flex: 1 1 16rem; }
.filters label { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.filters .actions { margin: 0; }
.found { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.packs > li { display: grid; }
.pack-tile { display: grid; grid-template-columns: auto 1fr; gap: .6rem .8rem; align-content: start; padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.pack-tile:hover, .pack-tile:focus-visible { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.pack-tile .what { display: grid; gap: .1rem; min-width: 0; }
.pack-tile .what strong { font-weight: 600; }
.pack-tile .meta, .pack-tile .pack-due { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; color: var(--muted); font-size: .9rem; }
.pack-tile .pack-due { padding-top: .6rem; border-top: 1px solid var(--line); }
.pack-tile .hint { margin: 0; }
@media (prefers-reduced-motion: reduce) { .pack-tile { transition: none; } }
.due { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.due-day { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
td .due { flex-direction: column; align-items: flex-start; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1.25rem; align-items: stretch; }
/* Two charts side by side are one height: the taller sets it, and the link at the foot of each sits on one line. */
.chart-card { display: flex; flex-direction: column; }
.chart-card > .chart-body, .chart-card > .state { flex: 1; }
.chart-card > .chart-body.stack { align-content: start; }
.chart-card > .more { margin-top: auto; }
/* -- Light, dark or the system's own: three buttons in the person's menu, shown by shell.js -- */
.theme { margin: .4rem 0 0; padding: .5rem .6rem .6rem; border: 0; border-bottom: 1px solid var(--line); max-width: none; }
.theme[hidden] { display: none; }
.theme legend { padding: 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.theme div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; margin-top: .4rem; padding: .2rem; border-radius: .5rem; background: var(--wash); }
.theme button { padding: .3rem .4rem; border: 1px solid transparent; border-radius: .35rem; background: none; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.theme button:hover { border-color: var(--line); }
.theme button[aria-pressed="true"] { border-color: var(--line); background: var(--paper); font-weight: 600; box-shadow: var(--shadow); }

/* ── Tables ───────────────────────────────────────────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: var(--wash); }
thead th { background: var(--wash); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }
td.act { text-align: right; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; }
h2 .count { margin-left: .35rem; vertical-align: .1em; }

/* ── Marks of a state: always an icon and words, the colour only repeats them ─────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 1rem; border: 1px solid currentColor; font-size: .82rem; font-weight: 600; white-space: nowrap; background: var(--nonetint); color: var(--muted); }
.badge .icon { width: .9rem; height: .9rem; }
.badge.ok { color: var(--ok); background: var(--oktint); }
.badge.warn { color: var(--warn); background: var(--warntint); }
.badge.bad { color: var(--bad); background: var(--badtint); }
.badge.none { color: var(--muted); background: var(--nonetint); }
.count { display: inline-block; min-width: 1.5rem; padding: 0 .45rem; border-radius: 1rem; background: var(--nonetint); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: center; }

/* ── Buttons, notices, forms ──────────────────────────────────────────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .9rem; border: 1px solid var(--accent); border-radius: .4rem; background: var(--paper); color: var(--accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accenttint); }
.button.primary { background: var(--accent); color: var(--onaccent); }
.button.primary:hover { background: var(--accentstrong); border-color: var(--accentstrong); }
.button.quiet { border-color: var(--line); color: var(--ink); font-weight: 400; }
.button.quiet:hover { background: var(--wash); }
.actions { display: flex; gap: .75rem; }
.state { padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.state.empty { color: var(--muted); text-align: center; padding: 2.5rem 1.25rem; }
.state.error, .notice.bad { border-left: 4px solid var(--bad); }
.notice { padding: .75rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.notice.ok { border-left: 4px solid var(--ok); }
.field { margin: 1rem 0; max-width: 40rem; }
.field label, fieldset legend { display: block; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="search"], input:not([type]), select, textarea, .secret { width: 100%; padding: .45rem .6rem; border: 1px solid var(--field); border-radius: .4rem; font: inherit; background: var(--paper); color: var(--ink); }
.secret { font-family: ui-monospace, Consolas, monospace; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0; max-width: 40rem; }
.check { display: block; font-weight: 400; margin: .25rem 0; }
pre { background: var(--night); color: var(--onnight); border: 1px solid var(--nightline); border-radius: var(--radius); padding: 1rem 1.1rem; overflow-x: auto; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem; margin-bottom: .5rem; }

/* ── A narrow screen: the rail becomes a strip of links that wraps, and a table becomes cards ─────── */
@media (max-width: 56rem) {
    .shell { display: block; }
    .side { position: static; height: auto; padding: .6rem .75rem; }
    .brand { margin-bottom: .5rem; }
    .side nav { display: flex; flex-wrap: wrap; gap: .25rem; }
    .side h2 { display: none; }
    .side ul { display: flex; flex-wrap: wrap; gap: .25rem; }
    .side a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
    .side a.active { border-bottom-color: #fff; }
    .top { flex-wrap: wrap; padding: .6rem 1rem; position: relative; }
    .top-day, .user-menu .who { display: none; }
    .user-menu { margin-left: auto; padding-left: 0; border-left: 0; }
    .rail-toggle { display: none; }
    main { padding: 1rem; }
    .filters .field, .filters .field.grow { flex: 1 1 100%; }
    table, tbody, tr, th, td { display: block; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    tbody tr { border-bottom: 1px solid var(--line); padding: .5rem 0; }
    tbody tr:last-child { border-bottom: 0; }
    th, td { border: 0; padding: .25rem 1rem; }
    td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
    td.act { text-align: left; padding-top: .5rem; }
}

/* ── An external party's requests──────────────────────────────────────────────────────────────────────────────── */
.badge.wait { color: var(--accent); background: var(--accenttint); }
.button.danger { border-color: var(--bad); color: var(--bad); }
.button.danger:hover { background: var(--badtint); }
.notice.info { display: flex; align-items: center; gap: .5rem; border-left: 4px solid var(--accent); }
.notice.info .icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--accent); }
.discussion > .notice.info { margin: 0 .9rem .6rem; }
.top-access { display: flex; align-items: center; gap: .4rem; margin: 0 0 0 auto; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--accenttint); color: var(--accent); font-size: .85rem; }
.top-access .icon { width: 1rem; height: 1rem; }
.top-access + .top-day { margin-left: .75rem; }
.multiline { white-space: pre-line; overflow-wrap: anywhere; }
.engagements { list-style: none; margin: 0 0 1.25rem; padding: .25rem 1.1rem; }
.engagements li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: .6rem 0; }
.engagements li + li { border-top: 1px solid var(--line); }
.engagements .ends { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; color: var(--muted); }
.engagements .ends .icon { width: 1rem; height: 1rem; }
@media (max-width: 56rem) { .top-access { margin-left: 0; font-size: .8rem; } }
