:root {
  --bg: #f6f7f8;
  --card: #ffffff;
  --text: #16191d;
  --muted: #5f6b76;
  --accent: #ff6b1a;
  --accent-ink: #17181c;
  --accent-soft: #fff0e6;
  --accent-text: #c2410c;
  --warn: #b45309;
  --warn-soft: #fdf1e3;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 18px rgba(16, 24, 40, .08);
  --radius: 18px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --card: #1b1f23;
    --text: #eef1f3;
    --muted: #9aa6b1;
    --accent: #ff6b1a;
    --accent-ink: #17181c;
    --accent-soft: #3a2416;
    --accent-text: #ff8a47;
    --warn: #f0a650;
    --warn-soft: #34261a;
    --danger: #f2786c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100dvh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.shell { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 14px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 28px; width: auto; }
.who { color: var(--muted); font-size: 14px; }
.hero { padding: 28px 2px 18px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 17px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 0 0 14px; }
.form { display: grid; gap: 14px; }
.f { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.f input { width: 100%; min-width: 0; font: inherit; font-size: 20px; color: var(--text); background: var(--bg); border: 0; border-radius: 14px; padding: 14px 16px; outline: none; }
.f input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.label { font-weight: 650; font-size: 15px; margin-top: 4px; }
.hint { color: var(--muted); font-size: 14px; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 14px; padding: 14px 18px; font-size: 17px; font-weight: 650; min-height: 52px; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--accent); color: var(--accent-ink); }
.ghost { background: var(--bg); color: var(--text); }
.danger { background: var(--danger); color: #fff; }
.link { background: none; color: var(--accent-text); min-height: 40px; padding: 6px; }
.wide { width: 100%; }
#oidc-login .oidc + .oidc { margin-top: 10px; }
.offer .n { font-weight: 700; font-size: 17px; }
.offer .d { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
#passkey-row:not(:empty) { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 10px 16px; font-size: 16px; background: var(--bg); color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; }
.count { color: var(--muted); font-size: 15px; }
.req .when { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 2px; }
.req .meta { color: var(--muted); font-size: 15px; }
.req .acts, .sheet .acts { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 16px; }
.empty { color: var(--muted); font-size: 16px; padding: 4px 2px 8px; }
.day { color: var(--muted); font-size: 14px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; margin: 14px 2px 8px; }
.bk { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.bk .t { font-size: 19px; font-weight: 700; }
.bk .s { color: var(--muted); font-size: 14px; margin-top: 2px; }
.bk .acts { display: flex; gap: 8px; }
.bk .acts button { min-height: 44px; padding: 10px 14px; font-size: 15px; }
.pill { display: inline-block; font-size: 13px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { background: var(--bg); color: var(--muted); }
.alert { background: var(--warn-soft); color: var(--text); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 12px; font-size: 15px; }
.alert b { color: var(--warn); }
.queued { background: var(--bg); color: var(--muted); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 15px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.row + .row { border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); }
.row .n { font-weight: 650; }
.row .d { color: var(--muted); font-size: 14px; }
.switch { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 8px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgba(0, 0, 0, .06); }
.tabs button { flex: 1; max-width: 260px; background: none; color: var(--muted); display: grid; justify-items: center; gap: 2px; font-size: 13px; min-height: 56px; padding: 6px; }
.tabs button[aria-current="page"] { color: var(--accent-text); }
.tabs .ico { font-size: 22px; line-height: 1; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: grid; align-items: end; z-index: 10; }
.sheet { background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.sheet h3 { margin: 0 0 6px; font-size: 21px; }
.sheet p { margin: 0; color: var(--muted); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow); z-index: 20; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { button { transition: transform .08s; } button:active { transform: scale(.98); } }
.card > .hint { margin: 0 0 12px; }
.busy-btn { margin: -2px 0 14px; }
.busy-from { margin: 14px 0 12px; }
.slotrow .free-it { margin-left: 8px; min-height: 32px; padding: 4px 10px; font-size: 14px; }
.chips.small button { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.slotrow { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; align-items: start; }
.slotrow + .slotrow { border-top: 1px solid color-mix(in srgb, var(--muted) 15%, transparent); }
.slotrow .tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.slotrow .what { font-weight: 650; }
.slotrow .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.job { background: var(--accent); }
.dot.cal { background: var(--muted); }
.dot.block { background: var(--warn); }
.dot.free { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.slotrow.free .what { color: var(--accent-text); }
