/* AuraStays Operations OS — design system.
   Direction: Swiss-minimal operations console. Deep navy structure, one warm gold brand accent,
   neutral slate surfaces, dense rows. Status is always text + colour, never colour alone.
   Fonts are local (offline app): Segoe UI Variable for UI, a serif only for the wordmark. */

.property-workspace { max-width: 1520px; margin-inline: auto; }
.property-overview { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.property-visual { min-width: 0; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.property-photo-frame { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-3); color: var(--text-2); }
.property-photo-frame img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.property-photo-empty { padding: 28px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.property-photo-empty strong { font-size: 17px; color: var(--text); }
.property-photo-status { color: var(--text-2); }
.property-gallery-controls { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 12px; }
.property-gallery-controls button { min-height: 34px; min-width: 34px; }
.property-facts.card { display: grid; gap: 10px; min-width: 0; padding: 24px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.property-eyebrow { color: var(--accent-text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.property-facts h2 { margin: 0; font-size: clamp(23px, 2.6vw, 32px); font-family: var(--font-brand); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.property-facts p { margin: 0; overflow-wrap: anywhere; }
.property-fact-grid { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.property-fact-grid div { background: var(--surface-2); padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.property-facts dt { color: var(--text-2); }
.property-facts dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.property-fact-grid dd { margin-top: 4px; font-size: 17px; }
.property-operations { padding: 0; margin: 0 0 6px; }
.property-operations div { display: grid; grid-template-columns: minmax(110px, 2fr) minmax(0, 3fr); align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.property-access-readout { margin: 0; max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font); line-height: 1.5; }
@media (max-width: 1050px) {
  .property-overview { grid-template-columns: minmax(0, 1fr); }
  .property-photo-frame, .property-photo-frame img { aspect-ratio: 16 / 9; }
}

:root {
  /* brand */
  --navy-950: #0b1426;
  --navy-900: #0f1b33;
  --navy-800: #16264a;
  --navy-700: #1e3a8a;
  --gold-600: #a16207;
  --gold-500: #b7791f;
  --gold-300: #e9c46a;

  /* semantic — light */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --accent: #1e3a8a;
  --accent-hover: #172e6e;
  --accent-text: #1e40af;
  --accent-weak: #eef2ff;
  --accent-weak-2: #e0e7ff;
  --on-accent: #ffffff;
  --brand: var(--gold-600);
  --ok: #15803d;
  --ok-weak: #ecfdf3;
  --ok-line: #bbf7d0;
  --warn: #a16207;
  --warn-weak: #fefce8;
  --warn-line: #fde68a;
  --bad: #b91c1c;
  --bad-weak: #fef2f2;
  --bad-line: #fecaca;
  --info: #4338ca;
  --info-weak: #eef2ff;
  --info-line: #c7d2fe;
  --fixture: #a21caf;
  --fixture-weak: #fdf4ff;
  --fixture-line: #f5d0fe;
  --muted-weak: #f1f5f9;

  /* chrome */
  --sidebar: var(--navy-900);
  --sidebar-2: var(--navy-950);
  --sidebar-text: #a9b6cc;
  --sidebar-text-strong: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, 0.06);
  --sidebar-active: rgba(255, 255, 255, 0.1);
  --overlay: rgba(15, 23, 42, 0.45);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.18);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px #3b82f6;

  /* calendar cells */
  --cell-occ: #dbe4ff;
  --cell-occ-text: #1e3a8a;
  --cell-occ-line: #1e3a8a;
  --cell-block-a: #fee2e2;
  --cell-block-b: #fecaca;
  --cell-block-text: #991b1b;
  --cell-src-a: #f1f5f9;
  --cell-src-b: #e2e8f0;
  --cell-conflict: #fca5a5;
  --cell-conflict-text: #7f1d1d;
  --ch-air: #ffe4e6;
  --ch-air-text: #9f1239;
  --ch-air-line: #e11d48;
  --ch-bk: #dbeafe;
  --ch-bk-text: #1e3a8a;
  --ch-bk-line: #2563eb;
  --weekend: #f8fafc;

  /* type & rhythm */
  --font: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-brand: Georgia, 'Times New Roman', serif;
  --mono: 'Cascadia Mono', 'Cascadia Code', Consolas, monospace;
  --fs: 14px;
  --row-h: 34px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --t-fast: 120ms;
  --t: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  font-size: var(--fs);
  color-scheme: light;
}

/* dark — applied when the user picks Dark, or follows a dark OS setting */
:root[data-theme='dark'] {
  --bg: #0b1220;
  --surface: #111a2c;
  --surface-2: #142036;
  --surface-3: #1a2842;
  --border: #22314d;
  --border-strong: #31446a;
  --text: #e6ebf3;
  --text-2: #a7b3c7;
  --text-3: #8391a8;
  --accent: #5b7cf0;
  --accent-hover: #6f8cf5;
  --accent-text: #93acff;
  --accent-weak: #18254a;
  --accent-weak-2: #1f2f5c;
  --on-accent: #ffffff;
  --brand: var(--gold-300);
  --ok: #4ade80;
  --ok-weak: #0f2a1c;
  --ok-line: #1d5236;
  --warn: #facc15;
  --warn-weak: #2a2410;
  --warn-line: #5a4a12;
  --bad: #f87171;
  --bad-weak: #2c1416;
  --bad-line: #5e2126;
  --info: #a5b4fc;
  --info-weak: #1b1f45;
  --info-line: #343a80;
  --fixture: #f0abfc;
  --fixture-weak: #2a1330;
  --fixture-line: #5b2466;
  --muted-weak: #18233a;
  --sidebar: #0a1120;
  --sidebar-2: #070d19;
  --overlay: rgba(2, 6, 15, 0.65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px #7c9bff;
  --cell-occ: #1e3270;
  --cell-occ-text: #dbe4ff;
  --cell-occ-line: #7c9bff;
  --cell-block-a: #3a1518;
  --cell-block-b: #4a1b1f;
  --cell-block-text: #fecaca;
  --cell-src-a: #172338;
  --cell-src-b: #1e2c45;
  --cell-conflict: #7f1d1d;
  --cell-conflict-text: #fee2e2;
  --ch-air: #3b1520;
  --ch-air-text: #fecdd3;
  --ch-air-line: #fb7185;
  --ch-bk: #172a4f;
  --ch-bk-text: #bfdbfe;
  --ch-bk-line: #60a5fa;
  --weekend: #0f182a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-text); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
h1 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-size: 1.12rem; margin: 18px 0 8px; font-weight: 600; letter-spacing: -0.005em; }
h3 { font-size: 0.78rem; margin: 0 0 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
::selection { background: var(--accent-weak-2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ── layout ── */
.app { display: grid; grid-template-columns: 228px 1fr; height: 100%; }
.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
  color: var(--sidebar-text);
  display: flex; flex-direction: column; padding: 14px 10px; gap: 1px; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--sidebar-text-strong); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  color: var(--navy-950); font-family: var(--font-brand); font-weight: 700; font-size: 17px;
}
.brand-name { font-family: var(--font-brand); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font); font-size: 0.7rem; font-weight: 500; color: var(--sidebar-text); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }
.nav-section { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: #6c7c97; padding: 12px 12px 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 36px;
  border-radius: var(--radius); color: var(--sidebar-text); cursor: pointer; border: 0; background: none;
  text-align: left; font: inherit; width: 100%;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-item svg { flex: none; opacity: 0.85; }
.nav-item .nav-label { flex: 1; }
.nav-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-strong); }
.nav-item.active { background: var(--sidebar-active); color: var(--sidebar-text-strong); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-300); }
.nav-item.active svg { opacity: 1; color: var(--gold-300); }
.nav-count { background: #dc2626; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 0.72rem; font-weight: 600; min-width: 20px; line-height: 18px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 12px 10px 4px; font-size: 0.76rem; color: #7d8ba3; display: flex; flex-direction: column; gap: 8px; }
.theme-switch { display: inline-flex; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius); padding: 2px; gap: 2px; }
.theme-switch button { flex: 1; border: 0; background: transparent; color: var(--sidebar-text); padding: 4px 8px; font-size: 0.74rem; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.theme-switch button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: transparent; }
.theme-switch button.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.kbd { font-family: var(--font); font-size: 0.72rem; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--text-2); background: var(--surface-2); }
.sidebar .kbd { border-color: #33435f; background: transparent; color: #9aa8bf; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); min-height: 56px; }
.topbar .clock { margin-left: auto; color: var(--text-2); font-size: 0.86rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; text-align: left;
  color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); padding: 7px 10px; border-radius: var(--radius);
}
.search-trigger span.grow { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.search-trigger:hover:not(:disabled) { background: var(--surface); border-color: var(--border-strong); }
.page { flex: 1; overflow: auto; padding: 22px 24px 32px; }
.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-header .spacer { flex: 1; }
.page-header > .muted, .page-header > .faint { font-size: 0.9rem; }

/* ── surfaces ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 12px; }
.grid { display: grid; gap: 12px; }
.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)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 16px 14px 18px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: 0.85; }
.grid-4 > .stat:nth-child(2)::before { background: var(--brand); }
.grid-4 > .stat:nth-child(3)::before { background: var(--info); }
.grid-4 > .stat:nth-child(4)::before { background: var(--ok); }
.stat .label { color: var(--text-2); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.stat .value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.25; margin-top: 4px; letter-spacing: -0.01em; }
.stat .value.small { font-size: 1.05rem; line-height: 1.35; padding-top: 4px; }
.stat .sub { color: var(--text-3); font-size: 0.8rem; margin-top: 2px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 0.86rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
details > summary { cursor: pointer; color: var(--text-2); }

/* ── controls ── */
button, .btn {
  font: inherit; font-weight: 500; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: 6px 12px; min-height: 32px; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
button:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); }
button:active:not(:disabled) { transform: translateY(0.5px); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--bad); border-color: var(--bad-line); background: var(--surface); }
button.danger:hover:not(:disabled) { background: var(--bad-weak); border-color: var(--bad); }
button.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
button.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); border-color: transparent; }
button.small { padding: 2px 9px; min-height: 26px; font-size: 0.84rem; }
input, select, textarea {
  font: inherit; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 6px 9px; min-height: 32px;
  background: var(--surface); color: var(--text); min-width: 0;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); border-radius: var(--radius); }
textarea { resize: vertical; min-height: 64px; }
input[type='checkbox'] { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); }
input[type='date'], input[type='time'] { min-width: 140px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--text-2); }
label.field > span { font-weight: 600; }
label.field input, label.field select, label.field textarea, label.field button { font-size: 1rem; color: var(--text); font-weight: 400; }
label.inline { display: inline-flex; gap: 7px; align-items: center; color: var(--text); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.search-input { width: 100%; max-width: 460px; }

/* ── tables ── */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; }
table.data th {
  position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; color: var(--text-2);
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border); padding: 8px 12px; white-space: nowrap; z-index: 1;
}
table.data td { border-bottom: 1px solid var(--border); padding: 6px 12px; height: var(--row-h); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable td { transition: background var(--t-fast) var(--ease); }
table.data tr.clickable:hover td { background: var(--accent-weak); }
table.data tr.selected td { background: var(--accent-weak); }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--text); }
table.table { border-collapse: collapse; width: 100%; }
table.table th, table.table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); }
table.table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }

/* ── badges (always text + colour) ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; line-height: 1.55; vertical-align: middle;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.ok { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-weak); color: var(--bad); border-color: var(--bad-line); }
.badge.info { background: var(--info-weak); color: var(--info); border-color: var(--info-line); }
.badge.muted { background: var(--muted-weak); color: var(--text-2); border-color: var(--border); }
.badge.muted::before { display: none; }
.badge.fixture { background: var(--fixture-weak); color: var(--fixture); border-color: var(--fixture-line); }
.badge:not(.ok):not(.warn):not(.bad):not(.info):not(.muted):not(.fixture):not(.swatch) { background: var(--muted-weak); color: var(--text-2); border-color: var(--border); }
.badge:not(.ok):not(.warn):not(.bad):not(.info):not(.muted):not(.fixture)::before { display: none; }

/* ── banners / empty states ── */
.banner { border-radius: var(--radius); padding: 10px 14px; border: 1px solid; border-left-width: 4px; margin-bottom: 12px; }
.banner.warn { background: var(--warn-weak); border-color: var(--warn-line); border-left-color: var(--warn); color: var(--text); }
.banner.bad { background: var(--bad-weak); border-color: var(--bad-line); border-left-color: var(--bad); color: var(--text); }
.banner.info { background: var(--info-weak); border-color: var(--info-line); border-left-color: var(--info); color: var(--text); }
.banner.ok { background: var(--ok-weak); border-color: var(--ok-line); border-left-color: var(--ok); color: var(--text); }
.empty { padding: 32px; text-align: center; color: var(--text-3); }

/* ── tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  border: 0; background: none; padding: 9px 12px; min-height: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--text-2); margin-bottom: -1px; font-weight: 500;
}
.tab:hover:not(:disabled) { background: none; color: var(--text); border-bottom-color: var(--border-strong); }
.tab.active { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
:root[data-theme='dark'] .tab.active { border-bottom-color: var(--accent-text); }

/* ── modal / drawer ── */
.overlay { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; z-index: 50; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: min(720px, 92vw); max-height: 84vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(1100px, 95vw); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-head h2 { font-size: 1.1rem; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface-2); }

/* ── command palette ── */
.palette { width: min(680px, 92vw); }
.palette input { width: 100%; font-size: 1.1rem; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none !important; }
.palette-results { max-height: 60vh; overflow: auto; padding-bottom: 6px; }
.palette-group { padding: 10px 16px 4px; font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.palette-item { padding: 8px 16px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.palette-item.active, .palette-item:hover { background: var(--accent-weak); }

/* ── toasts ── */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #0f172a; color: #fff; padding: 10px 16px; border-radius: var(--radius); max-width: 440px; box-shadow: var(--shadow-lg); border-left: 4px solid #64748b; }
.toast.bad { border-left-color: #f87171; }
.toast.ok { border-left-color: #4ade80; }
:root[data-theme='dark'] .toast { background: #1e293b; border: 1px solid var(--border-strong); border-left-width: 4px; }

/* ── calendar (timeline) ── */
.cal-page .page-header input[type=date], .cal-page .page-header select { width: auto; }
.cal-nav { display: inline-flex; }
.cal-nav button { border-radius: 0; margin-left: -1px; }
.cal-nav button:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.cal-nav button:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.cal-toolbar .cal-search { width: 240px; }
.cal-toolbar select { width: auto; }
.chip { border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; }
.chip.active { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-text); }
.chip-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-2); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.chip-check input { margin: 0; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--text-2); margin-bottom: 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .cal-feeds { margin-left: auto; }
.sw { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.sw-airbnb { background: var(--ch-air-line); }
.sw-booking { background: var(--ch-bk-line); }
.sw-direct { background: var(--accent); box-shadow: inset 3px 0 0 var(--brand); }
.sw-evidence { background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 3px, transparent 3px, transparent 6px); border: 1px dashed var(--border-strong); }
.sw-block { background: repeating-linear-gradient(45deg, var(--cell-block-a), var(--cell-block-a) 3px, var(--cell-block-b) 3px, var(--cell-block-b) 6px); }
.sw-alert { background: var(--bad); }

.cal-scroll { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); max-height: calc(100vh - 270px); }
.cal-inner { position: relative; }
.cal-grid { table-layout: fixed; border-collapse: separate; border-spacing: 0; width: 100%; }
.cal-grid th, .cal-grid td { padding: 0; border-bottom: 1px solid var(--border); border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent); height: 44px; font-size: 0.8rem; }
.cal-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); height: 52px; text-align: center; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--border-strong); line-height: 1.1; vertical-align: middle; }
.cal-grid thead th .cal-dow { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-grid thead th .cal-dom { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); }
.cal-grid thead th .cal-mon { display: block; font-size: 0.62rem; font-weight: 700; color: var(--brand); text-transform: uppercase; }
.cal-grid thead th.weekend { background: var(--surface-2); }
.cal-grid thead th.today { background: var(--accent); color: var(--on-accent); }
.cal-grid thead th.today .cal-dom, .cal-grid thead th.today .cal-mon { color: var(--on-accent); }
.cal-grid td.weekend { background: color-mix(in srgb, var(--surface-3) 45%, transparent); }
.cal-grid td.today { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent) 35%, transparent), inset -1px 0 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.cal-flat-h, .cal-flat { position: sticky; left: 0; text-align: left; padding: 0 12px !important; white-space: nowrap; border-right: 1px solid var(--border-strong) !important; }
.cal-grid thead th.cal-flat-h { z-index: 5; text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-flat { z-index: 2; background: var(--surface); }
.cal-flat a { font-weight: 600; color: var(--text); text-decoration: none; }
.cal-flat a:hover { color: var(--accent-text); text-decoration: underline; }
.cal-row:hover td { background-color: color-mix(in srgb, var(--accent-weak) 50%, transparent); }
.cal-row:hover td.cal-flat { background: var(--accent-weak); }
.cal-building td { height: 30px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cal-building td span { position: sticky; left: 12px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.cal-lane td { height: 30px; font-size: 0.72rem; }
.cal-lane td.cal-lane-name { padding-left: 24px !important; color: var(--text-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.cal-lane.untrusted td:not(.cal-flat) { background: repeating-linear-gradient(-45deg, transparent, transparent 6px, var(--surface-3) 6px, var(--surface-3) 7px); }
.feed-dots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: 1px; }
.feed-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid transparent; box-sizing: border-box; cursor: help; }
.cal-lane-name .feed-dot { margin-right: 6px; }
.feed-dot.airbnb { border-color: var(--ch-air-line); }
.feed-dot.booking { border-color: var(--ch-bk-line); }
.feed-dot.airbnb.ok { background: var(--ch-air-line); }
.feed-dot.booking.ok { background: var(--ch-bk-line); }
.feed-dot.warn { background: var(--warn); border-color: var(--warn); }
.feed-dot.bad { background: var(--bad); border-color: var(--bad); }
.feed-dot.off { background: transparent; border-color: var(--border-strong); }

.bar-cell { position: relative; }
.bar { position: relative; margin: 0 2px; height: 34px; border-radius: 8px; padding: 0 8px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; text-align: left; line-height: 1.2; border-left: 3px solid transparent; box-sizing: border-box; }
.cal-lane .bar { height: 22px; border-radius: 6px; }
.bar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-click { cursor: pointer; transition: filter 0.12s ease, box-shadow 0.12s ease; }
.bar-click:hover { filter: brightness(0.96); box-shadow: var(--shadow-sm); }
.bar-click:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bar-airbnb { background: var(--ch-air); color: var(--ch-air-text); border-left-color: var(--ch-air-line); }
.bar-booking { background: var(--ch-bk); color: var(--ch-bk-text); border-left-color: var(--ch-bk-line); }
.bar-direct { background: var(--cell-occ); color: var(--cell-occ-text); border-left-color: var(--brand); }
.bar-block { background: repeating-linear-gradient(45deg, var(--cell-block-a), var(--cell-block-a) 5px, var(--cell-block-b) 5px, var(--cell-block-b) 10px); color: var(--cell-block-text); font-size: 0.74rem; }
.bar-evidence, .bar-evidence-airbnb, .bar-evidence-booking { background: repeating-linear-gradient(45deg, var(--cell-src-a), var(--cell-src-a) 5px, var(--cell-src-b) 5px, var(--cell-src-b) 10px); color: var(--text-2); border: 1px dashed var(--border-strong); border-left: 3px solid var(--border-strong); font-size: 0.74rem; }
.bar-evidence .bar-name, .bar-evidence-airbnb .bar-name, .bar-evidence-booking .bar-name { font-weight: 500; }
.bar-evidence-airbnb { border-left-color: var(--ch-air-line); }
.bar-evidence-booking { border-left-color: var(--ch-bk-line); }
.bar-moved-out { background: transparent; color: var(--text-muted, var(--accent-text)); border: 1.5px dashed var(--border-strong); font-size: 0.74rem; opacity: 0.9; }
.bar-moved { box-shadow: inset 3px 0 0 var(--accent); }
.bar-moved-tag { font-weight: 800; margin-right: 4px; color: var(--accent-text); flex: none; }
.sw-moved { background: transparent; border: 1.5px dashed var(--border-strong); }
.bar-tentative { background: transparent; color: var(--accent-text); border: 1.5px dashed var(--accent); }
.bar-alert { background: var(--cell-conflict); color: var(--cell-conflict-text); border-left-color: var(--bad); }
.bar-alert-soft { background: var(--warn-weak); color: var(--warn); border: 1.5px solid var(--warn-line); }
.bar-ring { box-shadow: 0 0 0 2px var(--bad); overflow: visible; }
.bar-ring::after { content: '!'; position: absolute; top: -5px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; line-height: 14px; text-align: center; }
.bar-missing { opacity: 0.5; }
.cal-foot { margin-top: 10px; }

pre.report { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; white-space: pre-wrap; font-family: var(--mono); font-size: 0.88rem; line-height: 1.55; max-height: 60vh; overflow: auto; color: var(--text); }

/* lock screen */
.lock { min-height: 100%; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 0%, var(--navy-800), var(--navy-950)); }

@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in var(--t) var(--ease); }
  .modal { animation: modal-in var(--t) var(--ease); }
  @keyframes toast-in { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes modal-in { from { transform: translateY(8px) scale(0.99); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  :root { color-scheme: light; }
  .sidebar, .topbar, .no-print { display: none !important; }
  .app { display: block; }
  .page { overflow: visible; padding: 0; }
  body { background: #fff; color: #000; }
}

/* ═════════════ Refresh (Nov 2026): calmer surfaces, clearer hierarchy, tidier filters & tables ═════════════ */
:root { --bg: #f4f6f9; --border: #e3e8ef; --radius-lg: 12px; }
:root[data-theme='dark'] { --bg: #0b1220; }

/* Page header: title, then a quiet one-line explanation under it; actions stay right. */
.page { padding: 26px 32px 40px; }
.page-header { margin-bottom: 20px; row-gap: 4px; }
.page-header h1 { font-size: 1.55rem; font-weight: 650; letter-spacing: -0.02em; }
.page-header > h1 + .muted:not(.badge), .page-header > h1 + .faint:not(.badge) { order: 10; flex-basis: 100%; font-size: 0.9rem; color: var(--text-3); margin-top: 2px; }

/* Cards: hairline border, no heavy shadow. */
.card { border-color: var(--border); box-shadow: none; padding: 18px 20px; }
.card + .card { margin-top: 14px; }
.table-wrap, .cal-scroll { box-shadow: none; }

/* Stat tiles: big number, small label with a colour dot instead of a side bar. */
.stat { box-shadow: none; padding: 16px 18px; }
.stat::before { display: none; }
.stat .label { display: flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0; font-size: 0.82rem; font-weight: 600; }
.stat .label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.grid-4 > .stat:nth-child(2) .label::before { background: var(--brand); }
.grid-4 > .stat:nth-child(3) .label::before { background: var(--info); }
.grid-4 > .stat:nth-child(4) .label::before { background: var(--ok); }
.stat .value { font-size: 2rem; font-weight: 650; margin-top: 6px; }
.stat .sub { font-size: 0.8rem; }

/* Forms & filter panels: labels in sentence case, fields bottom-aligned so rows line up. */
label.field { gap: 5px; font-size: 0.8rem; }
label.field > span { font-weight: 600; color: var(--text-2); }
.form-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; align-items: end; }
.card > .row + .row, .card > .form-grid + .row, .card > .row + .form-grid { margin-top: 12px; }
input, select, textarea { border-color: var(--border-strong); border-radius: 8px; min-height: 36px; }
button, .btn { border-radius: 8px; min-height: 36px; padding: 6px 14px; }
button.small { min-height: 28px; padding: 2px 10px; border-radius: 6px; }
button.primary { box-shadow: none; }
.search-input { max-width: 520px; }

/* Tables: calmer headers (sentence case), more breathing room, subtle row hover on every row. */
table.data th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--text-3); background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.data td { padding: 8px 14px; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tr.clickable:hover td { background: var(--accent-weak); }
table.table th { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--text-3); }
.nr { color: var(--text-3); opacity: 0.7; }

/* Tabs: clear active state. */
.tabs { gap: 2px; margin-bottom: 20px; }
.tab { padding: 10px 14px; font-weight: 500; }
.tab.active { border-bottom-width: 2px; font-weight: 650; }

/* Empty states: an outlined panel with an icon and a short line of guidance. */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; color: var(--text-2); }
.empty-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.empty-text { font-size: 0.95rem; }

/* Setup checklist (coverage). */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 2px; }
.checklist .tick.done { background: var(--ok-weak); color: var(--ok); border: 1px solid var(--ok-line); }
.checklist .tick.todo { background: var(--warn-weak); color: var(--warn); border: 1px solid var(--warn-line); }
.checklist .count { font-weight: 650; font-variant-numeric: tabular-nums; }
.checklist .codes { font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }

/* Banners: rounded, no thick left bar. */
.banner { border-left-width: 1px; border-radius: 10px; padding: 12px 16px; }

/* Segmented control for date stepping. */
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg > button { border: 0; border-radius: 0; min-height: 34px; }
.seg > button + button { border-left: 1px solid var(--border); }

/* Disclosure for secondary filters. */
details.more-filters > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; color: var(--accent-text); padding: 4px 0; }
details.more-filters > summary::-webkit-details-marker { display: none; }
details.more-filters > summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-strong); font-size: 13px; line-height: 1; }
details.more-filters[open] > summary::before { content: '−'; }
details.more-filters[open] > summary { margin-bottom: 10px; }
/* Property overview: daily details + gallery (Nov 2026). */
.property-overview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.property-facts.card { gap: 0; padding: 22px 24px; }
.property-facts h2 { font-size: clamp(22px, 2.2vw, 28px); }
.pf-block { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--border); }
.property-facts > div:first-child { padding-bottom: 12px; }
.pf-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pf-value { color: var(--text); font-weight: 550; overflow-wrap: anywhere; }
.pf-pre { white-space: pre-wrap; font-weight: 450; }
.pf-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.02em; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-wifi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 16px; align-items: end; }
.pf-wifi .pf-actions { grid-column: 1 / -1; }
.pf-stays { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pf-stay { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.pf-stay.now { border-color: var(--ok-line); background: var(--ok-weak); }
.pf-stay a { font-weight: 600; overflow-wrap: anywhere; }
.pf-note { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--text-3); }
.property-access-readout { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92rem; }
.property-photo-frame { position: relative; }
.photo-open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.photo-open:focus-visible { outline: 3px solid var(--gold-300); outline-offset: -3px; }
.photo-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 24px; line-height: 1; background: rgba(15, 23, 42, 0.55); color: #fff; border: 0; opacity: 0.85; }
.photo-nav:hover { opacity: 1; background: rgba(15, 23, 42, 0.75); }
.photo-nav.prev { left: 12px; } .photo-nav.next { right: 12px; }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 42, 0.6); color: #fff; font-size: 0.78rem; font-variant-numeric: tabular-nums; }

/* Full-screen gallery. */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(5, 9, 18, 0.97); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; color: #e2e8f0; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.lightbox-top button { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.lightbox-count { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 84px; }
.lightbox-stage { overflow: hidden; }
.lightbox-stage img { position: absolute; top: 8px; bottom: 8px; left: 84px; right: 84px; width: calc(100% - 168px); height: calc(100% - 16px); object-fit: contain; user-select: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; min-height: 56px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav.prev { left: 16px; } .lightbox-nav.next { right: 16px; }
.lightbox-strip { display: flex; gap: 8px; justify-content: center; padding: 12px 18px 4px; overflow-x: auto; }
.lightbox-thumb { padding: 0; width: 72px; height: 52px; min-height: 52px; flex: none; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: #111827; opacity: 0.6; }
.lightbox-thumb.active { border-color: var(--gold-300); opacity: 1; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb .property-photo-status { font-size: 0.6rem; }
.lightbox-hint { text-align: center; font-size: 0.75rem; color: #94a3b8; padding: 6px 0 12px; }

/* Edit details: collapsible sections + save bar. */
.edit-sections { gap: 12px; }
.edit-section.card { padding: 0; }
.edit-section > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 20px; }
.edit-section > summary::-webkit-details-marker { display: none; }
.edit-section > summary::before { content: '›'; grid-row: span 2; font-size: 20px; color: var(--text-3); transition: transform 0.15s ease; width: 14px; text-align: center; }
.edit-section[open] > summary::before { transform: rotate(90deg); }
.edit-section > summary:hover { background: var(--surface-2); }
.edit-section[open] > summary { border-bottom: 1px solid var(--border); }
.es-title { font-weight: 650; font-size: 1rem; color: var(--text); }
.es-blurb { grid-column: 2; font-size: 0.82rem; color: var(--text-3); }
.es-meta { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.es-full { color: var(--ok); }
.edit-section > :not(summary) { margin: 16px 20px; }
.edit-section > .form-grid + label.field, .edit-section > label.field + label.field { margin-top: 0; }
.field-hint { font-size: 0.75rem; color: var(--text-3); }
.row.nowrap { flex-wrap: nowrap; }
.entry-codes { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); }
.es-sub { font-weight: 600; color: var(--text); }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.save-bar.dirty { border-color: var(--warn-line); background: var(--warn-weak); }
@media (max-width: 1050px) { .pf-stays, .pf-wifi { grid-template-columns: minmax(0, 1fr); } }
.edit-section .form-grid { align-items: start; }
.edit-sections > .edit-section.card { margin: 0; }
.save-bar .spacer { flex: 1; }

dl.peek { margin: 0 0 12px; display: grid; gap: 0; }
dl.peek > div { display: grid; grid-template-columns: 170px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
dl.peek dt { color: var(--text-3); } dl.peek dd { margin: 0; font-weight: 600; }
.stat .value a.flat-link { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.stat .value a.flat-link:hover { color: var(--accent-text); }
.arrival-text { width: 100%; font-family: var(--font); line-height: 1.5; min-height: 300px; }
@keyframes flash-ring { 0% { box-shadow: 0 0 0 3px var(--gold-300); } 100% { box-shadow: 0 0 0 3px transparent; } }
.flash { animation: flash-ring 1.6s ease-out 1; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--gold-300); } }
.problem-list { display: grid; gap: 8px; }
.problem { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 10px; background: var(--surface); }
.problem.critical { border-left-color: var(--bad); }
.problem.info { border-left-color: var(--info); }
.problem.muted { border-left-color: var(--border); }
.problem-main { display: grid; gap: 3px; min-width: 0; }
.problem-title { font-weight: 600; color: var(--text); }
.shortcut-table { width: 100%; border-collapse: collapse; }
.shortcut-table td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.shortcut-table td:first-child { width: 150px; white-space: nowrap; }
.shortcut-link { color: inherit; text-decoration: none; }

/* ── Trust levels (Confirmed / Listed / Unknown / Conflict) ── */
.trust { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1; vertical-align: middle; cursor: help; }
.trust > span[aria-hidden] { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700; border: 1px solid transparent; }
.trust-confirmed > span[aria-hidden] { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.trust-listed > span[aria-hidden] { background: var(--info-weak); color: var(--info); border-color: var(--info-line); }
.trust-unknown > span[aria-hidden] { background: var(--muted-weak); color: var(--text-3); border-color: var(--border); }
.trust-conflict > span[aria-hidden] { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-line); }
.trust-label { font-weight: 600; }
.amen-summary { align-items: center; }
.amen-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.amen-row { display: grid; grid-template-columns: 20px minmax(140px, 1.1fr) 44px minmax(160px, 1.6fr) auto; align-items: center; gap: 10px; padding: 7px 12px; border-top: 1px solid var(--border); min-height: 40px; }
.amen-row:first-child { border-top: none; }
.amen-row.lvl-conflict { background: var(--warn-weak); }
.amen-name { font-weight: 500; }
.amen-value { font-weight: 600; }
.amen-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* Fix data page */
.fix-overall { display: flex; align-items: center; gap: 12px; }
.fix-overall .meter { flex: 0 0 220px; }
.fix-list { padding: 0; overflow: hidden; }
.fix-row + .fix-row { border-top: 1px solid var(--border); }
.fix-row-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(180px, 1fr) 80px 110px 160px 20px; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; }
.fix-row-head:hover { background: var(--accent-weak); }
.fix-row-head:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.fix-row.open .fix-row-head { background: var(--accent-weak); }
.fix-name { font-weight: 600; }
.fix-score { color: var(--text-3); text-align: right; }
.fix-chev { color: var(--text-3); }
.fix-form { padding: 6px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.fix-preview { margin: 0; }
.fix-form .form-grid { align-items: start; }
.meter { display: inline-block; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--warn); transition: width 0.2s var(--ease); }
.meter.full > span { background: var(--ok); }

/* Fix data: flats queue */
.fix-flats { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.fix-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 140px); }
.fix-progress { display: flex; flex-direction: column; gap: 6px; }
.fix-progress > .meter { width: 100%; }
.fix-bld-bars { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow: auto; margin-top: 4px; }
.fix-bld { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 8px; padding: 3px 6px; border-radius: var(--radius-sm); font-size: 0.78rem; cursor: pointer; }
.fix-bld:hover, .fix-bld.on { background: var(--accent-weak); }
.fix-bld:focus-visible { outline: 2px solid var(--focus-ring); }
.fix-bld-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg button { all: unset; flex: 1; text-align: center; padding: 6px 4px; font-size: 0.78rem; cursor: pointer; color: var(--text-3); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--accent-weak); color: var(--text); font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.fix-queue { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-height: 120px; }
.fix-q { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 12px; cursor: pointer; border-left: 3px solid transparent; }
.fix-q + .fix-q { border-top: 1px solid var(--border); }
.fix-q:hover { background: var(--accent-weak); }
.fix-q.on { background: var(--accent-weak); border-left-color: var(--accent); }
.fix-q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.fix-q-top { display: flex; align-items: center; gap: 8px; }
.fix-q-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-soon { font-size: 0.7rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--warn-weak, var(--accent-weak)); color: var(--warn); }
.fix-main { min-width: 0; }
.fix-flat-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fix-fields { align-items: start; }
.fix-amen .amen-row { cursor: pointer; border-left: 3px solid transparent; }
.fix-amen .amen-row.focus { border-left-color: var(--accent); background: var(--accent-weak); }
.fix-keys { margin-left: 8px; }

/* Fix data: send to VAs */
.vas-buildings { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; max-height: 260px; overflow: auto; }

/* Listing description under the gallery (Nov 2026). */
.property-description { display: grid; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.property-description-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.property-description-text { margin: 0; color: var(--text-2); line-height: 1.55; max-height: 9.3em; overflow: hidden; }
.property-description-text.open { max-height: none; }

/* Saved-secret recovery banner (Import & Mapping → Calendar feeds) */
.recovery-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border: 1px solid var(--bad-line); background: var(--bad-weak); border-radius: 10px; }
.recovery-text { display: flex; flex-direction: column; gap: 4px; max-width: 70ch; }
.recovery-text strong { color: var(--bad); }
/* Desktop workspace surfaces, navigation and typographic hierarchy. */
:root {
  --bg:#f6f5f0; --surface:#fffefa; --surface-2:#f2f2ec; --surface-3:#e7ebe3;
  --border:#d8ddd2; --border-strong:#b7c2b5; --text:#202c27; --text-2:#45554c; --text-3:#59685e;
  --accent:#285743; --accent-hover:#1d4635; --accent-text:#245941; --accent-weak:#e9f0e8; --accent-weak-2:#d6e5d6;
  --brand:#91662c; --info:#305776; --info-weak:#eaf1f4; --info-line:#bbd0db; --muted-weak:var(--surface-2);
  --sidebar:#1c342b; --sidebar-text:#d6e3d9; --rail-muted:#a0b5a7; --rail-select:#dbead6; --rail-ink:#193a29;
  --focus-ring:0 0 0 2px var(--surface),0 0 0 4px var(--accent); --radius-lg:8px;
  --weekend:#efefe8;
}
:root[data-theme='dark'] {
  --bg:#191e1b; --surface:#212923; --surface-2:#29322c; --surface-3:#333f36; --border:#39463d; --border-strong:#566659;
  --text:#eef1e8; --text-2:#c4cdbf; --text-3:#a5b2a5; --accent:#a6cbab; --accent-hover:#c3dfbf; --accent-text:#bbdaba;
  --accent-weak:#304637; --accent-weak-2:#405846; --on-accent:#14281a; --brand:#dcc18d;
  --sidebar:#12251d; --rail-select:#334f3d; --rail-ink:#e6f3df; --info:#afd2e5; --info-weak:#253c46; --info-line:#47626b;
  --muted-weak:var(--surface-2); --weekend:#252e27;
}
@media screen {
.app {grid-template-columns:208px minmax(0,1fr)}
.sidebar {background:var(--sidebar);padding:0 10px;gap:0;overflow:hidden}
.brand {padding:19px 8px 17px;border-bottom:1px solid #ffffff24}
.brand-mark {background:transparent;color:#dfd4aa;border:1px solid #a8b19a;border-radius:6px;width:36px;height:36px}
.brand-mark svg {width:26px}
.brand-name {font-size:21px;font-weight:500;letter-spacing:-.04em}
.brand-name small {font-size:9px;letter-spacing:.16em;margin-top:4px}
.nav-links {flex:1;min-height:0;overflow:auto;padding:0 0 10px}
.nav-section {color:var(--rail-muted);padding:14px 10px 5px;font-weight:650;font-size:10px}
.nav-item {min-height:31px;padding:5px 10px;font-size:13px;border-radius:5px;margin:1px 0}
.nav-item.active, .nav-item.active:hover {color:var(--rail-ink);background:var(--rail-select)}
.nav-item.active::before {display:none}
.nav-item.active svg {color:inherit}
.sidebar-footer {padding:10px 4px;color:var(--rail-muted);border-top:1px solid #ffffff24}
.theme-switch button {min-height:26px}
.sidebar-footer .shortcut-link,.sidebar-footer .kbd {color:var(--sidebar-text)}
.topbar {min-height:48px;padding:6px clamp(14px,1.8vw,32px);gap:16px}
.toolbar-context {display:flex;align-items:center;gap:8px;font-weight:600;font-size:12px;white-space:nowrap}
.search-trigger {margin-left:auto;max-width:280px;min-width:120px;min-height:30px}
.topbar .clock {margin-left:0;font-variant-numeric:tabular-nums}
.page {padding:20px clamp(14px,1.8vw,32px) 36px;scrollbar-gutter:stable}
.page-header {margin-bottom:16px}
.page-header h1 {font:500 clamp(23px,2vw,31px)/1.18 var(--font-brand);letter-spacing:-.035em}
h2 {font-size:1.08rem;letter-spacing:-.012em}
.card,.table-wrap {border-radius:var(--radius-lg);box-shadow:none;background:var(--surface)}
.card {padding:14px 16px}
.grid:has(> .stat) {gap:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden}
.grid > .stat {background:transparent;border:0;border-radius:0;border-inline-end:1px solid var(--border);padding:11px 16px}
.stat:last-child {border-inline-end:0}
.stat .label::before {display:none}
.stat .value {font-size:1.65rem;font-weight:550;margin:1px 0;font-variant-numeric:tabular-nums}
button:not(.nav-item),input,select,textarea {border-radius:5px}
button,input,select {min-height:32px}
button:active:enabled {filter:brightness(.96)}
button:focus-visible,a:focus-visible,summary:focus-visible,tr:focus-visible {outline:2px solid var(--accent-text);outline-offset:-2px}
table.data,table.table,.cal-grid {font-variant-numeric:tabular-nums}
table.data th,table.table th {background:var(--surface-2);color:var(--text-2);padding:7px 10px;font-weight:600}
table.data td,table.table td {padding:6px 10px}
table.data .sort-heading {background:transparent;border:0;border-radius:2px;padding:0;min-height:20px;color:inherit;font:inherit;text-align:left}
.sort-heading span {color:var(--text-3)}
table.data tr.selected td {background:var(--accent-weak-2)}
.form-grid {grid-template-columns:repeat(auto-fill,minmax(min(175px,100%),1fr));gap:10px 14px}
.tabs {margin-bottom:14px;gap:6px}
.tab {min-height:32px;padding:6px 10px}
.empty {flex-direction:row;justify-content:center;padding:17px 12px}
.empty-icon {width:25px;height:25px;border-radius:6px}
.banner {border-radius:5px}
.cal-building td {background:var(--surface-3);height:24px}
.cal-flat,.cal-flat-h {box-shadow:2px 0 3px #141e1412}
.cal-grid tr:focus-within .cal-flat,.cal-grid tr:hover .cal-flat {background:var(--accent-weak)}
.cal-toolbar {row-gap:5px}
.inbox-panes {display:grid;grid-template-columns:minmax(245px,32%) minmax(0,1fr);align-items:start;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface)}
.inbox-panes > .card {min-width:0;border:0;border-radius:0}
.inbox-panes > .card:first-child {border-right:1px solid var(--border)}
.inbox-panes button[aria-pressed=true] {box-shadow:inset 3px 0 var(--accent)}
.platform-label {font-size:11px;color:var(--text-2);font-weight:600}
.portfolio-filters summary {cursor:pointer;color:var(--accent-text);font-size:13px;font-weight:600}
.portfolio-filters .row {padding-top:8px}
.property-visual,.property-facts.card {border-radius:8px}
.property-access-readout,.report {font-variant-numeric:tabular-nums;line-height:1.55}
[data-workspace=reports] .report {max-width:105ch;padding:20px 24px;border-left:3px solid var(--accent)}
[data-workspace=settings] .stack {max-width:1120px}
[data-workspace=airbnbcal] table.table td:first-child {box-shadow:2px 0 3px #141e1424}
[data-workspace=paramount] table.table th {white-space:nowrap}
[data-workspace=today] .stack > h2 {margin:8px 0 0}
.shift-jumps {display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.shift-jumps button {min-height:27px;padding:3px 9px;font-size:12px}
@media(max-width:1050px){.app{grid-template-columns:176px minmax(0,1fr)}.toolbar-context{display:none}.page{padding:14px}.search-trigger{margin-left:0}.topbar .clock{margin-left:auto}}
@media(max-width:800px){.inbox-panes{grid-template-columns:1fr}.inbox-panes>.card:first-child{max-height:240px!important}.topbar .clock{white-space:normal}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
}.preview-trigger {font:inherit;font-size:11px;min-height:22px;white-space:nowrap;background:var(--surface-2);padding:1px 5px;color:var(--accent-text)}
.preview-image {display:grid;place-items:center;min-height:76px;background:var(--surface-2);color:var(--text-2);border-radius:6px}
.preview-image img {max-height:42vh;max-width:100%;object-fit:contain}
.channel-tag {display:inline-block;padding:1px 6px;background:var(--accent-weak);color:var(--accent-text);border-radius:3px;font-size:12px;font-weight:600}
.channel-airbnb {background:var(--ch-air);color:var(--ch-air-text)}
.channel-booking {background:var(--ch-bk);color:var(--ch-bk-text)}
.turnover-symbol {font-weight:750;flex:none}
@media screen {
[data-workspace=today] .grid-4:has(.stat) {background:var(--sidebar);border-color:var(--sidebar)}
[data-workspace=today] .grid-4 .stat {border-color:#ffffff26}
[data-workspace=today] .stat .label {color:#e4eade;font-weight:500}
[data-workspace=today] .stat .value {color:#fff9ea;font:500 29px/1.2 var(--font-brand);font-variant-numeric:lining-nums tabular-nums}
[data-workspace=today] .stat .sub {color:#c1d0c3}
.settings-layout {display:grid;grid-template-columns:160px minmax(0,1fr);gap:22px}
.settings-layout>.tabs {display:flex;flex-direction:column;align-self:start;gap:2px;border:0}
.settings-layout>.tabs .tab {text-align:left;border:0;border-radius:5px}
.settings-layout>.tabs .tab.active {background:var(--accent-weak);color:var(--accent-text)}
.settings-panel {min-width:0}
.cleaner-group {margin-bottom:18px}
.property-photo-frame:has(.property-photo-empty) {aspect-ratio:auto;min-height:190px}
[data-workspace=inbox] .inbox-panes {max-width:1530px}
.bar-direct {background:var(--accent-weak-2);color:var(--accent-text);border-left-color:var(--accent)}
@media(max-width:960px){.settings-layout{grid-template-columns:1fr;gap:6px}.settings-layout>.tabs{flex-direction:row}}
}
.booking-filters {display:grid;grid-template-columns:minmax(170px,2fr) repeat(2,minmax(120px,1fr)) minmax(140px,1.25fr) repeat(2,minmax(96px,.75fr));gap:10px;align-items:end}
.booking-filters input,.booking-filters select,.booking-filters .field {width:100%;min-width:0}
@media(max-width:1280px){.booking-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cal-grid .turnover-symbol {position:absolute;right:2px;top:0;font:600 11px var(--font);background:inherit;padding:0 2px;border-radius:2px}
.cal-grid .bar:has(.turnover-symbol) {padding-right:14px}
.host-building span {position:sticky;left:10px}
table.table .host-building th {padding:4px 10px;background:var(--surface-3);text-align:left}
.import-steps {display:flex;align-items:center;gap:0;list-style:none;padding:0;margin:0;color:var(--text-3);counter-reset:stage}
.import-steps li {display:flex;gap:7px;align-items:center;counter-increment:stage;font-size:12px}
.import-steps li::before {content:counter(stage);display:grid;place-items:center;border:1px solid var(--border-strong);border-radius:50%;width:20px;height:20px}
.import-steps li+li::before {margin-left:16px}
.import-steps li[aria-current] {color:var(--accent-text);font-weight:650}
.import-steps li[aria-current]::before {background:var(--accent);color:var(--on-accent)}
.assignment-records {margin-top:14px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:6px}
.assignment-records summary {font-weight:600;cursor:pointer}

/* The workspace rail selects a department. Its page strip stays in reach above the document. */
@media screen {
.studio-shell {grid-template-columns:84px minmax(0,1fr)}
.studio-shell .sidebar {background:#15382e;padding:0 5px;align-items:stretch}
.studio-shell .brand {justify-content:center;padding:18px 0;border:0}
.studio-shell .brand-name {display:none}
.studio-shell .brand-mark {height:39px;width:39px;border:0;color:#f4deb0}
.studio-shell .brand-mark svg {width:36px}
.workspace-switcher {display:grid;align-content:start;gap:5px;overflow:auto}
.workspace-key {display:grid;justify-items:center;align-content:center;gap:5px;min-height:61px;border:0;border-radius:7px;color:#c9d9cf;background:transparent;font-size:11px}
.workspace-key[aria-pressed=true],.workspace-key[aria-pressed=true]:hover {background:#d5e2c5;color:#163b30}
.workspace-key:hover:not(:disabled) {background:#294c40;color:white}
.studio-shell .sidebar-footer {padding:10px 1px;align-items:center;border:0}
.rail-help {border:1px solid #819b90;background:transparent;color:#e2ece2;width:26px;min-height:26px;padding:0;border-radius:50%}
.studio-shell .theme-switch {display:flex;flex-direction:column;width:100%}
.studio-shell .theme-switch button {font-size:10px;justify-content:flex-start;gap:6px;padding:3px 7px}
.studio-shell .topbar {min-height:52px;gap:10px}
.workspace-pages {display:flex;align-items:stretch;align-self:stretch;min-width:0;overflow-x:auto;gap:3px}
.workspace-pages .nav-item {flex:none;width:auto;white-space:nowrap;min-height:30px;border-radius:0;color:var(--text-2);border-bottom:2px solid transparent}
.workspace-pages .nav-item[aria-current=page] {border-color:var(--accent);color:var(--accent-text);font-weight:700}
.workspace-pages .nav-item:hover {background:var(--surface-2);color:var(--text)}
.workspace-status {display:flex;justify-content:space-between;padding:4px 20px;border-top:1px solid var(--border);background:var(--surface-2);color:var(--text-3);font-size:10px;letter-spacing:.04em}
.studio-shell .topbar .search-trigger {width:clamp(135px,17vw,280px)}
.shift-totals {display:flex;align-items:stretch;border-block:1px solid var(--border-strong);margin:10px 0 14px;background:var(--surface)}
.shift-totals .stat {position:static;flex:1;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-content:center;gap:0 14px;border:0;border-radius:0;border-right:1px solid var(--border);padding:12px 18px;background:transparent;box-shadow:none}
.shift-totals .stat:last-child {border:0}
[data-workspace=today] .shift-totals .value {grid-area:1/1/3/2;align-self:center;color:var(--accent-text);font:500 clamp(28px,2.5vw,42px)/1 var(--font-brand);white-space:nowrap}
[data-workspace=today] .shift-totals .label {color:var(--text);font-size:13px;line-height:1.25}
[data-workspace=today] .shift-totals .sub {color:var(--text-3);font-size:11px}
.shift-floor {display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:clamp(18px,2vw,36px);align-items:start}
.movement-board {min-width:0;background:var(--surface);border-top:3px solid var(--accent)}
.movement-board header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.movement-board h2 {margin:0;font:500 22px var(--font-brand)}
.movement-board select {width:auto}
.schedule-time {margin:0;padding:6px 16px;background:var(--surface-2);border-block:1px solid var(--border);color:var(--text-2);font:600 11px var(--font);letter-spacing:.055em;text-transform:uppercase}
.movement-line {display:grid;align-items:center;grid-template-columns:83px minmax(100px,1.5fr) minmax(46px,.4fr) minmax(80px,.7fr);gap:10px;padding:6px 16px;border-bottom:1px solid var(--border)}
.flow-in,.flow-out {font-weight:600;font-size:12px}
.flow-in {color:var(--accent-text)} .flow-out {color:var(--brand)}
.movement-line .stay-link,.movement-line .unit-link {background:transparent;border:0;text-align:left;padding:0;color:var(--text);min-width:0}
.stay-link small {display:block;color:var(--text-3);font-size:11px;overflow-wrap:anywhere}
.movement-line .unit-link {font-family:var(--mono);color:var(--accent-text);font-weight:650}
.movement-building {font-size:12px;color:var(--text-2)}
.dispatch-column {border-top:3px solid var(--brand);background:var(--surface-2);padding:0 15px 12px;min-width:0}
.dispatch-column .card {background:transparent;border:0;border-bottom:1px solid var(--border-strong);padding:14px 0;border-radius:0}
.dispatch-column h3 {font:500 18px var(--font-brand);margin:0 0 8px;letter-spacing:0;text-transform:none}
.dispatch-column .card > div {padding:4px 0;line-height:1.4}
.shift-source {font-size:12px;color:var(--text-2);padding:12px 0}
.shift-source summary {cursor:pointer}
.property-workspace {max-width:none}
.property-titlebar {padding-bottom:12px;border-bottom:1px solid var(--border-strong)}
.unit-switch {display:flex;align-items:center;gap:8px}
.unit-switch button {font-size:19px}
.property-layout {display:grid;grid-template-columns:142px minmax(0,1fr);gap:clamp(16px,1.8vw,30px);align-items:start}
.property-index {position:sticky;top:0}
.property-index .tabs {flex-direction:column;gap:2px;border:0}
.property-index .tab {text-align:left;border:0;border-left:2px solid transparent;border-radius:0;min-height:35px}
.property-index .tab.active {background:var(--accent-weak);border-left-color:var(--accent);color:var(--accent-text)}
.property-content {min-width:0}
.property-spread {display:grid;grid-template-columns:minmax(270px,.88fr) minmax(0,1.3fr);gap:clamp(14px,1.7vw,32px);align-items:start}
.property-spread .property-visual {box-shadow:none;background:var(--surface);border:1px solid var(--border);border-radius:4px}
.property-spread .property-photo-frame {aspect-ratio:16/10;min-height:0}
.property-photo-frame:has(.property-plate) {aspect-ratio:auto}
.property-plate {display:grid;align-content:center;gap:8px;min-height:157px;padding:20px 24px;width:100%;color:#f9f4df;background:#284b3c;text-align:left}
.property-plate span {font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.property-plate strong {font:500 clamp(32px,3.7vw,64px)/1 var(--font-brand);overflow-wrap:anywhere}
.property-plate small {color:#d4e1d0}
.property-caption {padding:18px 18px 0}
.property-caption h2 {margin:0;font:500 22px var(--font-brand)}
.property-caption .pf-block {margin-top:12px}
.property-operations-desk {min-width:0}
.property-operations-desk > #pf-stay {background:var(--surface);border-top:3px solid var(--accent);padding:15px 18px}
.pf-stays .pf-stay {border-radius:2px;background:transparent;border:0;border-left:2px solid var(--border-strong)}
.pf-stays .pf-stay.now {border-color:var(--accent)}
.property-operations-desk .pf-label {font-size:11px;letter-spacing:.09em}
.access-pair {display:grid;grid-template-columns:1fr 1fr;background:var(--surface-2);margin:12px 0}
.access-pair .pf-block {align-content:start;min-width:0;padding:14px;border:0}
.access-pair .pf-block + .pf-block {border-left:1px solid var(--border)}
:root[data-theme=dark] {--bg:#15191d;--surface:#20262c;--surface-2:#262e34;--surface-3:#323d44;--border:#374149;--border-strong:#54616a;--text:#f1eee6;--text-2:#c6cdd0;--text-3:#a6b1b8;--accent:#a9cfb5;--accent-text:#b4dec6;--accent-weak:#283d36;--accent-weak-2:#344f43;--brand:#e1bc85;--weekend:#242c32;--overlay:rgba(5,9,12,.7)}
:root[data-theme=dark] .studio-shell .sidebar {background:#0e1519;border-right:1px solid #364048}
:root[data-theme=dark] .workspace-key[aria-pressed=true] {background:#314940;color:#d9edda}
:root[data-theme=dark] .property-plate {background:#33423f}
:root[data-theme=dark] .dispatch-column {background:#292a29}
@media(max-width:1100px){.property-layout{grid-template-columns:1fr}.property-index{position:static}.property-index .tabs{flex-direction:row;flex-wrap:wrap}.property-index .tab{border-left:0}.studio-shell .clock{font-size:11px}.shift-totals .stat{padding:10px}.topbar .nav-item{padding-inline:7px}}
@media(max-width:850px){.studio-shell{grid-template-columns:69px minmax(0,1fr)}.shift-floor,.property-spread{grid-template-columns:1fr}.shift-totals{display:grid;grid-template-columns:1fr 1fr}.studio-shell .topbar{flex-wrap:wrap}.workspace-pages{order:3;flex-basis:100%}.property-index .tab{min-height:28px}.movement-line{grid-template-columns:70px 1fr auto}.movement-building{grid-column:2/-1}.shift-totals .stat{border-bottom:1px solid var(--border)}}
}
.workspace-key {width:100%;min-width:0;padding:4px}
.workspace-switcher {overflow-x:hidden}
.dispatch-title {margin:0;padding:13px 0 10px;font:500 22px var(--font-brand)}
.dispatch-queue {border-top:1px solid var(--border-strong)}
.dispatch-queue summary {cursor:pointer;padding:10px 0;font-weight:650}
.dispatch-rows {max-height:clamp(140px,25vh,300px);overflow:auto;padding-bottom:8px}
.dispatch-rows>div {padding:4px 0;line-height:1.4}
.queue-unit {border:0;background:none;color:var(--accent-text);font:650 12px var(--mono);padding:1px 4px;min-height:22px}
.fortnight {grid-column:1/-1;min-width:0;border-top:2px solid var(--accent);background:var(--surface);padding:14px 16px}
.fortnight header,.night-records {display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.fortnight h2 {margin:0;font:500 20px var(--font-brand)}
.fortnight header>span,.night-records {color:var(--text-2);font-size:12px}
.fortnight header button {margin-left:auto}
.night-strip {display:grid;grid-template-columns:repeat(14,minmax(44px,1fr));overflow:auto;margin:12px 0}
.night-strip button {display:grid;gap:3px;justify-items:center;padding:7px 2px;background:var(--surface-2);border:0;border-right:1px solid var(--border);border-radius:0}
.night-strip button span,.night-strip button small {font-size:10px;color:var(--text-2)}
.night-strip button strong {font:500 19px var(--font-brand)}
.night-strip button[aria-pressed=true] {background:var(--accent);color:var(--on-accent)}
.night-strip button[aria-pressed=true] :is(span,small) {color:inherit}

/* The photo follows its frame (16:10 here); it never spills over the title below. */
.property-photo-frame {overflow:hidden}
.property-photo-frame img, .photo-open img {aspect-ratio:auto}

/* Help window and the "About this page" icon */
.page-help {padding:6px;border-radius:999px;color:var(--text-2);margin-left:4px}
.page-help:hover {color:var(--text)}
.help-body {margin-top:12px;max-height:60vh;overflow:auto;line-height:1.55}
.help-page h4 {margin:16px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-2)}
.help-page ul {margin:0;padding-left:20px}
.help-page li {margin:4px 0}
.help-what {font-size:15px;margin:0}
.help-faq {border-bottom:1px solid var(--border);padding:10px 2px}
.help-faq summary {cursor:pointer;font-weight:600}
.help-faq p {margin:8px 0 2px;color:var(--text-2)}
/*
 * Direction 3 — graphite and champagne. Loaded after styles.css and workspace.css, so these tokens win.
 * Dark is the instrument look from the design boards; light is the same system on warm paper.
 * Pages keep using the shared tokens (--bg, --surface, --text-2 …), so the palette reaches every screen.
 */
:root {
  --bg: #f3f1ec;
  --surface: #fffefb;
  --surface-2: #f7f5f0;
  --surface-3: #ece9e2;
  --border: #dcd8cf;
  --border-strong: #c3bdb1;
  --text: #16181a;
  --text-2: #45423c;
  --text-3: #5c5850;
  --accent: #7a5c22;
  --accent-hover: #664b19;
  --accent-text: #74561d;
  --accent-weak: #f3ecdd;
  --accent-weak-2: #e8dcc2;
  --on-accent: #ffffff;
  --brand: #8a6b2e;
  --champagne: #b08d4f;
  --ok: #1f7a4d; --ok-weak: #e7f3ec; --ok-line: #b9dcc7;
  --warn: #93600f; --warn-weak: #fbf1df; --warn-line: #ead2a2;
  --bad: #b23a30; --bad-weak: #fbeceb; --bad-line: #efc3be;
  --info: #3a5ea6; --info-weak: #ebf0fa; --info-line: #c4d2ee;
  --muted-weak: var(--surface-2);
  --overlay: rgba(22, 24, 26, 0.45);
  --shadow-sm: 0 1px 2px rgba(22, 24, 26, 0.05);
  --shadow-md: 0 6px 18px rgba(22, 24, 26, 0.08);
  --shadow-lg: 0 24px 48px rgba(22, 24, 26, 0.16);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--champagne);
  --weekend: #f0ede6;
  /* calendar */
  --cell-occ: #e9e3d6; --cell-occ-text: #3d3527; --cell-occ-line: #8a6b2e;
  --cell-block-a: #ebe8e2; --cell-block-b: #dedad2; --cell-block-text: #45423c;
  --cell-src-a: #f1efea; --cell-src-b: #e6e2da;
  --cell-conflict: #f2c9c4; --cell-conflict-text: #7d231b;
  --ch-air: #f7e3df; --ch-air-text: #8c3227; --ch-air-line: #c0574a;
  --ch-bk: #e3eaf8; --ch-bk-text: #2c4c8c; --ch-bk-line: #4f75c2;
  /* dock and bars */
  --dock-bg: rgba(255, 254, 251, 0.82);
  --dock-line: rgba(22, 24, 26, 0.10);
  --dock-text: #4f4b44;
  --dock-hover: rgba(22, 24, 26, 0.05);
  --dock-active: rgba(122, 92, 34, 0.10);
  --dock-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 40px rgba(22, 24, 26, 0.16);
  --fs: 14.5px;
  --radius: 7px;
  --radius-lg: 10px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f1113;
  --surface: #15181b;
  --surface-2: #1a1e22;
  --surface-3: #21262b;
  --border: #2a3036;
  --border-strong: #3a4148;
  --text: #ece9e3;
  --text-2: #c2beb7;
  --text-3: #ada9a2;
  --accent: #d6c29a;
  --accent-hover: #e6d6b4;
  --accent-text: #dfcca4;
  --accent-weak: #262219;
  --accent-weak-2: #342d20;
  --on-accent: #17150f;
  --brand: #d6c29a;
  --champagne: #d6c29a;
  --ok: #6cc69a; --ok-weak: #15261e; --ok-line: #2b4d3b;
  --warn: #d9a94e; --warn-weak: #2a2215; --warn-line: #574423;
  --bad: #e5675c; --bad-weak: #2c1716; --bad-line: #5c2a26;
  --info: #7c9fe0; --info-weak: #161f30; --info-line: #2f4268;
  --muted-weak: var(--surface-2);
  --overlay: rgba(5, 6, 7, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--champagne);
  --weekend: #13161a;
  --cell-occ: #2a271f; --cell-occ-text: #ece4d2; --cell-occ-line: #d6c29a;
  --cell-block-a: #1d2024; --cell-block-b: #262a2f; --cell-block-text: #c2beb7;
  --cell-src-a: #181b1f; --cell-src-b: #20242a;
  --cell-conflict: #4a1f1c; --cell-conflict-text: #f6d3cf;
  --ch-air: #2e1c1a; --ch-air-text: #f0c9c2; --ch-air-line: #d98276;
  --ch-bk: #18213a; --ch-bk-text: #cfdcf6; --ch-bk-line: #7c9fe0;
  --dock-bg: rgba(24, 27, 31, 0.8);
  --dock-line: rgba(255, 255, 255, 0.09);
  --dock-text: #b4b0a9;
  --dock-hover: rgba(255, 255, 255, 0.06);
  --dock-active: rgba(255, 255, 255, 0.08);
  --dock-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 44px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* ── type: secondary text a step larger and stronger ── */
body { line-height: 1.5; }
.small { font-size: 0.9rem; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
h3 { font-size: 0.8rem; letter-spacing: 0.07em; color: var(--text-2); }
table.data th, table.table th { font-size: 0.86rem; color: var(--text-2); }
.page-header h1 { font: 500 clamp(24px, 2vw, 32px)/1.15 var(--font-brand); letter-spacing: -0.03em; }

/* ── shell: top bar + floating dock, no side rail ── */
.app.dock-shell { display: block; height: 100%; }
.dock-shell .main { height: 100%; }
.dock-shell .topbar {
  min-height: 54px; gap: 12px; padding: 6px clamp(14px, 1.8vw, 28px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
.topbar-brand { display: flex; align-items: center; gap: 9px; color: var(--text); flex: none; padding-right: 6px; }
.topbar-brand svg { width: 26px; height: 26px; color: var(--champagne); }
.topbar-brand strong { font: 500 17px var(--font-brand); letter-spacing: -0.02em; }
.dock-shell .workspace-pages .nav-item { font-size: 13.5px; color: var(--text-2); }
.dock-shell .workspace-pages .nav-item[aria-current=page] { color: var(--text); border-color: var(--champagne); font-weight: 600; }
.theme-mini { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.theme-mini button { min-height: 26px; height: 26px; width: 30px; padding: 0; border: 0; background: transparent; color: var(--text-3); display: grid; place-items: center; border-radius: 6px; }
.theme-mini button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.dock-shell .page { padding-bottom: 104px; }
.dock-shell .nav-count { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); font-family: var(--mono); font-weight: 600; border-radius: 5px; }

.dock {
  position: fixed; z-index: 40; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 16px;
  background: var(--dock-bg); border: 1px solid var(--dock-line);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--dock-shadow); max-width: calc(100% - 32px);
}
.dock-key {
  display: flex; align-items: center; gap: 8px; height: 44px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 11px; background: transparent; color: var(--dock-text);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.dock-key:hover:not(:disabled) { background: var(--dock-hover); color: var(--text); border-color: transparent; }
.dock-key[aria-current=page] { background: var(--dock-active); color: var(--text); box-shadow: inset 0 -2px 0 var(--champagne); }
.dock-key .nav-count { margin-left: 2px; }
.dock-sep { width: 1px; height: 24px; background: var(--dock-line); margin: 0 6px; }
.dock-search {
  display: flex; align-items: center; gap: 10px; height: 44px; min-height: 44px; padding: 0 12px; min-width: 250px;
  border-radius: 11px; border: 1px solid var(--dock-line); background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--text-3); font-size: 13.5px;
}
.dock-search:hover:not(:disabled) { color: var(--text-2); border-color: var(--border-strong); }
.dock-search span.grow { margin-right: auto; }
.dock-search .kbd { background: transparent; }
@media (max-width: 900px) {
  .dock-key span.lbl { display: none; }
  .dock-search { min-width: 0; }
  .dock-search span.grow { display: none; }
  .topbar-brand strong { display: none; }
}
@media print { .dock { display: none; } }

/* ── surfaces ── */
.card, .table-wrap { border-radius: var(--radius-lg); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.shift-totals { border-radius: var(--radius-lg); border: 1px solid var(--border); }
[data-workspace=today] .shift-totals .value { color: var(--text); }
.movement-board, .fortnight { border-top-color: var(--champagne); border-radius: var(--radius-lg); }
.dispatch-column { border-top-color: var(--champagne); border-radius: var(--radius-lg); }
:root[data-theme=dark] .dispatch-column { background: var(--surface); }
.property-plate { background: var(--surface-3); color: var(--text); }
.property-plate small { color: var(--text-2); }
:root[data-theme=dark] .property-plate { background: var(--surface-3); }
.property-index .tab.active { background: var(--accent-weak); border-left-color: var(--champagne); color: var(--text); }
.property-operations-desk > #pf-stay { border-top-color: var(--champagne); border-radius: var(--radius-lg); }
.inbox-panes button[aria-pressed=true] { box-shadow: inset 3px 0 var(--champagne); }
.topbar .spacer { flex: 1; }
.dock-shell .workspace-pages { flex: 0 1 auto; }
.movement-line .unit-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button { white-space: nowrap; }

/* ── calendar (board: building groups, sliders, prices, inspector) ── */
.cal-range { font-size: 14px; color: var(--text); margin-left: 4px; }
.cal-page .seg button.on, .cal-page .seg button[aria-pressed=true] { background: var(--accent-weak); color: var(--text); border-color: var(--champagne); font-weight: 600; }
.cal-sizers { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.cal-slider { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.cal-slider input[type=range] { width: 96px; accent-color: var(--champagne); padding: 0; min-height: 0; border: 0; background: transparent; }
.cal-slider .mono { min-width: 40px; color: var(--text-3); font-size: 12px; }
.cal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.cal-body.with-insp { grid-template-columns: minmax(0, 1fr) 360px; }
.cal-body.with-tab { grid-template-columns: minmax(0, 1fr) 40px; }
.dock-shell .cal-scroll { max-height: calc(100vh - 330px); }
.cal-grid tbody .cal-row td { height: var(--cal-row, 44px); }
.cal-grid .cal-row .bar { height: calc(var(--cal-row, 44px) - 10px); min-height: 20px; }
.cal-grid.dense .bar-sub { display: none; }
.cal-grid thead th { color: var(--text-2); }
.cal-grid thead th .cal-dow { font-size: 0.7rem; }
.cal-grid thead th.today { background: var(--accent-weak); color: var(--text); box-shadow: inset 0 -2px 0 var(--champagne); }
.cal-grid thead th.today .cal-dom, .cal-grid thead th.today .cal-mon { color: var(--accent-text); }
.cal-grid td.today { background: color-mix(in srgb, var(--champagne) 7%, transparent); box-shadow: inset 1px 0 0 color-mix(in srgb, var(--champagne) 30%, transparent), inset -1px 0 0 color-mix(in srgb, var(--champagne) 30%, transparent); }
.cal-grid thead th .cal-mon { color: var(--accent-text); }
.cal-building td { height: 34px !important; background: var(--surface-2) !important; padding: 0 !important; }
.cal-group { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 10px; height: 34px; min-height: 0; padding: 0 12px; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.cal-group:hover:not(:disabled) { background: transparent; color: var(--accent-text); }
.cal-group .chev { width: 12px; color: var(--text-3); }
.cal-group strong { font-weight: 650; letter-spacing: 0.01em; }
.cal-group .faint { font-size: 12.5px; }
.cal-issue { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 5px; font: 600 11.5px/18px var(--mono); color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, transparent); vertical-align: 1px; }
.cal-group .cal-issue { margin-left: 0; }
.cal-flat a { font-family: var(--mono); font-size: 13px; }
.cal-price { display: block; text-align: center; font: 600 11.5px var(--mono); color: var(--ok); letter-spacing: -0.02em; opacity: 0.95; }
.cal-legend .cal-price { display: inline; }
.bar-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bar-top .bar-name { min-width: 0; }
.bar-via { flex: none; padding: 0 5px; border-radius: 4px; font: 600 10.5px/16px var(--mono); color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); opacity: 0.9; }
.cal-legend .bar-via { color: var(--text-2); }
.bar-selected { outline: 2px solid var(--champagne); outline-offset: 1px; filter: brightness(1.06); }
:root[data-theme=dark] .bar-airbnb, :root[data-theme=dark] .bar-booking, :root[data-theme=dark] .bar-direct { border-left-width: 3px; }

.insp { position: sticky; top: 0; max-height: calc(100vh - 220px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--champagne); border-radius: var(--radius-lg); padding: 14px 18px 18px; box-shadow: var(--shadow-md); }
.insp-head { display: flex; align-items: center; gap: 8px; }
.insp-head .spacer { flex: 1; }
.insp-head .icon-btn { min-height: 28px; height: 28px; width: 28px; padding: 0; font-size: 16px; color: var(--text-2); }
.insp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.insp-dot.airbnb { background: var(--ch-air-line); }
.insp-dot.booking { background: var(--ch-bk-line); }
.insp-dot.direct { background: var(--champagne); }
.insp-caps { font-size: 11.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.insp-guest { font: 500 26px/1.15 var(--font-brand); letter-spacing: -0.02em; margin: 12px 0 4px; color: var(--text); }
.insp-stay { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.insp-alert { margin: 0 0 12px; font-size: 13px; }
.insp-facts { display: grid; grid-template-columns: 104px 1fr; gap: 7px 12px; margin: 4px 0 14px; font-size: 13.5px; }
.insp-facts dt { color: var(--text-3); }
.insp-facts dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.insp-notes { white-space: pre-wrap; color: var(--text-2); }
.insp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.insp-tab { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 40px; min-height: 160px; padding: 10px 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); }
.insp-tab-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; white-space: nowrap; max-height: 220px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .cal-body.with-insp { grid-template-columns: minmax(0, 1fr) 300px; } }
.cal-building td .cal-group span { position: static; text-transform: none; letter-spacing: normal; font-weight: 500; }
.cal-building td .cal-group .faint { color: var(--text-3); font-size: 12.5px; }
.cal-building td .cal-group .cal-issue { font-weight: 600; color: var(--bad); }
.cal-building td .cal-group .chev { color: var(--text-3); }
.insp h3 { margin: 14px 0 6px; }
.insp-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text); }
.insp-timeline { list-style: none; margin: 0 0 12px; padding: 0 0 0 14px; border-left: 1px solid var(--border-strong); font-size: 13px; }
.insp-timeline li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--text-2); }
.insp-timeline li::before { content: ''; position: absolute; left: -18px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.insp-timeline li.now { color: var(--text); }
.insp-timeline li.now::before { background: var(--ok); }
.insp-timeline time { flex: none; color: var(--text-3); font-size: 12.5px; }

/* ── property workspace: large gallery ── */
.property-gallery { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px; margin-bottom: 18px; }
.gallery-hero { position: relative; height: clamp(300px, 40vh, 520px); border-radius: 14px; overflow: hidden; background: var(--surface-3); }
.gallery-hero .photo-open img { object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 40vh, 520px); }
.gallery-thumbs.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-thumbs.n2 { grid-template-columns: 1fr; }
.gallery-thumbs.n3 > :first-child { grid-row: span 2; }
.gallery-thumb { all: unset; position: relative; cursor: pointer; overflow: hidden; border-radius: 12px; background: var(--surface-3); display: grid; place-items: center; min-height: 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease, filter 0.2s ease; }
.gallery-thumb:hover img { transform: scale(1.03); filter: brightness(1.05); }
.gallery-thumb:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.gallery-all { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 11, 12, 0.55); color: #f4f1ea; font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.gallery-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.property-gallery > .property-plate { grid-column: 1 / -1; min-height: 220px; border-radius: 14px; }
.property-gallery .photo-nav { opacity: 0; transition: opacity 0.18s ease; }
.gallery-hero:hover .photo-nav, .gallery-hero .photo-nav:focus-visible { opacity: 1; }
.property-spread .property-visual { border-radius: var(--radius-lg); }
@media (max-width: 900px) { .property-gallery { grid-template-columns: 1fr; } .gallery-thumbs { height: 180px; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; } .gallery-thumbs.n3 > :first-child { grid-row: auto; } }

/* ── Today, "Clear" ── */
.clear-head { align-items: flex-end; margin-bottom: 18px; }
.clear-title { min-width: 0; }
.clear-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.clear-head h1 { font: 400 clamp(30px, 3vw, 44px)/1.05 var(--font-brand) !important; letter-spacing: -0.03em; margin: 0; }
.clear-sum { margin: 8px 0 0; font-size: 16px; color: var(--text-2); max-width: 70ch; }
.needs-you { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 14px 0; overflow: hidden; }
.needs-you > header { display: flex; align-items: baseline; gap: 10px; padding: 12px 18px 8px; }
.needs-you h2 { margin: 0; font: 500 20px var(--font-brand); letter-spacing: -0.01em; }
.need-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--border); }
.need-n { display: grid; place-items: center; height: 30px; border-radius: 8px; font: 650 14px var(--mono); }
.need-row.bad .need-n { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.need-row.warn .need-n { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.need-row.info .need-n { color: var(--info); background: color-mix(in srgb, var(--info) 15%, transparent); }
.need-text { display: flex; flex-direction: column; min-width: 0; }
.need-text strong { font-weight: 600; color: var(--text); }
.need-text span { font-size: 13px; color: var(--text-2); }
[data-workspace=today] .banner.warn { border-radius: var(--radius-lg); }
/*
 * Whole-app system in the Direction 3 boards' language. Loaded last; every page is built from these
 * pieces (page header, panels, stats, buttons, fields, chips, tabs, tables, badges, alerts, modals).
 */
:root {
  --panel-a: #fffefb; --panel-b: #fbf9f5; --panel-line: rgba(22, 24, 26, 0.09);
  --panel-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 30px rgba(22, 24, 26, 0.06);
  --row-line: rgba(22, 24, 26, 0.075); --row-hover: rgba(122, 92, 34, 0.06);
  --field-bg: #ffffff; --field-line: rgba(22, 24, 26, 0.14);
  --solid-bg: #1b1d20; --solid-fg: #f6f3ee; --solid-hover: #000000;
  --eyebrow: #6b665e;
  --page-glow: radial-gradient(1200px 420px at 50% -160px, rgba(176, 141, 79, 0.10), rgba(176, 141, 79, 0));
}
:root[data-theme="dark"] {
  --panel-a: #1a1d21; --panel-b: #16191c; --panel-line: rgba(255, 255, 255, 0.07);
  --panel-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px rgba(0, 0, 0, 0.28);
  --row-line: rgba(255, 255, 255, 0.055); --row-hover: rgba(255, 255, 255, 0.035);
  --field-bg: rgba(0, 0, 0, 0.22); --field-line: rgba(255, 255, 255, 0.10);
  --solid-bg: #ece9e3; --solid-fg: #141618; --solid-hover: #ffffff;
  --eyebrow: #8e8a84;
  --page-glow: radial-gradient(1200px 420px at 50% -120px, rgba(214, 194, 154, 0.055), rgba(214, 194, 154, 0));
}
:root[data-theme="dark"] body { background: linear-gradient(180deg, #14171a 0%, #101214 38%, #0e1012 100%) fixed; }
.dock-shell .main { background: var(--page-glow); }
.dock-shell .page { padding: 26px max(36px, calc((100% - 1400px) / 2)) 120px; }
.dock-shell .page[data-workspace="calendar"], .dock-shell .page[data-workspace="airbnbcal"] { padding-inline: clamp(16px, 2vw, 32px); }

/* ── type ── */
/* Own layer above the page content, so header menus ("Change ▾") open over the cards below instead of under them. */
.dock-shell .page-header { margin-bottom: 16px; row-gap: 6px; align-items: flex-end; position: relative; z-index: 30; }
.dock-shell .page-header::before {
  content: var(--eyebrow-text, none); flex-basis: 100%; order: -1;
  font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow);
}
.dock-shell .clear-head::before { content: none; }
.dock-shell .page-header h1 { font: 400 clamp(26px, 2.2vw, 32px)/1.1 var(--font-brand); letter-spacing: -0.025em; }
.dock-shell .page-header > h1 + :is(.muted, .faint, .small, span):not(.badge) { order: 10; flex-basis: 100%; color: var(--text-2); font-size: 14px; }
.dock-shell h2 { font: 400 23px/1.15 var(--font-brand); letter-spacing: -0.015em; color: var(--text); }
.dock-shell h3, .dock-shell .pf-label, .dock-shell .field > span, .dock-shell .stat .label {
  font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow);
}
.dock-shell h4 { font-size: 13px; font-weight: 650; color: var(--text); }
.dock-shell a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }

/* ── panels ── */
.dock-shell .card, .dock-shell .table-wrap, .dock-shell .stat, .dock-shell .needs-you, .dock-shell .insp,
.dock-shell .movement-board, .dock-shell .fortnight, .dock-shell .dispatch-column, .dock-shell .property-spread .property-visual,
.dock-shell .property-operations-desk > #pf-stay, .dock-shell .shift-totals, .dock-shell .cal-scroll {
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--panel-line); border-radius: 18px; box-shadow: var(--panel-shadow);
}
.dock-shell .card { padding: 20px 22px; }
.dock-shell .card + .card { margin-top: 14px; }
.dock-shell .card > h2:first-child, .dock-shell .card > h3:first-child { margin-top: 0; }
.dock-shell .card .card { background: rgba(127, 127, 127, 0.04); box-shadow: none; border-radius: 12px; }

/* ── stats ── */
.dock-shell .stat { padding: 18px 20px; }
.dock-shell .stat .value { font: 400 34px/1.05 var(--font-brand); letter-spacing: -0.02em; margin-top: 8px; color: var(--text); }
.dock-shell .stat .value.small { font: 500 16px/1.35 var(--font); }
.dock-shell .stat .sub { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.dock-shell .shift-totals .stat { background: transparent; border: 0; box-shadow: none; border-radius: 0; }

/* ── buttons and fields ── */
.dock-shell button:not(.nav-item):not(.dock-key):not(.dock-search):not(.gallery-thumb):not(.photo-open):not(.cal-group):not(.insp-tab):not(.tab):not(.photo-nav):not(.lightbox-nav):not(.lightbox-thumb):not(.fix-row-head):not(.stay-link):not(.unit-link):not(.queue-unit):not(.preview-trigger):not(.conv):not(.sort-heading):not(.prop-card):not(.notice-line):not(.more-btn):not(.theme-one):not(.clean-flat):not(.stay-tl-seg):not([role="menuitem"]):not(.group-fold):not(.group-grip) {
  border-radius: 10px; min-height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--field-line); background: transparent; color: var(--text);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.1s ease;
}
.dock-shell button:not(.nav-item):not(.dock-key):not(.tab):not(.group-fold):not(.group-grip):hover:not(:disabled) { background: var(--row-hover); border-color: var(--border-strong); }
.dock-shell button:active:not(:disabled) { transform: scale(0.98); }
.dock-shell button.primary { background: var(--solid-bg) !important; color: var(--solid-fg) !important; border-color: var(--solid-bg) !important; font-weight: 600; }
.dock-shell button.primary:hover:not(:disabled) { background: var(--solid-hover) !important; border-color: var(--solid-hover) !important; }
.dock-shell button.ghost { border-color: transparent !important; color: var(--text-2); }
.dock-shell button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.dock-shell button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.dock-shell button.small { min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.dock-shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .dock-shell select, .dock-shell textarea {
  min-height: 38px; border-radius: 10px; border: 1px solid var(--field-line); background-color: var(--field-bg); color: var(--text); padding: 0 12px; font-size: 13.5px;
}
.dock-shell textarea { padding: 9px 12px; }
.dock-shell input:focus-visible, .dock-shell select:focus-visible, .dock-shell textarea:focus-visible {
  outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px color-mix(in srgb, var(--champagne) 22%, transparent); border-radius: 10px;
}
.dock-shell input[type="checkbox"], .dock-shell input[type="radio"] { accent-color: var(--champagne); }
.dock-shell .field { gap: 6px; }
.dock-shell .form-grid { gap: 14px 16px; }

/* ── segmented, chips, tabs ── */
.dock-shell .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; border: 1px solid var(--field-line); background: var(--field-bg); }
.dock-shell .seg button { border: 0 !important; min-height: 30px !important; border-radius: 8px !important; margin: 0 !important; color: var(--text-2) !important; padding: 0 11px !important; }
.dock-shell .seg button.on, .dock-shell .seg button[aria-pressed="true"], .dock-shell .seg button.active, .dock-shell .seg button:disabled {
  opacity: 1; background: var(--surface-3) !important; color: var(--text) !important; box-shadow: inset 0 -2px 0 var(--champagne);
}
.dock-shell .chip, .dock-shell .chip-check {
  border-radius: 999px !important; min-height: 32px !important; padding: 0 13px !important; font-size: 12.5px;
  border: 1px solid var(--field-line); background: transparent; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px;
}
.dock-shell .chip.active, .dock-shell .chip[aria-pressed="true"], .dock-shell .chip-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--champagne) 55%, transparent) !important; background: color-mix(in srgb, var(--champagne) 12%, transparent) !important; color: var(--text) !important;
}
.dock-shell .tabs { gap: 24px; border-bottom: 1px solid var(--row-line); margin-bottom: 18px; }
.dock-shell .tabs .tab { min-height: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text-3); font-size: 13.5px; }
.dock-shell .tabs .tab:hover:not(:disabled) { color: var(--text); background: transparent; }
.dock-shell .tabs .tab.active { color: var(--text); font-weight: 500; box-shadow: inset 0 -2px 0 var(--champagne); }
.dock-shell .settings-layout > .tabs, .dock-shell .property-index .tabs { gap: 2px; border: 0; }
.dock-shell .settings-layout > .tabs .tab, .dock-shell .property-index .tabs .tab { min-height: 38px; padding: 0 14px; border-radius: 10px; text-align: left; justify-content: flex-start; }
.dock-shell .settings-layout > .tabs .tab.active, .dock-shell .property-index .tabs .tab.active { background: var(--surface-3); color: var(--text); box-shadow: inset 2px 0 0 var(--champagne); }

/* ── tables ── */
.dock-shell .table-wrap { padding: 2px 8px 8px; }
.dock-shell table.data th, .dock-shell table.table th {
  background: var(--panel-a); border-bottom: 1px solid var(--row-line); padding: 14px 10px 10px; height: auto;
  font: 500 10.5px var(--mono); letter-spacing: 0.13em; text-transform: uppercase; color: var(--eyebrow);
}
.dock-shell table.data td, .dock-shell table.table td { border-bottom: 0; border-top: 1px solid var(--row-line); padding: 11px 10px; font-size: 13.5px; }
.dock-shell table.data tbody tr:first-child td { border-top: 0; }
.dock-shell table.data tr.clickable:hover td, .dock-shell table.data tr.selected td { background: var(--row-hover); }
.dock-shell table.data tr.clickable td:first-child, .dock-shell table.data tr.selected td:first-child { border-radius: 8px 0 0 8px; }
.dock-shell table.data tr.clickable td:last-child, .dock-shell table.data tr.selected td:last-child { border-radius: 0 8px 8px 0; }
.dock-shell table.data tr.selected td:first-child { box-shadow: inset 2px 0 0 var(--champagne); }
.dock-shell table.data td strong { font-weight: 600; }

/* ── badges: dot and word on a faint tint ── */
.dock-shell .badge { border: 0 !important; border-radius: 999px; padding: 2px 9px 2px 8px; font-size: 12px; font-weight: 500; gap: 6px; }
.dock-shell .badge::before { width: 5px; height: 5px; }
.dock-shell .badge.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.dock-shell .badge.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.dock-shell .badge.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.dock-shell .badge.info { background: color-mix(in srgb, var(--info) 14%, transparent); color: var(--info); }
.dock-shell .badge.muted, .dock-shell .badge:not(.ok):not(.warn):not(.bad):not(.info):not(.fixture):not(.swatch) { background: color-mix(in srgb, var(--text-3) 14%, transparent); color: var(--text-2); }

/* ── alerts: tinted box with a stripe ── */
.dock-shell .banner { border-radius: 12px; border: 1px solid var(--row-line); background: color-mix(in srgb, var(--text-3) 7%, transparent); padding: 12px 16px 12px 22px; position: relative; font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; color: var(--text); }
.dock-shell .banner::before { content: ""; position: absolute; left: 9px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--b-tone, var(--text-3)); }
.dock-shell .banner.warn { --b-tone: var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); border-color: color-mix(in srgb, var(--warn) 24%, transparent); }
.dock-shell .banner.bad { --b-tone: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); border-color: color-mix(in srgb, var(--bad) 24%, transparent); }
.dock-shell .banner.info { --b-tone: var(--info); background: color-mix(in srgb, var(--info) 8%, transparent); border-color: color-mix(in srgb, var(--info) 24%, transparent); }
.dock-shell .banner.ok { --b-tone: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); border-color: color-mix(in srgb, var(--ok) 24%, transparent); }

/* ── empty, modal, toasts ── */
.dock-shell .empty { padding: 46px 20px; color: var(--text-2); font-size: 14px; }
.dock-shell .empty-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--champagne) 12%, transparent); color: var(--accent-text); margin-bottom: 10px; }
.dock-shell .empty-text { font: 400 19px/1.3 var(--font-brand); color: var(--text-2); }
.overlay { backdrop-filter: blur(6px); }
.modal { border-radius: 20px !important; border: 1px solid var(--panel-line) !important; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)) !important; box-shadow: var(--shadow-lg) !important; }
.modal-head { background: var(--panel-a) !important; border-bottom: 1px solid var(--row-line) !important; padding: 18px 22px !important; }
.modal-head h2 { font: 400 24px var(--font-brand) !important; margin: 0; }
.modal-foot { background: var(--panel-b) !important; border-top: 1px solid var(--row-line) !important; }
.modal-body { padding: 20px 22px !important; }
.toast { background: #1b1d20 !important; color: #ece9e3 !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid var(--champagne) !important; }
.toast.bad { border-left-color: #e5675c !important; }
.toast.ok { border-left-color: #6cc69a !important; }
.dock-shell hr, .dock-shell .divider { border-top-color: var(--row-line); }
.dock-shell .kv dt, .dock-shell .peek dt { color: var(--text-3); }

/* sortable headers stay plain text */
.dock-shell table.data th .sort-heading, .dock-shell table.data th button {
  all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 4px; align-items: center;
}
.dock-shell table.data th .sort-heading:hover { color: var(--text); }
.dock-shell table.data th .sort-heading:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; border-radius: 3px; }
.dock-shell table.data td button.small { min-height: 28px; }

/* buttons that read as links or rows keep their own look */
.dock-shell button.stay-link, .dock-shell button.unit-link, .dock-shell button.queue-unit {
  border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; border-radius: 4px !important; text-align: left;
}
.dock-shell button.stay-link:hover, .dock-shell button.unit-link:hover, .dock-shell button.queue-unit:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.dock-shell button.queue-unit { font-family: var(--mono); font-weight: 600; color: var(--accent-text); }
.dock-shell button.preview-trigger { border: 1px solid var(--field-line); border-radius: 6px; background: transparent; color: var(--text-2); font-size: 11.5px; }
.dock-shell .fix-row-head:hover, .dock-shell .fix-row.open .fix-row-head { background: var(--row-hover); }

/* Native dropdown lists: Windows draws the popup itself, so give options explicit theme colours (they inherited light text on a light popup). */
select option, select optgroup { background-color: var(--surface); color: var(--text); }
select option:disabled { color: var(--text-3); }

/* ── Calm frame (29 Nov): one theme icon, neutral counts, folded explanations, one-line notices ── */
.dock-shell .theme-one { width: 36px; height: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; border-radius: 10px; color: var(--text-3); border: 0; background: transparent; }
.dock-shell .theme-one:hover { color: var(--text); background: var(--row-hover); }
.dock-shell .nav-count { background: color-mix(in srgb, var(--text-3) 16%, transparent) !important; color: var(--text-2) !important; }
.dock-shell .clock { color: var(--text-3); font-size: 13px; }
.app-notices { padding: 10px max(36px, calc((100% - 1400px)/2)) 0; }

.about-fold { margin: -6px 0 18px; font-size: 13px; color: var(--text-3); }
.about-fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12.5px; }
.about-fold > summary::-webkit-details-marker { display: none; }
.about-fold > summary::before { content: 'i'; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; font: 600 10px var(--font-brand); font-style: italic; }
.about-fold > summary:hover { color: var(--text-2); }
.about-fold .about-body { margin-top: 8px; max-width: 820px; color: var(--text-2); line-height: 1.6; font-size: 13.5px; }
.about-fold .about-body p { margin: 0 0 6px; }

.notices { margin-bottom: 16px; }
.dock-shell .notice-line { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border-radius: 12px; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); background: color-mix(in srgb, var(--n-tone, var(--text-3)) 7%, transparent); border: 1px solid color-mix(in srgb, var(--n-tone, var(--text-3)) 18%, transparent); }
div.notice-line { cursor: default; margin-bottom: 16px; }
.notice-line.warn, .notices.warn { --n-tone: var(--warn); }
.notice-line.bad, .notices.bad { --n-tone: var(--bad); }
.notice-line.info, .notices.info { --n-tone: var(--info); }
.notice-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--n-tone, var(--text-3)); }
.notice-sum { font-weight: 600; color: var(--text); white-space: nowrap; }
.notice-titles { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); }
.notice-toggle { margin-left: auto; flex: none; font-size: 12.5px; color: var(--accent-text); }
.notice-list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.notice-list .banner { margin: 0; }

.more-menu { position: relative; display: inline-flex; }
.dock-shell button.more-btn { min-height: 32px; width: 34px; padding: 0; border-radius: 9px; font-size: 17px; line-height: 1; letter-spacing: .05em; color: var(--text-2); background: transparent; border: 1px solid transparent; }
.dock-shell button.more-btn:hover, .dock-shell button.more-btn[aria-expanded="true"] { background: var(--row-hover); border-color: var(--row-line); color: var(--text); }
.more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px; padding: 6px; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--panel-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.dock-shell .more-list button { all: unset; box-sizing: border-box; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); cursor: pointer; white-space: nowrap; }
.dock-shell .more-list button:hover:not(:disabled) { background: var(--row-hover); }
.dock-shell .more-list button:disabled { color: var(--text-3); cursor: default; }
.dock-shell .more-list button.danger { color: var(--bad); }
/* Page-specific layouts in the Direction 3 language. Loaded after system.css. */

/* WhatsApp cleaning reconciliation: same operational language, responsive without horizontal scrolling. */
.cleaner-feed { margin: 16px 0; padding: 18px; }
.cleaner-feed-head { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.cleaner-feed-head h2 { margin:4px 0; }
.cleaner-feed-head p { margin:4px 0 0; }
.cleaner-feed-teams, .cleaner-feed-metrics, .cleaner-team-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:8px; }
.cleaner-feed-metrics { grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); }
.cleaner-feed-team { display:flex; flex-direction:column; gap:3px; padding:10px 12px; border:1px solid var(--row-line); border-radius:10px; min-width:0; }
.dock-shell button.cleaner-feed-metric { display:flex; flex-direction:column; align-items:flex-start; gap:5px; padding:12px; min-height:96px; text-align:left; min-width:0; white-space:normal; border:1px solid var(--panel-line); border-radius:12px; background:var(--surface-3); }
.dock-shell button.cleaner-feed-metric.on { border-color:var(--champagne); }
.cleaner-feed-count { font:600 25px var(--font); font-variant-numeric:tabular-nums; }
.cleaner-feed-detail { border-top:1px solid var(--row-line); padding-top:8px; }
.cleaner-feed-detail h3 { margin:6px 0; }
.cleaner-feed-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px 0; border-bottom:1px solid var(--row-line); }
.cleaner-feed-row:last-child { border-bottom:0; }
.cleaner-evidence { width:80px; height:60px; object-fit:cover; border-radius:8px; }
.cleaner-team-form { padding:14px; }
.cleaner-team-form input { min-width:0; width:100%; }
@media(max-width:600px) { .cleaner-feed {padding:12px;} .cleaner-feed-teams,.cleaner-feed-metrics {grid-template-columns:repeat(2,minmax(0,1fr));} .cleaner-feed-row button {min-height:44px;} }

/* ── Guest messages ── */
.chip-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--row-line); }
.dock-shell .inbox-shell {
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 0; min-height: 62vh;
  background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); border-radius: 18px; box-shadow: var(--panel-shadow); overflow: hidden;
}
.inbox-list { max-height: 70vh; overflow-y: auto; border-right: 1px solid var(--row-line); padding: 6px; }
.dock-shell button.conv {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; align-items: start;
  padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; min-height: 0; color: var(--text); font-weight: 400;
}
.dock-shell button.conv:hover:not(:disabled) { background: var(--row-hover); border: 0; }
.dock-shell button.conv.on { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--champagne); }
.conv-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 600 13px var(--font); color: var(--text); background: color-mix(in srgb, var(--text-3) 18%, transparent); }
.conv-avatar.airbnb { background: color-mix(in srgb, var(--ch-air-line) 24%, transparent); }
.conv-avatar.booking { background: color-mix(in srgb, var(--ch-bk-line) 24%, transparent); }
.conv-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-top strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-top strong { font-weight: 750; }
.conv-when { flex: none; font: 500 11.5px var(--mono); color: var(--text-3); }
.conv-meta { font-size: 12.5px; color: var(--text-3); }
.conv-last { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.platform-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding-right: 4px; }
.platform-dot::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--text-3); }
.platform-dot.airbnb::before { background: var(--ch-air-line); }
.platform-dot.booking::before { background: var(--ch-bk-line); }
.inbox-thread { padding: 22px 26px; min-width: 0; display: flex; flex-direction: column; }
.inbox-thread h2 { font-size: 28px; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-height: 56vh; overflow-y: auto; padding-right: 6px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--row-line); }
.msg.in { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: color-mix(in srgb, var(--champagne) 13%, transparent); border-color: color-mix(in srgb, var(--champagne) 25%, transparent); border-bottom-right-radius: 4px; }
.msg.system { align-self: center; max-width: 90%; background: transparent; border-style: dashed; }
.msg-head { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.msg-translated { margin-top: 6px; font-size: 12px; }
@media (max-width: 900px) { .dock-shell .inbox-shell { grid-template-columns: 1fr; } .inbox-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--row-line); } }

/* ── Today: movements and shift queues ── */
.dock-shell .movement-board { padding: 6px 10px 12px; }
.dock-shell .movement-board > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px; border: 0; }
.dock-shell .movement-board > header select { width: auto; min-height: 34px; }
.dock-shell .movement-board .schedule-time { margin: 12px 12px 4px; padding: 0; background: transparent; border: 0; font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--accent-text); }
.dock-shell .movement-line { grid-template-columns: 110px minmax(0, 1.5fr) 92px minmax(0, 0.9fr); gap: 14px; padding: 10px 12px; border: 0; border-top: 1px solid var(--row-line); border-radius: 8px; }
.dock-shell .movement-line:hover { background: var(--row-hover); }
.dock-shell .movement-line .flow-in, .dock-shell .movement-line .flow-out { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.dock-shell .movement-line .flow-in::before, .dock-shell .movement-line .flow-out::before { content: ''; width: 6px; height: 6px; border-radius: 2px; }
.dock-shell .movement-line .flow-in::before { background: var(--ok); }
.dock-shell .movement-line .flow-out::before { background: var(--warn); }
.dock-shell .movement-line .stay-link { display: flex; flex-direction: column; gap: 1px; }
.dock-shell .movement-line .stay-link strong { font-weight: 600; font-size: 14px; color: var(--text); }
.dock-shell .movement-line .stay-link small { font-size: 12px; color: var(--text-3); }
.dock-shell .movement-line .unit-link { font: 600 13px var(--mono); color: var(--accent-text); }
.dock-shell .movement-building { font-size: 13px; color: var(--text-2); }
.dock-shell .dispatch-column { padding: 6px 20px 16px; }
.dock-shell .dispatch-title { margin: 16px 0 6px; }
.dock-shell .dispatch-column .card { background: transparent; box-shadow: none; border: 0; border-top: 1px solid var(--row-line); border-radius: 0; padding: 12px 0; }
.dock-shell .dispatch-column details > summary { font-weight: 600; color: var(--text); padding: 4px 0; }
.dock-shell .shift-floor { gap: 18px; }
.dock-shell .shift-totals { overflow: hidden; }
.dock-shell .shift-totals .stat + .stat { border-left: 1px solid var(--row-line); }

/* ── Airbnb host calendar grid ── */
.hc-scroll { overflow: auto; max-height: calc(100vh - 290px); background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); border-radius: 18px; box-shadow: var(--panel-shadow); }
.hc-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; width: max-content; min-width: 100%; }
.hc-grid th, .hc-grid td { padding: 0; border: 0; }
.hc-corner, .hc-day { position: sticky; top: 0; z-index: 2; background: var(--panel-a); border-bottom: 1px solid var(--row-line) !important; }
.hc-corner { left: 0; z-index: 3; min-width: 220px; padding: 10px 14px !important; text-align: left; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.hc-day { min-width: 58px; padding: 8px 2px !important; text-align: center; }
.hc-dow { display: block; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.hc-dom { display: block; font: 600 15px var(--font); color: var(--text); margin-top: 2px; }
.hc-day.weekend .hc-dom { color: var(--text-2); }
.hc-day.today { box-shadow: inset 0 -2px 0 var(--champagne); }
.hc-day.today .hc-dow, .hc-day.today .hc-dom { color: var(--accent-text); }
.hc-grid .host-building th { position: sticky; left: 0; padding: 14px 14px 6px !important; text-align: left; background: transparent; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.hc-grid .host-building th span { text-transform: uppercase; }
.hc-name { position: sticky; left: 0; z-index: 1; max-width: 240px; padding: 8px 14px !important; background: var(--panel-a); border-right: 1px solid var(--row-line) !important; border-top: 1px solid var(--row-line) !important; }
.hc-code { font: 600 13px var(--mono); color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.hc-title { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-cell { height: 44px; text-align: center; white-space: nowrap; border-top: 1px solid var(--row-line) !important; border-left: 1px solid color-mix(in srgb, var(--row-line) 60%, transparent) !important; position: relative; }
.hc-cell.today { background: color-mix(in srgb, var(--champagne) 7%, transparent); }
.hc-in { display: block; padding: 0 4px; }
.hc-available .hc-in { font: 600 11.5px var(--mono); color: var(--ok); letter-spacing: -0.02em; }
.hc-restricted .hc-in { font: 600 11.5px var(--mono); color: var(--warn); }
.hc-restricted { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.hc-booked { padding: 0 !important; }
.hc-booked .hc-in { margin: 0 -1px; height: 26px; line-height: 26px; text-align: left; padding: 0 8px; background: var(--ch-air); color: var(--ch-air-text); font-weight: 600; font-size: 12px; overflow: visible; }
.hc-booked.bar-start .hc-in { margin-left: 4px; border-radius: 8px 0 0 8px; box-shadow: inset 3px 0 0 var(--ch-air-line); position: relative; z-index: 1; }
.hc-booked.bar-end .hc-in { margin-right: 4px; border-radius: 0 8px 8px 0; }
.hc-booked.bar-start.bar-end .hc-in { border-radius: 8px; }
.hc-blocked { background: var(--surface-3) linear-gradient(135deg, transparent 47%, var(--border-strong) 48%, var(--border-strong) 52%, transparent 53%); }
.hc-imported_block { background: color-mix(in srgb, var(--text-3) 12%, transparent); }
.hc-imported_block .hc-in { font: 500 10.5px var(--mono); color: var(--text-3); }
.hc-unavailable { background: var(--surface-3); }
.hc-none { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--row-line) 4px 5px); }
.hc-grid tbody tr:hover .hc-name { background: var(--row-hover); }
.hc-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--row-line); }
.hc-swatch.hc-available { background: var(--panel-a); box-shadow: inset 0 -3px 0 var(--ok); }
.hc-swatch.hc-booked { background: var(--ch-air); border-color: var(--ch-air-line); }

/* ── Properties: Airbnb-style cards ── */
.dock-shell .prop-toolbar { margin-bottom: 26px; }
.dock-shell .prop-toolbar .search-input { max-width: 420px; }
.dock-shell .prop-toolbar details { margin-top: 10px; }
.prop-groups { display: flex; flex-direction: column; gap: 38px; }
.prop-group-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: 400 24px/1.1 var(--font-brand); letter-spacing: -0.02em; color: var(--text); }
.prop-group-title span { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--text-3); }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
/* Each card fills exactly its column (AS-20261205-14): a long address could make a card wider than its column, so it ran
   into the next one, and `all: unset` on button cards had cancelled the wrapper's width: 100%, so cards shrank to their text. */
.prop-grid > * { min-width: 0; }
.dock-shell .compare-card-wrap > button.prop-card { width: 100%; height: 100%; }
.dock-shell button.prop-card {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; cursor: pointer; min-width: 0; border-radius: 16px;
}
.dock-shell button.prop-card:focus-visible { outline: 2px solid var(--champagne); outline-offset: 4px; }
.prop-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-3); }
.prop-photo-slot, .prop-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.prop-photo img { object-fit: cover; transition: transform .35s ease; }
.prop-card:hover .prop-photo img { transform: scale(1.035); }
.prop-nophoto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--champagne) 16%, transparent), transparent 60%), var(--surface-3); }
.prop-nophoto svg { color: var(--text-3); opacity: .8; }
.prop-nophoto small { font-size: 12px; color: var(--text-3); }
.prop-ready { position: absolute; left: 10px; top: 10px; }
.prop-ready .badge { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg) 78%, transparent) !important; box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.prop-fav { position: absolute; right: 12px; top: 8px; font-size: 18px; color: var(--champagne); text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.prop-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 2px; }
.prop-line1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-height: 21px; }
.prop-code { font: 600 14px var(--mono); color: var(--accent-text); }
.prop-rate { font-weight: 600; font-size: 14px; color: var(--text); white-space: nowrap; }
.prop-rate small { font-weight: 400; color: var(--text-3); font-size: 12.5px; }
.prop-name { font-size: 14.5px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-size { font-size: 13.5px; color: var(--text-2); }
.prop-size.nr { color: var(--text-3); font-style: italic; }
.prop-flags { display: flex; gap: 6px; margin-top: 4px; }

/* ── Shared page toolbar: one quiet row, no boxed panel ── */
.dock-shell .page-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.dock-shell .page-toolbar input[type=date], .dock-shell .page-toolbar select { width: auto; min-height: 36px; }
.dock-shell .page-toolbar .toolbar-search { width: 220px; min-height: 36px; }
.dock-shell .page-toolbar .spacer { flex: 1; }
.dock-shell .page-toolbar .seg button[aria-label] { font-size: 16px; padding: 0 10px !important; }

/* ── Cleaning board ── */
.clean-days { display: flex; flex-direction: column; gap: 30px; }
.clean-day-title { font: 400 22px var(--font-brand); margin: 0 0 12px; }
.clean-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: start; }
.clean-lane { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); }
.clean-lane > header { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 4px; }
.clean-lane > header strong { font: 400 19px var(--font-brand); }
.clean-lane > header { gap: 10px; }
.clean-lane > header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clean-lane > header span { flex: none; font: 500 11.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.clean-lane.unassigned > header strong { color: var(--warn); }
.clean-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--row-line); cursor: pointer; transition: border-color .15s; }
.clean-card:hover { border-color: color-mix(in srgb, var(--champagne) 45%, transparent); }
.clean-card.done { opacity: .55; }
.clean-card.changed { box-shadow: inset 3px 0 0 var(--warn); }
.clean-top { display: flex; align-items: center; gap: 8px; }
.dock-shell button.clean-flat { all: unset; cursor: pointer; font: 600 15px var(--mono); color: var(--accent-text); }
.dock-shell button.clean-flat:hover { text-decoration: underline; }
.clean-kind { font-size: 12px; color: var(--text-3); text-transform: capitalize; }
.clean-when { font-size: 13.5px; font-weight: 500; color: var(--text); }
.clean-who { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clean-change { font-size: 12.5px; color: var(--warn); }
.clean-change.muted { color: var(--text-3); }
.clean-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.dock-shell .task-actions button:not(.more-btn) { min-height: 28px !important; padding: 0 10px !important; font-size: 12.5px !important; border-radius: 8px !important; }
.dock-shell .task-actions .more-btn { min-height: 28px !important; width: 28px !important; }
.task-actions { gap: 6px; flex-wrap: nowrap; }
.clean-top .spacer { flex: 1; }

/* ── Calm grouped list (Tasks, Issues; reusable) ── */
.list-groups { display: flex; flex-direction: column; gap: 30px; }
.list-group-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 400 22px var(--font-brand); }
.list-group-title span { font: 500 12px var(--mono); color: var(--text-3); }
.list-group-title .group-fold { all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 10px; font: inherit; color: inherit; border-radius: 6px; }
.list-group-title .group-fold:hover { color: var(--accent, inherit); }
.list-group-title .group-fold:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 3px; }
.list-group-title .fold-caret { font: 400 14px var(--font-ui, inherit); color: var(--text-3); width: 12px; }
.list-group-title .group-move { margin-left: auto; display: inline-flex; gap: 4px; opacity: .35; transition: opacity .15s; }
.list-group:hover .group-move, .group-move:focus-within { opacity: 1; }
.list-group.folded + .list-group { margin-top: -16px; }
.list-group.folded > .list-group-title { margin-bottom: 4px; }
.list-group.bad > .list-group-title { color: var(--bad); }
.list-group.warn > .list-group-title { color: var(--warn); }
.calm-list { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); border-radius: 16px; padding: 4px 6px; }
.calm-row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 12px; border-radius: 11px; cursor: pointer; }
.calm-row + .calm-row { border-top: 1px solid var(--row-line); }
.calm-row:hover { background: var(--row-hover); }
.calm-row.done { opacity: .55; }
.calm-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--text-3); opacity: .7; }
.calm-dot.bad { background: var(--bad); opacity: 1; }
.calm-dot.warn { background: var(--warn); opacity: 1; }
.calm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.calm-main strong { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.calm-details { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.calm-meta { font-size: 12.5px; color: var(--text-3); }
.calm-meta a { color: var(--accent-text); }
.kind-group { margin-bottom: 10px; }
.kind-group > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 6px 4px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.kind-group > summary::-webkit-details-marker { display: none; }
.kind-group > summary::before { content: '›'; display: inline-block; width: 10px; color: var(--text-3); transition: transform .15s; }
.kind-group[open] > summary::before { transform: rotate(90deg); }
.kind-name::first-letter { text-transform: uppercase; }
.kind-n { font: 500 12px var(--mono); color: var(--text-3); }

/* Today: shift queues read as calm rows, no nested scrollbars */
.dispatch-rows { max-height: none; overflow: visible; }
.dispatch-rows > div { padding: 7px 0; border-top: 1px solid var(--row-line); overflow-wrap: anywhere; white-space: normal; }
.dispatch-rows > div:first-child { border-top: 0; }
.dispatch-rows .row.nowrap { flex-wrap: wrap; white-space: normal; }
.dispatch-queue summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.dispatch-queue summary::-webkit-details-marker { display: none; }
.dispatch-queue summary::before { content: '›'; color: var(--text-faint); transition: transform .15s; display: inline-block; width: 10px; }
.dispatch-queue[open] summary::before { transform: rotate(90deg); }

/* Reservations: one line per booking */
.bk-line { display: grid !important; grid-template-columns: 12px minmax(180px, 1.6fr) minmax(120px, auto) minmax(90px, .7fr) minmax(90px, auto) 80px; align-items: center; gap: 14px; cursor: pointer; }
.bk-line.on { background: var(--row-hover); box-shadow: inset 3px 0 0 var(--champagne); }
.bk-line .insp-dot { justify-self: center; }
.bk-dates { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-dates small { margin-left: 6px; color: var(--text-3); }
.bk-flat b { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
.bk-flat small { color: var(--text-3); }
.bk-flat .warn-text { color: var(--warn, #d8a24a); }
.bk-total { text-align: right; font-variant-numeric: tabular-nums; }
.with-insp .bk-line { grid-template-columns: 12px minmax(160px, 1.5fr) minmax(110px, auto) minmax(70px, .6fr) 72px; }
.with-insp .bk-status { display: none; }
.toolbar-picker { min-width: 180px; }

/* Labeled menu button: "Change ▾" */
.dock-shell button.more-btn.labeled { width: auto; padding: 0 14px; min-height: 36px; font-size: 14px; letter-spacing: 0; border: 1px solid var(--panel-line); background: var(--surface); color: var(--text); }
.dock-shell button.more-btn.labeled span { font-size: 10px; margin-left: 4px; color: var(--text-3); }

/* Booking page */
.bk-headmeta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stay-tl { background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); border-radius: 18px; padding: 18px 22px 14px; margin: 4px 0 14px; }
.stay-tl header { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.stay-tl-end { display: flex; flex-direction: column; gap: 2px; }
.stay-tl-end.right { margin-left: auto; text-align: right; }
.stay-tl-end small { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.stay-tl-end b { font: 500 26px/1.1 var(--font-brand); letter-spacing: -.01em; color: var(--text); }
.stay-tl-end em { font-style: normal; font-size: 12.5px; color: var(--text-3); }
.stay-tl-n { align-self: center; margin: 0 auto; font-size: 13px; color: var(--text-2); padding: 4px 12px; border: 1px solid var(--row-line); border-radius: 999px; }
.stay-tl-track { position: relative; height: 46px; border-radius: 12px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--row-line) calc(100% - 1px) 100%); background-color: var(--row-hover); }
.dock-shell button.stay-tl-seg { all: unset; box-sizing: border-box; position: absolute; top: 5px; bottom: 5px; border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 12px; cursor: pointer; overflow: hidden; background: color-mix(in srgb, var(--champagne) 22%, transparent); border: 1px solid color-mix(in srgb, var(--champagne) 55%, transparent); color: var(--text); }
.dock-shell button.stay-tl-seg.c1 { background: color-mix(in srgb, var(--ch-bk-line) 22%, transparent); border-color: color-mix(in srgb, var(--ch-bk-line) 55%, transparent); }
.dock-shell button.stay-tl-seg.c2 { background: color-mix(in srgb, var(--ch-air-line) 20%, transparent); border-color: color-mix(in srgb, var(--ch-air-line) 50%, transparent); }
.dock-shell button.stay-tl-seg:hover { filter: brightness(1.12); }
.stay-tl-seg b { font: 600 14px/1 var(--font-mono); letter-spacing: .02em; }
.stay-tl-seg small { font-size: 12px; color: var(--text-2); }
.stay-tl-none { position: absolute; inset: 5px; border-radius: 9px; border: 1px dashed var(--text-3); display: flex; align-items: center; padding: 0 12px; color: var(--text-2); }
.stay-tl-none.bad { border-color: var(--bad); color: var(--bad); }
.stay-tl-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--champagne); transform: translateX(-1px); }
.stay-tl-today i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--champagne); font-style: normal; }
.stay-tl-ticks { position: relative; height: 16px; margin-top: 6px; }
.stay-tl-ticks span { position: absolute; transform: translateX(-50%); font: 500 11px/1 var(--font-mono); color: var(--text-3); }
.bk-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0 0 16px; padding: 0 4px; }
.bk-facts div { display: flex; flex-direction: column; gap: 3px; }
.bk-facts dt { font: 600 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.bk-facts dd { margin: 0; font-size: 15px; }

/* Paramount House: one tile per physical flat */
.pm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pm-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--panel-line); background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); min-height: 150px; }
.pm-tile header { display: flex; align-items: baseline; gap: 8px; }
.pm-tile header strong { font: 500 20px/1.1 var(--font-brand); letter-spacing: -.01em; }
.pm-tile header .spacer { flex: 1; }
.pm-tile.in { border-top: 2px solid var(--champagne); }
.pm-tile.vacant { background: transparent; border-style: dashed; }
.pm-tile.differs { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn, #d8a24a) 55%, transparent); }
.pm-state { font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.pm-state.in { color: var(--champagne); }
.pm-state.free { color: var(--ok, #6fbf8e); }
.pm-guest { font-size: 15.5px; font-weight: 600; color: var(--text); }
.pm-dates { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pm-meta { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.pm-meta.mono { font-family: var(--font-mono); }
.pm-tile footer { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--row-line); }
.pm-tile footer select { flex: 1; min-width: 0; }
.pm-differs { font-size: 12px; color: var(--warn, #d8a24a); }

/* Finder results as photo cards */
.finder-card { cursor: pointer; }
.finder-compare { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); backdrop-filter: blur(6px); }
.finder-notes { font-size: 12px; color: var(--text-3); line-height: 1.4; }

/* Settings-style section heads */
.set-head { display: flex; align-items: flex-start; gap: 10px; }
.set-head h2 { margin: 0 0 4px; font: 500 22px/1.15 var(--font-brand); letter-spacing: -.01em; }
.set-head p { margin: 0; }
.set-head .spacer { flex: 1; }
.settings-layout { grid-template-columns: 210px minmax(0, 1fr); }
.dock-shell .settings-layout > .tabs .tab { white-space: normal; text-align: left; line-height: 1.25; }

/* Same-layout photos and arranging buildings */
.prop-lent { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.photo-lent { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, var(--bg) 80%, transparent); color: var(--text); backdrop-filter: blur(8px); }
.gallery-hero { position: relative; }
.prop-group-title { display: flex; align-items: center; gap: 8px; }
.prop-group-title .more-btn { margin-left: 2px; opacity: .55; }
.prop-group-title:hover .more-btn, .prop-group-title .more-btn:focus-visible { opacity: 1; }
.arrange-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 52vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.arrange-list li { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.arrange-list li:last-child { border-bottom: 0; }
.arrange-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.layout-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.link-btn { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; color: var(--accent-text) !important; font: inherit !important; text-decoration: underline; cursor: pointer; }
.arrange-list label.arrange-name { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; margin: 0; }
.arrange-list .arrange-name { text-align: left; align-items: flex-start; }

/* Cleaner group messages */
.cleaner-msgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cleaner-msg { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface, transparent); }
.cleaner-msg header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cleaner-msg .report { margin: 0; max-height: 420px; overflow: auto; }

/* Lock screen mark: graphite tile with the champagne roof-and-door. */
.brand-mark { background: #16191c !important; color: #d6c29a !important; border: 1px solid #2f353c !important; border-radius: 10px !important; width: 40px !important; height: 40px !important; }
.brand-mark svg { width: 24px; height: 24px; }

/* Command studio v2 — image-first search, not a stack of generic buttons. */
.modal.command-studio {width:min(760px,94vw);max-height:90vh;overflow:hidden;display:flex;flex-direction:column;border-radius:18px!important;background:var(--surface)!important;box-shadow:0 24px 100px #0004!important;}
.modal.command-studio.has-preview {width:min(1200px,95vw);}
.command-head {display:flex;align-items:center;gap:12px;padding:16px 20px 12px;border-bottom:0;flex-shrink:0;}
.command-search-field {display:flex;align-items:center;gap:13px;flex:1;min-width:0;color:var(--accent-text);padding:0 14px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;min-height:54px;}
.command-search-field:focus-within {border-color:var(--champagne);box-shadow:0 0 0 2px var(--accent-weak);}
.command-studio .command-search-field input {width:100%;flex:1;min-width:0;border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;font-size:20px!important;font-weight:450;padding:12px 0!important;box-shadow:none!important;}
.command-studio button.command-clear,.command-studio button.command-head-control,.command-studio button.command-escape {display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;padding:7px 9px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--text-2);font-size:12px;min-height:34px!important;}
.command-studio button.command-head-control[aria-pressed=true] {color:var(--accent-text);background:var(--accent-weak)!important;}
.command-studio button.command-escape {border:1px solid var(--border)!important;padding:4px 8px!important;border-radius:6px!important;min-height:27px!important;}
.command-studio button.command-clear {font-size:19px;padding:0 4px!important;}
.command-filters {display:flex;gap:4px;padding:0 20px 12px;overflow:auto;flex-shrink:0;border-bottom:1px solid var(--border);}
.command-studio .command-filters button {border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;min-height:30px!important;padding:5px 12px!important;white-space:nowrap;color:var(--text-2);border-radius:7px!important;font-size:12px;}
.command-studio .command-filters button.on {background:var(--accent-weak)!important;color:var(--accent-text);border-color:var(--accent-weak-2)!important;font-weight:650;}
.command-body {display:grid;grid-template-columns:minmax(0,1fr);height:min(630px,64vh);min-height:0;overflow:hidden;}
.has-preview .command-body {grid-template-columns:minmax(0,1fr) minmax(0,1.07fr);}
.command-studio .palette-results {max-height:none;height:100%;overflow:auto;overscroll-behavior:contain;padding:9px 12px 14px;}
.command-group+.command-group {margin-top:10px;border-top:1px solid var(--row-line);padding-top:6px;}
.command-studio .palette-group {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 10px 7px;color:var(--text-3);font-size:10px;letter-spacing:.11em;}
.command-group-count {font-weight:400;letter-spacing:0;opacity:.8;margin-left:4px;}
.command-studio .palette-group button {padding:2px 5px!important;min-height:24px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--accent-text);font-size:10px;}
.command-studio button.command-result {display:flex;width:100%;text-align:left;align-items:center;gap:11px;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;padding:7px 10px!important;min-height:47px!important;box-shadow:none!important;white-space:normal;transition:background 100ms;}
.command-studio button.command-result:hover:not(:disabled) {background:var(--row-hover)!important;}
.command-studio button.command-result.active {background:var(--accent-weak)!important;border-color:var(--accent-weak-2)!important;box-shadow:inset 3px 0 var(--champagne)!important;}
.command-visual {display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:8px;background:var(--surface-3);color:var(--accent-text);overflow:hidden;}
.command-visual.type-reservation {color:var(--text-2);}
.command-visual.has-image {flex-basis:65px;height:46px;border-radius:6px;background:var(--surface-3);}
.command-visual img {width:100%;height:100%;object-fit:cover;}
.command-studio button.result-photo,.command-studio button.result-property:has(.has-image) {min-height:62px!important;}
.command-result-text {display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;}
.command-result-text strong {font-size:13px;line-height:1.35;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.command-result-text small {font-size:11.5px;color:var(--text-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;}
.command-exact {font-size:10px;color:var(--accent-text);flex-shrink:0;border:1px solid var(--accent-weak-2);border-radius:5px;padding:3px 5px;}
.command-arrow {font-size:14px;color:var(--accent-text);flex-shrink:0;opacity:0;}
.command-result.active .command-arrow {opacity:1;}
.command-preview {min-width:0;overflow:auto;overscroll-behavior:contain;border-left:1px solid var(--border);background:var(--surface-2);padding:18px 20px;}
.command-preview-label {display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--accent-text);margin-bottom:13px;}
.command-preview-label span:last-child:not(:first-child) {color:var(--text-3);font-weight:500;}
.command-studio button.command-photo-hero {position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16/10;max-height:310px;padding:0!important;border:1px solid var(--border)!important;border-radius:12px!important;background:var(--surface-3)!important;overflow:hidden;box-shadow:none!important;}
.command-photo-hero img {width:100%;height:100%;object-fit:contain;position:absolute;inset:0;}
.command-image-empty {display:flex;flex-direction:column;gap:9px;align-items:center;color:var(--text-3);font-size:12px;}
.command-photo-caption,.command-photo-expand {position:absolute;background:#141414b8;color:white;border-radius:6px;padding:5px 8px;bottom:9px;font-size:11px;}
.command-photo-caption {left:9px;}
.command-photo-expand {right:9px;display:grid;place-items:center;}
.command-gallery-strip {display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1fr);gap:6px;margin:7px 0 12px;}
.command-studio button.command-mini-photo,.command-studio button.command-gallery-more {padding:0!important;border-radius:7px!important;overflow:hidden;aspect-ratio:1.6;min-height:0!important;display:grid;place-items:center;background:var(--surface-3)!important;border:1px solid var(--border)!important;box-shadow:none!important;color:var(--text-2);}
.command-mini-photo img {width:100%;height:100%;object-fit:cover;}
.command-studio button.command-gallery-more {font-size:11px;line-height:1.1;}
.command-preview h2 {font:400 29px/1.15 var(--font-brand);margin:12px 0 5px;overflow-wrap:anywhere;letter-spacing:-.025em;}
.command-titlebar {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px;}
.command-titlebar h2 {margin:0;min-width:0;font-size:clamp(22px,2.1vw,29px);}
.command-studio .command-titlebar button {flex-shrink:0;font-size:11px!important;padding:8px 12px!important;min-height:34px!important;white-space:nowrap;}
.command-identity {display:flex;align-items:flex-start;gap:8px;justify-content:space-between;margin-bottom:10px;}
.command-identity p {margin:0;flex:1;min-width:0;}
.command-studio button.command-compare-shortcut {flex-shrink:0;padding:4px 8px!important;min-height:26px!important;font-size:11px!important;border-radius:7px!important;background:var(--surface)!important;box-shadow:none!important;}
.command-studio button.command-compare-shortcut[aria-pressed=true] {background:var(--accent-weak)!important;color:var(--accent-text);border-color:var(--champagne)!important;}
.command-preview p {font-size:12px;line-height:1.55;margin:0 0 12px;overflow-wrap:anywhere;color:var(--text-2);}
.command-photo-info {font-size:13px;border-top:1px solid var(--border);padding:13px 0;color:var(--text);}
.command-photo-info small {display:block;color:var(--text-2);margin-top:6px;font-size:11px;}
.command-property-metrics {display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border);border-radius:10px;background:var(--surface);margin:14px 0 10px;}
.command-property-metrics div {padding:10px 12px;display:flex;flex-direction:column;gap:3px;}
.command-property-metrics div+div {border-left:1px solid var(--border);}
.command-property-metrics strong {font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.035em;}
.command-property-metrics small {font-size:11px;color:var(--text-3);}
.command-preview dl {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:9px 12px;font-size:12px;margin:15px 0;}
.command-preview dt {color:var(--text-2);}
.command-preview dd {margin:0;overflow-wrap:anywhere;text-align:right;font-weight:550;}
.command-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding-top:14px;border-top:1px solid var(--border);}
.command-actions:empty {display:none;}
.command-actions button {font-size:11.5px!important;min-height:34px!important;white-space:normal!important;}
.command-actions .primary {grid-column:1/-1;min-height:39px!important;}
.command-empty {padding:12px 2px;}
.command-empty h2 {font-size:36px;margin-top:24px;}
.command-studio .command-empty button {display:flex;width:100%;justify-content:space-between;align-items:center;text-align:left;margin-top:7px;font-size:12px;background:var(--surface)!important;border:1px solid var(--border)!important;}
.command-list-empty {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:42px 18px;color:var(--text-3);font-size:12px;text-align:center;}
.command-list-empty strong {color:var(--text);font-size:14px;}
.command-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 17px;border-top:1px solid var(--border);font-size:11px;color:var(--text-3);background:var(--surface);flex-shrink:0;}
.command-shortcuts,.command-footer-right {display:flex;align-items:center;gap:6px;}
.command-shortcuts kbd {border:1px solid var(--border);border-radius:4px;padding:2px 4px;font:inherit;color:var(--text-2);}
.command-footer-right {gap:10px;}
.command-studio .command-footer-right button {font-size:11px;min-height:26px!important;padding:3px 7px!important;box-shadow:none!important;}
.command-local-dot {width:7px;height:7px;border-radius:50%;background:#7c9a79;}
@media(max-width:760px){.has-preview .command-body{grid-template-columns:minmax(0,1fr) minmax(0,.9fr)}.command-preview{padding:12px}.command-head{padding:10px}.command-head-control span{display:none}.command-filters{padding-left:10px}.command-studio .command-search-field input{font-size:16px!important}.command-footer{flex-wrap:wrap}.command-visual.has-image{flex-basis:48px;height:36px}.command-exact{display:none}.command-actions{grid-template-columns:1fr;}}

/* Shared physical-flat comparison: same selection in search, Finder and portfolio. */
.compare-card-wrap {position:relative;min-width:0;}
.compare-card-wrap>.prop-card {width:100%;height:100%;}
.compare-card-pick {position:absolute;top:9px;right:9px;z-index:2;}
.compare-toggle {display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:11px;cursor:pointer;box-shadow:var(--shadow-sm);}
.compare-toggle.compact {padding:0;border:0;background:none;box-shadow:none;}
.compare-toggle input {margin:0;accent-color:var(--champagne);cursor:pointer;}
.compare-toggle:has(input:checked) {border-color:var(--champagne);background:var(--accent-weak);}
.finder-compare .compare-toggle {border:0;padding:0;background:none;box-shadow:none;}
.cmp-workspace {min-width:0;}
.cmp-tools {display:grid;gap:10px;padding:12px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;}
.cmp-tools .row {flex-wrap:wrap;}
.cmp-selected {margin:12px 0;gap:6px;flex-wrap:wrap;}
.cmp-chip {display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--surface-2);padding:3px 5px 3px 10px;border-radius:999px;font-size:12px;font-weight:600;}
.cmp-chip button {min-height:22px!important;padding:0 5px!important;}
.cmp-table-scroll {max-height:min(54vh,580px);overflow:auto;border:1px solid var(--border);border-radius:12px;}
.cmp-table {width:100%;table-layout:fixed;min-width:680px;border-collapse:separate;border-spacing:0;}
.cmp-table th,.cmp-table td {white-space:normal!important;overflow-wrap:anywhere;text-align:left;vertical-align:top;padding:9px 12px!important;border-bottom:1px solid var(--row-line);}
.cmp-table thead th {position:sticky;top:0;z-index:3;background:var(--surface);font-weight:600;vertical-align:bottom;}
.cmp-table th:first-child {width:160px;position:sticky;left:0;background:var(--surface);z-index:2;}
.cmp-table thead th:first-child {z-index:4;}
.cmp-table tbody th {font-size:12px;font-weight:500;color:var(--text-2);}
.cmp-table td {font-size:13px;}
.cmp-table .cmp-section th {position:static;width:auto;background:var(--surface-3);color:var(--accent-text);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;}
.cmp-photo {height:clamp(65px,11vh,120px);border-radius:8px;background:var(--surface-3);position:relative;overflow:hidden;display:grid;place-items:center;font-size:11px;color:var(--text-3);}
.cmp-photo img {width:100%;height:100%;object-fit:cover;}
.cmp-photo-tag {position:absolute;bottom:4px;left:4px;background:var(--surface);border-radius:4px;padding:2px 5px;font-size:10px;color:var(--text);}
.cmp-code {display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0;font-size:16px;}
.cmp-detail,.cmp-trust {display:block;font-size:11px;line-height:1.4;color:var(--text-2);margin-top:4px;}
.cmp-trust.listed,.cmp-trust.conflict {color:var(--accent-text);}
.cmp-different td {background:color-mix(in srgb,var(--accent-weak) 45%,transparent);}


/* Finder: every flat shown, booked ones tagged and dimmed (AS-20261205-01). */
.stay-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--text); backdrop-filter: blur(8px); box-shadow: 0 1px 6px rgba(0,0,0,.16); }
.stay-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.stay-tag-free::before { background: var(--ok); }
.stay-tag-check::before, .stay-tag-missing::before { background: var(--warn); }
.stay-tag-booked::before { background: var(--bad); }
.finder-card.is-booked .prop-photo img { filter: grayscale(.85) brightness(.8); }
.finder-card.is-booked .prop-info { opacity: .72; }
.finder-card.is-booked:hover .prop-info { opacity: 1; }

/* Compare flats as photo cards (AS-20261205-01). */
.cmp-cards { display: grid; gap: 14px; margin: 14px 0 10px; }
.cmp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 0 0 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cmp-card > *:not(.cmp-card-photo) { margin-inline: 14px; }
.cmp-card.missing { padding: 16px; gap: 6px; }
.cmp-card-photo { position: relative; }
.cmp-card-photo .cmp-photo { height: auto; aspect-ratio: 4 / 3; max-height: 46vh; border-radius: 0; }
.cmp-card-photo .cmp-photo img { object-position: center 55%; }
.cmp-card-photo .stay-tag { position: absolute; left: 10px; top: 10px; }
.cmp-card.is-booked .cmp-card-photo img { filter: saturate(.55); }
.cmp-awards { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cmp-award { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--ok-weak, var(--surface-2)); color: var(--ok); border: 1px solid var(--ok-line, var(--border)); }
.cmp-card-head { display: flex; align-items: center; gap: 8px; }
.cmp-card-code { font: 600 22px var(--font-brand, inherit); letter-spacing: -0.01em; }
.cmp-card-sub { font-size: 13px; color: var(--text-2); margin-top: -6px; }
.cmp-card-price { font-size: 20px; font-weight: 600; }
.cmp-card-price small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.cmp-card-size { font-size: 13.5px; color: var(--text-2); }
.cmp-ticks { display: flex; flex-wrap: wrap; gap: 5px; }
.cmp-tick { padding: 2px 8px; border-radius: 6px; font-size: 12px; border: 1px solid var(--border); white-space: nowrap; }
.cmp-tick.yes { color: var(--ok); border-color: var(--ok-line, var(--border)); background: var(--ok-weak, transparent); }
.cmp-tick.no { color: var(--bad); border-color: var(--bad-line, var(--border)); background: var(--bad-weak, transparent); text-decoration: line-through; text-decoration-thickness: 1px; }
.cmp-tick.unk { color: var(--text-3); border-style: dashed; }
.cmp-card-warn { font-size: 12.5px; color: var(--warn); }
.cmp-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.cmp-more { margin: 4px 0 10px; }
.cmp-card-price .muted { font-size: 14px; font-weight: 400; }

/* Sync all bookings (dock) */
.sync-all { display: inline-flex; align-items: center; gap: 6px; }
.sync-all.busy svg { animation: sync-spin 1s linear infinite; }
@keyframes sync-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sync-all.busy svg { animation: none; } }
.command-studio.is-refreshing .palette-results { opacity: .7; transition: opacity .12s; }

/* Drag booking groups up and down (Reservations list) */
.group-grip { all: unset; cursor: grab; font-size: 18px; line-height: 1; padding: 4px 6px; color: var(--text-3); border-radius: 6px; touch-action: none; user-select: none; }
.group-grip:hover { color: var(--text); background: var(--row-hover); }
.group-drag-layer { position: fixed; inset: 0; z-index: 900; cursor: grabbing; background: color-mix(in srgb, var(--bg, #000) 72%, transparent); backdrop-filter: blur(2px); }
.group-drag-list { position: fixed; margin: 0; padding: 0; list-style: none; }
.group-drag-list li { height: 48px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); font: 400 19px var(--font-brand); box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: transform .18s cubic-bezier(.2,.8,.2,1); user-select: none; }
.group-drag-list li .n { font: 500 12px var(--mono); color: var(--text-3); }
.group-drag-list li small { margin-left: auto; color: var(--text-3); font: 500 11px var(--font-ui, inherit); }
.group-drag-list li.dragging { transition: none; z-index: 1; position: relative; border-color: var(--accent, var(--border)); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.group-grip-static { color: var(--text-3); font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .group-drag-list li { transition: none; } }

/* Browser version sign-in (AS-20261205-07) */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.signin-card { width: min(380px, 100%); padding: 28px 24px; border-radius: 16px; background: var(--panel-a, var(--surface)); border: 1px solid var(--panel-line, var(--row-line)); box-shadow: var(--panel-shadow, none); gap: 14px; }
.signin-card h1 { margin: 0; font-size: 24px; }
.signin-card input { width: 100%; font-size: 16px; }
.signin-card button { width: 100%; min-height: 44px; }
.signin-brand { font-family: var(--font-brand, inherit); color: var(--champagne, var(--accent-text)); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.signin-code { letter-spacing: 0.4em; font-variant-numeric: tabular-nums; font-size: 22px !important; text-align: center; }
.signin-error { color: var(--bad); margin: 0; }
.phone-only { display: none; }
/* Motion: one set of curves and timings for the whole app. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick: 160ms;
  --dur-base: 280ms;
  --dur-slow: 460ms;
}

/* Hosts for the sliding selection pill are positioned so the pill can be measured against them. */
.seg, .workspace-pages { position: relative; }

/* ── loading hairline ── */
.busy-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity 0.2s ease; }
.busy-bar::before { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; left: -38%; background: linear-gradient(90deg, transparent, var(--champagne), transparent); }
.busy-bar.on { opacity: 1; transition-delay: 0.18s; }
.busy-bar.on::before { animation: busy-run 1.1s var(--ease-in-out) infinite; }
@keyframes busy-run { to { left: 100%; } }

@media (prefers-reduced-motion: no-preference) {
  /* ── sliding selection pill in segmented controls ── */
  .dock-shell .seg.has-ind { isolation: isolate; }
  .dock-shell .seg.has-ind::before {
    content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0;
    width: var(--ind-w); transform: translateX(var(--ind-x));
    border-radius: 8px; background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--champagne), 0 1px 2px rgb(0 0 0 / 0.12);
  }
  .dock-shell .seg.has-ind.ind-live::before { transition: transform 0.42s var(--ease-spring), width 0.42s var(--ease-spring); }
  .dock-shell .seg.has-ind > button.on, .dock-shell .seg.has-ind > button.active, .dock-shell .seg.has-ind > button[aria-pressed="true"],
  .dock-shell .seg.has-ind > button[aria-checked="true"], .dock-shell .seg.has-ind > button:disabled {
    background: transparent !important; box-shadow: none !important;
  }
  .dock-shell .seg > button { transition: color 0.2s ease !important; }

  /* ── sliding underline in the top bar page tabs ── */
  .dock-shell .workspace-pages.has-ind::after {
    content: ''; position: absolute; bottom: 0; left: 0; height: 2px; border-radius: 2px;
    width: var(--ind-w); transform: translateX(var(--ind-x)); background: var(--champagne);
  }
  .dock-shell .workspace-pages.has-ind.ind-live::after { transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring); }
  .dock-shell .workspace-pages.has-ind .nav-item[aria-current=page] { border-color: transparent !important; }

  /* ── page arrival: the page rises in, its first blocks follow one after another ── */
  main.page > * { animation: page-in var(--dur-slow) var(--ease-out) both; }
  main.page > * > :nth-child(-n + 8) { animation: rise 0.52s var(--ease-out) both; }
  main.page > * > :nth-child(2) { animation-delay: 40ms; }
  main.page > * > :nth-child(3) { animation-delay: 80ms; }
  main.page > * > :nth-child(4) { animation-delay: 120ms; }
  main.page > * > :nth-child(5) { animation-delay: 160ms; }
  main.page > * > :nth-child(6) { animation-delay: 200ms; }
  main.page > * > :nth-child(7) { animation-delay: 230ms; }
  main.page > * > :nth-child(8) { animation-delay: 260ms; }
  @keyframes page-in { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

  /* ── content swaps (changing day, filter or view) ── */
  .swap > .swap-in { animation: swap-in 0.5s var(--ease-out) both; transition: opacity var(--dur-quick) ease; }
  .swap[data-dir="fwd"] > .swap-in { --sx: 26px; }
  .swap[data-dir="back"] > .swap-in { --sx: -26px; }
  .swap > .swap-in > :nth-child(-n + 8) { animation: swap-in 0.5s var(--ease-out) both; }
  .swap > .swap-in > :nth-child(2) { animation-delay: 35ms; }
  .swap > .swap-in > :nth-child(3) { animation-delay: 70ms; }
  .swap > .swap-in > :nth-child(4) { animation-delay: 105ms; }
  .swap > .swap-in > :nth-child(5) { animation-delay: 140ms; }
  .swap > .swap-in > :nth-child(6) { animation-delay: 170ms; }
  .swap > .swap-in > :nth-child(7) { animation-delay: 200ms; }
  .swap > .swap-in > :nth-child(8) { animation-delay: 230ms; }
  @keyframes swap-in { from { opacity: 0; transform: translate3d(var(--sx, 0), 8px, 0); } }
  .swap.swap-pending > .swap-in { opacity: 0.38; pointer-events: none; transition: opacity 0.22s ease 0.06s; }

  /* ── dialogs and toasts ── */
  .overlay { animation: fade-in 0.22s ease both; }
  .dock-shell .modal, .modal { animation: modal-pop 0.42s var(--ease-spring) both !important; }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes modal-pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.965); } }
  .toast { animation: toast-slide 0.5s var(--ease-spring) both !important; }
  @keyframes toast-slide { from { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.97); } }

  /* ── small touches ── */
  .dock-shell button:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.06s; }
  .count-up { font-variant-numeric: tabular-nums; }
  .need-row { transition: background 0.18s ease, transform 0.25s var(--ease-out); }
  .need-row:hover { transform: translateX(3px); }
  .prop-card, .clean-card, .cleaner-msg { transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.2s ease; }
  .prop-card:hover, .clean-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -14px rgb(0 0 0 / 0.35); }
  details[open] > :not(summary) { animation: rise 0.36s var(--ease-out) both; }
}

/* ── platform mode switch in the top bar ── */
.dock-shell .platform-mode button { display: inline-flex; align-items: center; gap: 6px; }
.platform-mode .pm-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.platform-mode .pm-airbnb .pm-dot { background: var(--ch-air-line, #e0565b); }
.platform-mode .pm-booking .pm-dot { background: var(--ch-bk-line, #3b6fd8); }
/* While one platform is chosen, a thin line in its colour runs under the top bar so the mode is never forgotten. */
:root[data-platform="airbnb"] .topbar { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ch-air-line, #e0565b) 75%, transparent); }
:root[data-platform="booking"] .topbar { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ch-bk-line, #3b6fd8) 75%, transparent); }
@media (max-width: 1250px) { .dock-shell .platform-mode button { padding: 0 8px !important; font-size: 12.5px; } }
/*
 * Phone layouts for the browser version (AS-20261205-08). Only below 760px wide, which the desktop window
 * (min 1100px) never reaches, so desktop screens are unchanged. Key screens: Shift desk and lists, flat page
 * with codes, booking page, search, messages. Other screens stay usable by scrolling.
 */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }
  input, select, textarea { font-size: 16px; } /* stops iOS zooming into fields */

  /* ── frame: one-line top bar with scrollable page tabs; full-width bottom bar ── */
  .dock-shell .topbar { flex-wrap: wrap; row-gap: 2px; gap: 6px; min-height: 48px; padding: 4px 10px; padding-top: max(4px, env(safe-area-inset-top)); position: sticky; top: 0; z-index: 35; }
  .dock-shell .topbar .clock, .dock-shell .topbar .page-help, .dock-shell .topbar .theme-one { display: none; }
  .dock-shell .topbar .spacer { flex: 1; }
  .dock-shell .topbar .workspace-pages { order: 5; flex-basis: 100%; }
  .dock-shell .workspace-pages { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; display: flex; flex-wrap: nowrap; gap: 2px; }
  .dock-shell .workspace-pages::-webkit-scrollbar { display: none; }
  .dock-shell .workspace-pages .nav-item { white-space: nowrap; flex: none; padding: 8px 10px; min-height: 40px; }
  .dock-shell .workspace-pages.has-ind::after { display: none; }
  .dock-shell .workspace-pages .nav-item[aria-current=page] { box-shadow: inset 0 -2px 0 var(--champagne); }
  .dock-shell .platform-mode { flex: none; }
  .dock-shell .platform-mode button { padding: 0 8px !important; font-size: 12px; }

  .dock { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); gap: 2px; justify-content: space-between; }
  .dock-key { flex: 1 1 0; justify-content: center; padding: 0 4px; min-width: 0; position: relative; }
  .dock-key .nav-count { position: absolute; top: 2px; right: 2px; font-size: 10px; padding: 0 4px; }
  .dock-sep { display: none; }
  .dock-search { flex: 1 1 0; justify-content: center; padding: 0; border: 0; background: transparent; }
  .dock-search .kbd { display: none; }
  .dock-search svg { width: 18px !important; height: 18px !important; }

  .dock-shell .page, .dock-shell .page[data-workspace] { padding: 14px 12px calc(84px + env(safe-area-inset-bottom)); }
  .dock-shell .page-header { flex-wrap: wrap; gap: 8px; }
  .dock-shell .page-header h1 { font-size: 24px; }
  .dock-shell .page-toolbar { gap: 8px; margin-bottom: 14px; }
  .dock-shell .page-toolbar .toolbar-search { width: 100%; }
  .card { padding: 12px; }
  .modal { width: calc(100vw - 16px) !important; max-width: none !important; max-height: calc(100vh - 16px); }
  .toasts { left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  button, .nav-item { min-height: 40px; }
}

@media (max-width: 760px) {
  /* ── Shift desk ── */
  .shift-totals { display: grid; grid-template-columns: 1fr 1fr; }
  .shift-totals .stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border: 0 !important; border-top: 1px solid var(--row-line) !important; }
  .shift-totals .stat:nth-child(-n+2) { border-top: 0 !important; }
  .shift-totals .stat:nth-child(odd) { border-right: 1px solid var(--row-line) !important; }
  [data-workspace=today] .shift-totals .value { order: -1; font-size: 30px; }
  .shift-totals .label { font-size: 10.5px; }
  .shift-totals .sub { font-size: 12px; line-height: 1.35; }
}
@media (max-width: 760px) {
  .need-row { grid-template-columns: 36px minmax(0, 1fr); gap: 6px 12px; padding: 12px; }
  .need-row > button { grid-column: 2; justify-self: start; }
  .need-row:hover { transform: none; }
}
@media (max-width: 760px) {
  /* Movement rows: time and flat on top, guest below, building last */
  .dock-shell .movement-board { padding: 4px 0 8px; }
  .dock-shell .movement-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'time unit' 'stay stay' 'bldg bldg'; gap: 2px 10px; padding: 10px 12px; }
  .dock-shell .movement-line > .flow-in, .dock-shell .movement-line > .flow-out { grid-area: time; }
  .dock-shell .movement-line > .stay-link { grid-area: stay; text-align: left; }
  .dock-shell .movement-line > .unit-link { grid-area: unit; justify-self: end; max-width: 50vw; }
  .dock-shell .movement-line > .movement-building { grid-area: bldg; font-size: 12px; }
  .dock-shell .movement-line > :nth-child(n+5) { grid-column: 1 / -1; }
  .dock-shell .movement-board > header { flex-wrap: wrap; gap: 8px; padding: 10px 12px 6px; }
  .dock-shell .dispatch-column { padding: 6px 12px 12px; }
}
@media (max-width: 760px) {
  /* Flat page: stay, entry codes and wifi first; photos after */
  .property-spread { display: flex !important; flex-direction: column; gap: 14px; }
  .property-spread > .property-operations-desk { order: -1; }
  .access-pair { grid-template-columns: 1fr !important; }
  .property-access-readout { white-space: pre-wrap; word-break: break-word; font-size: 15px; }
  .pf-actions { flex-wrap: wrap; }
  .pf-actions button { min-height: 44px; }
}
@media (max-width: 760px) {
  .phone-only { display: inline-flex; }
  /* Messages: the list, or one conversation full width */
  .dock-shell .inbox-shell { grid-template-columns: 1fr; }
  .dock-shell .inbox-list { max-height: none; border: 0; }
  .dock-shell .inbox-shell.has-open .inbox-list { display: none; }
  .dock-shell .inbox-shell:not(.has-open) .inbox-thread { display: none; }
  .inbox-back { margin: 0 0 8px; padding-left: 0; }
  .inbox-thread { padding: 10px 4px; }
  .inbox-thread textarea { min-height: 120px; }
}
@media (max-width: 760px) {
  .phone-links { display: flex; gap: 8px; margin-top: 8px; }
  .phone-links .btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong, var(--row-line)); color: var(--text); text-decoration: none; font-weight: 600; }
}
@media (max-width: 760px) {
  /* Search: full screen, results only (quick look needs room) */
  .command-overlay { padding: 0 !important; align-items: stretch !important; }
  .modal.command-studio, .modal.command-studio.has-preview { width: 100vw !important; max-width: none !important; height: 100dvh; max-height: 100dvh; border-radius: 0 !important; }
  .command-studio .command-preview, .command-studio .command-head-control { display: none !important; }
  .has-preview .command-body, .command-body { grid-template-columns: minmax(0, 1fr); height: auto; flex: 1; }
  .command-studio .command-filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .command-studio .command-filters button { flex: none; }
  .command-studio > footer, .command-studio .command-foot { display: none; }

  /* Reports and Settings: section tabs scroll sideways above the content */
  .settings-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .dock-shell .settings-layout > .tabs { flex-direction: row !important; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .dock-shell .settings-layout > .tabs .tab { white-space: nowrap; flex: none; }
  pre.report { white-space: pre-wrap; word-break: break-word; font-size: 13px; }
}
@media (max-width: 760px) {
  /* Flat page: the gallery goes after the stay, codes and wifi */
  .property-content { display: flex; flex-direction: column; }
  .property-content > .property-gallery { order: 2; }
  .property-content > .property-gallery .gallery-hero { max-height: 240px; overflow: hidden; }
}
@media (max-width: 760px) {
  /* Bookings list: guest and flat on top, dates / status / total underneath */
  .bk-line, .with-insp .bk-line { grid-template-columns: 12px minmax(0, 1fr) auto !important; grid-template-areas: 'dot main total' 'dot dates dates' 'dot flat flat' 'dot status status'; gap: 4px 10px; }
  .bk-line > .insp-dot { grid-area: dot; align-self: start; margin-top: 6px; }
  .bk-line > .calm-main { grid-area: main; min-width: 0; }
  .bk-line > .bk-flat { grid-area: flat; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .bk-line > .bk-dates { grid-area: dates; font-size: 12.5px; }
  .bk-line > .bk-total { grid-area: total; justify-self: end; }
  .bk-line > .bk-status { grid-area: status; }
  .bk-line .calm-meta { overflow-wrap: anywhere; }

  /* Flats: one card per row; the 14-day strip scrolls inside itself */
  .prop-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fortnight { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card:has(> table) { overflow-x: auto; }
  .fix-row-head { grid-template-columns: minmax(0, 1fr) auto 20px; padding: 12px; }
  .fix-row-head > .meter { display: none; }
  .cal-toolbar { flex-wrap: wrap; }
  .cal-sizers { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 760px) {
  /* The desktop card rule (`all: unset` on button.prop-card) outranks a plain class, so match its weight. */
  .dock-shell button.prop-card { width: 100%; max-width: 100%; }
  .prop-card .prop-name, .prop-card .prop-size { overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  .set-head { flex-wrap: wrap; gap: 8px; }
  .table-wrap { max-width: 100%; min-width: 0; }
  .settings-panel, .settings-panel .stack { min-width: 0; }
}
