/* Bluewater Heritage Ranch — design system (UX refresh, Claude Design handoff "BHR 1–4").
   Tokens follow design/project/handoff/tokens.css; old token names are kept. */

:root {
  color-scheme: light dark;

  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #efe7d8;
  --line: #ddd2bf;
  --line-soft: #ece3d4;
  --scrim: rgba(30, 20, 12, .48);

  --text: #2a221b;
  --text-2: #4a3f35;
  --muted: #6b5f52;
  --faint: #a89a89;
  --on-brand: #fffaf2;

  --brand: #7a3e1d;
  --brand-strong: #5e2f15;
  --brand-disabled: #d9c4b3;
  --accent: #2f5d62;
  --sky: #3f6e8c;
  --sky-bg: #dde8ef;
  --sky-ink: #1f3e52;
  --gold: #b8860b;

  --booking: #7a3e1d;
  --booking-bg: #f3e2d3;
  --closure: #8a1c1c;
  --closure-bg: #f6dcd8;
  --event: #2f5d62;
  --event-bg: #dcebea;
  --event-ink: #1f4246;

  --ok: #3c6b2f;    --ok-bg: #e2eed9;   --ok-ink: #2c5022;
  --warn: #7a5a00;  --warn-bg: #fbefcf; --warn-ink: #5e4500;
  --danger: #8a1c1c; --danger-bg: #f6dcd8;

  --toast-bg: #2a221b; --toast-fg: #f6f1e7; --toast-action: #e9a878;
  --on-solid: #fffaf2; /* text on solid ok/danger buttons */

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.3125rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --gutter: 16px;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(60, 35, 15, .08), 0 2px 8px rgba(60, 35, 15, .06);
  --shadow-2: 0 12px 32px -8px rgba(60, 35, 15, .28);

  --tap: 44px;
  --tap-lg: 52px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);

  --tabbar-h: 64px;
  --sidebar-w: 248px;
  --sidebar-mini: 76px;

  --hatch-closure: repeating-linear-gradient(-45deg, var(--closure-bg) 0 5px, var(--surface) 5px 9px);
  --hatch-taken: repeating-linear-gradient(-45deg, var(--line) 0 2px, var(--surface-2) 2px 6px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1613; --surface: #24201b; --surface-2: #2e2822; --line: #3d352d; --line-soft: #332c25;
    --scrim: rgba(0, 0, 0, .6);
    --text: #f0e9de; --text-2: #d6ccbd; --muted: #b5a896; --faint: #7d7163; --on-brand: #1a1613;
    --brand: #d9925f; --brand-strong: #e9a878; --brand-disabled: #5a4434;
    --accent: #86bcc0; --sky: #8fb6d1; --sky-bg: #22313b; --sky-ink: #cfe2ee; --gold: #e0b44a;
    --booking: #d9925f; --booking-bg: #3e2a1d;
    --closure: #e58a80; --closure-bg: #45211d;
    --event: #86bcc0; --event-bg: #1e3335; --event-ink: #cfe7e8;
    --ok: #9cc98a; --ok-bg: #22301d; --ok-ink: #cfe6c4;
    --warn: #f0cf73; --warn-bg: #3d3318; --warn-ink: #f6e3ad;
    --danger: #e58a80; --danger-bg: #45211d;
    --toast-bg: #f0e9de; --toast-fg: #1a1613; --toast-action: #7a3e1d;
    --on-solid: #1a1613;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 12px 32px -8px rgba(0, 0, 0, .6);
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-md); }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.eyebrow { font: 600 var(--fs-xs) var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--font-display); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Logo marks: single-color art tinted with a mask */
.mark, .seal { display: block; background: var(--brand); -webkit-mask: var(--logo) left center / contain no-repeat; mask: var(--logo) left center / contain no-repeat; }
.mark { --logo: url(/img/bhr-monogram.svg); width: 72px; height: 45px; }
.seal { --logo: url(/img/bhr-bull-arch.png); width: 200px; height: 125px; }
.mark.on-photo, .seal.on-photo { background: #fffaf2; }
.mark.center, .seal.center { -webkit-mask-position: center; mask-position: center; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 0; border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-primary:disabled { background: var(--brand-disabled); color: var(--on-brand); }
.btn-ok { background: var(--ok); color: var(--on-solid); box-shadow: none; }
.btn-ok:hover { filter: brightness(1.08); background: var(--ok); color: var(--on-solid); }
.btn-danger { background: var(--danger); color: var(--on-solid); box-shadow: none; }
.btn-danger:hover { filter: brightness(1.08); background: var(--danger); color: var(--on-solid); }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); box-shadow: none; }
.btn-danger-soft:hover { background: var(--danger-bg); color: var(--danger); filter: brightness(.97); }
.btn-lg { min-height: var(--tap-lg); font-size: var(--fs-base); padding: 0 24px; }
.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .75; }
.btn-link {
  background: none; border: 0; padding: 0 4px; min-height: var(--tap);
  color: var(--accent); font: 600 1rem var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.btn-link:hover { color: var(--brand); }
.btn-link.danger { color: var(--danger); }
.btn-icon {
  width: var(--tap); height: var(--tap); flex: none; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.btn-icon.square { border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); width: 40px; height: 40px; }
.btn-icon.plain { background: none; }
.btn-icon svg { width: 18px; height: 18px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; opacity: .8; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ fields */

.field { display: flex; flex-direction: column; gap: 8px; font: 600 var(--fs-sm) var(--font-body); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .help { font-weight: 400; font-size: .875rem; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap-lg); padding: 0 14px;
  border: 0; border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 400 1.125rem/1.4 var(--font-body);
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field select, select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b5f52' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.error-text { color: var(--danger); font-size: var(--fs-sm); min-height: 1.3em; }

.stepper { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-radius: 12px; background: var(--bg); padding: 0 8px; }
.stepper button {
  width: 48px; height: 48px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 400 28px/1 var(--font-body);
}
.stepper output { font: 400 30px var(--font-display); min-width: 2ch; text-align: center; }
.stepper.compact { min-height: 48px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 4px; }
.stepper.compact button { width: 40px; height: 40px; box-shadow: none; background: var(--surface-2); border-radius: 8px; font-size: 22px; }
.stepper.compact output { font: 600 18px var(--font-body); }

/* ------------------------------------------------------------------ feedback */

.notice { border-radius: var(--r-md); padding: 10px 14px; font-size: var(--fs-sm); line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.danger { background: var(--danger-bg); color: var(--danger); }
.notice.neutral { background: var(--surface-2); color: var(--text-2); flex-direction: row; align-items: center; gap: 10px; }
.notice ul { margin: 2px 0 0; padding-left: 18px; }
.notice .btn-link { color: inherit; text-decoration: underline; align-self: flex-start; min-height: 36px; padding: 0; }

.tag {
  align-self: flex-start; display: inline-block;
  font: 700 12px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2);
}
.tag.stay { background: var(--booking-bg); color: var(--booking); }
.tag.closure { background: var(--closure-bg); color: var(--closure); }
.tag.event { background: var(--event-bg); color: var(--event); }
.tag.sm { font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.badge { font: 700 12px/1 var(--font-body); background: var(--brand); color: var(--on-brand); border-radius: var(--r-pill); padding: 3px 8px; }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-md); padding: 3px; font: 600 14px var(--font-body); }
.seg button {
  min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: var(--muted); font: inherit;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(60, 35, 15, .12); }
.seg.full { display: flex; }
.seg.full button { flex: 1; min-height: 40px; font-size: var(--fs-sm); }

.toast-wrap {
  position: fixed; z-index: 80; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  width: min(480px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--toast-bg); color: var(--toast-fg); border-radius: 12px; padding: 0 6px 0 16px;
  min-height: 48px; font-size: var(--fs-sm); box-shadow: 0 12px 32px -8px rgba(60, 35, 15, .4);
  animation: toast-in .2s ease-out;
}
.toast button { background: none; border: 0; color: var(--toast-action); font: 600 var(--fs-sm) var(--font-body); padding: 0 12px; min-height: 44px; cursor: pointer; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.skeleton { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .blk { background: var(--line-soft); border-radius: 4px; height: 16px; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.empty { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: 24px 16px; }
.empty h3 { font-size: var(--fs-lg); }
.empty p { color: var(--text-2); }

/* ------------------------------------------------------------------ dialogs & sheets */

dialog { border: 0; padding: 0; color: var(--text); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); }
/* Bottom sheet on phones, centered card on wider screens */
dialog.sheet {
  width: 100%; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: 92dvh; overflow: auto; box-shadow: var(--shadow-2);
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
}
dialog.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
dialog.sheet.no-grip::before { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-body { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) {
  dialog.sheet {
    width: min(520px, calc(100vw - 32px)); margin: auto; border-radius: var(--r-xl);
    padding: 24px 28px 28px; max-height: 88vh;
  }
  dialog.sheet::before { display: none; }
}

/* Full-screen sheet on phones (booking, first-run profile) */
dialog.full {
  width: 100%; height: 100dvh; margin: 0; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
  padding-top: env(safe-area-inset-top);
}
dialog.full:not([open]) { display: none; }

/* ------------------------------------------------------------------ app shell */

.app { min-height: 100dvh; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.app-main { min-width: 0; }

.topbar { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) var(--gutter) 8px; }
.topbar .mark { width: 56px; height: 35px; flex: none; }
.topbar .divider { width: 1px; height: 28px; background: var(--line); flex: none; }
.topbar h1 { flex: 1; font-size: 22px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: var(--tap); height: var(--tap); border-radius: 50%; flex: none; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--brand); font: 600 15px var(--font-body);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}

.tabbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border: 0; background: none; cursor: pointer; text-decoration: none;
  color: var(--muted); font: 600 12px var(--font-body);
}
.tabbar [aria-current="page"] { color: var(--brand); }
.tabbar svg { width: 26px; height: 26px; }

.more-head { display: flex; align-items: center; gap: 14px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line-soft); }
.more-head .avatar { width: 48px; height: 48px; font-size: 17px; cursor: default; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 4px;
  border: 0; border-bottom: 1px solid var(--line-soft); background: none; cursor: pointer;
  color: var(--text); font: 400 var(--fs-base) var(--font-body); text-decoration: none; text-align: left;
}
.menu-list > :last-child { border-bottom: 0; }
.menu-list .chev { color: var(--muted); }
.menu-list .danger { color: var(--danger); }
.menu-list .soon { color: var(--faint); cursor: default; }
.soon-tag { font-size: 12px; font-weight: 400; color: var(--faint); }

.sidebar { display: none; }

@media (min-width: 640px) {
  .app { display: flex; padding-bottom: 0; }
  .tabbar { display: none; }
  .toast-wrap { bottom: 24px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 20px;
    position: sticky; top: 0; height: 100dvh; flex: none; overflow-y: auto;
    width: var(--sidebar-mini); padding: 22px 10px;
    background: var(--surface); border-right: 1px solid var(--line);
  }
  .sidebar .mark { width: 62px; height: 40px; margin: 0 auto; }
  .nav-group { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
  .nav-group .eyebrow { display: none; padding: 0 10px 6px; font-size: 12px; }
  .nav-item {
    display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 8px;
    color: var(--text); text-decoration: none; position: relative;
  }
  .nav-item svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
  .nav-item .label { display: none; flex: 1; }
  .nav-item:hover { background: var(--bg); color: var(--text); }
  .nav-item[aria-current="page"] { background: var(--booking-bg); color: var(--brand); font-weight: 600; }
  .nav-item[aria-current="page"] svg { color: var(--brand); }
  .nav-item.soon { color: var(--faint); cursor: default; }
  .nav-item.soon svg { color: var(--faint); }
  .nav-item.soon:hover { background: none; }
  .nav-item .soon-tag { display: none; }
  /* Mini sidebar: labels show on hover/focus */
  .nav-item:hover .label, .nav-item:focus-visible .label {
    display: block; position: absolute; left: calc(100% + 8px); white-space: nowrap; z-index: 60;
    background: var(--toast-bg); color: var(--toast-fg); padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  }
  .user-chip {
    margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0;
    border-top: 1px solid var(--line-soft);
  }
  .user-chip .avatar { width: 40px; height: 40px; font-size: 14px; }
  .user-chip .who { display: none; }
  .app-main { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
  .topbar { display: none; }
}

@media (min-width: 960px) {
  .sidebar { width: var(--sidebar-w); padding: 22px 14px; }
  .sidebar .mark { width: 200px; height: 130px; margin: 0 8px; }
  .nav-group .eyebrow { display: block; }
  .nav-item { height: 40px; padding: 0 10px; }
  .nav-item svg { display: none; }
  .nav-item .label, .nav-item:hover .label, .nav-item:focus-visible .label {
    display: block; position: static; background: none; color: inherit; padding: 0; font-size: inherit; font-weight: inherit;
  }
  .nav-item .soon-tag { display: inline; }
  .user-chip { padding: 12px 10px 0; }
  .user-chip .who { display: flex; flex-direction: column; min-width: 0; }
  .user-chip .who strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .user-chip .who span { font-size: 13px; color: var(--muted); }
  .user-chip .who button { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
  .user-chip .who button:hover { color: var(--brand); text-decoration: underline; }
}

/* Photo band at the top of app pages (desktop) */
.photo-band {
  position: relative; display: none; align-items: flex-end; flex: none;
  background: var(--band) center 70% / cover; color: #fffaf2;
}
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(26, 22, 19, .6), rgba(26, 22, 19, .1) 70%); }
.photo-band > * { position: relative; }
@media (min-width: 640px) { .photo-band { display: flex; } }

.page { padding: 0 var(--gutter) 24px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .page { padding: 20px 32px 24px; } }

/* FAB on phones */
.fab {
  position: fixed; z-index: 40; right: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--brand); color: var(--on-brand); font: 600 var(--fs-base) var(--font-body);
  display: flex; align-items: center; gap: 8px; box-shadow: 0 12px 32px -8px rgba(60, 35, 15, .5);
}
.fab .plus { font-size: 24px; font-weight: 400; line-height: 1; }
@media (min-width: 640px) { .fab { display: none; } }

/* ------------------------------------------------------------------ calendar */

.cal-layout { flex: 1; display: flex; min-height: 0; }
.cal-layout > .cal-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.band-cal { height: 128px; padding: 0 32px 18px; --band: url(/img/photos/band.jpg); }
.band-cal h2 { font-size: 30px; color: #fffaf2; }
.band-cal p { font-size: 16px; color: #f3ebdd; margin-top: 4px; }

.cal-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-toolbar h2 { flex: 1; font-size: 24px; min-width: 9ch; }
.cal-toolbar .btn-icon { background: none; }
.cal-toolbar .desk { display: none; }
@media (min-width: 640px) {
  .cal-toolbar { gap: 10px; }
  .cal-toolbar h2 { font-size: 30px; }
  .cal-toolbar .desk { display: inline-flex; }
  .cal-toolbar .btn-icon { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: var(--r-md); width: 40px; height: 40px; }
}

.cal-card { padding: 0; }
@media (min-width: 640px) { .cal-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 6px 12px 10px; } }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); font: 600 12px var(--font-body); color: var(--muted); text-align: center; letter-spacing: .04em; padding: 6px 0; }
.cal-dow .long { display: none; }
@media (min-width: 640px) { .cal-dow { font-size: 13px; text-align: left; padding: 8px 4px; } .cal-dow .long { display: inline; } .cal-dow .short { display: none; } }
.cal-week {
  display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line-soft);
  padding: 4px 0 6px; min-height: 68px; position: relative;
}
@media (min-width: 640px) { .cal-week { min-height: 104px; gap: 6px; padding: 6px 0; } }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; }
@media (min-width: 640px) { .cal-days { justify-items: start; } }
.cal-day {
  width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: none; color: var(--text); font: 600 14px/26px var(--font-body); text-align: center;
}
@media (min-width: 640px) { .cal-day { width: 28px; height: 28px; line-height: 28px; } }
.cal-day.other { color: var(--faint); }
.cal-day.past { color: var(--faint); cursor: default; }
.cal-day.today { background: var(--brand); color: var(--on-brand); }
.cal-day:not(.past):hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
/* Bars sit on a half-day grid: 14 columns per week */
.cal-bars { display: grid; grid-template-columns: repeat(14, 1fr); grid-auto-rows: 20px; row-gap: 3px; }
@media (min-width: 640px) { .cal-bars { grid-auto-rows: 26px; row-gap: 4px; } }
.bar {
  margin: 0 1px; border: 0; border-radius: var(--r-sm); padding: 0 5px; cursor: pointer; text-align: left;
  font: 700 11.5px/20px var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
@media (min-width: 640px) { .bar { margin: 0 2px; padding: 0 8px; font: 600 13px/26px var(--font-body); } }
.bar.stay { background: var(--booking); color: var(--on-brand); }
.bar.closure { background: var(--hatch-closure); color: var(--closure); box-shadow: inset 0 0 0 1.5px var(--closure); }
.bar.event { background: var(--event-bg); color: var(--event-ink); outline: 1.5px dashed var(--event); outline-offset: -1.5px; }
.bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.bar:focus-visible { box-shadow: var(--focus); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 4px 0; font: 600 13px var(--font-body); color: var(--text-2); border-top: 1px solid var(--line-soft); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .stay { background: var(--booking); }
.legend .closure { background: repeating-linear-gradient(-45deg, var(--closure-bg) 0 3px, var(--surface) 3px 5px); box-shadow: inset 0 0 0 1.5px var(--closure); }
.legend .event { background: var(--event-bg); outline: 1.5px dashed var(--event); outline-offset: -1.5px; }

.cal-status { font-size: var(--fs-sm); color: var(--muted); min-height: 1.2em; }

/* List view */
.list-view { display: flex; flex-direction: column; gap: 10px; }
.entry {
  display: flex; gap: 12px; padding: 12px; border: 0; border-radius: var(--r-lg); text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(60, 35, 15, .08); font: inherit; width: 100%;
}
.entry .date { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; font: 600 12px var(--font-body); letter-spacing: .06em; color: var(--muted); }
.entry .date b { font: 400 26px var(--font-display); color: var(--text); letter-spacing: 0; }
.entry .body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.entry .title { font: 400 19px var(--font-display); }
.entry .when { font-size: var(--fs-sm); color: var(--text-2); }
.entry.event { outline: 1.5px dashed var(--event); outline-offset: -1.5px; box-shadow: none; }
.entry.closure { background: repeating-linear-gradient(-45deg, var(--closure-bg) 0 6px, var(--surface) 6px 12px); box-shadow: inset 0 0 0 1.5px var(--closure); }
.entry.closure .body { background: var(--surface); border-radius: 8px; padding: 6px 8px; }
.turnover { display: flex; align-items: center; gap: 10px; border-radius: var(--r-md); background: var(--surface-2); padding: 10px 12px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.turnover svg { flex: none; color: var(--brand); }

/* Stay details: bottom sheet on phones, side panel on desktop */
.detail-times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--bg); border-radius: var(--r-lg); padding: 14px; }
.detail-times > div { display: flex; flex-direction: column; gap: 2px; }
.detail-times .d { font: 400 19px var(--font-display); }
.detail-times .t { font-size: var(--fs-sm); color: var(--text-2); }
.kv { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv > div.stack { flex-direction: column; align-items: stretch; gap: 4px; }
.kv .k { font-size: 14px; color: var(--muted); }
.kv .v { font-weight: 600; }
.kv .v.plain { font-weight: 400; line-height: 1.45; white-space: pre-wrap; }
.contact-btns { display: flex; gap: 8px; }
.contact-btns a { width: 44px; height: 44px; border-radius: 50%; background: var(--event-bg); color: var(--event); display: inline-flex; align-items: center; justify-content: center; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-note { font-size: 14px; color: var(--muted); text-align: center; }
.detail-title { font-size: 26px; }

@media (min-width: 960px) {
  dialog.panel {
    position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; width: 360px;
    border-radius: 0; border-left: 1px solid var(--line); box-shadow: none; padding: 24px; overflow-y: auto;
  }
  dialog.panel::before { display: none; }
  dialog.panel .sheet-body { min-height: 100%; }
  dialog.panel .detail-actions { margin-top: auto; }
  dialog.panel .detail-title { font-size: 28px; }
  .with-panel { margin-right: 360px; }
}

/* ------------------------------------------------------------------ booking */

.book { background: var(--surface); }
.book-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0 20px; }
.book-head .titles { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.book-head h2 { font-size: 24px; }
.progress { display: flex; gap: 6px; padding: 12px 20px 4px; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress i.on { background: var(--brand); }
.book-steps { flex: 1; overflow-y: auto; }
.step { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.book-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.book-foot .summary { flex: 1; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; }
.book-foot .summary strong { color: var(--text); font-size: var(--fs-base); }
.book-foot .btn-lg { padding: 0 28px; }
/* Phone: one step at a time */
.book[data-step="1"] .step:not([data-step="1"]),
.book[data-step="2"] .step:not([data-step="2"]),
.book[data-step="3"] .step:not([data-step="3"]),
.book[data-step="done"] .step:not([data-step="done"]) { display: none; }
.book[data-step="done"] .progress, .book[data-step="done"] .book-foot { display: none; }

.picker { display: flex; flex-direction: column; gap: 6px; }
.picker-months { display: grid; grid-template-columns: 1fr; gap: 24px; }
.month { display: flex; flex-direction: column; gap: 6px; }
.month-head { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; }
.month-head h3 { font-size: 20px; flex: 1; }
.month-dow { display: grid; grid-template-columns: repeat(7, 1fr); font: 600 12px var(--font-body); color: var(--muted); text-align: center; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.pday { height: 44px; position: relative; display: flex; align-items: center; justify-content: center; }
.pday button {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: none; color: var(--text); font: 600 16px/40px var(--font-body);
}
.pday button:disabled { cursor: default; }
.pday.blank button { visibility: hidden; }
.pday.past button { color: var(--faint); }
.pday.taken button { background: var(--hatch-taken); color: var(--muted); text-decoration: line-through; border-radius: var(--r-md); }
.pday.am-only button { background: linear-gradient(135deg, var(--surface) 50%, var(--line) 50%); border-radius: var(--r-md); }
.pday.in-range { background: var(--sky-bg); }
.pday.in-range button { color: var(--sky-ink); }
.pday.sel button { background: var(--sky); color: var(--surface); border-radius: 50%; text-decoration: none; }
.pday.sel.start { background: linear-gradient(to right, transparent 50%, var(--sky-bg) 50%); }
.pday.sel.end { background: linear-gradient(to right, var(--sky-bg) 50%, transparent 50%); }
.pday.sel.start.end { background: none; }
.pday .dot { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.picker-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 2px 6px; font-size: 13px; color: var(--text-2); }
.picker-legend span { display: flex; align-items: center; gap: 6px; }
.picker-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.picker-legend .taken { background: var(--hatch-taken); }
.picker-legend .am { background: linear-gradient(135deg, var(--surface) 50%, var(--line) 50%); box-shadow: inset 0 0 0 1px var(--line); }
.picker-legend .ev { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.when-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when-box { border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.when-box.set { box-shadow: inset 0 0 0 2px var(--sky); }
.when-box .eyebrow { font-size: 12px; letter-spacing: .08em; }
.when-box .d { font: 600 16px var(--font-body); }
.when-box select {
  border: 0; background: none; padding: 0; margin: 0; color: var(--accent); cursor: pointer;
  font: 600 var(--fs-sm) var(--font-body); -webkit-appearance: none; appearance: none;
}
.preview-bar { align-self: flex-start; max-width: 100%; height: 26px; border-radius: var(--r-sm); background: var(--booking); color: var(--on-brand); font: 700 13px/26px var(--font-body); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review { border-radius: var(--r-lg); background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.review .row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.review .row span:first-child { color: var(--muted); }
.review .row span:last-child { font-weight: 600; text-align: right; }
.review .links { display: flex; gap: 16px; }
.done { padding: 72px 24px 24px; align-items: stretch; text-align: center; }
.done .check { align-self: center; width: 80px; height: 80px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done h2 { font-size: 32px; }
.done .card { text-align: left; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.done .card .t { font: 400 21px var(--font-display); }

/* Desktop: everything on one dialog */
@media (min-width: 960px) {
  dialog.full.book {
    width: min(1060px, calc(100vw - 64px)); height: auto; max-height: calc(100dvh - 48px);
    margin: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-2); padding: 0;
  }
  .book .progress, .book .eyebrow.stepno { display: none; }
  .book-head { padding: 24px 28px 8px 28px; }
  .book-head h2 { font-size: 30px; }
  .book:not([data-step="done"]) .book-steps { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px 32px; padding: 12px 28px 24px; align-content: start; }
  .book-steps { min-height: 0; overflow-y: auto; }
  .book:not([data-step="done"]) .step { display: flex !important; padding: 0; }
  .book:not([data-step="done"]) .step[data-step="1"] { grid-row: span 3; }
  .book:not([data-step="done"]) .step[data-step="done"] { display: none !important; }
  .book .step .phone-only { display: none !important; }
  .picker-months { grid-template-columns: 1fr 1fr; }
  .pday { height: 40px; }
  .pday button { width: 36px; height: 36px; line-height: 36px; font-size: 15px; }
  .book-foot { padding: 16px 28px; background: var(--bg); }
  .book-foot .back { display: none; }
}
@media (max-width: 959px) { .book .desk-only { display: none !important; } }
@media (min-width: 960px) { .book .phone-next { display: none; } .book .step[data-step="3"] textarea { min-height: 76px; } }

/* ------------------------------------------------------------------ my stays */

.band-stays { height: 200px; padding: 0 40px 24px; --band: url(/img/photos/stays.jpg); justify-content: space-between; }
.band-stays::before { background: linear-gradient(to top, rgba(26, 22, 19, .65), rgba(26, 22, 19, 0) 75%); }
.band-stays h2 { font-size: 40px; color: #fffaf2; }
.stay-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 960px) { .stay-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.stay-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .stay-card { padding: 24px; gap: 14px; } .stay-card .title { font-size: 28px !important; } }
.stay-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stay-card .title { font: 400 22px/1.2 var(--font-display); }
.stay-card .when { color: var(--text-2); }
.stay-card .note { font-size: var(--fs-sm); color: var(--muted); }
.stay-card .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 960px) { .stay-card .acts { display: flex; } }
.past { overflow: hidden; }
.past-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.past-row:last-child { border-bottom: 0; }
.past-row .t { font: 400 18px var(--font-display); }
.past-row .d { color: var(--text-2); grid-column: 1; }
.past-row .p { color: var(--muted); text-align: right; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
@media (min-width: 960px) { .past-row { grid-template-columns: 2fr 2fr 1fr; padding: 14px 20px; } .past-row .d { grid-column: auto; } .past-row .p { grid-row: auto; grid-column: auto; } }

/* ------------------------------------------------------------------ admin */

.admin-cols { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .admin-cols { flex-direction: row; align-items: flex-start; gap: 24px; } .admin-cols > .side { width: 380px; flex: none; } .admin-cols > .main { flex: 1; min-width: 0; } }
.req-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.req-card .who .n { font: 400 21px var(--font-display); }
.req-card .who .e { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.req-card .quote { font-size: var(--fs-sm); background: var(--bg); border-radius: var(--r-md); padding: 10px 12px; }
.role-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (min-width: 960px) { .role-pills { display: flex; } .role-pills button { flex: 1; } }
.role-pills button {
  min-height: 40px; border: 0; border-radius: 8px; cursor: pointer; padding: 0 6px;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); font: 600 14px var(--font-body);
}
.role-pills button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.req-acts { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.roles-help { background: var(--surface-2); border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.roles-help strong { color: var(--text); }

.people { overflow: hidden; }
.people-tools { display: flex; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.people-tools .input { min-height: var(--tap); flex: 1; font-size: 16px; }
.people-head { display: none; }
.sort-select select { min-height: var(--tap); border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 10px; font: inherit; }
.people-head button { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.people-head button:hover, .people-head button[aria-pressed="true"] { color: var(--text); }
.people-head button:focus-visible { box-shadow: var(--focus); border-radius: var(--r-sm); }
.person { border-bottom: 1px solid var(--line-soft); }
.person:last-child { border-bottom: 0; }
.person-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); font: inherit;
}
.person-row .n { font-size: var(--fs-base); font-weight: 600; display: block; }
.person-row .e { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.person-row .last { display: none; }
.person.inactive .person-row { opacity: .55; }
.person-row:hover { background: var(--bg); }
.person-facts { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.person-facts .pfact { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.person-facts .pfact > span:first-child { color: var(--muted); flex: none; }
.person-facts .pfact > span:last-child { text-align: right; overflow-wrap: anywhere; }
.role-select { display: none; }
@media (min-width: 960px) {
  .sort-select { display: none; }
  .people-head, .person-row { display: grid; grid-template-columns: 1.4fr 1.8fr 1.2fr 1fr; align-items: center; padding: 0 20px; }
  .people-head { padding: 10px 20px; font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
  .person-row { min-height: 54px; }
  .person-row .last { display: block; color: var(--muted); font-size: var(--fs-sm); }
  .person-row .tag { display: none; }
  .person-row .e { font-size: 16px; color: var(--text-2); }
  .role-select { display: block; }
  .role-select select { min-height: 34px; padding: 0 30px 0 10px; font-size: var(--fs-sm); width: auto; background-position: right 10px center; }
  .person-row .m-email { display: none; }
}
.person-row .n-wrap { min-width: 0; }
@media (max-width: 959px) { .person-row .email-col, .person-row .role-select, .person-row .last { display: none; } }

.closure-list .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.closure-list .row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ public: landing */

.landing { background: var(--bg); }
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fffaf2;
  background: #5c4a38 url(/img/photos/hero-portrait.jpg) center 60% / cover;
  background-image: image-set(url(/img/photos/hero-portrait.webp) type("image/webp"), url(/img/photos/hero-portrait.jpg) type("image/jpeg"));
}
@media (min-width: 640px) {
  .hero { min-height: min(860px, 100svh);
    background-image: image-set(url(/img/photos/hero-1280.webp) type("image/webp"), url(/img/photos/hero-1280.jpg) type("image/jpeg")); }
}
@media (min-width: 1280px), (min-width: 800px) and (min-resolution: 2dppx) {
  .hero { background-image: image-set(url(/img/photos/hero.webp) type("image/webp"), url(/img/photos/hero.jpg) type("image/jpeg")); }
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26, 22, 19, .45) 0%, rgba(26, 22, 19, 0) 22%, rgba(26, 22, 19, 0) 45%, rgba(26, 22, 19, .85) 100%); }
.hero > * { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top)) 20px 0; }
.hero-top .mark { width: 88px; height: 55px; }
.pill-link {
  min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); display: inline-flex; align-items: center;
  background: rgba(26, 22, 19, .4); color: #fffaf2; box-shadow: inset 0 0 0 1.5px rgba(255, 250, 242, .8);
  font: 600 15px var(--font-body); text-decoration: none;
}
.pill-link:hover { color: #fffaf2; background: rgba(26, 22, 19, .6); }
.hero-copy { margin-top: auto; padding: 0 24px 28px; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.hero-copy .eyebrow { color: #efe2cc; letter-spacing: .14em; }
.hero-copy h1 { font-size: 34px; line-height: 1.1; text-wrap: balance; }
.hero-copy p { font-size: 17px; color: #f3ebdd; max-width: 620px; }
.hero-copy .btn { display: none; }
@media (min-width: 640px) {
  .hero-top { padding: 32px 56px 0; }
  .hero-top .mark { width: 150px; height: 94px; }
  .pill-link { min-height: 48px; padding: 0 22px; font-size: 16px; }
  .hero-copy { padding: 0 56px 64px; gap: 18px; }
  .hero-copy .eyebrow { font-size: 14px; letter-spacing: .16em; }
  .hero-copy h1 { font-size: clamp(48px, 6vw, 84px); line-height: 1.02; }
  .hero-copy p { font-size: 21px; }
}
.landing-cta { padding: 20px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.landing-cta p { font-size: var(--fs-sm); color: var(--muted); text-align: center; }
@media (min-width: 640px) { .landing-cta { display: none; } }
.features { display: flex; flex-direction: column; padding: 6px 20px 0; }
.feature { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { border-top: 1px solid var(--line); }
.feature picture, .feature img { width: 64px; height: 64px; flex: none; border-radius: var(--r-md); object-fit: cover; }
.feature h2 { font-size: 19px; }
.feature p { font-size: var(--fs-sm); line-height: 1.4; color: var(--text-2); margin-top: 4px; }
@media (min-width: 640px) {
  .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 96px 56px; max-width: 1440px; margin: 0 auto; }
  .feature { flex-direction: column; gap: 18px; padding: 0; border: 0 !important; }
  .feature picture, .feature img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .feature h2 { font-size: 30px; }
  .feature p { font-size: 18px; line-height: 1.55; }
}
.closing {
  display: none; position: relative; min-height: 560px; align-items: flex-end;
  background: #5c4a38 center 35% / cover;
  background-image: image-set(url(/img/photos/closing.webp) type("image/webp"), url(/img/photos/closing.jpg) type("image/jpeg"));
}
.closing::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 22, 19, .7), rgba(26, 22, 19, 0) 60%); }
.closing-inner { position: relative; padding: 0 56px 56px; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 32px; }
.closing h2 { font-size: 40px; color: #fffaf2; line-height: 1.15; }
.closing p { font-size: 18px; color: #f3ebdd; margin-top: 10px; }
.closing .btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
@media (min-width: 640px) { .closing { display: flex; } }
.site-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 20px 40px; flex-wrap: wrap; }
.site-foot .seal { background: var(--text); }
.site-foot .links { display: flex; gap: 28px; font-size: 16px; color: var(--text-2); }
@media (min-width: 640px) { .site-foot { padding: 40px 56px; } }

/* ------------------------------------------------------------------ public: sign in */

.auth { min-height: 100dvh; display: flex; }
.auth-photo { display: none; }
@media (min-width: 960px) {
  .auth-photo {
    flex: 1.15; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
    background: #5c4a38 center / cover;
    background-image: image-set(url(/img/photos/signin.webp) type("image/webp"), url(/img/photos/signin.jpg) type("image/jpeg"));
  }
  .auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(26, 22, 19, .35), rgba(26, 22, 19, 0) 30%, rgba(26, 22, 19, 0) 70%, rgba(26, 22, 19, .55)); }
  .auth-photo > * { position: relative; }
  .auth-photo .mark { width: 140px; height: 88px; }
  .auth-photo .name { font: 400 28px/1.3 var(--font-display); color: #fffaf2; text-decoration: none; }
}
.auth-panel { flex: 1; display: flex; justify-content: center; padding: calc(16px + env(safe-area-inset-top)) 24px 24px; }
@media (min-width: 960px) { .auth-panel { align-items: center; padding: 48px; } }
.auth-step { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.auth-step .mark { width: 200px; height: 125px; align-self: center; margin-top: 40px; }
@media (min-width: 960px) { .auth-step .mark.phone-only { display: none; } }
.auth-step h1 { font-size: 30px; }
@media (min-width: 960px) { .auth-step h1 { font-size: 38px; } .auth-step .lede { font-size: 18px; } }
.auth-step .lede { font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); }
.auth-step .center { text-align: center; }
.auth-step .foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 16px; color: var(--text-2); }
.auth-step .foot .btn-link { text-decoration: underline; }
.back-link { align-self: flex-start; margin-left: -8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (min-width: 960px) { .code-boxes { gap: 10px; } }
.code-boxes .box {
  height: 64px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 30px/64px var(--font-mono); text-align: center; position: relative;
}
@media (min-width: 960px) { .code-boxes .box { height: 72px; line-height: 72px; font-size: 34px; } }
.code-boxes .box.cur { box-shadow: inset 0 0 0 2px var(--accent); }
.code-boxes .box.cur::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 30px; margin: -15px 0 0 -1px; background: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-boxes input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0;
  font-size: 16px; color: transparent; background: transparent; caret-color: transparent; letter-spacing: 3em;
}
.help-card { border-radius: var(--r-lg); background: var(--surface-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; }
.help-card span { color: var(--text-2); }
.help-card .row { display: flex; justify-content: space-between; align-items: center; }
.help-card .wait { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ public: privacy */
.prose { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: var(--fs-2xl); }
.prose h2 { font-size: var(--fs-lg); margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; }

/* ------------------------------------------------------------------ utilities */
@media (min-width: 640px) { .m-only { display: none !important; } }
.past-wrap summary { list-style: none; }
.past-wrap summary::-webkit-details-marker { display: none; }
.past-wrap[open] summary .muted { visibility: hidden; }
.past-wrap { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 639px) { .d-only { display: none !important; } }
.admin-cols > .side, .admin-cols > .main { min-width: 0; }
@media (min-width: 960px) {
  dialog.full.book[data-step="done"] { width: min(520px, calc(100vw - 64px)); }
  .book[data-step="done"] .done { padding: 24px 28px 28px; }
  .book[data-step="done"] .book-head h2 { visibility: hidden; }
}
@media (max-width: 639px) { .cal-main.page { padding-bottom: 88px; } }

/* ---- Weather ---------------------------------------------------------- */
.band-weather { height: 180px; padding: 0 40px 22px; --band: url(/img/photos/band.jpg); }
.band-weather::before { background: linear-gradient(to top, rgba(26, 22, 19, .65), rgba(26, 22, 19, 0) 75%); }
.band-weather h2 { font-size: 40px; color: #fffaf2; }
.band-weather p { color: rgba(255, 250, 242, .85); font-size: var(--fs-sm); }
.wx { gap: 16px; }
@media (min-width: 960px) { .wx { gap: 20px; } }
.wx-now { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.wx-now-main { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 720px) { .wx-now-main { flex-direction: row; align-items: center; gap: 40px; } .wx-now { padding: 22px 26px; } }
.wx-temp .big { font: 400 76px/1 var(--font-display); letter-spacing: -.02em; margin: 6px 0 4px; }
.wx-temp .hilo { color: var(--text-2); font-size: var(--fs-sm); }
.wx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; flex: 1; }
@media (min-width: 1100px) { .wx-stats { grid-template-columns: repeat(3, 1fr); } }
.wx-stats div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wx-stats dt { font: 600 var(--fs-xs) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wx-stats dd { margin: 0; font-size: var(--fs-lg); font-weight: 600; display: flex; flex-direction: column; }
.wx-stats dd span { font-size: var(--fs-sm); font-weight: 400; color: var(--muted); }
.wx-admin { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.wx-row { display: grid; gap: 16px; }
@media (min-width: 1100px) { .wx-row { grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; } }
.wx-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 720px) { .wx-card { padding: 20px 24px; } }
.wx-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wx-card h3 { font: 400 var(--fs-xl) var(--font-display); }
.wx-chart-label { font-size: var(--fs-sm); color: var(--text-2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.key { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid; }
.key.temp { border-color: var(--brand); }
.key.wind { border-color: var(--sky); margin-left: 6px; }
.key.gust { border-color: var(--sky); border-top-style: dashed; opacity: .7; margin-left: 6px; }
.wx-report-tools { display: flex; gap: 8px; align-items: center; }
.wx-year { width: auto; min-height: 40px; padding: 0 34px 0 12px; font-size: var(--fs-sm); }
.wx-note { font-size: var(--fs-xs); color: var(--muted); margin-top: -4px; }
.wx-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-totals div { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wx-totals strong { font: 400 34px/1.1 var(--font-display); }
.wx-totals small { font: 400 var(--fs-sm) var(--font-body); color: var(--muted); }
.wx-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.wx-table th { text-align: left; font: 600 var(--fs-xs) var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.wx-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); }
.wx-table th:not(:first-child), .wx-table td:not(:first-child) { text-align: right; }

/* Charts (public/app/charts.js) */
.chart { position: relative; width: 100%; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); }
.chart .grid line.day { stroke: var(--line); stroke-dasharray: 2 3; }
.chart text { fill: var(--muted); font: 11px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.temp { stroke: var(--brand); }
.chart .line.wind { stroke: var(--sky); }
.chart .line.gust { stroke: var(--sky); stroke-width: 1.25; stroke-dasharray: 3 3; opacity: .7; }
.chart .guide { stroke: var(--faint); stroke-width: 1; }
.chart .dot { fill: var(--surface); stroke-width: 2.5; }
.chart .dot.temp { stroke: var(--brand); }
.chart .dot.wind { stroke: var(--sky); }
.chart .bar rect:not(.hit) { fill: var(--sky); }
.chart .bar.off rect:not(.hit) { fill: var(--faint); opacity: .55; }
.chart .bar .hit { fill: transparent; }
.chart .bar:hover rect:not(.hit) { filter: brightness(1.15); }
.chart-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; white-space: nowrap;
  background: var(--toast-bg); color: var(--toast-fg); font-size: 13px; padding: 5px 9px; border-radius: var(--r-sm);
}

/* ---- Page heading row (Admin) — phones: plain row above the content ---- */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--gutter) 12px; }
.page-head h1 { flex: 1; font-size: 36px; }
.page-head .seg.full { flex: 1; }

/* ---- Landscape behind the app (tablets and desktops) --------------------
   The mesa photo fills the window; the sidebar is frosted glass, page headings
   sit on the sky, and the content floats on a card over the grass. */
.sky-date { display: none; }
@media (min-width: 640px) {
  .app { position: relative; isolation: isolate; }
  .app::before {
    content: ""; position: fixed; inset: 0; z-index: -1; background-color: #6f8aa3;
    background-image:
      linear-gradient(to bottom, rgba(26, 22, 19, .55), rgba(26, 22, 19, .25) 22%, rgba(26, 22, 19, 0) 40%),
      image-set(url(/img/photos/backdrop.webp) type("image/webp"), url(/img/photos/backdrop.jpg) type("image/jpeg"));
    background-position: center, center 40%; background-size: cover, cover;
  }
  .sidebar {
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .app-main { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }

  .photo-band, .page-head {
    display: flex; align-items: flex-end; gap: 16px; height: auto; flex: none;
    background: none; padding: 32px 24px 24px; color: #fffaf2;
  }
  .photo-band::before { display: none; }
  .photo-band h2, .page-head h1 {
    font: 400 40px/1.05 var(--font-display); color: #fffaf2; text-shadow: 0 2px 16px rgba(26, 22, 19, .4);
  }
  .photo-band p { font-size: 18px; color: #fffaf2; margin-top: 8px; text-shadow: 0 1px 8px rgba(26, 22, 19, .55); }
  .photo-band .sky-date {
    display: block; margin: 0 0 8px; font: 600 13px var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  }
  .page-head .seg.full { flex: none; }
  .page-head .seg.full button { padding: 0 16px; }

  .app-main > .page {
    flex: 1; margin: 0 24px 24px; padding: 24px; border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    box-shadow: 0 24px 50px -18px rgba(26, 22, 19, .55);
  }
  .app-main > .cal-main.page {
    background: color-mix(in srgb, var(--surface) 96%, transparent); border-radius: 14px; padding: 6px 12px 10px;
  }
  .cal-main .cal-card { background: none; box-shadow: none; padding: 0; }
  .cal-main .cal-toolbar { padding: 10px 4px 8px; }
  /* Toolbar order from the design: title · Month/List · Today · ‹ › · Book */
  .cal-toolbar .seg { order: 1; } #today { order: 2; } #prev { order: 3; } #next { order: 4; } #book { order: 5; }
}
@media (min-width: 960px) {
  .photo-band, .page-head { padding: 40px 32px 28px 40px; }
  .photo-band h2, .page-head h1 { font-size: 46px; }
  .app-main > .page { margin: 0 32px 32px 40px; padding: 28px 32px; }
  .app-main > .cal-main.page { padding: 6px 12px 10px; }
  /* Stay details float beside the calendar card instead of filling the edge. */
  dialog.panel {
    inset: var(--panel-top, 24px) 32px 32px auto; height: auto; border: 0; border-radius: 14px;
    box-shadow: 0 24px 50px -18px rgba(26, 22, 19, .55);
  }
  .app-main > .cal-main.page.with-panel { margin-right: calc(32px + 360px + 20px); }
}

/* Year-over-year rain. Colors validated with the dataviz checker (light vs
   --surface, dark vs dark --surface); earlier years are context, in gray. */
:root { --yr-cur: #b5541c; --yr-prev: #2f6fa8; }
@media (prefers-color-scheme: dark) { :root { --yr-cur: #cf7a45; --yr-prev: #5596d0; } }
.wx-yoy-head { font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); }
.wx-yoy-head strong { color: var(--text); }
.wx-legend { display: flex; gap: 16px; flex-wrap: wrap; font: 600 13px var(--font-body); color: var(--text-2); }
.wx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key.yr-cur { border-color: var(--yr-cur); border-top-width: 3px; }
.key.yr-prev { border-color: var(--yr-prev); border-top-width: 3px; }
.key.yr-old { border-color: var(--faint); }
.chart .line.yr-cur { stroke: var(--yr-cur); stroke-width: 2.5; }
.chart .line.yr-prev { stroke: var(--yr-prev); stroke-width: 2; }
.chart .line.yr-old { stroke: var(--faint); stroke-width: 1.25; opacity: .7; }
.chart .dot.yr-cur { stroke: var(--yr-cur); }
.chart .dot.yr-prev { stroke: var(--yr-prev); }
.chart text.end-label { fill: var(--text-2); font-weight: 600; font-size: 12px; }
.wx-coverage { font-size: var(--fs-sm); }
.wx-table-wrap { overflow-x: auto; }
.wx-yoy-table tfoot th { text-align: left; font: 600 var(--fs-sm) var(--font-body); letter-spacing: 0; text-transform: none; color: var(--text); padding: 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.wx-yoy-table tfoot td { font-weight: 600; }
.wx-yoy-table tfoot tr.muted th, .wx-yoy-table tfoot tr.muted td { font-weight: 400; color: var(--muted); }
.wx-yoy-table td.low { color: var(--warn-ink); }
@media (prefers-color-scheme: dark) { .wx-yoy-table td.low { color: var(--gold); } }

/* ---- Who to call ---------------------------------------------------------- */
.contacts { gap: 16px; }
.contacts-tools .input { max-width: 480px; }
#list { display: grid; gap: 16px; }
@media (min-width: 1100px) { #list { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-group { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.contact-group h3 { font: 400 var(--fs-xl) var(--font-display); margin-bottom: 4px; }
.contact-group.danger { box-shadow: inset 4px 0 0 var(--danger), var(--shadow-1); }
.contact-group ul { list-style: none; margin: 0; padding: 0; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.contact:first-child { border-top: 0; }
.contact .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.contact .n { font-weight: 600; }
.contact .r { color: var(--text-2); font-size: var(--fs-sm); }
.contact .note { color: var(--muted); font-size: var(--fs-sm); }
.contact .tag { font-size: 11px; vertical-align: middle; }
.contact .how { display: flex; flex-wrap: wrap; gap: 6px; }
.contact .call { min-height: 40px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Check-out checklist ------------------------------------------------ */
.co-wrap { width: 100%; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.co-block { display: flex; flex-direction: column; gap: 10px; }
.co-cards { display: flex; flex-direction: column; gap: 10px; }
.co-card { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.co-card h3 { font: 400 var(--fs-lg) var(--font-display); }
.co-other { background: var(--surface); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-1); }
.co-other summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--text-2); }
.co-other-form { display: grid; gap: 12px; padding: 4px 0 16px; }
.co-recent { list-style: none; margin: 0; padding: 0 16px; }
.co-recent li + li { border-top: 1px solid var(--line-soft); }
.co-recent a { display: flex; align-items: center; gap: 10px; min-height: 52px; color: inherit; text-decoration: none; }
.co-recent .t { font-weight: 600; flex: 1; min-width: 0; }
.co-recent .d { color: var(--muted); font-size: var(--fs-sm); }
.co-recent .chev { color: var(--faint); }
.co-help { margin: -4px 0 0; }

.co-bar { display: flex; flex-direction: column; gap: 8px; }
.co-sticky {
  position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px;
  background: color-mix(in srgb, var(--surface) 96%, transparent); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.co-prog { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.co-prog span { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.co-next { min-height: 36px; padding: 0 12px; font-size: 14px; }
.co-meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.co-meter i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s ease; }
.co-row { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 0 4px; }
.co-all { min-height: 32px; padding: 0 10px; font-size: 13px; margin-left: auto; }
.co-live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--warn); }
.co-live[data-state="live"]::before { background: var(--ok); }
.co-save[data-state="failed"] { color: var(--danger); font-weight: 600; }
.co-here { flex: 1 1 auto; }

.area { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); scroll-margin-top: 150px; }
.area h2 { font: inherit; margin: 0; }
.area-head {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--r-lg);
}
.area-badge { flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--on-solid); }
.area-badge svg { width: 16px; height: 16px; }
.area[data-state="partial"] .area-badge { box-shadow: inset 0 0 0 2px var(--brand); }
.area[data-state="done"] .area-badge { background: var(--ok); box-shadow: none; }
.area-name { flex: 1; font: 400 var(--fs-lg) var(--font-display); min-width: 0; }
.area-count { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.area.has-problem .area-count { color: var(--danger); font-weight: 600; }
.area-head .chev { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .2s; }
.area-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.area-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.area-body[hidden] { display: none; }
.items { list-style: none; margin: 0; padding: 0; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.item.off { opacity: .55; }
.tick {
  flex: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; position: relative;
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-solid);
}
.tick::before { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--faint); transition: background .15s; }
.tick svg { position: relative; width: 18px; height: 18px; opacity: 0; transition: opacity .15s; }
.tick[aria-checked="true"]::before { background: var(--ok); box-shadow: none; }
.tick[aria-checked="true"] svg { opacity: 1; }
.item[data-status="na"] .tick::before { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line); }
.item[data-status="problem"] .tick::before { box-shadow: inset 0 0 0 2px var(--danger); }
.item.off .tick { cursor: default; }
.item.off .tick::before { box-shadow: inset 0 0 0 2px var(--line); border-style: dashed; }
.txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: pointer; line-height: 1.35; }
.item.off .txt { cursor: default; }
.item[data-status="done"] .t, .item[data-status="na"] .t { color: var(--muted); }
.item[data-status="na"] .t { text-decoration: line-through; }
.hint { color: var(--muted); font-size: 13px; }
.by { color: var(--faint); font-size: 12px; }
.by:empty { display: none; }
.side { flex: none; display: flex; align-items: center; gap: 4px; }
.chip { min-height: 36px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font: 600 13px var(--font-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text-2); color: var(--surface); }
.flag { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.flag svg { width: 20px; height: 20px; }
.flag:hover { color: var(--danger); }
.flag[aria-pressed="true"] { background: var(--danger-bg); color: var(--danger); }
.item[data-status="problem"] { background: linear-gradient(to right, var(--danger-bg), transparent 60%); border-radius: 8px; }
.area-note { display: flex; flex-direction: column; gap: 6px; }
.area-note label { font-weight: 600; font-size: var(--fs-sm); }
.area-note textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 var(--fs-base)/1.4 var(--font-body); resize: vertical; }
.area-note textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.note-by { color: var(--muted); font-size: 12px; }
.note-by:empty { display: none; }
.area-all { align-self: flex-start; }
.co-finish { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.co-finish h3 { font: 400 var(--fs-xl) var(--font-display); }
.co-submitted { padding: 14px 16px; }
.warn-line { color: var(--warn-ink); }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background-color: color-mix(in srgb, var(--gold) 35%, transparent); } to { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } .co-meter i, .area-head .chev { transition: none; } }
@media (max-width: 639px) {
  .co { padding-bottom: 32px; }
  .co-sticky { border-radius: var(--r-md); padding: 8px 12px 10px; }
  .co-prog strong { font-size: 15px; }
  .co-prog span { display: none; }
  .co-prog strong { flex: 1; }
}

/* A flagged item's own description box */
.item-note { flex: 1 1 100%; padding: 0 0 10px 56px; display: flex; flex-direction: column; gap: 4px; }
.item-note[hidden] { display: none; }
.item-note textarea { width: 100%; min-height: 60px; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--danger); font: 400 var(--fs-base)/1.4 var(--font-body); resize: vertical; }
.item-note textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.item-note.needs-note textarea { box-shadow: inset 0 0 0 2px var(--warn); }
.inote-by { color: var(--muted); font-size: 12px; }
.inote-by:empty { display: none; }
@media (max-width: 639px) { .item-note { padding-left: 0; } }

/* ---- Map ---- */
.map-wrap { position: relative; overflow: hidden; padding: 0; }
#map { height: min(72vh, 760px); min-height: 360px; background: var(--surface-2); z-index: 0; }
.map-panel {
  position: absolute; top: 10px; right: 10px; z-index: 500; max-height: calc(100% - 20px); overflow: auto;
  background: var(--surface); color: var(--text); border-radius: var(--r-lg, 12px); box-shadow: var(--shadow-1);
  padding: 8px 12px; font-size: var(--fs-sm); display: flex; flex-direction: column; gap: 2px; max-width: 190px;
}
.mp-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 2px; }
.mp-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.mp-row .muted { margin-left: auto; font-size: var(--fs-xs); }
.mp-sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); flex: none; }
.mp { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-body); color: #2a221b; }
.mp-type { color: #6b5f52; font-size: .8125rem; }
.mp-desc { font-size: .875rem; }
.map-label { color: #fff; font: 700 17px/1 var(--font-body); letter-spacing: .02em; text-shadow: 0 0 4px #000, 0 0 4px #000, 0 0 2px #000; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; }
.map-gate-num { background: rgba(0, 0, 0, .65); border: 0; color: #fff; font: 600 11px var(--font-body); padding: 0 4px; box-shadow: none; }
.map-gate-num::before { display: none; }
.hide-gate-nums .map-gate-num { display: none; }
.map-btn {
  position: absolute; z-index: 500; border: 0; cursor: pointer; background: var(--surface); color: var(--text);
  border-radius: var(--r-lg, 12px); box-shadow: var(--shadow-1); font: 600 var(--fs-sm) var(--font-body);
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 14px;
}
.map-btn svg { width: 24px; height: 24px; }
.map-locate { top: 84px; left: 10px; padding: 0; }
.map-locate.on { background: #3b82f6; color: #fff; }
.map-layers-btn { display: none; top: 10px; right: 10px; }
@media (max-width: 639px) {
  #map { height: 68vh; }
  .map-label { font-size: 14px; }
  .map-layers-btn { display: flex; }
  .map-panel { display: none; top: 62px; max-width: 190px; font-size: var(--fs-xs); padding: 6px 8px; max-height: calc(100% - 72px); }
  .map-panel.open { display: flex; }
}

/* ---- To-do list ---- */
.td-tools { display: flex; flex-direction: column; gap: 10px; }
.td-top { display: flex; gap: 10px; }
.td-top .input { flex: 1; min-width: 0; font-size: 16px; }
.td-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.td-chip {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface-2); color: var(--text-2); font: 600 var(--fs-sm) var(--font-body);
}
.td-chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.td-sum { font-size: var(--fs-sm); margin: 0; }
.td-empty { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.td-group { padding: 6px 0; }
.td-group h3 { font: 600 var(--fs-xs) var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 16px 4px; }
.td-group ul { list-style: none; margin: 0; padding: 0; }
.td-row { display: flex; align-items: center; gap: 4px; padding: 2px 10px 2px 6px; border-top: 1px solid var(--line-soft); }
.td-row:first-child { border-top: 0; }
.td-check {
  flex: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: transparent;
}
.td-check svg { width: 24px; height: 24px; border-radius: 50%; padding: 4px; box-shadow: inset 0 0 0 2px var(--faint); }
.td-check[aria-pressed="true"] svg { background: var(--ok); color: var(--on-solid); box-shadow: none; }
.td-check:hover svg { color: var(--faint); }
.td-check[aria-pressed="true"]:hover svg { color: var(--on-solid); }
.td-main {
  flex: 1; min-width: 0; text-align: left; background: none; border: 0; cursor: pointer; padding: 10px 4px;
  display: flex; flex-direction: column; gap: 2px; color: var(--text); font-family: var(--font-body);
}
.td-title { font-size: var(--fs-base); font-weight: 600; overflow-wrap: anywhere; }
.td-meta { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.td-row.is-done .td-title { text-decoration: line-through; color: var(--muted); font-weight: 500; }
/* Fixed columns, so badges, hearts and comment counts line up down the list. */
.td-tags { display: grid; grid-template-columns: 172px 58px 44px; align-items: center; flex: none; }
.td-cell { display: flex; align-items: center; min-width: 0; }
.td-cell.pills { justify-content: flex-end; gap: 6px; padding-right: 10px; }
.td-pills-m { display: none; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.td-pill { font: 700 12px var(--font-body); padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.td-pill.urgent { background: var(--danger-bg); color: var(--danger); }
.td-pill.prog { background: var(--warn-bg); color: var(--warn-ink); }
.td-pill.muted { background: var(--surface-2); color: var(--muted); }
.td-count { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); white-space: nowrap; }
.cmt-ico { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
@media (max-width: 639px) {
  .td-tags { grid-template-columns: 54px 40px; }
  .td-cell.pills { display: none; }
  .td-pills-m { display: flex; }
  .td-filters .seg { width: 100%; } .td-filters .seg button { flex: 1; } }

.td-form .field select { width: 100%; }
.td-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 479px) { .td-two { grid-template-columns: 1fr; } }
.td-assign { display: flex; gap: 8px; }
.td-assign select { flex: 1; min-width: 0; }
.td-title-input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--text); padding: 4px 0;
  font: 400 24px/1.2 var(--font-display);
}
.td-title-input:focus { outline: none; box-shadow: 0 2px 0 var(--accent); border-radius: 0; }
.td-byline { margin-top: -10px; }
.td-thread h3 { font: 600 var(--fs-xs) var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.td-thread ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.td-comment p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.td-event { font-size: var(--fs-sm); color: var(--muted); }
.td-event span { color: var(--faint); }
.td-comment-form { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.td-comment-form .input { width: 100%; min-height: 96px; padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; }
.td-details { min-height: 96px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 var(--fs-base)/1.5 var(--font-body); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.td-details:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.td-details a, .td-comment a { color: var(--accent); text-decoration: underline; }
.td-form .td-details-input { min-height: 180px; }
.item-todo { align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); text-decoration: none; padding: 4px 0; }
.item-todo:hover { text-decoration: underline; }

/* ---- Ranch info ---- */
.info-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.info-card h2 { font: 400 var(--fs-lg) var(--font-display); margin: 0; }
.info-card p { margin: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--text-2); }
.info-card a { color: var(--accent); font-weight: 600; }
.info-page { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) { .info { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; } }
.info-intro { padding: 22px 24px; display: grid; gap: 20px; align-items: center; }
.info-intro p { margin: 0; font-size: var(--fs-base); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.info-quote { margin: 0; border-left: 2px solid var(--brand); padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.info-quote span { font: italic 1.375rem/1.3 var(--font-display); color: var(--text); }
.info-quote cite { font-style: normal; font-size: var(--fs-sm); color: var(--text-2); }
.facts { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fact { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.fact-label { font: 600 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.fact-figure { font: 400 2.125rem/1.05 var(--font-display); color: var(--brand); }
.fact p { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); }
.fact a { margin-top: auto; padding-top: 4px; color: var(--accent); font-weight: 600; }
/* Full width like the other pages: the history beside its quote, then facts three across. */
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .info-intro { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Home (dashboard) ----
   The greeting and conditions sit on the sky; the cards sit on the grass at the
   bottom of the window. On phones it is a plain page: hello, then the cards. */
.home-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; padding: 4px var(--gutter) 12px; color: var(--text); }
.home-band::before { display: none; }
.home-hello h2 { font: 400 30px/1.1 var(--font-display); color: var(--text); }
.home-hello p { margin: 6px 0 0; color: var(--text-2); }
.home-hello .sky-date { display: block; margin: 0 0 6px; font: 600 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-hello { flex: 1 1 100%; }
.home-wx { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.home-wx:hover { color: var(--text); }
.home-wx .big { font: 400 34px/1 var(--font-display); }
.home-wx .sub { font-size: var(--fs-sm); color: var(--text-2); }

.home-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 4px var(--gutter) 24px; }
.home-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.home-big { font: 400 28px/1.15 var(--font-display); }
.home-kv { background: var(--surface-2); border-radius: var(--r-md); padding: 4px 14px; }
.home-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.home-kv span { color: var(--muted); }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 4px; }
.home-actions .btn { width: 100%; }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 10px 0;
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.home-row .t { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-row .d { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.swatch { width: 18px; height: 10px; border-radius: 3px; flex: none; }
.swatch.stay { background: var(--booking); }
.swatch.closure { background: repeating-linear-gradient(-45deg, var(--closure-bg) 0 3px, var(--surface) 3px 5px); box-shadow: inset 0 0 0 1.5px var(--closure); }
.swatch.event { background: var(--event-bg); outline: 1.5px dashed var(--event); outline-offset: -1.5px; }
.home-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.home-weekend { display: block; font: 400 20px/1.2 var(--font-display); }

.home-stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-width: 0; }
.home-stack:empty { display: none; }
.home-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--text); text-decoration: none; }
.home-mini:hover { color: var(--text); background: var(--surface-2); }
.home-mini .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-mini small { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.home-mini .go { color: var(--accent); font-weight: 600; }
.home-mini .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--brand); }
.home-mini .dot.warn { background: var(--gold); }
.home-mini .dot.urgent { background: var(--danger); }
.home-mini .dot.ok { background: var(--ok); }
.home-mini .dot.rain { background: var(--sky); }

@media (min-width: 640px) {
  .home-band { flex-wrap: nowrap; color: #fffaf2; }
  .home-hello { flex: 1 1 auto; }
  .home-hello h2 { font-size: 40px; color: #fffaf2; }
  .home-hello p { color: #fffaf2; }
  .home-hello .sky-date { color: #fffaf2; font-size: 13px; letter-spacing: .16em; }
  .home-wx { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; color: #fffaf2; text-shadow: 0 2px 14px rgba(26, 22, 19, .5); }
  .home-wx:hover { color: #fffaf2; }
  .home-wx .big { font-size: 64px; }
  .home-wx .sub { color: #fffaf2; font-size: 17px; }
  .home-grid { margin-top: auto; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 24px 24px; align-items: stretch; }
  .home-stack { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .home-stack > * { flex: 1 1 260px; }
  .home-card, .home-mini { background: color-mix(in srgb, var(--surface) 97%, transparent); box-shadow: 0 24px 50px -18px rgba(26, 22, 19, .55); }
  .home-mini:hover { background: var(--surface-2); }
}
@media (min-width: 960px) {
  .home-band { padding: 40px 32px 28px 40px; }
  .home-hello h2 { font-size: 46px; }
  .home-grid { grid-template-columns: repeat(3, 1fr); margin: auto 32px 32px 40px; padding: 0; align-items: end; }
  .home-card { align-self: stretch; }
  .home-stack { grid-column: auto; flex-direction: column; flex-wrap: nowrap; align-self: end; }
  .home-stack > * { flex: none; }
}

/* ---- Management ---- */
.mg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mg-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mg-list li:last-child { border-bottom: 0; }
.mg-list a { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.mg textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-md); background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); font: 400 1.0625rem/1.5 var(--font-body); resize: vertical; }
.mg textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
#mg-form { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 959px) {
  .people-tools { flex-wrap: wrap; }
  .people-tools > label:first-child { flex: 1 1 100% !important; }
  .people-tools .sort-select { flex: 1; }
  .people-tools .sort-select select { width: 100%; }
}

/* A $ sitting inside the To-do cost field */
.money { position: relative; display: block; }
.money-sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; pointer-events: none; }
.field .money input { padding-left: 28px; width: 100%; }
.td-form textarea[name=details] { min-height: 140px; }

/* ---- Documents ---- */
.docs-page { display: flex; flex-direction: column; gap: 16px; }
.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .doc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.doc { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.doc-thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-soft); overflow: hidden; display: grid; place-items: center; }
.doc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; }
.doc-ico { width: 36px; height: 36px; color: var(--brand); }
.doc-name { margin: 0; font: 400 var(--fs-lg) var(--font-display); color: var(--text); overflow-wrap: anywhere; }
.doc-desc { margin: 0; color: var(--text-2); font-size: var(--fs-base); line-height: 1.5; overflow-wrap: anywhere; }
.doc-desc:empty { display: none; }
.doc-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#doc-form { display: flex; flex-direction: column; gap: 14px; }

/* ---- To-do hearts ---- */
.td-heart { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; min-width: 36px; justify-content: center; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; white-space: nowrap; }
.td-heart:hover { background: var(--bg); }
.td-heart.on { color: var(--text); }
.td-heart:focus-visible { outline: none; box-shadow: var(--focus); }
.td-heart.static { cursor: default; font-weight: 400; color: var(--muted); }
.td-heart.static:hover { background: none; }
.td-heart.big { font-size: var(--fs-base); min-height: 44px; padding: 0 12px; box-shadow: inset 0 0 0 1.5px var(--line); }
.td-heart.big.on { box-shadow: inset 0 0 0 2px var(--brand); }
.td-hearts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -4px; }
.heart-ico { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.td-heart:hover .heart-ico { stroke: var(--text-2); }
.td-heart.on .heart-ico { fill: #d9534f; stroke: #d9534f; }
.td-heart.static .heart-ico { fill: #d9534f; stroke: #d9534f; opacity: .8; }
.td-heart.big .heart-ico { width: 22px; height: 22px; }

/* ---- Map: jump-to links ---- */
.map-jump { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.map-jump h2 { font: 400 var(--fs-lg) var(--font-display); margin: 0; }
.jump-sec { display: flex; flex-direction: column; gap: 8px; }
.jump-sec h3 { margin: 0; font: 600 var(--fs-xs) var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.jump-row { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-chip { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-soft); }
.jump-chip:hover { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--brand); }
.jump-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.jump-chip.whole { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.jump-cats { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.jump-cat[aria-selected="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
.jump-items .jump-chip { font-weight: 500; }

/* Admin → Usage */
.ustats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .ustats { grid-template-columns: repeat(6, 1fr); } }
.ustat { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.ustat strong { font: 600 28px var(--font-display, inherit); }
.ustat span { font-size: var(--fs-sm); color: var(--muted); }
.ubar-top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); margin-bottom: 4px; }
.ubar-track { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.ubar-track div { height: 100%; background: var(--brand); border-radius: 4px; }
.uspark { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
.uspark div { flex: 1; max-width: 22px; background: var(--brand); border-radius: 2px 2px 0 0; min-width: 2px; }

/* Caretakers see the calendar but can't book */
[data-role="caretaker"] [data-book], [data-role="caretaker"] #book, [data-role="caretaker"] #fab, [data-role="caretaker"] .home-actions a[href="/stays"] { display: none !important; }

/* Updates page */
.upd-page { display: flex; flex-direction: column; gap: 18px; }
.upd-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.upd-card.is-hidden { opacity: .6; }
.upd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.upd-head h3 { font-size: 22px; }
.upd-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.upd-tasks summary { cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); }
.upd-tasks ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.upd-tasks .cat { color: var(--muted); }
.log-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); }
.log-row:last-child { border-bottom: 0; }
.log-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .log-form { grid-template-columns: 170px 220px 1fr; } .log-form .wide { grid-column: 1 / -1; } }
[data-role="caretaker"] #c-stay { display: none; }

/* "View as" preview banner */
.viewas-bar { position: sticky; top: 0; z-index: 60; background: #b45309; color: #fff; padding: 8px 14px; text-align: center; font-size: var(--fs-sm); }
.viewas-bar button { all: unset; cursor: pointer; text-decoration: underline; margin-left: 10px; font-weight: 600; }
