/* ==========================================================================
   Frangi Admin dashboard — mockup styles
   Single dark theme. Colors come only from the tokens below.
   Accent roles:
     --blue    revenue, upsells, B points, primary actions
     --sat     satisfaction points and surveys (dark green)
     --indigo  Guest Feed, secondary series
     --red     brand mark, "now", urgent, open issues, losses
     --green   on-track signals only (solved, approved, positive change)
     --yellow  waiting states (pending plans, plan received)
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #F5F7F6;
  --bg2: #EEF5F2;
  --panel: #FFFFFF;
  --raised: #F5F7F6;
  --hover: #EEF5F2;
  --line: #E3E8E6;
  --line2: #D3DCD9;
  --ink: #10302B;
  --ink2: #3E5A54;
  --muted: #5B726D;
  --faint: #A9B8B4;

  --blue: #2E7FA6;
  --indigo: #B4557A;
  --red: #C8483D;
  --green: #0A6B66;
  --yellow: #E2A03F;
  --sat: #0A6B66;           /* satisfaction points */

  --glow-b: rgba(46, 127, 166, .18);
  --glow-i: rgba(180, 85, 122, .18);
  --glow-r: rgba(200, 72, 61, .2);
  --glow-g: rgba(10, 107, 102, .18);
  --glow-y: rgba(226, 160, 63, .22);
  --glow-s: rgba(10, 107, 102, .18);

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --viewas-h: 0px;   /* no demo bar in Carlos's demo */
  --top-h: 62px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background:
    radial-gradient(1400px 620px at 50% -12%, rgba(147, 162, 160, 0.3), rgba(147, 162, 160, 0.08) 45%, transparent 75%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 6px; }

/* ---------- "View as" bar (mockup only) ---------- */
.viewas {
  position: sticky; top: 0; z-index: 50;
  height: var(--viewas-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  background: #F4F6F5;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.viewas-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.viewas-pick { position: relative; }
.viewas-btn { display: inline-flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 6px; color: var(--ink2); }
.viewas-btn:hover { background: var(--hover); color: var(--ink); }
.viewas-btn b { color: var(--ink); font-weight: 600; }
.viewas-menu {
  position: absolute; top: 26px; left: 0; width: 260px; padding: 6px;
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line2); border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(16, 48, 43, 0.187); animation: popin .18s var(--ease);
}
.viewas-menu button { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; width: 100%; padding: 7px 8px; border-radius: 8px; text-align: left; }
.viewas-menu button:hover, .viewas-menu button[aria-checked="true"] { background: var(--hover); }
.viewas-menu button[aria-checked="true"] b::after { content: " ✓"; color: var(--blue); }
.viewas-menu img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.viewas-menu b { display: block; font-weight: 600; font-size: 13px; color: var(--ink); }
.viewas-menu small { font-size: 11.5px; color: var(--muted); }
.viewas-links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.viewas-links a { color: var(--muted); text-decoration: none; padding: 3px 8px; border-radius: 6px; }
.viewas-links a:hover { color: var(--ink); background: var(--hover); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: var(--viewas-h); z-index: 40;
  background: rgba(246, 247, 247, 0.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1520px; margin: 0 auto; padding: 0 28px; height: var(--top-h); display: flex; align-items: center; gap: 22px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #0A6B66, #F0F2F2); border: 1px solid #0A6B66;
  box-shadow: 0 0 0 4px rgba(200, 72, 61, 0.06), 0 0 22px -6px var(--glow-r);
}
.logo span { font-weight: 700; font-size: 19px; letter-spacing: -.04em; background: linear-gradient(160deg, #C8483D, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.lg { width: 48px; height: 48px; border-radius: 14px; }
.logo.lg span { font-size: 27px; }
.prop { flex: none; display: flex; align-items: center; padding-right: 30px; margin-right: 10px; height: 32px; border-right: 1px solid var(--line2); white-space: nowrap; }
/* Property logo: white on a transparent background. */
.prop img { height: 30px; width: auto; max-width: none; display: block; opacity: .95; }
/* Hotel identity in the top bar: a logo file, or the hotel's name as a wordmark. */
.hotel-logo { height: 30px; width: auto; max-width: none; display: block; opacity: .95; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; line-height: 1; }
.ws-name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.prop.switch { gap: 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.prop.switch .chev { color: var(--muted); font-size: 11px; transition: color .2s; }
.prop.switch:hover .chev { color: var(--ink); }
.prop { text-decoration: none; color: inherit; }
@media (max-width: 1000px) { .prop img, .hotel-logo { height: 21px; } .wordmark { font-size: 16px; } .prop { padding-right: 18px; } }
.tabs { display: flex; gap: 4px; }
.tabs a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--ink2); font-weight: 500; font-size: 13.5px; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color .2s, background .2s; }
.tabs a:hover { color: var(--ink); background: rgba(41, 69, 65, 0.04); }
.tabs a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 500; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--red); color: #10302B; box-shadow: 0 0 12px -2px var(--glow-r); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--blue), var(--indigo), var(--red), var(--blue)); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--raised); }
.menu-wrap { position: relative; }
/* The bell: what's waiting for your approval, one row per guest (ADM-05). */
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--ink); transition: background .15s; }
.bell:hover, .bell[aria-expanded="true"] { background: var(--hover); }
.bell svg { width: 18px; height: 18px; }
.bell .badge { position: absolute; top: -5px; right: -6px; background: var(--red); color: #10302B; box-shadow: 0 0 0 2px var(--bg); }
.pop.npop { width: 420px; padding: 0; max-height: calc(100vh - 120px); overflow: auto; background: #EAEDEC; } /* solid: the page must not show through */
.npop-h { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.npop-h b { font-size: 16px; }
.npop-h span { font-size: 12.5px; color: var(--ink2); }
.npop h6 { margin: 0; padding: 12px 18px 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.nrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: start; padding: 10px 18px; color: inherit; text-decoration: none; }
.nrow:hover { background: var(--hover); }
.nrow .ini { width: 38px; height: 38px; }
.nrow-t b { display: block; font-size: 14px; font-weight: 600; }
.nrow .where { display: block; font-size: 12px; color: var(--muted); }
.nrow .what { display: block; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.nrow .esc-l { color: var(--indigo); font-weight: 500; }
.nrow .due { font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.nrow .due.u { color: var(--red); font-weight: 600; }
.npop-empty { padding: 26px 18px; text-align: center; color: var(--ink2); font-size: 14px; }
.pop {
  position: absolute; top: 46px; right: 0; width: 340px; padding: 8px;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px);
  border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(16, 48, 43, 0.176);
  transform-origin: top right; animation: popin .22s var(--ease);
}
@keyframes popin { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.me { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.me b { display: block; font-size: 14px; }
.me small { color: var(--ink2); font-size: 12px; }
.menu-link { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink2); text-decoration: none; }
.menu-link:hover { background: var(--hover); color: var(--ink); }
.menu-link.danger { color: var(--red); }

/* ---------- page layout ---------- */
main { position: relative; z-index: 1; max-width: 1520px; margin: 0 auto; padding: 0 28px; padding-block: 28px 60px; }
.view { animation: viewin .45s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { margin: 0; font-weight: 300; font-size: 38px; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.head h1 em { font-style: normal; color: var(--blue); }
.head h1 em.red { color: var(--red); }
.sub { color: var(--ink2); margin-top: 8px; font-size: 13.5px; }
.panel { background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)); border: 1px solid var(--line); border-radius: 18px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg2); }
.seg button { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--ink2); font-weight: 500; transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.seg .c { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 5px; }

/* ---------- buttons, chips, form ---------- */
.btn { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line2); color: var(--ink); transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn:hover { background: var(--hover); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #0A6B66; border-color: var(--blue); box-shadow: 0 0 24px -6px var(--glow-b); }
.btn.primary:hover { background: #2E7FA6; }
.btn.danger { color: var(--red); border-color: rgba(200, 72, 61, 0.3); }
.btn.danger:hover { background: rgba(200, 72, 61, 0.08); }
.btn.sm { padding: 7px 13px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.ghostbtn { font-size: 12.5px; color: var(--ink2); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2); }
.ghostbtn:hover { color: var(--ink); border-color: #C4CCCB; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2.5px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--ink2); white-space: nowrap; }
.chip i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--green); border-color: rgba(10, 107, 102, 0.35); }
.chip.pend { color: var(--yellow); border-color: rgba(226, 160, 63, 0.3); }
.chip { text-decoration: none; }
.chip.bad { color: var(--red); border-color: rgba(200, 72, 61, 0.35); }
.chip.bad i { box-shadow: 0 0 6px var(--red); animation: blink 1.2s infinite; }
.chip.info { color: var(--indigo); border-color: rgba(180, 85, 122, 0.35); }
.chip.grey { color: var(--muted); border-color: var(--line2); }
@keyframes blink { 50% { opacity: .35; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--ink2); }
.input { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; font-size: 14px; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 127, 166, 0.15); }
.input.err { border-color: var(--red); }
textarea.input { resize: vertical; min-height: 72px; line-height: 1.5; }
.err-msg { color: var(--red); font-size: 12.5px; }
.ok-msg { color: var(--green); font-size: 12.5px; }

/* ---------- avatars ---------- */
.ini { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; color: var(--ink); background: linear-gradient(150deg, var(--raised), #F0F2F1); border: 1px solid var(--line2); position: relative; overflow: hidden; }
.ini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: transform .35s var(--ease), filter .35s; }
.ini.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 18px; }
.ini.round { border-radius: 50%; }

/* ---------- timeline markers (shared by legend, timeline, detail) ---------- */
.mk { display: inline-block; flex: none; }
.mk.won { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--glow-b); }
.mk.offer { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--blue); }
.mk.lost { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); }
.mk.rec { width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 8px var(--glow-g); }
.mk.recopen { width: 10px; height: 10px; border-radius: 3px; background: var(--red); box-shadow: 0 0 8px var(--glow-r); }
.mk.srv { width: 9px; height: 9px; background: var(--sat); transform: rotate(45deg); border-radius: 1.5px; }
.mk.plan { width: 9px; height: 9px; border: 1.5px solid var(--ink2); transform: rotate(45deg); border-radius: 1.5px; }
.mk.feed { width: 8px; height: 11px; border: 1.5px solid var(--indigo); border-radius: 2.5px; }
.mk.optout { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--red); background: linear-gradient(135deg, transparent 44%, var(--red) 44% 56%, transparent 56%); }
.mk.msg { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.mk.future { width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--muted); }
.mk.end { width: 10px; height: 10px; border-radius: 2px; background: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 12px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- 1 · agents timeline ---------- */
.tl-wrap { overflow-x: auto; border-radius: 18px; width: fit-content; max-width: 100%; }
/* Column widths are set inline by app.js: guest 268px · days × 76px · rewards 190px. */
.tl { display: grid; position: relative; }
.tl-h { display: contents; }
.tl-h > div { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink2); }
/* Clip the sliding days sideways only, so the NOW tag can hang below the header. */
.tl-h .days { padding: 0; position: relative; z-index: 7; overflow-x: clip; overflow-y: visible; }
.tl-h .days .slide { display: grid; position: relative; }
.tl-h .days .slide > div { padding: 12px 0 10px 8px; border-left: 1px solid rgba(41, 69, 65, 0.06); line-height: 1.2; }
.tl-h .days .slide > div b { display: block; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink2); text-transform: none; }
.tl-h .days .slide > div.today { color: var(--blue); }
.tl-h .days .slide > div.today b { color: var(--ink); }
.tl-h .days .slide > div b small { font-family: var(--mono); font-size: 9.5px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: .08em; text-transform: uppercase; }
.tl-h > .tl-hcell { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 8px; }
.tl-h > .tl-hcell.end { justify-content: flex-end; }
.tl-arrow { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line2); box-shadow: 0 6px 16px -6px rgba(16, 48, 43, 0.176); transition: background .2s, border-color .2s; }
.tl-arrow:hover { background: var(--hover); border-color: #C4CCCB; }
.tl-arrow[disabled] { opacity: .3; pointer-events: none; }
.tl-arrow svg { width: 16px; height: 16px; }
.textlink { color: var(--blue); text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.nowtag { position: absolute; bottom: -9px; transform: translateX(-50%); font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: #0A6B66; background: var(--blue); padding: 2px 6px; border-radius: 5px; z-index: 5; box-shadow: 0 0 14px var(--glow-b); line-height: 1.3; }
.sortbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 5px; align-items: center; }
.sortbtn:hover { color: var(--ink); }
.sortbtn[aria-pressed="true"] { color: var(--blue); }
.row { display: contents; cursor: pointer; }
.row > div { border-bottom: 1px solid var(--line); transition: background .25s; min-height: 84px; }
.row:hover > div { background: rgba(41, 69, 65, 0.025); }
.row:hover .ini img { transform: scale(1.08); filter: none; }
.who { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.who b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ink2); white-space: nowrap; flex-wrap: wrap; }
/* One vertical line per day: the 76px matches DAY_W in app.js. */
.track { position: relative; overflow: hidden; }
.track .slide { position: absolute; top: 0; bottom: 0; left: 0; background-image: linear-gradient(90deg, rgba(41, 69, 65, 0.06) 1px, transparent 1px); background-size: 76px 100%; }
/* Both the day header and every row slide together; --tl-x is set on #tl by app.js. */
.tl .slide { transform: translateX(var(--tl-x, 0px)); transition: transform .6s var(--ease); will-change: transform; }
.todaycol { position: absolute; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(46, 127, 166, 0.04), rgba(46, 127, 166, 0.012)); }
.band { position: absolute; top: 50%; height: 32px; transform: translateY(-50%); border-radius: 9px; background: linear-gradient(90deg, rgba(46, 127, 166, 0.075), rgba(180, 85, 122, 0.055)); border: 1px solid rgba(46, 127, 166, 0.13); }
.band.past { background: rgba(41, 69, 65, 0.025); border-color: var(--line2); }
.band.void { background: transparent; border: 1px dashed var(--line2); }
.band em { position: absolute; top: -1px; left: 8px; font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); transform: translateY(-100%); padding-bottom: 3px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.row:hover .band em, .band.void em { opacity: 1; }
.life { position: absolute; top: 50%; height: 0; border-top: 1px dashed var(--faint); }
.life.post { border-top-style: dotted; }
.arrives { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--ink2); letter-spacing: .04em; padding: 4px 9px; border: 1px dashed var(--line2); border-radius: 999px; background: var(--bg2); }
.nowline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--blue); box-shadow: 0 0 10px var(--blue); z-index: 3; pointer-events: none; }
.m { position: absolute; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; animation: pop .5s var(--ease) both; }
.m::after { content: ""; display: block; transition: transform .2s var(--ease); }
.m:hover::after, .m:focus-visible::after { transform: scale(1.45); }
.m.won::after { border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--bg2), 0 0 12px var(--glow-b); }
.m.s1::after { width: 9px; height: 9px; }
.m.s2::after { width: 12px; height: 12px; }
.m.s3::after { width: 15px; height: 15px; }
.m.offer::after { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--blue); background: var(--bg2); }
.m.lost::after { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); background: var(--bg2); }
.m.rec::after { width: 11px; height: 11px; border-radius: 3px; background: var(--green); box-shadow: 0 0 0 2px var(--bg2), 0 0 12px var(--glow-g); }
.m.recopen::after { width: 11px; height: 11px; border-radius: 3px; background: var(--red); box-shadow: 0 0 0 2px var(--bg2), 0 0 14px var(--glow-r); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 7px rgba(200, 72, 61, 0.14), 0 0 18px var(--glow-r); } }
.m.srv::after { width: 10px; height: 10px; background: var(--sat); transform: rotate(45deg); border-radius: 1.5px; box-shadow: 0 0 10px var(--glow-s); }
.m.srv:hover::after, .m.plan:hover::after { transform: rotate(45deg) scale(1.45); }
.m.plan::after { width: 9px; height: 9px; border: 1.5px solid var(--ink2); transform: rotate(45deg); border-radius: 1.5px; background: var(--bg2); }
.m.plan.pend::after { border-color: var(--yellow); box-shadow: 0 0 10px var(--glow-y); }
.m.feed::after { width: 8px; height: 11px; border: 1.5px solid var(--indigo); border-radius: 2.5px; background: var(--bg2); }
.m.optout::after { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--red); background: linear-gradient(135deg, var(--bg2) 44%, var(--red) 44% 56%, var(--bg2) 56%); box-shadow: 0 0 10px var(--glow-r); }
.m.end::after { width: 10px; height: 10px; border-radius: 2px; background: var(--muted); }
.m.msg { width: 14px; height: 14px; margin-top: 12px; }
.m.msg::after { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.m.future::after { width: 10px; height: 10px; border-radius: 50%; border: 1.5px dashed var(--muted); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } }
.m.ico { width: 22px; height: 22px; }
.m.ico::after { display: none; }
.m.ico svg { width: 18px; height: 18px; display: block; transition: transform .2s var(--ease); }
.m.ico:hover svg, .m.ico:focus-visible svg { transform: scale(1.25); }
.m.logo-mk { width: 26px; height: 26px; }
.m.logo-mk .ch-logo { box-shadow: 0 0 0 2px var(--bg2); }
.ch-logo { width: 22px; height: 22px; display: block; border-radius: 6px; }
/* Seaclub logo, white on black. */
.brand-mk { display: grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: #FFFFFF; box-shadow: 0 0 0 1px #D4D9D9; }
.brand-mk img { height: 16px; width: auto; display: block; }
.m.logo-mk:has(.brand-mk) { width: auto; }
.m.door { color: var(--ink); background: var(--bg2); border-radius: 6px; }
.m.door.later { color: var(--muted); }
.m.chat { color: #879794; }
.m.chat svg { width: 15px; height: 19px; }
.m.phone { color: var(--indigo); }
.irect { position: absolute; top: 50%; height: 30px; transform: translateY(-50%); min-width: 10px; border-radius: 7px; z-index: 2; background: rgba(200, 72, 61, 0.16); border: 1px solid rgba(200, 72, 61, 0.6); }
.irect.open { animation: irect 1.6s ease-in-out infinite; }
@keyframes irect { 50% { background: rgba(200, 72, 61, 0.32); border-color: var(--red); box-shadow: 0 0 16px -2px var(--glow-r); } }
.paused-ov { position: absolute; inset: 0; z-index: 6; cursor: pointer; background: repeating-linear-gradient(135deg, rgba(41, 69, 65, 0.07) 0 6px, transparent 6px 14px); }
.paused-ov span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line2); font-size: 12px; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.paused-ov:hover span { opacity: 1; }
.vt.is-paused { background: repeating-linear-gradient(135deg, rgba(41, 69, 65, 0.05) 0 6px, transparent 6px 14px); border-radius: 14px; }
.lg-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; }
.lg-ico svg, .lg-ico .ch-logo { width: 16px; height: 16px; display: block; border-radius: 4px; }
.lg-ico.door { color: var(--ink); }
.lg-ico.chat { color: #879794; }
.lg-ico.chat svg { width: 12px; height: 15px; border-radius: 0; }
.lg-ico.phone { color: var(--indigo); }
.lg-rect { width: 20px; height: 11px; border-radius: 3px; background: rgba(200, 72, 61, 0.25); border: 1px solid var(--red); display: inline-block; }
.pts { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 14px; }
.pts b { font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.pts b.neg { color: var(--red); }
.pts b.zero { color: var(--muted); }
.pts small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.rw { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 16px; font-size: 12.5px; color: var(--ink2); }
.rw b { font-weight: 500; margin-right: 3px; letter-spacing: -.02em; }
.rw .rw-sat { font-size: 19px; color: var(--sat); }
.rw .rw-usd { font-size: 17px; color: var(--blue); }
.stage { color: var(--muted); }
.ups { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; }
.ups b { font-size: 15px; font-weight: 500; }
.ups small { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.ups small.none { color: var(--muted); }

/* Paused, cancelled and no-show agents: everything on their timeline goes grey */
.is-muted .track > :not(.paused-ov), .is-muted .pts, .is-muted .ups, .is-muted .rw { filter: grayscale(1); opacity: .45; }
.is-muted .who .ini img { filter: grayscale(1); opacity: .6; }
.is-muted .who b { color: var(--ink2); }
.vt.is-muted { filter: grayscale(1); opacity: .5; }

/* hover card */
.hc { position: fixed; z-index: 60; width: 292px; pointer-events: none; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(16, 48, 43, 0.187); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .16s, transform .2s var(--ease); }
.hc.on { opacity: 1; transform: none; }
.hc img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hc .b { padding: 12px 14px 13px; }
.hc h4 { margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.hc h4 .muted { font-weight: 400; color: var(--ink2); }
.hc h4 .amt, .hc .when .amt { font-family: var(--mono); font-weight: 500; color: var(--blue); }
.hc-sep { height: 1px; background: var(--line2); }
.hc .when { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.hc .why { margin-top: 8px; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.steps-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.steps-list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 12.5px; color: var(--ink2); line-height: 1.4; position: relative; }
.steps-list li span:first-child { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 1px; }
.steps-list li b { color: var(--ink); font-weight: 600; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc p { margin: 0; color: var(--ink2); font-size: 12.5px; }
.hc .f { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.hc .amt { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.hc .go { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.tip-type { display: flex; align-items: center; gap: 7px; }
.ptchip { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ptchip.b { color: var(--blue); background: rgba(46, 127, 166, 0.1); box-shadow: inset 0 0 0 1px rgba(46, 127, 166, 0.25); }
.ptchip.a { color: #0A6B66; background: rgba(10, 107, 102, 0.12); box-shadow: inset 0 0 0 1px rgba(10, 107, 102, 0.4); }
.ptchip.neg { color: var(--red); background: rgba(200, 72, 61, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 72, 61, 0.28); }
.below { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; align-items: center; }

/* ---------- 2 · agent detail ---------- */
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13px; padding: 6px 10px 6px 6px; border-radius: 999px; margin-bottom: 14px; text-decoration: none; transition: background .2s, color .2s; }
.crumb:hover { background: rgba(41, 69, 65, 0.05); color: var(--ink); }
.dhero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 26px 28px; margin-bottom: 18px; position: relative; overflow: hidden; }
.dhero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(46, 127, 166, 0.1), transparent 65%); pointer-events: none; }
.idrow { display: flex; align-items: center; gap: 18px; }
.dhero h1 { margin: 0 0 6px; font-weight: 300; font-size: 44px; letter-spacing: -.035em; line-height: 1; }
.dmeta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--ink2); font-size: 13.5px; align-items: center; margin-top: 12px; }
.dmeta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.kpis { display: grid; grid-template-columns: repeat(4, auto); position: relative; z-index: 1; }
.kpi { padding: 0 22px; border-left: 1px solid var(--line2); }
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi .klabel { font-size: 12.5px; color: var(--ink2); }
.kpi .v { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.kpi .v small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 3px; }
.kpi .v.a { color: var(--sat); }
.kpi .v.b { color: var(--blue); }
.kpi .s { font-size: 12px; color: var(--ink2); margin-top: 4px; font-family: var(--mono); }
.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.03); font-size: 13.5px; color: var(--ink2); }
.banner b { color: var(--ink); font-weight: 600; }
.banner .sp { flex: 1; }
.prompt { margin-bottom: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(120deg, var(--red), var(--indigo)) border-box; box-shadow: 0 0 0 4px rgba(200, 72, 61, 0.08), 0 20px 40px -20px rgba(180, 85, 122, 0.45); animation: viewin .3s var(--ease); }
.prompt h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.prompt p { margin: 0 0 14px; color: var(--ink2); font-size: 14px; max-width: 70ch; }
.prompt-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prompt-row .input { flex: 1; min-width: 220px; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #10302B; box-shadow: 0 0 24px -6px var(--glow-r); }
.btn.danger-solid:hover { background: #C8483D; }
.banner.red { border-color: rgba(200, 72, 61, 0.35); background: rgba(200, 72, 61, 0.06); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
/* Same columns as a timeline row, so the calendar icon sits on the vertical line. */
.dayh { display: grid; grid-template-columns: 62px 30px minmax(0, 1fr); align-items: center; margin: 30px 0 12px; position: relative; }
.dayh::before { content: ""; position: absolute; left: 76px; top: -30px; bottom: -12px; width: 1px; background: var(--line2); }
.vt > .dayh:first-child::before { top: 50%; }
.dayh .cal { width: 28px; height: 28px; justify-self: center; color: var(--ink); display: grid; place-items: center; background: var(--bg); border-radius: 8px; position: relative; z-index: 1; }
.dayh .cal svg { width: 22px; height: 22px; }
.dayh h3 { padding-left: 10px; }
.dayh h3 span { font-weight: 400; color: var(--ink2); }
.dayh:first-child { margin-top: 0; }
.dayh .d { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.dayh .d.pre { color: var(--ink2); }
.dayh .d.post { color: var(--indigo); }
.dayh h3 { margin: 0; font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
.vi { display: grid; grid-template-columns: 62px 30px minmax(0, 1fr); align-items: start; position: relative; animation: viewin .5s var(--ease) both; }
.vi::before { content: ""; position: absolute; left: 76px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line2), var(--line)); }
.vi .t { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 17px; text-align: right; padding-right: 4px; }
.vi .dot { display: grid; place-items: center; padding-top: 19px; position: relative; z-index: 1; }
.vi .dot .mk { box-shadow: 0 0 0 4px var(--bg); }
.dot-ico { display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); border-radius: 6px; }
.dot-ico svg { width: 18px; height: 18px; display: block; }
.dot-ico.chan .ch-logo { width: 28px; height: 28px; border-radius: 7px; }
.dot-ico.chan .brand-mk { box-shadow: none; height: 26px; }
.dot-ico.chan .brand-mk img { height: 18px; }
.dot-ico.door { color: var(--ink); }
.dot-ico.door.later { color: var(--muted); }
.dot-ico.chat { color: #879794; }
.dot-ico.chat svg { width: 13px; height: 16px; }
.dot-ico.phone { color: var(--indigo); }
.vi.line { align-items: center; }
.vi.line .t, .vi.line .dot { padding-top: 0; }
.vi.line .line-item { padding: 7px 0; }
.card { background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 15px; margin: -4px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; transition: border-color .25s; }
.card:hover { border-color: var(--line2); }
.card.withimg { grid-template-columns: minmax(0, 1fr) 210px; }
.card.withimg img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line2); }
.card .top1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .top1 .sp { flex: 1; }
.card .ty { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.card h4 { margin: 8px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card p { margin: 0; color: var(--ink2); font-size: 13.5px; max-width: 64ch; }
.card .amtl { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.card .amtl b { font-family: var(--mono); font-weight: 500; font-size: 17px; color: var(--blue); }
.card .amtl b.lost { color: var(--muted); text-decoration: line-through; }
.card .amtl span { font-size: 12.5px; color: var(--muted); }
.card .why { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 10px; }
/* Money and points sit at the bottom of a card, left-aligned. */
.card .foot { margin-top: 10px; font-size: 13px; color: var(--ink2); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.money { font-size: 20px; font-weight: 300; letter-spacing: -.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.money.muted { color: var(--ink2); }
.money.lost { color: var(--muted); text-decoration: line-through; }
.money.sat { color: #0A6B66; }
.money.neg { color: var(--red); }
.card.future { background: transparent; border-style: dashed; border-color: var(--line2); opacity: .72; }
.card.future h4 { color: var(--ink2); font-weight: 500; }
.card.alert { border-color: rgba(200, 72, 61, 0.35); box-shadow: 0 0 30px -12px var(--glow-r); }
.line-item { padding: 3px 0 10px; color: var(--ink2); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.line-item code { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.line-item .by { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.line-item.feed { color: var(--indigo); }
.line-item.future { color: var(--muted); }
/* Messages sent and received, inside a timeline item: the guest on the left, Seaclub on the right. */
.vi.line.with-thread { align-items: start; }
.vi.line.with-thread .t { padding-top: 8px; }
.vi.line.with-thread .dot { padding-top: 5px; }
.vi.line.with-thread .line-item { padding-bottom: 6px; }
.thread { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; max-width: 560px; }
.vi.line .thread { margin: 0 0 14px; }
.tb { max-width: 82%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-line; }
.tb small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 2px; }
.tb.guest { align-self: flex-start; background: var(--raised); border: 1px solid var(--line2); border-bottom-left-radius: 4px; }
.tb.team { align-self: flex-end; background: #E2E6E5; border: 1px solid var(--line2); border-bottom-right-radius: 4px; }
/* "Approved by Dana on 22 Sep" under every message sent to a guest. */
.appr { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.tb .appr, .bubble .appr { text-align: right; }
.sla { margin-top: 12px; }
.sla .bar { height: 6px; border-radius: 3px; background: var(--line2); position: relative; }
.sla .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--green); box-shadow: 0 0 10px var(--glow-g); transform-origin: left; animation: grow 1s var(--ease) .2s both; }
.sla .bar i.late { background: var(--yellow); box-shadow: 0 0 10px var(--glow-y); }
.sla .bar i.open { background: var(--red); box-shadow: 0 0 10px var(--glow-r); }
.sla .bar u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.sla .lbls.top { margin: 0 0 7px; }
.sla .lbls { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink2); margin-top: 7px; gap: 10px; flex-wrap: wrap; }
@keyframes grow { from { transform: scaleX(0); } }
.nowv { display: grid; grid-template-columns: 62px 30px 1fr; align-items: center; margin: 8px 0 14px; }
.nowv .t { font-family: var(--mono); font-size: 11.5px; color: var(--blue); text-align: right; padding-right: 4px; }
.nowv .dot { display: grid; place-items: center; }
.nowv .dot i { width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--blue); animation: blink 2s infinite; }
.nowv .ln { height: 1px; background: linear-gradient(90deg, var(--blue), transparent); position: relative; }
.nowv .ln span { position: absolute; left: 0; top: -9px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--blue); background: var(--bg); padding-right: 10px; }
.rail { position: sticky; top: calc(var(--viewas-h) + var(--top-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.rail .panel { padding: 18px 18px 16px; }
.rail h5 .rail-t { font-size: 15px; font-weight: 600; color: var(--ink); }
.rail h5 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12px; }
.kv dd { margin: 0; color: var(--ink); }
/* Full Guest Plan in the agent page's rail: the first lines fade out until "See full Guest Plan" opens it. */
.plan-full { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); max-height: 150px; overflow: hidden; font-size: 13px; line-height: 1.5; }
.plan-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
.plan-full.open { max-height: none; }
.plan-full.open::after { display: none; }
.plan-full h6 { margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.plan-full h6:first-child { margin-top: 0; }
.plan-full p { margin: 0 0 8px; color: var(--ink2); }
.pf-day { margin-top: 10px; }
.plan-full h6 + .pf-day { margin-top: 0; }
.pf-day > b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.pf-ev { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 3px 0; color: var(--ink2); }
.pf-ev .t { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 1px; }
.pf-ev.done { opacity: .55; }
.pf-ev .if { display: block; font-size: 11.5px; font-weight: 600; color: var(--indigo); }
.textbtn { margin-top: 10px; padding: 0; font-size: 13px; font-weight: 500; color: var(--blue); background: none; border: 0; cursor: pointer; }
.textbtn:hover { text-decoration: underline; }
.feedbox { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.qr-btn { display: block; border-radius: 8px; transition: transform .2s var(--ease), box-shadow .2s; }
.qr-btn:hover { transform: scale(1.04); box-shadow: 0 0 0 2px var(--blue); }
.qr { width: 76px; height: 76px; border-radius: 8px; display: block; }
.feedbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.modal-veil { position: fixed; inset: 0; z-index: 90; background: rgba(16, 48, 43, 0.132); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 400px; padding: 26px 26px 22px; text-align: center; animation: popin .25s var(--ease); }
.modal h2 { margin: 0 0 4px; font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.modal .hint { margin: 0 0 18px; }
.qr-lg { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto; border-radius: 12px; }
.modal-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.feedurl { font-family: var(--mono); font-size: 12px; color: var(--indigo); word-break: break-all; }
.feedstats { display: flex; gap: 14px; font-size: 12px; color: var(--ink2); margin-top: 8px; flex-wrap: wrap; }
.feedstats b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.feeditems { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.feeditem { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.feeditem img { width: 56px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; display: block; }
.feeditem .state { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feeditem .state.want { color: var(--blue); }
.opens { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.opens-t { font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; }
.opens ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 160px; overflow: auto; }
.opens li { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.feeditem .state.hid { color: var(--faint); text-decoration: line-through; }

/* ---------- 3 · issues ---------- */
.issues { overflow-x: auto; }
.itable { width: 100%; border-collapse: collapse; min-width: 820px; }
.itable th { text-align: left; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink2); padding: 12px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.itable td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; white-space: nowrap; }
.itable .ini { width: 30px; height: 30px; border-radius: 10px; }
.itable tr.irow { cursor: pointer; transition: background .2s; }
.itable tr.irow:hover td, .itable tr.irow[aria-expanded="true"] td { background: rgba(41, 69, 65, 0.025); }
.itable .guest { display: flex; align-items: center; gap: 10px; }
.itable .guest b { display: block; font-weight: 600; }
.itable .guest small { color: var(--ink2); font-size: 12px; }
.itable .title b { font-weight: 600; display: block; font-size: 18px; letter-spacing: -.015em; }
.title-row { display: flex; align-items: center; gap: 12px; }
.warn-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--muted); background: rgba(41, 69, 65, 0.04); }
.warn-ico svg { width: 18px; height: 18px; }
.warn-ico.sev-late { color: var(--yellow); background: rgba(226, 160, 63, 0.08); }
.warn-ico.sev-critical { color: var(--red); background: rgba(200, 72, 61, 0.1); box-shadow: 0 0 8px -4px rgba(200, 72, 61, 0.35); }
.itable .title small { color: var(--muted); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.timer { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.timer.sev-late { color: var(--yellow); }
.timer.sev-critical { color: var(--red); }
/* The note under the timer wraps (up to 3 lines) instead of running into the Owner column. */
.itable td.time-cell { white-space: normal; width: 270px; min-width: 230px; }
.time-note { font-size: 12.5px; color: var(--ink2); line-height: 1.4; margin-top: 3px; }
.timer.done { color: var(--muted); font-size: 13px; }
.limit { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.limit.over { color: var(--red); }
.steps { display: flex; gap: 4px; align-items: center; }
.steps i { width: 16px; height: 4px; border-radius: 2px; background: var(--line2); }
.steps i.on { background: var(--ink2); }
.steps.s-solved i.on { background: var(--green); }
.stlabel { font-size: 12px; color: var(--ink2); margin-top: 6px; }
.idetail td { white-space: normal; padding: 0 14px 18px; background: rgba(41, 69, 65, 0.025); }
/* width: 0 + min-width: 100% keeps the expanded details from widening the table. */
.idetail-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding: 6px 0 0 0; width: 0; min-width: 100%; }
.ilog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ilog li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; font-size: 13px; color: var(--ink2); }
.ilog li span:first-child { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.resolve { display: flex; flex-direction: column; gap: 10px; }
.resolve .row-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.resolve .row-btns.left { justify-content: flex-start; }
.solve-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.03); }
.solve-box p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.resolve-label { font-size: 14px; font-weight: 600; }
.resolve .hint { margin: 0; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(10, 107, 102, 0.06); box-shadow: inset 0 0 0 1px rgba(10, 107, 102, 0.22); font-size: 13.5px; }
.note small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11px; margin-top: 6px; }

/* ---------- 4 · approvals on the agent page ----------
   "Waiting for your approval" sits between the reservation details and the timeline. Its large title
   and blue frame keep it apart from the cards around it. */
.apb { border-radius: 22px; border: 1px solid rgba(46, 127, 166, 0.4); background: linear-gradient(180deg, rgba(46, 127, 166, 0.09), rgba(46, 127, 166, 0.02) 220px); padding: 26px 28px 28px; margin: 4px 0 30px; box-shadow: 0 0 60px -30px var(--glow-b); animation: viewin .4s var(--ease) both; }
.apb-h { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.apb-h h2 { margin: 0; font-size: 32px; font-weight: 400; letter-spacing: -.025em; line-height: 1.1; }
.apb-n { font-size: 15px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--blue); color: #0A6B66; font-weight: 600; display: grid; place-items: center; }
.apb-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.apb-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--viewas-h) + var(--top-h) + 20px); }
.apb-item { text-align: left; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 15px 16px; color: var(--ink); font-size: 14.5px; font-weight: 600; transition: border-color .15s; }
.apb-item:hover { border-color: rgba(41, 69, 65, 0.22); }
.apb-item[aria-selected="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.apb-item.mine { color: var(--ink2); font-weight: 500; }
.apb-detail { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 22px 26px 26px; min-width: 0; }
.apb-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.apb-dh h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.apb-dh .sub { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.apb-detail .narrow { max-width: none; margin: 0; }
.apb-done { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); margin: 4px 0 26px; font-size: 14px; color: var(--ink2); animation: viewin .3s var(--ease) both; }
.apb-done i { width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 107, 102, 0.15); color: var(--green); display: grid; place-items: center; font-style: normal; font-size: 13px; }
/* Escalated messages: indigo, because yellow only marks plan changes. */
.warn.escn { background: rgba(180, 85, 122, 0.07); box-shadow: inset 0 0 0 1px rgba(180, 85, 122, 0.3); }
.warn.escn i { color: var(--indigo); }
.count { font-family: var(--mono); text-align: right; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); }
.count b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.count small { font-size: 10.5px; color: var(--ink2); letter-spacing: .06em; text-transform: uppercase; }
.count.urgent { border-color: rgba(200, 72, 61, 0.3); background: rgba(200, 72, 61, 0.06); }
.count.urgent b { color: var(--red); }
.sec { margin-top: 24px; }
.sec h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.sec .lede { margin: 0 0 12px; font-size: 13.5px; color: var(--ink2); line-height: 1.5; max-width: 68ch; }
/* Changes since the previous plan version: a soft yellow wash, readable on black. */
.chg { background: rgba(226, 160, 63, 0.08); border-radius: 8px; }
.bul li.chg { padding: 7px 10px; margin: 0 -10px; }
tr.chg { background: none; }
tr.chg td { background: rgba(226, 160, 63, 0.08); }
/* Removed items are struck through entirely. The note is inline-block so the line doesn't cross it. */
tr.chg-removed td, .bul li.chg-removed > span:last-child, .msg-row.chg-removed > div { text-decoration: line-through; text-decoration-color: rgba(41, 69, 65, 0.55); color: var(--ink2); }
.chg-note { display: inline-block; width: 100%; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--yellow); text-decoration: none; }
.msg-tl { display: flex; flex-direction: column; }
.msg-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.msg-row .w { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); padding-top: 2px; }
.msg-row b { font-weight: 600; font-size: 13.5px; }
.msg-row p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.sec > .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sec > .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.bul li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 13.5px; }
.bul li > span:first-child { color: var(--muted); font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; }
table.pt { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
table.pt th { text-align: left; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.pt td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.pt td.n { font-family: var(--mono); color: var(--muted); width: 28px; }
table.pt td.p { font-family: var(--mono); white-space: nowrap; }
table.pt td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
table.pt tr.off td { opacity: .38; }
table.pt tr.off td.o b { text-decoration: line-through; }
table.pt .r { text-align: right; }
.tog { width: 34px; height: 20px; border-radius: 999px; background: var(--blue); position: relative; box-shadow: 0 0 10px -2px var(--glow-b); transition: background .2s; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 17px; width: 14px; height: 14px; border-radius: 50%; background: #F2F4F4; transition: left .2s var(--ease); }
.tog[aria-checked="false"] { background: var(--line2); box-shadow: none; }
.tog[aria-checked="false"]::after { left: 3px; background: var(--muted); }
.tog.lg { width: 52px; height: 30px; }
.tog.lg::after { top: 4px; left: 26px; width: 22px; height: 22px; }
.tog.lg[aria-checked="false"]::after { left: 4px; }
.cond { margin-top: 10px; font-size: 13px; color: var(--ink2); padding: 10px 12px; border-radius: 10px; background: rgba(41, 69, 65, 0.02); border: 1px solid var(--line); }
.cond code { font-family: var(--mono); font-size: 11px; color: var(--indigo); }
.tline { display: grid; grid-template-columns: 108px 110px 1fr; gap: 4px 12px; font-size: 13px; }
.tline span { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tline .w { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.tline .ty { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.diff { display: flex; flex-direction: column; gap: 6px; }
.diff div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13.5px; padding: 9px 12px; border-radius: 10px; }
.diff .add { background: rgba(10, 107, 102, 0.07); box-shadow: inset 0 0 0 1px rgba(10, 107, 102, 0.22); }
.diff .rem { background: rgba(200, 72, 61, 0.06); box-shadow: inset 0 0 0 1px rgba(200, 72, 61, 0.2); }
.diff .mov { background: rgba(180, 85, 122, 0.05); box-shadow: inset 0 0 0 1px rgba(180, 85, 122, 0.2); }
.diff b { font-family: var(--mono); font-weight: 500; }
.diff .add b { color: var(--green); }
.diff .rem b { color: var(--red); }
.diff .mov b { color: var(--indigo); }
.diff small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.warn { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(200, 72, 61, 0.06); box-shadow: inset 0 0 0 1px rgba(200, 72, 61, 0.3); font-size: 13.5px; margin-top: 18px; }
.warn i { font-style: normal; color: var(--red); font-weight: 700; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.bubble small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.bubble.guest { align-self: flex-start; background: var(--raised); border: 1px solid var(--line2); border-bottom-left-radius: 4px; }
.bubble.team { align-self: flex-end; background: #E2E6E5; border: 1px solid var(--line2); border-bottom-right-radius: 4px; }
.draft-edit { min-height: 110px; font-size: 14.5px; line-height: 1.55; }
.narrow { max-width: 580px; margin: 0 auto; }
.inline-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.inline-actions .drop-menu { bottom: auto; top: 46px; left: auto; right: 0; }
.drop { position: relative; }
.drop-menu { position: absolute; bottom: 46px; left: 0; min-width: 220px; padding: 6px; background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 24px 50px -18px rgba(16, 48, 43, 0.187); animation: popin .18s var(--ease); }
.drop-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13px; }
.drop-menu button:hover { background: var(--hover); }
.drop-menu small { display: block; color: var(--muted); font-size: 11.5px; }
.empty { padding: 80px 30px; text-align: center; color: var(--ink2); }
.empty b { display: block; font-size: 22px; font-weight: 300; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.empty-text { max-width: 52ch; margin: 0 auto 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink2); }
.ring { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(10, 107, 102, 0.35); box-shadow: 0 0 30px -6px var(--glow-g); color: var(--green); font-size: 26px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 32px; height: 30px; color: var(--ink2); font-size: 16px; }
.stepper button:hover { background: var(--hover); color: var(--ink); }
.stepper span { min-width: 44px; text-align: center; font-family: var(--mono); font-size: 13px; }

/* ---------- 5 · stats ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sgrid .panel { padding: 20px 22px; min-width: 0; }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.bign { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.bign .v { font-size: 54px; font-weight: 300; letter-spacing: -.045em; line-height: 1; margin-top: 8px; }
.bign .v sup { font-size: 22px; vertical-align: 22px; margin-right: 2px; color: var(--ink2); font-weight: 400; }
.bign .v.accent { background: linear-gradient(160deg, #294541, #B4557A 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bign .d { font-family: var(--mono); font-size: 12px; margin-top: 8px; color: var(--ink2); }
.up { color: var(--green); }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ph h3 { margin: 6px 0 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.bigv { font-size: 36px; font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.bigv small { font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.bigv.a { color: var(--sat); }
.bigv.b { color: var(--blue); }
.chartbox { position: relative; min-width: 0; }
.chartbox svg { display: block; width: 100%; height: auto; overflow: visible; }
.ctip { position: absolute; pointer-events: none; background: rgba(255, 255, 255, 0.97); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s; z-index: 5; }
.ctip b { font-family: var(--mono); font-weight: 500; }
.ctip .r { display: flex; align-items: center; gap: 7px; margin-top: 3px; color: var(--ink2); }
.ctip .r i { width: 10px; height: 2px; border-radius: 1px; }
.rate { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.rate .lab { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; gap: 8px; }
.rate .lab b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.rbar { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.rbar i { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: grow 1s var(--ease) both; }
.cats { display: flex; flex-direction: column; gap: 9px; position: relative; }
.cat { display: grid; grid-template-columns: 92px 1fr 62px; gap: 10px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.cat span { color: var(--ink2); }
.cat .rbar { height: 10px; background: transparent; }
.cat .rbar i { background: linear-gradient(90deg, rgba(46, 127, 166, 0.35), var(--blue)); border-radius: 0 4px 4px 0; }
.cat b { font-family: var(--mono); font-weight: 500; text-align: right; }
.cat:hover span, .cat:hover b { color: var(--ink); }
.minirow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.minirow div b { display: block; font-size: 20px; font-weight: 400; letter-spacing: -.02em; margin-top: 3px; }
.minirow div small { font-size: 11.5px; color: var(--muted); }
.dist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dist div { display: grid; grid-template-columns: 28px 1fr 30px; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.dist .rbar { height: 7px; }
.dist .rbar i { background: var(--sat); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.top3 { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.top3 a { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 9px; font-size: 13px; color: inherit; text-decoration: none; }
.top3 a:hover { background: var(--hover); }
.top3 .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Guest Plan approval: same sections as the mobile Guest Plan Approver. */
.howto { margin: 16px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink2); max-width: 74ch; }
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; margin: 0; }
.res > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 13.5px; }
.res dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.res dd { margin: 0; }
.booking-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.03); font-size: 14.5px; font-style: italic; }
.booking-note span { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.careful { margin-top: 4px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; background: rgba(180, 85, 122, 0.07); border: 1px solid rgba(180, 85, 122, 0.25); }
.careful.chg { background: rgba(226, 160, 63, 0.08); border-color: rgba(226, 160, 63, 0.25); }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.why-list li { font-size: 13.5px; line-height: 1.5; padding-left: 14px; position: relative; }
.why-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pday { margin-top: 20px; }
.pday-h { display: flex; align-items: center; gap: 10px; padding: 0 10px 8px; border-bottom: 1px solid var(--line2); }
.pday-h b { font-size: 15px; font-weight: 600; }
.pday-h small { color: var(--muted); font-size: 12.5px; }
.pday-h .moment { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; }
.pday-h .door { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line2); }
.pday-h .door svg { width: 14px; height: 14px; }
.pev { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 10px; }
.pev:last-child { border-bottom: 0; }
.pev .t { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); padding-top: 2px; }
.pev .b { display: flex; gap: 14px; align-items: flex-start; }
.pev .x { flex: 1; min-width: 0; }
.pev .x p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.pev .if { display: block; font-size: 12px; font-weight: 600; color: var(--indigo); margin-bottom: 2px; }
.pev .thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex: none; }
.see { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.see svg { width: 10px; height: 12px; }
.pev.has-msg { cursor: pointer; transition: background .15s; }
.pev.has-msg:hover { background: var(--hover); }
.pev.has-msg:hover .see, .pev.has-msg[aria-expanded="true"] .see { color: var(--blue); }
.pev.has-msg[aria-expanded="true"] { background: rgba(46, 127, 166, 0.07); box-shadow: inset 2px 0 0 var(--blue); }
.pev.chg-removed .x p { text-decoration: line-through; text-decoration-color: rgba(41, 69, 65, 0.55); color: var(--ink2); }
.pev.chg-removed .thumb { filter: grayscale(1); opacity: .5; }
.msgpop { position: fixed; z-index: 70; width: 300px; background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(16, 48, 43, 0.187); animation: viewin .18s var(--ease); }
.msgpop::before { content: ""; position: absolute; left: 24px; top: -6px; width: 10px; height: 10px; background: #EAEDEC; border-left: 1px solid var(--line2); border-top: 1px solid var(--line2); transform: rotate(45deg); }
.msgpop.up::before { top: auto; bottom: -6px; border: 0; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.mp-h { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 9px; border-bottom: 1px solid var(--line); }
.mp-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.mp-ch svg { width: 11px; height: 13px; color: var(--blue); }
.mp-t { font-family: var(--mono); font-size: 11px; color: var(--ink2); }
.mp-b { padding: 12px; display: flex; flex-direction: column; }
.bub { align-self: flex-end; max-width: 94%; padding: 9px 12px; background: #E2E6E5; border: 1px solid var(--line2); border-radius: 14px; border-bottom-right-radius: 4px; font-size: 13.5px; line-height: 1.45; }
.bub b { font-weight: 600; }
.bub .lnk { color: var(--blue); word-break: break-all; }
.ready { margin-top: 30px; padding: 22px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.02); }
.ready textarea { width: 100%; }
.ready-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn.big { padding: 13px 26px; font-size: 15px; }
@media (max-width: 900px) { .res { grid-template-columns: 1fr; } .pev { grid-template-columns: 54px 1fr; } }

/* Hotels: the welcome page for accounts with more than one hotel. */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hcard { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.hcard:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 20px 40px -24px rgba(16, 48, 43, 0.198); }
.hcard-logo { height: 120px; display: grid; place-items: center; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.hcard-logo .hotel-logo { height: 52px; }
.hcard-logo .wordmark { font-size: 34px; }
.hcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hcard-body h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.hcard-glance { list-style: none; margin: 12px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink2); }
.hcard-glance b { font-size: 16px; font-weight: 500; color: var(--ink); margin-right: 4px; }
.hcard-glance b.red { color: var(--red); }
.hcard-go { margin-top: auto; color: var(--blue); font-weight: 600; font-size: 13.5px; }
.hcard-add { align-items: center; justify-content: center; gap: 8px; min-height: 280px; padding: 24px; border: 1px dashed var(--line2); border-radius: 18px; color: var(--ink2); background: rgba(41, 69, 65, 0.015); }
.hcard-add:hover { border-color: #C4CCCB; color: var(--ink); }
.hcard-add .plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 300; border: 1px solid var(--line2); }
.hcard-add b { font-size: 16px; color: var(--ink); }
.ws { margin-bottom: 30px; }
.ws-t { margin: 0 0 14px; font-size: 21px; font-weight: 400; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 10px; }
.prop-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.03); }
.prop-strip-logo { width: 92px; height: 44px; border-radius: 10px; background: #FFFFFF; display: grid; place-items: center; }
.prop-strip-logo .hotel-logo { height: 24px; }
.prop-strip-logo .wordmark { font-size: 16px; }
.prop-strip b { display: block; font-weight: 600; font-size: 15px; }
.prop-strip span { font-size: 12.5px; color: var(--ink2); }
.prop-strip-time { text-align: right; }
.prop-strip-time b { font-family: var(--mono); font-weight: 500; }
.sample-note { margin: -8px 0 16px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; color: var(--ink2); background: rgba(41, 69, 65, 0.04); border: 1px dashed var(--line2); }
.modal-text { margin: 0 0 18px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.contact { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.contact > div { display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); }
.contact b { font-weight: 500; user-select: all; }
.stats-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.select select { appearance: none; background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%239A9EA3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 36px 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.select select:focus { outline: none; border-color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stats: one column per goal. */
.goals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.goal { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.goal-t { margin: 0 0 2px; font-size: 22px; font-weight: 400; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.goal-t::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.sat-t::before { background: var(--sat); box-shadow: 0 0 10px var(--glow-s); }
.rev-t::before { background: var(--blue); box-shadow: 0 0 10px var(--glow-b); }
.stat { padding: 20px 22px; }
.stat h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stat-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink2); font-size: 14px; }
.stat-num { font-size: 34px; font-weight: 300; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-num.sat { color: #0A6B66; }
.stat-num.rev { color: var(--blue); }
.stat-num.small { font-size: 28px; }
.stat-num.xl { font-size: 52px; letter-spacing: -.045em; }
.hero-stat .stat-num { font-size: 46px; }
.hero-stat .stat-num.small { font-size: 34px; }
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.stat-what { margin: 6px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.stat-explain { margin: 14px 0 12px; font-size: 13px; color: var(--ink2); line-height: 1.5; max-width: 62ch; }
.stat-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.sbars { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink2); }
.sbar .rbar { height: 8px; }
.sbar .rbar i { box-shadow: none; }
.sbar b { font-weight: 500; text-align: right; color: var(--ink); font-size: 12.5px; }
.stat .cats { margin-top: 14px; }

/* ---------- 6 · admin and account ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.box { padding: 24px 26px; }
.box h2 { margin: 0 0 6px; font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.box p { margin: 0; color: var(--ink2); font-size: 13.5px; max-width: 60ch; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(41, 69, 65, 0.02); }
.toggle-row b { font-size: 16px; font-weight: 600; display: block; }
.toggle-row small { color: var(--ink2); font-size: 12.5px; }
.state-on { color: var(--green); }
.state-off { color: var(--red); }
.confirm { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(200, 72, 61, 0.35); background: rgba(200, 72, 61, 0.06); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.confirm .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
.log { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 18px; }
.log th { text-align: left; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.log td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink2); }
.log td:first-child { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.log .person { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.log .person img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; max-width: 420px; }
.profile { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.profile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line2); }
.profile b { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.profile small { color: var(--ink2); font-size: 13px; }

/* ---------- 7 · full-page screens: login, signed out, 404, no access ---------- */
.screen { min-height: calc(100vh - var(--viewas-h)); display: grid; place-items: center; padding: 40px 16px; }
.screen-card { width: 100%; max-width: 400px; padding: 34px 32px 30px; animation: viewin .45s var(--ease); }
.screen-card h1 { margin: 22px 0 6px; font-weight: 300; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.screen-card p { margin: 0; color: var(--ink2); font-size: 14px; }
.screen-card .form { max-width: none; }
.screen-card .btn { width: 100%; }
.screen-logo { height: 44px; width: auto; display: block; }
.screen-logo.center { margin: 0 auto; }
.screen-card .alt { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12.5px; }
.screen-card .alt a { color: var(--ink2); text-decoration: none; }
.screen-card .alt a:hover { color: var(--ink); }
.big-code { font-family: var(--mono); font-size: 76px; font-weight: 400; letter-spacing: -.05em; line-height: 1; background: linear-gradient(160deg, #C8483D, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-card.center { text-align: center; }
.big-code.words { font-family: var(--sans); font-weight: 300; font-size: 60px; letter-spacing: -.04em; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 80; background: rgba(255, 255, 255, 0.97); border: 1px solid rgba(46, 127, 166, 0.3); color: var(--ink); padding: 11px 16px 11px 14px; border-radius: 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; box-shadow: 0 20px 40px -14px rgba(16, 48, 43, 0.176); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); flex: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dgrid, .two, .apb-grid { grid-template-columns: 1fr; }
  .rail, .apb-list { position: static; max-height: none; }
  .sgrid { grid-template-columns: 1fr 1fr; }
  .goals { grid-template-columns: 1fr; }
  .span3 { grid-column: span 2; }
  .hero, .dhero { grid-template-columns: 1fr; }
  .idetail-in { grid-template-columns: 1fr; padding-left: 0; }
}
@media (max-width: 720px) {
  .viewas { padding: 0 16px; }
  .viewas-links { display: none; }
  .top-in { padding: 0 16px; gap: 12px; }
  main { padding: 0 16px; padding-block: 20px 50px; }
  .prop { padding-right: 14px; margin-right: 0; }
  .tabs a { padding: 7px 10px; font-size: 13px; }
  .head h1 { font-size: 30px; }
  .dhero { padding: 20px; }
  .dhero h1 { font-size: 32px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .sgrid { grid-template-columns: 1fr; }
  .span2, .span3 { grid-column: auto; }
  .card.withimg { grid-template-columns: 1fr; }
  .card.withimg img { order: -1; }
  .vi { grid-template-columns: 44px 24px minmax(0, 1fr); }
  .vi::before { left: 55px; }
  .nowv { grid-template-columns: 44px 24px 1fr; }
  .dayh { grid-template-columns: 44px 24px minmax(0, 1fr); }
  .dayh::before { left: 55px; }
  .dayh h3 { font-size: 19px; }
  .bul li, .why-grid { grid-template-columns: 1fr; gap: 2px; }
  .twocol { grid-template-columns: 1fr; }
  .tline { grid-template-columns: 90px 1fr; }
  .tline .ty { display: none; }
  .minirow { grid-template-columns: 1fr 1fr; }
  .box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Daylight: the Seaclub logo has a white background; let it blend into the bar. */
.hotel-logo { mix-blend-mode: multiply; }

/* Demo: page-to-page loading (app.js, routeAfterPause) */
body.is-loading { cursor: progress; }
body.is-loading::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 999; background: linear-gradient(90deg, var(--sat), var(--blue)); transform-origin: left; animation: nav-progress .75s cubic-bezier(.2, .8, .2, 1) forwards; }
body.is-loading #main { opacity: .55; transition: opacity .15s ease; pointer-events: none; }
@keyframes nav-progress { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
