/* BOOK-X BID
   Idea: the roadside motel sign. One loud element, the marquee price board with its ring of
   bulbs, carries the excitement. Everything around it is plain concrete and paper.
   Tokens: asphalt #1B2333, concrete #EEF1F4, pool #0B7F7F, marquee #F6B23C, flamingo #E04E7B, go #22804A */

@font-face { font-family: "Bowlby One"; src: url("../fonts/bowlby-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --asphalt: #1B2333;
  --asphalt-2: #252F44;
  --asphalt-3: #36425C;
  --concrete: #EEF1F4;
  --paper: #FFFFFF;
  --line: #D6DCE3;
  --ink: #1B2333;
  --muted: #5A6475;
  --pool: #0B7F7F;           /* white text on it passes WCAG AA (4.8:1) */
  --pool-deep: #08696A;
  --pool-wash: #E1F2F1;
  --amber: #F6B23C;
  --amber-hot: #FFD27A;
  --amber-wash: #FDF1D9;
  --flamingo: #E04E7B;
  --flamingo-deep: #C93766;   /* count badges with white text (5:1) */
  --flamingo-wash: #FBE5EC;
  --go: #22804A;              /* readable as text on white (4.9:1) */
  --go-wash: #E2F3E8;
  --warn-wash: #FFF4DA;
  --bad: #C2384A;
  --bad-wash: #FBE6E8;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;   /* the sign face: logo, prices, clocks, numbers */
  --head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;  /* headlines */
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 0 rgba(27, 35, 51, .06), 0 8px 24px -16px rgba(27, 35, 51, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font: 400 16px/1.55 var(--sans); font-feature-settings: "tnum" 1;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--pool-deep); text-underline-offset: 2px; }
a:hover { color: var(--pool); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
code { font-size: .9em; background: var(--concrete); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; word-break: break-word; }
.card { min-width: 0; }
[hidden] { display: none !important; }

/* ---------- Type scale (1.25) ---------- */
.display { font: 800 clamp(2.6rem, 6vw, 4.5rem)/1 var(--head); letter-spacing: -.03em; margin: 0; }
.h1 { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1.08 var(--head); margin: 0; letter-spacing: -.025em; }
.h2 { font: 800 1.56rem/1.2 var(--sans); margin: 0; letter-spacing: -.01em; }
.h3 { font: 700 1.25rem/1.3 var(--sans); margin: 0; display: flex; align-items: center; gap: 8px; }
.h4 { font: 700 1rem/1.4 var(--sans); margin: 0; }
.h-sub { font: 500 1rem var(--sans); }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 36em; margin: 0; }
.lede-sm { font-size: 1.05rem; max-width: 42em; margin: 0; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.muted-inv { color: #AEB8CB; }
.on-dark { color: #fff; }
.on-dark-muted { color: #C5CDDB; }
.ok-text { color: var(--go); font-weight: 700; }
p { margin: 0; }
.display, .h1, .h2 { text-wrap: balance; }
.nw { white-space: nowrap; }
.prose p { margin: 0 0 1em; max-width: 68ch; }
.prose h2 { margin: 1.6em 0 .5em; }

/* ---------- Layout ---------- */
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.page { padding: 28px 0 64px; display: flex; flex-direction: column; gap: 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; gap: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.grid.top { align-items: start; }
.grid.center { align-items: center; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.page-head.row { flex-direction: row; }
.pad { padding: 14px; }
.pad-x { padding: 6px 14px 10px; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card > .h3 .i { color: var(--pool); }
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); background: var(--go-wash); border: 1px solid #BFE3CC; margin-top: 14px; }
.alert.bad { background: var(--bad-wash); border-color: #F0C1C7; color: #7D1F2C; }
.alert.warn { background: var(--warn-wash); border-color: #F3D9A0; color: #6B4B05; }
.page > .alert { margin-top: 0; }
.note { background: var(--amber-wash); padding: 12px 14px; border-radius: var(--r-sm); }

/* ---------- Icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .95rem/1 var(--sans); padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--pool); border-color: var(--pool); color: #fff; }
.btn.primary:hover { background: var(--pool-deep); border-color: var(--pool-deep); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: var(--amber-hot); border-color: var(--amber-hot); }
.btn.pink { background: var(--flamingo-deep); border-color: var(--flamingo-deep); color: #fff; }
.btn.pink:hover { filter: brightness(1.05); color: #fff; }
.btn.go { background: var(--go); border-color: var(--go); color: #fff; }
.btn.go:hover { filter: brightness(1.06); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost-inv:hover { border-color: #fff; color: #fff; }
.btn.danger { color: var(--bad); border-color: #EDB9C0; }
.btn.danger:hover { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: .85rem; }
@media (pointer: coarse), (max-width: 700px) { .btn.sm { min-height: 38px; padding: 8px 14px; } .seg-tabs a, .seg-tabs button { min-height: 38px; } }
.btn.lg { padding: 14px 22px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--pool-deep); font: 600 .85rem var(--sans); cursor: pointer; text-decoration: underline; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; position: relative;
  border: 1.5px solid transparent; background: transparent; color: inherit; cursor: pointer; list-style: none;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn.sm { width: 34px; height: 34px; border-color: var(--line); background: var(--paper); color: var(--ink); }
.icon-btn.sm:hover { border-color: var(--ink); }
.icon-btn::-webkit-details-marker { display: none; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
  font: 500 1rem var(--sans); color: var(--ink); width: 100%;
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  min-height: 44px;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pool); box-shadow: 0 0 0 3px var(--pool-wash); }
input:disabled { background: var(--concrete); color: var(--muted); }
input[readonly] { background: var(--concrete); font-size: .85rem; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--pool); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 6px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.sm-in { min-height: 34px; padding: 6px 8px; font-size: .9rem; width: 120px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; flex-direction: row; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; transition: background .12s, border-color .12s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span, .chip.on span { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.chips.static .chip span { background: var(--paper); }
.chip-mini { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--concrete); color: var(--muted); }
.chip-mini.on { background: var(--pool-wash); color: var(--pool-deep); }

.tag { display: inline-block; font: 700 .72rem/1.5 var(--sans); padding: 1px 8px; border-radius: 999px; background: var(--concrete); color: var(--muted); font-style: normal; vertical-align: middle; }
.tag.amber { background: var(--amber); color: var(--ink); }
.tag.pink { background: var(--flamingo-wash); color: #A02653; }
.tag.go { background: var(--go-wash); color: #1E6B3E; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--concrete); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ph-bidding { background: var(--amber-wash); color: #8A5A00; }
.ph-choosing { background: var(--flamingo-wash); color: #A02653; }
.ph-booked { background: var(--pool-wash); color: var(--pool-deep); }
.ph-confirmed { background: var(--go-wash); color: #1E6B3E; }
.ph-fail { background: var(--bad-wash); color: var(--bad); }
.ph-expired, .ph-cancelled { background: #ECEEF1; color: #525B6B; }

/* ---------- Top bar ---------- */
.topbar { background: var(--asphalt); color: #fff; position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.logo { font: 400 1.35rem/1 var(--display); color: #fff; text-decoration: none; letter-spacing: .01em; }
.logo .b1 { color: var(--amber); }
.logo .b2 { color: #fff; }
.logo .b3 { color: rgba(255, 255, 255, .6); }
.logo.big .b1, .logo.sm .b1 { color: #C98712; }
.logo.big .b2, .logo.sm .b2 { color: var(--ink); }
.logo.big .b3, .logo.sm .b3 { color: var(--muted); }
.logo:hover { color: #fff; }
.logo.big { font-size: 2rem; color: var(--ink); }
.logo.sm { font-size: 1rem; color: var(--ink); }
.nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; padding-bottom: 8px; }
.nav::-webkit-scrollbar { display: none; }
@media (max-width: 899px) { .nav.scrolls { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } .nav.scrolls.at-end { -webkit-mask-image: none; mask-image: none; } }
.nav a { color: #C5CDDB; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: #fff; background: var(--asphalt-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--amber); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0; padding: 0; }
}
.pts { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--asphalt-2); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }
.pts .i { color: var(--amber); }
.pts:hover { color: #fff; background: var(--asphalt-3); }
.pts-lvl { color: #AEB8CB; font-weight: 600; font-size: .8rem; display: none; }
@media (min-width: 560px) { .pts-lvl { display: inline; } }
.pts.bump { animation: bump .6s ease; }
@keyframes bump { 30% { transform: scale(1.15); background: var(--amber); color: var(--ink); } }
.dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--flamingo-deep); color: #fff; font: 800 .7rem/18px var(--sans); text-align: center; }
.bell-wrap, .menu { position: relative; }
.panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--paper); color: var(--ink); border-radius: var(--r); box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); border: 1px solid var(--line); z-index: 50; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif { display: block; padding: 12px 14px; border-bottom: 1px solid var(--concrete); color: var(--ink); text-decoration: none; }
.notif:hover { background: var(--concrete); color: var(--ink); }
.notif.unread { background: #FFFBF1; box-shadow: inset 3px 0 0 var(--amber); }
.notif b { display: block; font-size: .92rem; }
.notif span { display: block; font-size: .84rem; color: var(--muted); }
.menu-panel { width: 240px; padding: 8px 0; }
.menu-panel a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--concrete); }
.menu summary { color: #fff; }
.topbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.topbar .btn.ghost:hover { border-color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 22px 0; }
.foot-in { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 0; display: inline-block; }
.foot nav a:hover { color: var(--ink); }

/* ---------- Marquee (the one loud element) ---------- */
.marquee {
  position: relative; border-radius: var(--r-lg); padding: 14px; background: var(--asphalt-2);
  box-shadow: 0 30px 60px -30px rgba(27, 35, 51, .7);
}
.marquee { --bulb: var(--amber-hot); --glow: rgba(246, 178, 60, .35); }
.marquee.won { --bulb: #B8F5CF; --glow: rgba(44, 154, 90, .45); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-size: 28px 28px; background-repeat: round; opacity: .5;
}
.marquee::before {
  background-image: radial-gradient(circle at 25% 25%, var(--bulb) 0 2.4px, var(--glow) 3.4px, transparent 5px),
                    radial-gradient(circle at 75% 75%, var(--bulb) 0 2.4px, var(--glow) 3.4px, transparent 5px);
}
.marquee::after {
  background-image: radial-gradient(circle at 75% 25%, var(--bulb) 0 2.4px, var(--glow) 3.4px, transparent 5px),
                    radial-gradient(circle at 25% 75%, var(--bulb) 0 2.4px, var(--glow) 3.4px, transparent 5px);
}
.marquee.live::before { animation: bulbs 1.2s linear infinite; }
.marquee.live::after { animation: bulbs 1.2s linear infinite reverse; }
.marquee.won::before, .marquee.won::after { opacity: 1; }
@keyframes bulbs { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
.marquee-in { position: relative; z-index: 1; background: var(--asphalt); border-radius: 12px; color: #fff; padding: 22px; }
.code { width: fit-content; align-self: flex-start; font: 700 .8rem/1 var(--sans); letter-spacing: .04em; color: #7A4F00; background: var(--amber-wash); padding: 5px 8px; border-radius: 6px; display: inline-block; }
.marquee .code, .guest-card .code { color: var(--amber); background: rgba(246, 178, 60, .14); }
.price-xl { font: 400 clamp(3rem, 9vw, 5.2rem)/.95 var(--display); color: var(--amber); letter-spacing: -.02em; display: inline-block; }
.price-xl small { font: 700 1rem var(--sans); color: #AEB8CB; letter-spacing: 0; margin-left: 4px; }
.price-xl.tick { animation: tick .7s ease; }
@keyframes tick { 0% { transform: translateY(-8px); color: #fff; } 100% { transform: none; } }

/* ---------- Home ---------- */
.home { display: block; }
.hero { background: var(--asphalt); color: #fff; padding: 48px 0 64px; overflow: hidden; }
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.05fr .95fr; } }
.hero .lede { color: #D3DAE6; }
.hero-meta { color: #AEB8CB; font-size: .95rem; }
.hero-meta b { color: var(--amber); }
.demo-sign { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-sign figcaption { color: #8D98AD; text-align: right; }
.demo-req { display: flex; flex-direction: column; gap: 4px; }
.demo-req > span:nth-child(2) { font-weight: 700; font-size: 1.1rem; }
.demo-price { display: flex; flex-direction: column; margin: 18px 0 8px; }
.demo-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.demo-feed li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--asphalt-2); font-size: .92rem; animation: drop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.demo-feed li b { color: var(--amber); }
.demo-feed li.you { background: rgba(224, 78, 123, .18); }
.demo-feed li.you b { color: #FF9EBC; }
.demo-feed li.deal { background: rgba(44, 154, 90, .25); }
.demo-feed li.deal b { color: #9BE8B9; }
@keyframes drop { from { transform: translateY(-10px) scale(.98); opacity: 0; } }
.demo-status { margin-top: 14px; font-weight: 700; color: #C5CDDB; }

.ticker { background: var(--amber); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-track { display: inline-flex; gap: 40px; animation: scroll 50s linear infinite; padding-left: 20px; }
.tick { font-weight: 600; }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 64px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.mode-cards { display: grid; gap: 16px; margin-top: 10px; }
@media (min-width: 860px) { .mode-cards { grid-template-columns: 1.25fr 1fr 1fr; } }
.mode-card { background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mode-card.featured { border: 2px solid var(--asphalt); box-shadow: 8px 8px 0 var(--amber); }
.mode-card .tag { align-self: flex-start; }
.mode-card .example { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .92rem; }

.flow { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; counter-reset: f; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { counter-increment: f; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 18px 0; position: relative; border-top: 3px solid var(--asphalt); }
.flow li::before { content: counter(f); font: 400 1.9rem/1 var(--display); color: var(--pool); margin-bottom: 4px; }
.flow li span { color: var(--muted); font-size: .94rem; }

.desk-pitch { background: var(--asphalt); margin-top: 64px; padding: 56px 0; }
.desk-pitch .card { color: var(--ink); }
.pay-strip { padding-bottom: 64px; }

/* ---------- Segmented tabs ---------- */
.seg-tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; align-self: flex-start; }
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs a, .seg-tabs button { white-space: nowrap; flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font: 700 .9rem var(--sans); border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg-tabs a[aria-selected="true"], .seg-tabs a[aria-current="page"], .seg-tabs button[aria-selected="true"] { background: var(--asphalt); color: #fff; }
.seg-tabs .count { background: var(--flamingo-deep); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .75rem; line-height: 18px; }
.seg-tabs [aria-selected="true"] .count { background: var(--amber); color: var(--ink); }

/* ---------- Request form ---------- */
.req-form { display: flex; flex-direction: column; gap: 18px; }
.nights-out { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--concrete); align-self: end; min-height: 44px; font-weight: 600; }
.big-num { font: 400 1.8rem/1 var(--display); color: var(--pool); }
.steppers { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .steppers { grid-template-columns: repeat(4, 1fr); } }
.stepper { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.stepper-label { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.stepper-ctl { display: flex; align-items: center; gap: 6px; }
.stepper-ctl input { text-align: center; font-weight: 800; font-size: 1.15rem; padding: 6px; min-height: 38px; -moz-appearance: textfield; }
.stepper-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.modes { display: grid; gap: 10px; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode-tile { position: relative; border: 2px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; gap: 6px; font-weight: 500; transition: border-color .12s, background .12s; }
.mode-tile input { position: absolute; opacity: 0; }
.mode-tile:hover { border-color: var(--ink); }
.mode-tile:has(input:checked) { border-color: var(--asphalt); background: var(--asphalt); color: #fff; box-shadow: 6px 6px 0 var(--amber); }
.mode-tile:has(input:checked) .mode-desc { color: #C5CDDB; }
.mode-tile:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.mode-tile.is-on { border-color: var(--asphalt); background: var(--asphalt); color: #fff; box-shadow: 6px 6px 0 var(--amber); }
.mode-tile.is-on .mode-desc { color: #C5CDDB; }
.mode-name { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mode-desc { color: var(--muted); font-size: .92rem; }
.target-row { display: grid; gap: 10px; align-items: end; }
@media (min-width: 720px) { .target-row { grid-template-columns: 260px 1fr; } }
.money-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.money-in:focus-within { border-color: var(--pool); box-shadow: 0 0 0 3px var(--pool-wash); }
.money-in > span { padding: 0 4px 0 14px; font: 400 1.6rem var(--display); color: var(--pool); }
.money-in input { border: 0; box-shadow: none !important; font: 400 1.6rem var(--display); padding: 8px 8px 8px 2px; }
.submit-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--asphalt); color: #fff; padding: 14px 18px; border-radius: var(--r); margin-bottom: 12px; }
.summary { font-weight: 600; color: #D3DAE6; font-size: .95rem; }
.summary b { color: var(--amber); }

/* ---------- Request list ---------- */
.req-list { display: flex; flex-direction: column; gap: 10px; }
.req-row { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; text-decoration: none; color: var(--ink); padding: 16px 18px; }
.req-row:hover { border-color: var(--ink); color: var(--ink); }
.req-row.phase-bidding { box-shadow: inset 4px 0 0 var(--amber), var(--shadow); }
.req-row.phase-choosing { box-shadow: inset 4px 0 0 var(--flamingo), var(--shadow); }
.req-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.req-city { font-size: 1.1rem; }
.req-side { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-best b { font: 400 1.3rem var(--display); color: var(--pool); }
.countdown { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Guest board ---------- */
.board { display: flex; flex-direction: column; gap: 20px; }
.board-top { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .board-top { grid-template-columns: 1.25fr .75fr; } }
.mq-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.mq-trip { display: flex; flex-direction: column; gap: 6px; }
.mq-trip h1 { font: 800 1.45rem/1.2 var(--sans); margin: 0; color: #fff; }
.mq-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #C5CDDB; font-size: .92rem; }
.mq-facts span { display: inline-flex; align-items: center; gap: 5px; }
.mq-facts .i { color: var(--amber); }
.mq-mode { background: rgba(255,255,255,.08); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.mq-score { display: grid; gap: 18px; margin-top: 22px; align-items: end; }
@media (min-width: 620px) { .mq-score { grid-template-columns: auto 1fr; } }
.mq-best { display: flex; flex-direction: column; gap: 4px; }
.mq-best .lbl { color: #AEB8CB; font-weight: 600; font-size: .9rem; }
.mq-side { display: flex; flex-direction: column; gap: 10px; }
.meter { height: 10px; border-radius: 999px; background: var(--asphalt-3); overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--flamingo), var(--amber)); border-radius: inherit; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter-cap { display: flex; justify-content: space-between; font-size: .82rem; color: #AEB8CB; }
.mq-clock { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--asphalt-3); flex-wrap: wrap; }
.clock-big { font: 400 2rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.clock-big.hot { color: var(--flamingo); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.mq-clock .what { color: #C5CDDB; font-weight: 600; }

.side-card { display: flex; flex-direction: column; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: .94rem; }
.facts li:last-child { border-bottom: 0; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 600; }

.offers { display: flex; flex-direction: column; gap: 12px; }
.offers-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; position: relative; grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
.offer > .o-price { grid-column: 1 / -1; }
@media (max-width: 759px) { .offer .rank { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; } }
@media (min-width: 760px) { .offer { grid-template-columns: 44px 1fr auto; } .offer > .o-price { grid-column: auto; } }
.offer.best { border-color: var(--asphalt); box-shadow: 6px 6px 0 var(--amber); }
.offer.won { border-color: var(--go); box-shadow: 6px 6px 0 var(--go); }
.offer.dim { background: #F3F5F7; filter: grayscale(.9); }
.offer.fresh { animation: land .7s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes land { from { transform: translateY(-14px) scale(.97); opacity: 0; } }
.offer.flash { animation: flash 1.2s ease; }
@keyframes flash { 20% { background: var(--amber-wash); } }
.rank { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 400 1.15rem var(--display); background: var(--concrete); color: var(--muted); }
.offer.best .rank { background: var(--amber); color: var(--ink); }
.offer.won .rank { background: var(--go); color: #fff; }
.o-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.o-hotel { font-weight: 800; font-size: 1.1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.o-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .88rem; }
.o-meta span { display: inline-flex; gap: 4px; align-items: center; }
.stars { color: var(--amber); display: inline-flex; gap: 1px; }
.stars .i { width: 14px; height: 14px; fill: currentColor; }
.o-room { font-weight: 600; }
.o-msg { font-size: .92rem; color: var(--muted); font-style: italic; }
.o-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (min-width: 760px) { .o-price { align-items: flex-end; text-align: right; } }
.o-price .now { font: 400 2.2rem/1 var(--display); color: var(--ink); }
.offer.best .o-price .now { color: var(--pool-deep); }
.o-price .was { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.o-price .save { color: var(--go); font-weight: 700; font-size: .88rem; }
.o-actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; align-items: center; padding-top: 12px; border-top: 1px solid var(--concrete); }
.trail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
.trail .step { padding: 3px 9px; border-radius: 999px; background: var(--concrete); font-weight: 600; color: var(--muted); }
.trail .step.guest { background: var(--flamingo-wash); color: #A02653; }
.trail .step.hotel { background: var(--pool-wash); color: var(--pool-deep); }
.trail .step.deal { background: var(--go-wash); color: #1E6B3E; }
.trail .arrow { color: #A6AEBB; }
.waiting { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: #A02653; background: var(--flamingo-wash); padding: 8px 12px; border-radius: 999px; font-size: .9rem; }

.booking { border-radius: var(--r); padding: 20px; background: var(--paper); border: 2px solid var(--pool); display: flex; flex-direction: column; gap: 14px; }
.booking.confirmed { border-color: var(--go); background: linear-gradient(180deg, var(--go-wash), #fff 60%); }
.booking.overdue { border-color: var(--flamingo); }
.booking-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.booking-steps li { padding-top: 10px; border-top: 4px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); }
.booking-steps li.on { border-color: var(--go); color: var(--ink); }
.booking-steps li.now { border-color: var(--pool); color: var(--ink); }
.conf-no { font: 400 1.6rem var(--display); color: var(--go); white-space: nowrap; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.rate-stars { display: flex; gap: 4px; }
.rate-stars button { background: none; border: 0; cursor: pointer; padding: 2px; color: #C9CFD8; }
.rate-stars button .i { width: 30px; height: 30px; }
.rate-stars button.on { color: var(--amber); }
.rate-stars button.on .i { fill: currentColor; }

/* ---------- Desk ---------- */
.desk { display: flex; flex-direction: column; gap: 20px; }
.desk-head { display: grid; gap: 16px; }
@media (min-width: 900px) { .desk-head { grid-template-columns: 1fr auto; align-items: end; } }
.desk-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.desk-stats .dstat:first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .desk-stats { grid-template-columns: repeat(5, 1fr); } .desk-stats .dstat:first-child { grid-column: auto; } }
.dstat { background: var(--asphalt); color: #fff; border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.dstat b { font: 400 1.5rem/1.1 var(--display); color: var(--amber); display: flex; align-items: center; gap: 6px; }
.dstat span { font-size: .8rem; color: #AEB8CB; font-weight: 600; }
.dstat .xp { margin-top: 6px; }
.desk-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reqs { display: grid; gap: 14px; }
@media (min-width: 820px) { .reqs { grid-template-columns: repeat(2, 1fr); } }
.rq { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rq.fresh { animation: land .7s cubic-bezier(.2, .9, .3, 1.25) both; border-color: var(--amber); }
.rq.urgent { border-color: var(--flamingo); }
.rq-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rq-clock { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.rq-clock b { font: 400 1.4rem/1 var(--display); font-variant-numeric: tabular-nums; }
.rq-clock b.hot { color: var(--flamingo); }
.rq-title { font-weight: 800; font-size: 1.1rem; }
.rq-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: .9rem; }
.rq-facts div { background: var(--concrete); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; }
.rq-facts div span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.rq-target { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--asphalt); color: #fff; border-radius: var(--r-sm); padding: 10px 12px; }
.rq-target b { font: 400 1.6rem/1 var(--display); color: var(--amber); }
.rq-target span { color: #C5CDDB; font-size: .9rem; }
.rq-warn { color: #8A5A00; background: var(--warn-wash); padding: 8px 10px; border-radius: var(--r-sm); font-size: .88rem; font-weight: 600; }
.rq-guest { font-size: .88rem; color: var(--muted); }
.rq-guest .i { margin-right: 4px; }
.mine-price { display: flex; flex-direction: column; gap: 2px; }
.mine-price b { font: 400 2.2rem/1 var(--display); }
.mine-rank { font: 400 1.1rem var(--display); }
.mine-rank.lead { color: var(--go); }
.mine-rank.behind { color: var(--flamingo); }
.counter-box { border: 2px solid var(--flamingo); background: var(--flamingo-wash); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.counter-box .gc { font: 400 2rem/1 var(--display); color: #A02653; }
.bk { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; }
.bk.pending, .bk.contacted { border: 2px solid var(--pool); }
.bk.overdue { border-color: var(--flamingo); }
@media (min-width: 820px) { .bk { grid-template-columns: 1.1fr 1fr; } }
.guest-card { background: var(--asphalt); color: #fff; border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.guest-card a { color: var(--amber); font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.guest-card a:hover { color: var(--amber-hot); }
.guest-card .gname { font-weight: 800; font-size: 1.2rem; }

/* ---------- Rewards ---------- */
.level-card { background: var(--asphalt); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 720px) { .level-card { grid-template-columns: 120px 1fr; } }
.level-badge { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); box-shadow: 0 0 0 8px rgba(246,178,60,.2), 0 0 0 16px rgba(246,178,60,.08); }
.level-badge span { font: 400 3rem var(--display); color: var(--ink); }
.xp { height: 12px; border-radius: 999px; background: var(--asphalt-3); overflow: hidden; }
.xp i { display: block; height: 100%; background: var(--amber); border-radius: inherit; transition: width 1s ease; }
.ladder { list-style: none; padding: 0; margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.ladder li { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--asphalt-2); color: #8D98AD; font-size: .82rem; font-weight: 700; }
.ladder li small { font-weight: 600; }
.ladder li.on { background: rgba(246,178,60,.18); color: var(--amber); }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font: 400 1.6rem/1.1 var(--display); display: flex; gap: 6px; align-items: center; }
.stat b .i { color: var(--flamingo); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.badge-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.badge-card.locked { background: transparent; border-style: dashed; }
.badge-card.locked .medal { background: #E2E6EB; color: #9AA3B1; box-shadow: none; }
.medal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); margin-bottom: 6px; box-shadow: 0 0 0 4px var(--amber-wash); }
.medal .i { width: 22px; height: 22px; }
.ledger { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ledger li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--concrete); }
.ledger li:last-child { border-bottom: 0; }
.ledger .pos { color: var(--go); white-space: nowrap; }
.ledger .neg { color: var(--bad); white-space: nowrap; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.board-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--concrete); }
.board-list li:last-child { border-bottom: 0; }
.board-list li.me { background: var(--amber-wash); border-radius: 10px; padding-inline: 8px; }
.board-list .who { display: flex; flex-direction: column; min-width: 0; }
.pos-n { font: 400 1.1rem var(--display); color: var(--muted); text-align: center; }
.pos-n .i { color: var(--amber); width: 24px; height: 24px; }

/* ---------- Tables ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) { .table-wrap .tbl { min-width: 640px; } .table-wrap { box-shadow: inset -12px 0 10px -10px rgba(27, 35, 51, .18); } }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--concrete); vertical-align: top; }
.tbl .trunc { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.api-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; flex-direction: column; padding-left: 28px; position: relative; }
.checks li::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #fff; }
.checks li.ok::before { content: "✓"; background: var(--go); }
.checks li.bad::before { content: "!"; background: var(--bad); }
.steps-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
body.plain { background: var(--concrete); }

/* ---------- Auth ---------- */
.auth { max-width: 460px; margin: 20px auto 0; width: 100%; }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(460px, calc(100% - 24px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); color: var(--ink); }
dialog.modal::backdrop { background: rgba(27, 35, 51, .6); }
.modal-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 700 .85rem var(--sans); cursor: pointer; }
.quick button:hover { border-color: var(--ink); }
.modal .hint { font-size: .88rem; color: var(--muted); }

/* ---------- Toasts and effects ---------- */
.toasts { position: fixed; right: 14px; bottom: 14px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100% - 28px)); }
.toast { background: var(--asphalt); color: #fff; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); animation: rise .3s ease both; border-left: 4px solid var(--amber); cursor: pointer; }
.toast b { display: block; }
.toast span { color: #C5CDDB; font-weight: 500; font-size: .86rem; }
.toast.bad { border-left-color: var(--flamingo); }
.toast.go { border-left-color: var(--go); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .foot, .toasts, #fx, .submit-bar { display: none; } }

/* ---------- v1.1: sign-up steps, suggestions, quick start ---------- */
.span2 { grid-column: 1 / -1; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; padding-top: 8px; border-top: 4px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); }
.mini-steps li::before { content: counter(ms) ". "; }
.mini-steps li.on { border-color: var(--go); color: var(--ink); }
.mini-steps li.now { border-color: var(--pool); color: var(--ink); }
.otp-in { font: 400 2rem/1 var(--display); letter-spacing: .4em; text-align: center; padding: 14px 8px; }
.ac-wrap { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r-sm); box-shadow: 0 18px 40px -18px rgba(27,35,51,.5); z-index: 30; max-height: 280px; overflow-y: auto; }
.ac-list li { padding: 9px 10px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--ink); font-size: .95rem; }
.ac-list li span { color: var(--muted); font-size: .85rem; }
.ac-list li:hover, .ac-list li[aria-selected="true"] { background: var(--amber-wash); }
/* Home search: the city box always gets a full row so 3+ letters (and long town names) stay readable. */
.quick-start { display: grid; gap: 12px 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 16px; align-items: end; }
.quick-start .qs-city, .quick-start .btn { grid-column: 1 / -1; }
@media (max-width: 359px) { .quick-start { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) { .quick-start { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .quick-start .btn { grid-column: auto; } }
.quick-start .qs-city > label, .quick-start label.qs-city { font-size: 1rem; font-weight: 700; color: #fff; }
.quick-start .qs-city input { min-height: 56px; font-size: 1.1rem; }
.quick-start label { color: #D3DAE6; font-size: .85rem; }
.quick-start input { background: #fff; }
.hero-meta a.on-amber { color: var(--amber); font-weight: 700; }
.active-block { border: 2px solid var(--asphalt); box-shadow: 8px 8px 0 var(--amber); }

/* ---------- v1.1: maps ---------- */
.gmap { width: 100%; border-radius: var(--r-sm); background: #DDE3E9; overflow: hidden; }
.board-map { height: 340px; }
@media (min-width: 1000px) { .board-map { height: 460px; } }
.pin-map { height: 280px; }
.pin-map.tall { height: 380px; }
.map-failed { display: none; }
.map-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lgd { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); display: inline-block; }
.lgd.best { background: var(--amber); } .lgd.live { background: var(--asphalt); } .lgd.hot { background: var(--flamingo); } .lgd.won { background: var(--go); } .lgd.you { background: var(--pool); }
.map-pin { font: 400 .95rem/1 var(--display); padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--asphalt); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); position: relative; white-space: nowrap; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.map-pin.tone-best { background: var(--amber); color: var(--ink); }
.map-pin.tone-hot { background: var(--flamingo); }
.map-pin.tone-won { background: var(--go); }
.map-pin.tone-dim { background: #C9CFD8; color: var(--asphalt-3); }
.map-pin.tone-you { background: var(--pool); font: 700 .8rem/1 var(--sans); }
.iw { font-family: var(--sans); color: var(--ink); max-width: 290px; }
.iw-in { display: flex; flex-direction: column; gap: 6px; }
.iw-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 1rem; }
.iw-price .now { font: 400 1.7rem/1 var(--display); }
.iw-price .was { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.iw-acts { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin-top: 4px; }
.iw-acts .btn { width: 100%; }
.iw-acts .waiting { border-radius: 10px; }
.iw-acts .small { text-align: center; }

/* ---------- v1.1: admin email ---------- */
.ev-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
.ev-grid label.check { font-size: .88rem; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--pool-deep); }
.howto[open] summary { margin-bottom: 8px; }
.smtp-log { background: var(--asphalt); color: #C5CDDB; padding: 12px; border-radius: var(--r-sm); font-size: .78rem; max-height: 240px; overflow: auto; white-space: pre-wrap; }

/* ---------- v1.2: alerts, notes ---------- */
.alerts-bar { background: var(--amber); color: var(--ink); }
.alerts-in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; }
.alerts-in p { flex: 1; min-width: 240px; font-size: .92rem; }
.alerts-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--asphalt); color: var(--amber); display: grid; place-items: center; flex: none; animation: ring 2.4s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.alerts-note { display: block; font-weight: 600; margin-top: 2px; }
.alerts-note:empty { display: none; }
.alerts-bar .btn.ghost-inv { color: var(--ink); border-color: rgba(27,35,51,.35); }
.alerts-bar .btn.ghost-inv:hover { border-color: var(--ink); color: var(--ink); }
.menu-btn { display: flex; gap: 8px; align-items: center; width: 100%; padding: 10px 14px; background: none; border: 0; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.menu-btn:hover { background: var(--concrete); }
.o-note { font-size: .92rem; background: var(--pool-wash); color: var(--ink); border-radius: var(--r-sm); padding: 8px 10px; }
.o-note .i { color: var(--pool-deep); }
.counter-box .o-note { background: #fff; }
.trail .step .i { width: 12px; height: 12px; vertical-align: -1px; }

/* ---------- v1.3: rooms, photos, online reservations ---------- */
.ready-list .checks li span { display: block; }
.ph-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-grid li { position: relative; border-radius: var(--r-sm); overflow: hidden; background: var(--concrete); aspect-ratio: 4 / 3; }
.ph-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cover { position: absolute; top: 6px; left: 6px; }
.ph-acts { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: space-between; gap: 6px; }
.ph-acts form { margin: 0; }
.ph-acts .btn { background: rgba(255,255,255,.92); }
.up-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.drop { position: relative; flex-direction: row; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; border: 2px dashed var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; font-weight: 600; background: var(--paper); }
.drop:hover, .drop.over { border-color: var(--pool); background: #F2FAFA; }
.drop:focus-within { outline: 3px solid var(--pool); outline-offset: 2px; }
.drop > .i { flex: none; width: 22px; height: 22px; color: var(--pool); }
.drop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 500; }
.drop-txt b { color: var(--pool-deep); }
.drop-files { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; min-height: 0; }
.up-form .btn { flex: none; }
.room-card.dim { background: #F3F5F7; filter: grayscale(.9); }
.room-form { padding-top: 10px; }

.o-photos { display: flex; gap: 4px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; position: relative; margin-bottom: 4px; }
.o-photos { height: clamp(104px, 19vw, 176px); width: 100%; }
.o-photos img { height: 100%; width: auto; object-fit: cover; display: block; flex: 1 1 0; min-width: 0; }
.o-photos[data-n="1"] img { flex: 0 1 300px; border-radius: var(--r-sm); }
.o-photos .more { position: absolute; right: 8px; bottom: 8px; background: rgba(27,35,51,.82); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 999px; }
.o-main .save { color: var(--go); font-weight: 700; font-size: .85rem; }
.iw-photo { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.iw-photo img { width: 100%; height: 120px; object-fit: cover; display: block; }

dialog.gallery { width: min(1080px, calc(100% - 20px)); max-height: calc(100vh - 20px); background: var(--asphalt); color: #fff; }
dialog.gallery .gal-in { display: grid; }
@media (min-width: 860px) { dialog.gallery .gal-in { grid-template-columns: 1fr 320px; } }
.gal-stage { position: relative; background: #0f1520; display: grid; place-items: center; min-height: 260px; }
.gal-stage img { max-width: 100%; max-height: 72vh; display: block; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font: 700 1.6rem/1 var(--sans); cursor: pointer; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-cap { position: absolute; left: 12px; bottom: 10px; margin: 0; background: rgba(15,21,32,.75); padding: 4px 10px; border-radius: 999px; font-size: .85rem; }
.gal-x { position: absolute; top: 10px; right: 10px; }
.gal-side { background: var(--paper); color: var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 80vh; }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.gal-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.gal-thumbs button.on { border-color: var(--amber); }
.gal-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

.reserve-cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--asphalt); color: #fff; border-radius: var(--r); padding: 16px; }
.reserve-cta p { color: #C5CDDB; }
.wait-online { background: var(--warn-wash); border-radius: var(--r-sm); padding: 10px 12px; font-size: .92rem; }
.bk.online { border: 2px solid var(--go); }

.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.res-photos { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .res-photos { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 160px 160px; } .res-photos .rp.big { grid-row: span 2; } }
.rp { position: relative; padding: 0; border: 0; background: var(--concrete); cursor: zoom-in; overflow: hidden; }
.rp img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .rp img { aspect-ratio: auto; } }
.rp .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27,35,51,.6); color: #fff; font-weight: 700; }
.res-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .res-grid { grid-template-columns: minmax(0, 1fr) 360px; } .res-sum { position: sticky; top: 84px; } }
.res-bar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--asphalt); color: #fff; box-shadow: 0 -10px 24px -12px rgba(27, 35, 51, .6); }
.res-bar b { font-size: 1.15rem; } .res-bar .small { color: #AEB8CB; }
.stack-xs { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 960px) { .res-bar { display: none; } }
.stay-dates > div { display: flex; flex-direction: column; gap: 2px; background: var(--concrete); border-radius: var(--r-sm); padding: 12px; }
.stay-dates b { font-size: 1.05rem; }
.steppers:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .steppers:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, 1fr); } }
.sum-lines { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: #D3DAE6; font-size: .95rem; }
.sum-lines li { display: flex; justify-content: space-between; gap: 10px; }
.sum-lines .tot { border-top: 1px solid var(--asphalt-3); padding-top: 8px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.save-inv { color: #9BE8B9; font-weight: 700; }
.policy-text { background: var(--concrete); border-radius: var(--r-sm); padding: 10px 12px; }
.conf-no.big { font-size: 2.4rem; }
.receipt .facts li span:last-child { white-space: normal; }
@media print {
  .no-print, .alerts-bar, .res-photos { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border: 1px solid #999; }
}

/* ======================= Game layer (v1.4) ======================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Header: streak flame and prize box */
.streak-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--asphalt-2); color: var(--amber); text-decoration: none; font-weight: 800; font-size: .9rem; }
.streak-chip .i { width: 17px; height: 17px; fill: currentColor; }
.streak-chip.cold { color: #8D98AD; }
.streak-chip.cold .i { fill: none; }
.streak-chip.bump, .gift-btn.bump { animation: bump .7s ease; }
.gift-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--amber); color: var(--ink); cursor: pointer; animation: wiggle 2.6s ease-in-out infinite; }
.gift-btn .i { width: 20px; height: 20px; }
.gift-btn .dot { top: -4px; right: -4px; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
@media (max-width: 520px) { .pts .pts-lvl { display: none; } .streak-chip { padding: 6px 8px; } }
/* +XP bubble */
.xp-float { position: fixed; z-index: 90; width: 220px; text-align: center; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; animation: xpup 2.3s ease forwards; }
.xp-float b { font: 400 1.6rem/1 var(--display); color: var(--amber); text-shadow: 0 2px 0 var(--asphalt), 0 0 18px rgba(246, 178, 60, .55); }
.xp-float span { font: 700 .78rem/1.2 var(--sans); color: #fff; background: var(--asphalt); padding: 3px 9px; border-radius: 999px; max-width: 220px; }
@keyframes xpup { 0% { transform: translateY(14px) scale(.6); opacity: 0; } 15% { transform: translateY(0) scale(1.08); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
/* Celebrations: level up, badge, grade, streak, prize */
dialog.celebrate { width: min(380px, calc(100% - 24px)); text-align: center; background: var(--asphalt); color: #fff; border: 3px solid var(--amber); }
dialog.celebrate::backdrop { background: rgba(14, 19, 29, .72); }
.cel-in { padding: 28px 22px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cel-in .h2 { color: #fff; }
.cel-in p { color: #C5CDDB; margin: 0; }
.cel-in b { color: #fff; }
.cel-big { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--amber-hot), var(--amber) 60%, #C98612); color: var(--ink);
  font: 400 3.2rem/1 var(--display); box-shadow: 0 0 0 8px rgba(246, 178, 60, .18), 0 0 40px rgba(246, 178, 60, .5); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.cel-big .i { width: 56px; height: 56px; }
.streak .cel-big { display: flex; flex-direction: column; gap: 0; font-size: 2.2rem; background: radial-gradient(circle at 35% 30%, #FFB27A, #F2702E 60%, #B8461A); color: #fff; }
.streak .cel-big .i { width: 44px; height: 44px; fill: #FFD27A; stroke: #FFD27A; }
.cel-big.rare { background: radial-gradient(circle at 35% 30%, #9FE7E4, var(--pool) 65%); color: #fff; }
.cel-big.epic { background: radial-gradient(circle at 35% 30%, #F7B0C7, var(--flamingo) 65%); color: #fff; }
.cel-big.jackpot { background: conic-gradient(from 0deg, var(--amber), var(--flamingo), var(--pool), var(--amber)); color: #fff; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1), spin 6s linear infinite; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes spin { to { filter: hue-rotate(360deg); } }
.prize-box { width: 130px; height: 130px; border-radius: 28px; border: 0; background: var(--amber); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 0 #C98612; animation: wiggle 1.8s ease-in-out infinite; }
.prize-box .i { width: 70px; height: 70px; }
.prize-box.shake { animation: shake .7s ease; }
@keyframes shake { 10%, 50%, 90% { transform: translateX(-6px) rotate(-6deg); } 30%, 70% { transform: translateX(6px) rotate(6deg); } 100% { transform: scale(1.15); opacity: .4; } }
/* Deal grades */
.grade { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--concrete); }
.grade b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 400 .95rem/1 var(--display); color: #fff; background: var(--muted); }
.grade small { font: 700 .7rem/1 var(--sans); color: var(--muted); }
.grade.g-S b, .grade-xl.g-S { background: linear-gradient(135deg, var(--amber), var(--flamingo)); }
.grade.g-A b, .grade-xl.g-A { background: var(--go); }
.grade.g-B b, .grade-xl.g-B { background: var(--pool); }
.grade.g-C b, .grade-xl.g-C { background: var(--muted); }
.grade.g-S { background: var(--amber-wash); }
.grade-xl { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.win-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.win-extras .grade { align-self: center; }
.tag.diamond { background: linear-gradient(135deg, #DDF3FF, #F6E6FF); color: #3B3F99; }
.tag.boost { background: var(--flamingo-deep); color: #fff; }
.tag.first { background: var(--asphalt); color: var(--amber); }
.tag .i { width: 12px; height: 12px; vertical-align: -2px; }
/* Guest: missions and last call */
.missions { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.missions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.missions li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: .9rem; }
.m-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.missions li.done .m-check { background: var(--go); border-color: var(--go); color: #fff; }
.m-check .i { width: 13px; height: 13px; }
.missions li.done .m-txt { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 100, 117, .5); }
.m-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-bar, .g-bar { display: block; height: 6px; border-radius: 999px; background: var(--concrete); overflow: hidden; }
.m-bar i, .g-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pool), var(--amber)); border-radius: inherit; transition: width .6s ease; }
.m-xp { font-weight: 800; font-size: .82rem; color: var(--pool-deep); }
.missions li.done .m-xp { color: var(--go); }
.lastcall-btn { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; border: 2px solid var(--amber); background: var(--amber-wash); border-radius: var(--r); padding: 12px 14px; cursor: pointer; color: var(--ink); font: inherit; }
.lastcall-btn:hover { background: #FBE6B8; }
.lastcall-btn > .i { width: 30px; height: 30px; flex: none; color: #B06F00; }
.lastcall-btn > span { display: flex; flex-direction: column; gap: 2px; }
.lastcall-btn b { font-size: 1rem; }
.lastcall { display: flex; gap: 10px; align-items: center; border-radius: var(--r); padding: 10px 12px; background: var(--asphalt); color: #fff; }
.lastcall > .i { width: 26px; height: 26px; flex: none; color: var(--amber); animation: ring 1.6s ease-in-out infinite; }
.lastcall > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lastcall .small { color: #C5CDDB; }
.lastcall b { color: #fff; }
.lastcall .btn { flex: none; }
.rq.lastcalled { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(246, 178, 60, .35); }
/* Hotel: desk goals and league */
.game-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .game-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.goals, .league { display: flex; flex-direction: column; gap: 10px; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .goal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.goal { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--paper); }
.goal.ready { border-color: var(--amber); background: var(--amber-wash); animation: glow 1.8s ease-in-out infinite; }
.goal.claimed { opacity: .7; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(246, 178, 60, .3); } }
.g-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.g-main b { font-size: .92rem; }
.g-span { font: 700 .7rem/1 var(--sans); color: var(--pool-deep); }
.g-xp { font-weight: 800; color: var(--pool-deep); white-space: nowrap; }
.g-done { font-weight: 800; color: var(--go); white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.g-done .i { width: 14px; height: 14px; }
.lg-rank { margin: 0; font-size: .95rem; }
.lg-rank b { font: 400 2rem/1 var(--display); margin-right: 4px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.lg-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px; border-radius: 6px; }
.lg-list li.me { background: var(--amber-wash); font-weight: 700; }
.gtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.rq.boosted { border-color: var(--flamingo); box-shadow: 0 0 0 3px rgba(224, 78, 123, .18); }
/* Rewards page extras */
.streak-card { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 720px) { .streak-card { grid-template-columns: auto minmax(0, 1fr); } }
.streak-big { display: flex; align-items: center; gap: 10px; font: 400 2.6rem/1 var(--display); color: #F2702E; }
.streak-big .i { width: 44px; height: 44px; fill: #F2702E; stroke: #F2702E; }
.streak-days { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.streak-days li { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 .72rem/1 var(--sans); background: var(--concrete); color: var(--muted); }
.streak-days li.on { background: #F2702E; color: var(--ink); }
.streak-days li.today { box-shadow: 0 0 0 3px #FFD27A; }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); background: var(--concrete); }
.perks li.on { background: var(--go-wash); }
.perks li .tag { flex: none; }
@media (prefers-reduced-motion: reduce) { .gift-btn, .prize-box, .goal.ready, .lastcall > .i, .cel-big, .xp-float { animation: none !important; } }
/* Header fits one row on phones with the streak, prize and points chips */
@media (max-width: 480px) {
  .bar { gap: 10px; }
  .logo { font-size: 1.1rem; }
  .bar-right { gap: 2px; }
  .bar-right .icon-btn { width: 36px; height: 36px; }
  .pts { padding: 5px 9px 5px 7px; gap: 4px; font-size: .85rem; }
  .streak-chip { padding: 5px 7px; font-size: .85rem; }
  .gift-btn { width: 34px; height: 34px; }
}
@media (max-width: 389px) { .logo { font-size: .98rem; } .pts .i { display: none; } .pts { padding: 5px 8px; } .bar { gap: 6px; } .gift-btn { width: 30px; height: 30px; } .bar-right .icon-btn { width: 32px; height: 32px; } .streak-chip .i { width: 14px; height: 14px; } }
@media (max-width: 339px) { .logo { font-size: .85rem; } .streak-chip { padding: 4px 5px; } }

/* ---------- v1.5 AI assistant ----------
   The assistant is the motel's night clerk on the intercom: an asphalt header with one marquee bulb that
   glows amber when idle and turns flamingo while it listens. Steps it wants to take arrive as paper
   tickets with a perforated edge, so "the AI suggests" and "you approve" look different from chat. */
.ai-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85; display: inline-flex; align-items: center; gap: 8px;
  background: var(--asphalt); color: #fff; border: 2px solid var(--asphalt); border-radius: 999px; padding: 11px 18px 11px 14px; font: 700 .95rem/1 var(--sans);
  box-shadow: 0 14px 30px -12px rgba(27, 35, 51, .6); cursor: pointer; }
.ai-fab .i { width: 20px; height: 20px; color: var(--amber); }
.ai-fab:hover { background: var(--asphalt-2); }
.ai-fab.raised { bottom: calc(92px + env(safe-area-inset-bottom)); }
body.ai-open .ai-fab { display: none; }
body.has-ai .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
.ai-panel { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 85; width: min(410px, calc(100vw - 32px)); height: min(660px, calc(100vh - 32px));
  background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 30px 70px -24px rgba(27, 35, 51, .6); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--asphalt-3); }
.ai-panel[hidden] { display: none; }
.ai-head { background: var(--asphalt); color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; }
.ai-bulb { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(246, 178, 60, .25), 0 0 14px var(--amber); flex: none; }
.ai-panel.listening .ai-bulb { background: var(--flamingo); box-shadow: 0 0 0 3px rgba(224, 78, 123, .3), 0 0 16px var(--flamingo); animation: aibulb 1.1s ease-in-out infinite; }
.ai-panel.busy .ai-bulb { animation: aibulb 1.6s ease-in-out infinite; }
@keyframes aibulb { 50% { opacity: .45; } }
.ai-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ai-title b { font: 400 1.05rem/1.2 var(--display); letter-spacing: .02em; }
.ai-title span { font-size: .8rem; opacity: .75; }
.ai-ib { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.ai-ib:hover, .ai-ib[aria-expanded="true"] { background: var(--asphalt-3); }
.ai-ib .i { width: 19px; height: 19px; }
.ai-menu { background: var(--asphalt-2); color: #fff; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.ai-menu[hidden] { display: none; }
.ai-sw { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; font-size: .92rem; }
.ai-sw input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--amber); }
.ai-sw small { display: block; opacity: .75; font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.ai-menu-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-menu-foot .small { opacity: .7; flex: 1; min-width: 180px; }
.ai-menu .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--concrete); overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.ai-msg p { margin: 0; }
.ai-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.ai-msg.me { align-self: flex-end; background: var(--pool); color: #fff; border-bottom-right-radius: 5px; }
.ai-msg.err { align-self: flex-start; background: var(--bad-wash); color: var(--bad); border-bottom-left-radius: 5px; }
.ai-msg.act { align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; background: var(--go-wash); color: #1E6B3E; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.ai-msg.act.fail { background: var(--bad-wash); color: var(--bad); }
.ai-msg.act a { color: inherit; font-weight: 800; }
.ai-act-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--go); color: #fff; margin-top: 1px; }
.ai-msg.act.fail .ai-act-ic { background: var(--bad); }
.ai-act-ic .i { width: 13px; height: 13px; stroke-width: 3; }
.ai-tkt { align-self: stretch; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); border-left: 7px solid var(--amber); box-shadow: 0 6px 18px -14px rgba(27, 35, 51, .6); }
.ai-tkt.danger { border-left-color: var(--flamingo); }
.ai-tkt.closed { border-left-color: var(--line); box-shadow: none; }
.ai-tkt-in { margin-left: 7px; border-left: 2px dashed var(--line); padding: 12px 14px 12px 14px; }
.ai-tkt-title { display: block; font-weight: 800; line-height: 1.3; }
.ai-tkt ul { margin: 6px 0 10px; padding-left: 18px; font-size: .9rem; color: var(--ink); }
.ai-tkt li + li { margin-top: 3px; }
.ai-tkt.closed ul { color: var(--muted); margin-bottom: 6px; }
.ai-tkt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-tkt-st { margin: 0; font-size: .85rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ai-tkt-st.st-done { color: var(--go); }
.ai-tkt-st.st-failed { color: var(--bad); }
.ai-tkt-st .i { width: 15px; height: 15px; stroke-width: 3; }
.ai-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aidot 1.2s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; }
.ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aidot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-chips { display: flex; gap: 6px; padding: 10px 12px 0; overflow-x: auto; background: var(--paper); border-top: 1px solid var(--line); scrollbar-width: none; }
.ai-chips::-webkit-scrollbar { display: none; }
.ai-chips[hidden] { display: none; }
.ai-chip { flex: none; white-space: nowrap; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 .84rem/1.2 var(--sans); cursor: pointer; }
.ai-chip:hover { border-color: var(--pool); color: var(--pool-deep); }
.ai-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 12px; background: var(--paper); }
.ai-chips[hidden] + .ai-form { border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 120px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; font: 400 .95rem/1.4 var(--sans); color: var(--ink); background: var(--paper); }
.ai-form textarea:focus { border-color: var(--pool); outline: none; box-shadow: 0 0 0 3px var(--pool-wash); }
.ai-mic, .ai-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.ai-mic { background: var(--amber); color: var(--ink); }
.ai-mic[aria-pressed="true"] { background: var(--flamingo-deep); color: #fff; box-shadow: 0 0 0 0 rgba(224, 78, 123, .5); animation: aimic 1.4s ease-out infinite; }
@keyframes aimic { 0% { box-shadow: 0 0 0 0 rgba(224, 78, 123, .55); } 100% { box-shadow: 0 0 0 14px rgba(224, 78, 123, 0); } }
.ai-send { background: var(--pool); color: #fff; }
.ai-send:disabled { opacity: .5; cursor: default; }
.ai-mic .i, .ai-send .i { width: 20px; height: 20px; }
.ai-left { margin: 0; padding: 0 14px 10px; background: var(--paper); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ai-panel.listening .ai-bulb, .ai-panel.busy .ai-bulb, .ai-typing i, .ai-mic[aria-pressed="true"] { animation: none; } }
@media (max-width: 600px) {
  .ai-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .ai-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 10px 14px 10px 12px; }
  body.ai-open { overflow: hidden; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* Autopilot (guest board) and autobid (front desk) */
.autopilot { border: 1.5px dashed var(--pool); background: var(--pool-wash); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.autopilot.on { border-style: solid; background: #fff; box-shadow: inset 5px 0 0 var(--pool); }
.autopilot .ap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.autopilot .ap-head b { display: inline-flex; align-items: center; gap: 6px; }
.autopilot .ap-head .i { width: 18px; height: 18px; color: var(--pool-deep); }
.autopilot p { margin: 0; font-size: .88rem; }
.autopilot .row { gap: 8px; }
.ap-state { font: 700 .72rem/1.5 var(--sans); padding: 1px 8px; border-radius: 999px; background: var(--concrete); color: var(--muted); }
.autopilot.on .ap-state { background: var(--pool); color: #fff; }
.autobid-bar { flex-direction: row; align-items: center; gap: 10px 18px; flex-wrap: wrap; justify-content: space-between; margin: 0 0 16px; }
.autobid-bar .ap-head { justify-content: flex-start; margin-bottom: 4px; }
.autobid-bar .ap-text p { max-width: 75ch; }
.autobid-bar .ap-text { flex: 1; min-width: 240px; }
.tag.auto { background: var(--asphalt); color: var(--amber); }
.tag.auto .i { width: 12px; height: 12px; vertical-align: -2px; }
.ap-form .money-in input { width: 100%; }
.ap-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .ap-form .two { grid-template-columns: 1fr; } }
.ul-plain { list-style: none; padding: 0; margin: 0; }
.kv { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--concrete); padding-bottom: 6px; }
.err-list { padding-left: 18px; margin: 0; overflow-wrap: anywhere; }
.ai-admin .howto { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.stack.tight { gap: 8px; }
.h4 { font-size: 1rem; margin: 6px 0 0; }

.ai-pitch { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; background: var(--asphalt); color: #fff; border-radius: var(--r); max-width: 760px; }
.ai-pitch .i { flex: none; width: 22px; height: 22px; color: var(--amber); margin-top: 2px; }
.ai-pitch b { color: var(--amber); }

/* Signed-in devices (profile) */
.dev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--concrete); }
.dev-list li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dev-list .pill { align-self: flex-start; }

/* ---------- City picker (Admin > Cities list) ---------- */
.cp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-field > label { font-weight: 600; font-size: .9rem; }
.cp-box { position: relative; display: block; width: 100%; }
.cp-box input { padding-left: 42px; padding-right: 48px; text-overflow: ellipsis; }
.cp-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--pool-deep); pointer-events: none; display: flex; }
.cp-ic .i { width: 20px; height: 20px; }
.cp-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cp-btn:hover { background: var(--concrete); color: var(--ink); }
.cp-btn svg { width: 20px; height: 20px; transition: transform .15s; }
.cp-box.open .cp-btn svg { transform: rotate(180deg); }
.cp-list { position: absolute; z-index: 95; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 22px 44px -18px rgba(27, 35, 51, .55); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cp-list[hidden] { display: none; }
.cp-list [role="option"] { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.cp-list [role="option"][aria-selected="true"] { background: var(--pool-wash); box-shadow: inset 3px 0 0 var(--pool); }
.cp-list [role="option"]:hover { background: var(--concrete); }
.cp-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.cp-name b { font-weight: 800; color: var(--pool-deep); }
.cp-st { flex: none; font-size: .8rem; color: var(--muted); }
.cp-hot { flex: none; font-size: .72rem; font-weight: 700; color: #1E6B3E; background: var(--go-wash); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.cp-group { position: sticky; top: -6px; background: #fff; font-size: .75rem; font-weight: 800; color: var(--muted); padding: 10px 10px 4px; margin: 0 -6px; padding-left: 16px; border-bottom: 1px solid var(--concrete); }
.cp-note { padding: 10px; font-size: .88rem; color: var(--muted); }
.cp-more { padding: 4px 6px 6px; }
.cp-more button { width: 100%; min-height: 42px; border: 1.5px dashed var(--line); border-radius: 8px; background: #fff; font: 700 .9rem var(--sans); color: var(--pool-deep); cursor: pointer; }
.cp-more button:hover { border-color: var(--pool); }
.cp-msg { display: block; margin: 0; font-size: .85rem; font-weight: 500; }
.cp-msg[hidden] { display: none; }
.cp-field .hint { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 500; }
.cp-msg.bad, .hint.bad { color: var(--bad); font-weight: 600; }
.hero .cp-msg.bad { color: #FFB4B4; }
.where-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .where-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
@media (prefers-reduced-motion: reduce) { .cp-btn svg { transition: none; } }
.cities-admin { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .cities-admin { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); } }
.city-filter { align-items: flex-end; gap: 10px; }
.city-filter .grow { flex: 1 1 200px; }
.pager { align-items: center; gap: 12px; justify-content: center; }

/* ---------- 1.7: hotel policies, Book-X.com button, every hotel on the map ---------- */
/* The hotel's own Book-X.com page: a separate, outbound link, styled apart from the bidding buttons. */
.bookx-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; align-self: flex-start; max-width: 100%; text-decoration: none;
  color: var(--ink); background: #fff; border: 2px solid var(--asphalt); border-radius: 12px; padding: 8px 40px 8px 14px; position: relative; line-height: 1.25; }
.bookx-btn b { font-weight: 800; font-size: .95rem; }
.bookx-btn em { white-space: nowrap; font-style: normal; font-size: .75rem; font-weight: 800; color: var(--asphalt); background: var(--amber); border-radius: 999px; padding: 1px 8px; }
.bookx-btn::after { content: "↗"; position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 1.1rem; color: var(--pool-deep); }
.bookx-btn:hover { background: var(--amber-wash, #FFF6E5); color: var(--ink); }
.bookx-btn:focus-visible { outline: 3px solid var(--pool); outline-offset: 2px; }
.bookx-btn.sm { width: 100%; padding: 7px 34px 7px 12px; margin-top: 6px; }
.bookx-btn.sm b { font-size: .85rem; }
.bookx-btn.as-preview { pointer-events: none; }
.bookx-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.o-pol { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--ink); }
.o-pol .link { font-size: .85rem; min-height: 32px; display: inline-flex; align-items: center; }
.pol-modal { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.pol-block h3 { margin: 0 0 4px; }
.pol-block p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.policy-text + .policy-text { margin-top: 8px; }
.checks li.opt::before { content: "+"; background: var(--muted); }
.iw-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.lgd.dim { background: #C9CFD8; }
.map-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.map-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--concrete); font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-height: 44px; }
.map-item:hover { background: var(--concrete); }
.map-item .mi-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.map-item small { display: block; font-weight: 500; color: var(--muted); }
.map-item b { font-variant-numeric: tabular-nums; }

/* ---------- Ads (Admin > Ads) and the standing Book-X.com link ----------
   A billboard by the roadside: white board, black frame, amber shadow offset like a lit sign. */
.ads { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .ads.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ads.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ads-home-wrap { margin-top: 36px; }
.ad { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; color: var(--ink); border: 2px solid var(--asphalt); border-radius: var(--r-lg); overflow: hidden; box-shadow: 7px 7px 0 var(--amber); }
.ad.has-img { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ads.n1 .ad.has-img, .ad-slim.has-img { grid-template-columns: minmax(140px, 34%) minmax(0, 1fr); } }
.ad-img { background: var(--concrete); min-height: 140px; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 260px; }
.ad-copy { padding: 18px 20px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ad-tag { font-size: .72rem; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.ad-title { margin: 0; font: 800 clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem)/1.02 var(--head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ad-body { margin: 0; color: var(--ink); max-width: 60ch; }
.ad-cta { background: var(--amber); color: var(--ink); border: 2px solid var(--asphalt); font-weight: 800; margin-top: 4px; }
.ad-cta:hover { background: #FFC75F; color: var(--ink); }
.ad-cta::after { content: " ↗"; }
.ad-host { font-size: .82rem; color: var(--muted); }
.ad-slim { box-shadow: 5px 5px 0 var(--amber); margin-top: 24px; }
.ad-slim .ad-title { font-size: 1.35rem; }
.ad-slim .ad-copy { padding: 14px 16px 16px; }
.bookx-home { margin: 0; }
.bookx-home a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; }
.bookx-home a b { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bookx-home a span { background: var(--amber); color: var(--ink); font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 2px 10px; }
.bookx-home a::after { content: "↗"; color: var(--amber); font-weight: 800; }
.bookx-home a:hover b { text-decoration-color: #fff; }
.ads-admin { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .ads-admin { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); } }
.ad-row { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--concrete); }
.ad-row.off .ad-preview { opacity: .6; }
.ad-preview .ad { margin-top: 0; }
.ad-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted); }
.ad-thumb img { border-radius: 8px; border: 1px solid var(--line); }
.ad-words { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.ad-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* One wide ad without a picture: words on the left, button on the right, like a billboard. */
@media (min-width: 760px) {
  .ads.n1 .ad-band:not(.has-img) .ad-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 40px; padding: 24px 32px; }
  .ads.n1 .ad-band:not(.has-img) .ad-act { align-items: center; }
  .ads.n1 .ad-band:not(.has-img) .ad-cta { font-size: 1.05rem; padding: 14px 26px; }
}
.ads-admin input.narrow { max-width: 140px; }
.room-form .hint { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- 1.8 LuminaPMS ---------- */
.tag.bad { background: var(--bad-wash); color: var(--bad); }
.tag.warn { background: #FFF1D6; color: #8A5A00; }
.pms-line { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; }
.pms-line .muted { flex-basis: 100%; font-size: .8rem; }
.pms-card .steps-plain { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.pms-card .key-once input { margin-top: 6px; width: 100%; }
.pms-card .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.pms-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pms-recent li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pms-recent li:last-child { border-bottom: 0; }
.pms-recent .trunc { flex-basis: 100%; }
.receipt.is-cancelled .conf-no { text-decoration: line-through; opacity: .6; }
.cancel-res summary { color: var(--bad); }
.bk.cancelled { opacity: .85; }
.pms-deliv td .tag { white-space: nowrap; }
.rt-ids { margin: 2px 0 0; color: var(--muted); } .rt-ids b { color: var(--ink); }

/* ---------- 1.8.1 Guest requests on/off ---------- */
.req-switch { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 12px; }
.req-switch.is-off { background: var(--amber-wash); border-color: var(--amber); }
.req-switch .rs-main { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; }
.req-switch .rs-text { min-width: 0; }
.req-switch .rs-text h2 { margin: 0 0 2px; }
.req-switch .rs-text p { margin: 0; max-width: 75ch; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border: 0; background: none; cursor: pointer; font: 700 .95rem var(--sans); color: var(--ink); flex: none; border-radius: 999px; }
.switch .sw-track { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #A9B2BF; transition: background .18s ease; }
.switch .sw-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(27, 35, 51, .35); transition: transform .18s ease; }
.switch[aria-checked="true"] .sw-track { background: var(--go); }
.switch[aria-checked="true"] .sw-knob { transform: translateX(22px); }
.switch .sw-word { min-width: 2.2em; text-align: left; }
.switch:focus-visible { outline: 3px solid var(--pool); outline-offset: 2px; }
.switch:disabled { opacity: .6; cursor: progress; }
.req-switch .rs-opts { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.req-switch .rs-opts p { margin: 0 0 6px; }
.req-switch .rs-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.req-switch .rs-opts .hint { margin-top: 8px; }
.nav-off { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--asphalt); font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.nav-off:hover, .nav-off:focus-visible { background: var(--amber-hot); }
@media (prefers-reduced-motion: reduce) { .switch .sw-track, .switch .sw-knob { transition: none; } }
@media (max-width: 520px) { .req-switch .rs-main { align-items: flex-start; } }
.req-switch .rs-opts .hint { font-size: .85rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 1.9 Front desk order + how it works ---------- */
#desk .desk-stats { margin-bottom: 14px; }
#desk > .seg-tabs { margin: 4px 0 12px; }
.desk-extras { margin-top: 28px; display: grid; gap: 16px; }
.how-strip { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.how-strip li { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm, 10px); font-size: .88rem; line-height: 1.35; color: var(--ink); }
.how-strip li b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--asphalt); color: #fff; font-size: .78rem; }
@media (max-width: 760px) { .how-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .how-strip { grid-template-columns: 1fr; } }
.guest-steps { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0 0 16px; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gsteps li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: .92rem; position: relative; }
.gsteps li b { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); font-size: .85rem; }
.gsteps li b svg { width: 15px; height: 15px; }
.gsteps li.done { color: var(--ink); }
.gsteps li.done b { background: var(--go); border-color: var(--go); color: #fff; }
.gsteps li.now { color: var(--ink); }
.gsteps li.now b { background: var(--amber); border-color: var(--amber); color: var(--asphalt); box-shadow: 0 0 0 4px var(--amber-wash); }
.gnext { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .95rem; }
@media (max-width: 640px) { .gsteps { grid-template-columns: 1fr 1fr; row-gap: 10px; } }
.step-h { display: flex; align-items: center; gap: 10px; }
.step-h .snum { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--asphalt); color: var(--amber); font: 800 .95rem var(--sans); }

/* ---------- 1.9 Home: headline and the colourful Book-X.com ad ---------- */
.hero .display .l2 { color: var(--amber); display: block; }
.hero .display .l1 { display: block; }
.ads-home-wrap .ad { position: relative; color: #fff; border: 0; box-shadow: 8px 8px 0 var(--amber);
  background: linear-gradient(118deg, #0B8F8A 0%, #1C64B0 52%, #D9487A 100%); }
.ads-home-wrap .ad::before { content: ""; position: absolute; inset: 9px; border: 3px dotted rgba(255, 255, 255, .55); border-radius: calc(var(--r-lg) - 5px); pointer-events: none; }
.ads-home-wrap .ad-copy { position: relative; padding: 26px 28px 26px; }
.ads-home-wrap .ad-tag { color: var(--asphalt); background: #fff; border-color: #fff; }
.ads-home-wrap .ad-title { color: #FFD45E; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.ads-home-wrap .ad-body { color: #fff; font-size: 1.05rem; }
.ads-home-wrap .ad-cta { background: #fff; color: var(--asphalt); border-color: #fff; font-size: 1.02rem; padding-left: 22px; padding-right: 22px; }
.ads-home-wrap .ad-cta:hover, .ads-home-wrap .ad-cta:focus-visible { background: #FFD45E; border-color: #FFD45E; color: var(--asphalt); }
.ads-home-wrap .ad-host { color: rgba(255, 255, 255, .85); }
.ads-home-wrap .ad-img { background: rgba(255, 255, 255, .12); }
@media (min-width: 900px) { .flow.flow-4 { grid-template-columns: repeat(4, 1fr); } }
.hotel-steps { margin: 4px 0 6px; padding-left: 1.3em; display: grid; gap: 4px; color: #fff; font-weight: 600; }
.hotel-steps li::marker { color: var(--amber); font-weight: 800; }
@media (min-width: 900px) { .hero .display .l1 { white-space: nowrap; } }
/* 1.9: desk tabs fill the width on phones so all three stay visible */
@media (max-width: 560px) {
  .seg-tabs.desk-tabs { display: flex; width: 100%; }
  .seg-tabs.desk-tabs button { flex: 1 1 auto; justify-content: center; padding: 8px 8px; font-size: .84rem; }
}

/* 1.9.1 audit: keyboard users can scroll wide admin tables; focus ring shows where they are */
.table-wrap:focus-visible { outline: 3px solid var(--pool); outline-offset: 2px; }

/* 1.9.2: Standard view / Map view on the guest's request page */
.offers-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 28px 0 14px; }
.offers-bar .h2 { margin: 0 0 2px; }
.offers-bar .offers-n { color: var(--muted); font-weight: 700; }
.view-switch button .i { width: 18px; height: 18px; }
.view-switch button:focus-visible { outline: 3px solid var(--pool); outline-offset: 2px; }
.map-view { display: grid; gap: 16px; }
.map-view[hidden] { display: none; }
.map-view .map-main { padding: 8px; }
.map-view .board-map { height: min(66vh, 640px); min-height: 360px; }
.map-view .map-side { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.map-view .map-side .h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
@media (min-width: 1000px) {
  .map-view { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .map-view .map-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
@media (max-width: 999px) { .map-view .board-map { height: 62vh; min-height: 320px; } }
@media (max-width: 560px) {
  .offers-bar { align-items: stretch; }
  .offers-bar .view-switch { display: flex; width: 100%; }
  .offers-bar .view-switch button { flex: 1 1 0; justify-content: center; }
}

/* ---------- 1.10: map pin and distance on Post a request; Admin > Hotels add / edit ---------- */
.pin-radius { border: 1px dashed var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--paper); display: grid; gap: 10px; }
.pin-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pin-head .stack-sm { flex: 1 1 260px; min-width: 0; }
.pin-head .btn { flex: none; }
.pin-title { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pin-title .i { width: 18px; height: 18px; color: var(--pool-deep); }
.pin-miles { border: 0; padding: 0; margin: 0; min-width: 0; }
.pin-miles legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.pin-panel .pin-map { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.pin-status { margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--concrete); }
.pin-status.ok { background: var(--go-wash); color: #1E6B3E; }
.pin-status.bad { background: var(--bad-wash); color: #7D1F2C; }
.pin-note { display: inline-flex; align-items: center; gap: 4px; color: var(--pool-deep); font-weight: 700; }
.pin-note .i { width: 14px; height: 14px; }
@media (max-width: 640px) { .pin-panel .pin-map.tall { height: 320px; } .pin-head .btn { width: 100%; justify-content: center; } }
.hotel-form .span-all { grid-column: 1 / -1; }
.hotel-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.hotel-addr { font-size: .85rem; line-height: 1.35; }
.req-label { font-weight: 700; }
.req-label::after { content: " *"; color: var(--bad); }
.tbl tr.on > td { background: var(--amber-wash); }
.tbl tr:target > td { background: var(--pool-wash); }
@media (min-width: 720px) { .hotel-form .g3 .span2 { grid-column: span 2; } }

/* ======================= 1.11 Phones: tab bar, requests first, bottom sheets, bigger touch targets =======================
   Under 760px wide, signed-in guests and hotels get a tab bar at the bottom (thumb-reachable, live counts) instead of
   the scrolling menu in the header. Guest offers and front desk requests come first; extras move below or fold away. */
.tabbar { display: none; }
.desk-short { display: none; }
.gc-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-card a.gc-btn { min-height: 44px; padding: 8px 14px; border-radius: 999px; background: rgba(246, 178, 60, .14); color: var(--amber); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.guest-card a.gc-btn.call { background: var(--amber); color: var(--ink); }
.guest-card a.gc-btn.call:hover { background: var(--amber-hot); color: var(--ink); }
.guest-card a.gc-btn b { font-weight: 800; }
.o-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--pool-deep); font-size: .9rem; border-top: 1px dashed var(--line); }
.o-more summary::-webkit-details-marker { display: none; }
.o-more summary .i { transition: transform .15s ease; }
.o-more[open] summary .i { transform: rotate(180deg); }
.o-more-in { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 0 6px; }
.tb-n.bump { animation: bump .6s ease; }

/* Touch screens: every control at least 44px */
@media (pointer: coarse) {
  .btn.sm { min-height: 44px; }
  .seg-tabs a, .seg-tabs button { min-height: 44px; }
  .icon-btn.sm, .stepper-ctl .icon-btn { width: 44px; height: 44px; flex: none; }
  .quick button { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
  .chip span { padding: 10px 16px; }
  .o-pol .link, .iw-links .link, .panel-head .link, .map-item, .o-meta .link { min-height: 44px; display: inline-flex; align-items: center; }
  .foot nav a { padding: 12px 0; }
  .menu-panel a, .menu-btn { min-height: 48px; display: flex; align-items: center; }
}
.stepper-ctl .icon-btn { flex: none; }
.stepper-ctl input { min-width: 0; }

@media (max-width: 759px) {
  /* Tab bar */
  body.has-tabbar { --tabbar-h: 62px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .has-tabbar .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom); background: var(--asphalt);
    border-top: 1px solid var(--asphalt-3); box-shadow: 0 -10px 28px -16px rgba(27, 35, 51, .55); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: #AEB8CB; text-decoration: none;
    font: 700 .72rem/1.1 var(--sans); border-radius: 12px; -webkit-tap-highlight-color: transparent; }
  .tabbar a:active { background: var(--asphalt-2); }
  .tabbar a:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
  .tabbar .tb-ic { position: relative; display: grid; place-items: center; width: 48px; height: 30px; border-radius: 999px; transition: background .15s; }
  .tabbar .tb-ic .i { width: 22px; height: 22px; }
  .tabbar .tb-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar a[aria-current="page"] .tb-ic { background: var(--amber); color: var(--ink); }
  .tabbar .tb-post .tb-ic { background: var(--pool); color: #fff; }
  .tabbar .tb-post[aria-current="page"] .tb-ic { background: var(--amber); color: var(--ink); }
  .tabbar .tb-n { position: absolute; top: -5px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--flamingo-deep); color: #fff;
    font: 800 .7rem/19px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--asphalt); }
  .has-tabbar.kb-open .tabbar { display: none; }
  .has-tabbar .topbar .nav { display: none; }
  .has-tabbar .bar { min-height: 56px; }
  .has-tabbar .toasts { left: 12px; right: 12px; max-width: none; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); }
  .has-tabbar.has-ai .toasts { bottom: calc(var(--tabbar-h) + 70px + env(safe-area-inset-bottom)); }
  .has-tabbar .ai-fab { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); }
  .has-tabbar .submit-bar { bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); }
  .has-tabbar .res-bar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: 12px; }
  .has-tabbar.kb-open .submit-bar, .has-tabbar.kb-open .res-bar { bottom: 0; }
  .has-tabbar.kb-open .ai-fab { display: none; }

  /* Header and the alerts banner: one short row each */
  .page { padding: 18px 0 32px; gap: 16px; }
  .alerts-why { display: none; }
  .alerts-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; padding: 8px 0; }
  .alerts-in p { min-width: 0; font-size: .9rem; }
  .alerts-in .row { grid-column: 1 / -1; gap: 8px; flex-wrap: nowrap; }
  .alerts-in .row .btn { flex: 1 1 0; }
  .alerts-ic { width: 30px; height: 30px; }

  /* Bottom sheets instead of floating boxes: thumb-reachable, buttons always in view */
  dialog.modal:not(.gallery):not(.celebrate) { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: calc(100dvh - 28px);
    overflow-y: auto; overscroll-behavior: contain; animation: sheet .22s cubic-bezier(.2, .9, .3, 1) both; }
  dialog.modal:not(.gallery):not(.celebrate) .modal-in { padding: 18px 16px 0; }
  dialog.modal:not(.gallery):not(.celebrate) .modal-in::before { content: ""; width: 40px; height: 5px; border-radius: 999px; background: var(--line); align-self: center; margin: -8px 0 -4px; }
  dialog.modal:not(.gallery):not(.celebrate) .modal-in > .row:last-child { position: sticky; bottom: 0; z-index: 2; background: var(--paper); margin: 0 -16px; flex-wrap: nowrap;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  dialog.modal:not(.gallery):not(.celebrate) .modal-in > .row:last-child .btn { flex: 1 1 0; min-height: 50px; white-space: normal; }
  dialog.modal:not(.gallery):not(.celebrate) .modal-in > .row:last-child .btn.lg { flex-grow: 2; }
  dialog.gallery { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog.gallery .gal-stage img { max-height: 52vh; }
  dialog.gallery .gal-side { max-height: none; }

  /* Post a request / reserve: dates side by side */
  .dates-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dates-grid .nights-out { grid-column: 1 / -1; min-height: 0; padding: 8px 12px; }
  .stepper { padding: 10px; }

  /* ---------- Guest: request page ---------- */
  .guest-steps { padding: 12px; margin-bottom: 0; }
  .gsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; row-gap: 0; }
  .gsteps li { flex-direction: column; text-align: center; gap: 4px; font-size: .74rem; line-height: 1.2; }
  .gsteps li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 16px); height: 2px; background: var(--line); }
  .gsteps li.done:not(:last-child)::after { background: var(--go); }
  .gnext { font-size: .9rem; margin-top: 10px; padding-top: 8px; }
  .board { gap: 12px; }
  .board-top { gap: 12px; }
  .marquee { padding: 9px; border-radius: 18px; }
  .marquee-in { padding: 14px; }
  .board-top .marquee-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
  .marquee-in > .mq-head { grid-column: 1 / -1; }
  .mq-trip h1 { font-size: 1.2rem; }
  .mq-facts { font-size: .84rem; gap: 2px 10px; }
  .mq-mode { font-size: .75rem; padding: 4px 10px; }
  .mq-score { display: contents; }
  .mq-best { grid-column: 1; min-width: 0; }
  .mq-side { grid-column: 1 / -1; gap: 6px; }
  .mq-clock { grid-column: 2; grid-row: 2; margin: 0; padding: 0; border: 0; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; max-width: 46vw; }
  .mq-clock .what { font-size: .74rem; line-height: 1.25; font-weight: 600; }
  .clock-big { font-size: 1.55rem; }
  .price-xl { font-size: 2.7rem; }
  .bv-side { margin-top: 16px; }
  .offers-head { margin-top: 4px; }
  .offers-bar { margin: 14px 0 10px; }
  .reserve-cta .btn { width: 100%; }
  .booking { padding: 14px; gap: 12px; }
  .contact-row .btn { flex: 1 1 auto; }

  /* Offer card: no rank column; the rank sits on the first photo; price under the name; full-width buttons */
  .offer { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
  .offer .rank { position: absolute; top: 20px; left: 20px; z-index: 2; width: 32px; height: 32px; font-size: .95rem; box-shadow: 0 0 0 2px #fff; }
  .offer:not(:has(.o-photos)) .o-hotel { padding-left: 42px; min-height: 32px; }
  .offer .o-photos { height: 148px; }
  .offer.best { box-shadow: 4px 4px 0 var(--amber); }
  .offer.won { box-shadow: 4px 4px 0 var(--go); }
  .o-phone .o-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 12px; background: var(--concrete); border-radius: 12px; }
  .o-phone.best .o-price { background: var(--amber-wash); }
  .o-phone .o-price .now { font-size: 1.95rem; }
  .o-phone .o-price .grade { order: 9; margin-left: auto; align-self: center; }
  .o-phone .o-price > .small:last-of-type { flex-basis: 100%; }
  .o-actions { padding-top: 10px; gap: 8px; }
  .o-actions .btn:not(.sm) { flex: 1 1 0; min-height: 50px; font-size: 1rem; }
  .o-actions .btn.sm { flex: 1 1 100%; }
  .o-actions > .small { flex-basis: 100%; text-align: center; }
  .o-actions .waiting { flex-basis: 100%; justify-content: center; border-radius: 12px; }
  .bookx-btn { width: 100%; }

  /* ---------- Hotel: front desk ---------- */
  .desk { gap: 12px; }
  .desk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .desk-head .h1 { font-size: 1.45rem; }
  .desk-long { display: none; }
  .desk-short { display: block; }
  .desk-tools .snd-word { display: none; }
  .desk-tools .btn.sm { width: 44px; height: 44px; padding: 0; }
  #desk .desk-stats { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -16px 10px; padding: 0 16px; scroll-snap-type: x proximity; }
  #desk .desk-stats::-webkit-scrollbar { display: none; }
  .desk-stats .dstat { flex: 0 0 auto; min-width: 100px; padding: 10px 12px; scroll-snap-align: start; }
  .desk-stats .dstat:first-child { min-width: 180px; }
  .dstat b { font-size: 1.2rem; }
  .dstat span { font-size: .74rem; }
  #desk > .seg-tabs { position: sticky; top: calc(var(--top-h, 56px) + 6px); z-index: 20; box-shadow: 0 10px 20px -14px rgba(27, 35, 51, .55); margin-bottom: 10px; }
  .req-switch { padding: 8px 12px; margin-bottom: 10px; }
  .req-switch:not(.is-off) .rs-text p { display: none; }
  .req-switch .rs-main { align-items: center; }
  .rq { padding: 14px; gap: 10px; }
  .rq-facts { gap: 6px; }
  .rq-facts div { padding: 6px 9px; }
  .rq-target { padding: 8px 12px; }
  .rq-target b { font-size: 1.4rem; }
  .rq-acts { gap: 8px; }
  .rq-acts .btn:not(.sm):not(.ghost) { flex: 1 1 0; min-height: 50px; font-size: 1rem; }
  .counter-box .rq-acts { flex-wrap: wrap; }
  .counter-box .rq-acts .btn { flex: 1 1 auto; }
  .bk { padding: 14px; }
  .guest-card .gc-btn.call { flex: 1 1 100%; justify-content: center; }
  .guest-card .gc-btn:not(.call) { flex: 1 1 0; justify-content: center; }
  .guest-card .gc-mail { display: none; }
  .bk-told .btn { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
  .desk-extras { margin-top: 16px; }
}
@media (max-width: 374px) {
  .has-tabbar .streak-chip { display: none; }
  .tabbar a { font-size: .66rem; }
  .gsteps li { font-size: .68rem; }
  .o-actions .btn:not(.sm), .rq-acts .btn:not(.sm):not(.ghost) { font-size: .92rem; padding-left: 10px; padding-right: 10px; }
}
@keyframes sheet { from { transform: translateY(48px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.modal { animation: none !important; } }
@media print { .tabbar { display: none !important; } body.has-tabbar { padding-bottom: 0; } }

/* ---------- 1.11 Pop-ups fit the screen on iPhone and Android, and scroll inside ----------
   100vh first for older browsers, then 100dvh (the visible height, without the browser bars). */
.panel-head .row { gap: 4px; flex-wrap: nowrap; }
.panel-x { display: none; }
.panel-foot { margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line); background: var(--concrete); }
.notif-list:focus { outline: none; }
dialog.modal, dialog.celebrate { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.toasts { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow: hidden; }
.toast { max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; flex: none; }
@media (max-width: 759px) {
  /* Bell list and account menu: full width under the header, above the tab bar, list scrolls inside */
  .topbar .panel { position: fixed; left: 8px; right: 8px; width: auto; top: calc(var(--top-h, 56px) + 6px);
    max-height: calc(100vh - var(--top-h, 56px) - var(--tabbar-h, 0px) - 20px);
    max-height: calc(100dvh - var(--top-h, 56px) - var(--tabbar-h, 0px) - 20px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .topbar .panel.menu-panel { left: auto; width: min(300px, calc(100vw - 16px)); overflow-y: auto; }
  .notif-panel .panel-head { flex: none; padding: 6px 6px 6px 14px; }
  .notif-panel .panel-x { display: inline-grid; border-color: transparent; background: transparent; }
  .notif-panel .notif-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .notif-panel .notif { padding: 12px 14px; }
  .notif-panel .panel-foot { flex: none; }
  .toasts { max-height: 46vh; }
  dialog.celebrate { width: calc(100% - 24px); }
  .cel-in { padding: 22px 18px 20px; }
  dialog.gallery { overflow-y: auto; }
  dialog.gallery .gal-in { min-height: 100%; }
}
/* Short landscape phones: sheets and panels use the whole height */
@media (max-height: 520px) {
  dialog.modal:not(.gallery):not(.celebrate) { max-height: 100vh; max-height: 100dvh; }
  .gal-stage img { max-height: 70vh; }
}
/* 1.11: header in one row on phones (logo, streak, prize, points, bell, account) */
@media (max-width: 480px) {
  .has-tabbar .bar { flex-wrap: nowrap; gap: 8px; }
  .has-tabbar .logo { font-size: .95rem; flex: none; }
  .has-tabbar .bar-right { gap: 2px; min-width: 0; }
  .has-tabbar .pts { padding: 5px 8px 5px 6px; }
}
@media (max-width: 389px) { .has-tabbar .logo { font-size: .86rem; } .has-tabbar .bar { gap: 6px; } }
@media (max-width: 359px) { .has-tabbar .pts { display: none; } }
/* 1.11: front desk on phones, stats as one-line chips so the first request shows on short screens too */
@media (max-width: 759px) {
  .page.is-tight, #main:has(> #desk) { padding-top: 12px; }
  .desk-stats .dstat { flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; min-width: 0; white-space: nowrap; }
  .desk-stats .dstat:first-child { min-width: 0; }
  .desk-stats .dstat .xp { display: none; }
  .dstat b { font-size: 1.05rem; }
  .dstat b .i { width: 16px; height: 16px; }
  #desk .desk-stats { margin-bottom: 8px; }
  .req-switch { padding: 2px 6px 2px 12px; }
  .req-switch .rs-text h2 { margin: 0; }
  .desk-head .h1 { font-size: 1.35rem; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .desk-short { display: none; }
  .desk-head { align-items: center; }
}

/* ---------- 1.11.1 Chasing marquee lights (SVG ring drawn by app.js) ---------- */
.mq-lights { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.marquee.has-lights::before, .marquee.has-lights::after { display: none; }
.mq-lights rect { fill: none; stroke-linecap: round; }
.mq-bulbs { stroke: rgba(255, 214, 140, .24); stroke-width: 5; }
.mq-halo { stroke: var(--glow); stroke-width: 15; }
.mq-lit { stroke: var(--bulb); stroke-width: 6.5; }
.mq-wave { opacity: .06; }
.marquee { --glow: rgba(246, 178, 60, .32); }
.marquee.won { --glow: rgba(44, 154, 90, .4); }
.marquee.won .mq-bulbs { stroke: rgba(184, 245, 207, .3); }
.marquee:not(.live):not(.won) .mq-wave { display: none; }
@media (max-width: 759px) { .mq-bulbs { stroke-width: 4.5; } .mq-lit { stroke-width: 5.5; } .mq-halo { stroke-width: 13; } }
[data-slot] { display: contents; }

/* ---------- 1.11.1 Guests delete finished requests ---------- */
.old-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin: 0; padding: 8px 8px 8px 14px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); }
.old-bar .btn .i { width: 16px; height: 16px; }
.req-item { position: relative; }
.req-item.can-del .req-row { padding-right: 62px; }
.req-del { position: absolute; top: 12px; right: 12px; margin: 0; z-index: 2; }
.req-del .del-btn { border-color: #EDB9C0; color: var(--bad); background: var(--paper); }
.req-del .del-btn:hover, .req-del .del-btn:focus-visible { background: var(--bad-wash); border-color: var(--bad); }
.side-card .btn.danger .i { width: 16px; height: 16px; }
@media (max-width: 759px) { .old-bar .btn { flex: 1 1 100%; } }

/* ---------- 1.11.2 Calmer motion on the home page and guest pages ----------
   Slower, softer loops so the page feels lively without rushing: the lights (app.js) glow one bulb every 0.7 s,
   the price rolls to a new value with a soft glow, and the attention loops repeat less often. */
.price-xl.tick { animation: glowtick 1.1s ease-out; }
@keyframes glowtick { 0% { text-shadow: 0 0 22px rgba(255, 214, 140, .95), 0 0 2px #fff; transform: scale(1.04); } 100% { text-shadow: none; transform: none; } }
.price-xl .pv { display: inline-block; min-width: 2ch; }
.ticker-track { animation-duration: 90s; }
.demo-feed li { animation: drop .7s cubic-bezier(.22, .8, .3, 1.05) both; }
.offer.fresh, .rq.fresh { animation: land .9s cubic-bezier(.22, .8, .3, 1.08) both; }
.offer.flash { animation: flash 1.6s ease; }
.clock-big.hot { animation: pulse 1.8s ease-in-out infinite; }
.alerts-ic { animation-duration: 4.5s; }
.gift-btn { animation-duration: 4.5s; }
.prize-box { animation-duration: 3s; }
.lastcall > .i { animation-duration: 3.2s; }
.goal.ready { animation-duration: 3.2s; }
@keyframes land { from { transform: translateY(-10px) scale(.985); opacity: 0; } }

/* ---------- 1.12: pin maps on Google or OpenStreetMap ---------- */
.gmap[data-facade] { position: relative; }
.gmap[data-facade] > .map-canvas { position: absolute; inset: 0; }
.gmap[data-facade].map-failed { display: block; background: var(--concrete); }
.gmap.map-loading::before { content: "Loading the map…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; z-index: 0; }
.gmap .leaflet-container { font: inherit; background: #DDE3E9; }
.lf-pin { width: 0 !important; height: 0 !important; overflow: visible; background: none; border: 0; }
.lf-pin .map-pin { position: absolute; left: 0; bottom: 9px; transform: translateX(-50%); cursor: grab; }
.lf-pin.leaflet-marker-dragging .map-pin, .lf-pin:active .map-pin { cursor: grabbing; }
.gmap .leaflet-control-attribution { font-size: 10px; }
.gmap .leaflet-bar a { width: 34px; height: 34px; line-height: 34px; }
details.coords > summary { cursor: pointer; color: var(--pool-deep); font-weight: 600; padding: 4px 0; }
details.coords[open] > summary { margin-bottom: 8px; }

/* ---------- 1.12: Admin shell (side menu, page header) ---------- */
.adm-wrap { width: min(1440px, 100% - 32px); margin-inline: auto; }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.adm-side { position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; }
.adm-menu { display: none; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-group { margin: 12px 10px 4px; font: 700 .7rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-group:first-child { margin-top: 6px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.adm-nav a .i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.adm-nav a span { flex: 1; min-width: 0; }
.adm-nav a:hover { background: var(--concrete); }
.adm-nav a[aria-current="page"] { background: var(--asphalt); color: #fff; }
.adm-nav a[aria-current="page"] .i { color: var(--amber); }
.adm-nav a:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.adm-nav .adm-ext { width: 14px; height: 14px; }
.adm-badge { font: 700 .72rem/18px var(--sans); min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--concrete); color: var(--ink); text-align: center; }
.adm-badge.warn { background: var(--amber); color: var(--ink); }
.adm-badge.bad { background: var(--bad); color: #fff; }
.adm-nav a[aria-current="page"] .adm-badge { background: rgba(255,255,255,.18); color: #fff; }
.adm-nav a[aria-current="page"] .adm-badge.warn { background: var(--amber); color: var(--ink); }
.adm-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.adm-main > .card, .adm-main > form.card, .adm-main > section, .adm-main > div { margin: 0; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.adm-title { min-width: 0; flex: 1 1 340px; }
.adm-title .h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.adm-title p.muted { margin: 6px 0 10px; max-width: 70ch; }
.adm-crumb { margin: 0 0 4px; font: 700 .74rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--pool-deep); }
.adm-crumb span { color: var(--line); margin: 0 4px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-bottom: 10px; }
.adm-actions form { margin: 0; }
.adm-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.seg-tabs .n { font-size: .75rem; font-weight: 700; opacity: .7; }
.adm-search { position: relative; display: inline-flex; align-items: center; flex: 0 1 300px; min-width: 200px; margin: 0; }
.adm-search .i { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.adm-search input { padding-left: 36px; width: 100%; min-height: 40px; border-radius: 999px; }
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mini-stats > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mini-stats b { font: 700 1.5rem/1.1 var(--sans); font-feature-settings: normal; }
.mini-stats span { color: var(--muted); font-size: .84rem; font-weight: 600; }
.mini-stats .warn { background: var(--warn-wash); border-color: #F3D9A0; }
.mini-stats .warn b { color: #6B4B05; }
.adm .card { border-radius: var(--r); }
.adm .card > .h3:first-child, .adm .card > .row:first-child .h3 { font-size: 1.12rem; }
.adm .card.flush { padding: 0; overflow: hidden; }
.adm .card.flush .table-wrap { border-radius: 0; }
.adm .card.flush .tbl th:first-child, .adm .card.flush .tbl td:first-child { padding-left: 18px; }
.adm .card.flush .tbl th:last-child, .adm .card.flush .tbl td:last-child { padding-right: 18px; }
.adm .card .pad { padding: 10px 18px; margin: 0; }
.adm .tbl th { background: #F7F9FB; border-bottom: 1px solid var(--line); padding: 10px 8px; letter-spacing: .02em; }
.adm .tbl td { padding: 11px 8px; border-bottom: 1px solid #EEF1F4; }
.adm .tbl tbody tr:hover td { background: #FAFBFC; }
.adm .tbl tbody tr:last-child td { border-bottom: 0; }
.adm .tbl tr.on td { background: var(--pool-wash); }
.adm .tbl .r { text-align: right; }
.tbl.num td, .an-tbl td { font-variant-numeric: tabular-nums; }
.adm .pill .i { width: 13px; height: 13px; }
.adm a.pill { text-decoration: none; }
.adm .pill:has(.i)::before { display: none; }
.pill.ph-warn { background: var(--warn-wash); color: #6B4B05; }
.pin-tag { margin-top: 4px; background: var(--pool-wash); color: var(--pool-deep); }
.adm .alert { margin-top: 0; display: flex; gap: 8px; align-items: flex-start; }
.adm .alert .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.adm form.card .grid label, .adm .card .grid label { font-size: .9rem; }
.adm fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.adm fieldset > legend.h4 { padding: 0 6px; }

/* ---------- 1.12: Dashboard ---------- */
.an-filters { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.an-filters .chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; }
.an-filters .chip .i { width: 14px; height: 14px; }
.an-period { flex: 1 1 240px; }
.an-now { display: flex; flex-wrap: wrap; gap: 10px; }
.now { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); min-height: 52px; }
a.now:hover { border-color: var(--ink); }
.now b { font: 700 1.35rem/1 var(--sans); font-feature-settings: normal; white-space: nowrap; }
.now b small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.now span { color: var(--muted); font-weight: 600; font-size: .86rem; line-height: 1.25; max-width: 15ch; }
.now .i { width: 18px; height: 18px; flex: none; }
.now.warn { background: var(--warn-wash); border-color: #F3D9A0; } .now.warn .i, .now.warn b { color: #8A5A00; } .now.warn span { color: #6B4B05; }
.now.bad { background: var(--bad-wash); border-color: #F0C1C7; } .now.bad .i, .now.bad b { color: var(--bad); } .now.bad span { color: #7D1F2C; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--shadow); }
.kpi.hero { grid-column: span 2; grid-row: span 2; padding: 20px 22px 14px; }
.kpi-l { margin: 0; font-weight: 700; font-size: .86rem; color: var(--muted); }
.kpi-v { margin: 0; font: 700 1.7rem/1.15 var(--sans); font-feature-settings: normal; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.kpi.hero .kpi-v { font-size: clamp(2.6rem, 4.4vw, 3.4rem); line-height: 1.05; margin-top: 4px; }
.kpi-s { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.kpi.hero .kpi-s { font-size: .92rem; }
.kpi-d { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.kpi-d .i { width: 13px; height: 13px; flex: none; }
.kpi-d.down .i { transform: rotate(180deg); }
.kpi-d b { font-weight: 700; }
.kpi-d.good b, .kpi-d.good .i { color: #1E6B3E; }
.kpi-d.bad b, .kpi-d.bad .i { color: var(--bad); }
.kpi-d span { color: var(--muted); }
.kpi-spark { margin-top: auto; height: 30px; padding-top: 4px; }
.kpi-spark.big { height: auto; flex: 1 1 70px; min-height: 70px; }
.kpi-spark-x { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; margin: 2px 0 0; }
.an-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.an-grid > .card { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.an-card-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.an-card-h .h3 { font-size: 1.08rem; }
.an-card-h p { margin: 2px 0 0; }
.an-empty { margin: 0; padding: 18px; text-align: center; color: var(--muted); background: #F7F9FB; border-radius: 10px; font-size: .9rem; }
.chart { position: relative; height: var(--h, 240px); min-width: 0; }
.chart.heat { height: auto; }
.chart:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.c-svg { display: block; overflow: visible; font-family: var(--sans); }
.c-svg .tnum { font-variant-numeric: tabular-nums; }
.c-legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .84rem; color: var(--ink); }
.c-legend li { display: inline-flex; align-items: center; gap: 6px; }
.c-legend .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.c-legend .k.line { width: 16px; height: 3px; border-radius: 2px; }
.c-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(27,35,51,.4); padding: 8px 10px; min-width: 120px; font-size: .82rem; }
.c-tip p { margin: 0; }
.c-tip-h { color: var(--muted); font-weight: 600; margin-bottom: 4px !important; }
.c-tip-r { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.c-tip-r b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.c-tip-r span { color: var(--muted); }
.c-tip .k { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.c-tip .k.box { height: 10px; width: 10px; border-radius: 2px; }
.c-scale { display: flex; align-items: center; gap: 3px; margin-top: 8px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.c-scale i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.c-scale span { margin: 0 4px; }
.an-table summary { cursor: pointer; color: var(--pool-deep); font-weight: 600; }
.an-table[open] summary { margin-bottom: 8px; }
.an-table .table-wrap { max-height: 320px; overflow: auto; }
.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.funnel li { display: flex; flex-direction: column; gap: 4px; }
.f-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .92rem; }
.f-top b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.f-bar { height: 14px; background: #EEF3FA; border-radius: 0 4px 4px 0; overflow: hidden; }
.f-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.f-0 .f-bar i { background: #84b9f3; } .f-1 .f-bar i { background: #519ced; } .f-2 .f-bar i { background: #257de0; } .f-3 .f-bar i { background: #1b64be; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font-size: .88rem; }
.hbars.wide li { grid-template-columns: minmax(0, 13em) minmax(0, 1fr) 4em; }
.hbars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .hb { height: 12px; display: block; }
.hbars .hb i { display: block; height: 100%; background: #257de0; border-radius: 0 4px 4px 0; }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; }
.meter-cell { white-space: nowrap; }
.meter { display: inline-block; vertical-align: middle; width: 72px; height: 8px; border-radius: 4px; background: #E3EDFB; margin-right: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: #257de0; border-radius: 4px; }
.segbar { display: flex; gap: 2px; height: 28px; }
.segbar i { display: flex; align-items: center; padding: 0 8px; color: #fff; font: 700 .78rem/1 var(--sans); font-style: normal; border-radius: 4px; min-width: 4px; flex-basis: 0; }
.segbar .s1, .legend .s1 { background: #257de0; } .segbar .s2, .legend .s2 { background: #f47230; } .segbar .s3, .legend .s3 { background: #00b894; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .86rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.star-i { width: 13px; height: 13px; color: var(--amber); vertical-align: -2px; fill: var(--amber); }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi.hero { grid-row: auto; }
  .span-8, .span-4, .span-7, .span-5 { grid-column: span 12; }
}
@media (max-width: 1000px) { .adm { grid-template-columns: 200px minmax(0, 1fr); gap: 18px; } }
@media (max-width: 900px) {
  .adm-wrap { width: min(1440px, 100% - 24px); }
  .adm { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .adm-side { position: relative; top: 0; padding: 6px; z-index: 5; }
  .adm-menu { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; background: none; font: 700 1rem var(--sans); color: var(--ink); cursor: pointer; border-radius: 10px; }
  .adm-menu .i { width: 20px; height: 20px; }
  .adm-menu span { flex: 1; text-align: left; }
  .adm-menu .adm-chev { transition: transform .15s; }
  .adm-side.open .adm-menu .adm-chev { transform: rotate(180deg); }
  .adm-nav { display: none; padding: 4px 2px 6px; }
  .adm-side.open .adm-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; }
  .adm-side.open .adm-group { grid-column: 1 / -1; }
  .adm-nav a { min-height: 44px; }
  .adm-head { padding-top: 0; }
  .adm-actions { padding-bottom: 12px; width: 100%; }
  .span-6 { grid-column: span 12; }
  .adm-search { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 1.35rem; }
  .kpi.hero .kpi-v { font-size: 2.6rem; }
  .now { flex: 1 1 calc(50% - 10px); padding: 8px 10px; }
  .an-grid { gap: 12px; }
  .adm-side.open .adm-nav { grid-template-columns: 1fr; }
  .hbars li, .hbars.wide li { grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 3em; }
  .an-card-h { flex-wrap: wrap; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
}

.hotel-cell { min-width: 220px; max-width: 340px; }
.hotel-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hotel-cell .hotel-addr { margin: 2px 0 4px; line-height: 1.4; }
.hotel-cell .edit-link { font-weight: 700; }
.pms-code { display: flex; gap: 6px; align-items: center; }
.pms-code .sm-in { width: 110px; }
.hotel-acts { min-width: 210px; }
.row-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.row-tags .pill { padding: 4px 8px; font-size: .74rem; }
.row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.row-btns form { margin: 0; }
.adm-search .i { top: 50%; transform: translateY(-50%); }
.adm .card.stack > .btn, .adm .card.stack > button.btn { align-self: flex-start; }
.adm form.card > .h3 ~ .h3, .adm form.card > h3.h4 { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
@media (max-width: 560px) { .adm .card.stack > .btn, .adm .card.stack > button.btn { align-self: stretch; } }
@media (max-width: 560px) { .hide-sm { display: none; } .an-filters .seg-tabs a { padding: 8px 11px; } }
.pin-nag.phone-only { display: none; }
@media (max-width: 760px) { .pin-nag.wide-only { display: none; } .pin-nag.phone-only { display: block; font-size: .9rem; } }

/* ---------- 1.13: counter several hotels at once ---------- */
.multi-bar { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; margin: 0 0 12px; background: var(--flamingo-wash); border: 1px solid #F3C3D3; border-radius: var(--r); }
.multi-bar .mb-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 280px; min-width: 0; }
.multi-bar .mb-h { display: inline-flex; align-items: center; gap: 6px; color: #8E1F4A; }
.multi-bar .mb-h .i { width: 18px; height: 18px; }
.multi-bar .mb-wait { color: var(--ink); }
.multi-bar .btn { flex: none; }
.mc-all { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.mc-all label { flex: 1 1 160px; margin: 0; }
.mc-all .money-in input { width: 100%; font-size: 1.3rem; }
.mc-list { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 420px); overflow: auto; }
.mc-row { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.mc-row.off { opacity: .55; }
.mc-row.bad { border-color: var(--bad); background: var(--bad-wash); }
.mc-pick { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; margin: 0; cursor: pointer; }
.mc-pick input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--flamingo-deep); }
.mc-h { display: flex; flex-direction: column; min-width: 0; }
.mc-h b { overflow-wrap: anywhere; }
.mc-h small { color: var(--muted); }
.mc-in input { width: 100%; font-size: 1.25rem; padding: 6px 6px 6px 2px; }
.mc-in > span { font-size: 1.25rem; padding-left: 10px; }
.mc-err { grid-column: 1 / -1; color: var(--bad); font-weight: 600; }
@media (max-width: 420px) { .mc-row { grid-template-columns: minmax(0, 1fr) 108px; padding: 8px 10px; } }
.multi-bar .mb-short { display: none; }
@media (max-width: 760px) {
  .multi-bar { padding: 10px 12px; gap: 8px; margin-bottom: 10px; }
  .multi-bar .mb-long { display: none; }
  .multi-bar .mb-short { display: block; }
  .multi-bar .btn { width: 100%; min-height: 44px; }
}

/* ---------- 1.14: simpler request form ---------- */
.req-form .sub-h { margin: 6px 0 -4px; font-size: 1rem; }
.target-row .target-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.target-row .target-side p { margin: 0; }
@media (min-width: 720px) { .target-row { align-items: center; } }
.more-opts { border: 1.5px dashed var(--line); border-radius: 12px; padding: 0; }
.more-opts > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 14px; min-height: 44px; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary .mo-t { font-weight: 700; color: var(--pool-deep); }
.more-opts > summary .mo-t::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 800; }
.more-opts[open] > summary .mo-t::before { content: "−"; }
.more-opts > .stack { padding: 0 14px 14px; }
.more-opts[open] { border-style: solid; }

/* ---------- 1.14: compact request card on the front desk ---------- */
.rq-stay { margin: 2px 0 0; line-height: 1.45; }
.rq-stay .i { width: 15px; height: 15px; vertical-align: -2px; }
.rq-fast { margin: -2px 0 0; color: var(--muted); }
.rq-fast .i { width: 14px; height: 14px; vertical-align: -2px; color: var(--amber); }
.modal .more-opts { margin-top: 2px; }
@media (max-width: 760px) {
  .rq-target { flex-wrap: nowrap; align-items: center; }
  .rq-target span { font-size: .8rem; line-height: 1.3; }
  .rq .pin-note { font-size: .8rem; }
}

/* ---------- 1.14: autobid setup ---------- */
.ab-form { gap: 14px; }
.ab-sec { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ab-sec .h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1rem; }
.ab-sec .snum { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--asphalt); color: var(--amber); font: 800 .8rem var(--sans); }
.ab-sec label .hint { display: block; font-weight: 400; margin-top: 2px; }
.ab-presets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; min-height: 36px; font: 700 .85rem var(--sans); color: var(--ink); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.on { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.ab-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ab-choices.short { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .ab-choices.short { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ab-choice { display: flex !important; flex-direction: row !important; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; background: #fff; font-weight: 400 !important; }
.ab-choice input { margin-top: 3px; accent-color: var(--pool); width: 18px; height: 18px; flex: none; }
.ab-choice span { display: flex; flex-direction: column; gap: 2px; }
.ab-choice small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.ab-choice:has(input:checked) { border-color: var(--pool); background: var(--pool-wash); }
.ab-preview { background: #F7F9FB; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ab-preview > b { display: flex; gap: 6px; align-items: center; }
.ab-preview .i { width: 18px; height: 18px; color: var(--pool); }
.ab-preview ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.ab-err { color: var(--bad); font-weight: 600; margin: 0; }
@media (min-width: 700px) { dialog.modal:has(.ab-form) { width: min(640px, 100% - 32px); } }

/* ---------- 1.15: cancel from anywhere ---------- */
.req-cancel { display: flex; justify-content: flex-end; margin: 6px 0 0; }
.req-cancel .btn { min-height: 36px; }
.gcancel { margin: 6px 0 0; text-align: right; }
.gcancel .link { color: var(--bad); font-weight: 600; font-size: .9rem; }
@media (max-width: 759px) { .req-cancel .btn { min-height: 44px; } }
