/* SteadyStay GM Daily Log — design system
   Style: Minimalism / Swiss (ui-ux-pro-max: "hotel operations mobile checklist dashboard"), kept on the SteadyStay brand
   palette. 8px spacing rhythm, 44pt touch targets, semantic tokens only (no raw hex in components), subtle motion that
   respects prefers-reduced-motion. */
/* Palette taken from the cream SteadyStay logo: cream ground, deep ink (#143D36) for text, burnt gold for actions.
   Always light: the owner prefers the cream look, so there is no green dark theme. */
:root {
  color-scheme: light;
  /* Brand (from logo) */
  --ink: #143D36; --gold-700: #A9590C; --gold-800: #8E4A09; --gold-500: #C27A22; --cream: #FAF6EF;

  /* Surfaces + text */
  --bg: #F5EFE4; --card: #FFFDF8; --sunken: #F1E9DB; --fg: #1A2E29; --muted: #5E625A; --line: #E7DCC9; --line-strong: #D4C5AC;
  --control: #A0978A;
  /* Header band: cream like the logo, ink text, gold accents */
  --band-bg: #FAF6EF; --band-ink: #143D36; --band-muted: #5E6559; --band-accent: #A9590C; --band-line: #E7DCC9; --band-track: #EDE3D1;
  /* Actions + states */
  --primary: #A9590C; --on-primary: #FFFDF8; --primary-press: #8E4A09;
  --accent: #A9590C; --accent-fill: #C27A22;
  --done: #143D36; --on-done: #FFFDF8; --done-bg: #F3E8D4; --done-fg: #7A4108;
  --warn-bg: #F7EAD6; --warn-fg: #7A4108;
  --bad: #B02A20; --bad-bg: #FAE1DC;
  --bar: #C27A22; --bar-empty: #E8DDCB; --bar-sel: #143D36;
  --toast-bg: #1A2E29; --toast-fg: #FAF6EF;
  --tabbar-bg: rgb(255 253 248 / .9);
  --shadow-1: 0 1px 2px rgb(60 40 15 / .06), 0 1px 1px rgb(60 40 15 / .04);
  --shadow-2: 0 10px 28px -10px rgb(60 40 15 / .22), 0 2px 4px rgb(60 40 15 / .06);

  /* Type */
  --display: "Montserrat", "Avenir Next", -apple-system, system-ui, sans-serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
  /* Spacing (8px rhythm) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* Radii */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  /* Motion */
  --t-fast: 120ms; --t-med: 200ms; --t-slow: 360ms; --ease: cubic-bezier(.2, .7, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* Layout */
  --tabbar: 64px; --max: 760px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--card); color: var(--fg); padding: var(--s3) var(--s4); border-radius: var(--r-sm); box-shadow: var(--shadow-2); font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + var(--s2)); }
.gutter { padding-left: max(var(--s4), env(safe-area-inset-left, 0px)); padding-right: max(var(--s4), env(safe-area-inset-right, 0px)); }
@media (min-width: 600px) { .gutter { padding-left: max(var(--s5), env(safe-area-inset-left, 0px)); padding-right: max(var(--s5), env(safe-area-inset-right, 0px)); } }
.inner { max-width: var(--max); margin: 0 auto; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header band ---------- */
.band { background: var(--band-bg); color: var(--band-ink); border-bottom: 1px solid var(--band-line); padding-top: calc(env(safe-area-inset-top, 0px) + var(--s4)); padding-bottom: var(--s5); }
.band-top { display: flex; align-items: center; gap: var(--s3); min-height: 32px; }
.logo { display: flex; align-items: center; gap: var(--s2); color: var(--band-ink); }
.logo img { display: block; width: 116px; height: auto; }
.band-kicker { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 .75rem/1 var(--body); color: var(--band-muted); padding: 7px 11px; border-radius: var(--r-pill); background: var(--band-track); white-space: nowrap; }
.band-kicker svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.band h1 { margin: var(--s5) 0 0; font: 800 clamp(1.625rem, 7vw, 2.25rem)/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; color: var(--band-ink); }
.band-date { margin-top: var(--s1); color: var(--band-muted); font-size: .9375rem; }
.prog { margin-top: var(--s5); display: grid; gap: var(--s3); }
.prog-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; color: var(--band-muted); }
.prog-row b { color: var(--band-ink); font: 700 .9375rem/1 var(--display); font-variant-numeric: tabular-nums; }
.segs { display: grid; grid-template-columns: 8fr 9fr 7fr; gap: 6px; }
.seg { display: grid; gap: 6px; }
.seg i { display: block; height: 6px; border-radius: var(--r-pill); background: var(--band-track); overflow: hidden; }
.seg i span { display: block; height: 100%; width: 0; background: var(--band-accent); border-radius: var(--r-pill); transition: width var(--t-slow) var(--ease-out); }
.seg em { font: 600 .6875rem/1 var(--body); font-style: normal; color: var(--band-muted); letter-spacing: .02em; }
.seg.full em { color: var(--band-ink); }

/* Skeleton (first load) */
.skel { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--band-track) 0%, var(--card) 50%, var(--band-track) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.view-skel .skel { background: linear-gradient(90deg, var(--sunken) 0%, var(--card) 50%, var(--sunken) 100%); background-size: 200% 100%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Main ---------- */
main { padding-block: var(--s5) calc(var(--tabbar) + var(--s7) + env(safe-area-inset-bottom, 0px)); }
.notice { display: flex; gap: var(--s2); align-items: flex-start; border: 1px solid var(--bad); background: var(--bad-bg); color: var(--bad); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: .875rem; font-weight: 500; margin-bottom: var(--s4); }
.info { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: var(--r-md); padding: var(--s3) var(--s4); font-size: .875rem; margin-bottom: var(--s4); }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.view-title { font: 800 1.5rem/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.view-sub { color: var(--muted); font-size: .9375rem; margin: var(--s1) 0 0; }
.count-pill { flex: none; font: 700 .8125rem/1 var(--display); font-variant-numeric: tabular-nums; padding: 8px 12px; border-radius: var(--r-pill); background: var(--sunken); color: var(--fg); }
.count-pill.full { background: var(--done-bg); color: var(--done-fg); }
.empty { border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--card); padding: var(--s6) var(--s4); text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--fg); font: 700 1.0625rem/1.3 var(--display); margin-bottom: var(--s1); }

/* ---------- Checklist ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.item { border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.tick-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; min-height: 64px; padding: 0; border: 0; background: none; text-align: left; transition: background var(--t-fast) var(--ease); }
button.tick-row:active { background: var(--sunken); }
@media (hover: hover) { button.tick-row:hover { background: color-mix(in srgb, var(--sunken) 55%, transparent); } }
.box { justify-self: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--control); display: grid; place-items: center; color: var(--on-done); transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.box svg { width: 16px; height: 16px; }
.box svg path { stroke-dasharray: 16; stroke-dashoffset: 0; }
.item.done .box { background: var(--done); border-color: var(--done); }
.item.pop .box { animation: pop var(--t-slow) var(--ease-out); }
.item.pop .box svg path { animation: draw var(--t-slow) var(--ease-out); }
@keyframes pop { 0% { transform: scale(.82); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.item-text { padding: var(--s3) var(--s2) var(--s3) 0; min-width: 0; }
.item-text b { display: block; font-weight: 600; line-height: 1.35; transition: color var(--t-med) var(--ease); }
.item.done .item-text b { color: var(--muted); font-weight: 500; }
.item-text small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.note-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; margin: auto var(--s2) auto 0; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--accent); font-weight: 600; font-size: .8125rem; transition: background var(--t-fast) var(--ease); }
.note-btn svg { width: 18px; height: 18px; }
.note-btn:active { background: var(--sunken); }
.note-btn.has { color: var(--warn-fg); }
.note-view { display: flex; gap: var(--s2); margin: -4px var(--s3) var(--s3) 56px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--warn-bg); color: var(--fg); font-size: .875rem; overflow-wrap: anywhere; }
.note-view svg { width: 16px; height: 16px; margin-top: 2px; color: var(--warn-fg); }
.note-edit { padding: 0 var(--s3) var(--s3) 56px; display: grid; gap: var(--s2); }
.note-edit textarea { width: 100%; min-height: 80px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; font-size: 1rem; resize: vertical; }
.note-actions { display: flex; gap: var(--s2); justify-content: flex-end; }

/* Completion banner */
.complete { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-lg); background: var(--done-bg); color: var(--done-fg); }
.complete.anim { animation: rise var(--t-slow) var(--ease-out); }
.complete .ring { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-done); display: grid; place-items: center; flex: none; }
.complete .ring svg { width: 22px; height: 22px; }
.complete div { flex: 1; min-width: 0; }
.complete b { display: block; font: 700 1rem/1.3 var(--display); }
.complete span { font-size: .875rem; }
.complete .btn { flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--card); font-weight: 700; font-size: .9375rem; transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.btn:active { background: var(--sunken); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:active { background: var(--primary-press); }
.btn:disabled { opacity: .55; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.block { width: 100%; min-height: 52px; border-radius: var(--r-md); font-size: 1rem; }
.who { color: var(--muted); font-size: .75rem; }

/* ---------- Forms ---------- */
.form-card { margin-top: var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: grid; gap: var(--s4); box-shadow: var(--shadow-1); }
@media (min-width: 600px) { .form-card { padding: var(--s5); } }
.form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
.form-card h3 { margin: 0; font: 700 1.1875rem/1.25 var(--display); }
.form-card p { margin: var(--s1) 0 0; color: var(--muted); font-size: .875rem; }
.private { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: var(--r-pill); background: var(--sunken); color: var(--fg); }
.private svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: 6px; align-content: start; }
.field > span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field textarea { min-height: 80px; font-size: 1rem; font-weight: 400; resize: vertical; }
.field select { font-size: 1rem; color: var(--fg); }
.affix { position: relative; display: block; }
.affix input { padding-right: 56px; }
.affix.pre input { padding-left: 30px; padding-right: 12px; }
.affix em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .875rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.affix:not(.pre) em { right: 12px; }
.affix.pre em { left: 13px; font-size: 1.125rem; }
.field.err input { border-color: var(--bad); }
.field .msg { display: flex; gap: 4px; align-items: flex-start; color: var(--bad); font-size: .8125rem; font-weight: 500; }
.field .msg svg { width: 14px; height: 14px; margin-top: 2px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.preview { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--sunken); font-size: .875rem; color: var(--muted); }
.preview b { font: 800 1.375rem/1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.sent { display: flex; gap: 10px; align-items: center; padding: var(--s3); border-radius: var(--r-md); background: var(--done-bg); color: var(--done-fg); font-weight: 600; font-size: .9375rem; }
.sent svg { width: 20px; height: 20px; }
.pass { position: relative; display: block; }
.pass input { padding-right: 56px; }
.pass button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; background: none; border-radius: var(--r-sm); color: var(--muted); display: grid; place-items: center; }
.pass button:active { background: var(--sunken); }

/* ---------- Owner dashboard ---------- */
.day-nav { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); padding: var(--s1); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-1); }
.day-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; transition: background var(--t-fast) var(--ease); }
.day-nav button:active { background: var(--sunken); }
.day-nav button:disabled { opacity: .3; }
.day-nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.day-nav b { flex: 1; text-align: center; font: 700 1rem/1.2 var(--display); }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.total { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s3); }
.total span { display: block; font-size: .75rem; color: var(--muted); }
.total b { font: 700 1.25rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.hotels { display: grid; gap: var(--s4); }
@media (min-width: 720px) { .hotels:not(.single) { grid-template-columns: 1fr 1fr; } }
.hcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: grid; gap: var(--s5); min-width: 0; box-shadow: var(--shadow-1); }
@media (min-width: 600px) { .hcard { padding: var(--s5); } }
.hcard-top { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); }
.hcard h3 { margin: 0; font: 700 1.0625rem/1.25 var(--display); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chip.ok { background: var(--done-bg); color: var(--done-fg); }
.chip.miss { background: var(--bad-bg); color: var(--bad); }
.occ { display: grid; gap: var(--s3); }
.occ-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.occ b { font: 800 3.25rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.occ span { color: var(--muted); font-size: .875rem; }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--bar-empty); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--bar); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.kpi { background: var(--sunken); border-radius: var(--r-md); padding: var(--s3); display: grid; gap: 2px; }
.kpi span { display: block; font-size: .75rem; color: var(--muted); }
.kpi b { font: 700 1.125rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.sub-h { font: 700 .875rem/1.2 var(--display); margin: 0 0 var(--s3); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.sub-h span { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: .8125rem; }
.mtd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); font-size: .8125rem; color: var(--muted); }
.mtd b { display: block; color: var(--fg); font: 700 1.0625rem/1.2 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.chart { position: relative; padding-right: 38px; }
.chart + .axis { padding-right: 38px; }
.bars { position: relative; height: 112px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line-strong); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.bars::before { top: 0; } .bars::after { top: 50%; }
.bars .b { position: relative; z-index: 1; flex: 1; min-width: 0; border-radius: 5px 5px 2px 2px; background: var(--bar); cursor: pointer; transition: opacity var(--t-fast) var(--ease); }
.bars .b.none { background: var(--bar-empty); height: 6px !important; border-radius: 3px; }
.bars .b.sel { background: var(--bar-sel); }
.bars:has(.b.sel) .b:not(.sel):not(.none) { opacity: .55; }
.axis { display: flex; justify-content: space-between; font-size: .6875rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.axis-y { position: absolute; right: 0; top: -7px; font-size: .6875rem; color: var(--muted); padding-left: 4px; font-variant-numeric: tabular-nums; }
.axis-y.mid { top: calc(56px - 7px); }
.readout { min-height: 20px; font-size: .8125rem; color: var(--fg); margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.checks { display: grid; gap: var(--s3); }
.crow { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: .875rem; }
.cbar { height: 8px; border-radius: var(--r-pill); background: var(--sunken); overflow: hidden; }
.cbar span { display: block; height: 100%; background: var(--accent-fill); border-radius: var(--r-pill); }
.crow em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; }
details.hist summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--accent); font-weight: 600; font-size: .875rem; list-style: none; }
details.hist summary::-webkit-details-marker { display: none; }
details.hist summary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform var(--t-med) var(--ease); }
details.hist[open] summary svg { transform: rotate(90deg); }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 6px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
.hnote { font-size: .8125rem; color: var(--fg); background: var(--warn-bg); border-radius: var(--r-sm); padding: var(--s2) var(--s3); overflow-wrap: anywhere; }

/* Owner checklist status */
.status-hotel { margin-bottom: var(--s5); }
.status-hotel h3 { margin: 0 0 var(--s2); font: 700 1.0625rem/1.25 var(--display); display: flex; gap: var(--s2); align-items: baseline; flex-wrap: wrap; }
.status-hotel h3 span { color: var(--muted); font: 500 .875rem var(--body); }
.sec-h { margin: var(--s5) 0 var(--s2); font: 700 .9375rem/1.2 var(--display); display: flex; gap: var(--s2); align-items: baseline; }
.sec-h span { color: var(--muted); font: 500 .8125rem/1 var(--body); }

/* ---------- Tab bar ---------- */
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .tabbar { background: var(--tabbar-bg); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); } }
.tabs { max-width: var(--max); margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--tabbar); }
.tab { position: relative; border: 0; background: none; display: grid; place-items: center; align-content: center; gap: 3px; color: var(--muted); font-size: .6875rem; font-weight: 600; }
.tab .pill { width: 56px; height: 30px; border-radius: var(--r-pill); display: grid; place-items: center; transition: background var(--t-med) var(--ease); }
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--fg); }
.tab[aria-current="page"] .pill { background: color-mix(in srgb, var(--accent-fill) 22%, transparent); color: var(--accent); }
.tab:active .pill { background: var(--sunken); }
.tab .ck { position: absolute; top: 5px; left: calc(50% + 12px); width: 16px; height: 16px; border-radius: 8px; background: var(--primary); color: var(--on-done); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.tab .ck svg { width: 10px; height: 10px; stroke-width: 3; }

/* Toast */
.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px) + var(--s4));
  width: min(calc(100% - 32px), 440px); display: flex; align-items: center; gap: 10px; background: var(--toast-bg); color: var(--toast-fg); border-radius: var(--r-md); padding: 14px 16px; font-size: .9375rem; font-weight: 500; box-shadow: var(--shadow-2); animation: toast-in var(--t-med) var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; align-content: center; justify-items: center; padding-top: calc(env(safe-area-inset-top, 0px) + var(--s6)); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s6)); background: var(--band-bg); }
.auth-logo { display: grid; justify-items: center; margin-bottom: var(--s5); }
.auth-logo img { width: min(240px, 70vw); height: auto; }
.auth-card { width: min(100%, 420px); display: grid; gap: var(--s4); background: var(--card); color: var(--fg); border-radius: var(--r-lg); padding: var(--s5) var(--s4); box-shadow: var(--shadow-2); }
@media (min-width: 480px) { .auth-card { padding: var(--s6); } }
.auth-wrap { width: min(100%, 420px); }
.auth h1 { margin: 0; font: 700 1.25rem/1.3 var(--display); text-align: center; }
.auth p { margin: calc(var(--s2) * -1) 0 var(--s1); text-align: center; color: var(--muted); font-size: .9375rem; }
.auth .field input { font-size: 1.0625rem; font-weight: 500; }
.auth-foot { margin-top: var(--s4); text-align: center; color: var(--band-muted); font-size: .8125rem; }

/* ---------- Team ---------- */
.team-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: grid; gap: var(--s4); margin-bottom: var(--s5); box-shadow: var(--shadow-1); }
@media (min-width: 600px) { .team-form { padding: var(--s5); } }
.team-form h3 { margin: 0; font: 700 1.0625rem/1.25 var(--display); }
.team-form .hint { margin: 0; color: var(--muted); font-size: .8125rem; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); color: var(--fg); font: 700 .875rem/1 var(--display); }
.person.owner .avatar { background: var(--ink); color: var(--cream); }
.person b { display: block; }
.person small { color: var(--muted); font-size: .8125rem; }
.person .acts { grid-column: 2; display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (min-width: 520px) { .person { grid-template-columns: 40px minmax(0, 1fr) auto; } .person .acts { grid-column: 3; justify-content: flex-end; } }
.person .btn { min-height: 44px; padding: 0 14px; font-size: .8125rem; }
.person.off b { color: var(--muted); text-decoration: line-through; }

/* Hotel picker */
.pick { display: grid; gap: var(--s3); }
.pick button { min-height: 72px; text-align: left; padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.pick b { display: block; font: 700 1.0625rem/1.25 var(--display); }
.pick span { color: var(--muted); font-size: .875rem; }

.signout { margin-top: var(--s6); text-align: center; }
.signout button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--r-pill); background: none; color: var(--muted); font-weight: 600; }
.signout button:active { background: var(--sunken); }
.signout svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .skel { animation: none; }
}
