/* Tend design system. One file, no build step, no framework.
   Calm neutrals; colour only for state. Light + dark. */

@font-face { font-family: "Geist"; src: url(../fonts/geist-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #F4F2EC;
  --surface: #FFFFFF;
  --surface-2: #FAF9F6;
  --surface-3: #F0EDE6;
  --sidebar: #EDEAE2;
  --line: #E3E0D6;
  --line-soft: #ECE9E1;
  --line-strong: #D6D1C4;
  --ink: #1C211D;
  --ink-2: #3A403A;
  --muted: #5E645D;
  --faint: #8A8F88;
  --brand: #2F5D46;
  --brand-hover: #264D3A;
  --brand-soft: #E6EFE9;
  --on-brand: #FFFFFF;
  --focus: #2F5D46;

  --red: #B3261E;   --red-bg: #FBE9E7;   --red-ink: #8F2219;
  --amber: #C77A12; --amber-bg: #FBF0DC; --amber-ink: #7D4505;
  --green: #2F7A4D; --green-bg: #E6F1EA; --green-ink: #1F5A37;
  --blue: #2F5E8C;  --blue-bg: #E6EEF6;  --blue-ink: #244C74;
  --fig: #6E3350;   --fig-bg: #F3E8EE;   --fig-ink: #5A2941;
  --grey: #4A504A;  --grey-bg: #EEEDE8;  --grey-ink: #3F453F;

  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 13px;
  --shadow-sm: 0 1px 2px rgba(28, 33, 29, .06);
  --shadow: 0 1px 2px rgba(28, 33, 29, .05), 0 6px 20px rgba(28, 33, 29, .06);
  --shadow-lg: 0 18px 50px rgba(28, 33, 29, .18), 0 2px 8px rgba(28, 33, 29, .08);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Numbers use the UI face with aligned digits; true monospace is only for code, CSV and keys. */
  --mono: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sidebar-w: 236px;
  --chart-1: #2A66B0;
  --chart-2: #C0662B;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131614; --surface: #1B1F1C; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18;
    --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B;
    --ink: #ECEEE9; --ink-2: #D2D6CF; --muted: #A2A99F; --faint: #7D847A;
    --brand: #7FB394; --brand-hover: #95C4A7; --brand-soft: #22322A; --on-brand: #0F1712; --focus: #7FB394;
    --red: #F08A80; --red-bg: #3A1E1B; --red-ink: #F6B0A8;
    --amber: #E8A94F; --amber-bg: #372913; --amber-ink: #F1C584;
    --green: #7FC49A; --green-bg: #1B3325; --green-ink: #A6DAB9;
    --blue: #8FB6E0; --blue-bg: #1B2A3B; --blue-ink: #B5D0EE;
    --fig: #D896B6; --fig-bg: #34202A; --fig-ink: #EBBCD2;
    --grey: #B5BAB2; --grey-bg: #2A2F2B; --grey-ink: #CDD1CA;
    --chart-1: #5B95DB; --chart-2: #CB7E46;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131614; --surface: #1B1F1C; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18;
  --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B;
  --ink: #ECEEE9; --ink-2: #D2D6CF; --muted: #A2A99F; --faint: #7D847A;
  --brand: #7FB394; --brand-hover: #95C4A7; --brand-soft: #22322A; --on-brand: #0F1712; --focus: #7FB394;
  --red: #F08A80; --red-bg: #3A1E1B; --red-ink: #F6B0A8;
  --amber: #E8A94F; --amber-bg: #372913; --amber-ink: #F1C584;
  --green: #7FC49A; --green-bg: #1B3325; --green-ink: #A6DAB9;
  --blue: #8FB6E0; --blue-bg: #1B2A3B; --blue-ink: #B5D0EE;
  --fig: #D896B6; --fig-bg: #34202A; --fig-ink: #EBBCD2;
  --grey: #B5BAB2; --grey-bg: #2A2F2B; --grey-ink: #CDD1CA;
  --chart-1: #5B95DB; --chart-2: #CB7E46;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }
.icon { flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.danger-text { color: var(--red); }
.warn-text { color: var(--amber-ink); }
.ok-text { color: var(--green-ink); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.eyebrow { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Layout helpers */
.row { display: flex; align-items: center; gap: 10px; }
.row.tight { gap: 6px; } .row.wide { gap: 16px; } .row.top { align-items: flex-start; } .row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; } .stack.wide { gap: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1 1 auto; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1100px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main, .grid-side { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--sidebar) var(--sidebar-w), transparent 0); }
@media (max-width: 900px) { .shell { background: none; } }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; z-index: 30; }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 12px; }
.sb-logo { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font: italic 400 17px var(--serif); flex-shrink: 0; overflow: hidden; }
.sb-logo img { width: 100%; height: 100%; object-fit: cover; }
.sb-prop { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sb-prop strong { font-size: 13.5px; font-weight: 600; }
.sb-prop span { font-size: 12px; color: var(--muted); }
.sb-switch { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border-radius: 8px; }
.sb-search { margin: 0 12px 10px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; cursor: pointer; width: calc(100% - 24px); text-align: left; }
.sb-search:hover { border-color: var(--faint); }
.sb-search kbd { margin-left: auto; }
.sb-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* The sidebar scrolls when the window is short; nothing inside it may be squashed. */
.sidebar > * { flex-shrink: 0; }
.sidebar .sb-foot { margin-top: auto; }
@media (hover: none) { .sb-search kbd { display: none; } }
.sb-nav { display: flex; flex-direction: column; gap: 1px; padding: 4px 8px; }
.sb-link { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); position: relative; }
.sb-link:hover { background: rgba(0,0,0,.035); color: var(--ink); }
:root[data-theme="dark"] .sb-link:hover { background: rgba(255,255,255,.04); }
.sb-link.active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.sb-link .count { margin-left: auto; font: 500 11.5px var(--mono); padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.sb-link .count.warn { background: var(--amber-bg); color: var(--amber-ink); }
.sb-section { padding: 16px 18px 6px; }
.sb-foot { margin-top: auto; padding: 10px 8px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.sb-user:hover { background: rgba(0,0,0,.035); }
.sb-user .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sb-user .who strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.sb-user .who span { font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 24px 32px 48px; max-width: 1480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.content.full { max-width: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.page-title { font: 400 30px/1.12 var(--serif); letter-spacing: -.01em; }
.page-sub { color: var(--muted); font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; max-width: 100%; min-width: 0; }
.page-actions .tabs { max-width: 100%; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .topbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .title { font-weight: 600; font-size: 15px; flex: 1; min-width: 0; }
  .content { padding: 16px 16px 96px; gap: 14px; }
  .page-title { font-size: 25px; }
  .page-head { align-items: flex-start; }
}
.scrim { display: none; position: fixed; inset: 0; background: rgba(15,18,16,.35); z-index: 25; }

/* Bottom tab bar for phones */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
  .tabbar a, .tabbar button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; font-size: 11px; font-weight: 500; color: var(--muted); border-radius: 10px; }
  .tabbar .active { color: var(--brand); }
  .tabbar .fab { color: var(--on-brand); }
  .tabbar .fab span.fab-dot { width: 44px; height: 32px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 13px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s; user-select: none; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }
.btn:active { transform: translateY(.5px); }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn-block { width: 100%; }
kbd { font: 500 11px var(--mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); color: var(--muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 14px var(--font); transition: border-color .12s, box-shadow .12s; }
.textarea { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E645D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input-sm, .select-sm { height: 32px; font-size: 13px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.checkbox { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .input, .select { height: 44px; font-size: 16px; } .textarea { font-size: 16px; } .btn { height: 40px; } .btn-sm { height: 34px; } }

/* Choice chips (radio/checkbox styled as pills) */
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice > span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; background: var(--surface); cursor: pointer; }
.choice input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); min-height: 50px; }
.card-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-body { padding: 14px 18px; }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface-3); font-size: 13px; line-height: 1.5; }
.callout.fig { background: var(--fig-bg); color: var(--fig-ink); }
.callout.red { background: var(--red-bg); color: var(--red-ink); }
.callout.amber { background: var(--amber-bg); color: var(--amber-ink); }
.callout.blue { background: var(--blue-bg); color: var(--blue-ink); }
.callout.green { background: var(--green-bg); color: var(--green-ink); }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kpi { display: flex; flex-direction: column; gap: 5px; padding: 15px 18px; color: inherit; border-left: 1px solid var(--line-soft); min-width: 0; }
.kpi:first-child { border-left: 0; }
a.kpi:hover { background: var(--surface-2); color: inherit; }
.kpi .v { display: flex; align-items: baseline; gap: 6px; }
.kpi .v b { font: 500 27px/1.1 var(--mono); letter-spacing: -.02em; }
.kpi .v small { color: var(--muted); font-size: 13px; }
.kpi .s { font-size: 12.5px; color: var(--muted); }
.kpi .s.red { color: var(--red); } .kpi .s.amber { color: var(--amber-ink); } .kpi .s.green { color: var(--green-ink); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi:nth-child(4) { border-left: 0; } .kpi:nth-child(n+4) { border-top: 1px solid var(--line-soft); } }
@media (max-width: 680px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { border-left: 0; border-top: 1px solid var(--line-soft); } .kpi:nth-child(-n+2) { border-top: 0; } .kpi:nth-child(even) { border-left: 1px solid var(--line-soft); } .kpi .v b { font-size: 23px; } }

/* ---------- Pills, badges, avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--grey-bg); color: var(--grey-ink); }
.pill.sm { height: 19px; font-size: 11px; padding: 0 7px; }
.pill.red { background: var(--red-bg); color: var(--red-ink); }
.pill.amber { background: var(--amber-bg); color: var(--amber-ink); }
.pill.green { background: var(--green-bg); color: var(--green-ink); }
.pill.blue { background: var(--blue-bg); color: var(--blue-ink); }
.pill.fig { background: var(--fig-bg); color: var(--fig-ink); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.outline { background: transparent; border: 1px solid var(--line-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--faint); }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.green { background: var(--green); } .dot.blue { background: var(--blue); } .dot.fig { background: var(--fig); } .dot.brand { background: var(--brand); }
.prio { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; background: var(--line-strong); }
.prio.urgent { background: var(--red); } .prio.high { background: var(--amber); } .prio.normal { background: var(--faint); } .prio.low { background: var(--line-strong); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff; flex-shrink: 0; letter-spacing: .02em; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }
.avatar.sm { width: 20px; height: 20px; font-size: 9px; }
.avatar-empty { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--faint); }
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 600 10.5px/18px var(--mono); text-align: center; }

/* ---------- Lists / tables ---------- */
.list { display: flex; flex-direction: column; }
.list-group { display: flex; align-items: center; gap: 8px; padding: 9px 16px 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 1; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); color: inherit; min-height: 54px; }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover, .list-row.clickable:hover { background: var(--surface-2); color: inherit; cursor: pointer; }
.list-row.selected { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.list-row .title { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.list-row .meta { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable:hover td { background: var(--surface-2); cursor: pointer; }
.table .right { text-align: right; }
@media (max-width: 680px) {
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: 12px; }
}

/* Tabs / segmented control / filter chips */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 10px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); }
.tab .n { font: 400 11.5px var(--mono); color: var(--muted); }
.underline-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.underline-tabs a { padding: 10px 0; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.underline-tabs a.active { color: var(--ink); border-bottom-color: var(--brand); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--ink-2); background: transparent; cursor: pointer; }
.chip.on { border-style: solid; background: var(--surface); color: var(--ink); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .search { position: relative; }
.toolbar .search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toolbar .search .input { padding-left: 32px; width: 240px; height: 34px; }
@media (max-width: 680px) { .toolbar .search, .toolbar .search .input { width: 100%; } .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; } }

/* Progress */
.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--brand); }
.bar > span.amber { background: var(--amber); } .bar > span.red { background: var(--red); } .bar > span.blue { background: var(--blue); }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.empty .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); margin-bottom: 4px; }
.empty strong { color: var(--ink); font-size: 14.5px; font-weight: 600; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 11px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 25px; height: 25px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; z-index: 1; }
.tl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; }
.tl-body .who { font-size: 13px; }
.tl-body .when { font-size: 11.5px; color: var(--faint); }
.tl-comment { margin-top: 5px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; }

/* Drawer + modal */
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,18,16,.28); z-index: 60; opacity: 0; transition: opacity .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); box-shadow: var(--shadow-lg); z-index: 61; display: flex; flex-direction: column; transform: translateX(24px); opacity: 0; transition: transform .22s var(--ease), opacity .18s; }
.drawer.open { transform: none; opacity: 1; }
.drawer-scrim.open { opacity: 1; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; background: var(--surface-2); }
dialog.modal { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(15,18,16,.35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.modal-body { padding: 16px 20px; }
.modal-foot { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 680px) { dialog.modal { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; } }

/* Menus */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 5px; z-index: 50; display: none; }
.menu.open .menu-pop { display: block; }
.menu-pop.left { left: 0; right: auto; }
.menu-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--ink); cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-3); color: var(--ink); }
.menu-item.danger { color: var(--red); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 4px 0; }
.menu-label { padding: 6px 10px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 13.5px; box-shadow: var(--shadow-lg); animation: toast-in .22s var(--ease); max-width: calc(100vw - 32px); }
.toast.error { background: var(--red); color: #fff; }
.toast a, .toast button { color: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: underline; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 900px) { .toasts { bottom: 84px; } }

/* Command palette */
.cmdk { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(15,18,16,.35); }
.cmdk.open { display: flex; }
.cmdk-box { width: min(620px, calc(100vw - 24px)); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.cmdk-input input { flex: 1; height: 54px; border: 0; outline: none; font: 400 16px var(--font); background: transparent; color: var(--ink); }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--ink); cursor: pointer; }
.cmdk-item.active { background: var(--surface-3); }
.cmdk-item .sub { font-size: 12px; color: var(--muted); }
.cmdk-group { padding: 8px 11px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Flash */
.flash { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.flash.success { background: var(--green-bg); color: var(--green-ink); }
.flash.error { background: var(--red-bg); color: var(--red-ink); }
.flash.info { background: var(--blue-bg); color: var(--blue-ink); }

/* ---------- Bare pages (sign-in, setup, guest) ---------- */
.bare { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 40px; }
.bare-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.bare-card.wide { width: min(720px, 100%); }
.brand-mark { display: flex; align-items: center; gap: 10px; font: italic 400 22px var(--serif); color: var(--ink); }
.brand-mark .sb-logo { width: 38px; height: 38px; font-size: 19px; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); }
.steps span.on { background: var(--brand); }
.req { display: flex; align-items: center; gap: 8px; font-size: 13px; }

@media print {
  .sidebar, .topbar, .tabbar, .page-actions, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { border-color: #ccc; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Thumbnails */
.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-3); }
.thumb-link { display: inline-block; }

/* Charts */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font: 400 9.5px var(--font); }
.chart .s1 { stroke: var(--chart-1); } .chart .s2 { stroke: var(--chart-2); }
.chart .f1 { fill: var(--chart-1); } .chart .f2 { fill: var(--chart-2); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hover-line { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; opacity: 0; transition: opacity .1s; white-space: nowrap; z-index: 2; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Room numbers: the UI face, semibold, aligned digits (not monospace). */
.room-no { font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- Colour themes (Settings → Property → Theme). Fig green is the default :root palette. ---------- */
:root[data-palette="ocean"] { --brand: #1F5F8B; --brand-hover: #184D71; --brand-soft: #E4EEF6; --focus: #1F5F8B; --bg: #F2F5F7; --surface-2: #F8FAFB; --surface-3: #EBF0F3; --sidebar: #E7EDF1; --line: #DCE3E8; --line-soft: #E6EBEF; --line-strong: #CBD5DD; }
@media (prefers-color-scheme: dark) { :root[data-palette="ocean"]:not([data-theme="light"]) { --brand: #7FB0DA; --brand-hover: #9CC3E4; --brand-soft: #1C2B38; --on-brand: #0E1720; --focus: #7FB0DA; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; } }
:root[data-palette="ocean"][data-theme="dark"] { --brand: #7FB0DA; --brand-hover: #9CC3E4; --brand-soft: #1C2B38; --on-brand: #0E1720; --focus: #7FB0DA; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; }
:root[data-palette="lagoon"] { --brand: #1E6B68; --brand-hover: #175654; --brand-soft: #E2F0EF; --focus: #1E6B68; --bg: #F1F5F4; --surface-2: #F8FBFA; --surface-3: #E9F0EF; --sidebar: #E5EDEC; --line: #D9E3E1; --line-soft: #E4EBEA; --line-strong: #C7D5D3; }
@media (prefers-color-scheme: dark) { :root[data-palette="lagoon"]:not([data-theme="light"]) { --brand: #7FC3BE; --brand-hover: #9AD2CD; --brand-soft: #1B3130; --on-brand: #0D1918; --focus: #7FC3BE; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; } }
:root[data-palette="lagoon"][data-theme="dark"] { --brand: #7FC3BE; --brand-hover: #9AD2CD; --brand-soft: #1B3130; --on-brand: #0D1918; --focus: #7FC3BE; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; }
:root[data-palette="terracotta"] { --brand: #9A4A2A; --brand-hover: #7E3C22; --brand-soft: #F5E9E3; --focus: #9A4A2A; --bg: #F6F2EE; --surface-2: #FBF8F6; --surface-3: #F0E9E3; --sidebar: #EEE6DF; --line: #E6DCD3; --line-soft: #EEE6DF; --line-strong: #D9CCC0; }
@media (prefers-color-scheme: dark) { :root[data-palette="terracotta"]:not([data-theme="light"]) { --brand: #E0A07E; --brand-hover: #E9B597; --brand-soft: #37241B; --on-brand: #1B110C; --focus: #E0A07E; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; } }
:root[data-palette="terracotta"][data-theme="dark"] { --brand: #E0A07E; --brand-hover: #E9B597; --brand-soft: #37241B; --on-brand: #1B110C; --focus: #E0A07E; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; }
:root[data-palette="plum"] { --brand: #6E3350; --brand-hover: #5A2941; --brand-soft: #F3E8EE; --focus: #6E3350; --bg: #F6F2F3; --surface-2: #FBF8F9; --surface-3: #F0E8EC; --sidebar: #EEE5E9; --line: #E6DADF; --line-soft: #EEE5E9; --line-strong: #D8C8CF; }
@media (prefers-color-scheme: dark) { :root[data-palette="plum"]:not([data-theme="light"]) { --brand: #D896B6; --brand-hover: #E3AEC7; --brand-soft: #34202A; --on-brand: #1B0F15; --focus: #D896B6; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; } }
:root[data-palette="plum"][data-theme="dark"] { --brand: #D896B6; --brand-hover: #E3AEC7; --brand-soft: #34202A; --on-brand: #1B0F15; --focus: #D896B6; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; }
:root[data-palette="graphite"] { --brand: #2E3338; --brand-hover: #1E2226; --brand-soft: #E9EBED; --focus: #2E3338; --bg: #F4F4F3; --surface-2: #FAFAF9; --surface-3: #EDEDEB; --sidebar: #EAEAE8; --line: #E1E1DE; --line-soft: #EAEAE7; --line-strong: #D2D2CE; }
@media (prefers-color-scheme: dark) { :root[data-palette="graphite"]:not([data-theme="light"]) { --brand: #C9CED3; --brand-hover: #DDE1E4; --brand-soft: #2A2E32; --on-brand: #121416; --focus: #C9CED3; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; } }
:root[data-palette="graphite"][data-theme="dark"] { --brand: #C9CED3; --brand-hover: #DDE1E4; --brand-soft: #2A2E32; --on-brand: #121416; --focus: #C9CED3; --bg: #131614; --surface-2: #202521; --surface-3: #262B27; --sidebar: #171A18; --line: #2E342F; --line-soft: #272C28; --line-strong: #3A413B; }
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-swatch { position: relative; }
.theme-swatch input { position: absolute; opacity: 0; inset: 0; }
.theme-swatch > span { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; }
.theme-swatch i { display: flex; height: 34px; border-radius: 7px; overflow: hidden; }
.theme-swatch i b { flex: 1; }
.theme-swatch input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.theme-swatch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Sidebar saved views + PMS sync card */
.sb-view { height: 32px; font-size: 13px; }
.sb-view-n { font: 500 12px var(--font); font-variant-numeric: tabular-nums; color: var(--muted); }
.sb-sync { display: flex; flex-direction: column; gap: 3px; margin: 12px 12px 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); }
.sb-sync:hover { border-color: var(--line-strong); color: var(--ink); }
.sb-sync .muted { font-size: 12px; }

/* Work: list + detail side by side on wide screens (the drawer is used below 1280px). */
.work-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.work-split.has-pane { grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); }
.work-pane { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.work-pane .drawer-head { position: sticky; top: 0; background: var(--surface); z-index: 2; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.work-split.has-pane .list-row .meta { max-width: 100%; }

/* ---------- Sidebar: fits a laptop screen, scrolls quietly when it can't ---------- */
.sidebar { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar:hover, .sidebar:focus-within { scrollbar-color: color-mix(in srgb, var(--ink) 18%, transparent) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar:hover::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.sidebar::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink) 32%, transparent); }
.sidebar * { min-width: 0; }
.sb-head { padding: 14px 12px 10px 14px; }
.sb-search { height: 34px; margin: 0 12px 8px; }
.sb-link { height: 33px; }
.sb-view { height: 29px; }
.sb-section { padding: 12px 18px 4px; }
.sb-link span:not(.count):not(.dot):not(.sb-view-n) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-sync { margin: 10px 12px 2px; padding: 8px 11px; }
.sb-sync .row { flex-wrap: nowrap; min-width: 0; }
.sb-sync strong, .sb-sync .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-sync-cta { margin-left: auto; flex-shrink: 0; }
.sb-foot { flex-direction: row; align-items: center; gap: 4px; padding: 8px 8px 10px; }
.sb-user { padding: 6px 8px; }
.sb-bell { position: relative; flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-2); }
.sb-bell:hover, .sb-bell.active { background: rgba(0,0,0,.04); color: var(--ink); }
:root[data-theme="dark"] .sb-bell:hover { background: rgba(255,255,255,.05); }
.sb-bell .count-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; font-size: 9.5px; line-height: 16px; padding: 0 4px; box-shadow: 0 0 0 2px var(--sidebar); }
.sb-head .menu-pop { min-width: 0; width: 212px; }

.sb-head .menu { flex: 1 1 auto; min-width: 0; }
.sb-switch { width: 100%; box-sizing: border-box; }
.sb-switch .sb-prop { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.sb-switch > .icon { margin-right: 2px; }

/* ---------- Scrollbars everywhere: thin, rounded, theme-coloured ---------- */
:root { --scroll-thumb: color-mix(in srgb, var(--ink) 20%, transparent); --scroll-thumb-hover: color-mix(in srgb, var(--ink) 34%, transparent); }
html, .drawer-body, .work-pane, .table-wrap, .cmdk-list, .menu-pop, dialog.modal, .textarea { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
/* The sidebar keeps its own hide-until-hover rules (declared earlier, more specific). */
.sidebar { scrollbar-color: transparent transparent; }
.sidebar:hover, .sidebar:focus-within { scrollbar-color: var(--scroll-thumb) transparent; }
.sidebar::-webkit-scrollbar-thumb { background-color: transparent; }
.sidebar:hover::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); }

/* Aligned digits everywhere (times, counts, room numbers line up in lists). */
body { font-variant-numeric: tabular-nums; }
code, pre, kbd, .code, textarea.mono, input.mono { font-family: var(--code); }
