/* Hotel guest service requests · multi-hotel concept demo.
   :root holds a neutral look (used by the hotel list). Each hotel overrides these tokens from its HOTEL.theme
   (hotels/<id>.js): colours, fonts, wordmark and logo style. Components only ever use the tokens. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  /* brand: brand = main colour, deep / wash / ink = darker, tint, and brand-coloured text on light; accent = links and
     icons; alert = escalations */
  --brand: #3F6B73; --brand-deep: #2F555C; --brand-wash: #E9F0F1; --brand-ink: #2A4C52;
  --accent: #2F555C; --alert: #9B3B4A; --alert-wash: #F7ECEE; --alert-ink: #84313F;
  --ribbon: linear-gradient(90deg, #6E9AA2, #3F6B73 50%, #2A4C52);
  --glow: linear-gradient(90deg, #6E9AA2 8%, #3F6B73 55%, #2F555C 96%);
  --btn: #2F555C; --btn-hover: #2A4C52; --btn-shadow: rgba(42, 76, 82, .8);
  /* ink on paper */
  --ink: #1F2426; --ink-2: #4A5154; --ink-3: #737B7E; --ink-4: #A9B0B2;
  --cream: #F7F8F8; --sand: #ECEFEF; --paper: #fff;
  --line: rgba(35, 31, 32, .13); --hair: rgba(35, 31, 32, .07);
  /* service states */
  --ok: #1B7A4B; --ok-wash: #E3F3E9; --ok-fill: #2E9A62;
  --risk: #9A5600; --risk-wash: #FFEDCB; --risk-fill: #F2A21E;
  --late: #A8493F; --late-wash: #FAEEEA; --late-fill: #D98274; /* muted brick red: clear, but easy on the eye */
  /* depth & shape */
  --lift: 0 0 0 1px rgba(35, 31, 32, .05), 0 1px 2px rgba(35, 31, 32, .05), 0 6px 16px -8px rgba(35, 31, 32, .12);
  --lift-hi: 0 0 0 1px rgba(35, 31, 32, .06), 0 2px 4px rgba(35, 31, 32, .06), 0 14px 28px -10px rgba(35, 31, 32, .2);
  --float: 0 28px 64px -16px rgba(35, 31, 32, .38), 0 0 0 1px rgba(35, 31, 32, .06);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* type: display = guest headings; h1 = page titles; wm = wordmark (sm = in the phone's top bar); sub = line under it */
  --display: var(--sans); --display-size: 28px;
  --h1-font: var(--sans); --h1-weight: 800; --h1-spacing: -.02em; --h1-size: 28px;
  --wm-font: var(--sans); --wm-weight: 800; --wm-case: none; --wm-size: 20px; --wm-spacing: -.01em; --wm-size-sm: 16px; --wm-spacing-sm: -.01em;
  --sub-size: 11px; --sub-weight: 700; --sub-spacing: 0; --sub-case: none; --sub-color: var(--ink-2);
  /* logo: a monogram stand-in (swap in an official logo only with the hotel's permission) */
  --logo-bg: var(--brand); --logo-fg: #fff; --logo-border: transparent; --logo-font: var(--sans); --logo-weight: 800;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; font: 400 14px/1.5 var(--sans); background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, blockquote { margin: 0; }
h1 { font-family: var(--h1-font); font-size: var(--h1-size); font-weight: var(--h1-weight); line-height: 1.15; letter-spacing: var(--h1-spacing); text-wrap: balance; }
h2 { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
h3 { margin-bottom: 12px; font-size: 14px; font-weight: 800; }
p { text-wrap: pretty; }
b { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.script { font-family: var(--display); font-weight: 400; font-size: var(--display-size); line-height: 1.35; letter-spacing: 0; }

/* ---------- wordmark: monogram + name, styled by the hotel's tokens ---------- */
.mark { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--logo-border); border-radius: 50%;
  background: var(--logo-bg); color: var(--logo-fg); font-family: var(--logo-font); font-size: 21px; font-weight: var(--logo-weight); line-height: 1; }
.mark-text { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark { font-family: var(--wm-font); font-size: var(--wm-size); font-weight: var(--wm-weight); letter-spacing: var(--wm-spacing); text-transform: var(--wm-case); color: var(--ink); }
.mark-sub { margin-top: 5px; font-size: var(--sub-size); font-weight: var(--sub-weight); letter-spacing: var(--sub-spacing); text-transform: var(--sub-case); color: var(--sub-color); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 28px;
  padding: 14px 28px 10px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--hair), 0 8px 24px -16px rgba(35, 31, 32, .25); }
.top::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ribbon); }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-app { padding: 4px 0 4px 14px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tabs { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700;
  white-space: nowrap; transition: background-color .16s; }
.tabs a:hover { background: var(--cream); }
.tabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--glow); }
.demo { display: flex; align-items: center; gap: 6px; }
.demo-tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; }
.demo-clock { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-clock .i { width: 15px; height: 15px; color: var(--ink-3); }

/* ---------- layout ---------- */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 1320px; margin: 0 auto; padding: 28px 28px 72px; }
.card { min-width: 0; padding: 22px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.head h2, .head h3 { margin: 0 auto 0 0; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-left: 8px; padding: 0 7px; border-radius: 99px;
  background: var(--sand); font-size: 12px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; vertical-align: 2px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pagehead .eyebrow { margin-bottom: 6px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 99px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background-color .16s, box-shadow .16s, transform .12s var(--ease), opacity .16s; }
a.btn { color: inherit; text-decoration: none; }
.btn:hover { background: var(--cream); }
.btn:active { transform: scale(.97); }
.btn .i { width: 16px; height: 16px; }
.btn.sm { min-height: 30px; padding: 0 12px; font-size: 12px; }
.btn.sm .i { width: 14px; height: 14px; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--paper); }
.btn.primary { background: var(--btn); color: #fff; box-shadow: 0 6px 14px -8px var(--btn-shadow); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.block { display: flex; width: 100%; min-height: 48px; margin-top: 14px; font-size: 15px; font-weight: 800; }
.btn.block .i { width: 18px; height: 18px; }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; color: var(--accent); font-weight: 800; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .i { width: 16px; height: 16px; }
.back { margin-bottom: 14px; color: var(--ink-2); }
.back:hover { color: var(--ink); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border: 0; border-radius: 99px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; transition: background-color .16s, transform .12s var(--ease); }
.pill .i { width: 15px; height: 15px; }
.pill:hover { background: var(--sand); }
.pill:active { transform: scale(.96); }
.pill.on { background: var(--ink); color: #fff; box-shadow: none; }

.field { display: block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field-label { display: block; }
.opt { margin-left: 4px; font-weight: 600; color: var(--ink-4); }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 13px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.field textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
::placeholder { color: var(--ink-4); font-weight: 500; }
select { appearance: none; padding-right: 38px !important; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B7471' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.head select { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 700; }
.searchbox { position: relative; display: block; margin: 16px 0 4px; }
.searchbox .i { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: var(--ink-3); transform: translateY(-50%); pointer-events: none; }
.searchbox input { width: 100%; padding: 12px 16px 12px 42px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px rgba(35, 31, 32, .04); transition: border-color .16s, box-shadow .16s; }
.searchbox + .rows { margin-top: 12px; }
.searchbox.sm { width: 280px; max-width: 100%; margin: 0; }
.searchbox.sm .i { left: 12px; width: 16px; height: 16px; }
.searchbox.sm input { padding: 8px 14px 8px 36px; font-size: 13px; }
/* searchable dropdown */
.combo { position: relative; margin-top: 7px; }
.combo-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px 0 13px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: var(--ink); text-align: left;
  transition: border-color .16s, box-shadow .16s; }
.combo-btn:hover { border-color: rgba(35, 31, 32, .24); }
.combo-btn .ph { font-weight: 500; color: var(--ink-4); }
.combo-btn .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev-d { width: 16px; height: 16px; color: var(--ink-3); transform: rotate(90deg); transition: transform .2s var(--ease); }
.combo.open .combo-btn { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.combo.open .chev-d { transform: rotate(-90deg); }
.combo-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 25; padding: 6px; background: var(--paper); border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(35, 31, 32, .07), 0 18px 40px -12px rgba(35, 31, 32, .3); transform-origin: top center; }
.combo-pop.enter { animation: pop .18s var(--ease) both; }
.combo-search { position: relative; display: block; }
.combo-search .i { position: absolute; top: 50%; left: 11px; width: 16px; height: 16px; color: var(--ink-3); transform: translateY(-50%); pointer-events: none; }
.combo-search input { width: 100%; padding: 9px 10px 9px 34px; background: var(--cream); border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; }
.combo-search input:focus { border: 0 !important; box-shadow: inset 0 0 0 1.5px var(--brand); }
.combo-list { max-height: 272px; margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; }
.combo-group { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 800; color: var(--ink-3); }
.combo-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; background: none; border: 0;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.combo-opt:hover, .combo-opt.hi { background: var(--cream); }
.combo-opt.hi { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 50%, transparent); }
.combo-opt.sel { color: var(--brand-ink); font-weight: 800; }
.combo-opt .opt-meta { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.combo-opt .tick { width: 16px; height: 16px; color: var(--brand-ink); stroke-width: 2.4; }
.combo-empty { padding: 14px 10px; font-size: 13px; color: var(--ink-3); }
.combo.sm { min-width: 170px; margin-top: 0; }
.combo.sm .combo-btn { min-height: 36px; padding: 0 12px 0 14px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.combo.sm .combo-pop { left: auto; width: 250px; }
.combo-btn.active { border-color: color-mix(in srgb, var(--brand) 70%, transparent); background: var(--brand-wash); }
/* filter bar above a table */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 14px; }
.filters .searchbox.sm { width: 280px; }
.filters .combo.sm .combo-pop { right: auto; left: 0; }
.filters .link { margin-left: 4px; font-size: 13px; }
.voiced { animation: voiced 1.4s var(--ease) both; }
@keyframes voiced { 0%, 30% { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 35%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent); } }
.err { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--late); }
.err .i { width: 16px; height: 16px; }

/* ---------- badges, status, timers, bars ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: var(--r-xs); font-size: 11.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.badge.g { color: var(--ok); background: var(--ok-wash); }
.badge.y { color: var(--risk); background: var(--risk-wash); }
.badge.r { color: var(--late); background: var(--late-wash); }
.badge.p { color: var(--alert-ink); background: var(--alert-wash); }
.badge.b { color: var(--brand-ink); background: var(--brand-wash); }
.badge.n { color: var(--ink-2); background: var(--sand); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink-4); }
.status.progress { color: var(--ink); }
.status.progress::before { background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.status.done { color: var(--ok); }
.status.done::before { background: var(--ok-fill); }
.tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.timer { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer.big { display: block; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; }
.timer.small { display: block; margin-top: 5px; font-size: 12px; }
.timer.ok { color: var(--ok); }
.timer.risk { color: var(--risk); }
.timer.breached { color: var(--late); }
.timer.met, .timer.missed { color: var(--ink-3); font-weight: 700; }
.bar { display: block; height: 6px; overflow: hidden; background: var(--sand); border-radius: 99px; }
.bar i { display: block; height: 100%; background: var(--ok-fill); border-radius: inherit; }
.bar i.risk { background: var(--risk-fill); }
.bar i.breached, .bar i.missed { background: var(--late-fill); }

/* ---------- lists ---------- */
.rows { overflow: hidden; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 11px 14px; text-align: left; background: none; border: 0;
  transition: background-color .12s; }
.row + .row { border-top: 1px solid var(--hair); }
.row:hover { background: var(--cream); }
.row b, .row .small { display: block; }
.row b { font-weight: 700; }
.chev { width: 16px; height: 16px; color: var(--ink-4); }
.ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--brand-wash); color: var(--accent); }
.ico .i { width: 21px; height: 21px; }
.ico.sm { width: 32px; height: 32px; border-radius: 9px; }
.ico.sm .i { width: 18px; height: 18px; }
.ico.xs { width: 26px; height: 26px; border-radius: 7px; }
.ico.xs .i { width: 15px; height: 15px; }
.ico.lg { width: 50px; height: 50px; border-radius: 15px; }
.ico.lg .i { width: 26px; height: 26px; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 40px 16px; text-align: center; }
.empty .i { width: 30px; height: 30px; margin-bottom: 8px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--sand); color: var(--ink-3); }
.empty b { font-size: 15px; }
.empty span { max-width: 32ch; font-size: 13px; color: var(--ink-3); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
th { padding-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; border-bottom-color: var(--line); }
td:first-child { white-space: nowrap; }
td.room { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
td.num { font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
td.taskcell { min-width: 210px; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-act] { cursor: pointer; transition: background-color .12s; }
tr[data-act]:hover { background: var(--cream); }
tr[data-act]:focus-visible { outline-offset: -2px; }

/* ---------- phone frame (guest + floor staff) ---------- */
/* rows: status bar · scrolling screen · home indicator — content never slides under the notch.
   Always real phone proportions (390 × 844); app.js sets --fit to scale the whole phone down on short windows. */
.phone { display: grid; grid-template-rows: 50px minmax(0, 1fr) 24px; width: 390px; height: 844px; zoom: var(--fit, 1);
  margin: 0 auto; overflow: hidden; background: var(--cream); border: 10px solid var(--ink); border-radius: 52px; box-shadow: var(--float); }
.statusbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 34px;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.island { position: absolute; top: 10px; left: 50%; width: 94px; height: 26px; border-radius: 20px; background: var(--ink); transform: translateX(-50%); }
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { width: auto; height: 11px; fill: currentColor; }
.sb-icons .i { width: 15px; height: 15px; fill: none; stroke-width: 2.6; }
.home-bar { align-self: center; justify-self: center; width: 124px; height: 5px; border-radius: 3px; background: var(--ink); }
.screen { overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 16px; scrollbar-width: none; }
/* bottom tab bar (floor staff, department manager): it sits under the screen and the home indicator draws over its lower edge */
.phone.has-nav { grid-template-rows: 50px minmax(0, 1fr) auto 24px; }
.phone.has-nav .home-bar { position: relative; z-index: 1; grid-row: 4; grid-column: 1; }
.tabbar { display: flex; grid-row: 3 / 5; grid-column: 1; padding: 6px 14px 24px; background: var(--paper); box-shadow: 0 -1px 0 var(--hair); }
.tabbar button { display: grid; flex: 1; justify-items: center; gap: 3px; padding: 4px 4px 6px; background: none; border: 0; color: var(--ink-3);
  font-size: 11.5px; font-weight: 800; transition: color .15s; }
.tabbar button:hover { color: var(--ink-2); }
.tabbar button.on { color: var(--ink); }
.tb-ic { position: relative; display: grid; place-items: center; width: 60px; height: 30px; border-radius: 99px; transition: background-color .2s var(--ease); }
.tabbar button.on .tb-ic { background: var(--brand-wash); color: var(--brand-ink); }
.tb-ic .i { width: 22px; height: 22px; }
.tb-n { position: absolute; top: -4px; left: calc(50% + 7px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--alert-ink);
  box-shadow: 0 0 0 2px var(--paper); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tabbar button:active .tb-ic { transform: scale(.94); }
.screen::-webkit-scrollbar { display: none; }
.screen .field input, .screen .field select, .screen .field textarea, .screen .searchbox input { font-size: 16px; }
.gtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 22px; }
/* the app bar stays put while the screen scrolls, like a real app */
.screen .gtop { position: sticky; top: 0; z-index: 2; margin: 0 -18px 18px; padding: 6px 18px 12px; background: var(--cream); box-shadow: 0 1px 0 var(--hair); }
.gtop .logo { width: 30px; height: 30px; font-size: 17px; }
.gtop .wordmark { font-size: var(--wm-size-sm); letter-spacing: var(--wm-spacing-sm); }
.gtop .mark { gap: 8px; }
.gnav { display: flex; gap: 6px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b, .who .small { display: block; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-wash); color: var(--brand-ink);
  font-size: 15px; font-weight: 800; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.gh { margin-bottom: 14px; font-size: 22px; }
.ghead { font-size: 30px; line-height: 1.3; }
.sec { margin: 26px 0 10px; }

/* guest: welcome + QR */
.welcome { display: flex; flex-direction: column; min-height: 100%; text-align: center; }
.welcome-art { position: relative; height: 132px; margin: 0 -18px; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 6; opacity: .3; stroke-linecap: round; }
.welcome-art .mark { position: absolute; bottom: 0; left: 50%; flex-direction: column; gap: 8px; transform: translateX(-50%); }
.welcome-art .logo { width: 64px; height: 64px; font-size: 32px; }
.welcome-art .mark-text { align-items: center; }
.welcome .script { margin-top: 22px; font-size: 32px; }
.welcome > p { max-width: 29ch; margin: 4px auto 0; }
.qr { display: grid; justify-items: center; gap: 10px; width: 196px; margin: 22px auto 24px; padding: 16px 16px 12px; background: var(--paper);
  border-radius: var(--r-lg); box-shadow: var(--lift-hi); }
.qr svg { width: 164px; height: 164px; fill: var(--ink); }
.qr span { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.demo-box { margin-top: 20px; padding: 14px; border: 1.5px dashed rgba(35, 31, 32, .18); border-radius: var(--r-md); text-align: left; }
.welcome .demo-box { margin-top: auto; }
.concept { margin-top: 12px; font-size: 11.5px; }
.demo-line { display: flex; align-items: center; gap: 8px; }
.demo-box .field { margin-top: 10px; }
.demo-box .btn.block { margin-top: 10px; }

/* guest: home */
.gbanner { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; text-align: left; background: var(--paper);
  border: 0; border-radius: var(--r-md); box-shadow: var(--lift); transition: box-shadow .2s var(--ease); }
.gbanner:hover { box-shadow: var(--lift-hi); }
.gbanner b, .gbanner .small { display: block; }
.live { position: relative; width: 10px; height: 10px; margin: 0 4px; flex: none; border-radius: 50%; background: var(--brand); }
.live::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--brand); border-radius: 50%; opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { opacity: .7; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.4); } }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 11px 12px; text-align: left; background: var(--paper); border: 0;
  border-radius: var(--r-md); box-shadow: var(--lift); font-size: 13.5px; font-weight: 700; line-height: 1.3;
  transition: box-shadow .2s var(--ease), transform .12s var(--ease); }
.tile:hover { box-shadow: var(--lift-hi); }
.tile:active { transform: scale(.97); }
/* guest: quick requests — one-tap tiles, 4 to a row like app shortcuts */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qtile { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; min-height: 92px; padding: 12px 4px 10px;
  background: var(--paper); border: 0; border-radius: var(--r-md); box-shadow: var(--lift); font-size: 11.5px; font-weight: 700; line-height: 1.25;
  text-align: center; transition: box-shadow .2s var(--ease), transform .12s var(--ease); }
.qtile:hover { box-shadow: var(--lift-hi); }
.qtile:active { transform: scale(.95); }
.qico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-wash); color: var(--accent); }
.qico .i { width: 21px; height: 21px; }
.qdot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--paper); }
.g-others { margin-top: 12px; }
.g-others .link { padding: 0; }
.tname small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: var(--brand-ink); }
.gtitle { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.gtitle h2 { font-size: 21px; }
.gtitle .eyebrow { margin-bottom: 2px; }

/* guest: request, confirmation, tracking */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; margin: 18px 0; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; }
.sheet { margin: 18px 0 4px; padding: 16px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.confirm { padding-top: 18px; }
.confirm p { max-width: 30ch; margin: 2px auto 0; }
.done-mark { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; background: var(--glow); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(247, 71, 15, .6); }
.done-mark .i { width: 36px; height: 36px; stroke-width: 2.4; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.dhead h2 { margin-top: 3px; font-size: 21px; }
.dhead .muted { margin-top: 3px; }
.dhead > .status { margin-top: 4px; }
.tl { margin: 20px 0 0; padding: 20px 18px 2px; list-style: none; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.tl li { position: relative; padding: 0 0 22px 32px; color: var(--ink-4); }
.tl li::before { content: ''; position: absolute; top: 3px; left: 2px; width: 14px; height: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 50%; }
.tl li::after { content: ''; position: absolute; top: 21px; bottom: 3px; left: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.on { color: var(--ink); }
.tl li.on::before { background: var(--brand); border-color: var(--brand); }
.tl li.on:has(+ li.on)::after { background: var(--brand); }
.tl li.now::before { box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 22%, transparent); }
.tl b, .tl span { display: block; }
.tl b { font-weight: 700; }
.tl span { font-size: 12px; color: var(--ink-3); }

/* ---------- ticket detail ---------- */
.detail { padding: 20px 18px; }
.note { margin-top: 14px; padding: 10px 14px; background: var(--cream); border-radius: var(--r-sm); color: var(--ink-2); font-style: italic; }
.note::before { content: '“'; } .note::after { content: '”'; }
.slabox { margin-top: 16px; padding: 16px; border-radius: var(--r-md); background: var(--cream); }
.slabox.ok { background: #F3FAF5; }
.slabox.risk { background: #FFF7E8; }
.slabox.breached { background: #FEF1EE; }
.slabox .bar { background: rgba(35, 31, 32, .08); }
.slabox .btn.block { margin-top: 16px; }
.slarow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.slarow .tags { justify-content: flex-end; }
.box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.esc { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.esc li { display: flex; align-items: center; gap: 12px; }
.esc b, .esc .grow > span { display: block; }
.lvl { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--sand); font-size: 12px; font-weight: 800; color: var(--ink-3); }
.esc li.hit .lvl { background: var(--alert-wash); color: var(--alert-ink); }
.esc-hit { font-weight: 800; color: var(--alert-ink); }
.esc li > .small { text-align: right; }

/* ---------- floor staff + department manager ---------- */
.mgr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mgr-bar .combo { width: 300px; max-width: 100%; margin-top: 0; }
.mgr-bar .combo-btn { min-height: 42px; }
.screen .mgr-bar { display: block; margin: 10px 0 12px; }
.screen .mgr-bar .combo { width: 100%; margin-top: 6px; }
.avatar.xs { width: 26px; height: 26px; border-radius: 9px; font-size: 11.5px; }
.avatar.xs.all .i { width: 14px; height: 14px; }
.seg button.escalated .n { background: var(--alert-wash); color: var(--alert-ink); }
.seg button.escalated.on .n { background: var(--alert-ink); color: #fff; }
.seg button.approve .n { background: var(--brand-wash); color: var(--brand-ink); }
.seg button.approve.on .n { background: var(--brand); color: #fff; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; background: var(--hair); border-radius: var(--r-md); box-shadow: var(--lift); }
.strip > div { padding: 16px 18px; background: var(--paper); }
.strip b { display: block; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.strip b small { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--ink-3); }
.strip span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.strip .r b { color: var(--late); }
.strip .y b { color: var(--risk); }
.strip .p b { color: var(--alert-ink); }
.late { font-weight: 700; color: var(--late); }
.risk-text { font-weight: 700; color: var(--risk); }
.seg { display: flex; gap: 4px; margin: 22px 0 12px; padding: 4px; background: var(--sand); border-radius: 99px; }
.seg button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; min-height: 38px; background: none; border: 0;
  border-radius: 99px; color: var(--ink-2); font-weight: 700; transition: background-color .16s, color .16s; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 31, 32, .1), 0 0 0 1px rgba(35, 31, 32, .04); }
.seg .n { min-width: 22px; padding: 0 7px; border-radius: 99px; background: rgba(35, 31, 32, .07); font-size: 12px; font-weight: 800; line-height: 20px; font-variant-numeric: tabular-nums; }
.seg button.on .n { background: var(--brand); color: #fff; }
.screen .seg { margin-top: 0; }
.screen .seg button { gap: 6px; padding: 0 4px; white-space: nowrap; }
.task { position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "room body" "room foot"; gap: 2px 14px; width: 100%;
  margin-bottom: 10px; padding: 14px 16px 16px 14px; overflow: hidden; text-align: left; background: var(--paper); border: 0; border-radius: var(--r-md);
  box-shadow: var(--lift); transition: box-shadow .2s var(--ease), transform .12s var(--ease); }
.task:hover { box-shadow: var(--lift-hi); }
.task:active { transform: scale(.99); }
.task-room { grid-area: room; display: grid; align-content: center; height: 56px; border-radius: 12px; background: var(--cream); text-align: center;
  font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.task-room small { margin-bottom: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.task.risk .task-room { background: var(--risk-wash); color: var(--risk); }
.task.breached .task-room { background: var(--late-wash); color: var(--late); }
.task.risk .task-room small, .task.breached .task-room small { color: inherit; opacity: .75; }
.task-body { grid-area: body; min-width: 0; }
.task-title { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; }
.task-body > .small { display: block; margin-top: 2px; }
.task-who { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-weight: 700; color: var(--ink-2); }
.task-who .i { width: 14px; height: 14px; }
.task-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 10px; }
.foot-end { display: flex; flex: 1 0 auto; align-items: center; justify-content: space-between; gap: 12px; }
.task.esc { grid-template-areas: "esc esc" "room body" "room foot"; box-shadow: 0 0 0 1px rgba(168, 68, 108, .28), var(--lift); }
.task.esc:hover { box-shadow: 0 0 0 1px rgba(168, 68, 108, .42), var(--lift-hi); }
.task-esc { grid-area: esc; display: flex; align-items: center; gap: 6px; margin: -14px -16px 12px -14px; padding: 8px 16px 8px 14px;
  background: var(--alert-wash); color: var(--alert-ink); font-size: 12.5px; font-weight: 800; }
.task-esc .i { width: 15px; height: 15px; }
.task-esc span { margin-left: auto; font-weight: 700; white-space: nowrap; opacity: .85; }
.task-bar { position: absolute; right: 0; bottom: 0; left: 0; }
.task-bar .bar { height: 3px; border-radius: 0; background: var(--hair); }

/* ---------- room checks (engineering) ---------- */
.modes { display: flex; gap: 18px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.modes button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px 12px; background: none; border: 0;
  font-size: 15px; font-weight: 800; color: var(--ink-3); transition: color .15s; }
.modes button:hover { color: var(--ink-2); }
.modes button.on { color: var(--ink); }
.modes button.on::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px; background: var(--glow); }
.modes .n, .sec .n { min-width: 22px; padding: 0 7px; border-radius: 99px; background: rgba(35, 31, 32, .07); font-size: 12px; font-weight: 800;
  line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.modes .n.hot { background: var(--brand); color: #fff; }
.sec { display: flex; align-items: center; gap: 8px; }
.rc-intro { margin: 0 0 4px; }
.i.inl { width: 14px; height: 14px; vertical-align: -2px; stroke-width: 2.4; }
.bar i.prog { background: var(--brand); }
.rc-progress { margin: 4px 0 10px; padding: 12px 14px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.rc-progress .slarow { margin-bottom: 8px; }
.zone { margin-top: 10px; overflow: hidden; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); scroll-margin-top: 76px; }
.zone-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: none; border: 0; text-align: left; }
.zone-head b, .zone-head .small { display: block; }
.zone-n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--sand); font-size: 13px;
  font-weight: 800; color: var(--ink-2); }
.zone-n .i { width: 16px; height: 16px; stroke-width: 2.6; }
.zone.complete .zone-n { background: var(--ok-wash); color: var(--ok); }
.zone.open .chev-d { transform: rotate(-90deg); }
.zone-body { padding: 0 14px 10px; border-top: 1px solid var(--hair); }
.part { padding-top: 12px; }
.part + .part { margin-top: 4px; border-top: 1px dashed var(--line); }
.part-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.part-head b { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }
.part-head .link { padding: 2px 0; font-size: 12.5px; }
.part-head .link .i { width: 14px; height: 14px; }
.ci { padding: 9px 0; }
.ci + .ci { border-top: 1px solid var(--hair); }
.ci-main { display: flex; align-items: center; gap: 10px; }
.ci-text { flex: 1; min-width: 0; }
.ci-text b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ci-text span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.ci-btns { display: flex; flex: none; gap: 6px; }
.ci-btns button { display: grid; place-items: center; width: 40px; height: 40px; background: var(--cream); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-4); transition: background-color .15s, color .15s, transform .12s var(--ease); }
.ci-btns button:hover { color: var(--ink-2); }
.ci-btns button:active { transform: scale(.94); }
.ci-btns .i { width: 18px; height: 18px; stroke-width: 2.4; }
.ci-btns .ok.on { background: var(--ok-fill); color: #fff; box-shadow: none; }
.ci-btns .no.on { background: var(--late-fill); color: #fff; box-shadow: none; }
.ci.is-ok .ci-text b { color: var(--ink-2); }
.ci-fix { display: grid; gap: 8px; margin-top: 8px; padding: 10px; background: var(--late-wash); border-radius: var(--r-sm); }
.ci-fix .small .i { color: var(--late); }
.ci-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.ci-choice .pill.on { background: var(--ink); color: #fff; box-shadow: none; }
.ci-note { width: 100%; padding: 9px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 16px; font-weight: 600; }
.rc-submit { position: sticky; bottom: 0; z-index: 2; margin: 14px -18px -16px; padding: 14px 18px 16px;
  background: linear-gradient(rgba(255, 251, 243, 0), var(--cream) 28%); }
.rc-submit .btn.block { margin-top: 0; }
.rc-done { padding: 4px 0 16px; }
.rc-done .done-mark { width: 60px; height: 60px; }
.rc-done .done-mark .i { width: 30px; height: 30px; }
.rc-done p { margin-top: 2px; }
.rc-sum { padding: 18px 16px; }
.rc-sum .rows { box-shadow: inset 0 0 0 1px var(--hair); }
.rc-sum .kv { grid-template-columns: 96px 1fr; }
.rc-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 14px 0 2px; padding: 12px 14px; background: var(--ok-wash);
  border-radius: var(--r-md); }
.rc-score b { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.rc-score span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rc-score.fair { background: var(--risk-wash); }
.rc-score.fair b { color: var(--risk); }
.rc-score.low { background: var(--late-wash); }
.rc-score.low b { color: var(--late); }
.rc-allgood { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--ok); }
.appr { gap: 10px; }
.appr-open { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 0; background: none; border: 0; text-align: left; }
.appr-open b, .appr-open .small { display: block; }
.task-room.sm { display: grid; flex: none; align-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--cream);
  text-align: center; font-size: 18px; font-weight: 800; line-height: 1; }
.task-room.sm small { margin-bottom: 3px; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- front desk ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.action { position: sticky; top: 96px; }
.action-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.action-head h2 + p { margin-top: 3px; }
.voice-btn { flex: none; }
.voice-btn .i { color: var(--accent); }
.voice-btn.on { background: var(--alert-ink); color: #fff; box-shadow: none; }
.voice-btn.on .i { color: #fff; }
.voice { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 12px 12px 14px; border-radius: var(--r-sm); }
.voice b { display: block; font-size: 13.5px; }
.voice.listening { background: var(--ink); color: #fff; }
.voice.listening .small { min-height: 1.5em; margin-top: 2px; color: rgba(255, 255, 255, .78); }
.voice.listening [data-voice-time] { margin-left: 4px; font-weight: 700; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.voice.done { align-items: flex-start; background: var(--brand-wash); }
.voice.done > .i { margin-top: 1px; color: var(--accent); }
.voice.done .small { margin-top: 2px; }
.wave { display: flex; flex: none; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand); animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.25s; } .wave i:nth-child(3) { animation-delay: -.5s; }
.wave i:nth-child(4) { animation-delay: -.75s; } .wave i:nth-child(5) { animation-delay: -.4s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.vx { display: grid; flex: none; place-items: center; width: 30px; height: 30px; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; color: #fff; }
.vx:hover { background: rgba(255, 255, 255, .22); }
.vx .i { width: 15px; height: 15px; }
.hint { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.hint .i { width: 15px; height: 15px; color: var(--ink-3); }
.warn { display: flex; gap: 10px; margin-top: 14px; padding: 13px 14px; background: var(--risk-wash); border-radius: var(--r-sm); }
.warn > .i { margin-top: 1px; color: var(--risk); }
.warn > div { display: grid; flex: 1; gap: 6px; justify-items: start; }
.others { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
.others .rows { box-shadow: inset 0 0 0 1px var(--hair); }

/* front desk: Service requests | Check-outs */
.desk-modes { margin: -6px 0 0; }
.desk-modes button { font-size: 14.5px; }
.desk-modes .i { width: 17px; height: 17px; }
.desk-modes button.on .i { color: var(--accent); }

/* front desk: check-outs (checkout.js) */
.co-split { grid-template-columns: 380px minmax(0, 1fr); }
.co-card { padding: 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.co-card + .co-card { margin-top: 12px; }
.co-card .btn.block { margin-top: 4px; }
.co-head { display: flex; align-items: center; gap: 12px; }
.co-head b, .co-head .small { display: block; }
.co-wait { display: grid; flex: none; justify-items: end; gap: 1px; }
.co-wait span { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.co-wait b { font-size: 21px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.co-wait b.long { color: var(--late); }
.co-steps { margin: 12px 0 10px; padding: 0; list-style: none; }
.co-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 54px; padding: 9px 0; }
.co-steps li + li { border-top: 1px solid var(--hair); }
.co-steps .grow { min-width: 190px; }
.co-steps b, .co-steps .small { display: block; }
.co-steps .small { margin-top: 1px; }
.co-dot { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: #fff; }
.co-dot .i { width: 14px; height: 14px; stroke-width: 3; }
.co-steps li.now .co-dot { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--brand); }
.co-steps li.done .co-dot { background: var(--ok-fill); box-shadow: none; }
.co-steps li.done b { color: var(--ink-2); }
.co-steps li.todo b { color: var(--ink-3); }
.co-steps .timer { margin-left: 2px; }
.co-steps li > .link, .co-steps li > .btn, .co-bill { margin-left: auto; } /* on a narrow screen the action wraps to the right */
.co-bill { display: flex; flex: none; gap: 6px; }
.co-extra { width: 96px; min-height: 30px; padding: 0 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  font: inherit; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-extra:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.co-turn .status { margin-left: auto; }
.co-how { display: grid; gap: 8px; margin: 20px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); }
.co-how b { color: var(--ink); }

/* ---------- property manager: dashboard (dashboard.js) ---------- */
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.seg.period { width: 260px; margin: 0; }
.seg.period button { min-height: 32px; font-size: 13px; }
.kpis5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 16px 18px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--lift); }
.kpi span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.kpi b { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.kpi.good b { color: var(--ok); }
.kpi.warn b { color: var(--risk); }
.kpi.late b { color: var(--late); }
.kpi.esc b { color: var(--alert-ink); }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dpanel.wide { grid-column: 1 / -1; }
.dhead2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 16px; }
.vbars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; height: 190px; }
.vb { display: grid; grid-template-rows: auto minmax(0, 1fr) 30px; min-width: 0; }
.vb-top { min-height: 16px; font-size: 11.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.vb-col { display: flex; align-items: flex-end; }
.vb-col i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 1px 1px; background: color-mix(in srgb, var(--brand) 45%, transparent); transition: background-color .15s; }
.vb:hover .vb-col i { background: var(--brand); }
.vb.on .vb-col i { background: var(--accent); }
.vb-tick { padding-top: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; white-space: nowrap; overflow: visible; }
.vb-tick em { display: block; font-style: normal; font-weight: 800; color: var(--ok); }
.vb.on .vb-tick { color: var(--ink); }
.hb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; align-items: center; gap: 12px; padding: 6px 0; }
.hb-l { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.3; }
.hb-l small, .hb b small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.hb-track { display: flex; height: 12px; overflow: hidden; background: var(--sand); border-radius: 99px; }
.hb-track i { display: block; height: 100%; }
.hb-track i + i { box-shadow: inset 2px 0 0 var(--paper); }
.hb b { font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.legend span, .dlist div { display: inline-flex; align-items: center; gap: 7px; }
.legend i, .dlist i { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.donut { position: relative; display: grid; place-items: center; width: 168px; height: 168px; flex: none; border-radius: 50%; }
.donut > div { display: grid; place-content: center; justify-items: center; gap: 4px; width: 108px; height: 108px; border-radius: 50%; background: var(--paper); }
.donut b { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.donut span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.dlist { display: grid; flex: 1; gap: 10px; min-width: 180px; }
.dlist div { display: flex; font-size: 13.5px; font-weight: 700; }
.dlist b { font-variant-numeric: tabular-nums; }
.dlist small { width: 40px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: right; }
.rc-team { display: grid; gap: 6px; padding: 10px 0; }
.rc-team + .rc-team { border-top: 1px solid var(--hair); }
.rc-team-head { display: flex; align-items: baseline; gap: 8px; }
.rc-team-pct { margin-left: auto; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-team .bar { height: 8px; }
.co-stats { display: grid; gap: 1px; overflow: hidden; background: var(--hair); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hair); }
.co-stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 14px 16px; background: var(--paper); }
.co-stat span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.co-stat b { grid-row: span 2; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.co-stat small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.dtable td { vertical-align: middle; }
.mini { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mini .bar { width: 80px; height: 6px; }

/* ---------- property manager: reports ---------- */
.strip.kpis { grid-template-columns: repeat(6, 1fr); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.bars-title { margin: 18px 0 2px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.card h3 + .bars-title { margin-top: 0; }
.hbar { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .bar { height: 8px; }
.catname { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.rule { margin: -6px 0 14px; }
.grid2.even { grid-template-columns: 1fr 1fr; align-items: stretch; }

/* ---------- login ---------- */
.login-card { position: relative; width: 100%; max-width: 420px; margin: 28px auto 0; padding: 36px 28px 26px; overflow: hidden; }
.login-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ribbon); }
.login-head { display: grid; gap: 4px; margin-bottom: 6px; }
.login-head .mark { margin-bottom: 18px; }
.login-head h2 { font-size: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border: 0; border-radius: 99px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 700; transition: box-shadow .16s, transform .12s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.chip:active { transform: scale(.96); }
.field-hint { display: block; margin-top: 7px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--ink-3); }
.field-hint b { font-weight: 800; color: var(--ink-2); }
.err a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.screen .login { padding-top: 12px; }

/* ---------- modal, toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: 56px 16px; background: rgba(35, 31, 32, .42); backdrop-filter: blur(3px); }
.modal { position: relative; max-width: 560px; margin: 0 auto; padding: 30px 26px 26px; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--float); }
.modal::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--ribbon); }
.modal .dhead { padding-right: 40px; }
.x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; background: var(--cream); border: 0;
  border-radius: 50%; color: var(--ink-2); transition: background-color .16s; }
.x:hover { background: var(--sand); color: var(--ink); }
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px;
  background: var(--ink); color: #fff; border-radius: 99px; box-shadow: var(--float); font-size: 13.5px; font-weight: 700; transform: translateX(-50%); }
.toast .i { color: var(--brand); stroke-width: 2.5; }

/* ---------- motion: only when a screen, modal or toast is new ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
main.enter > :not(.phone), main.enter .screen > * { animation: rise .34s var(--ease) both; }
main.enter .screen > :nth-child(2), main.enter > :nth-child(2) { animation-delay: 30ms; }
main.enter .screen > :nth-child(3), main.enter > :nth-child(3) { animation-delay: 60ms; }
main.enter .screen > :nth-child(4), main.enter > :nth-child(4) { animation-delay: 90ms; }
main.enter .screen > :nth-child(5), main.enter > :nth-child(5) { animation-delay: 120ms; }
main.enter .screen > :nth-child(n+6), main.enter > :nth-child(n+6) { animation-delay: 150ms; }
main.enter .done-mark { animation: pop .5s var(--ease) both .1s; }
.overlay.enter { animation: fade .2s ease-out both; }
.overlay.enter .modal { animation: pop .3s var(--ease) both; }
.toast.enter { animation: toast-in .32s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .top { grid-template-columns: auto auto; justify-content: space-between; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 4px -12px 0; }
}
@media (max-width: 1040px) {
  .split, .grid2, .grid2.even { grid-template-columns: 1fr; }
  .split .action { position: static; order: -1; }
  .kpis5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .strip.kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  main { gap: 16px; padding: 16px 16px 48px; }
  .top { padding: 14px 16px 6px; gap: 4px 12px; }
  .brand-app, .demo-tag { display: none; }
  .demo { gap: 4px; }
  .demo .btn.sm { padding: 0 9px; }
  h1 { font-size: 23px; }
  .card { padding: 18px 16px; }
  .phone { display: block; width: auto; height: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; zoom: 1; }
  .statusbar, .home-bar { display: none; }
  .screen { padding: 0 0 24px; overflow: visible; }
  .screen .gtop { position: static; margin: 0 0 18px; padding: 0; background: none; box-shadow: none; }
  .rc-submit { margin: 14px 0 -24px; padding: 14px 0 16px; }
  .phone.has-nav { padding-bottom: 72px; }
  .tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; padding: 6px 14px calc(8px + env(safe-area-inset-bottom)); }
  body:has(.tabbar) .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .zone { scroll-margin-top: 120px; }
  .welcome-art { margin: 0; }
  .strip, .strip.kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 24px; }
  .hb { grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 8px; }
  .vbars { gap: 2px; }
  .donut-wrap { justify-content: center; }
  .strip b { font-size: 24px; }
  .searchbox.sm { width: 100%; order: 3; }
  .login-card { margin-top: 4px; padding: 32px 20px 22px; }
  .kv { grid-template-columns: 96px 1fr; }
}

/* ---------- hotel list (landing.js), at / ---------- */
.landing { display: grid; gap: 28px; max-width: 760px; margin: 0 auto; padding: 64px 20px 48px; }
.land-head h1 { margin-top: 6px; }
.land-head .muted { max-width: 62ch; margin-top: 10px; font-size: 15px; }
.land-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--alert-wash); color: var(--alert-ink); font-size: 13px; }
.land-grid { display: grid; gap: 14px; }
.land-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; color: inherit; text-decoration: none;
  transition: box-shadow .2s var(--ease), transform .12s var(--ease); }
.land-card:hover { box-shadow: var(--lift-hi); }
.land-card:active { transform: scale(.99); }
.land-card b { display: block; font-size: 17px; }
.land-card .small { display: block; margin-top: 2px; }
.land-blurb { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.land-mono { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--w);
  box-shadow: inset 0 0 0 1.5px var(--c); color: var(--c); font: 400 26px/1 Georgia, serif; }
.land-go { flex: none; font-weight: 800; color: var(--c); white-space: nowrap; }
.land-foot { text-align: center; }
@media (max-width: 640px) {
  .landing { padding-top: 36px; }
  .land-card { flex-wrap: wrap; }
  .land-go { margin-left: 68px; }
}
