/* InnDesk design system: Stripe/Notion clarity with Airbnb/Revolut warmth. Light and dark from the same tokens. */
:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --brand-ink: #3730a3;
  --on-brand: #ffffff;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --surface-3: #f2f4f7;
  --text: #101828;
  --muted: #475467;
  --faint: #98a2b3;
  --line: #eaecf0;
  --line-strong: #d0d5dd;
  --hover: #f2f4f7;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --danger-ink: #b42318;
  --success: #079455;
  --success-soft: #ecfdf3;
  --success-ink: #067647;
  --warn: #dc6803;
  --warn-soft: #fffaeb;
  --warn-ink: #b54708;
  --info: #1570ef;
  --info-soft: #eff8ff;
  --info-ink: #175cd3;
  --violet: #7a5af8;
  --violet-soft: #f4f3ff;
  --violet-ink: #5925dc;
  --teal: #0e9384;
  --teal-soft: #f0fdf9;
  --teal-ink: #107569;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(16, 24, 40, 0.12), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  --ring: 0 0 0 4px rgba(79, 70, 229, 0.18);
  --hero: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #db2777 120%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
    --brand: #8b85ff;
    --brand-hover: #a5a0ff;
    --brand-soft: #23214a;
    --brand-ink: #c7c4ff;
    --on-brand: #0d0b2b;
    --bg: #0b0c0f;
    --surface: #14161b;
    --surface-2: #191c22;
    --surface-3: #20242c;
    --text: #edeef2;
    --muted: #aab1bf;
    --faint: #6b7280;
    --line: #242833;
    --line-strong: #353b48;
    --hover: #1e222a;
    --danger: #f97066;
    --danger-soft: #3a1714;
    --danger-ink: #fda29b;
    --success: #47cd89;
    --success-soft: #0f2d1e;
    --success-ink: #75e0a7;
    --warn: #fdb022;
    --warn-soft: #36230a;
    --warn-ink: #fec84b;
    --info: #53b1fd;
    --info-soft: #0e2540;
    --info-ink: #84caff;
    --violet: #9b8afb;
    --violet-soft: #241b4d;
    --violet-ink: #bdb4fe;
    --teal: #2ed3b7;
    --teal-soft: #0b2b27;
    --teal-ink: #5fe9d0;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    --ring: 0 0 0 4px rgba(139, 133, 255, 0.25);
    --hero: linear-gradient(135deg, #4338ca 0%, #6d28d9 60%, #be185d 130%);
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--font); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { color: var(--brand-hover); }
h1 { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
p { margin: 0 0 10px; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; background: var(--surface-3); border-radius: 6px; padding: 2px 6px; }
small, .small { font-size: 12px; line-height: 1.45; }
.muted { color: var(--muted); }
.owed { color: var(--danger-ink); font-weight: 600; }
.ok-text { color: var(--success-ink); font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.loading { padding: 48px; color: var(--muted); }
.num, .tile strong, .stat-value { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-soft); color: var(--brand-ink); }

/* Material Symbols (rounded): hidden until the font loads, so offline installs never show icon names. */
.ms {
  font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr;
  font-feature-settings: "liga"; -webkit-font-feature-settings: "liga";
  display: inline-block; width: 1em; height: 1em; overflow: hidden; flex: none; visibility: hidden;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
html.icons-ready .ms { visibility: visible; }
html:not(.icons-ready) .ms { width: 0; }
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.no-icon-text { display: none; font-size: 20px; }
html:not(.icons-ready) .no-icon-text { display: inline; }

/* ---- progress bar (top of page while a screen loads) ---- */
#progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 200; background: var(--brand); box-shadow: 0 0 10px var(--brand); opacity: 0; transition: width 0.35s var(--ease), opacity 0.3s; }
#progress.on { opacity: 1; }

/* ---- app layout ---- */
#app { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex: none; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 14px 14px;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand strong { display: block; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.logo {
  width: 36px; height: 36px; border-radius: 11px; flex: none; background: var(--hero); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; box-shadow: var(--shadow-sm);
}
.fab {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; margin: 0 0 18px; border-radius: var(--r-md);
  background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.fab:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: var(--shadow-md); }
.fab:active { transform: scale(0.98); }
.fab .ms { font-size: 20px; }
.fab-float { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav-section { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 6px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px;
  color: var(--muted); font-weight: 500; font-size: 14px; transition: background 0.15s, color 0.15s;
}
.sidebar nav a:hover { background: var(--hover); color: var(--text); }
.sidebar nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.sidebar nav a.active .ms { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.nav-icon { width: 22px; display: inline-grid; place-items: center; }
.user-card {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 10px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--text); width: 100%;
  transition: background 0.15s, box-shadow 0.15s;
}
.user-card:hover { background: var(--hover); }
.user-card strong { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card small { color: var(--muted); }
.user-card .grow { flex: 1; min-width: 0; }

.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar .spacer { flex: 1; }
.topbar #page-title { font-size: 16px; font-weight: 600; }
/* The menu button shows everywhere: on phones it opens the drawer, on larger screens it hides the side menu. */
.topbar .menu-btn { display: inline-grid; margin-left: -8px; }
@media (min-width: 841px) { html.nav-hidden .sidebar { display: none; } }
.top-stats { display: flex; gap: 4px; }
.top-stats a {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; color: var(--muted);
  font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.top-stats a:hover { background: var(--hover); color: var(--text); }
.top-stats .ms { font-size: 18px; }
.top-stats b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-3); color: var(--text); font-size: 12px; font-weight: 700; }
.top-stats a.due b { background: var(--warn-soft); color: var(--warn-ink); }
.top-new { height: 38px; margin-left: 6px; }
.btn.phone-only { display: none; }
@media (max-width: 840px) { .btn.phone-only { display: inline-flex; } }
@media (max-width: 1180px) { .top-stats a > span:not(.ms) { display: none; } }
@media (max-width: 840px) { .topbar .top-stats, .topbar .top-new { display: none; } }
.global-search {
  flex: 0 1 520px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--faint); box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.global-search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.global-search input { border: 0; background: transparent; height: 38px; padding: 0; font-size: 14px; box-shadow: none !important; flex: 1; }
.global-search kbd { font: 500 11px var(--font); color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 0; flex: none; font: 600 13px var(--font);
  display: inline-grid; place-items: center; color: #fff; background: var(--violet); letter-spacing: 0.01em;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg, .avatar.big { width: 56px; height: 56px; font-size: 20px; }
.avatar.c0 { background: #6172f3; } .avatar.c1 { background: #ee46bc; } .avatar.c2 { background: #0e9384; }
.avatar.c3 { background: #ef6820; } .avatar.c4 { background: #7a5af8; } .avatar.c5 { background: #15b79e; }
.avatar.c6 { background: #2e90fa; } .avatar.c7 { background: #dd2590; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { min-width: 0; }
.who strong { display: block; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who small { color: var(--muted); }
a.who:hover strong { color: var(--brand); }
.account { display: flex; gap: 16px; align-items: center; padding: 4px 0 22px; }
.account strong { font-size: 18px; font-weight: 600; display: block; margin-bottom: 2px; }
.account-actions { padding-bottom: 8px; }
.account + label.check.switch { margin-bottom: 18px; }

main { flex: 1; padding: 8px 32px 64px; max-width: 1360px; width: 100%; outline: none; }
.page-in { animation: page-in 0.28s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: 0.12s ease-out both fade-out; }
::view-transition-new(root) { animation: 0.24s var(--ease) both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.page-head .muted { margin: 6px 0 0; font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.toolbar label { margin-bottom: 0; }

/* ---- cards ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 24px; margin-bottom: 16px;
  min-width: 0; box-shadow: var(--shadow-xs);
}
.card .card { box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.card-head .muted { font-size: 13px; }
.warn-card { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); background: linear-gradient(var(--danger-soft), var(--surface) 140px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-folio { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.grid-pos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 16px; align-items: start; }

/* Revolut-style money card */
.hero-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 26px; color: #fff; background: var(--hero);
  box-shadow: 0 20px 40px -20px rgba(79, 70, 229, 0.55); min-height: 220px; display: flex; flex-direction: column;
}
.hero-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.hero-card .label { font-size: 14px; opacity: 0.85; display: flex; align-items: center; gap: 8px; }
.hero-card .big { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; margin: 8px 0 14px; font-variant-numeric: tabular-nums; }
.hero-card .pills { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-card .pill { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; backdrop-filter: blur(6px); }
.hero-card .spark { margin-top: auto; padding-top: 14px; height: 70px; position: relative; z-index: 1; }
.hero-card a { color: #fff; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; color: var(--text);
  display: flex; flex-direction: column; gap: 4px; position: relative; box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
a.tile:hover { color: var(--text); box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--line-strong); }
.tile > span:not(.ms) { color: var(--muted); font-size: 13px; font-weight: 500; padding-right: 40px; }
.tile strong { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.tile strong small { font-size: 15px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.tile em { font-style: normal; color: var(--muted); font-size: 12px; }
.tile .tile-icon {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; font-size: 19px;
  display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
html:not(.icons-ready) .tile .tile-icon { display: none; }
.tile.attn .tile-icon { background: var(--warn-soft); color: var(--warn); }
.tile.warn .tile-icon { background: var(--danger-soft); color: var(--danger); }
.tile.attn strong { color: var(--warn-ink); }
.tile.warn strong { color: var(--danger-ink); }

/* ring (occupancy) */
.ring-card { display: flex; flex-direction: column; }
.ring-row { display: flex; align-items: center; gap: 22px; flex: 1; }
.ring { position: relative; width: 140px; height: 140px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-label strong { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ring .ring-label small { color: var(--muted); margin-top: 4px; }
.legend-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.legend-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend-list li b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---- charts ---- */
.chart { position: relative; min-width: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: clamp(2px, 1.2%, 6px); height: 200px; padding-top: 10px; position: relative;
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 0; }
.chart-bars .col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; cursor: default; }
.chart-bars .bar-v {
  width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px; min-height: 3px; background: color-mix(in srgb, var(--brand) 30%, transparent);
  transform-origin: bottom; animation: grow 0.6s var(--ease) both; transition: background 0.15s;
}
.chart-bars .col:hover .bar-v, .chart-bars .col.today .bar-v { background: var(--brand); }
.chart-x { display: flex; gap: clamp(2px, 1.2%, 6px); margin-top: 8px; }
.chart-x span { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--faint); min-width: 0; white-space: nowrap; overflow: visible; }
.chart-max { position: absolute; right: 0; top: -2px; font-size: 11px; color: var(--faint); background: var(--surface); padding-left: 6px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-area svg { width: 100%; height: 180px; display: block; overflow: visible; }
.chart-area .area { fill: url(#areaFill); }
.chart-area .line { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart-area .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-area .hit { fill: transparent; }
.chart-area .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 0.15s; }
.chart-area .hit:hover + .dot { opacity: 1; }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.hbar .track { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--brand); transform-origin: left; animation: growx 0.7s var(--ease) both; }
.hbar b { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#tooltip {
  position: fixed; z-index: 300; pointer-events: none; background: #101828; color: #fff; font-size: 12px; font-weight: 500;
  padding: 7px 10px; border-radius: 8px; box-shadow: var(--shadow-md); opacity: 0; transform: translate(-50%, -110%); transition: opacity 0.12s; white-space: nowrap;
}
#tooltip.on { opacity: 1; }
#tooltip b { display: block; font-size: 14px; font-weight: 600; }

/* ---- buttons, chips ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 14px/1 var(--font); letter-spacing: -0.006em; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:hover { background: var(--hover); color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn .ms { font-size: 18px; margin-left: -2px; }
.btn-primary { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-tonal { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; box-shadow: none; }
.btn-tonal:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); color: var(--brand-ink); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); color: #fff; }
.btn-danger-ghost { color: var(--danger-ink); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; box-shadow: none; }
.btn-block { width: 100%; height: 44px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-whatsapp { background: #16a34a; color: #fff; border-color: transparent; }
.btn-whatsapp:hover { background: #15803d; color: #fff; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: inline-grid; place-items: center; cursor: pointer; font-size: 18px; transition: background 0.15s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn .ms { font-size: 22px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 13px var(--font); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip b { font-weight: 600; color: var(--faint); font-size: 12px; }
.chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip.on b { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.segmented { display: inline-flex; background: var(--surface-3); border-radius: 11px; padding: 3px; gap: 2px; }
.segmented .chip { border: 0; background: transparent; height: 30px; border-radius: 8px; }
.segmented .chip.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented .chip.on b { color: var(--faint); }

/* ---- status pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 8px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; vertical-align: middle; background: var(--surface-3); color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.b-checked_in, .s-trial { background: var(--info-soft); color: var(--info-ink); }
.b-reserved, .b-pending, .b-dirty, .b-inspect, .s-grace { background: var(--warn-soft); color: var(--warn-ink); }
.b-cancelled, .b-no_show, .b-out_of_order, .b-failed, .s-expired, .s-suspended { background: var(--danger-soft); color: var(--danger-ink); }
.b-clean, .b-paid, .s-active { background: var(--success-soft); color: var(--success-ink); }
.b-checked_out { background: var(--surface-3); color: var(--muted); }

/* ---- forms ---- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 16px; }
input, select, textarea {
  font: 400 14px/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 0 12px; height: 42px; width: 100%; min-width: 0; box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { padding: 10px 12px; height: auto; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[readonly] { background: var(--surface-2); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); padding: 0; margin: 0; box-shadow: none; }
option { background: var(--surface); color: var(--text); }
.btn:focus-visible, .chip:focus-visible, .room:focus-visible, .icon-btn:focus-visible, .fab:focus-visible, a:focus-visible, .user-card:focus-visible {
  outline: none; box-shadow: var(--ring);
}
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { flex: 1 1 160px; }
.row > label.grow { flex: 3 1 280px; }
.stack { display: flex; flex-direction: column; }
.form-grid fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; margin: 0 0 22px; }
.form-grid legend { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; padding: 0; }
.form-error { color: var(--danger-ink); background: var(--danger-soft); padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; }
.total { font-weight: 600; font-size: 15px; }
.search { margin-bottom: 16px; max-width: 360px; flex: 1 1 240px; }
.search input { height: 36px; padding-left: 12px; }
.toolbar .search { margin-bottom: 0; }

.room-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pick {
  flex-direction: row; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px;
  cursor: pointer; margin: 0; font-weight: 400; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s;
}
.pick:hover { border-color: var(--line-strong); }
.pick:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); }
.pick small { color: var(--muted); }
.pick.blocked { opacity: 0.4; cursor: not-allowed; }
.guest-results { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.pick-guest { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--text); }
.pick-guest:hover { border-color: var(--brand); }
.pick-guest small { color: var(--muted); }
.chosen { background: var(--brand-soft); color: var(--brand-ink); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- tables (Stripe style) ---- */
.table-wrap { overflow-x: auto; }
.card .table-wrap { margin: 0 -24px; }
.card .table-wrap:last-child { margin-bottom: -22px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
#view > .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-xs); }
.table-wrap .table { min-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line);
  padding: 10px 12px; white-space: nowrap; background: var(--surface-2);
}
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 24px; }
.table-wrap .table th:last-child, .table-wrap .table td:last-child { padding-right: 24px; }
.table td { border-bottom: 1px solid var(--line); padding: 13px 12px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { font-weight: 600; border-bottom: 0; padding-top: 10px; padding-bottom: 6px; }
.table tfoot tr:first-child td { border-top: 1px solid var(--line); }
.table tr.balance td { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; border-top: 1px solid var(--line-strong); padding-top: 14px; }
.num { text-align: right !important; }
.link-row { cursor: pointer; transition: background 0.12s; }
.link-row:hover td { background: var(--surface-2); }
tr.voided td { color: var(--faint); }
tr.voided td:not(:last-child) { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--faint) 60%, transparent); }
tr.voided td small { text-decoration: none; display: inline-block; }
tr.flag td { background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
.qty { white-space: nowrap; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.dl.two { grid-template-columns: max-content 1fr max-content 1fr; }
ul.plain { margin: 0; padding-left: 18px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.empty .ms { font-size: 36px; color: var(--faint); display: block; margin: 0 auto 8px; }
.empty p { font-size: 15px; }
.empty-inline { color: var(--muted); padding: 18px 0 4px; display: flex; align-items: center; gap: 10px; }
.empty-inline .ms { color: var(--success); }

/* skeleton for the very first load */
.skeleton { display: grid; gap: 16px; }
.sk { background: linear-gradient(90deg, var(--surface-3) 0%, var(--hover) 50%, var(--surface-3) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- room board (Airbnb-style cards) ---- */
.legend { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-bottom: 16px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: -10px; }
.dot.occupied { background: var(--info); } .dot.arriving { background: var(--warn); } .dot.due_out { background: var(--violet); }
.dot.vacant { background: var(--success); } .dot.past { background: var(--faint); } .dot.channel { background: var(--teal); }
.room-floor { margin-bottom: 26px; }
.room-floor h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.room-floor h2 span { font-weight: 400; color: var(--faint); }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.room {
  text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px 16px; cursor: pointer;
  font: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 118px; color: var(--text); position: relative; overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.room:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.room-no { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.room-type { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-state { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.room.vacant .room-state { background: var(--success-soft); color: var(--success-ink); }
.room.occupied .room-state { background: var(--info-soft); color: var(--info-ink); }
.room.arriving .room-state { background: var(--warn-soft); color: var(--warn-ink); }
.room.due_out .room-state { background: var(--violet-soft); color: var(--violet-ink); }
.room-guest { margin-top: 10px; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-guest.none { color: var(--faint); font-weight: 400; }
.room-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.room-foot > span { white-space: nowrap; }
.room-hk { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; color: var(--warn-ink); }
.room-hk .ms { font-size: 15px; }
.room.hk-out_of_order { background: var(--surface-2); }
.room.hk-out_of_order .room-no, .room.hk-out_of_order .room-guest { color: var(--faint); }
.room.hk-out_of_order .room-hk { color: var(--danger-ink); }
/* How far through the stay the guest is, as a hairline along the bottom edge. */
.room-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface-3); }
.room-bar span { display: block; height: 100%; background: var(--info); }
.room.due_out .room-bar span { background: var(--violet); }
.stay-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.stay-bar span { display: block; height: 100%; border-radius: 99px; background: var(--info); }

/* ---- calendar ---- */
.cal-card { padding: 0; overflow: hidden; }

/* booking board: rooms down the side, days across, stays as bars */
.tl-scroll { overflow-x: auto; }
.tl { --day: 64px; --room: 120px; min-width: calc(var(--room) + var(--day) * var(--days)); user-select: none; -webkit-user-select: none; }
.tl.dense { --day: 44px; }
.tl-row { display: flex; position: relative; border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-room {
  width: var(--room); flex: none; position: sticky; left: 0; z-index: 3; background: var(--surface); padding: 0 14px 0 18px;
  display: flex; align-items: center; border-right: 1px solid var(--line); font-size: 14px;
}
.tl-track { position: relative; display: grid; grid-template-columns: repeat(var(--days), var(--day)); height: 50px; }
.tl-cell { border-right: 1px solid var(--line); cursor: cell; }
.tl-cell.weekend { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tl-cell.past { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--line) 50%, transparent) 6px 7px); cursor: default; }
.tl-cell.today { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.tl-cell:not(.past):hover { background: var(--brand-soft); }
.tl-head { position: sticky; top: 0; z-index: 4; background: var(--surface-2); }
.tl-head .tl-room { background: var(--surface-2); color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.tl-head .tl-track { height: 64px; }
.tl-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-right: 1px solid var(--line); }
.tl-day small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 600; }
.tl-day b { font-size: 16px; font-weight: 600; line-height: 22px; min-width: 26px; text-align: center; border-radius: 8px; }
.tl-day.today b { background: var(--brand); color: #fff; }
.tl-day.today small { color: var(--brand); }
.tl-day em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--success-ink); background: var(--success-soft); border-radius: 99px; padding: 0 6px; }
.tl.dense .tl-day small { display: none; }
/* Room-type row: its name, then that night's price under every day. */
.tl-group { background: var(--surface-2); }
.tl-group .tl-room { background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tl-group .tl-track { height: 30px; }
.tl-rate { display: grid; place-items: center; border-right: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.tl.dense .tl-rate { font-size: 9px; }
.tl-day em.full { color: var(--danger-ink); background: var(--danger-soft); }
.tl-bar {
  position: absolute; top: 7px; height: 36px; border-radius: 9px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; z-index: 1; text-decoration: none; border-left: 3px solid;
  box-shadow: var(--shadow-xs); transition: box-shadow 0.15s, filter 0.15s;
}
.tl-bar .tl-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tl-bar small { margin-left: auto; font-weight: 600; opacity: 0.7; font-size: 11px; }
.tl-bar:hover { filter: saturate(1.25); box-shadow: var(--shadow-sm); }
.tl-bar.editable { cursor: grab; touch-action: none; }
.tl-bar.dragging { cursor: grabbing; z-index: 5; box-shadow: var(--shadow-lg); opacity: 0.92; transition: none; pointer-events: none; } /* lets the drag see the row under the pointer */
.tl-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl-bar.checked_in { background: var(--info-soft); color: var(--info-ink); border-color: var(--info); }
.tl-bar.reserved { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn); }
.tl-bar.checked_out { background: var(--surface-3); color: var(--muted); border-color: var(--faint); }
.tl-bar.channel { background: repeating-linear-gradient(135deg, var(--teal-soft) 0 8px, color-mix(in srgb, var(--teal-soft) 60%, var(--surface)) 8px 16px); color: var(--teal-ink); border-color: var(--teal); }
.tl-grip { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.tl-grip::after { content: ""; position: absolute; right: 3px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: currentColor; opacity: 0.35; }
.tl-bar:hover .tl-grip::after { opacity: 0.8; }
.tl-pick {
  position: absolute; top: 7px; height: 36px; border-radius: 9px; border: 2px dashed var(--brand); background: color-mix(in srgb, var(--brand-soft) 80%, transparent);
  color: var(--brand-ink); font-size: 12px; font-weight: 600; display: grid; place-items: center; pointer-events: none; z-index: 2;
}
.tl-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; }
.tl-hint .ms { font-size: 16px; }
.change-list { margin: 0 0 16px; padding-left: 18px; line-height: 1.8; font-weight: 500; }
@media (max-width: 840px) { .tl { --day: 52px; --room: 72px; } .tl-room { padding: 0 10px; } .tl-hint { display: none; } }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.cal th, .cal td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 5px; height: 52px; }
.cal tr > *:last-child { border-right: 0; }
.cal tbody tr:last-child > * { border-bottom: 0; }
.cal thead th { font-weight: 600; text-align: center; min-width: 64px; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); }
.cal thead th small { display: block; font-size: 18px; line-height: 30px; text-transform: none; letter-spacing: -0.02em; color: var(--text); font-weight: 600; }
.cal thead th.today small { color: #fff; background: var(--brand); border-radius: 10px; width: 34px; margin: 2px auto 0; }
.cal thead th.today { color: var(--brand); }
.cal tbody th { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 110px; font-weight: 600; font-size: 14px; padding-left: 18px; }
.cal tbody th small { font-weight: 400; }
.cal-free { text-align: center; }
.cal-free a { color: transparent; display: block; font-size: 18px; border-radius: 8px; line-height: 40px; }
.cal-free:hover a { color: var(--brand); background: var(--brand-soft); }
.cal-bk {
  display: block; border-radius: 9px; padding: 9px 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid; transition: filter 0.15s, transform 0.15s;
}
.cal-bk:hover { filter: saturate(1.3); transform: translateY(-1px); }
.cal-bk.checked_in { background: var(--info-soft); color: var(--info-ink); border-color: var(--info); }
.cal-bk.reserved { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn); }
.cal-bk.checked_out { background: var(--surface-3); color: var(--muted); border-color: var(--faint); }
.cal-bk.channel { background: var(--teal-soft); color: var(--teal-ink); border-color: var(--teal); }

/* ---- bar sales ---- */
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.pos-item {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; font: inherit; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.pos-item:hover { border-color: var(--brand); box-shadow: var(--ring); }
.pos-item:active { transform: scale(0.97); }
.pos-item strong { font-weight: 600; }
.pos-item span { font-weight: 700; color: var(--brand); font-size: 15px; }
.pos-item small { color: var(--muted); }
.pos-item.out { opacity: 0.45; }
.cart { position: sticky; top: 80px; }

/* ---- sheets (forms slide in from the side) and toasts ---- */
dialog.modal {
  border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(500px, 100vw); max-width: 100vw;
  border-radius: 22px 0 0 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  animation: sheet-in 0.32s var(--ease) both;
}
dialog.modal.wide { width: min(720px, 100vw); }
dialog.modal > form { display: flex; flex-direction: column; height: 100%; }
dialog::backdrop { background: rgba(16, 24, 40, 0.38); backdrop-filter: blur(3px); animation: fade-in 0.25s both; }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
dialog header h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-body .chips + p { margin-top: 18px; }
dialog footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-2); }
#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--surface); padding: 11px 16px 11px 12px; border-radius: 12px;
  box-shadow: var(--shadow-lg); max-width: min(460px, calc(100vw - 32px)); font-size: 14px; font-weight: 500; animation: toast-in 0.35s var(--ease) both;
}
.toast::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: #fff; font-size: 12px; flex: none; }
.toast-error::before { content: "!"; background: var(--danger); }
@keyframes toast-in { from { transform: translateY(-14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- sign-in ---- */
.auth { min-height: 100vh; width: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent), radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, #db2777 14%, transparent), transparent), var(--bg); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card .brand { padding: 0 0 24px; }
.auth-card .brand strong { font-size: 20px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-card h1 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.auth-card a.brand { color: inherit; text-decoration: none; }
.auth-help { margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-help summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.auth-help p { margin: 8px 0 0; }
.auth-tabs { display: flex; margin-bottom: 18px; }
.auth-tabs .chip { flex: 1; text-align: center; text-decoration: none; }
.auth-done .big-icon { font-size: 44px; color: var(--brand); margin-bottom: 8px; }
.auth-done .btn-block { margin-top: 18px; }

/* ---- receipt ---- */
.receipt { background: var(--surface); max-width: 760px; margin: 0 auto; padding: 40px; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.receipt header { text-align: center; margin-bottom: 20px; }
.receipt header h1 { justify-content: center; }
.receipt header p { margin: 0; color: var(--muted); }
.receipt h2 { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.receipt .dl { margin-bottom: 20px; }
.receipt .table-wrap { margin: 0; }
.receipt footer { text-align: center; margin-top: 24px; }
.print-only { display: none; }

/* ---- banners, tabs, plans, extras ---- */
.banner { padding: 12px 16px; border-radius: var(--r-md); margin: 0 0 16px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px solid transparent; }
.main-wrap > .banner { margin: 0 32px 8px; }
.banner.info { background: var(--info-soft); color: var(--info-ink); border-color: color-mix(in srgb, var(--info) 20%, transparent); }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.banner.danger { background: var(--danger-soft); color: var(--danger-ink); font-weight: 600; border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.banner.ok { background: var(--success-soft); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.banner a, .banner .link-btn { color: inherit; font-weight: 700; text-decoration: underline; }
.banner .grow { flex: 1; min-width: 200px; }
.tabs { margin-bottom: 22px; border-bottom: 1px solid var(--line); gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
.tabs .chip { border: 0; border-radius: 0; height: 42px; padding: 0 12px; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .chip:hover { color: var(--text); }
.tabs .chip.on { color: var(--text); border-bottom-color: var(--brand); background: transparent; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.plan { display: flex; flex-direction: column; gap: 4px; }
.plan h2, .plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.plan.current { border-color: var(--brand); box-shadow: var(--ring); }
.price { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .actions, .plan .btn-block { margin-top: auto; padding-top: 14px; }
.report-text { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r-md); padding: 16px 18px; font: 14px/1.6 var(--font); margin: 0 0 16px; border: 1px solid var(--line); }
code.feed { display: block; word-break: break-all; }
.copy-box { display: block; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 8px 0; }

/* ---- public site and staff dashboard ---- */
body.site { display: block; background: var(--surface); }
.site main { flex: none; padding: 0; max-width: none; width: auto; }
.site main.admin-main { padding: 28px 24px 56px; max-width: 1240px; margin: 0 auto; }
.site main.auth { padding: 24px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site-head { background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 12px; }
.site-head .brand { padding: 0; }
.site-head nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 9px; }
.site-head nav a:hover { background: var(--hover); color: var(--text); }
.hero { padding: 80px 0 64px; background: radial-gradient(900px 480px at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent), radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, #db2777 9%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 54px; line-height: 1.05; font-weight: 700; letter-spacing: -0.045em; margin-bottom: 20px; display: block; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; }
.hero .actions { margin: 30px 0 12px; }
.hero .hero-card { min-height: 0; }
.hero .hero-card .report-text { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding-top: 32px; padding-bottom: 40px; }
.feature { padding: 26px; transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.02em; }
.feature p { color: var(--muted); }
#pricing { padding-top: 40px; }
#pricing h2 { font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 20px; }
.center-chips { justify-content: center; }
.signup-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 40px; padding-bottom: 64px; }
.signup { padding: 30px; }
.signup h2 { font-size: 22px; letter-spacing: -0.025em; margin-bottom: 20px; }
.slug-row { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.slug-row .muted { white-space: nowrap; font-size: 13px; }

/* "Request a demo" (home page): one card, centred. */
.signup-wrap:has(.signup-flow) { grid-template-columns: minmax(0, 620px); justify-content: center; }
.signup-flow h2 { margin-bottom: 6px; }
.signup-flow h2 + .muted { margin: 0 0 20px; }
.hotel-pick .btn { justify-content: space-between; height: auto; padding: 12px 14px; margin-bottom: 8px; }
.hotel-pick .btn small { font-weight: 400; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 0; }
.site section[id], .site form[id] { scroll-margin-top: 80px; }

/* ---- responsive ---- */
/* ---- profile headers (booking, guest) ---- */
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.b-warn { background: var(--warn-soft); color: var(--warn-ink); }
.profile { gap: 16px; align-items: center; }
.profile h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.meta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.meta .ms { font-size: 16px; color: var(--faint); }

/* ---- guest bill ---- */
.bill-lines { display: flex; flex-direction: column; }
.bill-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bill-line .grow { flex: 1; min-width: 0; }
.bill-line strong { display: block; font-weight: 600; font-size: 14px; }
.bill-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bill-line.voided strong, .bill-line.voided .amt { text-decoration: line-through; color: var(--faint); }
.bill-icon {
  width: 36px; height: 36px; flex: none; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--surface-3); color: var(--muted);
}
.bill-icon .ms { font-size: 19px; }
.bill-icon.pay { background: var(--success-soft); color: var(--success-ink); }
.amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.paid { color: var(--success-ink); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ms { font-size: 18px; }
.icon-spacer { width: 30px; flex: none; }
.ok-text { color: var(--success-ink); }
.bill-summary { margin-top: 16px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bill-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.bill-summary > div > span { color: var(--muted); }
.bill-summary b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bill-summary .due { margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 16px; }
.bill-summary .due span { color: var(--text); font-weight: 600; }
.bill-summary .due b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.bill-summary .due.owing b { color: var(--danger-ink); }
.bill-summary .due.credit b { color: var(--warn-ink); }
.bill-summary .due.settled b { color: var(--success-ink); }
.bill-summary.compact { margin-top: 12px; }
.bill h3 { font-size: 14px; margin: 20px 0 6px; }

.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-col > .card { margin-bottom: 0; }
.stay-dates { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stay-dates > div { display: flex; flex-direction: column; gap: 2px; }
.stay-dates > div:last-child { text-align: right; }
.stay-dates small { color: var(--faint); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stay-dates strong { font-size: 15px; }
.stay-dates > .ms { color: var(--faint); }
.stay-bar.big { display: block; height: 8px; margin-bottom: 10px; }
.stay-bar.big span { background: linear-gradient(90deg, var(--brand), #7c3aed); }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; margin: 12px 0 0; }
.note .ms { font-size: 18px; flex: none; }
.info-rows { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); min-width: 0; }
.info-row:last-of-type { border-bottom: 0; }
.info-row > .ms { color: var(--faint); font-size: 19px; flex: none; }
.info-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.info-row { font-weight: 600; text-decoration: none; }
a.info-row:hover { color: var(--brand); }

/* ---- new booking ---- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.booking-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.booking-steps > .card { margin-bottom: 0; }
.step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.step-head h2 { margin: 0; }
.step-head p { margin: 2px 0 0; }
.step-no {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 13px;
}
.summary-card { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.summary-card h2 { margin: 0; }
.summary-card .btn-block { margin: 0; }
.summary-room { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); min-height: 58px; }
.summary-room .room-no { background: var(--brand-soft); color: var(--brand-ink); border-radius: 10px; padding: 8px 10px; font-size: 18px; }
.summary-room strong, .summary-room small { display: block; }
label.check.switch { align-items: flex-start; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
label.check.switch span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
label.check.switch small { font-weight: 400; font-size: 12px; }
label.check.switch input {
  appearance: none; width: 36px; height: 20px; flex: none; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer;
  transition: background 0.2s var(--ease); border: 0;
}
label.check.switch input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease);
}
label.check.switch input:checked { background: var(--brand); }
label.check.switch input:checked::after { transform: translateX(16px); }
.inline-search { margin-bottom: 12px; max-width: 420px; }
.toolbar .inline-search { margin-bottom: 0; flex: 1; }
.pick-body { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; }
.pick-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pick-check { color: var(--line-strong); display: inline-flex; }
.pick-check .ms { font-size: 20px; }
.pick:has(input:checked) .pick-check { color: var(--brand); }
.pick:has(input:checked) .pick-check .ms { font-variation-settings: "FILL" 1; }
.pick > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pick { position: relative; }
.pick:has(input:focus-visible) { border-color: var(--brand); box-shadow: var(--ring); }

/* ---- bar sales ---- */
.stat-inline { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 16px; box-shadow: var(--shadow-xs); font-size: 13px; color: var(--muted); }
.stat-inline .ms { color: var(--brand); }
.stat-inline b { font-size: 18px; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
.pos-item { position: relative; }
.pos-item .pos-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 6px; font-size: inherit; }
.pos-item .pos-icon .ms { font-size: 19px; }
.pos-item .pos-qty {
  position: absolute; top: 10px; right: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 700; animation: pop 0.25s var(--ease);
}
.pos-item .price-tag { font-weight: 700; color: var(--text); font-size: 15px; }
.pos-item.in-cart { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.segmented .chip .ms { font-size: 17px; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line strong, .cart-line small { display: block; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.stepper button { width: 30px; height: 30px; border: 0; background: var(--surface); color: var(--text); font: 600 16px var(--font); cursor: pointer; }
.stepper button:hover { background: var(--hover); }
.stepper b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-line .amt { min-width: 80px; text-align: right; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 8px; font-weight: 600; }
.cart-total b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.cart-empty { text-align: center; color: var(--faint); padding: 36px 0; }
.cart-empty .ms { font-size: 40px; }
.cart-empty p { margin: 8px 0 0; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 16px; }
.method {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--muted); font: 500 12px var(--font); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.method .ms { font-size: 20px; }
.method:hover { border-color: var(--line-strong); color: var(--text); }
.method.on { border-color: var(--brand); box-shadow: var(--ring); color: var(--brand-ink); background: var(--brand-soft); }

/* ---- inventory ---- */
.stock-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stock-cell b { font-variant-numeric: tabular-nums; }
.stock-bar { flex: 1 0 100%; height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.stock-bar span { display: block; height: 100%; background: var(--success); border-radius: 99px; }
.stock-cell.low b { color: var(--danger-ink); }
.stock-cell.low .stock-bar span { background: var(--danger); }

/* ---- activity log ---- */
.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.timeline-day { margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.tl-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.tl-icon .ms { font-size: 18px; }
.timeline li.flag .tl-icon { background: var(--warn-soft); color: var(--warn-ink); }
.tl-body { flex: 1; min-width: 0; padding-top: 6px; }
.tl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-top strong { font-weight: 600; text-transform: capitalize; }
.tl-top time { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.tl-who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.tl-details { margin: 6px 0 0; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.tl-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; margin-top: 6px; }
.tl-link .ms { font-size: 16px; }

/* ---- setup ---- */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.settings-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.settings-nav a .ms { font-size: 19px; }
.settings-nav a:hover { background: var(--hover); color: var(--text); }
.settings-nav a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.settings-nav a.on .ms { color: var(--brand); font-variation-settings: "FILL" 1; }
.settings-body { min-width: 0; }
.settings-body > .card + .card { margin-top: 16px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.type-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.15s, box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.type-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.type-top { display: flex; justify-content: space-between; align-items: center; }
.type-top .ms { color: var(--faint); font-size: 18px; }
.type-rate { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.type-rate small { font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0; }
.type-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.type-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.type-meta .ms { font-size: 16px; }
.room-no.sm { font-size: 15px; }
.type-meta { flex-wrap: wrap; }
.type-meta .faint { color: var(--faint); }

/* ---- room amenity kits ---- */
.kit-head { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.kit-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; }
.kit-head h3 .ms { color: var(--brand); font-size: 20px; }
.kit { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.kit:empty { margin: 4px 0; }
.kit-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px 30px; gap: 8px; align-items: center; }
.kit-row input, .kit-row select { margin: 0; }
.kit-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.kit-chips .badge::before { display: none; }
.days-left { flex-basis: 100%; font-size: 12px; }
.count-pill { background: rgba(255, 255, 255, 0.25); border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.order-lines { display: flex; flex-direction: column; margin-top: 12px; }
.order-line { flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.order-line > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-line strong { font-weight: 600; }
.order-line input { width: 90px; flex: none; text-align: right; }
.order-line > small { width: 56px; flex: none; }
.order-line.due strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 6px; vertical-align: middle; }
.stock-cell.low .days-left { color: var(--danger-ink); font-weight: 600; }
@media (max-width: 600px) {
  .kit-row { grid-template-columns: minmax(0, 1fr) 70px 30px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .kit-row select[data-k="per"] { grid-column: 1 / 3; grid-row: 2; }
}

@media (max-width: 1100px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; }
}
@media (max-width: 840px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .settings-nav a { white-space: nowrap; flex: none; }
  .stat-inline { width: 100%; }
  .cart { position: static; }
  .grid-pos .cart:has(.cart-lines) { order: -1; }
  .pos-items, .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile .avatar.lg { width: 44px; height: 44px; font-size: 16px; }
}

@media (max-width: 1280px) { .grid-folio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .grid-hero { grid-template-columns: minmax(0, 1fr); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .grid-2, .grid-pos { grid-template-columns: minmax(0, 1fr); }
  .cart { position: static; }
}
@media (max-width: 840px) {
  #app { display: block; }
  .sidebar {
    position: fixed; z-index: 60; left: 0; top: 0; width: 290px; max-width: 86vw; transform: translateX(-105%);
    transition: transform 0.32s var(--ease); box-shadow: var(--shadow-lg); border-right: 0;
  }
  .sidebar.open { transform: none; }
  .sidebar.open + .main-wrap::before { content: ""; position: fixed; inset: 0; background: rgba(16, 24, 40, 0.38); z-index: 55; backdrop-filter: blur(2px); }
  .sidebar .fab { display: none; }
  .fab-float {
    display: inline-flex; position: fixed; right: 16px; bottom: 18px; z-index: 40; margin: 0; padding: 0 18px; height: 52px;
    border-radius: 16px; box-shadow: var(--shadow-lg);
  }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 0 12px; gap: 8px; }
  .global-search { flex: 1; }
  .global-search kbd { display: none; }
  .global-search ~ .spacer { display: none; }
  main { padding: 4px 16px 96px; }
  .main-wrap > .banner { margin: 0 12px 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile strong { font-size: 24px; }
  .tile .tile-icon { width: 30px; height: 30px; font-size: 17px; top: 12px; right: 12px; }
  .hero-card .big { font-size: 36px; }
  .ring-row { gap: 16px; }
  .ring { width: 112px; height: 112px; }
  .room-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .room { min-height: 110px; padding: 12px 14px 14px; }
  .card { padding: 18px; border-radius: var(--r-lg); }
  .card .table-wrap { margin: 0 -18px; }
  .card .table-wrap:last-child { margin-bottom: -18px; }
  .table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 18px; }
  .table-wrap .table th:last-child, .table-wrap .table td:last-child { padding-right: 18px; }
  .dl.two { grid-template-columns: max-content 1fr; }
  .receipt { padding: 20px; }
  h1 { font-size: 22px; }
  dialog.modal, dialog.modal.wide { margin: auto 0 0; width: 100vw; height: auto; max-height: 92dvh; border-radius: 22px 22px 0 0; animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .hero-grid, .signup-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 38px; }
  .slug-row { flex-wrap: wrap; }
}
@media (max-width: 600px) { .site-head nav a[href="#features"], .site-head nav a[href="#pricing"] { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ---- print ---- */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --line: #ccc; }
  body { background: #fff; color: #000; font-size: 12px; }
  .sidebar, .topbar, .no-print, .toolbar, .actions, #toasts, .btn, .banner, .tabs, .fab-float, #progress { display: none !important; }
  main { padding: 0; max-width: none; }
  .card, .tile, .receipt { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; background: #fff; color: #000; }
  .receipt { border: 0; padding: 0; max-width: none; }
  .print-only { display: block; }
}

/* ---- public booking page ---- */
.bk-page { background: var(--bg); min-height: 100vh; }
.bk-wrap, .site main.bk-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; width: auto; }
.bk-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0; margin-bottom: 24px; }
.bk-head .bk-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.bk-head h1 { font-size: 26px; margin: 0; letter-spacing: -0.03em; }
.bk-head p { margin: 4px 0 0; }
.bk-search {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px 140px auto; gap: 12px; align-items: end; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; box-shadow: var(--shadow-md); margin-bottom: 24px;
}
.bk-search label { margin: 0; min-width: 0; }
.bk-search input, .bk-search select { width: 100%; min-width: 0; }
.bk-search .btn { height: 44px; }
.bk-summary { color: var(--muted); font-weight: 500; margin: 0 0 14px; }
.bk-results { display: flex; flex-direction: column; gap: 16px; padding-bottom: 48px; }
.bk-room { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-xs); }
.bk-room h2 { margin: 0 0 6px; font-size: 20px; }
.bk-room-info p { margin: 0 0 8px; color: var(--muted); }
.bk-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.bk-meta .ms { font-size: 17px; }
.bk-few { background: var(--danger-soft); color: var(--danger-ink); border-radius: 99px; padding: 2px 9px; font-weight: 600; font-size: 12px; }
.bk-offers { display: flex; flex-direction: column; gap: 10px; }
.bk-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.bk-offer.off { opacity: 0.6; }
.bk-offer strong { display: block; font-weight: 600; }
.bk-offer small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bk-offer .bk-dep { color: var(--success-ink); font-weight: 500; }
.bk-price { text-align: right; }
.bk-price b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.bk-price s { display: block; font-size: 13px; }
.bk-back { margin-bottom: 16px; }
.bk-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding-bottom: 48px; }
.bk-form h2, .bk-cart h2 { margin: 0 0 16px; }
.bk-cart { position: sticky; top: 20px; }
.bk-cart > p { margin: -10px 0 0; }
.bk-terms { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.bk-terms p { margin: 4px 0 0; color: var(--muted); white-space: pre-line; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-done { max-width: 520px; margin: 24px auto 48px; text-align: center; padding: 36px 28px; }
.bk-done h2 { margin: 12px 0 8px; font-size: 24px; }
.bk-tick { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--success-soft); color: var(--success); }
.bk-tick .ms { font-size: 36px; }
.bk-tick.wait { background: var(--warn-soft); color: var(--warn); }
.bk-ref { font-size: 15px; }
.bk-ref b { font-size: 20px; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .bk-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 14px; }
  .bk-search .btn { grid-column: 1 / -1; }
  .bk-room, .bk-checkout { grid-template-columns: minmax(0, 1fr); }
  .bk-offer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bk-price { text-align: left; }
  .bk-offer > :last-child { width: 100%; justify-content: center; }
  .bk-cart { position: static; order: -1; }
}

/* ---- prices & seasons ---- */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.day-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick { margin: 0; flex-direction: row; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span {
  display: inline-grid; place-items: center; min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; background: var(--surface); transition: all 0.15s;
}
.day-pick input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.day-pick input:focus-visible + span { box-shadow: var(--ring); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row .copy-box { flex: 1 1 260px; min-width: 0; }

/* ---- landing page ---- */
.lp { background: var(--surface); }
.lp .site-head nav { gap: 2px; }
.lp-head-cta { margin-left: 6px; }
.lp .site-head nav a.lp-head-cta { color: #fff; background: #1e1b4b; }
.lp .site-head nav a.lp-head-cta:hover { color: #fff; background: var(--brand); }
.lp-hero {
  padding: 72px 0 0; text-align: center; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 50% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); box-shadow: var(--shadow-xs); margin: 0 0 24px;
}
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent); }
.lp-title { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 700; max-width: 920px; margin: 0 auto 22px; }
.lp-lead { margin: 0 auto; max-width: 660px; font-size: 19px; }
.lp-actions { justify-content: center; margin: 32px 0 12px; }
.lp-stage { position: relative; max-width: 1040px; margin: 56px auto 0; padding: 0 12px; }
.lp-window {
  border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); overflow: hidden; text-align: left;
  box-shadow: 0 40px 80px -24px rgba(30, 27, 75, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}
.lp-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lp-chrome span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.lp-chrome em { font-style: normal; margin-left: 12px; font-size: 12px; color: var(--faint); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 12px; }
.lp-app { display: flex; min-height: 330px; }
.lp-side { width: 58px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: var(--surface-2); }
.lp-side .logo { width: 30px; height: 30px; font-size: 12px; }
.lp-side i { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-3); }
.lp-side i.on { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.lp-board { flex: 1; min-width: 0; padding: 18px 20px; }
.lp-board-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-board-head strong { font-size: 18px; letter-spacing: -0.02em; }
.lp-chips { display: flex; gap: 6px; }
.lp-pill { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 10px; background: var(--surface-3); }
.lp-pill small { font-weight: 500; color: var(--muted); }
.lp-pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.lp-grid { --col: calc((100% - 56px) / 7); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lp-days, .lp-line { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); position: relative; border-bottom: 1px solid var(--line); }
.lp-line:last-child { border-bottom: 0; }
.lp-days { background: var(--surface-2); }
.lp-days span { text-align: center; font-size: 10px; font-weight: 600; color: var(--faint); padding: 6px 0; letter-spacing: 0.05em; }
.lp-days em { font-style: normal; font-size: 15px; color: var(--text); display: inline-block; min-width: 24px; border-radius: 7px; }
.lp-days .today em { background: var(--brand); color: #fff; }
.lp-line { height: 44px; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--col) - 1px), var(--line) calc(var(--col) - 1px) var(--col)); background-position: 56px 0; background-repeat: no-repeat; background-size: calc(100% - 56px) 100%; }
.lp-line b { display: flex; align-items: center; padding-left: 12px; font-size: 13px; border-right: 1px solid var(--line); }
.lp-line .bar {
  position: absolute; top: 7px; height: 30px; left: calc(56px + var(--col) * var(--s) + 2px); width: calc(var(--col) * var(--w) - 4px);
  border-radius: 8px; border-left: 3px solid; font-style: normal; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px;
  padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-line .bar .ms { font-size: 14px; }
.bar.in { background: var(--info-soft); color: var(--info-ink); border-color: var(--info); }
.bar.res { background: var(--warn-soft); color: var(--warn-ink); border-color: var(--warn); }
.bar.web { background: var(--violet-soft); color: var(--violet-ink); border-color: var(--violet); }
.bar.ota { background: repeating-linear-gradient(135deg, var(--teal-soft) 0 8px, color-mix(in srgb, var(--teal-soft) 60%, var(--surface)) 8px 16px); color: var(--teal-ink); border-color: var(--teal); }
.lp-float { position: absolute; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: lp-float 6s ease-in-out infinite; }
.lp-wa { right: -18px; bottom: 34px; width: 290px; padding: 12px; }
.lp-wa-top { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.lp-wa-top .ms { color: #16a34a; font-size: 18px; }
.lp-bubble { background: #dcf8c6; color: #111b21; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; }
.lp-paid { left: -14px; top: 120px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; animation-delay: -3s; }
.lp-paid .ms { color: var(--success); font-size: 28px; font-variation-settings: "FILL" 1; }
.lp-paid b { display: block; font-size: 13px; }
.lp-paid small { color: var(--muted); font-size: 12px; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.lp-facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.lp-facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-facts-grid > div { padding: 28px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.lp-facts-grid > div:last-child { border-right: 0; }
.lp-facts-grid b { font-size: 32px; letter-spacing: -0.04em; font-weight: 700; }
.lp-facts-grid b small { font-size: 18px; letter-spacing: -0.02em; }
.lp-facts-grid span { color: var(--muted); font-size: 14px; }

.lp-section { padding-top: 96px; padding-bottom: 24px; }
.lp-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin: 0 0 12px; }
.lp-h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 700; max-width: 760px; margin: 0 0 36px; }
.lp-h2.center { margin-left: auto; margin-right: auto; }
.lp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.lp-tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 600 14px var(--font); height: 44px; padding: 0 16px; border-radius: 99px; cursor: pointer; transition: all 0.15s;
}
.lp-tabs button .ms { font-size: 19px; }
.lp-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.lp-tabs button.on { background: var(--text); color: var(--surface); border-color: var(--text); }
.lp-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.lp-panel.on { animation: lp-in 0.35s var(--ease); }
@keyframes lp-in { from { opacity: 0; transform: translateY(8px); } }
.lp-copy h3 { font-size: 28px; letter-spacing: -0.035em; margin: 0 0 12px; line-height: 1.15; }
.lp-copy p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.lp-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.lp-ticks li { display: flex; gap: 10px; font-weight: 500; }
.lp-ticks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); color: var(--success-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.lp-shot { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-md); }
.lp-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-room { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.lp-room b { font-size: 20px; letter-spacing: -0.03em; }
.lp-room small { color: var(--muted); font-size: 12px; }
.lp-room strong { font-size: 13px; margin-top: 6px; }
.lp-room i { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--info) var(--p), var(--surface-3) var(--p)); }
.lp-room.due i { background: var(--violet); }
.lp-room em { font-style: normal; font-size: 12px; color: var(--muted); }
.lp-room em.ok { color: var(--success-ink); font-weight: 600; }
.lp-room.arr { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 40%, var(--surface)); }
.lp-offer-card { display: flex; flex-direction: column; gap: 10px; }
.lp-offer-top strong { font-size: 18px; display: block; }
.lp-offer-top small { color: var(--muted); }
.lp-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.lp-offer b { display: block; font-size: 14px; }
.lp-offer small { display: block; font-size: 12px; color: var(--muted); }
.lp-offer small.ok { color: var(--success-ink); font-weight: 500; }
.lp-price { text-align: right; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.lp-btn { background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.lp-bill { display: flex; flex-direction: column; }
.lp-bill-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lp-bill-line .ms { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 18px; flex: none; }
.lp-bill-line.pay .ms { background: var(--success-soft); color: var(--success-ink); }
.lp-bill-line div { flex: 1; min-width: 0; }
.lp-bill-line b { display: block; font-size: 13px; }
.lp-bill-line small { color: var(--muted); font-size: 12px; }
.lp-bill-line em { font-style: normal; font-weight: 600; font-size: 14px; }
.lp-bill-line.pay em { color: var(--success-ink); }
.lp-bill-due { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 600; }
.lp-bill-due b { font-size: 22px; color: var(--danger-ink); letter-spacing: -0.02em; }
.lp-stock { display: flex; flex-direction: column; gap: 12px; }
.lp-stock-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: 14px; }
.lp-stock-row em { font-style: normal; font-weight: 700; text-align: right; }
.lp-meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.lp-meter i { display: block; height: 100%; width: var(--p); background: var(--success); border-radius: 99px; }
.lp-stock-row.low em, .lp-stock-row.low b { color: var(--danger-ink); }
.lp-stock-row.low .lp-meter i { background: var(--danger); }
.lp-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; font-weight: 500; }
.lp-note .ms { font-size: 18px; }
.lp-report { display: flex; flex-direction: column; gap: 16px; }
.lp-kpi small { color: var(--muted); font-size: 13px; }
.lp-kpi b { display: block; font-size: 32px; letter-spacing: -0.04em; }
.lp-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.lp-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #7c3aed)); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-kpis span { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.lp-kpis b { display: block; font-size: 18px; }
.lp-kpis small { color: var(--muted); font-size: 12px; }

.lp-band { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; padding-bottom: 72px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.lp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.lp-card h3 { font-size: 19px; letter-spacing: -0.025em; margin: 14px 0 8px; }
.lp-card p:not(.lp-tags) { color: var(--muted); margin: 0; line-height: 1.6; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lp-tags span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.lp-tags span + span::before { content: "+ "; opacity: 0.6; }
.lp-local { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lp-local .ms { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 26px; }
.lp-local h3 { font-size: 18px; letter-spacing: -0.02em; margin: 16px 0 6px; }
.lp-local p { color: var(--muted); margin: 0; line-height: 1.6; }
.lp-cta { margin-top: 88px; background: var(--hero); color: #fff; text-align: center; padding: 72px 0; }
.lp-cta h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.045em; line-height: 1.08; margin: 0 0 12px; }
.lp-cta p { opacity: 0.85; font-size: 18px; margin: 0 0 28px; }
.lp-cta-btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.lp-cta-btn:hover { background: #f5f5ff; color: var(--brand-ink); }
.lp .signup-wrap { padding-top: 72px; }
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lp-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lp-foot nav a { color: var(--muted); font-size: 14px; }
.lp-foot p { margin: 0; width: 100%; }

@media (max-width: 980px) {
  .lp-panel { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .lp-cards, .lp-local { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-wa { right: 4px; width: 250px; }
  .lp-paid { left: 4px; }
}
@media (max-width: 700px) {
  .lp .site-head .lp-links a { display: none; }
  .lp-hero { padding-top: 48px; }
  .lp-lead { font-size: 17px; }
  .lp-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts-grid > div:nth-child(2) { border-right: 0; }
  .lp-facts-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .lp-facts-grid b { font-size: 26px; }
  .lp-cards, .lp-local { grid-template-columns: minmax(0, 1fr); }
  .lp-section { padding-top: 64px; }
  .lp-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 20px; padding: 0 24px 4px; scrollbar-width: none; }
  .lp-tabs button { flex: none; }
  .lp-side { display: none; }
  .lp-board { padding: 12px; }
  .lp-board-head .lp-chips { display: none; }
  .lp-app { min-height: 0; }
  .lp-line .bar { font-size: 0; }
  .lp-line .bar .ms { font-size: 13px; }
  .lp-wa { position: relative; right: auto; bottom: auto; width: auto; margin: -20px 8px 0; }
  .lp-paid { display: none; }
  .lp-rooms { grid-template-columns: minmax(0, 1fr); }
  .lp-offer { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-offer .lp-btn { grid-column: 1 / -1; text-align: center; }
  .lp-stock-row { grid-template-columns: 90px minmax(0, 1fr) 32px; }
}
@media (prefers-reduced-motion: reduce) { .lp-float { animation: none; } }

/* ---- landing: slim header, collage hero ---- */
.lp-nav .wrap { max-width: 1280px; gap: 28px; }
.lp-nav .lp-links { display: flex; gap: 4px; margin-right: auto; }
.lp-nav .lp-links a { color: var(--text); font-size: 14px; font-weight: 500; }
.lp-right { display: flex; align-items: center; gap: 14px; }
.lp-login { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-size: 14px; font-weight: 500; padding: 8px 4px; }
.lp-login .ms { font-size: 18px; }
.lp-lang { border: 0; background: none; font: 500 14px var(--font); color: var(--text); cursor: pointer; padding: 8px 4px; }
.lp-lang:hover, .lp-login:hover { color: var(--brand); }
.lp-dark-btn, .lp-line-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.lp-dark-btn { background: #1e1b4b; color: #fff; border: 1px solid #1e1b4b; }
.lp-dark-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lp-line-btn { background: transparent; color: var(--text); border: 1px solid var(--text); }
.lp-line-btn:hover { background: var(--text); color: var(--surface); }
.lp-dark-btn .ms, .lp-line-btn .ms { font-size: 18px; }
.lp-big { height: 46px; padding: 0 22px; font-size: 15px; }


.lp-collage {
  position: relative; min-height: min(92vh, 860px); display: grid; place-items: center; padding: 0; text-align: center; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    #f7f7fb;
}
.lp-collage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 50% 52%, rgba(247, 247, 251, 0.95), rgba(247, 247, 251, 0) 75%); pointer-events: none; }
.lp-hero-copy { position: relative; z-index: 2; }
.lp-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.lp-collage .lp-title { font-weight: 400; letter-spacing: -0.035em; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.08; max-width: 820px; }
.lp-collage .lp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 14px; }
.lp-sub { color: var(--muted); font-size: 13px; margin: 0; }
.lp-tiles { position: absolute; inset: 0; z-index: 1; }
.lp-tile {
  position: absolute; margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(30, 27, 75, 0.35);
  background: var(--photo) center / cover no-repeat, linear-gradient(140deg, var(--g1), var(--g2));
  display: grid; place-items: center; will-change: transform;
}
/* The icon only shows while a photo slot is empty: a real photo covers it. */
.lp-tile .ms { font-size: 40px; color: rgba(255, 255, 255, 0.7); }
.t1 { --g1: #c7d2fe; --g2: #818cf8; left: 6%; top: 12%; width: 12%; aspect-ratio: 1; }
.t2 { --g1: #fde68a; --g2: #f59e0b; left: 3%; top: 42%; width: 16%; aspect-ratio: 4 / 5; }
.t3 { --g1: #fbcfe8; --g2: #db2777; left: 17%; top: 74%; width: 9%; aspect-ratio: 4 / 3; }
.t4 { --g1: #a7f3d0; --g2: #059669; right: 3%; top: 38%; width: 11%; aspect-ratio: 1; }
.t5 { --g1: #bae6fd; --g2: #0284c7; left: 54%; top: 4%; width: 18%; aspect-ratio: 16 / 7; }
.t6 { --g1: #ddd6fe; --g2: #7c3aed; left: 56%; top: 14%; width: 9%; aspect-ratio: 5 / 6; }
.t7 { --g1: #fed7aa; --g2: #ea580c; right: 1%; top: 6%; width: 7%; aspect-ratio: 2 / 3; }
.t8 { --g1: #e0e7ff; --g2: #4f46e5; right: 18%; bottom: 8%; width: 13%; aspect-ratio: 4 / 3; }
.lp-down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: var(--text); animation: lp-bob 2.4s ease-in-out infinite; }
.lp-down .ms { font-size: 30px; }
@keyframes lp-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.lp-preview { padding: 72px 0 0; text-align: center; background: linear-gradient(180deg, #f7f7fb, var(--bg)); }
.lp-preview .lp-lead { margin: 0 auto 8px; }
.lp-preview .lp-stage { margin-top: 40px; }
@media (max-width: 980px) {
  .lp-nav .lp-links { display: none; }
  .t3, .t6, .t7 { display: none; }
  .t2 { left: 2%; top: 58%; width: 26%; }
  .t1 { left: 4%; top: 10%; width: 18%; }
  .t4 { right: 4%; top: 12%; width: 18%; }
  .t5 { left: 34%; top: 2%; width: 30%; }
  .t8 { right: 4%; bottom: 6%; width: 22%; }
}
@media (max-width: 700px) {
  .lp-right .lp-login span:first-child { display: none; }
  .lp-right { gap: 6px; }
  .lp-head-cta span:first-child { display: none; }
  .lp-head-cta { padding: 0 10px; }
  .lp-collage { min-height: 640px; }
  .lp-tile .ms { font-size: 26px; }
  .t1 { width: 24%; top: 8%; }
  .t4 { width: 22%; top: 6%; }
  .t5 { display: none; }
  .t2 { width: 26%; top: 80%; left: 3%; }
  .t8 { width: 30%; bottom: 4%; }
}
@media (prefers-reduced-motion: reduce) { .lp-down { animation: none; } }

/* ---- app look, matching the landing page: navy buttons, light big headings, crisp corners, faint grid ---- */
:root { --ink: #1e1b4b; --on-ink: #ffffff; --grid: rgba(79, 70, 229, 0.045); }
:root[data-theme="dark"] { --ink: #8b85ff; --on-ink: #0d0b2b; --grid: rgba(139, 133, 255, 0.05); }

/* Faint grid behind the working area (not on the public pages). */
body:not(.site) .main-wrap {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--bg);
}

/* Headings: larger and lighter, like the landing headline. */
h1 { font-size: 32px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.15; }
.page-head { margin: 14px 0 28px; }
.page-head .muted { font-size: 14px; margin-top: 8px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow a { color: var(--muted); }
.card-head h2, .card > h2 { font-weight: 600; letter-spacing: -0.02em; }

/* Buttons: navy main action, crisper corners, outlined secondary. */
.btn { border-radius: 8px; box-shadow: none; font-weight: 500; }
.btn-sm { border-radius: 7px; }
.btn-xs { border-radius: 6px; }
.btn-lg { border-radius: 8px; }
.btn-primary, .fab { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: none; }
.btn-primary:hover, .fab:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn:not(.btn-primary):not(.btn-tonal):not(.btn-danger):not(.btn-whatsapp):not(.btn-danger-ghost) { border-color: var(--line-strong); }
.btn:not(.btn-primary):not(.btn-tonal):not(.btn-danger):not(.btn-whatsapp):not(.btn-danger-ghost):hover { border-color: var(--text); background: var(--surface); }
.fab { border-radius: 8px; border: 1px solid var(--ink); }
.btn-tonal { border-radius: 8px; }

/* Sidebar: quieter, with the open page marked by a navy bar. */
.sidebar { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.sidebar nav a { border-radius: 7px; position: relative; }
.sidebar nav a.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--ink); }
.sidebar nav a.active .ms { color: var(--ink); }
.nav-section { letter-spacing: 0.08em; }
.user-card { border-radius: 8px; }

/* Top bar: white strip with a hairline, like the landing header. */
.topbar { background: color-mix(in srgb, var(--surface) 88%, transparent); border-bottom-color: var(--line); }
.global-search { border-radius: 8px; }

/* Cards, tiles and chips: slightly crisper. */
.card { border-radius: 14px; }
.tile { border-radius: 12px; }
.chip { border-radius: 7px; }
.segmented { border-radius: 9px; }
.segmented .chip { border-radius: 6px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.segmented .chip.on { background: var(--surface); color: var(--text); border-color: transparent; }
.badge { border-radius: 6px; }
input, select, textarea { border-radius: 8px; }

/* Hero cards keep the brand gradient but square up a little. */
.hero-card { border-radius: 16px; }

/* ---- Today dashboard: side column + activity + forecast ---- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-side, .dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-side > .card, .dash-main > .card { margin-bottom: 0; }
.dash-date { display: flex; flex-direction: column; padding: 18px 22px; }
.dash-date span { color: var(--muted); font-size: 14px; text-transform: capitalize; }
.dash-date b { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; margin: 4px 0 2px; }
.dash-occ { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.dash-ring { display: grid; place-items: center; }
.dash-ring .ring { width: 150px; height: 150px; }
.dash-ring .ring-label strong { font-size: 26px; font-weight: 600; }
.dash-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.dash-counts li { display: flex; align-items: baseline; gap: 10px; }
.dash-counts b { min-width: 26px; text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-counts li.warn b { color: var(--warn-ink); }
.dash-money { display: flex; flex-direction: column; gap: 6px; }
.dash-money > b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.dash-methods { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dash-methods span { display: flex; justify-content: space-between; color: var(--muted); }
.dash-methods em { font-style: normal; color: var(--text); font-weight: 500; }
.dash-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dash-mini a { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text); font-weight: 600; }
.dash-mini a small { color: var(--muted); font-weight: 400; }
.dash-mini a.owed { color: var(--danger-ink); }
.dash-search { max-width: 260px; margin: 0; }
.dash-search input { height: 34px; }
.act-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.act-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font: 500 13px var(--font); color: var(--muted); cursor: pointer; text-align: left; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.act-tab:hover { border-color: var(--line-strong); color: var(--text); }
.act-tab.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--text); background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.act-num { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.act-num .ms { font-size: 17px; color: var(--faint); }
.act-tab.on .act-num .ms { color: var(--ink); }
.dash-activity .table-wrap { margin: 0 -24px; }
.act-foot { margin: 12px 0 0; }
.act-empty { text-align: center; padding: 36px 16px 24px; color: var(--muted); background: var(--surface-2); border-radius: 10px; }
.act-empty .ms { font-size: 30px; color: var(--success); }
.act-empty p { margin: 8px 0 4px; font-weight: 600; color: var(--text); }
.fc-kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.fc-kpis span { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 96px; }
.fc-kpis b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.fc-kpis small { color: var(--muted); font-size: 12px; }
@media (max-width: 1180px) { .act-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); order: 2; }
  /* On smaller screens the activity list comes first; the date shrinks to one line. */
  .dash-date { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .dash-date b { font-size: 28px; margin: 0; }
}
@media (max-width: 600px) {
  .act-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-search { max-width: none; width: 100%; }
  .dash-activity .table-wrap { margin: 0 -18px; }
}
.act-chips { display: flex; gap: 4px; margin-top: 4px; }
.act-chips > span { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 600; }
.act-chips .ms { font-size: 13px; }
.act-icons { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: middle; }
.act-table td.num { white-space: nowrap; }

/* ---- cash drawer ---- */
.drawer-sum { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.drawer-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.drawer-sum > div > span { color: var(--muted); }
.drawer-sum b { font-variant-numeric: tabular-nums; font-weight: 600; }
.drawer-sum .due { border-top: 1px dashed var(--line-strong); padding-top: 10px; margin-top: 4px; font-size: 16px; }
.drawer-sum .due span { color: var(--text); font-weight: 600; }
.drawer-sum .due b { font-size: 22px; letter-spacing: -0.02em; }
.drawer-start { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.drawer-start h2 { margin: 0 0 4px; }
.drawer-start p { margin: 0; }
.drawer-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); }
.drawer-icon .ms { font-size: 28px; }

/* ---- groups ---- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.group-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.group-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.group-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.group-top strong { font-size: 16px; letter-spacing: -0.02em; }
.group-card small { display: flex; align-items: center; gap: 4px; }
.group-card .ms { font-size: 16px; }
.group-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.group-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.type-counts { display: flex; flex-direction: column; gap: 8px; }
.type-count { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; }
.type-count span { display: flex; flex-direction: column; }
.type-count input { width: 90px; text-align: center; }
.link-btn { border: 0; background: none; padding: 0; font: 600 14px var(--font); color: var(--text); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--brand); text-decoration: underline; }

/* ---- spaces calendar ---- */
.sp-grid { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.sp-grid th, .sp-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.sp-grid tr > *:last-child { border-right: 0; }
.sp-grid tbody tr:last-child > * { border-bottom: 0; }
.sp-grid thead th { background: var(--surface-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); padding: 8px 6px; text-align: center; }
.sp-grid thead th b { display: block; font-size: 16px; color: var(--text); letter-spacing: -0.02em; text-transform: none; }
.sp-grid thead th.today b { color: var(--brand); }
.sp-grid thead th:first-child { width: 170px; text-align: left; padding-left: 18px; }
.sp-grid tbody th { text-align: left; padding: 12px 14px 12px 18px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.sp-grid tbody th strong, .sp-grid tbody th small { display: block; }
.sp-grid td { padding: 6px; height: 74px; cursor: cell; }
.sp-grid td.today { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.sp-grid td.past { background: var(--surface-2); cursor: default; }
.sp-grid td:not(.past):hover { background: var(--brand-soft); }
.sp-event {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--violet); border-radius: 7px;
  background: var(--violet-soft); color: var(--violet-ink); font: 500 11px var(--font); padding: 5px 7px; margin-bottom: 4px; cursor: pointer; overflow: hidden;
}
.sp-event b { font-weight: 700; }
.sp-event span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-event.tentative { background: transparent; border: 1px dashed var(--violet); border-left-width: 3px; }
.sp-event.billed { border-left-color: var(--success); }

/* ---- Tickets ---- */
.b-urgent { background: var(--danger-soft); color: var(--danger-ink); }
.b-open { background: var(--warn-soft); color: var(--warn-ink); }
.b-in_progress { background: var(--info-soft); color: var(--info-ink); }
.b-done { background: var(--success-soft); color: var(--success-ink); }
.b-low { background: var(--surface-3); color: var(--muted); }
.ticket-list { display: grid; gap: 8px; }
.ticket-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 180px auto; align-items: center; gap: 14px;
  width: 100%; padding: 12px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 12px;
}
.ticket-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ticket-row.pr-urgent { border-left-color: var(--danger); }
.ticket-row.st-done, .ticket-row.st-cancelled { opacity: 0.75; }
.ticket-kind { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.ticket-main { display: grid; min-width: 0; }
.ticket-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-main small { color: var(--muted); }
.ticket-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.ticket-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ticket-summary { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.ticket-summary b, .ticket-summary small { display: block; }
.ticket-summary small { color: var(--muted); }
.ticket-summary.attn { border-color: var(--danger); }
.kind-pick { margin-bottom: 14px; }
.kind-pick .chip { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick .chip:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .ticket-row { grid-template-columns: 36px minmax(0, 1fr); }
  .ticket-who, .ticket-tags { grid-column: 2; justify-content: flex-start; }
}

/* ---- Housekeeping ---- */
.b-skipped { background: var(--surface-3); color: var(--muted); }
.hk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hk-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.hk-card.in_progress { border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.hk-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hk-card-top .room-no { font-size: 22px; font-weight: 700; }
.hk-task { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 0 0 4px; }
.hk-card .actions { margin-top: 10px; flex-wrap: wrap; }
.hk-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.hk-person { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hk-person .grow { display: grid; gap: 2px; min-width: 0; }
.hk-person .stay-bar { margin-top: 4px; }
.hk-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hk-bulk select { width: auto; height: 32px; padding: 0 28px 0 10px; font-size: 13px; }
tr.quiet td { color: var(--faint); }

/* ---- Accounting ---- */
.acct-range { display: flex; align-items: center; gap: 6px; }
.acct-range input { width: auto; height: 32px; padding: 0 8px; font-size: 13px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 12px; }
.acct-grid .card, .acct-day { margin-bottom: 0; }
.table tr.total td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.acct-export { margin-bottom: 16px; flex-wrap: wrap; }
.acct-day { margin-top: 12px; }
.acct-day > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.acct-day > summary::-webkit-details-marker { display: none; }
.acct-day[open] > summary { margin-bottom: 12px; }
.table.small td { font-size: 13px; padding-top: 8px; padding-bottom: 8px; }
.code-rows { display: grid; gap: 8px; }
.code-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
#codes .card { margin-bottom: 16px; }

/* ---- Revenue ---- */
.rev-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; margin-bottom: 16px; }
.rev-grid .card { margin-bottom: 0; }
.src-bars { display: grid; gap: 8px; margin-top: 14px; }
.src-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 13px; }
.src-bar b { text-align: right; }
.rev-table .why { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rev-actions { margin-top: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Price check ---- */
.pc-card { padding: 0; overflow: hidden; }
.pc-card > p { padding: 0 18px 16px; margin: 12px 0 0; }
.pc-table th, .pc-table td { text-align: center; white-space: nowrap; }
.pc-table tbody th { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 170px; }
.pc-table thead th.today { color: var(--text); }
.pc-table thead th:first-child { text-align: left; }
.pc-table .stars { color: var(--warn); font-size: 11px; letter-spacing: -1px; }
.pc-ours td, .pc-ours th { background: var(--surface-2); }
.pc-avg td, .pc-avg th { font-weight: 600; border-top: 2px solid var(--line-strong); }
.pc-cell {
  min-width: 84px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font: 500 13px var(--font); color: var(--text); cursor: pointer;
}
.pc-cell:hover { border-color: var(--line-strong); background: var(--hover); }
.pc-cell.empty { border-style: dashed; color: var(--faint); }
.pc-cell.full { background: var(--danger-soft); color: var(--danger-ink); border-color: transparent; }
.pc-cell.old { opacity: 0.5; }

/* ---- Guest marketing ---- */
.mk-presets { margin-bottom: 14px; flex-wrap: wrap; }
.mk-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; align-items: end; margin-bottom: 14px; }
.mk-filters label { margin-bottom: 0; }
.mk-count { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.mk-count p { margin: 0; }
.mk-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.mk-preview p, .mk-message { white-space: pre-wrap; margin: 4px 0 0; }
.mk-row.sent .grow b, .mk-row.skipped .grow b { color: var(--muted); }
.mk-row .btn { flex-shrink: 0; }
@media (max-width: 720px) { .mk-row { flex-wrap: wrap; } .mk-row .grow { flex-basis: calc(100% - 50px); } }

/* ---- Digital marketing ---- */
.code-chip { display: inline-block; padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--line-strong); background: var(--surface-2); font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
.link-text { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-size: 12px; color: var(--muted); }
.who small { display: block; }

/* "Get your hotel ready" checklist on Today for a new hotel. */
.setup-list { margin-bottom: 16px; }
.setup-list .card-head { align-items: flex-start; }
.setup-bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 4px 0 8px; }
.setup-bar span { display: block; height: 100%; background: var(--success); border-radius: 99px; transition: width 0.4s var(--ease); }
.setup-list ol { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.setup-list li:first-child { border-top: 0; }
.setup-list li b { display: block; font-weight: 600; }
.setup-list li small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.setup-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.setup-list li.next .setup-ic { background: var(--brand-soft); color: var(--brand); }
.setup-list li.done .setup-ic { background: var(--success-soft); color: var(--success); }
.setup-list li.done b { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--line-strong); }
.setup-list li .grow { flex: 1; min-width: 0; }
.setup-list li .btn { flex: none; }

/* Authenticator setup on /admin: the QR code stays dark-on-white in dark mode too, so phones can read it. */
.mfa-qr { width: 220px; max-width: 100%; margin: 8px auto 12px; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.mfa-qr svg { display: block; width: 100%; height: auto; }
