/* Calaverna Resort & Spa | guest app concept. Southshore Studio. */
:root {
  --sand: #F4EFE6;
  --paper: #FBF8F2;
  --white: #FFFFFF;
  --ink: #1C2629;
  --ink-2: #4E5A5D;
  --ink-3: #5A6467;
  --line: #DED5C6;
  --line-2: #EAE3D7;
  --sea: #1F4C55;
  --sea-2: #2A6270;
  --sea-tint: #E2ECEA;
  --terracotta: #A4532F;
  --terra-tint: #F4E5DB;
  --olive: #46642F;
  --olive-tint: #E3EBDA;
  --amber: #85560F;
  --amber-tint: #F5E8CF;
  --grey-tint: #ECE9E4;
  --night: #121A1C;
  --stage: #E6DFD2;
  --map-sea: #CFE1DF;
  --map-land: #E9DFC9;
  --map-land-2: #C9D3B3;
  --map-sand: #F3E9D2;
  --map-path: #9A8C74;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 14px;
  --r-lg: 20px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(28, 38, 41, .06), 0 8px 24px rgba(28, 38, 41, .07);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--sea);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); font-variant-numeric: lining-nums;
  background: var(--sand); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; height: 100dvh; overflow: hidden;
}
img { display: block; max-width: 100%; background-color: #E3DACB; }
.ph { background-size: cover; background-position: center; }
.ph.is-loaded { background-image: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 8px; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.plain-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Demo chrome ---------- */
.demo-bar {
  flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px;
  background: var(--night); color: #E9E4DA; padding: 8px 12px 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  position: relative; z-index: 30;
}
.demo-bar .demo-brand { display: none; }
.demo-bar .mode-switch--bar { grid-column: 1; grid-row: 1; justify-self: start; padding: 0; }
.demo-bar .mode-switch--bar button { min-height: 44px; padding: 0 14px; font-size: 14px; }
.demo-bar .notes-btn { grid-column: 2; grid-row: 1; }
.demo-bar .disclosure { grid-column: 1 / -1; grid-row: 2; }
.disclosure { font-size: 12px; line-height: 1.4; color: #E4DFD6; }
.notes-btn {
  flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-size: 13px; font-weight: 500;
}
.notes-btn:focus-visible { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px #fff; }

.mode-switch { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; }
.mode-switch button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .2s var(--ease), color .2s var(--ease); }
.mode-switch--bar { background: rgba(255, 255, 255, .08); }
.mode-switch--bar button { color: #D9D3C8; }
.mode-switch--bar button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.mode-switch--bar button:focus-visible { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px #fff; }
.mode-switch--panel { background: var(--grey-tint); width: 100%; margin: 4px 0 20px; }
.mode-switch--panel button { flex: 1; justify-content: center; min-height: 44px; color: var(--ink-2); }
.mode-switch--panel button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.con-badge, .tab-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--terracotta); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.con-badge[hidden], .tab-badge[hidden] { display: none; }

.stage { flex: 1; min-height: 0; position: relative; }
.device-col, .device { height: 100%; }
.device-label { display: none; }

/* Explainer: a drawer on phones, a side panel on desktop */
.explainer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 86dvh; overflow-y: auto;
  background: var(--paper); border-radius: 22px 22px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
  transform: translateY(105%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s;
}
.explainer.is-open { transform: none; visibility: visible; transition: transform .28s var(--ease); }
.ex-head { display: flex; align-items: center; justify-content: space-between; }
.ex-title { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; margin-bottom: 16px; }
.ex-point { padding: 14px 0; border-top: 1px solid var(--line); }
.ex-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--sea); margin-bottom: 4px; }
.ex-point p, .ex-try p { color: var(--ink-2); font-size: 15px; }
.ex-try { margin-top: 6px; padding: 14px 16px; background: var(--terra-tint); border-radius: var(--r); }
.ex-try .ex-h { color: var(--terracotta); }
.ex-try p { color: var(--ink); }
.ex-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; justify-items: start; }
.ex-foot p { font-size: 13px; color: var(--ink-2); }

/* ---------- Guest app shell ---------- */
.guest { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--sand); isolation: isolate; }
.g-view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-behavior: auto; -webkit-overflow-scrolling: touch; }
.g-view:focus { outline: none; }
.screen { padding-bottom: 28px; }
.screen.enter { animation: enter .26s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.g-tabs {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); position: relative; z-index: 5;
}
.g-tabs button { position: relative; min-height: 56px; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); border-radius: 12px; }
.g-tabs button[aria-current="page"] { color: var(--sea); }
.g-tabs button[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 22px; height: 2px; border-radius: 2px; background: var(--sea); }
.g-tabs .tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); }

/* Typography */
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow--light { color: rgba(255, 255, 255, .88); }
.eyebrow--accent { color: var(--terracotta); }
.display { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.02; letter-spacing: -.005em; }
.display--xl { font-size: 44px; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.1; }
.h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.lede { color: var(--ink-2); font-size: 16px; margin-top: 10px; }
.body-lg { font-size: 17px; line-height: 1.6; }
.price { font-weight: 500; white-space: nowrap; }

/* Blocks */
.block { padding: 0 var(--gutter); margin-top: 28px; }
.block--flush { padding: 0; }
.pad-x { padding: 0 var(--gutter); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.link { color: var(--sea); font-weight: 500; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-like { color: var(--sea); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; }
.link-like .ic { width: 16px; height: 16px; }
.page-head { padding: 22px var(--gutter) 0; }
.topbar + .page-head { padding-top: 6px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 6px 10px; background: var(--sand); border-bottom: 1px solid var(--line-2); }
.topbar-title { font-weight: 500; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--ink); }
.icon-btn--float { position: absolute; top: 12px; left: 12px; background: rgba(251, 248, 242, .94); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.slim-hero { margin: 0 var(--gutter); border-radius: var(--r-lg); overflow: hidden; margin-top: 4px; }
.slim-hero img { width: 100%; height: 150px; object-fit: cover; }
.slim-hero + .page-head { padding-top: 18px; }
.ex-intro { font-size: 15px; color: var(--ink); background: var(--sea-tint); border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px; }
.ex-intro b { font-weight: 600; }
.outcome { background: var(--ink); color: #F4EFE6; border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.outcome-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #D8D1C4; margin-bottom: 10px; }
.outcome-grid { display: grid; gap: 10px; }
.outcome-grid > div { display: grid; grid-template-columns: 108px 1fr; align-items: baseline; gap: 10px; }
.outcome-grid b { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.outcome-grid span { font-size: 13.5px; color: #E4DFD6; line-height: 1.3; }
.outcome-note { font-size: 12px; color: #D8D1C4; margin-top: 10px; }
.ex-start { margin-bottom: 18px; }
.con-outcome { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; margin-top: 6px; }
.con-outcome .outcome-note { color: var(--terracotta); font-weight: 600; margin: 0; font-size: 12.5px; }
.act-item.is-past .act-time, .act-item.is-past .row-title { color: var(--ink-3); }
.notice.notice--info { background: var(--sea-tint); color: var(--sea); }
.notice .link { min-height: 0; display: inline; }
.done-next { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; justify-content: center; }
.staff-link { margin-top: 2px; }
.intro { position: absolute; inset: 0; z-index: 45; background: rgba(18, 26, 28, .55); display: grid; align-items: end; overflow-y: auto; }
.intro[hidden] { display: none; }
.intro-card { background: var(--paper); border-radius: 22px 22px 0 0; overflow: hidden; animation: enter .3s var(--ease) both; }
.intro-media img { width: 100%; height: 150px; object-fit: cover; }
.intro-body { padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.intro-title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.05; }
.intro-title:focus { outline: none; }
.intro-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.intro-points li { font-size: 15px; line-height: 1.4; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--line); }
.intro-points b { color: var(--ink); font-weight: 600; }
.intro-note { font-size: 13px; color: var(--ink-2); }
.intro-actions { display: grid; gap: 8px; margin-top: 2px; }
@media (min-width: 1024px) { .intro { display: none !important; } }
.foot-note { margin: 36px var(--gutter) 0; font-size: 12px; color: var(--ink-3); text-align: center; }

/* Buttons */
.btn { min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s var(--ease), transform .12s var(--ease); letter-spacing: .01em; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--sea); color: #fff; }
.btn--primary:hover { background: var(--sea-2); }
.btn--secondary { border: 1px solid var(--sea); color: var(--sea); }
.btn--secondary:hover { background: var(--sea-tint); }
.btn--ghost { color: var(--sea); border: 1px solid var(--line); background: transparent; }
.btn--ghost:hover { background: var(--paper); }
.btn--danger { color: #8E2F1E; }
.btn--danger-solid { background: #8E2F1E; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn .ic { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--sea); }
.hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 22, .35) 0%, rgba(10, 20, 22, 0) 30%, rgba(10, 20, 22, 0) 45%, rgba(10, 20, 22, .72) 100%); }
.hero-scrim--soft { background: linear-gradient(180deg, rgba(10, 20, 22, .25), rgba(10, 20, 22, 0) 35%); }
.hero--home { height: 400px; }
.hero--spa { height: 360px; }
.hero--venue { height: 300px; }
.hero-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); color: #fff; }
.wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; }
.weather { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; background: rgba(0, 0, 0, .22); padding: 6px 12px; border-radius: 999px; }
.weather .ic { width: 18px; height: 18px; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 24px; color: #fff; }
.hero-text .display { margin: 8px 0 6px; text-wrap: balance; }
.hero-sub { font-size: 15px; color: rgba(255, 255, 255, .92); }

/* Conditions strip */
.conditions { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line-2); }
.conditions > div { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 12px 4px; font-size: 11.5px; color: var(--ink-2); line-height: 1.25; }
.conditions > div + div { border-left: 1px solid var(--line-2); }
.conditions b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.conditions .ic { width: 20px; height: 20px; color: var(--sea); }

/* Suggestion */
.suggest { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.suggest-img { width: 100%; height: 168px; object-fit: cover; }
.suggest-body { padding: 18px 18px 20px; display: grid; gap: 8px; justify-items: start; }
.suggest-body p:not(.eyebrow) { color: var(--ink-2); }
.suggest-body .btn { margin-top: 6px; }

/* Plans */
.plans li + li { border-top: 1px solid var(--line-2); }
.plans { background: var(--paper); border-radius: var(--r); padding: 0 14px; }
.plan { width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.plan-main { display: grid; }
.plan-title { font-weight: 500; }
.plan-sub { font-size: 13.5px; color: var(--ink-2); }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.quick-item { min-height: 88px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); display: grid; justify-items: center; align-content: center; gap: 8px; font-size: 13px; font-weight: 500; text-align: center; padding: 10px 6px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.quick-item:hover { border-color: var(--sea); }
.quick-item .ic { color: var(--sea); width: 24px; height: 24px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-row { width: 100%; display: grid; grid-template-columns: 48px 18px 1fr; align-items: start; gap: 8px; padding: 10px 0; min-height: 56px; }
.tl-time { font-weight: 600; font-size: 14px; padding-top: 1px; font-variant-numeric: lining-nums tabular-nums; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sea); margin-top: 6px; justify-self: center; position: relative; }
.timeline li:not(:last-child) .tl-dot::after { content: ''; position: absolute; left: 50%; top: 9px; width: 1px; height: 52px; background: var(--line); transform: translateX(-50%); }
.timeline li:first-child .tl-dot { background: var(--sea); }
.tl-main { display: grid; }
.tl-title { font-weight: 500; }
.tl-sub { font-size: 13.5px; color: var(--ink-2); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--sea-tint); color: var(--sea); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }
.badge--accent { background: var(--terra-tint); color: #8A3F20; }

/* Rail */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px var(--gutter) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > div { flex: none; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
.rail-card { width: 216px; display: grid; gap: 2px; }
.rail-card img { width: 216px; height: 148px; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.rail-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.rail-sub { font-size: 13.5px; color: var(--ink-2); }

/* Feature, tile, banner */
.feature { display: block; width: 100%; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature img { width: 100%; height: 230px; object-fit: cover; }
.feature-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.feature-title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.05; }
.feature-sub { color: var(--ink-2); font-size: 14.5px; }
.feature-price { font-weight: 500; font-size: 14px; margin-top: 4px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: grid; gap: 3px; align-content: start; }
.tile img { width: 100%; aspect-ratio: 6 / 7; height: auto; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.tile-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.1; }
.banner { width: 100%; display: grid; grid-template-columns: 116px 1fr; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.banner img { width: 116px; height: 100%; min-height: 150px; object-fit: cover; }
.banner-body { display: grid; gap: 3px; padding: 16px; align-content: center; }
.banner-title { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.banner-sub { font-size: 14px; color: var(--ink-2); }
.banner--dark { background: var(--ink); color: #F4EFE6; border-color: var(--ink); }
.banner--dark .banner-sub { color: #CFC8BB; }
.banner--dark .open-dot { color: #CFC8BB; }
.banner--dark .open-dot.is-open { color: #A9CF8E; }
.banner--dark .open-dot::before { background: #8D958F; }
.banner--dark .open-dot.is-open::before { background: #A9CF8E; }
.open-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.open-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #A39C90; }
.open-dot.is-open { color: var(--olive); }
.open-dot.is-open::before { background: var(--olive); }

/* Venue */
.venue-head { padding: 22px var(--gutter) 0; display: grid; gap: 6px; }
.venue-cuisine { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 14px 0 6px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts dt { color: var(--ink-2); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding-top: 2px; }
.note { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--sea); border-left: 2px solid var(--terracotta); padding: 2px 0 2px 16px; margin: 10px 0 16px; }
.venue-head .btn { margin-top: 4px; }

/* Menus */
.menu .chips { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; position: relative; }
.chip::after { content: ''; position: absolute; inset: -3px 0; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-n { font-size: 12px; opacity: .8; }
.course { margin-top: 22px; }
.course-title { font-family: var(--serif); font-size: 23px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 2px; }
.dish { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.dish-main { display: grid; gap: 2px; }
.dish-name { font-weight: 500; }
.dish-desc { font-size: 14px; color: var(--ink-2); }
.dish.is-out .dish-name, .dish.is-out .dish-desc { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.dish .pill { justify-self: start; margin-top: 4px; }
.tags { display: flex; gap: 4px; margin-top: 4px; }
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--olive); border: 1px solid #BFCCB2; border-radius: 6px; padding: 1px 5px; text-decoration: none; cursor: help; }
.menu-figure { margin: 22px 0 0; }
.menu-figure img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r); }
.add-btn { min-height: 44px; padding: 0 10px 0 14px; border-radius: 999px; border: 1px solid var(--sea); color: var(--sea); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; }
.add-btn .ic { width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--sea-tint); border-radius: 999px; padding: 2px; flex: none; }
.step { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--sea); }
.step:disabled { color: #A3AFAE; }
.step .ic { width: 18px; height: 18px; }
.step-n { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.basket-bar { position: sticky; bottom: 0; z-index: 3; padding: 12px var(--gutter); background: linear-gradient(rgba(244, 239, 230, 0), var(--sand) 30%); margin-top: 8px; }
.basket-btn { justify-content: space-between; padding: 0 22px; min-height: 54px; box-shadow: 0 8px 24px rgba(31, 76, 85, .3); }

/* Segmented control */
.seg { display: flex; gap: 4px; background: var(--grey-tint); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { flex: 1 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; text-align: center; position: relative; }
.seg-btn::after { content: ''; position: absolute; inset: -4px 0; }
.seg-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg--days .seg-btn { display: grid; line-height: 1.15; padding: 6px 10px; min-height: 52px; }
.seg--days small { font-size: 12px; color: var(--ink-2); font-weight: 400; }

/* Rows */
.rows { background: var(--paper); border-radius: var(--r-lg); padding: 0 14px; border: 1px solid var(--line-2); }
.rows li + li { border-top: 1px solid var(--line-2); }
.row, .act-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 0; min-height: 72px; }
.row-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.row-mono { width: 64px; height: 64px; border-radius: 12px; flex: none; background: var(--sea-tint); color: var(--sea); display: grid; place-items: center; align-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; }
.row-mono small { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.row-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sea-tint); color: var(--sea); display: grid; place-items: center; flex: none; }
.row-main { flex: 1; display: grid; gap: 1px; min-width: 0; }
.row-title { font-weight: 500; }
.row-sub { font-size: 13.5px; color: var(--ink-2); }
.row-meta { font-size: 13.5px; font-weight: 500; margin-top: 2px; }
.row-chev { color: var(--ink-3); width: 18px; height: 18px; }
.schedule { list-style: none; margin: 0; padding: 0 14px; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.schedule .act-item + .act-item { border-top: 1px solid var(--line-2); }
.act-time { width: 52px; flex: none; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; color: var(--sea); align-self: flex-start; padding-top: 2px; }
.block .feature + .rows { margin-top: 14px; }
.map-link { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--sea); color: #fff; border-radius: var(--r-lg); min-height: 64px; }
.map-link > span { flex: 1; display: grid; }
.map-link span span { font-size: 13.5px; color: rgba(255, 255, 255, .85); }

/* Packages, offers */
.package { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.package + .package { margin-top: 14px; }
.package img { width: 100%; height: 170px; object-fit: cover; }
.package-body { padding: 18px; display: grid; gap: 8px; justify-items: start; }
.ticks { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ticks .ic { color: var(--olive); width: 18px; height: 18px; margin-top: 3px; }
.ticks--loose { gap: 10px; margin-bottom: 16px; }
.offer { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.offer img { width: 100%; height: 150px; object-fit: cover; }
.offer--lead img { height: 220px; }
.offer-body { padding: 16px 18px 18px; display: grid; gap: 8px; justify-items: start; }
.offer-body > p:not(.price):not(.offer-state) { color: var(--ink-2); }
.offer-list { display: grid; gap: 14px; }
.offer-state { display: flex; align-items: center; gap: 10px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--received { background: var(--grey-tint); color: #46504F; }
.pill--confirmed { background: var(--sea-tint); color: var(--sea); }
.pill--in_progress { background: var(--amber-tint); color: var(--amber); }
.pill--completed { background: var(--olive-tint); color: var(--olive); }
.pill--cancelled { background: var(--grey-tint); color: #5E5A55; }
.pill--cancelled::before { display: none; }

/* Requests */
.req-list { display: grid; gap: 12px; }
.req { background: var(--paper); border-radius: var(--r-lg); padding: 16px 16px 10px; border: 1px solid var(--line-2); }
.req.is-cancelled { opacity: .75; }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.req-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; margin: 6px 0 4px; }
.req-lines { font-size: 14px; color: var(--ink-2); }
.req-value { font-weight: 600; margin-top: 4px; }
.req-who { font-size: 14px; margin-top: 10px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.progress { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress li { font-size: 11px; color: var(--ink-3); display: grid; gap: 6px; }
.progress li::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s var(--ease); }
.progress li.is-done::before { background: var(--sea); }
.progress li.current { color: var(--ink); font-weight: 600; }
.empty { text-align: center; padding: 36px 16px; display: grid; gap: 8px; justify-items: center; background: var(--paper); border-radius: var(--r-lg); border: 1px dashed var(--line); }

/* Map */
.map-wrap { position: relative; margin: 20px var(--gutter) 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 390 / 400; }
.map-svg { width: 100%; height: 100%; display: block; }
.map-label { font-family: var(--serif); font-size: 17px; font-style: italic; fill: #3F6A70; }
.map-label--small { font-family: var(--sans); font-style: normal; font-size: 12px; fill: #6B6250; }
.map-pin { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; }
.map-pin span { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s var(--ease); }
.map-pin.is-mine span { background: var(--sea); border-color: var(--sea); color: #fff; }
.map-pin.is-selected span { background: var(--terracotta); border-color: var(--terracotta); color: #fff; transform: scale(1.2); }
.place-card { background: var(--paper); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 6px; justify-items: start; border: 1px solid var(--line-2); }
.place-card p:not(.eyebrow) { color: var(--ink-2); }
.place-hours { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.place-hours b { color: var(--ink); font-weight: 600; }
.place-hours .open-dot { margin-top: 0; }
.places { margin-top: 10px; }
.place-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.place-row[aria-pressed="true"] .place-num { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.place-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.place-main { display: grid; }

/* Wi-Fi, check-out, FAQ */
.wifi-card { background: var(--sea); color: #fff; border-radius: var(--r-lg); padding: 22px; display: grid; gap: 18px; }
.wifi-card dl { display: grid; gap: 12px; }
.wifi-card dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 600; }
.wifi-card dd { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.wifi-card code { font-family: var(--serif); }
.wifi-card .btn--primary { background: var(--paper); color: var(--sea); justify-self: start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; justify-items: start; align-content: start; min-height: 110px; }
.mini-card--action:hover { border-color: var(--sea); }
.mini-title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.folio { margin: 12px 0 8px; background: var(--paper); border-radius: var(--r); padding: 4px 14px; border: 1px solid var(--line-2); }
.folio li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.folio li:last-child { border-bottom: 0; }
.folio-total { font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 500; list-style: none; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--sea); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

/* ---------- Sheets ---------- */
.g-sheet { position: absolute; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgba(18, 26, 28, .45); opacity: 0; transition: opacity .22s var(--ease); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .26s var(--ease); box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); }
.g-sheet.is-open .scrim { opacity: 1; }
.g-sheet.is-open .sheet { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--paper); }
.sheet-body { overflow-y: auto; padding: 14px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 10px; overscroll-behavior: contain; }
.sheet-body > .eyebrow { padding-right: 44px; }
.sheet-body > .h2 { padding-right: 36px; }
.sheet-body > p:not(.eyebrow):not(.price) { color: var(--ink-2); }
.sheet-media { margin: 0 calc(var(--gutter) * -1) 4px; margin-top: -14px; }
.sheet-media img { width: 100%; height: 170px; object-fit: cover; border-radius: 22px 22px 0 0; }
.field { border: 0; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; min-width: 0; }
.field--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
legend.label { margin-bottom: 8px; }
.field--row .label { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
textarea, select, input[type="time"] { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px 14px; min-height: 48px; font-size: 16px; }
textarea { resize: vertical; min-height: 84px; }
textarea:focus-visible, select:focus-visible, input:focus-visible { border-color: var(--sea); }
textarea[aria-invalid="true"] { border-color: #8E2F1E; }
.err { color: #8E2F1E; font-size: 14px; font-weight: 500; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; display: grid; place-items: center; align-content: center; line-height: 1.1; }
.slot small { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.slot[aria-pressed="true"] { background: var(--sea); color: #fff; border-color: var(--sea); }
.slot[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.slot:disabled { background: transparent; color: var(--ink-3); text-decoration: line-through; border-style: dashed; opacity: .7; }
.slot--booked:disabled { text-decoration: none; background: var(--grey-tint); }
.seg-btn:disabled { opacity: .55; }
.slot:disabled small { text-decoration: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; }
.choice[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.options { display: grid; gap: 8px; }
.option { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); text-align: left; }
.option[aria-pressed="true"] { border-color: var(--sea); background: var(--sea-tint); box-shadow: inset 0 0 0 1px var(--sea); }
.amen .field { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.notice { background: var(--amber-tint); color: var(--amber); padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 10px calc(var(--gutter) * -1) calc(-20px - env(safe-area-inset-bottom)); padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.sheet-sub { font-size: 12.5px; color: var(--ink-2); text-align: center; order: 2; }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 999px; background: #C9C2B6; position: relative; flex: none; cursor: pointer; transition: background .2s var(--ease); margin: 6px 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch:checked { background: var(--sea); }
.switch:checked::after { transform: translateX(20px); }
.basket li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.basket-name { display: grid; font-weight: 500; }
.basket-sum { font-size: 15px; }
.basket-total { font-weight: 600; font-size: 17px; border-bottom: 0 !important; }
.req-detail-status { display: flex; align-items: center; gap: 10px; }
.detail-lines li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.history li { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 18px 0 8px; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--olive-tint); color: var(--olive); display: grid; place-items: center; animation: pop .35s var(--ease) both; }
.done-mark .ic { width: 32px; height: 32px; stroke-width: 2; }
.done .btn-row { justify-content: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Toasts */
.g-toast, .con-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -12px); max-width: calc(100% - 32px); width: max-content; background: var(--ink); color: #fff; font-size: 14px; padding: 12px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 30; text-align: center; }
.g-toast.is-on, .con-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.con-toast { position: static; transform: none; left: auto; max-width: none; width: auto; display: none; margin: 0 0 10px; text-align: left; font-size: 13.5px; padding: 10px 14px; border-radius: 10px; box-shadow: none; }
.con-toast.is-on { display: block; transform: none; }

/* ---------- Staff console ---------- */
.console { position: absolute; inset: 0; z-index: 10; background: var(--sand); display: flex; flex-direction: column; min-height: 0; }
.console[hidden] { display: none; }
.con-head { flex: none; padding: 16px 16px 0; display: grid; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.con-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; margin: 2px 0 2px; }
.con-title:focus { outline: none; }
.con-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.con-tabs button { min-height: 48px; padding: 0 12px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border-radius: 0; }
.con-tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sea); }
.con-reset { display: none; }
.con-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 40px; }
.kpis { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.kpis::-webkit-scrollbar { display: none; }
.kpis .kpi { flex: 0 0 auto; min-width: 132px; }
@media (max-width: 1023px) { .kpis { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; } .kpis .kpi { min-width: 0; } }
.kpi { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.kpi-n { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.kpi-l { font-size: 13px; color: var(--ink-2); }
.kpi--alert .kpi-n { color: var(--terracotta); }
.fineprint { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.fineprint--strong { font-weight: 600; color: var(--terracotta); font-size: 13px; letter-spacing: .02em; }
.q-filters { display: grid; gap: 12px; margin: 20px 0 14px; min-width: 0; }
.q-filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.q-filters .chips .chip { flex: none; }
.q-status-filter { display: flex; align-items: center; gap: 10px; }
.q-status-filter select { width: auto; min-width: 200px; }
.queue { display: grid; gap: 10px; }
.q-item { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; grid-template-areas: "who status" "what what" "meta meta" "when when" "actions actions"; position: relative; }
.q-item.is-new { border-color: var(--terracotta); box-shadow: 0 0 0 1px var(--terracotta); animation: arrive 1.2s var(--ease) 1; }
@keyframes arrive { 0% { background: var(--terra-tint); } 100% { background: var(--paper); } }
.q-item--completed, .q-item--cancelled { opacity: .82; }
.q-when { grid-area: when; display: flex; gap: 8px; align-items: baseline; }
.q-time { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.q-who { grid-area: who; display: grid; }
.q-what { grid-area: what; display: grid; gap: 2px; }
.q-title { font-weight: 600; }
.q-lines { font-size: 14px; color: var(--ink-2); }
.q-meta { grid-area: meta; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-value { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.q-status { grid-area: status; justify-self: end; }
.q-actions { grid-area: actions; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-assign { width: auto; min-width: 140px; min-height: 44px; padding: 8px 12px; font-size: 14px; }
.dept { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--grey-tint); color: var(--ink-2); }
.dept--fnb { background: #F3E6D8; color: #7A4520; }
.dept--spa { background: #E7E4EF; color: #4B4170; }
.dept--housekeeping { background: var(--sea-tint); color: var(--sea); }
.dept--maintenance { background: #EFE3DF; color: #7E3426; }
.dept--frontdesk { background: #E6E9DD; color: #4A5A2D; }
.dept--activities { background: #DFEAF0; color: #2B5670; }
.insight-head { display: grid; gap: 4px; margin-bottom: 16px; }
.charts { display: grid; gap: 16px; }
.chart { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; margin: 0; }
.chart figcaption { display: grid; gap: 2px; margin-bottom: 14px; }
.bars { display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr; gap: 4px; }
.bar-label { font-size: 14px; font-weight: 500; }
.bar-track { height: 10px; background: var(--grey-tint); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--sea); border-radius: 999px; transition: width .4s var(--ease); }
.bar-val { font-size: 16px; font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.bar-add { font-weight: 600; color: var(--terracotta); font-size: 13.5px; margin-left: 6px; }
.load { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.load li { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; display: grid; gap: 2px; background: var(--white); }
.load-name { font-size: 13px; font-weight: 600; }
.load-n { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; }
.settings-intro { margin-bottom: 14px; }
.settings { display: grid; gap: 16px; }
.set-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; align-content: start; }
.set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-row select { width: auto; }
.hours li { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.hours-name { font-weight: 500; }
.hours-inputs { display: flex; align-items: center; gap: 8px; }
.hours-inputs input { width: 132px; }
.slot-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot--toggle[aria-pressed="false"] { background: var(--grey-tint); color: var(--ink-2); border-style: dashed; }
.slot--toggle[aria-pressed="true"] { background: var(--sea-tint); color: var(--sea); border-color: var(--sea); }
.slot--toggle[aria-pressed="true"] small { color: var(--sea); }
.sw-list { display: grid; max-height: 320px; overflow-y: auto; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line-2); min-height: 48px; font-size: 15px; cursor: pointer; }

/* ---------- Mode handling on phones ---------- */
body[data-mode="staff"] .device-col { visibility: hidden; }

/* ---------- Desktop presentation ---------- */
@media (min-width: 1024px) {
  body { background: var(--stage); }
  .demo-bar { display: flex; padding: 10px 24px; gap: 24px; }
  .demo-bar .mode-switch--bar { padding: 4px; }
  .demo-bar .disclosure { flex: 1; }
  .ex-start { display: none; }
  .demo-bar .demo-brand { display: grid; line-height: 1.15; flex: none; }
  .ss-mark { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; letter-spacing: .02em; }
  .demo-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #B9B2A6; }
  .disclosure { font-size: 13px; text-align: center; }

  .notes-btn, .mode-switch--panel, .ex-close { display: none; }

  .stage { display: flex; justify-content: center; align-items: center; gap: clamp(32px, 4vw, 72px); padding: 20px 32px; }
  .device-col { height: auto; display: grid; justify-items: center; gap: 10px; flex: none; }
  .device { width: 414px; height: min(868px, calc(100dvh - 96px)); border-radius: 56px; padding: 12px; background: #101618; box-shadow: 0 0 0 1px #2B3335, 0 30px 80px rgba(18, 26, 28, .35), inset 0 0 0 2px #1E2628; position: relative; }
  .device::before { content: ''; position: absolute; top: 22px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%); background: #101618; border-radius: 999px; z-index: 9; pointer-events: none; }
  .guest { border-radius: 44px; }
  .g-view { scrollbar-width: none; }
  .g-view::-webkit-scrollbar { display: none; }
  .hero-top { padding-top: 46px; }
  .g-view > .screen > .topbar:first-child { padding-top: 46px; }
  .page-head:first-child { padding-top: 58px; }
  .icon-btn--float { top: 46px; }
  .g-toast { top: 52px; }

  .explainer { position: static; transform: none; visibility: visible; width: 372px; max-height: min(868px, calc(100dvh - 96px)); overflow-y: auto; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 26px 22px; transition: none; flex: none; }
  .ex-head { margin-bottom: 6px; }

  body[data-mode="staff"] .explainer { display: none; }
  body[data-mode="staff"] .stage { justify-content: flex-start; align-items: stretch; gap: 28px; padding: 20px 28px; }
  body[data-mode="staff"] .device-col { visibility: visible; order: 2; align-self: center; }
  body[data-mode="staff"] .device { zoom: .74; }
  body[data-mode="staff"] .device-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
  .console { position: static; flex: 1; min-width: 0; max-width: 1120px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
  .con-head { padding: 22px 28px 0; grid-template-columns: 1fr auto; align-items: end; }
  .con-id { grid-column: 1; }
  .con-reset { display: inline-flex; grid-column: 2; grid-row: 1; align-self: start; }
  .con-tabs { grid-column: 1 / -1; }
  .con-body { padding: 22px 28px 40px; }
  .con-head { position: relative; }
  .con-toast { display: block; position: absolute; top: auto; left: auto; right: 28px; bottom: 8px; margin: 0; max-width: 46%; visibility: hidden; }
  .con-toast.is-on { visibility: visible; }
  .kpis { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; }
  .q-filters { grid-template-columns: 1fr auto; align-items: start; }
  .q-filters .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .q-item { grid-template-columns: 64px 116px minmax(0, 1fr) 128px 112px auto; grid-template-areas: "when who what meta status actions"; align-items: center; gap: 14px; padding: 12px 16px; }
  .q-when { display: grid; gap: 0; }
  .q-meta { display: grid; justify-items: start; gap: 4px; }
  .q-status { justify-self: start; }
  .q-actions { flex-wrap: nowrap; justify-content: flex-end; }
  .charts { grid-template-columns: 1fr 1fr; }
  .settings { grid-template-columns: 1fr 1fr; }
  .hours li { grid-template-columns: 1fr auto; align-items: center; }
  .chart--wide { grid-column: 1 / -1; }
  .bars li { grid-template-columns: 150px 1fr 150px; align-items: center; gap: 12px; }
  .bar-val { text-align: right; }
}
@media (min-width: 1024px) and (max-width: 1360px) {
  body[data-mode="staff"] .device { zoom: .62; }
  .q-item { grid-template-columns: 56px 104px minmax(0, 1fr) 112px; grid-template-areas: "when who what status" "when who meta actions"; }
  .q-actions { justify-content: flex-start; }
  .q-status { justify-self: end; }
  .q-actions { justify-self: end; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .device { height: calc(100dvh - 84px); }
  .explainer { max-height: calc(100dvh - 84px); overflow-y: auto; }
}

/* Small phones */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .display { font-size: 34px; }
  .display--xl { font-size: 38px; }
  .quick { gap: 8px; }
  .conditions > div { font-size: 11px; }
  .rail-card, .rail-card img { width: 196px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
