/* Staff board: sticky header (event + tabs), filter row, day-grouped list of pickups, sticky Add guest. */

.boot, .wrap { max-width: 760px; margin: 0 auto; padding: 16px; }

/* ---------- auth screens ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand img { width: 26px; height: 26px; }

/* Sign-in, install and notification screens: the Desk on the Go brand (charcoal and amber), whatever the event. */
.auth {
  --accent: #2C2C2A; --on-accent: #FFFFFF; --accent-ink: #2C2C2A; --brand-amber: #EF9F27; --hero: #2C2C2A;
  min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--hero);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth { --accent: #EF9F27; --on-accent: #2C2C2A; --accent-ink: #F5B95C; --hero: #1B1B19; }
}
:root[data-theme="dark"] .auth { --accent: #EF9F27; --on-accent: #2C2C2A; --accent-ink: #F5B95C; --hero: #1B1B19; }
.auth-hero {
  --logo-tile: #F1EFE8; --logo-line: #888780; --logo-person: #2C2C2A; --logo-core: #EF9F27;
  display: grid; justify-items: center; gap: 14px; padding: calc(40px + env(safe-area-inset-top, 0px)) 24px 52px;
  color: #FAF9F6; text-align: center;
}
.auth-hero .logo { width: 84px; height: 84px; }
.auth-name { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: #FAF9F6; }
.auth-name span { color: var(--brand-amber); }
.auth-tag { margin: 0; font-size: 15px; color: #C9C7BE; }
.auth-body {
  display: grid; align-content: start; justify-items: center; padding: 28px 20px 64px;
  background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -26px;
}
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 24px; }
.auth .steps { list-style: none; counter-reset: st; padding: 0; gap: 12px; }
.auth .steps li { counter-increment: st; position: relative; padding: 2px 0 2px 42px; min-height: 30px; }
.auth .steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--hero); color: var(--brand-amber);
}
.auth .gate-note { padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in oklab, #EF9F27 16%, var(--surface)); }
@media (min-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .auth-hero { align-content: center; padding: 48px; }
  .auth-hero .logo { width: 112px; height: 112px; }
  .auth-name { font-size: 52px; }
  .auth-tag { font-size: 17px; }
  .auth-body { align-content: center; border-radius: 32px 0 0 32px; margin-top: 0; padding: 48px; }
}
.auth-card form { display: grid; gap: 12px; }
.auth-card .who { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.auth-card .who button { background: none; border: 0; padding: 0; color: var(--accent-ink); font: 500 13px var(--font); cursor: pointer; text-decoration: underline; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; height: 1px; background: var(--border); }
.g-logo { width: 18px; height: 18px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-inner { max-width: 760px; margin: 0 auto; padding: 10px 16px 0; display: grid; gap: 10px; }
.top-row { display: flex; align-items: center; gap: 10px; }
.event-name { flex: 1; min-width: 0; display: grid; }
.event-name .label { color: var(--accent-ink); font-size: 11px; }
.event-name strong { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-name select {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0 22px 0 0; min-height: 0; background: transparent;
  font: 600 17px var(--font); color: var(--ink); cursor: pointer; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 8px top 55%, right 3px top 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.event-name select:focus { box-shadow: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  font: 600 14px var(--font); color: var(--ink); cursor: pointer; flex: none;
}

.tabs { display: flex; gap: 4px; }
.tab {
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted);
  font: 500 15px var(--font); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { font-size: 12px; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- filters ---------- */
.toolbar { max-width: 760px; margin: 0 auto; padding: 12px 16px 4px; display: flex; gap: 8px; align-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink);
  font: 500 14px var(--font); cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-variant-numeric: tabular-nums; font-size: 12px; }
.chip.warn .n { color: var(--needs); font-weight: 600; }
.chip.warn[aria-pressed="true"] .n { color: inherit; }
.search { max-width: 760px; margin: 0 auto; padding: 8px 16px 0; }
.search input { min-height: 42px; }

/* ---------- list ---------- */
.board { max-width: 760px; margin: 0 auto; padding: 8px 16px 120px; }
.day { margin-top: 18px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 8px; }
.day-head h2 { font-size: 15px; font-weight: 600; }
.day-head .today { color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; }
.cards { display: grid; gap: 8px; }

.card {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px 12px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .15s ease-out;
}
.card:hover { border-color: var(--border-strong); }
.card.needs { border-left: 3px solid var(--needs); padding-left: 10px; }
.card.dim { opacity: .62; }
.card.dim .c-name { text-decoration: line-through; }
.c-time { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.c-time.none { color: var(--muted); font-size: 13px; font-weight: 500; }
.c-main { display: grid; gap: 4px; min-width: 0; }
.c-line1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.c-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.c-line2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--muted); }
.c-line2 span { display: inline-flex; align-items: center; gap: 5px; }
.c-line2 .icon { width: 15px; height: 15px; }
.c-line3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; }
.c-line3 .driver { color: var(--muted); }
.c-line3 .driver.me { color: var(--ink); font-weight: 500; }
.card .alert { margin-top: 4px; }

.empty { text-align: center; padding: 48px 16px; display: grid; gap: 8px; justify-items: center; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 16px; }
.foot-note { text-align: center; color: var(--muted); font-size: 13px; padding-top: 18px; }

.fab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; pointer-events: none;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
}
.fab > div { max-width: 760px; margin: 0 auto; display: flex; justify-content: flex-end; }
.fab .btn { pointer-events: auto; min-height: 50px; padding: 0 22px; box-shadow: var(--shadow-float); }
@media (max-width: 759px) { .fab .btn { width: 100%; } }

/* ---------- detail sheet ---------- */
.sheet-head h2 { font-size: 19px; }
.sheet-head .sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.d-section { padding-block: 16px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.d-section:last-child { border-bottom: 0; }
.d-section > .label { display: flex; justify-content: space-between; align-items: center; }
.trip { display: grid; gap: 10px; }
.trip.current { }
.trip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trip-when { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts { display: grid; gap: 6px; font-size: 14.5px; }
.facts > div { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--muted); }
.facts a { font-size: 13.5px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stage {
  min-height: 46px; padding: 4px 6px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: 500 13.5px/1.2 var(--font); cursor: pointer;
}
.stage[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stage.next { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.stage.past { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 30%, var(--border)); color: var(--accent-ink); }
.driver-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 14.5px; }
.driver-row select { width: auto; min-height: 40px; flex: 1 1 180px; }
.contact { display: flex; gap: 8px; flex-wrap: wrap; }
.contact .btn { flex: 1 1 0; min-width: 96px; }
.phone-text { font-variant-numeric: tabular-nums; user-select: all; }

.notes-list { display: grid; gap: 10px; }
.note { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.note .by { font-size: 12.5px; color: var(--muted); }
.note-add { display: grid; gap: 8px; }
.note-add textarea { min-height: 64px; }
.history { display: grid; gap: 8px; font-size: 13.5px; }
.history li { list-style: none; display: grid; gap: 1px; }
.history ul { margin: 0; padding: 0; display: grid; gap: 10px; }
.history .by { font-size: 12.5px; color: var(--muted); }
details > summary { cursor: pointer; font-weight: 500; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "Show"; font-size: 13px; color: var(--accent-ink); }
details[open] > summary::after { content: "Hide"; }
.danger-zone { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid color-mix(in oklab, var(--needs) 40%, var(--border)); background: var(--needs-bg); }
.confirm > div { display: flex; gap: 8px; flex-wrap: wrap; }

/* menu sheet */
.menu-list { display: grid; gap: 8px; padding-block: 16px; }
.menu-list .btn { justify-content: flex-start; }

/* ---------- admin ---------- */
.page-head { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; padding: 10px 8px 0; }
.page-head h1 { font-size: 19px; }
.admin { max-width: 760px; margin: 0 auto; padding: 8px 16px 80px; display: grid; gap: 8px; }
.admin-section { display: grid; gap: 12px; padding-block: 16px; }
.admin-section > h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.rows { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row .who { min-width: 0; flex: 1 1 200px; display: grid; }
.row .who strong { font-weight: 600; }
.row .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.event-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.event-card .top-line { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; border: 1px solid var(--border); }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 220px; font-size: 14px; min-height: 40px; }
.qr-box { display: grid; justify-items: center; gap: 12px; padding: 16px; }
.qr-box canvas { width: 240px; height: 240px; image-rendering: pixelated; background: #fff; padding: 12px; border-radius: 8px; }
.color-row { display: flex; gap: 16px; flex-wrap: wrap; }
.color-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
input[type="color"] { width: 44px; height: 36px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); padding: 2px; }
.logo-prev { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* chips used inside the guest form */
.chip-day {
  min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink); font: 500 14px var(--font); cursor: pointer;
}
.chip-day[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- bottom section bar (Pickups / Tasks) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 16px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
}
.bottom-nav button {
  position: relative; flex: 1; max-width: 220px; display: grid; justify-items: center; gap: 2px;
  min-height: 52px; padding: 6px 8px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--muted); font: 500 12.5px var(--font); cursor: pointer;
}
.bottom-nav button .icon { width: 22px; height: 22px; }
.bottom-nav button[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.nav-badge {
  position: absolute; top: 4px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--needs); color: #fff; font: 600 11px/18px var(--font); font-variant-numeric: tabular-nums;
}
.fab.with-nav { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: 12px; }
.board, .admin { padding-bottom: 180px; }
body:has(.bottom-nav) .toast-wrap { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }

/* ---------- tasks ---------- */
.toolbar-stack { display: grid; gap: 10px; flex: 1; min-width: 0; }
.toolbar-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbar-title { font-weight: 600; font-size: 15px; }
.toolbar-title.big { font-size: 19px; padding-top: 4px; }
.inline-select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; font-weight: 500; }
.tab .count.warn { background: var(--needs-bg); color: var(--needs); border-color: transparent; }

.task-card {
  display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 14px 12px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer;
}
.task-card:hover { border-color: var(--border-strong); }
.task-card.needs { border-left: 3px solid var(--needs); padding-left: 10px; }
.task-card.is-done { opacity: .7; }
.task-card .c-time { font-size: 14.5px; }
.tc-times { font-size: 13px; color: var(--muted); }
.tc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tc-actions .btn.primary { min-width: 104px; }
.tag.warn { color: var(--alert); background: var(--alert-bg); border-color: transparent; }
.tag.danger { color: var(--needs); background: var(--needs-bg); border-color: transparent; }

.times-box { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.times-box > div { display: grid; grid-template-columns: 56px auto; gap: 2px 10px; align-items: baseline; }
.times-box strong { font-size: 17px; }
.time-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--alert); }
.log-line { display: grid; gap: 1px; font-size: 13px; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--border); }
.log-line .by { font-size: 12px; }

.report { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.report.done { opacity: .7; }
.report-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-top .pill { margin-left: auto; }
.report p { white-space: pre-wrap; }
.report-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent-ink); font: 500 13px var(--font); text-decoration: underline; cursor: pointer; }

.form-stack { display: grid; gap: 16px; padding-top: 16px; }
.confirm.neutral { background: var(--surface-2); border-color: var(--border); }
.tab { white-space: nowrap; padding: 0 8px; }
.day-head { flex-wrap: wrap; }
.day-head h2 { white-space: nowrap; }

/* ---------- profile pictures ---------- */
.av {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: var(--accent-soft); color: var(--accent-ink); font: 600 13px var(--font);
  border: 1px solid var(--border);
}
.av.xs { width: 20px; height: 20px; font-size: 9px; }
.av.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar { padding: 0; overflow: hidden; display: grid; place-items: center; }
.avatar .av { width: 100%; height: 100%; border: 0; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; }
.menu-me { display: flex; justify-content: center; padding-bottom: 4px; }
.photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-acts label.btn { cursor: pointer; }
.row .av { margin-right: -2px; }
.row-btn { width: 100%; border: 0; border-top: 1px solid var(--border); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; justify-content: flex-start; flex-wrap: nowrap; }
.row-btn:first-child { border-top: 0; }
.row-btn:hover { background: var(--surface-2); }

/* ---------- preview banner ---------- */
#preview-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--alert-bg); color: var(--alert); font-size: 14px;
  border-bottom: 1px solid color-mix(in oklab, var(--alert) 30%, var(--border));
}
#preview-bar .btn { min-height: 32px; }

/* Buttons with longer labels (e.g. Send on WhatsApp) wrap inside the button instead of spilling out. */
.contact .btn { flex: 1 1 140px; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; }

/* header: event name and dates */
.event-name select { font-size: 17px; max-width: 100%; }
.event-when { font-size: 12.5px; color: var(--muted); }

/* routes: from -> to */
.route { overflow-wrap: anywhere; }
.facts strong { font-weight: 600; }
.facts .link-btn { margin-left: 6px; }
.place-form { display: grid; gap: 8px; margin-top: 6px; }
.place-form > div { display: flex; gap: 8px; }

/* task linked to a guest */
.guest-box { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 25%, var(--border)); }
.guest-box > div:first-child { display: grid; gap: 2px; }
.guest-box strong { font-size: 16px; }

/* no bottom bar (people who only have tasks) */
body:not(:has(.bottom-nav)) .fab.with-nav { bottom: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
body:not(:has(.bottom-nav)) .toast-wrap { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.details-box { display: grid; gap: 4px; }

/* ---------- guests list ---------- */
.guest-row {
  display: grid; gap: 6px; width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit;
}
.guest-row:hover { border-color: var(--border-strong); }
.guest-row.dim { opacity: .6; }
.g-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; }
.g-line .icon { width: 15px; height: 15px; }
.c-line1 .small .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* meals on the guest page */
.meal-day { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--border); }
.meal-day:first-child { border-top: 0; padding-top: 0; }
.meal-head { display: flex; justify-content: space-between; align-items: center; }
.meal-row { display: grid; grid-template-columns: 76px 1fr; gap: 2px 10px; align-items: start; font-size: 14px; }
.meal-name { color: var(--muted); font-size: 13px; padding-top: 1px; }
.meal-status { grid-column: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meal-status:empty { display: none; }
.meal-form { display: grid; gap: 10px; }
.meal-form > div:last-child { display: flex; gap: 8px; }

/* ---------- daily report + overview ---------- */
.daily-card {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 16px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border)); background: var(--accent-soft);
}
.daily-card > div { display: grid; gap: 2px; }
.daily-card.sent { background: var(--surface); border-color: var(--border); }
.ov-stats { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.ov-stats > div { display: grid; gap: 2px; align-content: start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.ov-stats strong { font-size: 24px; font-weight: 600; line-height: 1.1; }
.ov-stats .ov-main strong { font-size: 30px; }
.ov-stats .warn strong { color: var(--needs); }
@media (max-width: 520px) { .ov-stats { grid-template-columns: 1fr 1fr; } .ov-stats .ov-main { grid-column: 1 / -1; } }
.daily-line { display: grid; gap: 1px; }
.daily-line p { white-space: pre-wrap; }
.daily-line.problem p { color: var(--needs); }
.stage[disabled] { cursor: default; opacity: .75; }

/* =====================================================================
   App frame: phones get a top bar and a bottom bar; laptops a left menu and a wide page.
   ===================================================================== */
.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; gap: 10px; align-items: center;
  padding: 10px 16px; background: color-mix(in oklab, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-ctx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ctx-event { display: grid; min-width: 0; }
.ctx-event strong { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctx-event select, .dept-select {
  appearance: none; -webkit-appearance: none; border: 0; padding: 0 22px 0 0; min-height: 0; background-color: transparent;
  font: 600 15.5px var(--font); color: var(--ink); cursor: pointer; max-width: 100%; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 8px top 55%, right 3px top 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.dept-select { font-size: 13.5px; font-weight: 500; color: var(--accent-ink); }
.dept-name { font-size: 13px; font-weight: 500; color: var(--accent-ink); }
.ctx-event select:focus, .dept-select:focus { box-shadow: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 4px; }
.page-head h1 { font-size: 21px; }
#page { padding: 0 16px 160px; }
#page .board, #page .toolbar, #page .search { max-width: none; margin: 0; padding-inline: 0; }
#page .toolbar { padding-top: 8px; }
#page .board { padding-bottom: 0; }
#page > .tabs { border-bottom: 1px solid var(--border); margin-inline: -16px; padding-inline: 16px; }
.page-note { margin: 14px 2px 10px; }

/* the page's main action floats above the bottom bar on phones */
@media (max-width: 959px) {
  .page-actions .btn.primary {
    position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 12;
    min-height: 50px; padding: 0 20px; box-shadow: var(--shadow-float);
  }
  .app:not(:has(.bottom-nav)) .page-actions .btn.primary { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .topbar, .bottom-nav { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; height: 100dvh;
    padding: 20px 14px; border-right: 1px solid var(--border); background: var(--surface); overflow-y: auto;
  }
  .side .brand { padding: 0 8px; }
  .side-ctx { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
  .side-nav { display: grid; gap: 2px; }
  .side-item {
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border: 0;
    border-radius: var(--radius-sm); background: none; color: var(--muted); font: 500 14.5px var(--font); cursor: pointer; text-align: left;
  }
  .side-item:hover { background: var(--surface-2); color: var(--ink); }
  .side-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
  .side-item .nav-badge { position: static; margin-left: auto; }
  .side-me {
    margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  }
  .side-me > span { display: grid; min-width: 0; }
  .side-me strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main { min-width: 0; }
  .page-head { padding: 28px 36px 6px; max-width: 1280px; }
  .page-head h1 { font-size: 26px; }
  #page { padding: 0 36px 64px; max-width: 1280px; }
  #page > .tabs { margin-inline: 0; padding-inline: 0; max-width: 520px; }
  body:has(.bottom-nav) .toast-wrap { bottom: 24px; }
}

/* ---------- dashboard ---------- */
.panel { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel-head h2 { font-size: 16px; }
#tasks-list > .panel, #tasks-list > section.ov-stats, #tasks-list > .dash-grid, #tasks-list > .dept-grid, #tasks-list > .daily-card { margin-top: 16px; }
.dash-grid { display: grid; gap: 16px; }
.dash-col { display: grid; gap: 16px; align-content: start; }
.dash-col .daily-card { margin-top: 0; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.row-time { min-width: 76px; font-weight: 600; font-size: 13.5px; }
.ann { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.ann p { white-space: pre-wrap; }
.ann-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.announce { border-color: color-mix(in oklab, var(--accent) 25%, var(--border)); }
.dept-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.company-title { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.company-block .company-title { margin-top: 0; }
#tasks-list > .company-block { margin-top: 16px; }
.field[hidden] { display: none; }
.dept-card {
  display: grid; gap: 12px; padding: 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.dept-card:hover { border-color: var(--border-strong); }
.dept-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dept-card-head { display: grid; gap: 2px; }
.dept-card-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px; }
.dept-card-stats > span { display: grid; }
.dept-card-stats strong { font-size: 18px; }
.dept-card-stats .warn strong { color: var(--needs); }

/* ---------- team page ---------- */
.person-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.person-card {
  display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; align-content: start;
}
.person-card:hover { border-color: var(--border-strong); }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-top .who { display: grid; min-width: 0; }
.person-top .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.person-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.person-stats > span { display: grid; gap: 2px; }
.person-stats .label { font-size: 10.5px; }
.person-stats strong { font-size: 15px; font-weight: 600; }
.person-stats .warn strong { color: var(--needs); }
.person-stats .ok { color: var(--done); font-size: 13px; }
.av.md { width: 44px; height: 44px; font-size: 15px; }
.report-btn { text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.report-btn:hover { border-color: var(--border-strong); }
.pickup-wrap { display: grid; gap: 4px; }

/* Every page uses the same full width as Home and Concerns. */
#page .admin { max-width: none; margin: 0; padding: 8px 0 0; }
.person-card .contact { flex-wrap: nowrap; }
.person-card .contact .btn { flex: 1 1 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* optional install */
.install-card {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 16px 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.install-card > div:nth-child(2) { display: grid; gap: 2px; flex: 1 1 220px; }
.install-acts { display: flex; gap: 8px; }
@media (min-width: 960px) { .install-card { margin: 8px 36px 0; max-width: 1208px; } }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.paste-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
#install-gate { display: grid; gap: 14px; }

/* a guest saved with only part of their details */
.missing { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--alert-bg); color: var(--ink); border: 1px solid color-mix(in oklab, var(--alert) 30%, transparent); }

/* ---------- phone fixes (2026-10-19) ---------- */
/* Sheets: rows keep their natural height and the sheet scrolls, instead of boxes being squeezed. */
.sheet-body, .sheet-body > form, .menu-list { grid-auto-rows: max-content; align-content: start; }
/* Tab rows that don't fit scroll sideways on their own; the page never does. */
.tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; }
.main, #page { min-width: 0; max-width: 100%; }
html { overflow-x: hidden; }
body { overflow-x: clip; } /* not hidden: that would stop the side menu and top bar from staying in place */
/* Names always in full: name on its own line, tags underneath. */
.c-line1 { flex-wrap: wrap; row-gap: 4px; }
.c-line1 .c-name { flex: 1 1 100%; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
/* Editing someone's name and phone in Manage > People */
.person-edit { display: grid; gap: 8px; width: 100%; }
.person-edit .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* tasks for several guests */
.guest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-chips:empty { display: none; }
.guest-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 500; }
.guest-chip button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.guest-chip button:hover { background: color-mix(in oklab, var(--accent) 15%, transparent); }
.other-guest summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px 0; }
.other-guest[open] { display: grid; gap: 10px; }
.guest-box { display: grid; gap: 10px; }
.guest-line { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.guest-line:first-of-type { border-top: 0; padding-top: 0; }
.guest-line strong { display: block; }
/* Coming up on phones: the status goes under the name, so the name has the full width */
@media (max-width: 599px) {
  .up-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: start; }
  .up-row .pill { grid-column: 2; justify-self: start; }
  .up-row .row-time { min-width: 64px; }
}

/* tap a picture: see it large */
[data-av-of] { cursor: zoom-in; }
#menu-btn [data-av-of], #side-me [data-av-of], .menu-me [data-av-of] { cursor: inherit; }
.photo-view { display: grid; gap: 16px; justify-items: center; padding: 16px 0 8px; }
.photo-view img { width: min(100%, 380px); aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--surface-2); }
.photo-initials { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 64px; font-weight: 600; }
.photo-view .facts { justify-self: stretch; }
.photo-view .contact { justify-self: stretch; }

/* change note: each change on its own line, earlier values struck through */
.alert.chg > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.alert.chg s { opacity: .75; }
.alert.chg .chg-by { font-weight: 400; }

/* ---------- Coordination (super admin) ---------- */
.co-tabs { max-width: 760px; margin: 0 auto; padding: 0 8px; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.co-tabs .tab { padding: 0 6px; font-size: 14.5px; gap: 6px; }
.co-tabs .tab .count { background: var(--needs-bg); color: var(--needs); border-color: transparent; font-weight: 600; }
.co-board .cards { display: grid; gap: 10px; }
.co-card {
  display: grid; gap: 8px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; min-width: 0;
}
.co-tap { cursor: pointer; transition: border-color .15s ease-out; }
.co-tap:hover { border-color: var(--border-strong); }
.co-card.needs, .co-card.st-ask { border-left: 3px solid var(--needs); padding-left: 12px; }
.co-card.st-waiting { border-left: 3px solid var(--onway); padding-left: 12px; }
.co-card.st-done { opacity: .7; }
.co-card.blocked { border-left-color: var(--border-strong); }
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.co-head h3 { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; min-width: 0; }
.co-head .icon-btn { margin: -8px -8px 0 0; flex: none; }
.co-head .pill { flex: none; }
.co-who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.co-who > span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.co-who .muted { font-size: 13px; }
.co-notes { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.co-points { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.co-points .check { font-size: 14.5px; line-height: 1.4; }
.co-points .check input:checked + span { text-decoration: line-through; color: var(--muted); }
.co-answer { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--done-bg); }
.co-answer p { font-size: 14px; overflow-wrap: anywhere; }
.co-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.co-acts .btn.primary { margin-left: auto; }
.co-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; overflow-wrap: anywhere; }
.co-line .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.co-kv { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.co-kv dt { color: var(--muted); }
.co-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.co-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.co-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-chips .label { width: 100%; }
.co-summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 2px 10px; font-size: 14.5px; }
.co-big { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; flex: none; }
.co-sess.empty-sess .co-big { color: var(--muted); }
.co-break { font-size: 14px; overflow-wrap: anywhere; }
.co-send { display: grid; gap: 10px; margin-top: 22px; }
.co-wide { width: 100%; min-height: 50px; }
.co-center { text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center; }
.co-center .icon { width: 16px; height: 16px; }
.co-counts { display: grid; gap: 8px; }
.co-count { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.co-count span { font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; flex: 1; }
.co-count input { width: 84px; flex: none; text-align: center; }
.co-addrow { display: flex; gap: 8px; }
.co-addrow input { flex: 1; min-width: 0; }
.co-addrow .co-num { flex: 0 0 76px; text-align: center; }
.co-addrow .btn { flex: none; }
.co-daypill { font-size: 12.5px; font-weight: 600; color: var(--own); background: var(--own-bg); border-radius: 999px; padding: 2px 10px; }
.co-mine { display: grid; gap: 6px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--own-bg); font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.co-mine p { margin: 0; }
.co-mine strong { color: var(--ink); }
.co-mine-tag { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--own); background: var(--own-bg); border-radius: 999px; padding: 1px 8px; justify-self: start; }
.co-mine .co-mine-tag { padding: 0; }
/* the list as Hospitality sees it */
.co-take { display: grid; gap: 10px; }
.co-tocome { background: var(--assigned-bg); color: var(--assigned); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13.5px; font-weight: 500; margin: 0; }
.co-tsess { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.co-tsess-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 15px; }
.co-tsess-h .co-big { text-align: right; }
.co-tsess-h .co-big small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.co-tgrp { display: grid; gap: 3px; padding: 8px 12px; font-size: 14px; overflow-wrap: anywhere; margin: 0; }
.co-tgrp + .co-tgrp { border-top: 1px dashed var(--border); }
.co-tline { display: flex; justify-content: space-between; gap: 10px; }
.co-tnames { font-size: 13px; color: var(--muted); margin-top: -2px; }
.co-lbl { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.co-take .co-note-line { color: var(--ink) !important; }
.co-hamp p { margin: 0; }
.co-hamp .co-tline { padding: 3px 0; border-bottom: 1px solid var(--border); }
.co-hamp .co-tline span { color: var(--ink); }
.co-gap { margin-top: 10px; }
.co-hamp { display: grid; gap: 3px; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
.co-hamp span { color: var(--muted); }
/* sections that don't fit in the phone bar are in the menu (phones only) */
@media (min-width: 960px) { .menu-sec { display: none; } }
.co-links { display: flex; justify-content: flex-end; padding-top: 6px; }
.co-count > input[data-tname] { flex: 1; width: auto; min-width: 0; text-align: left; }
.co-used { flex: none; }
#cs-teams-edit { display: block; margin-top: 10px; }
.co-count { width: 100%; }
.co-stepper { flex: none; }
.co-stepper input { width: 52px; height: 44px; border: 0; border-radius: 0; padding: 0; text-align: center; font-weight: 600; font-size: 17px; background: var(--surface); -moz-appearance: textfield; }
.co-stepper input::-webkit-outer-spin-button, .co-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.co-stepper input:focus { box-shadow: inset var(--focus); outline: 0; }
.co-stepper button { width: 44px; height: 44px; }
.co-count .co-stepper + .icon-btn { margin-left: -4px; }
.other-guest .co-addrow { margin-top: 10px; }
