/* ==========================================================================
   Grand Tamaraw PMS — design system
   Tokens → base → layout → components → modules
   Chart / status colours are the validated dataviz palette (see docs).
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces & ink */
  --page:        #f4f4f1;
  --surface:     #ffffff;
  --surface-2:   #fafaf8;
  --surface-3:   #f1f1ed;
  --chart-surface: #fcfcfb;
  --ink:         #111418;
  --ink-2:       #52514e;
  --ink-3:       #7d7b75;
  --line:        #e6e5df;
  --line-2:      #d6d5cd;
  --grid:        #e1e0d9;
  --baseline:    #c3c2b7;
  --ring:        rgba(17, 20, 24, 0.08);
  --shadow-sm:   0 1px 2px rgba(17, 20, 24, 0.05);
  --shadow:      0 1px 2px rgba(17, 20, 24, 0.04), 0 4px 16px rgba(17, 20, 24, 0.06);
  --shadow-lg:   0 12px 40px rgba(17, 20, 24, 0.18);
  --overlay:     rgba(12, 20, 28, 0.45);

  /* Brand */
  --brand:        #0d1f2b;   /* sidebar night navy */
  --brand-2:      #13293a;
  --brand-ink:    #d7e0e6;
  --brand-ink-2:  #8ea1ad;
  --gold:         #c9a55a;
  --gold-soft:    #f5eedd;

  /* Actions */
  --primary:        #1f4e79;
  --primary-hover:  #183f63;
  --primary-soft:   #e9eff6;
  --primary-ink:    #ffffff;
  --focus:          #2a78d6;

  /* Status (fixed, reserved meaning — always with icon/label) */
  --good:     #0ca30c;
  --good-ink: #006300;
  --warning:  #fab219;
  --serious:  #ec835a;
  --critical: #d03b3b;
  --critical-ink: #b02a2a;

  /* Room status — validated categorical order (light) */
  --st-occupied:   #2a78d6;
  --st-reserved:   #eb6834;
  --st-available:  #1baf7a;
  --st-dirty:      #eda100;
  --st-cleaning:   #e87ba4;
  --st-inspecting: #4a3aa7;
  --st-oos:        #e34948;

  /* Chart series (categorical slots 1–2) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #4a3aa7;

  /* Type & rhythm */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --sidebar-w: 252px;
  --sidebar-w-collapsed: 72px;
  --topbar-h:  60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f1113; --surface: #17191c; --surface-2: #1c1f22; --surface-3: #23262a; --chart-surface: #1a1a19;
    --ink: #f3f4f5; --ink-2: #c3c2b7; --ink-3: #8f8d86; --line: #2a2d31; --line-2: #383b40; --grid: #2c2c2a; --baseline: #383835;
    --ring: rgba(255,255,255,0.08); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
    --overlay: rgba(0,0,0,0.6);
    --brand: #0a151d; --brand-2: #10202c; --gold-soft: #2e2716;
    --primary: #3f7fc0; --primary-hover: #5591cf; --primary-soft: #1b2a3a;
    --good-ink: #0ca30c; --critical-ink: #ef6b6b;
    --st-occupied: #3987e5; --st-reserved: #d95926; --st-available: #199e70; --st-dirty: #c98500;
    --st-cleaning: #d55181; --st-inspecting: #9085e9; --st-oos: #e66767;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #9085e9;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0f1113; --surface: #17191c; --surface-2: #1c1f22; --surface-3: #23262a; --chart-surface: #1a1a19;
  --ink: #f3f4f5; --ink-2: #c3c2b7; --ink-3: #8f8d86; --line: #2a2d31; --line-2: #383b40; --grid: #2c2c2a; --baseline: #383835;
  --ring: rgba(255,255,255,0.08); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 16px 48px rgba(0,0,0,.55);
  --overlay: rgba(0,0,0,0.6);
  --brand: #0a151d; --brand-2: #10202c; --gold-soft: #2e2716;
  --primary: #3f7fc0; --primary-hover: #5591cf; --primary-soft: #1b2a3a;
  --good-ink: #0ca30c; --critical-ink: #ef6b6b;
  --st-occupied: #3987e5; --st-reserved: #d95926; --st-available: #199e70; --st-dirty: #c98500;
  --st-cleaning: #d55181; --st-inspecting: #9085e9; --st-oos: #e66767;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #9085e9;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink);
  background: var(--page); -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.app-shell.is-collapsed { grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr); }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); color: var(--brand-ink);
  border-right: 1px solid rgba(255,255,255,0.04); z-index: 40;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 16px 18px; height: var(--topbar-h); border-bottom: 1px solid rgba(255,255,255,0.06); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #e3c585, var(--gold) 55%, #9b7a38); color: #1a1406;
  font-weight: 800; font-size: 13px; letter-spacing: 0.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-text { min-width: 0; }
.brand-name { font-weight: 650; font-size: 14px; color: #fff; white-space: nowrap; letter-spacing: 0.01em; }
.brand-sub { font-size: 11px; color: var(--brand-ink-2); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-section { margin-top: 14px; }
.nav-section-label { padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-ink-2); opacity: .8; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 1px 0; border-radius: 8px;
  color: var(--brand-ink); font-weight: 500; font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.nav-item.is-active { background: rgba(255,255,255,0.09); color: #fff; }
.nav-item.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-item .icon { opacity: .85; }
.nav-item.is-active .icon { color: var(--gold); opacity: 1; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.12); color: #fff; font-variant-numeric: tabular-nums;
}
.nav-badge.tone-danger { background: var(--critical); }
.sidebar-footer { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 11.5px; color: var(--brand-ink-2); }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(201,165,90,0.14); color: #e7cf9b; font-weight: 600; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }

.app-shell.is-collapsed .brand-text, .app-shell.is-collapsed .nav-label, .app-shell.is-collapsed .nav-section-label,
.app-shell.is-collapsed .sidebar-footer .footer-text { display: none; }
.app-shell.is-collapsed .nav-item { justify-content: center; padding: 10px; }
.app-shell.is-collapsed .nav-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.app-shell.is-collapsed .sidebar-brand { justify-content: center; padding: 0; }
.app-shell.is-collapsed .nav-section { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; }

.sidebar-backdrop { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 10px;
  padding: 0 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-spacer { flex: 1; }
.content { padding: 24px 28px 48px; max-width: 1560px; width: 100%; margin: 0 auto; }

.icon-btn {
  position: relative; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 9px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .dot-count {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--critical); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--surface); font-variant-numeric: tabular-nums;
}

.property-switch {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; max-width: 360px; text-align: left;
}
.property-switch:hover { border-color: var(--line-2); background: var(--surface-2); }
.property-switch .ps-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-soft); color: #8a6a26; }
.property-switch .ps-name { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-switch .ps-sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.2; white-space: nowrap; }

.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 0 8px; }
.clock-date { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.clock-time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.user-chip { display: inline-flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.user-chip:hover { background: var(--surface-3); }
.user-chip .uc-name { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.user-chip .uc-role { font-size: 11.5px; color: var(--ink-3); line-height: 1.2; white-space: nowrap; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; background: var(--primary);
}
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

/* Dropdown panels */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none;
}
.dropdown.is-open .dropdown-panel { display: block; animation: pop .12s ease-out; }
.dropdown-panel.left { left: 0; right: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-size: 13.5px; text-decoration: none;
}
.menu-item:hover { background: var(--surface-3); text-decoration: none; }
.menu-item .icon { color: var(--ink-3); }
.menu-item.is-selected { font-weight: 600; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-head { padding: 8px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.notif-panel { width: 380px; padding: 0; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; }
.notif-item:hover { background: var(--surface-2); text-decoration: none; }
.notif-item.is-unread { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.notif-item.is-unread .notif-title::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--focus); margin-left: 6px; vertical-align: middle; }
.notif-icon { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.notif-icon.t-DANGER { color: var(--critical); background: color-mix(in srgb, var(--critical) 12%, transparent); }
.notif-icon.t-WARNING { color: #b07600; background: color-mix(in srgb, var(--warning) 18%, transparent); }
.notif-icon.t-SUCCESS { color: var(--good-ink); background: color-mix(in srgb, var(--good) 13%, transparent); }
.notif-icon.t-INFO { color: var(--primary); background: var(--primary-soft); }
.notif-title { font-weight: 600; font-size: 13px; }
.notif-msg { color: var(--ink-2); font-size: 12.5px; margin-top: 1px; }
.notif-time { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
.notif-foot { padding: 10px 14px; text-align: center; }

/* --------------------------------------------------------------------------
   Page scaffolding
   -------------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { color: var(--ink-3); margin-top: 3px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head.flush { border-bottom: 0; padding-bottom: 4px; }
.card-title { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--ink-3); }
.card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 8px 10px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(17,20,24,.12); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-danger { background: var(--critical); border-color: var(--critical); color: #fff; }
.btn-danger:hover { filter: brightness(0.94); background: var(--critical); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn .spinner { width: 15px; height: 15px; }
.btn.is-loading { pointer-events: none; opacity: .85; }

/* --------------------------------------------------------------------------
   Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  --tone: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--ink);
  background: color-mix(in srgb, var(--tone) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); flex: none; }
.badge.no-dot::before { display: none; }
.badge.lg { height: 26px; font-size: 12.5px; padding: 0 11px 0 10px; }
.tone-occupied   { --tone: var(--st-occupied); }
.tone-reserved   { --tone: var(--st-reserved); }
.tone-available, .tone-clean { --tone: var(--st-available); }
.tone-dirty      { --tone: var(--st-dirty); }
.tone-cleaning   { --tone: var(--st-cleaning); }
.tone-inspecting { --tone: var(--st-inspecting); }
.tone-oos        { --tone: var(--st-oos); }
.tone-good       { --tone: var(--good); }
.tone-warning    { --tone: var(--warning); }
.tone-serious    { --tone: var(--serious); }
.tone-critical   { --tone: var(--critical); }
.tone-info       { --tone: var(--focus); }
.tone-neutral    { --tone: var(--ink-3); }
.tone-brand      { --tone: var(--gold); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip:hover { background: var(--surface-3); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.tag.gold { background: var(--gold-soft); color: #7a5b1c; }
.sim-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); color: #8a6a26; background: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Stat tiles
   -------------------------------------------------------------------------- */
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: left; color: inherit; min-width: 0; position: relative;
}
button.stat, a.stat { cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
button.stat:hover, a.stat:hover { border-color: var(--line-2); box-shadow: var(--shadow); text-decoration: none; }
button.stat:hover .stat-go, a.stat:hover .stat-go { opacity: 1; transform: none; }
.stat-go { position: absolute; top: 12px; right: 12px; color: var(--ink-3); opacity: 0; transform: translate(-3px, 3px); transition: all .15s; }
.stat-label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.stat-label .icon { color: var(--ink-3); width: 16px; height: 16px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat-value.sm { font-size: 21px; }
.stat-meta { font-size: 12px; color: var(--ink-3); }
.stat-meta .up { color: var(--good-ink); font-weight: 600; }
.stat-meta .down { color: var(--critical-ink); font-weight: 600; }
.stat.accent-critical { border-left: 3px solid var(--critical); }
.stat.accent-warning { border-left: 3px solid var(--warning); }

.hero-figure { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

.meter { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--series-1) 18%, var(--surface-3)); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: var(--series-1); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--surface-2); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.is-clickable { cursor: pointer; }
.table .r, .table th.r { text-align: right; }
.table .c, .table th.c { text-align: center; }
.table td.num, .table td.r { font-variant-numeric: tabular-nums; }
.table.compact td { padding: 7px 12px; }
.table.nowrap-cells td { white-space: nowrap; }
.table.compact th { padding: 7px 12px; }
.table.dense th, .table.dense td { padding: 7px 6px; }
.table.dense th:first-child, .table.dense td:first-child { padding-left: 0; }
.table.dense th:last-child, .table.dense td:last-child { padding-right: 0; }
.table.dense th { background: transparent; letter-spacing: 0.04em; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.input.is-invalid, .select.is-invalid { border-color: var(--critical); }
.field-error { font-size: 12px; color: var(--critical-ink); }
.field-help { font-size: 12px; color: var(--ink-3); }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.input-icon .input { padding-left: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Modal, drawer, toast
   -------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .18s ease-out; }
.modal.sm { max-width: 420px; } .modal.lg { max-width: 820px; } .modal.xl { max-width: 1080px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-title { font-size: 16.5px; font-weight: 700; }
.modal-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; }

.drawer-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 90; animation: fade .15s ease-out; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: var(--surface); z-index: 91; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-foot { padding: 12px 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface-2); }

#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; min-width: 300px; max-width: 420px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); animation: rise .2s ease-out;
}
.toast .icon { margin-top: 1px; }
.toast.t-success .icon { color: #4ade80; } .toast.t-error .icon { color: #f87171; } .toast.t-warning .icon { color: #fbbf24; } .toast.t-info .icon { color: #93c5fd; }
.toast-title { font-weight: 650; font-size: 13.5px; }
.toast-msg { font-size: 12.5px; opacity: .8; margin-top: 1px; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .2s; }

/* --------------------------------------------------------------------------
   Loading & empty states
   -------------------------------------------------------------------------- */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.is-refreshing { opacity: .55; transition: opacity .2s; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 36px 20px; color: var(--ink-3); }
.empty .empty-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.empty-title { font-weight: 650; color: var(--ink); }

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.is-clickable { cursor: pointer; }
.list-item.is-clickable:hover { background: var(--surface-2); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed-item { display: flex; gap: 12px; padding: 10px 18px; }
.feed-item + .feed-item { border-top: 1px solid var(--line); }
.feed-text { font-size: 13px; }
.feed-time { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Charts (dataviz spec: thin marks, 4px data-ends, hairline grid, 2px gaps)
   -------------------------------------------------------------------------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .base-line { stroke: var(--baseline); stroke-width: 1; }
.chart .axis-label { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .axis-label.is-today { fill: var(--ink); font-weight: 700; }
.chart .mark { transition: opacity .12s; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .mark, .chart .mark.is-hover { opacity: .78; }
.chart .value-label { fill: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px; padding: 8px 10px; border-radius: 9px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}
.chart-tooltip .tt-head { color: var(--ink-3); font-size: 11.5px; margin-bottom: 4px; }
.chart-tooltip .tt-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chart-tooltip .tt-row + .tt-row { margin-top: 2px; }
.chart-tooltip .tt-key { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chart-tooltip .tt-key i { width: 12px; height: 2.5px; border-radius: 2px; display: inline-block; }
.chart-tooltip .tt-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.chart-table { margin-top: 10px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.view-toggle button { border: 0; background: var(--surface); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.view-toggle button.is-active { background: var(--surface-3); color: var(--ink); }

/* Stacked status bar */
.status-bar { display: flex; height: 14px; gap: 2px; border-radius: 4px; overflow: hidden; background: var(--surface); }
.status-bar > span { display: block; height: 100%; min-width: 2px; }
.status-bar > span:first-child { border-radius: 4px 0 0 4px; }
.status-bar > span:last-child { border-radius: 0 4px 4px 0; }
.status-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 6px; margin-top: 14px; }
.status-legend button {
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 8px 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; color: inherit;
}
.status-legend button:hover { border-color: var(--line-2); background: var(--surface-2); }
.status-legend .sl-top { display: flex; align-items: flex-start; gap: 7px; }
.status-legend .sl-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; margin-top: 3px; }
.status-legend .sl-label { font-size: 12px; line-height: 1.25; color: var(--ink-2); }
.status-legend .sl-count { font-size: 18px; font-weight: 700; line-height: 1.1; padding-left: 17px; }

/* Room map (compact 40-room grid) */
.room-map { display: grid; gap: 10px; }
.room-map-floor { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; }
.room-map-floor-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding-top: 7px; }
.room-map-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.room-tile {
  position: relative; height: 34px; border-radius: 7px; border: 0; cursor: pointer; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--tone); display: flex; align-items: center; justify-content: center; transition: transform .1s, box-shadow .1s;
}
.room-tile.ink-dark { color: #1b1406; }
.room-tile:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tone); z-index: 1; }
.room-tile .rt-flag { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.25); }

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { padding: 10px 14px; border: 0; background: transparent; color: var(--ink-3); font-weight: 600; font-size: 13.5px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--primary); }

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-greeting { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.dash-section-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 26px 0 10px; }
.dash-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi-row.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.occupancy-hero { display: flex; align-items: flex-end; gap: 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.mini-stat { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.mini-stat .ms-label { font-size: 11.5px; color: var(--ink-3); }
.mini-stat .ms-value { font-size: 17px; font-weight: 700; }
.op-list { display: grid; gap: 8px; }
.op-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; width: 100%; color: inherit; }
.op-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.op-row .op-label { flex: 1; font-size: 13px; color: var(--ink-2); }
.op-row .op-value { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.channel-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.channel-row + .channel-row { border-top: 1px solid var(--line); }
.channel-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; flex: none; }

/* --------------------------------------------------------------------------
   Auth / setup screens
   -------------------------------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-hero {
  position: relative; overflow: hidden; color: #eef3f6; padding: 44px 52px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(1200px 500px at 110% 110%, rgba(27,175,122,0.28), transparent 60%),
    radial-gradient(900px 480px at -10% 120%, rgba(42,120,214,0.35), transparent 60%),
    radial-gradient(700px 360px at 80% -10%, rgba(201,165,90,0.22), transparent 60%),
    linear-gradient(160deg, #0b1a24 0%, #0f2533 55%, #0c2a33 100%);
}
.auth-hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 190px; opacity: .5;
  background:
    radial-gradient(60% 90px at 20% 100%, rgba(255,255,255,0.10), transparent 70%),
    radial-gradient(50% 70px at 70% 100%, rgba(255,255,255,0.08), transparent 70%);
}
.auth-hero .brand { display: flex; align-items: center; gap: 14px; }
.auth-hero .brand-mark { width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
.auth-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; max-width: 520px; }
.auth-hero .lede { font-size: 15.5px; color: #b8c7d1; max-width: 480px; margin-top: 14px; }
.auth-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin-top: 30px; }
.auth-point { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #c9d6de; }
.auth-point .icon { color: var(--gold); margin-top: 2px; }
.auth-foot { font-size: 12px; color: #8ea1ad; position: relative; z-index: 1; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--page); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { font-size: 22px; font-weight: 700; }
.demo-accounts { display: grid; gap: 6px; margin-top: 10px; }
.demo-account {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; text-align: left; color: inherit; transition: border-color .12s, box-shadow .12s;
}
.demo-account:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.demo-account .da-main { flex: 1; min-width: 0; }
.demo-account .da-name { font-weight: 600; font-size: 13.5px; }
.demo-account .da-role { font-size: 12px; color: var(--ink-3); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 22px 0 6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert-error { background: color-mix(in srgb, var(--critical) 9%, var(--surface)); border-color: color-mix(in srgb, var(--critical) 30%, transparent); color: var(--critical-ink); }
.alert-info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--focus) 25%, transparent); color: var(--ink); }
.alert-warning { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 40%, transparent); color: var(--ink); }

/* Module landing (screens scheduled for later build phases) */
.module-hero { display: flex; gap: 20px; align-items: flex-start; padding: 24px; }
.module-hero-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.feature-list li .icon { color: var(--good-ink); margin-top: 2px; }

/* Error page */
.error-page { max-width: 560px; margin: 8vh auto; text-align: center; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1360px) {
  .kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-row.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .grid-12 > [class*="span-"] { grid-column: span 12; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clock { display: none; }
}
@media (max-width: 1023px) {
  .app-shell, .app-shell.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s ease; }
  .app-shell.is-mobile-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app-shell.is-collapsed .brand-text, .app-shell.is-collapsed .nav-label, .app-shell.is-collapsed .nav-section-label { display: initial; }
  .sidebar-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 35; display: none; }
  .app-shell.is-mobile-open .sidebar-backdrop { display: block; }
  .content { padding: 18px 16px 40px; }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { display: none; }
  .user-chip .uc-text { display: none; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .form-grid, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .kpi-row, .kpi-row.cols-5, .kpi-row.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-switch .ps-text { display: none; }
  .notif-panel { width: calc(100vw - 24px); right: -60px; }
  .topbar { padding: 0 10px; gap: 4px; }
  .page-title { font-size: 19px; }
}

@media print {
  .sidebar, .topbar, .page-actions, #toast-root { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* ==========================================================================
   Module screens (phase 2+)
   ========================================================================== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.filter-bar .input, .filter-bar .select { height: 34px; width: auto; min-width: 150px; }
.filter-bar .input-icon .input { min-width: 240px; }
.filter-bar .spacer { flex: 1; }
.chip .chip-count { font-variant-numeric: tabular-nums; opacity: .75; font-weight: 700; }

.drawer-section { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.table.kv td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.table.kv tr:last-child td { border-bottom: 0; }
.table.kv tbody tr:hover td { background: transparent; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { min-width: 140px; }
.link { color: var(--primary); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; }
.link:hover { text-decoration: underline; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.divider-line { height: 1px; background: var(--line); margin: 12px 0; }
.sticky-top { position: sticky; top: calc(var(--topbar-h) + 12px); }

/* Room cards (room board) */
.floor-block { margin-bottom: 22px; }
.floor-title { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.floor-title .muted { font-weight: 500; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.room-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 11px 12px 11px 15px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: inherit; min-height: 112px; box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.room-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.room-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rc-number { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-type { font-size: 12px; color: var(--ink-3); }
.rc-body { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; font-size: 11.5px; color: var(--ink-3); }
.cond-dot { display: inline-flex; align-items: center; gap: 5px; }
.cond-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }

/* Availability grid (sequential shading = occupancy) */
.avail-wrap { overflow-x: auto; }
.avail-grid { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 760px; }
.avail-grid th { font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; padding: 4px 2px; white-space: nowrap; }
.avail-grid th.is-weekend { color: var(--ink); }
.avail-grid th.is-today { color: var(--primary); }
.avail-grid th.row-head, .avail-grid td.row-head { text-align: left; padding-right: 10px; font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.avail-grid td.row-head .muted { font-weight: 500; }
.av-cell {
  width: 100%; min-width: 40px; height: 44px; border: 0; border-radius: 6px; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums; transition: transform .1s, box-shadow .1s;
}
.av-cell:hover, .av-cell:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); z-index: 1; }
.av-cell b { font-size: 14px; }
.av-cell small { font-size: 10px; opacity: .8; }
.av-cell.ink-light { color: #fff; }
.av-cell .av-oos { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--st-oos); box-shadow: 0 0 0 1.5px var(--surface); }
.av-total td { padding-top: 6px; }
.av-total .av-sum { text-align: center; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ramp-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.ramp-legend .ramp { width: 160px; height: 8px; border-radius: 4px; }

/* Rates */
.rate-input { width: 130px; height: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.season-amounts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.season-amounts span b { font-variant-numeric: tabular-nums; }
.quote-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.quote-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 750; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.quote-line { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; color: var(--ink-2); }
.quote-line span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.drawer-section .empty { padding: 14px 10px; gap: 4px; }
.drawer-section .empty .empty-icon { width: 32px; height: 32px; }
.drawer-section .empty .empty-icon .icon { width: 17px; height: 17px; }
.drawer-section .empty-title { font-size: 13px; }

/* Booking engine */
.step-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1.2fr 1.2fr .6fr .6fr auto; gap: 12px; align-items: end; }
.type-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px 18px; background: var(--surface); }
.type-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.type-card.is-soldout { opacity: .6; }
.type-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inv-math { font-size: 12px; color: var(--ink-3); margin-top: 6px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; display: inline-block; }
.offers { margin-top: 10px; display: grid; gap: 6px; }
.offer { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.offer:hover { border-color: var(--line-2); background: var(--surface-2); }
.cart-line { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
.cart-grid { grid-template-columns: 2fr .8fr .8fr 1fr .8fr 1.6fr; gap: 10px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--good-ink); background: color-mix(in srgb, var(--good) 14%, transparent); }
.success-icon .icon { width: 32px; height: 32px; }

/* Guest picker */
.guest-results { margin-top: 8px; display: grid; gap: 4px; max-height: 330px; overflow-y: auto; }
.guest-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; color: inherit; }
.guest-result:hover { border-color: var(--line-2); background: var(--surface-2); }
.guest-selected { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid color-mix(in srgb, var(--focus) 35%, var(--line)); border-radius: 12px; background: var(--primary-soft); }

/* Room picker (assignment) */
.room-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.room-pick-item { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: left; color: inherit; }
.room-pick-item:hover { border-color: var(--focus); }
.room-pick-item.is-selected { border-color: var(--focus); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 30%, transparent); }
.room-pick-item.is-loading { opacity: .5; pointer-events: none; }

/* Guest profile */
.profile-head { display: flex; gap: 18px; align-items: flex-start; }
.contact-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.contact-row span { display: inline-flex; align-items: center; gap: 6px; }
.pref-row { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.msg summary { cursor: pointer; font-size: 13px; }
.msg-body { white-space: pre-wrap; font-family: var(--font); font-size: 12.5px; color: var(--ink-2); margin: 10px 0 2px; padding: 10px; background: var(--surface-2); border-radius: 8px; }

@media (max-width: 1180px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .cart-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .search-row, .cart-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Front desk, folios & payments (Chunk 4)
   -------------------------------------------------------------------------- */
.spacer { flex: 1; }
.icon-btn.sm { width: 28px; height: 28px; }
.rc-number.sm { font-size: 16px; }
.dropdown-panel.popover { position: fixed; display: block; min-width: 230px; z-index: 95; animation: pop .12s ease-out; }

/* Payment capture */
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-method { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:hover { border-color: var(--focus); }
.pay-method.is-active { border-color: var(--focus); background: var(--primary-soft); color: var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 22%, transparent); }
.pay-method:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.pay-due .quote-line { font-size: 14px; }
.pay-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
.pay-row .icon { color: var(--ink-3); vertical-align: -2px; }

/* Folio panel */
.folio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.folio-tools { justify-content: flex-end; }
.folio-table tr.is-void td { color: var(--ink-3); }
.folio-table tr.is-void td .strong, .folio-table tr.is-void td:nth-child(n+4) { text-decoration: line-through; }
.folio-foot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-top: 14px; align-items: start; }
.folio.is-compact .folio-foot { grid-template-columns: minmax(0, 1fr) 280px; }
.split-part { display: grid; grid-template-columns: minmax(0, 1fr) 140px 36px; gap: 8px; align-items: center; }

/* Check-in / checkout */
.room-line { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.done-panel { text-align: center; padding-top: 34px; padding-bottom: 30px; }
.done-panel h2 { margin: 14px 0 4px; font-size: 21px; letter-spacing: -0.01em; }
.done-facts { display: grid; gap: 8px; max-width: 560px; margin: 18px auto 0; text-align: left; }
.done-facts > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.done-facts .icon { color: var(--ink-3); vertical-align: -2px; margin-right: 4px; }
.co-dates .ms-value { font-size: 15px; }

/* Walk-in wizard */
.stepper { display: flex; gap: 6px; flex-wrap: wrap; }
.stepper-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-3); font-size: 13px; font-weight: 600; }
.stepper-item .step-no { background: var(--line-2); color: var(--ink-2); }
.stepper-item.is-active { background: var(--primary-soft); color: var(--ink); }
.stepper-item.is-active .step-no { background: var(--primary); color: #fff; }
.stepper-item.is-done .step-no { background: var(--good-ink); color: #fff; }
.walkin-type { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.walkin-type.is-selected { border-color: var(--focus); }
.walkin-type.is-off { opacity: .6; }
.offer-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; color: inherit; min-width: 150px; }
.offer-pick:hover { border-color: var(--focus); }
.offer-pick.is-selected { border-color: var(--focus); background: var(--primary-soft); box-shadow: 0 0 0 2px color-mix(in srgb, var(--focus) 25%, transparent); }

@media (max-width: 720px) {
  .folio-foot, .folio.is-compact .folio-foot { grid-template-columns: 1fr; }
  .split-part { grid-template-columns: 1fr 110px 36px; }
  .co-dates { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Printable documents (invoice)
   -------------------------------------------------------------------------- */
body.print-page { background: var(--page); padding: 24px 16px; }
.print-toolbar { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.invoice { max-width: 860px; margin: 0 auto; background: #fff; color: #111418; border: 1px solid var(--line); border-radius: 12px; padding: 36px 40px; font-size: 13.5px; }
.invoice .muted { color: #6b6a65; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid #111418; flex-wrap: wrap; }
.invoice-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; margin-bottom: 4px; }
.invoice-title { font-size: 17px; font-weight: 750; text-align: right; margin-bottom: 6px; }
.invoice-meta table td { padding: 1px 0 1px 14px; font-size: 13px; }
.invoice-meta table td:first-child { color: #6b6a65; padding-left: 0; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 0; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b6a65; border-bottom: 1px solid #d6d5cd; padding: 6px 6px; }
.invoice-table td { padding: 7px 6px; border-bottom: 1px solid #eceae4; vertical-align: top; }
.invoice-table .r, .invoice-totals .r { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-table.compact td { padding: 5px 4px; font-size: 12.5px; }
.invoice-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 20px; align-items: start; }
.invoice-totals { width: 100%; border-collapse: collapse; }
.invoice-totals td { padding: 4px 0; }
.invoice-totals tr.strong td { font-weight: 700; border-top: 1px solid #d6d5cd; }
.invoice-totals tr.grand td { font-size: 16px; font-weight: 800; border-top: 2px solid #111418; padding-top: 8px; }
.invoice-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid #eceae4; }
@media (max-width: 640px) {
  .invoice { padding: 22px 18px; }
  .invoice-parties, .invoice-bottom { grid-template-columns: 1fr; }
  .invoice-table th:nth-child(4), .invoice-table td:nth-child(4), .invoice-table th:nth-child(6), .invoice-table td:nth-child(6) { display: none; }
}
@media print {
  .no-print { display: none !important; }
  body.print-page { background: #fff; padding: 0; }
  .invoice { border: 0; border-radius: 0; padding: 0; max-width: none; }
}
.drawer-section:empty { display: none; }
.inline-form > .input { flex: 1 1 160px; width: auto; min-width: 0; }

/* Housekeeping (Chunk 6) */
.hk-card { min-height: 150px; }
.hk-card .tag, .hk-card .badge { font-size: 11px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.team-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.team-card .mini-stats { margin-top: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-3 { margin-bottom: 12px; }
.team-card .mini-stat { padding: 8px 10px; }
.team-card .mini-stat .ms-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Maintenance (Chunk 7) */
.table tr.row-critical td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; text-decoration: none; }
.photo:hover { border-color: var(--focus); text-decoration: none; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--surface-3); }
.timeline { display: grid; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: start; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; background: var(--ink-3); }
.tl-dot.tone-info { background: var(--focus); }
.tl-dot.tone-good { background: var(--good); }
.inline-form > input[type="file"] { flex: 1 1 220px; padding: 7px 10px; }

/* Loyalty (Chunk 8) */
.tier-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--tier); background: color-mix(in srgb, var(--tier) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tier) 35%, transparent); }
.tier-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--surface-3); margin: 2px 0; }
.tier-bar span { display: block; height: 100%; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tier-card { padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--tier); border-radius: var(--radius-lg); background: var(--surface); }
.tier-benefits { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 13px; }
.tier-benefits .icon { color: var(--good-ink); vertical-align: -2px; }
.member-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--tier), color-mix(in srgb, var(--tier) 55%, #0d1f2b)); box-shadow: var(--shadow); }
.member-points { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.reward-list { display: grid; gap: 8px; }
.reward-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.reward-row.is-off { opacity: .6; }

/* Channel manager (Chunk 9) */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.channel-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.channel-card .mini-stats { margin-top: 12px; }
.run-card { border-left: 3px solid var(--focus); }
.table tr.row-warn td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.log-details summary { cursor: pointer; color: var(--ink-3); margin-top: 4px; }
.log-details pre { margin: 6px 0 0; padding: 8px 10px; max-height: 220px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; white-space: pre-wrap; }

/* Reports (Chunk 10) */
.report-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.report-nav { padding: 8px; position: sticky; top: calc(var(--topbar-h) + 12px); }
.report-group { padding: 10px 10px 4px; color: var(--ink-3); }
.report-link { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.report-link:hover { background: var(--surface-3); color: var(--ink); }
.report-link.is-active { background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.report-table tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); background: var(--surface-2); }
.print-only { display: none; }
@media (max-width: 900px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .report-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .report-nav .report-group { width: 100%; }
  .report-link { width: auto; }
}
@media print {
  .sidebar, .topbar, .page-head, .report-nav, .report-filters, #toast-root, .sidebar-backdrop { display: none !important; }
  .app-shell, .main, .content { display: block !important; padding: 0 !important; margin: 0 !important; }
  .report-layout { display: block; }
  .card { box-shadow: none !important; border: 0 !important; }
  .print-only { display: block; padding: 0 0 10px; }
  .report-table { font-size: 11px; }
  .table-wrap { overflow: visible !important; }
}

/* Administration (Chunk 10) */
.table .c { text-align: center; }
.perm-wrap { max-height: 70vh; }
.perm-matrix th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); vertical-align: bottom; }
.perm-matrix td:first-child, .perm-matrix th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 240px; }
.perm-matrix th:first-child { z-index: 3; background: var(--surface-2); }
.perm-matrix tr.perm-module td { background: var(--surface-3); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.perm-matrix input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.perm-matrix input[type="checkbox"]:disabled { cursor: not-allowed; }
.audit-detail > td { background: var(--surface-2); }
.audit-diff { padding: 6px 4px; }
.audit-diff .table { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
.check-row > .icon:first-child { color: var(--good-ink); }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; border: 1px solid color-mix(in srgb, var(--critical) 35%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--critical) 5%, var(--surface)); }
.settings-form { max-width: 860px; }
