/* Raised Hands tokens: Meridian 1.7.0 neutrals + Harbor accent.
   Ported from the mockups' tk.css with the token names kept.
   Flat: radius 0, no shadows, 1px rules, scrim + 1px border on sheets.
   Light is the base; dark follows prefers-color-scheme (BRD-ADR-013, ROT-ADR-003). */
:root {
  --canvas: #F4F6F9; --raised: #FFFFFF; --shell: #EDF1F6; --well: #EAEEF4; --hover: #E9EEF5;
  --line: #D8DFE9; --line-strong: #B9C4D4;
  --ink: #1C2432; --muted: #5B6B80; --faint: #7A8A9F; --on-solid: #FFFFFF;
  --accent: #0B6B70; --accent-solid: #0B6B70; --accent-tint: #E2EDEE;
  --ok: #1E7A46; --ok-tint: #1E7A461A; --warn: #8A6400; --warn-tint: #8A64001A;
  --danger: #BE2F3C; --danger-tint: #BE2F3C1A; --scrim: rgba(23, 30, 42, 0.4);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #07090C; --raised: #0E1218; --shell: #0A0D12; --well: #050608; --hover: #141A22;
    --line: #1E2530; --line-strong: #313B4A;
    --ink: #E7ECF3; --muted: #8B9BB0; --faint: #5E6E84;
    --accent: #4CC9C0; --accent-solid: #0B6B70; --accent-tint: #1A3538;
    --ok: #7FD99A; --ok-tint: #7FD99A1F; --warn: #E6C07B; --warn-tint: #E6C07B1F;
    --danger: #F57F7C; --danger-tint: #F57F7C1F; --scrim: rgba(6, 9, 13, 0.65);
  }
}
html, body { height: 100%; margin: 0; background: var(--canvas); color: var(--ink); }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.45; }

/* The shell fills the viewport (the mockup canvas was a fixed 390x844). */
.tk {
  position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink);
}
.tk *, .tk *::before, .tk *::after { box-sizing: border-box; }
.tk a { color: inherit; text-decoration: none; }
.tk :where(button, input) { font: inherit; color: inherit; }

/* glyphs: Lucide outline, stroke 1.5, inherit colour */
.i { width: 24px; height: 24px; flex: none; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 18px; height: 18px; }

/* chrome */
.top { display: flex; align-items: center; gap: 0; min-height: 56px; padding: 4px 4px 4px 16px; background: var(--shell); border-bottom: 1px solid var(--line); flex: none; }
.top.back { padding-left: 0; }
.top h1 { margin: 0; flex: 1; font-size: 20px; font-weight: 600; line-height: 1.2; }
.top .ctx { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 0; padding: 0; background: none; color: var(--ink); cursor: pointer; }
.ib.accent { color: var(--accent); }
.body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; }
.nav { display: flex; height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); flex: none; background: var(--shell); border-top: 1px solid var(--line); }
.nav a { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 2px; background: var(--accent); }
.badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent-solid); color: var(--on-solid); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

/* lists */
.sec { display: flex; align-items: center; gap: 8px; padding: 16px 16px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sec .n { font-weight: 400; color: var(--faint); }
.list { background: var(--raised); border-top: 1px solid var(--line); }
.row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; background: var(--raised); border-bottom: 1px solid var(--line); }
.row.tight { padding-right: 4px; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-size: 16px; }
.row .m { font-size: 14px; color: var(--muted); }
.sel { background: var(--accent-tint); }
.sel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.dis { color: var(--faint); }
.dis .m { color: var(--faint); }

/* week rows */
.wk { position: relative; display: flex; gap: 16px; padding: 12px 16px; background: var(--raised); border-bottom: 1px solid var(--line); }
.wk.me { background: var(--accent-tint); }
.wk.me::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.date { width: 44px; flex: none; display: flex; flex-direction: column; }
.date .d { font-size: 26px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.date .mo { font-size: 13px; color: var(--muted); }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nm { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.you { color: var(--accent); font-weight: 600; }
.out { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.go { align-self: center; color: var(--faint); }

/* status colours (always with a glyph) */
.c-warn { color: var(--warn); } .c-ok { color: var(--ok); } .c-danger { color: var(--danger); } .c-accent { color: var(--accent); } .c-muted { color: var(--muted); }
.stat { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }

/* next up */
.next { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.next::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.next .big { font-size: 20px; font-weight: 600; line-height: 1.25; }
.next .m { font-size: 14px; color: var(--muted); }
.next .cd { margin-left: auto; text-align: right; }
.next .cd .n { display: block; font-size: 26px; font-weight: 600; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.next .cd .u { font-size: 13px; color: var(--muted); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--accent-solid); background: var(--accent-solid); color: var(--on-solid); font-size: 16px; font-weight: 600; cursor: pointer; }
.btn.full { width: 100%; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); font-size: 16px; cursor: pointer; }
.btn.sm, .btn2.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.txt { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-size: 16px; cursor: pointer; }
.txt.danger { color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.inp { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--well); color: var(--ink); font-size: 16px; }
.inp::placeholder { color: var(--muted); }
.inp.focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.inp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.errline { display: flex; align-items: flex-start; gap: 10px; color: var(--danger); font-size: 15px; }
.errline .i { margin-top: 1px; }
.otp-in { text-align: center; min-height: 56px; font-size: 26px; font-weight: 600; letter-spacing: 0.4em; text-indent: 0.4em; font-variant-numeric: tabular-nums; }
.seg { display: flex; border: 1px solid var(--line-strong); }
.seg button { flex: 1; min-height: 44px; border: 0; background: var(--raised); color: var(--muted); font-size: 15px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.sw { position: relative; width: 44px; height: 26px; flex: none; border: 1px solid var(--line-strong); background: var(--well); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--muted); }
.sw.on { background: var(--accent-solid); border-color: var(--accent-solid); }
.sw.on::after { left: 21px; background: var(--on-solid); }

/* overlays: flat sheet, scrim + 1px border, no shadow, no radius */
.layer { position: absolute; inset: 0; }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; background: var(--raised); border-top: 1px solid var(--line-strong); }
.sheet .hd { display: flex; align-items: center; min-height: 56px; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--line); }
.sheet .hd h2 { margin: 0; flex: 1; font-size: 18px; font-weight: 600; }
.sheet .pad { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acts a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; color: var(--ink); font-size: 14px; }
.acts a + a { border-left: 1px solid var(--line); }
.acts a .i { color: var(--accent); }

/* day cells */
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; background: var(--raised); border: 0; cursor: pointer; }
.day .d { font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day .mo { font-size: 12px; color: var(--muted); }
.day.on { background: var(--accent-tint); color: var(--accent); }
.day.on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.day .mk { position: absolute; top: 4px; right: 4px; }
.warnbar { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; background: var(--warn-tint); color: var(--warn); font-size: 15px; }

/* chat */
.msg { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; }
.msg .h { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.msg .h b { font-weight: 600; }
.msg .h span { color: var(--muted); font-size: 13px; }
.msg.mine { background: var(--accent-tint); }
.mention { color: var(--accent); font-weight: 600; }
.evt { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 4px 16px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); background: var(--raised); font-size: 14px; color: var(--muted); }
.evt .grow { flex: 1; }
.daydiv { display: flex; align-items: center; gap: 12px; padding: 12px 16px 4px; font-size: 13px; color: var(--muted); }
.daydiv::before, .daydiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.composer { display: flex; align-items: center; gap: 4px; padding: 8px 4px 8px 16px; background: var(--shell); border-top: 1px solid var(--line); flex: none; }

/* team, rotation, platform (Team.dc.html, InviteSheet.dc.html, Rotation.dc.html) */
.scrim { z-index: 10; }
.sheet { z-index: 11; }
.pr { min-height: 52px; }
.pr .nx { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .stat + .ib, .row .ib + .ib { margin-right: -12px; }
.pr form { margin: 0; display: flex; }
.so > summary { list-style: none; }
.so > summary::-webkit-details-marker { display: none; }
.so > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.so-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--raised); border: 1px solid var(--line-strong); }
.so-panel form { margin: 0; }
.so-panel .acts2 { display: flex; gap: 8px; }
.so-panel .acts2 > * { flex: 1; }
.step { display: flex; align-items: center; border: 1px solid var(--line-strong); }
.step button { width: 48px; height: 48px; border: 0; background: var(--raised); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.step button:disabled { color: var(--faint); cursor: default; }
.step span { min-width: 44px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); line-height: 48px; }
.inp.fit { width: auto; min-width: 9em; }
.pair .pos { width: 28px; flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pair .grip { color: var(--faint); margin-left: -4px; }
.ib:disabled { color: var(--faint); cursor: default; }
.seg label { position: relative; flex: 1; display: flex; }
.seg label + label { border-left: 1px solid var(--line-strong); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { flex: 1; min-height: 48px; display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--muted); font-size: 15px; }
.seg input:checked + span { background: var(--accent-tint); color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.padded { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.savebar { padding: 12px 16px 16px; background: var(--shell); border-top: 1px solid var(--line); flex: none; }
.note { font-size: 14px; color: var(--muted); }

/* draft (Draft.dc.html) */
.dr { min-height: 46px; padding-top: 4px; padding-bottom: 4px; }
.dr .dt { width: 60px; flex: none; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dr .nt { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.donebar { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.pk:hover { background: var(--hover); }

/* schedule (Schedule.dc.html) */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* requests: day sheet, trade sheet, list (DaySheet.dc.html, TradeSheet.dc.html, Requests.dc.html) */
.acts > a, .acts > form > button, .acts > .off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; color: var(--ink); font-size: 14px; }
.acts > form { display: flex; margin: 0; }
.acts > form > button { flex: 1; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.acts > * + * { border-left: 1px solid var(--line); }
.acts > form > button .i, .acts > .off .i { color: var(--accent); }
.acts > .off, .acts > .off .i { color: var(--faint); }
.acts > form > button:focus-visible, .acts > a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pick { cursor: pointer; }
.pick .dt { width: 72px; flex: none; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick .tick { visibility: hidden; color: var(--accent); }
.pick:has(input:checked) { background: var(--accent-tint); }
.pick:has(input:checked) .dt { color: var(--accent); }
.pick:has(input:checked) .nm { font-weight: 600; }
.pick:has(input:checked) .tick { visibility: visible; }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.pick.dis { cursor: default; }
.rq { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; background: var(--raised); border-bottom: 1px solid var(--line); }
.rq .hdr { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.rq .hdr b { color: var(--ink); font-size: 16px; font-weight: 600; }
.rq .hdr .ago { margin-left: auto; font-size: 13px; }
.legs { display: flex; align-items: center; gap: 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
.legs .lg { display: flex; flex-direction: column; }
.legs .lg span { font-size: 13px; color: var(--muted); }
.acts2 { display: flex; gap: 8px; }
.acts2 > * { flex: 1; }
.done { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--ok-tint); color: var(--ok); font-size: 15px; }

/* out sheet (Unavailable.dc.html): works without JavaScript, the inputs drive what shows */
.day { cursor: pointer; }
.day:has(input:checked) { background: var(--accent-tint); color: var(--accent); }
.day:has(input:checked)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.day:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.day.dis { cursor: default; color: var(--muted); }
.day .mk { position: absolute; top: 4px; right: 4px; display: flex; }
.day .ot { position: absolute; top: 4px; left: 4px; display: flex; color: var(--muted); }
.p-dates { display: flex; flex-direction: column; gap: 12px; }
.uf:has(input[name="mode"][value="dates"]:checked) .p-sundays { display: none; }
.uf:not(:has(input[name="mode"][value="dates"]:checked)) .p-dates { display: none; }
.uf .clash { display: none; }
.uf:has(.day.mine input:checked) .clash { display: flex; }
.uf:has(input[name="mode"][value="dates"]:checked) .clash { display: flex; }
.uf .cl { display: none; }
.uf:has(input[name="mode"][value="dates"]:checked) .cl { display: none !important; }
.uf:has(.day.k0 input:checked) .cl.k0, .uf:has(.day.k1 input:checked) .cl.k1, .uf:has(.day.k2 input:checked) .cl.k2,
.uf:has(.day.k3 input:checked) .cl.k3, .uf:has(.day.k4 input:checked) .cl.k4, .uf:has(.day.k5 input:checked) .cl.k5,
.uf:has(.day.k6 input:checked) .cl.k6, .uf:has(.day.k7 input:checked) .cl.k7 { display: flex; }
.row input:checked + .sw { background: var(--accent-solid); border-color: var(--accent-solid); }
.row input:checked + .sw::after { left: 21px; background: var(--on-solid); }
.row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }

/* team chat (Chat.dc.html; Task 13) */
.chatlog { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; background: var(--raised); }
.msg { position: relative; }
.msg .mb { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.can-del .h, .msg.can-del .mb { padding-right: 40px; }
.msg .del { position: absolute; top: 0; right: 4px; color: var(--muted); }
.msg .dconf { display: flex; align-items: center; gap: 4px; min-height: 48px; font-size: 15px; }
.msg .dconf span { flex: 1; }
.evt .act { display: flex; align-items: center; flex: none; font-size: 15px; }
.evt .act.fin { padding: 0 12px; color: var(--muted); font-size: 14px; }
.evt .act form { margin: 0; }
.evt .act .txt { padding: 0 12px; }
.chatmore { display: flex; justify-content: center; }
.chatnew { position: sticky; bottom: 8px; align-self: center; z-index: 2; padding: 0 16px; border: 1px solid var(--accent); background: var(--raised); }
.composer { position: relative; }
.composer .errline { position: absolute; left: 0; right: 0; bottom: 100%; padding: 8px 16px; background: var(--shell); border-top: 1px solid var(--line); }
.mentionlist { position: absolute; left: 0; right: 0; bottom: 100%; z-index: 3; margin: 0; padding: 0; list-style: none; background: var(--raised); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); max-height: 240px; overflow-y: auto; }
.mentionlist li { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; }
.mentionlist li[aria-selected="true"], .mentionlist li:hover { background: var(--accent-tint); color: var(--accent); }
.chatlog [hidden], .composer [hidden] { display: none !important; }

/* notification choices (Notifications.dc.html; Task 14) */
.nh { display: flex; align-items: center; padding: 12px 4px 4px 16px; color: var(--muted); }
.nh .grow { flex: 1; font-size: 13px; font-weight: 600; }
.nh .col { width: 52px; display: flex; justify-content: center; }
.nr { display: flex; align-items: center; min-height: 52px; padding: 2px 4px 2px 16px; background: var(--raised); border-bottom: 1px solid var(--line); }
.nr .grow { flex: 1; min-width: 0; }
.tg { width: 52px; height: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; color: var(--faint); }
.tg[aria-pressed="true"] { color: var(--accent); }
.tg[disabled] { cursor: default; opacity: .45; }
.tg .g-on { display: none; }
.tg[aria-pressed="true"] .g-on { display: block; }
.tg[aria-pressed="true"] .g-off { display: none; }
.tg:focus-visible, .swb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.swb { min-width: 48px; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; cursor: pointer; }
.swb[disabled] { cursor: default; opacity: .45; }
.swb[aria-checked="true"] .sw { background: var(--accent-solid); border-color: var(--accent-solid); }
.swb[aria-checked="true"] .sw::after { left: 21px; background: var(--on-solid); }
.pushnote { padding: 12px 16px; background: var(--raised); border-bottom: 1px solid var(--line); font-size: 15px; }
.pushnote ol { margin: 8px 0 0; padding-left: 20px; }
.pushnote li { margin: 4px 0; }
.pushnote[hidden] { display: none; }
.pushhelp { padding: 12px 16px; }

/* Me (Me.dc.html; Task 16) */
.rowbtn { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rowbtn:focus-visible, a.row:focus-visible, .txt:focus-visible, .btn2:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
a.txt { text-decoration: none; }
a.btn2 { text-decoration: none; }
.btn2.danger { color: var(--danger); border-color: var(--danger); }
.btn2.full { width: 100%; box-sizing: border-box; }

/* time sheet (ROT-ADR-066, public/timesheet.js): Starts opens a bottom sheet of quarter-hour times, four to a row */
.tsb { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; cursor: pointer; }
.tsb::after { content: ""; width: 7px; height: 7px; flex: none; margin: -3px 2px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.tsb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ts-sheet { max-height: 85%; }
.ts-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ts-cell { position: relative; min-height: 48px; padding: 0 4px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.ts-cell.on { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.ts-cell.on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.ts-cell:last-child, .ts-cell:nth-child(4n) { border-right-color: transparent; }
.ts-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ts-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); flex: none; }
