/* 5 Star Supervisor Hub: the look, built to the approved design mock-up v3
 * (docs/handover/5Star_Supervisor_Hub_Design_Mockup_v3.html).
 *
 * Type: Inter, six sizes (28 / 24 / 17 / 15 / 13 / 12). Spacing: 4 / 8 / 12 /
 * 16 / 24 / 32 / 48. Cards: 16px radius, soft three-layer shadows, no borders.
 * Icons: one thin line set. Gold is an accent only. Press: scale .98 over
 * 120ms, off when the device asks for reduced motion.
 *
 * Brand colours are never decided here: the company theme (css_text()) sets
 * --primary, --primary-ink, --accent, --bg, --card, --ink, --btn and
 * --btn-ink on :root, after this file, so its light values win; the dark
 * rule below (:root[data-theme="dark"]) is more specific, so dark surfaces
 * stay ours, except the theme's own dark button colours. Status colours are
 * fixed: red urgent, amber attention, green done.
 *
 * Font: Inter (SIL Open Font License 1.1), self-hosted from static/src/fonts.
 *
 * The last section keeps the earlier class names (btn-primary, notice,
 * badge, page-head, topbar...) working in this look: the management section
 * is built on them.
 */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable.woff2") format("woff2-variations"),
         url("../fonts/InterVariable.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
    --navy: var(--primary, #1B1F3B);
    --navy-ink: var(--primary-ink, #FFFFFF);
    --gold: var(--accent, #C9A227);
    --gold-ring: rgba(201, 162, 39, .32);
    --hdr: linear-gradient(140deg, var(--navy) 0%, #232A5C 58%, #151834 100%);
    --bg: #F5F6F9; --card: #FFFFFF; --fill: #F1F2F6; --fill-2: #DADDE5; --fill-hi: #F8F9FB; --soft: #E8EAF4;
    --ink: #14172B; --ink-2: #5A6075; --ink-3: #656B80; --line: #ECEEF3; --line-2: #DFE2E9;
    --btn: var(--navy); --btn-ink: var(--navy-ink); --btn-2: #EEF0F5; --btn-2-ink: #1B1F3B;
    --sel: var(--navy); --sel-ink: var(--navy-ink); --chart: #4A5396;
    --red: #B42318; --red-bg: #FEF3F2; --amber: #B54708; --amber-bg: #FFF8EB; --green: #067647; --green-bg: #ECFDF3;
    --sh-1: 0 1px 2px rgba(20, 23, 43, .04), 0 4px 12px rgba(20, 23, 43, .04), 0 12px 32px rgba(20, 23, 43, .05);
    --sh-2: 0 1px 2px rgba(20, 23, 43, .05), 0 8px 20px rgba(20, 23, 43, .07), 0 24px 48px rgba(20, 23, 43, .08);
    --sh-btn: 0 1px 2px rgba(20, 23, 43, .12), 0 4px 12px rgba(20, 23, 43, .12);
    --sh-press: 0 1px 2px rgba(20, 23, 43, .08);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0B0D19; --card: #151830; --fill: #20243F; --fill-2: #2E3356; --fill-hi: #2A2F52; --soft: #262B52;
    --ink: #ECEEF6; --ink-2: #A8AEC6; --ink-3: #9298B2; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
    --hdr: linear-gradient(140deg, var(--navy) 0%, #20264F 58%, #10132A 100%);
    --btn: #E9EBF5; --btn-ink: #1B1F3B; --btn-2: #22274A; --btn-2-ink: #ECEEF6;
    --sel: var(--gold); --sel-ink: #1B1F3B; --chart: #8E98E8;
    --red: #FDA29B; --red-bg: rgba(240, 68, 56, .14); --amber: #FEC84B; --amber-bg: rgba(247, 144, 9, .13);
    --green: #75E0A7; --green-bg: rgba(23, 178, 106, .14);
    --sh-1: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .22);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .32);
    --sh-btn: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
    --sh-press: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
}
/* The lock screen and the welcome page are always white (A3.1.1). */
.lockwhite, body.landing {
    --bg: #FFFFFF; --card: #FFFFFF; --fill: #F1F2F6; --fill-2: #DADDE5; --soft: #E8EAF4;
    --ink: #14172B; --ink-2: #5A6075; --ink-3: #656B80; --line: #ECEEF3; --line-2: #DFE2E9;
    --btn: #1B1F3B; --btn-ink: #FFFFFF; --btn-2: #EEF0F5; --btn-2-ink: #1B1F3B; --sel: #1B1F3B; --sel-ink: #FFFFFF;
    --amber: #B54708; --amber-bg: #FFF8EB; --red: #B42318; --red-bg: #FEF3F2; --green: #067647; --green-bg: #ECFDF3;
    color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; min-height: 100dvh;
    background: var(--bg); color: var(--ink);
    font: 400 15px/1.5 var(--font); font-feature-settings: "cv11";
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--sh-2); }
.skip:focus { top: 12px; }

/* ---------- Icons: one set, 24px grid, thin line ---------- */
.i, svg.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.s16, svg.icon.icon-sm { width: 16px; height: 16px; stroke-width: 2.25; }
.i.s24, svg.icon.icon-lg { width: 24px; height: 24px; stroke-width: 1.5; }
:root[data-theme="dark"] .only-light, :root:not([data-theme="dark"]) .only-dark { display: none; }

/* ---------- The shield (trimmed; equal padding centres it exactly) ---------- */
.shield { display: block; flex: none; height: 28px; width: auto; aspect-ratio: 316 / 385; object-fit: contain; }
.tile { flex: none; padding: 4px; border-radius: 9px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .12); }
.tile .shield { height: 28px; }
.onwhite { display: inline-flex; align-items: center; justify-content: center; }
:root[data-theme="dark"] .onwhite { background: #FFFFFF; border-radius: 18px; padding: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.lockwhite .onwhite, body.landing .onwhite { background: transparent; padding: 0; box-shadow: none; }

/* ---------- TEST SYSTEM banner ---------- */
.test { position: sticky; top: 0; z-index: 60; background: repeating-linear-gradient(135deg, #FEC84B 0 12px, #FDB022 12px 24px); color: #3D2A00; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hdr { background: var(--hdr); color: #FFFFFF; padding: 0 12px 12px 16px; padding-top: env(safe-area-inset-top); }
.hdr.solo { border-radius: 0 0 24px 24px; padding-bottom: 16px; }
.hdr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.hdr-row > .tile { text-decoration: none; }
.hdr-txt { flex: 1; min-width: 0; }
.hdr-t { font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-s { font-size: 12px; color: rgba(255, 255, 255, .72); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-act { display: flex; align-items: center; gap: 4px; }
.hdr-act form.inline { display: inline-flex; margin: 0; }
.ibtn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none; }
.ibtn:hover { background: rgba(255, 255, 255, .1); }
.back { margin-left: -8px; }
.who { display: none; }
.hero { background: var(--hdr); color: #FFFFFF; padding: 4px 20px 64px; border-radius: 0 0 28px 28px; margin-top: -1px; }
.hero .date { font-size: 13px; color: rgba(255, 255, 255, .72); }
.hero h1 { font-size: 26px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 4px 0 2px; }
.hero p { margin: 0; color: rgba(255, 255, 255, .72); }
.body { flex: 1; width: 100%; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 24px; }
.body.has-hero { padding-top: 0; }
.lift { margin-top: -44px; position: relative; }
.tabbar { display: flex; justify-content: space-around; background: var(--card); box-shadow: 0 -1px 0 var(--line); padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; z-index: 40; }
.tabbar a { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-3); text-decoration: none; position: relative; padding: 4px 0; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on::after { content: ""; position: absolute; top: -8px; width: 20px; height: 2px; border-radius: 2px; background: var(--gold); }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; text-decoration: none; }
.side .brand .tile { padding: 5px; border-radius: 10px; }
.side .brand .tile .shield { height: 30px; }
.side .brand b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.side .brand small { display: block; font-size: 12px; color: rgba(255, 255, 255, .66); }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: rgba(255, 255, 255, .74); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.snav a:hover { background: rgba(255, 255, 255, .06); color: #FFFFFF; }
.snav a.on, .snav a[aria-current="page"] { background: rgba(255, 255, 255, .09); color: #FFFFFF; }
.snav a.on::before, .snav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.snav-l { font-size: 12px; color: rgba(255, 255, 255, .52); margin: 20px 12px 6px; }
.side-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; font-weight: 500; }
.side-foot small { display: block; color: rgba(255, 255, 255, .62); font-weight: 400; font-size: 12px; }
.only-lap { display: none; }

/* ---------- Type ---------- */
.h1 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 0; }
.h1.name { font-size: 22px; }
.h2 { font-size: 17px; font-weight: 600; line-height: 1.35; margin: 0; }
.h3 { font-size: 15px; font-weight: 600; line-height: 1.4; margin: 0; }
.sub { color: var(--ink-2); margin: 4px 0 0; }
.muted { color: var(--ink-2); }
.sm { font-size: 13px; line-height: 1.45; }
.xs { font-size: 12px; line-height: 1.4; }
.lbl { font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.num { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.num small { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.tn { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-line; }

/* ---------- Layout helpers (4 / 8 scale) ---------- */
.stack { display: flex; flex-direction: column; }
.row-x { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; }
.f1 { flex: 1; min-width: 0; }
.cols { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 400px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :first-child { grid-column: 1 / -1; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.stats.s3 > :last-child:nth-child(3) { grid-column: 1 / -1; }
.stat-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.stat-top .i { color: var(--ink-3); order: -1; }
.stat-top .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hic { width: 32px; height: 32px; border-radius: 10px; background: var(--fill); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.hic .i { width: 18px; height: 18px; stroke-width: 2; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link { color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.lim { max-width: 760px; }

/* ---------- Surfaces ---------- */
.card { background: var(--card); border-radius: 16px; box-shadow: var(--sh-1); padding: 16px; }
.card.flush { padding: 4px 0; }
.card.lift2 { box-shadow: var(--sh-2); }
.card-top { padding: 12px 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.stat .foot { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.t-amber { color: var(--amber); } .t-green { color: var(--green); } .t-red { color: var(--red); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; text-decoration: none; color: inherit; border-radius: 12px; min-height: 56px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 68px; right: 16px; border-top: 1px solid var(--line); }
.row.nl + .row::before, .row.nl::before { left: 16px; }
.ic { width: 40px; height: 40px; border-radius: 12px; background: var(--fill); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.ic.amber { background: var(--amber-bg); color: var(--amber); } .ic.green { background: var(--green-bg); color: var(--green); } .ic.red { background: var(--red-bg); color: var(--red); }
.rt { font-size: 15px; font-weight: 500; line-height: 1.35; }
.rs { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.chev { color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.pill.wrap { white-space: normal; padding-top: 3px; padding-bottom: 3px; line-height: 1.35; }
.pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.green { background: var(--green-bg); color: var(--green); } .pill.red { background: var(--red-bg); color: var(--red); }
.pill.navy { background: var(--soft); color: var(--ink); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 32px 20px; }
.empty .onwhite { margin-bottom: 8px; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn-p { background: var(--btn); color: var(--btn-ink); box-shadow: var(--sh-btn); }
.btn-s { background: var(--btn-2); color: var(--btn-2-ink); }
.btn-g { background: transparent; color: var(--ink); }
.btn-red { background: #B42318; color: #FFFFFF; box-shadow: 0 1px 2px rgba(180, 35, 24, .24), 0 6px 16px rgba(180, 35, 24, .24); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-w { width: 100%; }
.btn-xl { min-height: 56px; font-size: 17px; border-radius: 14px; }
.btn.is-dis { opacity: .55; box-shadow: none; }
.btn[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { opacity: .7; cursor: progress; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hub-spin .8s linear infinite; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
.tap { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
@media (prefers-reduced-motion: no-preference) {
    .btn:active, .tap:active, .key:active, .chip:active, .ans:active { transform: scale(.98); box-shadow: var(--sh-press); }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .lbl, .field > legend { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid transparent; background: var(--fill); color: var(--ink); font: inherit; font-size: 16px; padding: 0 14px; outline: none; }
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; display: block; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; }
input.input[type="file"] { padding: 10px 14px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-ring); }
.input::placeholder { color: var(--ink-3); }
.input-n { width: 72px; min-height: 44px; border-radius: 10px; text-align: center; padding: 0 8px; font-variant-numeric: tabular-nums; }
.help { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.counter { font-weight: 500; font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--amber); }
.search { position: relative; }
.search > .i, .search > svg.icon { position: absolute; left: 14px; top: 14px; color: var(--ink-3); }
.search .input { padding-left: 44px; }
.sel { position: relative; }
.sel > .i { position: absolute; right: 14px; top: 14px; color: var(--ink-3); pointer-events: none; }
input.cb { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--ink-3); background: var(--card); display: inline-grid; place-items: center; margin: 0; flex: none; cursor: pointer; }
input.cb:checked { background: var(--sel); border-color: var(--sel); }
input.cb:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--sel-ink); border-bottom: 2px solid var(--sel-ink); transform: translateY(-1px) rotate(-45deg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; min-height: 24px; }
.check input { margin-top: 1px; }
input.sw { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--fill-2); position: relative; flex: none; cursor: pointer; margin: 0; transition: background-color .12s ease; }
input.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .12s ease; }
input.sw:checked { background: var(--sel); }
input.sw:checked::after { transform: translateX(18px); }
/* Segments: radio labels or links. */
.seg { display: inline-flex; background: var(--fill); border-radius: 12px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.full { display: flex; }
.seg.wrap { flex-wrap: wrap; overflow: visible; }
.seg > a, .seg > label > span, .seg > span { min-height: 36px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer; text-decoration: none; }
.seg > label { position: relative; display: flex; flex: 1; }
.seg > label > span { flex: 1; }
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg > a.on, .seg > span.on, .seg > label > input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 23, 43, .08), 0 2px 6px rgba(20, 23, 43, .06); }
.seg > label > input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; transition: transform .12s ease; }
.chip.on { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.chip-r { position: relative; display: inline-flex; }
.chip-r input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-r span { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; cursor: pointer; }
.chip-r input:checked + span { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.chip-r input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.nchip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 500; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: var(--fill); color: var(--ink); }
.note > .i { margin-top: 1px; color: var(--ink-2); }
.note b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; line-height: 1.35; }
.note.amber { background: var(--amber-bg); } .note.amber > .i { color: var(--amber); }
.note.red { background: var(--red-bg); } .note.red > .i { color: var(--red); }
.note.green { background: var(--green-bg); } .note.green > .i { color: var(--green); }
.note.plain { background: transparent; padding: 0; }
.note.plain-card { background: var(--card); box-shadow: var(--sh-1); }
.note.flash { box-shadow: var(--sh-1); }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 8px; }
form.inline { display: inline; margin: 0; }

/* ---------- Absence call ---------- */
.steps { display: flex; align-items: flex-start; }
.st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); position: relative; text-align: center; font-weight: 500; line-height: 1.25; }
.st::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 1.5px; border-radius: 2px; background: var(--line-2); }
.st:first-child::before { display: none; }
.st .sd { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink-3); font-size: 12px; font-weight: 600; position: relative; }
.st.done { color: var(--ink-2); } .st.done .sd { background: var(--green-bg); color: var(--green); }
.st.cur { color: var(--ink); font-weight: 600; } .st.cur .sd { background: var(--card); color: var(--ink); box-shadow: 0 0 0 2px var(--gold); }
.person { padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.person + .person { border-top: 1px solid var(--line); }
.av { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; flex: none; object-fit: cover; }
.av.lg { width: 64px; height: 64px; }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 4px; background: var(--fill); border-radius: 12px; padding: 4px; }
.ans { min-height: 52px; border: 0; border-radius: 9px; background: transparent; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; padding: 4px 2px; text-align: center; line-height: 1.2; transition: transform .12s ease, background-color .12s ease; }
.ans.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 23, 43, .08), 0 2px 6px rgba(20, 23, 43, .06); }
.ans.on.ok { color: var(--green); }
.calllen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-2); }
.fit-warn { background: var(--amber-bg); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.fit-warn .top { display: flex; gap: 12px; align-items: flex-start; }
.fit-warn .top > .i { color: var(--amber); margin-top: 2px; }
.fit-warn b { font-size: 15px; font-weight: 600; display: block; line-height: 1.35; }
.fit-warn .hrs { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fit-warn .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fit-warn .btn { min-height: 44px; font-size: 14px; padding: 0 12px; white-space: normal; }
.fit-warn .btn-s { background: var(--card); }
.tl { display: flex; flex-direction: column; font-size: 13px; }
.tl div { display: flex; gap: 12px; padding: 6px 0; align-items: baseline; }
.tl time { flex: none; width: 44px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.filters-bar { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: end; }

/* ---------- Incident ---------- */
.istep { background: var(--card); border-radius: 16px; box-shadow: var(--sh-1); overflow: hidden; scroll-margin-top: 16px; }
.istep-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.istep .sn { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--fill); color: var(--ink-2); flex: none; }
.istep.done .sn { background: var(--green-bg); color: var(--green); }
.istep.done .rt { color: var(--ink-2); }
.istep.cur { box-shadow: var(--sh-2); }
.istep.cur .sn { background: var(--sel); color: var(--sel-ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--gold); }
.istep.todo { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.istep.todo .rt { color: var(--ink-2); }
.istep-b { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.cl { display: flex; flex-direction: column; gap: 12px; }
.gate { border-radius: 12px; background: var(--fill); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.gate .tag { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.fallback { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 20px; }
.fallback .big { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; max-width: 320px; }
.type-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: inherit; background: var(--card); box-shadow: var(--sh-1); }
.type-row + .type-row { margin-top: 8px; }
.results:empty { display: none; }
.group-l { padding: 12px 16px 4px; }
.sn-c { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--sel); color: var(--sel-ink); flex: none; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pc { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.bar { height: 6px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.bar.amber i { background: var(--amber); } .bar.red i { background: var(--red); }
.days { display: flex; gap: 4px; }
.days span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--ink-3); background: var(--fill); }
.days span.y { background: var(--soft); color: var(--ink); }
.days span.t { box-shadow: 0 0 0 1.5px var(--gold); }
.avail { width: 100%; border-collapse: collapse; font-size: 13px; }
.avail th { font-weight: 500; color: var(--ink-2); padding: 6px 4px; text-align: center; }
.avail th[scope="row"], .avail th:first-child { text-align: left; }
.avail td { padding: 6px 4px; text-align: center; }
.avail .y { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.avail .n { display: inline-block; width: 8px; height: 1.5px; background: var(--ink-3); vertical-align: middle; }
.avail input.cb { width: 26px; height: 26px; }
.ac-dates { display: flex; flex-direction: column; }
.ac-dates div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 13px; border-top: 1px solid var(--line); }
.ac-dates div:first-child { border-top: 0; }
.esc { display: flex; flex-direction: column; }
.esc .row { padding: 12px 0; }
.esc .row + .row::before { left: 0; right: 0; }
.viol { display: flex; flex-direction: column; gap: 4px; }
.viol-note { padding-left: 34px; }
.chain-topic + .chain-topic { border-top: 1px solid var(--line); }
.chain-h { padding: 12px 16px 0; }
.chain-note { padding: 2px 16px 0; }

/* ---------- Reports ---------- */
.vbars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 148px; }
.vb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.vb i { width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: var(--chart); display: block; }
.vb b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vb small { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hb { display: grid; grid-template-columns: 112px 1fr 28px; gap: 12px; align-items: center; font-size: 13px; }
.hb .bar { height: 8px; }
.hb .bar i { background: var(--chart); }
.hb b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-weight: 500; color: var(--ink-2); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.table-wrap { overflow-x: auto; }
.mgmt { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.mgmt::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------- Lock, welcome, offline ---------- */
body.locked, body.landing { background: #FFFFFF; color: #14172B; }
.center { flex: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 24px; padding: 48px 24px 32px; background: var(--bg); color: var(--ink); }
.center .shield { height: 96px; }
.pinform { width: 100%; max-width: 320px; align-items: center; }
.pins { display: flex; gap: 16px; justify-content: center; min-height: 12px; }
.pins span { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.pins span.is-filled { background: var(--ink); box-shadow: none; }
.pin-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px 28px; justify-content: center; }
.key { width: 72px; height: 72px; border-radius: 50%; background: var(--fill); border: 0; font: inherit; font-size: 26px; font-weight: 500; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.key.ghost { background: transparent; color: var(--ink-2); }
.form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.landing-foot { padding: 16px; text-align: center; font-size: 12px; color: var(--ink-2); }

/* ---------- Speak and Type (A4, A12): two equal buttons, always both shown ---------- */
.vf { position: relative; }
.vf-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.vf-way { width: 100%; min-height: 44px; padding: 0 12px; font-size: 14px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.vf-way .em { font-size: 18px; line-height: 1; }
.vf-way:hover { background: var(--fill); }
.vf-way:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.vf-way.on { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.vf-way.on::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; box-shadow: 0 0 0 2px var(--gold); animation: pulse 1.6s ease-out infinite; }
.vf-way.is-off { color: var(--ink-2); }
.vf-ways.xl { width: 100%; max-width: 420px; }
.vf-ways.xl .vf-way { min-height: 56px; font-size: 17px; border-radius: 14px; }
/* The first absence step: how they reported it (A12), big radio cards. */
.rcards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.rcard { position: relative; display: flex; }
.rcard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rcard span { flex: 1; min-height: 56px; padding: 8px 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.rcard input:checked + span { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.rcard input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Hours unknown: the week's TrackTik schedule is not uploaded (A9.3), amber. */
.hrs-unknown, .stat .foot.hrs-unknown { color: var(--amber); font-weight: 600; }
.vf.listening .input { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-ring); }
@keyframes pulse { 0% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
.voicehero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 16px; }
.bigmic { width: 88px; height: 88px; border-radius: 50%; background: var(--sel); color: var(--sel-ink); display: grid; place-items: center; position: relative; }
.bigmic .i { width: 36px; height: 36px; stroke-width: 1.5; }
.bigmic.on::before, .bigmic.on::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); animation: pulse 1.8s ease-out infinite; }
.bigmic.on::after { animation-delay: .9s; }
.transcript { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 320px; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(11, 13, 25, .38); display: flex; align-items: flex-end; justify-content: center; z-index: 90; }
.sheet { width: 100%; max-width: 520px; background: var(--card); color: var(--ink); border-radius: 24px 24px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 -12px 40px rgba(0, 0, 0, .18); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--fill-2); margin: 4px auto; }
.sheet .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Laptop ---------- */
@media (min-width: 900px) {
    .side { display: flex; flex-direction: column; width: 248px; flex: none; background: var(--hdr); color: #FFFFFF; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .tabbar, .hdr .tile, .hdr .back, .only-phone { display: none; }
    .only-lap { display: inline; }
    .hdr { background: transparent; color: var(--ink); padding: 24px 40px 0; }
    .hdr.solo { border-radius: 0; padding-bottom: 0; }
    .hdr-s { color: var(--ink-2); font-size: 13px; }
    .hdr-t { font-size: 13px; font-weight: 500; color: var(--ink-2); }
    .hdr .ibtn { color: var(--ink-2); }
    .hdr .ibtn:hover { background: var(--fill); }
    .who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-right: 8px; }
    .hero { margin: 16px 40px 0; border-radius: 20px; padding: 28px 32px 76px; }
    .hero h1 { font-size: 28px; }
    .body { padding: 24px 40px 48px; max-width: 1240px; }
    .lift { margin: -52px 32px 0; }
    .card { padding: 20px 24px; }
    .card.flush { padding: 8px; }
    .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .stats.s3 { grid-template-columns: repeat(3, 1fr); }
    .stats.s3 > :last-child:nth-child(3) { grid-column: auto; }
    .c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .c-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .istep-b { padding: 0 24px 20px 56px; }
    .istep-h { padding: 16px 24px 16px 16px; }
    .chips.scroll { margin: 0; padding: 0; flex-wrap: wrap; }
    .lift.stack { flex-direction: row; align-items: center; padding: 16px 20px; }
    .lift .btn-w { width: auto; flex: none; }
    .lift p { flex: 1; }
    .filters-bar { grid-template-columns: 1.4fr 1.2fr auto; }
    .center { justify-content: center; }
}
@media (min-width: 640px) and (max-width: 899px) {
    .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .btn:active, .tap:active, .key:active, .chip:active, .ans:active { transform: none; }
}
@media print {
    .side, .tabbar, .test, .hdr-act { display: none; }
}

/* ===================================================================================
 * Earlier class names, kept working in this look (the management section uses them).
 * =================================================================================== */
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: inline; }
:root[data-theme="dark"] .theme-light-only { display: none; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--hdr); color: #FFFFFF; }
.test + .topbar { top: 30px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; color: inherit; }
.topbar .brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #FFFFFF; padding: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 4px 10px rgba(0, 0, 0, .12); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 12px; color: rgba(255, 255, 255, .72); }
.topbar .end { margin-left: auto; display: flex; gap: 4px; align-items: center; }
main.page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.page-head p { margin-top: 4px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-2); }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.35; }
h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
h2 > svg.icon, h3 > svg.icon { vertical-align: -4px; color: var(--ink-2); margin-right: 4px; }
.small { font-size: 13px; }
.card + .card { margin-top: 12px; }
.stack > .card + .card, .cols > .card + .card, .c2 > .card + .card, .team-grid > .card + .card, .stats > .card + .card { margin-top: 0; }
.section { margin-top: 24px; }
.section > h2 { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stat-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat-grid > .stat, a.stat:not(.card) { background: var(--card); border-radius: 16px; box-shadow: var(--sh-1); padding: 16px; }
.stat .value { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .value.word { font-size: 28px; }
.stat .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.stat.is-attention .value { color: var(--amber); } .stat.is-urgent .value { color: var(--red); } .stat.is-done .value { color: var(--green); }
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.list .row::before { display: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 15px; font-weight: 500; }
.row-sub { font-size: 13px; color: var(--ink-2); }
.dot.is-urgent { color: var(--red); } .dot.is-attention { color: var(--amber); } .dot.is-done { color: var(--green); }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: var(--sh-btn); }
.btn-ghost { background: var(--btn-2); color: var(--btn-2-ink); }
.btn-gold { background: var(--gold); color: #1B1F3B; }
.btn-danger { background: #B42318; color: #FFFFFF; }
.btn-ok { background: #067647; color: #FFFFFF; }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions.end { justify-content: flex-end; }
.main-action { margin-top: 20px; }
.hint { margin-top: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; cursor: pointer; }
.opt input:checked + span { background: var(--sel); color: var(--sel-ink); box-shadow: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fill); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.badge.is-urgent { background: var(--red-bg); color: var(--red); }
.badge.is-attention { background: var(--amber-bg); color: var(--amber); }
.badge.is-done { background: var(--green-bg); color: var(--green); }
.badge.is-navy, .badge.is-mine { background: var(--soft); color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; background: var(--fill); color: var(--ink); }
.notice > svg { margin-top: 1px; color: var(--ink-2); }
.notice b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.notice.is-urgent { background: var(--red-bg); } .notice.is-urgent > svg { color: var(--red); }
.notice.is-attention { background: var(--amber-bg); } .notice.is-attention > svg { color: var(--amber); }
.notice.is-done { background: var(--green-bg); } .notice.is-done > svg { color: var(--green); }
.notice + .notice { margin-top: 8px; }
.flash { margin-bottom: 16px; }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
