/* Bishop CPA practice management: the one stylesheet (docs/pm/DESIGN.md, brand tokens from the firm's site).
   Served from /assets/<content hash>/app.css under a strict CSP: no page carries inline style.
   Light is the staff default; dark is the client-facing default and a staff option (data-theme on <html>).
   Order: fonts, tokens, base, shell, public pages, components, responsive, motion. */

/* ---------- fonts (self-hosted, SIL OFL: fonts/OFL-*.txt) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --font-ui: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Anton", "Impact", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13.5px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px; --fs-24: 24px; --fs-30: 30px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-12: 48px;
  --r-control: 6px; --r-card: 8px; --r-overlay: 10px;
  --sidebar-w: 240px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --bg: #F2EDE3; --surface: #FBF8F2; --surface-2: #ECE6DA; --border: #D9D3C6;
  --text: #0A0A09; --text-2: #5C574D; --text-3: #716B5F;
  --accent: #0F6B3F; --accent-hover: #0C5833; --accent-soft: #E3F1E8; --on-accent: #FFFFFF;
  --gold: #CEC093; --gold-soft: #EFE7CC;
  --focus: rgba(15, 107, 63, .4);
  --ok: #0F6B3F; --ok-bg: #E3F1E8;
  --warn: #8A5C00; --warn-bg: #FFF4D6;
  --danger: #B42318; --danger-bg: #FDE8E6; --on-danger: #FFFFFF;
  --info: #0B5CAD; --info-bg: #E6F0FA;
  --neutral: #5C574D; --neutral-bg: #ECE6DA;
  --overlay: rgba(10, 10, 9, .45);
  --elevation-1: 0 8px 24px rgba(10, 10, 9, .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0A09; --surface: #141412; --surface-2: #1C1B18; --border: #2A2823;
    --text: #F2EDE3; --text-2: #B9B2A4; --text-3: #A39C8E;
    --accent: #CEC093; --accent-hover: #D9CDA6; --accent-soft: #2A2614; --on-accent: #0A0A09;
    --gold: #CEC093; --gold-soft: #2A2614;
    --focus: rgba(206, 192, 147, .4);
    --ok: #6FCB95; --ok-bg: #12261B;
    --warn: #E0B341; --warn-bg: #2E2410;
    --danger: #F08A80; --danger-bg: #2E1512; --on-danger: #0A0A09;
    --info: #7FB3F0; --info-bg: #12233A;
    --neutral: #B9B2A4; --neutral-bg: #262420;
    --overlay: rgba(0, 0, 0, .6);
    --elevation-1: 0 8px 24px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A09; --surface: #141412; --surface-2: #1C1B18; --border: #2A2823;
  --text: #F2EDE3; --text-2: #B9B2A4; --text-3: #A39C8E;
  --accent: #CEC093; --accent-hover: #D9CDA6; --accent-soft: #2A2614; --on-accent: #0A0A09;
  --gold: #CEC093; --gold-soft: #2A2614;
  --focus: rgba(206, 192, 147, .4);
  --ok: #6FCB95; --ok-bg: #12261B;
  --warn: #E0B341; --warn-bg: #2E2410;
  --danger: #F08A80; --danger-bg: #2E1512; --on-danger: #0A0A09;
  --info: #7FB3F0; --info-bg: #12233A;
  --neutral: #B9B2A4; --neutral-bg: #262420;
  --overlay: rgba(0, 0, 0, .6);
  --elevation-1: 0 8px 24px rgba(0, 0, 0, .5);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: var(--fs-15); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 var(--sp-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
strong { font-weight: 700; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }
.detail { word-break: break-word; color: var(--text-2); }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.num, .table .num, .stat-value, .meta dd .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus); border-radius: 2px; }
.visually-hidden, .nav-toggle {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--sp-3); top: -60px; z-index: 100; padding: var(--sp-2) var(--sp-3);
  background: var(--accent); color: var(--on-accent); border-radius: var(--r-control); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--sp-3); }
::selection { background: var(--gold-soft); color: var(--text); }

/* ---------- the app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  background: var(--surface-2); border-right: 1px solid var(--border); padding: var(--sp-4) var(--sp-3);
}
.sidebar-head { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-2) var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-logo { display: block; flex: none; border-radius: 50%; width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.env-badge { margin-left: auto; font-size: var(--fs-11); font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 4px;
  background: var(--gold-soft); color: var(--text); border: 1px solid var(--gold); white-space: nowrap; }
.nav-toggle-label { display: none; }
.sidebar-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.sidebar-search { position: relative; margin: 0 0 var(--sp-4); }
.sidebar-search input {
  width: 100%; height: 34px; padding: 0 32px 0 32px; font: inherit; font-size: var(--fs-13); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
}
.sidebar-search input::placeholder { color: var(--text-3); }
.sidebar-search input:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--focus); }
.sidebar-search-icon { position: absolute; left: 10px; top: 9px; color: var(--text-3); pointer-events: none; }
.sidebar-search-key { position: absolute; right: 7px; top: 7px; pointer-events: none; }
.icon { flex: none; display: block; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-heading { margin: var(--sp-4) var(--sp-2) var(--sp-1); font-size: var(--fs-11); font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.nav-group { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 var(--sp-2) 0 10px;
  border-radius: var(--r-control); color: var(--text-2); text-decoration: none; font-size: var(--fs-13); font-weight: 500;
}
.nav-item:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.nav-item.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 2px 2px 0; background: var(--gold); }
.nav-item.is-active .icon { color: var(--accent); }

.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-2) var(--sp-2); border-top: 1px solid var(--border); }
.sidebar-user form { margin: 0; flex: none; }
.sidebar-user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar-user-name { font-size: var(--fs-12); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { font-size: var(--fs-11); color: var(--text-2); }
.theme-switch { display: flex; gap: 2px; margin: var(--sp-2) var(--sp-2) 0; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); }
.theme-option { flex: 1; font: inherit; font-size: var(--fs-11); font-weight: 600; color: var(--text-2); background: transparent; border: 0; border-radius: 4px; padding: 4px 0; cursor: pointer; }
.theme-option:hover { color: var(--text); }
.theme-option[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 56px; padding: var(--sp-3) var(--sp-6); border-bottom: 1px solid var(--border);
}
.topbar-actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.main { width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--sp-6); flex: 1; }
.main:focus { outline: none; }
.app-foot { max-width: 1280px; width: 100%; margin: 0 auto; padding: var(--sp-4) var(--sp-6) var(--sp-8); color: var(--text-3); font-size: var(--fs-12); }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) 0; font-size: var(--fs-13); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--text-3); margin: 0 var(--sp-2); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- public pages: sign-in and client links (dark, like the firm's site) ---------- */
.public-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: var(--sp-8) var(--sp-4); }
.public-head { width: 100%; max-width: 560px; margin-bottom: var(--sp-8); }
.public-head .brand-logo { width: 40px; height: 40px; }
.public-head .brand-name { font-size: 17px; color: var(--gold); }
.public--hero .public-head { display: flex; justify-content: center; margin-top: 6vh; }
.public--hero .public-head .brand { flex-direction: column; gap: var(--sp-3); }
.public--hero .public-head .brand-logo { width: 48px; height: 48px; }
.public-main { width: 100%; max-width: 560px; }
.public-main:focus { outline: none; }
.public-foot { margin-top: auto; padding-top: var(--sp-8); max-width: 560px; text-align: center; color: var(--text-3); font-size: var(--fs-12); }
.auth { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--sp-8); }
.public--hero .public-main { max-width: 420px; }
.auth-title { font-size: var(--fs-24); margin-bottom: var(--sp-2); }
.public .auth-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: var(--fs-30); line-height: 1.1; }
.auth-sub { color: var(--text-2); margin-bottom: var(--sp-6); }
.auth-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.auth-form .form-actions .btn { width: 100%; height: 40px; font-size: var(--fs-15); }
.auth-note { margin-top: var(--sp-4); color: var(--text-3); font-size: var(--fs-13); }
.auth .banner { margin-bottom: var(--sp-4); }

/* ---------- page header ---------- */
.page-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--sp-6); margin-bottom: var(--sp-6); }
.page-header > :not(.page-actions):not(.meta) { grid-column: 1; }
.page-header > .page-actions { grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: start; }
.page-header > .meta { grid-column: 1 / -1; }
.page-heading { min-width: 0; }
.page-eyebrow { margin: 0 0 var(--sp-1); font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.page-eyebrow a { color: inherit; }
.page-title { font-size: var(--fs-24); font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.page-sub { margin: var(--sp-1) 0 0; color: var(--text-2); font-size: var(--fs-15); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.page-header--detail { padding-bottom: var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }
.meta { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-8); margin: var(--sp-5) 0 0; }
.meta-item { min-width: 0; }
.meta dt { font-size: var(--fs-12); color: var(--text-2); font-weight: 500; margin-bottom: 2px; }
.meta dd { margin: 0; font-size: var(--fs-13); font-weight: 600; }
.meta--stacked { flex-direction: column; gap: var(--sp-3); margin: 0 0 var(--sp-4); }

/* ---------- cards, layout helpers ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); margin-bottom: var(--sp-5); min-width: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); }
.card-title, .card-header > h2, .card-header > h3 { font-size: var(--fs-15); font-weight: 700; margin: 0; }
.card-sub { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-13); }
.card-actions { display: flex; gap: var(--sp-2); flex: none; }
.card-body { padding: var(--sp-5); }
.card-body--flush { padding: 0; }
.card-body--flush > .empty { margin: var(--sp-4); border: 0; }
.tile-text { color: var(--text-2); font-size: var(--fs-13); margin-bottom: var(--sp-4); }
.select--sm { min-height: 28px; height: 28px; padding-top: 0; padding-bottom: 0; font-size: var(--fs-13); width: auto; }
.role-form { gap: var(--sp-2); align-items: center; }
.person { display: inline-flex; align-items: center; gap: var(--sp-2); }
.card-footer { padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-13); }
.card .table-wrap { border: 0; border-radius: 0 0 var(--r-card) var(--r-card); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-5); }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 var(--sp-5); align-items: start; }
.stack { min-width: 0; }
.tab-panel { min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  font: inherit; font-size: var(--fs-13); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
  border-radius: var(--r-control); border: 1px solid transparent; cursor: pointer; user-select: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--secondary:hover { background: var(--surface-2); color: var(--text); }
.btn--danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); color: var(--danger); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.btn--sm { height: 28px; padding: 0 10px; font-size: var(--fs-12); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .kbd { margin-left: 2px; }
.palette-trigger { color: var(--text-2); font-weight: 500; }
.inline-form { display: inline-flex; margin: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.field-optional { font-weight: 400; color: var(--text-3); }
.help { margin: 0; font-size: var(--fs-12); color: var(--text-2); }
.error { margin: 0; font-size: var(--fs-12); color: var(--danger); font-weight: 600; }
.input, .select, .textarea, .filters input, .filters select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 36px; padding: 7px 10px; font: inherit; font-size: var(--fs-15); color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--border)); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); border-radius: var(--r-control); }
.input[aria-invalid="true"], .field--error .input, .field--error .select { border-color: var(--danger); }
.input[type="file"] { padding: 6px; font-size: var(--fs-13); }
.input--code { font-family: var(--font-mono); font-size: var(--fs-20); letter-spacing: .3em; max-width: 220px; }
.select, .field select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.textarea, .field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); border-radius: var(--r-control); }
.check { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-15); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding-top: var(--sp-2); }
form:not(.form):not(.filters):not(.auth-form) > .field + .field, form:not(.form):not(.filters):not(.auth-form) > .field + .form-actions { margin-top: var(--sp-4); }

/* filters row on list pages */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); margin-bottom: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.field--inline { flex: 0 1 200px; gap: 4px; }
.field--inline:first-child { flex: 1 1 240px; }
.field--inline > label { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.filters input, .filters select { height: 34px; min-height: 0; padding-top: 0; padding-bottom: 0; font-size: var(--fs-13); }
.filters-actions { display: flex; gap: var(--sp-2); padding-bottom: 2px; }

/* ---------- tables (ledger style) ---------- */
.table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-13); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.table th {
  position: sticky; top: 0; z-index: 1; text-align: left; vertical-align: bottom; white-space: nowrap;
  padding: 9px var(--sp-3); font-size: var(--fs-12); font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.table td { padding: 10px var(--sp-3); vertical-align: middle; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--gold-soft) 45%, transparent); }
.table th:first-child, .table td:first-child { padding-left: var(--sp-4); }
.table th:last-child, .table td:last-child { padding-right: var(--sp-4); }
.table .num { text-align: right; }
.table th.num { text-align: right; }
.table-empty td { color: var(--text-3); text-align: center; padding: var(--sp-6); }
.th-sort { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.th-sort:hover { color: var(--text); text-decoration: none; }
.th-sort::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .25; }
th[aria-sort="ascending"] .th-sort::after { border-top: 0; border-bottom: 5px solid currentColor; opacity: .9; }
th[aria-sort="descending"] .th-sort::after { opacity: .9; }
th[aria-sort] { color: var(--text); }
.row-link { color: var(--text); font-weight: 600; text-decoration: none; }
.row-link:hover { color: var(--accent); text-decoration: underline; }
.cell-title { display: block; font-weight: 600; color: var(--text); }
.cell-sub { display: block; font-size: var(--fs-12); color: var(--text-3); }
.pill + .cell-sub { display: inline; margin-left: 4px; }

/* ---------- pills, banners, states ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; line-height: 1; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--danger { background: var(--danger-bg); color: var(--danger); }
.pill--info { background: var(--info-bg); color: var(--info); }
.pill--neutral { background: var(--neutral-bg); color: var(--neutral); }
.pill--brand { background: var(--gold-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }

.banner { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5); border-radius: var(--r-card); border: 1px solid; font-size: var(--fs-13); }
.banner p { margin: 0; }
.banner--info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--text); }
.banner--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--text); }
.banner--danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--text); }
.banner--ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--text); }
.banner--info strong { color: var(--info); } .banner--warn strong { color: var(--warn); } .banner--danger strong { color: var(--danger); } .banner--ok strong { color: var(--ok); }

.empty { text-align: center; padding: var(--sp-12) var(--sp-6); border: 1px dashed var(--border); border-radius: var(--r-card); background: var(--surface); }
.empty h2 { font-size: var(--fs-17); margin-bottom: var(--sp-2); }
.empty p { color: var(--text-2); max-width: 46ch; margin: 0 auto var(--sp-4); }
.empty .btn { margin-top: var(--sp-1); }

.state { max-width: 560px; margin: var(--sp-12) auto; padding: var(--sp-8); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.state::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; margin-bottom: var(--sp-5); background: var(--gold); }
.state--danger::before { background: var(--danger); }
.state-title { font-size: var(--fs-20); margin-bottom: var(--sp-3); }
.state-text { color: var(--text-2); }
.state-action { margin-top: var(--sp-5); }
.public .state { margin: 0; }
.public .state-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: var(--fs-24); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: var(--sp-1); overflow-x: auto; margin: 0 0 var(--sp-5); border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: var(--sp-2) var(--sp-3) 10px; color: var(--text-2); text-decoration: none; font-size: var(--fs-13); font-weight: 600; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ""; position: absolute; left: var(--sp-2); right: var(--sp-2); bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.tab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--neutral-bg); color: var(--text-2); font-size: var(--fs-11); line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.stat { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); color: var(--text); text-decoration: none; }
a.stat:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); color: var(--text); }
.stat-value { font-size: var(--fs-30); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.stat-label { font-size: var(--fs-13); color: var(--text-2); font-weight: 500; }
.stat-delta { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); }
.stat-delta--ok { color: var(--ok); } .stat-delta--warn { color: var(--warn); } .stat-delta--danger { color: var(--danger); }

/* ---------- dates ---------- */
.due { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; white-space: nowrap; }
.due-rel { font-size: var(--fs-12); color: var(--text-3); }
.due--soon .due-rel { color: var(--warn); font-weight: 600; }
.due--overdue .due-rel { color: var(--danger); font-weight: 600; }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-3); }
.board-col { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-card); }
.board-col-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0 var(--sp-1) var(--sp-1); font-size: var(--fs-13); font-weight: 700; }
.board-col-header .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-11); line-height: 18px; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.board-card { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control); font-size: var(--fs-13); }
.board-card:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--border)); }
.board-card a { color: var(--text); font-weight: 600; text-decoration: none; }
.board-card-line { color: var(--text-2); font-size: var(--fs-12); }
.board-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: 2px; }
.board-empty { margin: 0; padding: var(--sp-3); text-align: center; color: var(--text-2); font-size: var(--fs-12); }
.board-card a:hover { color: var(--accent); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-item { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--sp-4); padding: 0 0 var(--sp-4) 0; }
.timeline-item::before { content: ""; position: absolute; left: 196px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--surface); }
.timeline-item::after { content: ""; position: absolute; left: 199px; top: 18px; bottom: 0; width: 1px; background: var(--border); }
.timeline-item:last-child::after { display: none; }
.timeline-item time { font-size: var(--fs-12); color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline-body { padding-left: var(--sp-4); min-width: 0; font-size: var(--fs-13); }
.timeline-title { margin: 0; font-weight: 500; }
.timeline-detail { color: var(--text-2); word-break: break-word; }
.timeline-item--danger::before { background: var(--danger); }
.timeline-item--ok::before { background: var(--ok); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-4) 0; }
.pagination-status { margin: 0; color: var(--text-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.pagination-list { list-style: none; display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; }
.pagination-page { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--r-control); color: var(--text-2); text-decoration: none; font-size: var(--fs-12); font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination-page:hover { background: var(--surface-2); color: var(--text); }
.pagination-page.is-active { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.pagination-gap { color: var(--text-3); padding: 0 4px; }

/* ---------- small things ---------- */
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; font-family: var(--font-ui); font-size: var(--fs-11); font-weight: 600; line-height: 1;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: var(--fs-11); font-weight: 700; letter-spacing: .02em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.skeleton { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); }
.skeleton-line { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-line:nth-child(3n+2) { width: 82%; } .skeleton-line:nth-child(3n) { width: 64%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.copy-box { margin: 0; padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-control); word-break: break-all; font-size: var(--fs-13); }
.copy-box + p { margin-top: var(--sp-3); }

/* ---------- menu (details) ---------- */
.menu { position: relative; display: inline-block; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px; padding: var(--sp-1); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-overlay); box-shadow: var(--elevation-1); }
.menu--start .menu-list { left: 0; right: auto; }
.menu-item { display: block; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-control); color: var(--text); text-decoration: none; font-size: var(--fs-13); }
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item--danger { color: var(--danger); }

/* ---------- drawer (works by :target without script; app.js adds .is-open and focus handling) ---------- */
.drawer { display: none; position: fixed; inset: 0; z-index: 50; }
.drawer:target, .drawer.is-open { display: block; }
html.js .drawer:target:not(.is-open) { display: none; }
html.drawer-open { overflow: hidden; }
.drawer-backdrop, .dialog-static .drawer-backdrop { position: absolute; inset: 0; background: var(--overlay); cursor: default; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border); border-radius: var(--r-overlay) 0 0 var(--r-overlay); box-shadow: var(--elevation-1);
  animation: drawer-in 150ms var(--ease);
}
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--border); }
.drawer-header h2 { font-size: var(--fs-17); }
.drawer-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-13); color: var(--text-2); }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: var(--r-control); color: var(--text-2); text-decoration: none; font-size: 20px; line-height: 1; }
.drawer-close:hover { background: var(--surface-2); color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-6); }
.drawer-body .form { max-width: none; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- dialogs (confirm, shortcuts) and the command palette ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: var(--overlay); }
.dialog { width: min(440px, calc(100vw - 32px)); padding: var(--sp-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-overlay); box-shadow: var(--elevation-1); }
dialog.dialog[open] { animation: pop-in 150ms var(--ease); }
.dialog-title { font-size: var(--fs-17); margin-bottom: var(--sp-2); }
.dialog-body { margin: 0 0 var(--sp-5); color: var(--text-2); font-size: var(--fs-15); }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--sp-2); }
.dialog .btn--danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.dialog .btn--danger:hover { filter: brightness(.94); color: var(--on-danger); }
.dialog-static { display: none; position: fixed; inset: 0; z-index: 60; }
.dialog-static:target { display: grid; place-items: center; }
.dialog-static .dialog { position: relative; }
.shortcuts { width: min(520px, calc(100vw - 32px)); }
.shortcut-list { margin: var(--sp-4) 0 var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.shortcut-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: var(--sp-3); font-size: var(--fs-13); }
.shortcut-row dt { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: var(--fs-12); }
.shortcut-row dd { margin: 0; color: var(--text); }
.palette {
  width: min(640px, calc(100vw - 32px)); max-height: min(560px, 76vh); margin: 12vh auto auto; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-overlay); box-shadow: var(--elevation-1); overflow: hidden;
}
.palette[open] { display: flex; flex-direction: column; animation: pop-in 150ms var(--ease); }
.palette-input { width: 100%; padding: var(--sp-4) var(--sp-5); font: inherit; font-size: var(--fs-17); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); }
.palette-input:focus, .palette-input:focus-visible { outline: none; box-shadow: none; }
.palette-input::placeholder { color: var(--text-3); }
.palette-list { list-style: none; margin: 0; padding: var(--sp-2); overflow-y: auto; flex: 1; }
.palette-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "kind title" ". sub"; align-items: center; gap: 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-control); cursor: pointer; font-size: var(--fs-15); }
.palette-item.is-active { background: var(--gold-soft); box-shadow: inset 2px 0 0 var(--gold); }
.palette-item-kind { grid-area: kind; font-size: var(--fs-11); font-weight: 600; color: var(--text-3); }
.palette-item-title { grid-area: title; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item-sub { grid-area: sub; font-size: var(--fs-12); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-empty { padding: var(--sp-6); text-align: center; color: var(--text-3); font-size: var(--fs-13); }
.palette-foot { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; padding: var(--sp-2) var(--sp-5); border-top: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); }
.palette-item.is-active .palette-item-kind { color: var(--text-2); }
@keyframes pop-in { from { transform: translateY(6px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: var(--sp-5); bottom: var(--sp-5); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); pointer-events: none; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4);
  background: var(--text); color: var(--bg); border-radius: var(--r-card); box-shadow: var(--elevation-1); font-size: var(--fs-13); font-weight: 600; animation: pop-in 150ms var(--ease); }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.toast--ok::before { background: #6FCB95; } .toast--danger::before { background: #F08A80; } .toast--warn::before { background: #E0B341; } .toast--info::before { background: #7FB3F0; }
.toast-close { font: inherit; font-size: 16px; line-height: 1; color: inherit; opacity: .7; background: none; border: 0; width: 26px; height: 26px; border-radius: 4px; cursor: pointer; }
.toast-close:hover { opacity: 1; }
.toast.is-leaving { opacity: 0; transform: translateY(4px); transition: opacity 150ms var(--ease), transform 150ms var(--ease); }

/* ---------- responsive: the sidebar becomes a top bar under 1024 px ---------- */
@media (max-width: 1023.98px) {
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; max-height: 100vh; overflow: visible; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .sidebar-head { min-height: 56px; padding: var(--sp-2) var(--sp-4); }
  .nav-toggle-label { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 var(--sp-3); margin-right: calc(var(--sp-3) * -1); border-radius: var(--r-control); font-size: var(--fs-13); font-weight: 600; color: var(--text); cursor: pointer; }
  .nav-toggle-label:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
  .env-badge { margin-left: auto; }
  .sidebar-panel { display: none; max-height: calc(100vh - 56px); overflow-y: auto; padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: 1px solid var(--border); background: var(--surface-2); }
  .nav-toggle:checked ~ .sidebar .sidebar-panel { display: flex; }
  .nav-toggle:focus-visible ~ .sidebar .nav-toggle-label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .nav-item { height: 44px; }
  .nav-item.is-active::before { left: -16px; }
  .topbar { padding: var(--sp-3) var(--sp-4); min-height: 48px; }
  .main { padding: var(--sp-5) var(--sp-4); }
  .app-foot { padding: var(--sp-4); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive: tables become stacked cards under 720 px ---------- */
@media (max-width: 719.98px) {
  body { font-size: var(--fs-15); }
  .page-title { font-size: var(--fs-20); }
  .page-header { grid-template-columns: minmax(0, 1fr); }
  .page-header > .page-actions { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--sp-4); }
  .meta { gap: var(--sp-3) var(--sp-5); }
  .topbar-actions .palette-trigger span:not(.kbd) { display: none; }
  .topbar-actions .palette-trigger .kbd { display: none; }
  .table-wrap { overflow: visible; background: transparent; border: 0; }
  .card .table-wrap { padding: var(--sp-3); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table tbody tr { margin-bottom: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
  .table tbody tr:hover td { background: transparent; }
  .table td, .table td:first-child, .table td:last-child { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; justify-items: start; padding: 6px 0; border-bottom: 1px solid var(--border); text-align: left; }
  .table td.num { text-align: left; }
  .table tbody tr td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
  .table td:not([data-label])::before { content: ""; }
  .table-empty td { display: block; text-align: center; }
  .table-empty td::before { content: none; }
  .filters { padding: var(--sp-3); }
  .field--inline, .field--inline:first-child { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-value { font-size: var(--fs-24); }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: var(--sp-5); }
  .timeline-item::before { left: 0; }
  .timeline-item::after { left: 3px; }
  .timeline-body { padding-left: 0; }
  .drawer-panel { width: 100vw; border-radius: 0; border-left: 0; }
  .drawer-body { padding: var(--sp-5) var(--sp-4); }
  .auth { padding: var(--sp-6) var(--sp-5); }
  .public-wrap { padding: var(--sp-6) var(--sp-4); }
  .state { margin: var(--sp-6) auto; padding: var(--sp-6) var(--sp-5); }
  .pagination { flex-direction: column; align-items: flex-start; }
  .shortcut-row { grid-template-columns: 110px minmax(0, 1fr); }
}

/* 44 px targets on touch screens */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
  .input, .select, .filters input, .filters select { min-height: 44px; }
  .pagination-page { min-width: 40px; height: 40px; }
  .theme-option { min-height: 36px; }
}

/* motion: none for anyone who asked for less */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* print: the content only */
@media print {
  .sidebar, .topbar, .toasts, .app-foot, .page-actions, .filters, .pagination, .drawer { display: none !important; }
  .shell { display: block; }
  body { background: #fff; color: #000; }
}
