/* Layout: single phone-width column, step-by-step flow; a demo switch flips between member and coach sides */
:root {
  --bg: #F3F6F7;
  --surface: #FFFFFF;
  --ink: #132530;
  --muted: #5B6C76;
  --line: #D9E1E5;
  --tennis: #B8512A;
  --swim: #1C6A9E;
  --accent: var(--tennis);
  --ok: #2E7D4F;
  --ok-soft: #E3F2E8;
  --warn: #9A6A10;
  --warn-soft: #FBF0D9;
  --bad: #A8322D;
  --bad-soft: #F8E3E1;
  --sms: #E6EBEE;
  --off: #1C2228;
  --off-line: #1C2228;
  /* schedule states: one hue each so they read at a glance */
  --st-open: #DDF2E4; --st-open-line: #4FA56E; --st-open-ink: #1E5634;
  --st-booked: #2B5C9E; --st-booked-ink: #FFFFFF;
  --st-pend-a: #F2B33D; --st-pend-b: #FCEBC4; --st-pend-line: #C98A16; --st-pend-ink: #4A3300;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E171D; --surface: #16232B; --ink: #E7EEF1; --muted: #93A5AF; --line: #2A3A44;
    --tennis: #E07A4F; --swim: #5AA8DB;
    --ok: #6CC48F; --ok-soft: #173326; --warn: #E2B455; --warn-soft: #3A2E14; --bad: #EE7F78; --bad-soft: #3D1E1C;
    --sms: #22323B; --off: #000000; --off-line: #3A4A54;
    --st-open: #163B25; --st-open-line: #46A266; --st-open-ink: #BFEBCD;
    --st-booked: #5B8FD6; --st-booked-ink: #0B1724;
    --st-pend-a: #D69A26; --st-pend-b: #3A2E14; --st-pend-line: #E2B455; --st-pend-ink: #FFF4DA; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E171D; --surface: #16232B; --ink: #E7EEF1; --muted: #93A5AF; --line: #2A3A44;
  --tennis: #E07A4F; --swim: #5AA8DB;
  --ok: #6CC48F; --ok-soft: #173326; --warn: #E2B455; --warn-soft: #3A2E14; --bad: #EE7F78; --bad-soft: #3D1E1C;
  --sms: #22323B; --off: #000000; --off-line: #3A4A54;
    --st-open: #163B25; --st-open-line: #46A266; --st-open-ink: #BFEBCD;
    --st-booked: #5B8FD6; --st-booked-ink: #0B1724;
    --st-pend-a: #D69A26; --st-pend-b: #3A2E14; --st-pend-line: #E2B455; --st-pend-ink: #FFF4DA; color-scheme: dark;
}
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
body.swim { --accent: var(--swim); }
body { --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface)); --open: color-mix(in srgb, var(--accent) 13%, var(--surface)); --open-line: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
* { box-sizing: border-box; }
.wrap { max-width: 540px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 48px; display: flex; flex-direction: column; gap: 18px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--tennis) 0 50%, var(--swim) 50% 100%); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 0.82rem var(--body); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.progress { display: flex; gap: 6px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, .label { font-weight: 600; font-size: 0.9rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

.sport-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sport { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 14px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 4px; }
.sport strong { font-family: var(--display); font-size: 1.15rem; }
.sport[aria-pressed="true"].t { border-color: var(--tennis); background: color-mix(in srgb, var(--tennis) 10%, var(--surface)); }
.sport[aria-pressed="true"].s { border-color: var(--swim); background: color-mix(in srgb, var(--swim) 10%, var(--surface)); }

.choice { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.choice:hover { border-color: var(--accent); }
.choice strong { font-family: var(--display); font-size: 1.1rem; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.btn { font: 600 1rem var(--body); border-radius: 10px; padding: 12px 16px; cursor: pointer; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: none; border-color: var(--line); color: var(--ink); }
.btn.ok { background: var(--ok); color: var(--surface); }
.btn.bad { background: none; border-color: var(--bad); color: var(--bad); }
.btn.sm { font-size: 0.85rem; padding: 7px 12px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn.primary { flex: 1; }
.back { background: none; border: 0; color: var(--muted); font: 600 0.88rem var(--body); cursor: pointer; padding: 0; align-self: flex-start; }

.coach { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.avatar { object-fit: cover; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--display); color: #fff; background: var(--accent); }
.coach-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }

.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: 0 0 auto; min-width: 58px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 6px; text-align: center; cursor: pointer; font: inherit; }
.day b { display: block; font-family: var(--display); font-size: 1.15rem; }
.day small { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.day[aria-pressed="true"] small { color: #fff; }
.day:disabled { opacity: 0.4; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 10px; padding: 10px 6px; font: 600 0.95rem var(--body); cursor: pointer; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot small { font-weight: 500; font-size: 0.72rem; color: var(--muted); }
.slot:hover { background: var(--accent-soft); }
.empty { padding: 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }

.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); border-radius: 10px; padding: 12px; font-size: 0.9rem; }
.notice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }

.sms { background: var(--bg); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.sms-head { font-size: 0.75rem; color: var(--muted); text-align: center; }
.bubble { background: var(--sms); border-radius: 16px 16px 16px 4px; padding: 10px 13px; max-width: 88%; font-size: 0.92rem; white-space: pre-line; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 16px 16px 4px 16px; }

.pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.denied { background: var(--bad-soft); color: var(--bad); }
.req { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.contact-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.contact-line span { user-select: all; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.copy { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; font: 600 0.75rem var(--body); padding: 4px 8px; cursor: pointer; flex: 0 0 auto; }

.grid-wrap { overflow-x: auto; }
.legend { display: flex; gap: 6px 14px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }
.weeknav { display: flex; gap: 6px; }
.weeknav .btn:disabled { opacity: 0.4; cursor: default; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.stats b { font: 700 1.4rem var(--display); font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.78rem; color: var(--muted); }
.cal { display: grid; grid-template-columns: 46px repeat(7, minmax(42px, 1fr)); gap: 3px; min-width: 360px; }
.cal .corner { }
.cal .dh { text-align: center; padding-bottom: 4px; display: flex; flex-direction: column; line-height: 1.2; }
.cal .dh small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.cal .dh b { font: 700 1rem var(--display); }
.cal .dh.today b { color: var(--accent); }
.cal .dh.today small { color: var(--accent); }
.cal .th { font-size: 0.68rem; color: var(--muted); text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; align-self: center; white-space: nowrap; }
.cell { height: 32px; border-radius: 6px; border: 1px solid transparent; font: 600 0.7rem var(--body); padding: 0 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal.swim .cell { height: 24px; }
.cell.open, .sw.open { background: var(--st-open); border-color: var(--st-open-line); color: var(--st-open-ink); }
.cell.booked, .sw.booked { background: var(--st-booked); border-color: var(--st-booked); color: var(--st-booked-ink); }
.cell.pending, .sw.pending { background: repeating-linear-gradient(135deg, var(--st-pend-a) 0 5px, var(--st-pend-b) 5px 10px); border-color: var(--st-pend-line); color: var(--st-pend-ink); }
.cell.pending { text-shadow: 0 0 3px var(--st-pend-b); }
.cell.off, .sw.off { background: var(--off); border-color: var(--off-line); }
.cell:active:not(:disabled), .btn:active:not(:disabled), .opt:active, .tier:active { transform: scale(0.96); }
.cell, .btn, .opt, .tier { transition: transform 0.06s ease-out, filter 0.1s; touch-action: manipulation; }
.btn:disabled { opacity: 0.6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .cell, .btn, .opt, .tier { transition: none; } .cell:active, .btn:active, .opt:active, .tier:active { transform: none; } }
.cell.past { opacity: 0.4; cursor: default; }
.cell:not(.past):hover { filter: brightness(0.95); }
.pill.weekly { background: var(--accent-soft); color: var(--accent); }
.sheet-back { position: fixed; inset: 0; background: color-mix(in srgb, #000 45%, transparent); display: flex; align-items: flex-end; justify-content: center; z-index: 20; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 600px) { .sheet-back { align-items: center; } }
.sheet { background: var(--surface); border-radius: 16px; padding: 20px; width: 100%; max-width: 460px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 2px; width: 100%; }
.opt:hover { border-color: var(--accent); }
.opt span { font-size: 0.85rem; color: var(--muted); }
.btn.link { background: none; border: 0; color: var(--muted); padding: 8px 4px; }
input[aria-invalid="true"] { border-color: var(--bad); }
.signup-cta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick .stack { min-width: 0; align-items: flex-start; gap: 6px; }
.photo-preview { width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto; border: 1.5px dashed var(--line); background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { display: inline-block; }
.vh:focus-visible + * , .file-btn:has(+ .vh:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-weight: 600; }
.mail { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mail-head { background: var(--bg); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; border-bottom: 1px solid var(--line); }
.mail-head div { overflow-wrap: anywhere; }
.mail-head span { display: inline-block; width: 64px; color: var(--muted); }
.mail-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.tag.tier-tag { background: var(--ink); color: var(--bg); }
.label-row { display: flex; align-items: center; gap: 8px; }
.help-btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); font: 700 0.85rem var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; flex: 0 0 auto; }
.help-btn[aria-expanded="true"] { background: var(--accent); color: #fff; }
.help { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.help h3 { font-size: 0.95rem; font-weight: 700; }
.help ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.field-err { color: var(--bad); font-weight: 600; }
.tier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tier { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 12px; font: 600 0.95rem var(--body); cursor: pointer; text-align: center; }
.tier[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.invite { display: grid; grid-template-columns: 58px 1fr; gap: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px; background: var(--bg); }
.invite.cancelled { border-left-color: var(--bad); }
.invite.cancelled .inv-body b { text-decoration: line-through; }
.inv-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; line-height: 1.15; }
.inv-date small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.inv-date b { font: 700 1.4rem var(--display); }
.inv-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.9rem; }
.inv-body span { color: var(--muted); }
.inv-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inv-actions span { font-size: 0.8rem; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; color: var(--muted); }
.settings-row { border-top: 1px solid var(--line); padding-top: 12px; }
select:disabled { opacity: 0.6; }
.demo-note { font-size: 0.82rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .panel { animation: rise .25s ease-out; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }

/* page basics (the prototype got these from its host) */
html, body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.footer { text-align: center; font-size: 0.85rem; color: var(--muted); }
.footer a { color: var(--muted); }
.loading { padding: 24px; text-align: center; color: var(--muted); }
.banner { border-radius: 10px; padding: 12px; font-size: 0.9rem; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; display: inline-block; text-align: center; }
.code-input { font-size: 1.5rem !important; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; text-align: center; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.linkish:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.sheet.working { pointer-events: none; opacity: 0.7; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-bar a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pill.admin { background: var(--ink); color: var(--bg); }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
a.choice { text-decoration: none; color: inherit; display: block; }
.tag.warn-tag { background: var(--warn-soft); color: var(--warn); }
.tag.pend-tag { background: var(--st-pend-b); color: var(--st-pend-ink); border: 1px solid var(--st-pend-line); }
/* photo picker (admin add-coach) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick .stack { min-width: 0; align-items: flex-start; gap: 6px; }
.photo-preview { width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto; border: 1.5px dashed var(--line); background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
label.btn:has(+ .vh:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; resize: vertical; }
.settings-row.req-top { flex-wrap: nowrap; align-items: flex-start; }
.settings-row.req-top > div { min-width: 0; overflow-wrap: anywhere; }
.settings-row.req-top > .btn { flex: 0 0 auto; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.approver-pick { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.approver-pick .tier { font-size: 0.85rem; padding: 10px; }

.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tabs a { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs a.on { background: var(--ink); color: var(--bg); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 0.85rem var(--body); cursor: pointer; }
.chip[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--bg); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.tile b { font: 700 1.6rem var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile small { color: var(--muted); font-size: 0.8rem; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data .num { text-align: right; }
input[type=search], input[type=number] { font: 400 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-weight: 600; color: var(--muted); }
