/*
  Legacy token layer. These names are kept for the older page CSS in this
  file, but their VALUES now alias the canonical --ds-* tokens defined in
  design-system.css so the whole app resolves to one palette (one blue, one
  gold, one green/red/shadow) instead of two near-duplicate systems.
  Soft tints and the specific light grey have no --ds-* equivalent and stay
  as literal values.
*/
:root {
  --dormer-blue: var(--ds-primary);
  --dormer-blue-2: #1316b5;
  --gold: var(--ds-accent);
  --gold-soft: #fff5df;
  --ink: var(--ds-text);
  --muted: var(--ds-muted);
  --line: var(--ds-border);
  --soft: var(--ds-bg);
  --surface: var(--ds-surface);
  --green: var(--ds-success);
  --green-soft: #e9f9f0;
  --red: var(--ds-danger);
  --red-soft: #fff0f0;
  --yellow: var(--ds-warning);
  --gray: #98a2b3;
  --shadow: var(--ds-shadow);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.lucide { width: 18px; height: 18px; stroke-width: 2.1; }

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .35s ease, visibility .35s ease;
}
.loading-screen.is-hidden { opacity: 0; visibility: hidden; }
.loading-card { display: grid; justify-items: center; gap: 18px; }
.loading-card img { width: 148px; height: auto; object-fit: contain; }
.loading-card span {
  width: 132px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: #e9ecf6;
  position: relative;
}
.loading-card span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  background: var(--gold);
  animation: loadingMove 1s ease-in-out infinite alternate;
}
@keyframes loadingMove { to { transform: translateX(128%); } }

.app-shell {
  min-height: 100vh;
  width: 100%;
  background: var(--soft);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 270px;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px 15px;
  background: linear-gradient(180deg, #070966, var(--dormer-blue));
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
}
.side-brand { display: grid; grid-template-columns: 1fr 36px; align-items: center; gap: 10px; }
.side-logo img { width: 174px; max-width: 100%; height: auto; object-fit: contain; display: block; }
.side-nav { display: grid; align-content: start; gap: 7px; }
.side-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  border-radius: 16px;
  color: rgba(255,255,255,.86);
  font-weight: 760;
  position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.side-nav a b { flex: 1; min-width: 0; }
.side-nav a:hover { background: rgba(255,255,255,.12); transform: translateX(2px); color: #fff; }
.side-nav a.active {
  color: var(--dormer-blue);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.side-nav a.active .lucide { color: var(--dormer-blue); }
.side-nav .lucide { flex: 0 0 auto; }
.nav-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.side-nav a.active .nav-badge { background: var(--dormer-blue); color: #fff; }
.sidebar-bottom { display: grid; gap: 12px; }
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
}
.sidebar-property {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.sidebar-property strong, .sidebar-property span { display: block; }
.sidebar-property strong {
  max-width: 165px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-property span { color: rgba(255,255,255,.68); font-size: 12px; margin-top: 2px; }
.sidebar-profile strong, .sidebar-profile span { display: block; }
.sidebar-profile span { color: rgba(255,255,255,.72); font-size: 12px; margin-top: 2px; }
.avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--dormer-blue);
}
.app-shell.sidebar-collapsed .sidebar { width: 270px; }

.workspace {
  min-width: 0;
  margin-left: 270px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 40px minmax(190px, 260px) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 28px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .035);
  backdrop-filter: blur(12px);
}
.mobile-menu { display: inline-flex; }
.sidebar-toggle { display: none; }
.company-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.company-chip img, .profile-chip img { width: 34px; height: 34px; object-fit: contain; }
.company-chip span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; }
.company-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-switcher select, .global-search input, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 11px 14px;
  outline: none;
  transition: border .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(11,13,141,.45);
  box-shadow: 0 0 0 4px rgba(11,13,141,.08);
}
.global-search { position: relative; grid-column: 3; }
.global-search .lucide {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dormer-blue);
}
.global-search input { padding-left: 44px; min-height: 48px; }
/* Pinned to the topbar's last grid track explicitly — roles without
   reception access don't render `.global-search` (see topbar.html), and
   without this, auto-placement slides `.top-actions` into the search
   column instead of leaving it empty, squeezing/clipping the date chip,
   bell and profile chip. */
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; grid-column: -1; }
.date-chip, .profile-chip, .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f3f5fb;
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}
.profile-chip { padding: 4px 10px 4px 5px; }
.notification { position: relative; }
.notification span {
  position: absolute;
  right: -4px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px 32px 80px;
  flex: 1;
}
.messages { padding: 14px 32px 0; }
.message, .empty, .notice, .warning, .danger {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}
.success { border-color: #b8e7c9; color: #08743e; background: var(--green-soft); }
.error, .danger { border-color: #ffd2d2; color: #b91c1c; background: var(--red-soft); }
.warning { border-color: #ffe0a3; color: #975a00; background: var(--gold-soft); }

/* Premium operations refresh */
:root {
  --ops-canvas: #f4f7fb;
  --ops-panel: #ffffff;
  --ops-blue: #1f5eff;
  --ops-blue-dark: #0b2d8f;
  --ops-mint: #13b981;
  --ops-amber: #f59f00;
  --ops-rose: #e5484d;
  --ops-ink: #142033;
  --ops-subtle: #64748b;
  --ops-border: #dce5f2;
  --ops-shadow: 0 18px 42px rgba(15, 34, 70, .08);
}

body,
.app-shell {
  background:
    linear-gradient(180deg, rgba(31,94,255,.04), rgba(31,94,255,0) 260px),
    var(--ops-canvas);
  color: var(--ops-ink);
}

.panel,
.premium-card,
.form-section-card,
.modal-card {
  border: 1px solid var(--ops-border);
  border-radius: 14px;
  background: var(--ops-panel);
  box-shadow: var(--ops-shadow);
}

.button.primary {
  background: linear-gradient(135deg, var(--ops-blue), var(--ops-blue-dark));
  color: #fff;
  border-color: transparent;
}

.button.ghost,
.icon-button {
  border: 1px solid var(--ops-border);
  background: #fff;
}

.pms-table th {
  color: var(--ops-subtle);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pms-table td {
  vertical-align: middle;
}

.enterprise-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enterprise-stats article {
  min-height: 118px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status-badge.good-status {
  color: #047857;
  background: #e8f8f0;
}

.status-badge.warn {
  color: #935400;
  background: #fff4db;
}

.media-thumb {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ops-blue-dark);
  background: #eef4ff;
  font-size: 12px;
  font-weight: 850;
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-form-grid {
  gap: 14px;
}

.form-section-card {
  padding: 18px;
  box-shadow: none;
}

.form-section-card h2,
.form-section-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.form-section-card p {
  margin: 0 0 12px;
}

.form-section-card label {
  display: block;
  margin: 0 0 6px;
  color: var(--ops-subtle);
  font-size: 12px;
  font-weight: 850;
}

.form-section-wide {
  grid-column: 1 / -1;
}

.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.inventory-product-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.checkout-ledger .billing-list dd strong,
.checkout-modal-bill dd strong {
  font-size: 20px;
}

.billing-list dt,
.billing-list dd {
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.bed-dot.maintenance,
.bed-cell.maintenance {
  background: #fee2e2;
}

.bed-dot.blocked,
.bed-cell.blocked {
  background: #e5e7eb;
}

.bed-cell.maintenance,
.bed-cell.blocked {
  color: #374151;
}

@media (max-width: 980px) {
  .enterprise-stats,
  .form-section-grid {
    grid-template-columns: 1fr;
  }
}

.button, .mini-button, .review-button, .icon-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button { min-height: 44px; padding: 10px 16px; border-radius: 15px; }
.button.compact { min-height: 38px; padding: 8px 12px; border-radius: 13px; }
.button:hover, .mini-button:hover, .review-button:hover, .icon-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,13,141,.1); }
.button.primary, .mini-button.primary {
  background: var(--dormer-blue);
  border-color: var(--dormer-blue);
  color: #fff;
}
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button.ghost { background: #fff; }
.danger-button { background: var(--red); border-color: var(--red); color: #fff; }
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
.sidebar .icon-button {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--dormer-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: 28px; line-height: 1.18; letter-spacing: 0; }
h2 { margin: 0; font-size: 18px; line-height: 1.2; }
p { margin: 0; }
.screen-header, .dashboard-greeting, .verify-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 420px);
}
.inline-filter input { min-height: 42px; }
.screen-header p, .dashboard-greeting p, .verify-hero p { color: var(--muted); margin-top: 6px; }
.muted-text { color: var(--muted); max-width: 760px; }
.greeting-date {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.greeting-date .lucide { color: var(--dormer-blue); }
.greeting-date span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.premium-card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-head p { color: var(--muted); margin-top: 5px; }
.premium-card { transition: transform .18s ease, box-shadow .18s ease; }
.premium-card:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(11,13,141,.12); }
.premium-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.kpi-card {
  min-height: 130px;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.kpi-card small { color: var(--muted); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.kpi-card strong { font-size: 28px; line-height: 1; }
.kpi-card span { color: var(--muted); font-weight: 700; }
.kpi-card.good { border-color: #b8e7c9; background: linear-gradient(180deg, #fff, var(--green-soft)); }
.kpi-card.urgent { border-color: #ffe0a3; background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.kpi { display: grid; gap: 10px; min-height: 168px; align-content: start; }
.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}
.kpi-icon.blue { background: var(--dormer-blue); }
.kpi-icon.orange { background: #ff8a3d; }
.kpi-icon.gold { background: var(--gold); color: var(--ink); }
.kpi-icon.violet { background: #3730a3; }
.kpi-icon.green { background: #26b864; }
.kpi small { color: var(--ink); font-weight: 800; min-height: 34px; display: flex; align-items: center; }
.kpi strong { font-size: 30px; line-height: 1; }
.kpi em, .kpi a {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
}
.kpi em.down { color: var(--red); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
}
.dashboard-grid > .premium-card:nth-child(3),
.dashboard-grid > .premium-card:nth-child(4) { align-self: stretch; }
.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head span, .card-head a { color: var(--muted); font-size: 13px; font-weight: 700; }
.card-head a { color: var(--dormer-blue); }
.soft-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 9px 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chart-card { min-height: 332px; }
.chart-legend { display: flex; gap: 30px; justify-content: center; color: var(--muted); font-weight: 650; margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.blue-dot, .gold-dot { width: 10px; height: 10px; display: inline-block; border-radius: 999px; }
.blue-dot { background: #2452ff; }
.gold-dot { background: var(--gold); }
.line-chart { width: 100%; height: auto; overflow: visible; }
.line-chart line, .grid-line { stroke: #dfe5f0; stroke-width: 1; fill: none; }
.occupied-line, .available-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.occupied-line { stroke: #2452ff; }
.available-line { stroke: var(--gold); }
.chart-labels { fill: var(--muted); font-size: 13px; }

.activity-feed, .premium-feed, .stock-alerts { display: grid; gap: 14px; }
.activity-feed article, .premium-feed article, .stock-alerts article {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.activity-feed article:last-child, .stock-alerts article:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-icon, .stock-alerts span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
}
.feed-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 999px;
  background: var(--dormer-blue);
  box-shadow: 0 0 0 8px #eef1ff;
}
.alert-list { display: grid; gap: 12px; }
.alert-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.alert-list strong {
  min-height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #9a5a00;
  background: var(--gold-soft);
  font-weight: 900;
}
.alert-list span { color: var(--muted); font-weight: 750; }
.activity-feed p, .activity-feed time, .stock-alerts p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.compact-table { overflow-x: auto; }
.compact-head, .compact-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr .8fr .75fr .7fr;
  gap: 12px;
  min-width: 650px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.compact-head { color: var(--muted); font-size: 12px; font-weight: 800; }
.compact-row:last-child { border-bottom: 0; }
.guest-mini { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.guest-mini b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--dormer-blue);
  background: #e9ecff;
}
.review-button {
  min-height: 34px;
  border-radius: 10px;
  color: var(--dormer-blue);
  border-color: #bfc7ff;
}
.stock-alerts article { grid-template-columns: 44px 1fr minmax(120px, 220px); }
meter { width: 100%; height: 9px; }

.data-table { overflow-x: auto; }
.table-head, .table-row {
  display: grid;
  gap: 12px;
  align-items: center;
  min-width: 780px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
}
.table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.queue-table .table-head, .queue-table .table-row { grid-template-columns: 1.5fr .9fr .9fr .9fr .9fr 1fr; }
.register-table .table-head, .register-table .table-row { grid-template-columns: 1.3fr .9fr .9fr 1.2fr .8fr; }
.audit-table .table-head, .audit-table .table-row { grid-template-columns: .85fr 1.2fr 1.15fr .8fr 1fr .75fr; }
.guest-cell, .row-actions { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e9ecff;
  color: var(--dormer-blue);
  font-weight: 900;
}
.avatar.large { width: 58px; height: 58px; font-size: 22px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  background: #eef1ff;
  color: var(--dormer-blue);
}
.status-badge.warn { background: var(--gold-soft); color: #9a5a00; }
.good-status { background: var(--green-soft); color: var(--green); }
.danger-status { background: var(--red-soft); color: var(--red); }
.mini-button { min-height: 32px; padding: 6px 10px; border-radius: 11px; }

.verification-workspace, .ops-grid, .split-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 22px;
  align-items: start;
}
.desk-qr-grid {
  display: grid;
  grid-template-columns: minmax(340px, 470px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.desk-qr-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  text-align: center;
}
.desk-qr-logo {
  width: 172px;
  height: auto;
  object-fit: contain;
}
.desk-qr-image {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(9, 11, 63, .08);
}
.qr-fallback {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #eef1ff;
  color: var(--dormer-blue);
}
.qr-fallback .lucide { width: 96px; height: 96px; }
.copy-url {
  width: 100%;
  display: grid;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.desk-flow-card { display: grid; align-content: start; }
.workflow-list {
  list-style: none;
  counter-reset: desk-flow;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.workflow-list li {
  counter-increment: desk-flow;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.workflow-list li::before {
  content: counter(desk-flow);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--dormer-blue);
  color: #fff;
  font-weight: 900;
}
.workflow-list b, .workflow-list span { display: block; }
.workflow-list span { color: var(--muted); margin-top: 4px; line-height: 1.45; }
.verify-left, .verify-right, .ops-left, .ops-right { display: grid; gap: 22px; }
.guest-identity, .verify-actions { display: flex; align-items: center; gap: 14px; }
.risk-meter {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}
.risk-high { background: var(--red-soft); color: var(--red); }
.risk-review { background: var(--gold-soft); color: #9a5a00; }
.document-preview iframe {
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}
.document-link { display: inline-flex; align-items: center; gap: 8px; color: var(--dormer-blue); font-weight: 850; margin-top: 10px; }
.camera-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }
#camera {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #070966;
}
.camera-side { display: grid; align-content: start; gap: 12px; }
.detail-list { display: grid; grid-template-columns: 92px 1fr; gap: 11px 14px; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 900; }
.detail-list dd { margin: 0; }
.alert-row { display: grid; gap: 5px; margin-top: 10px; }
.modal {
  border: 0;
  border-radius: 24px;
  padding: 0;
  width: min(540px, calc(100% - 28px));
  box-shadow: 0 30px 90px rgba(9,11,63,.28);
}
.modal::backdrop { background: rgba(9,11,63,.45); }
.modal-card { padding: 24px; display: grid; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.empty-module {
  display: grid;
  gap: 12px;
  align-content: start;
}
.settings-list { display: grid; gap: 12px; }
.settings-list article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.settings-list span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.room-bed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.room-bed {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.room-bed.available { border-color: #b7ebc9; background: var(--green-soft); color: var(--green); }
.room-bed.occupied { border-color: #ffd0d0; background: var(--red-soft); color: var(--red); }
.room-bed.cleaning { border-color: #ffe0a3; background: var(--gold-soft); color: #9a5a00; }
.room-bed.maintenance { background: #f2f4f7; color: var(--gray); }
.room-bed.reserved { border-color: #c7d2fe; background: #eef1ff; color: var(--dormer-blue); }
.room-bed small { color: currentColor; opacity: .75; }

.onboarding-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 14px;
  background: radial-gradient(circle at top, #eef1ff, #fff 45%, #f7f9fd);
}
.onboarding-shell.wide { align-content: start; padding-top: 28px; }
.onboarding-logo { width: 168px; height: auto; object-fit: contain; }
.onboarding-card, .login-card {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.onboarding-shell.wide .onboarding-card { width: min(100%, 900px); }
.onboarding-card h1, .login-card h1 { margin-bottom: 10px; }
.onboarding-card p, .login-card p { color: var(--muted); margin-bottom: 18px; }
.progress-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.progress-steps span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.progress-steps .active { background: var(--dormer-blue); color: #fff; }
.progress-steps .done { background: var(--gold-soft); color: #9a5a00; }
.grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-form p:last-of-type, .grid-form .button { grid-column: 1 / -1; }
.success-state { text-align: center; display: grid; justify-items: center; }
.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #9a5a00;
}

.public-content { min-height: 100vh; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #e8ebff, transparent 34%), #f7f9fd;
}
.login-logo { width: 190px; height: auto; object-fit: contain; display: block; margin: 0 auto 18px; }
.login-copy { text-align: center; }
.form-card { display: grid; gap: 14px; }
.form-card p { display: grid; gap: 7px; margin: 0; }
label { font-weight: 800; color: var(--ink); }

/* Sidebar & workspace dimensions: canonical values in design-system.css */
.content { max-width: 1540px; padding-top: 24px; }
.premium-card, .panel, .kpi-card, .message, .empty, .notice, .warning, .danger,
.button, .button.compact, .mini-button, .review-button, .icon-button,
.greeting-date, .property-switcher select, .global-search input, input, select, textarea,
.status-badge, .date-chip, .profile-chip, .status-pill, .soft-select {
  border-radius: 8px;
}
.premium-card, .panel {
  box-shadow: 0 10px 26px rgba(9, 11, 63, .055);
}
.premium-card:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(9, 11, 63, .08);
}
.priority-strip {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.priority-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.priority-card.urgent {
  border-color: #f6d48e;
  background: linear-gradient(180deg, #fff, #fff9ec);
}
.priority-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dormer-blue);
  background: #eef1ff;
}
.priority-card.urgent > span {
  color: #8a5200;
  background: var(--gold-soft);
}
.priority-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.priority-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}
.priority-card a, .priority-card em {
  color: var(--dormer-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}
.priority-card em { color: var(--muted); }
.premium-kpis {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}
.kpi {
  min-height: 144px;
  gap: 8px;
}
.kpi-icon { border-radius: 8px; }
.ops-dashboard {
  grid-template-columns: minmax(300px, .78fr) minmax(420px, 1fr) minmax(320px, .82fr);
  align-items: start;
}
.today-operations { grid-row: span 2; }
.operations-list, .compact-queue { display: grid; gap: 12px; }
.operations-list article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}
.operations-list p { color: var(--muted); margin-top: 3px; }
.operations-list a, .queue-mini-card a {
  color: var(--dormer-blue);
  font-weight: 850;
}
.op-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dormer-blue);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}
.occupancy-summary {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}
.occupancy-summary strong { font-size: 30px; line-height: 1; }
.occupancy-summary span {
  color: var(--muted);
  font-weight: 800;
}
.queue-module { grid-column: span 2; }
.compact-queue { max-height: 360px; overflow: auto; }
.queue-mini-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.guest-mini small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.queue-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 14px;
  margin-bottom: 18px;
}
.queue-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.queue-stat.urgent {
  border-color: #f6d48e;
  background: #fff9ec;
}
.queue-stat span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 900;
}
.queue-stat small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 11px;
}
.reception-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}
.queue-card-list { display: grid; gap: 12px; }
.queue-card {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(320px, 1.35fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.queue-person, .queue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.queue-person small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.queue-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.queue-meta span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 760;
}
.queue-meta .lucide { color: var(--dormer-blue); }
.count-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: #8a5200;
  font-weight: 900;
}
.bed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.bed-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bed-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  background: var(--gray);
}
.bed-dot.available { background: var(--green); }
.bed-dot.occupied { background: var(--red); }
.bed-dot.cleaning { background: var(--gold); }
.bed-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}
.bed-cell {
  min-height: 58px;
  display: grid;
  gap: 2px;
  align-content: center;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
/* Bed label (e.g. "A1") is short and always fits on one line. Room name
   (e.g. "Mixed Dorm 1") is the variable-length one — let it wrap onto a
   second line instead of hard-truncating mid-word ("Mixe…"); the `title`
   attribute on the cell still gives the full text on hover either way. */
.bed-cell b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bed-cell small {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.bed-cell.available { border-color: #b7ebc9; background: var(--green-soft); color: var(--green); }
.bed-cell.occupied { border-color: #ffd0d0; background: var(--red-soft); color: var(--red); }
.bed-cell.cleaning { border-color: #ffe0a3; background: var(--gold-soft); color: #9a5a00; }
.bed-cell.maintenance { background: #f2f4f7; color: var(--gray); }
.bed-cell.reserved { border-color: #c7d2fe; background: #eef1ff; color: var(--dormer-blue); }
.workflow-columns {
  grid-template-columns: minmax(260px, .72fr) minmax(380px, 1.14fr) minmax(300px, .82fr);
  gap: 16px;
  align-items: start;
}
.workflow-column {
  display: grid;
  gap: 18px;
  align-content: start;
}
.column-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}
.column-step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--dormer-blue);
  color: #fff;
  font-weight: 900;
}
.column-step p {
  color: var(--muted);
  margin-top: 4px;
}
.workflow-column h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}
.workflow-columns .detail-list {
  grid-template-columns: minmax(86px, .48fr) minmax(0, 1fr);
}
.document-preview iframe {
  height: 360px;
  border-radius: 8px;
}
.camera-panel {
  display: grid;
  gap: 12px;
}
#camera { border-radius: 8px; }
.action-stack {
  display: grid;
  gap: 14px;
}
.rejection-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bottom-nav, .fab-action { display: none; }

@media (max-width: 1280px) {
  .premium-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .dashboard-grid, .verification-workspace, .ops-grid, .split-workspace, .desk-qr-grid { grid-template-columns: 1fr; }
  .priority-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-module { grid-column: auto; }
  .queue-card { grid-template-columns: 1fr; }
  .queue-actions { justify-content: space-between; }
  .app-topbar { grid-template-columns: 40px minmax(180px, 230px) minmax(220px, 1fr) auto; }
}
@media (max-width: 980px) {
  .app-shell { display: block; padding-bottom: 74px; }
  .workspace {
    width: 100%;
    margin-left: 0;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(82vw, 310px);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .app-shell.mobile-sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(9,11,63,.38);
  }
  .app-shell.mobile-sidebar-open .sidebar-backdrop { display: block; }
  .mobile-menu { display: inline-flex; }
  .app-topbar {
    grid-template-columns: auto 1fr auto;
    padding: 12px 14px;
  }
  .property-switcher, .date-chip, .company-chip { display: none; }
  .global-search { grid-column: 1 / -1; }
  .top-actions { overflow-x: auto; justify-content: flex-start; }
  .content { padding: 18px 14px 92px; }
  .dashboard-greeting, .screen-header, .verify-hero { display: grid; }
  .premium-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-strip, .queue-overview { grid-template-columns: 1fr; }
  .operations-list article, .queue-mini-card, .priority-card {
    grid-template-columns: 42px 1fr;
  }
  .operations-list article a, .queue-mini-card a, .priority-card a, .priority-card em {
    grid-column: 2;
  }
  .camera-grid { grid-template-columns: 1fr; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 16;
    display: flex;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(11,13,141,.08);
  }
  .bottom-nav a {
    flex: 1;
    min-height: 64px;
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
  }
  .bottom-nav .lucide { color: var(--dormer-blue); }
  .fab-action {
    position: fixed;
    right: 18px;
    bottom: 82px;
    z-index: 17;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #fff;
    background: var(--dormer-blue);
    box-shadow: 0 18px 36px rgba(11,13,141,.28);
  }
}
@media (max-width: 620px) {
  h1 { font-size: 24px; }
  .premium-kpis { grid-template-columns: 1fr; }
  .premium-card, .panel, .onboarding-card, .login-card { border-radius: 8px; padding: 18px; }
  .stock-alerts article, .activity-feed article { grid-template-columns: 42px 1fr; }
  .stock-alerts meter, .activity-feed time { grid-column: 2; }
  .grid-form { grid-template-columns: 1fr; }
  .compact-head, .compact-row, .table-head, .table-row { min-width: 680px; }
  .queue-meta { grid-template-columns: 1fr; }
  .verify-actions, .guest-identity, .queue-actions { align-items: stretch; flex-direction: column; }
  .workflow-columns .detail-list { grid-template-columns: 1fr; }
  .detail-list dt { margin-top: 8px; }
  .inline-filter, .header-actions { width: 100%; justify-content: stretch; }
  .inline-filter { align-items: stretch; }
  .inline-filter .button, .header-actions .button { flex: 1; }
}

/* Workspace and content canonical values in design-system.css */

.premium-card,
.panel,
.kpi-card,
.priority-card,
.queue-card,
.queue-stat,
.room-card {
  border-radius: var(--card-radius);
}

.button,
.button.compact,
.mini-button,
.review-button,
.icon-button,
.status-badge,
.greeting-date,
.property-switcher select,
.global-search input,
input,
select,
textarea {
  border-radius: var(--control-radius);
}

.screen-header,
.dashboard-greeting,
.verify-hero {
  margin-bottom: 22px;
}

.screen-header p,
.dashboard-greeting p,
.verify-hero p {
  max-width: 760px;
}

.panel,
.premium-card {
  min-width: 0;
  overflow: hidden;
}

.module-grid,
.ops-grid,
.dashboard-grid {
  align-items: start;
}

.ops-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
}

.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 22px;
}

.module-grid-bookings {
  /* 360px wrapped "Channel Reservations" onto two lines while "PMS
     Bookings" next to it stayed on one — same .card-head component, but
     the mismatched line count made the pair read as inconsistent. */
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
}

.reports-grid {
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
}

.reports-grid-full {
  grid-column: 1 / -1;
}

.ops-dashboard {
  grid-template-columns: minmax(280px, .78fr) minmax(400px, 1fr) minmax(300px, .82fr);
}

.queue-module {
  grid-column: 2 / span 2;
}

.activity-feed,
.premium-feed,
.stock-alerts {
  min-width: 0;
}

.activity-feed article,
.premium-feed article,
.stock-alerts article {
  min-width: 0;
}

.activity-feed strong,
.activity-feed p,
.premium-feed strong,
.premium-feed p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pms-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pms-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.pms-table th,
.pms-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

.pms-table th {
  color: var(--muted);
  background: var(--ledger-head);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pms-table th:first-child {
  border-top-left-radius: 16px;
}

.pms-table th:last-child {
  border-top-right-radius: 16px;
}

.pms-table tbody tr:nth-child(even) td {
  background: var(--ledger-stripe);
}

.pms-table tbody tr:hover td {
  background: #f1f4ff;
}

.pms-table td {
  color: var(--ink);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pms-table .status-badge {
  max-width: 100%;
  white-space: normal;
}

.guest-ledger th:nth-child(1), .guest-ledger td:nth-child(1) { width: 17%; }
.guest-ledger th:nth-child(2), .guest-ledger td:nth-child(2) { width: 12%; }
.guest-ledger th:nth-child(3), .guest-ledger td:nth-child(3) { width: 11%; }
.guest-ledger th:nth-child(4), .guest-ledger td:nth-child(4) { width: 12%; }
.guest-ledger th:nth-child(5), .guest-ledger td:nth-child(5) { width: 16%; }
.guest-ledger th:nth-child(6), .guest-ledger td:nth-child(6) { width: 12%; }
.guest-ledger th:nth-child(7), .guest-ledger td:nth-child(7) { width: 10%; }
.guest-ledger th:nth-child(8), .guest-ledger td:nth-child(8) { width: 10%; }

.bookings-ledger th:nth-child(1), .bookings-ledger td:nth-child(1) { width: 15%; }
.bookings-ledger th:nth-child(2), .bookings-ledger td:nth-child(2) { width: 12%; }
.bookings-ledger th:nth-child(3), .bookings-ledger td:nth-child(3) { width: 13%; }
.bookings-ledger th:nth-child(4), .bookings-ledger td:nth-child(4) { width: 16%; }
.bookings-ledger th:nth-child(5), .bookings-ledger td:nth-child(5) { width: 13%; }
.bookings-ledger th:nth-child(6), .bookings-ledger td:nth-child(6) { width: 11%; }
.bookings-ledger th:nth-child(7), .bookings-ledger td:nth-child(7) { width: 10%; }
.bookings-ledger th:nth-child(8), .bookings-ledger td:nth-child(8) { width: 10%; }

.inventory-ledger th:nth-child(1), .inventory-ledger td:nth-child(1) { width: 20%; }
.inventory-ledger th:nth-child(2), .inventory-ledger td:nth-child(2) { width: 15%; }
.inventory-ledger th:nth-child(3), .inventory-ledger td:nth-child(3) { width: 13%; }
.inventory-ledger th:nth-child(4), .inventory-ledger td:nth-child(4) { width: 10%; }
.inventory-ledger th:nth-child(5), .inventory-ledger td:nth-child(5) { width: 13%; }
.inventory-ledger th:nth-child(6), .inventory-ledger td:nth-child(6) { width: 14%; }
.inventory-ledger th:nth-child(7), .inventory-ledger td:nth-child(7) { width: 15%; }

.payment-ledger th:nth-child(1), .payment-ledger td:nth-child(1) { width: 24%; }
.payment-ledger th:nth-child(2), .payment-ledger td:nth-child(2) { width: 15%; }
.payment-ledger th:nth-child(3), .payment-ledger td:nth-child(3) { width: 15%; }
.payment-ledger th:nth-child(4), .payment-ledger td:nth-child(4) { width: 16%; }
.payment-ledger th:nth-child(5), .payment-ledger td:nth-child(5) { width: 18%; }
.payment-ledger th:nth-child(6), .payment-ledger td:nth-child(6) { width: 12%; }

.audit-ledger th:nth-child(1), .audit-ledger td:nth-child(1) { width: 14%; }
.audit-ledger th:nth-child(2), .audit-ledger td:nth-child(2) { width: 22%; }
.audit-ledger th:nth-child(3), .audit-ledger td:nth-child(3) { width: 22%; }
.audit-ledger th:nth-child(4), .audit-ledger td:nth-child(4) { width: 14%; }
.audit-ledger th:nth-child(5), .audit-ledger td:nth-child(5) { width: 18%; }
.audit-ledger th:nth-child(6), .audit-ledger td:nth-child(6) { width: 10%; }

.settings-ledger th:nth-child(1), .settings-ledger td:nth-child(1) { width: 22%; }
.settings-ledger th:nth-child(2), .settings-ledger td:nth-child(2) { width: 18%; }
.settings-ledger th:nth-child(3), .settings-ledger td:nth-child(3) { width: 32%; }
.settings-ledger th:nth-child(4), .settings-ledger td:nth-child(4) { width: 14%; }
.settings-ledger th:nth-child(5), .settings-ledger td:nth-child(5) { width: 14%; }

.mono-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.number-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.truncate-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-cell {
  min-width: 0;
}

.guest-cell strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  width: 100%;
  color: var(--muted);
  background: #fff;
  border-style: dashed;
  font-weight: 750;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #08743e;
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(33, 185, 101, .14);
}

.is-live-updated .live-indicator i {
  animation: livePulse .85s ease;
}

@keyframes livePulse {
  50% { transform: scale(1.8); opacity: .45; }
}

.desk-qr-grid {
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
}

.desk-flow-card {
  min-width: 0;
}

.workflow-list.qr-workflow {
  gap: 12px;
}

.workflow-list.qr-workflow li {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  padding: 16px;
}

.workflow-list.qr-workflow span {
  max-width: 780px;
  line-height: 1.5;
}

.alert-list {
  display: grid;
  gap: 12px;
}

.stock-alert-card {
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
}

.stock-alert-card strong {
  width: 72px;
  min-height: 48px;
  border-radius: 16px;
  color: #9a5a00;
  background: var(--gold-soft);
}

.stock-alert-card small {
  color: var(--muted);
  font-weight: 800;
}

.stock-alert-card a {
  color: var(--dormer-blue);
  font-weight: 900;
}

.report-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.report-status-grid article {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.report-status-grid strong {
  font-size: 28px;
  line-height: 1;
}

.report-status-grid small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gray);
}

.status-dot.available { background: var(--green); }
.status-dot.occupied { background: var(--red); }
.status-dot.cleaning { background: var(--gold); }
.status-dot.reserved { background: var(--dormer-blue); }

.action-badge {
  color: var(--dormer-blue);
  background: #eef1ff;
}

@media (max-width: 1280px) {
  .ops-dashboard,
  .module-grid,
  .module-grid-bookings,
  .reports-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .queue-module {
    grid-column: auto;
  }
}

/* Enterprise reference alignment: inventory-led SaaS console */
body {
  background: #f7f8fc;
  color: #111827;
}

.sidebar {
  width: 270px;
  background: #fff;
  color: #111827;
  border-right: 1px solid #e6e8ef;
  box-shadow: none;
}

.side-logo img {
  width: 154px;
}

.side-property-select {
  background: #f7f8fc;
  border-color: #e6e8ef;
  color: #111827;
}

.side-property-select span {
  color: #6b7280;
}

.side-property-select .lucide {
  color: #f4a623;
}

.side-nav p {
  color: #9ca3af;
}

.side-nav a {
  color: #111827;
  min-height: 40px;
  border-radius: 12px;
}

.side-nav a:hover {
  color: #111827;
  background: #f2f3f7;
}

.side-nav a.active {
  color: #111827;
  background: #e9eaee;
  box-shadow: inset 4px 0 0 #f4a623;
}

.side-nav a.active .lucide {
  color: #0b0d8d;
}

.sidebar .icon-button {
  color: #111827;
  background: #f7f8fc;
  border-color: #e6e8ef;
}

.sidebar-profile {
  background: #fff;
  border-color: #e6e8ef;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

.workspace {
  background: #f7f8fc;
}

.app-topbar {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
  box-shadow: none;
}

.global-search input {
  min-height: 48px;
  border-radius: 12px;
  background: #fff;
  border-color: #e6e8ef;
}

.button.primary,
.mini-button.primary {
  background: #0b0d8d;
  border-color: #0b0d8d;
}

.button.ghost,
.mini-button,
.icon-button,
.date-chip,
.profile-chip {
  background: #fff;
  border-color: #e6e8ef;
}

.content {
  padding: 26px 28px 84px;
}

.screen-header,
.dashboard-greeting {
  min-height: 74px;
  margin-bottom: 18px;
}

.screen-header h1,
.dashboard-greeting h1 {
  font-size: 28px;
  font-weight: 750;
}

.panel,
.premium-card,
.kpi-card {
  border: 1px solid #e6e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(17, 24, 39, .045);
}

.enterprise-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.enterprise-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  border: 1px solid #e6e8ef;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 18px;
}

.enterprise-stats article {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 18px;
  border-right: 1px solid #e6e8ef;
}

.enterprise-stats article:last-child {
  border-right: 0;
}

.enterprise-stats small {
  color: #6b7280;
  font-size: 13px;
  font-weight: 750;
}

.enterprise-stats strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
  font-weight: 780;
}

.enterprise-stats span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 650;
}

.enterprise-stats .warn strong { color: #b45309; }
.enterprise-stats .danger strong { color: #dc2626; }

.enterprise-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar-search {
  position: relative;
}

.toolbar-search .lucide {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0b0d8d;
}

.toolbar-search input {
  min-height: 46px;
  padding-left: 44px;
}

.enterprise-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.enterprise-main,
.enterprise-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bottom-insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 18px;
}

.task-ledger {
  display: grid;
}

.task-ledger article {
  display: grid;
  grid-template-columns: 12px minmax(180px, 1fr) minmax(260px, 1.2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e6e8ef;
}

.task-ledger article:last-child {
  border-bottom: 0;
}

.task-ledger p {
  color: #6b7280;
}

.task-ledger a {
  color: #0b0d8d;
  font-weight: 850;
}

.task-state {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
}

.task-state.warn { background: #f59e0b; }
.task-state.danger { background: #ef4444; }

.pms-table {
  min-width: 980px;
}

.pms-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #e6e8ef;
}

.pms-table th::after {
  content: "↕";
  margin-left: 6px;
  color: #b0b6c3;
  font-size: 10px;
}

.pms-table td {
  background: #fff;
}

.pms-table tbody tr:nth-child(even) td {
  background: #fff;
}

.pms-table tbody tr:hover td {
  background: #f7f8fc;
}

.dashboard-queue-ledger th:nth-child(1), .dashboard-queue-ledger td:nth-child(1) { width: 24%; }
.dashboard-queue-ledger th:nth-child(2), .dashboard-queue-ledger td:nth-child(2) { width: 16%; }
.dashboard-queue-ledger th:nth-child(3), .dashboard-queue-ledger td:nth-child(3) { width: 14%; }
.dashboard-queue-ledger th:nth-child(4), .dashboard-queue-ledger td:nth-child(4) { width: 26%; }
.dashboard-queue-ledger th:nth-child(5), .dashboard-queue-ledger td:nth-child(5) { width: 20%; }

/* Guest and Status get the extra room: names need to fit before eliding,
   and Status carries a full sentence (e.g. "Started from booking — pending
   ID verification"), not a short word like the other badge columns. */
.reception-ledger th:nth-child(1), .reception-ledger td:nth-child(1) { width: 19%; }
.reception-ledger th:nth-child(2), .reception-ledger td:nth-child(2) { width: 8%; }
.reception-ledger th:nth-child(3), .reception-ledger td:nth-child(3) { width: 8%; }
.reception-ledger th:nth-child(4), .reception-ledger td:nth-child(4) { width: 11%; }
.reception-ledger th:nth-child(5), .reception-ledger td:nth-child(5) { width: 9%; }
.reception-ledger th:nth-child(6), .reception-ledger td:nth-child(6) { width: 10%; }
.reception-ledger th:nth-child(7), .reception-ledger td:nth-child(7) { width: 22%; }
.reception-ledger th:nth-child(8), .reception-ledger td:nth-child(8) { width: 13%; }

/* The verification-status badge holds a full sentence, not a short word —
   force-rounding it into a pill (border-radius:999px from the base
   .status-badge rule) makes wrapped text look like a broken pebble. A
   softer rectangle reads cleanly across 2-3 lines instead.
   white-space:normal is the actual fix here: .pms-table .status-badge sets
   nowrap globally so badge text never breaks mid-word in narrow columns,
   but that meant this specific badge's full-sentence status text was
   overflowing straight out of its cell and visually crushing the Verify
   button next to it instead of wrapping the way this rule intended. */
.reception-ledger .status-badge.status-wrap {
  display: block;
  border-radius: 10px;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
}

/* The action button must never wrap ("Ve/rif/y") regardless of how tight
   the column gets — better to let it be the widest thing in its row than
   to break a two-word label across three lines. */
.reception-ledger td:last-child .button {
  white-space: nowrap;
}

.inventory-ledger {
  min-width: 1320px;
}

.inventory-ledger th:nth-child(1), .inventory-ledger td:nth-child(1) { width: 76px; }
.inventory-ledger th:nth-child(2), .inventory-ledger td:nth-child(2) { width: 15%; }
.inventory-ledger th:nth-child(3), .inventory-ledger td:nth-child(3) { width: 12%; }
.inventory-ledger th:nth-child(4), .inventory-ledger td:nth-child(4) { width: 10%; }
.inventory-ledger th:nth-child(5), .inventory-ledger td:nth-child(5) { width: 12%; }
.inventory-ledger th:nth-child(6), .inventory-ledger td:nth-child(6) { width: 10%; }
.inventory-ledger th:nth-child(7), .inventory-ledger td:nth-child(7) { width: 10%; }
.inventory-ledger th:nth-child(8), .inventory-ledger td:nth-child(8) { width: 8%; }
.inventory-ledger th:nth-child(9), .inventory-ledger td:nth-child(9) { width: 10%; }
.inventory-ledger th:nth-child(10), .inventory-ledger td:nth-child(10) { width: 12%; }
.inventory-ledger th:nth-child(11), .inventory-ledger td:nth-child(11) { width: 9%; }

.item-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f0f1f5;
  color: #0b0d8d;
}

.barcode-panel {
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.barcode-preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed #cfd5e3;
  border-radius: 18px;
  background: #f7f8fc;
  text-align: center;
}

.barcode-preview .lucide {
  width: 76px;
  height: 76px;
  color: #111827;
}

.barcode-preview span {
  color: #6b7280;
}

.inventory-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.mini-chart-card {
  min-height: 210px;
}

.bar-chart {
  height: 86px;
  display: flex;
  align-items: end;
  gap: 16px;
  padding: 12px 0;
}

.bar-chart span {
  width: 42px;
  height: var(--value);
  border-radius: 12px 12px 4px 4px;
  background: #0b0d8d;
}

.bar-chart span:nth-child(2) { background: #f4a623; }
.bar-chart span:nth-child(3) { background: #22c55e; }

.donut-chart {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(#0b0d8d 0 58%, #f4a623 58% 78%, #e6e8ef 78% 100%);
}

.donut-chart span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

.sparkline {
  height: 100px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
}

.sparkline i {
  display: block;
  height: 40%;
  border-radius: 999px 999px 4px 4px;
  background: #dfe3ee;
}

.sparkline i:nth-child(2) { height: 70%; }
.sparkline i:nth-child(3) { height: 48%; }
.sparkline i:nth-child(4) { height: 84%; background: #0b0d8d; }
.sparkline i:nth-child(5) { height: 62%; }
.sparkline i:nth-child(6) { height: 92%; background: #f4a623; }

.report-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  background: #fff;
}

.report-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #6b7280;
  font-weight: 850;
  white-space: nowrap;
}

.report-tabs a.active,
.report-tabs a:hover {
  color: #111827;
  background: #f2f3f7;
}

.report-tabs a.active .lucide {
  color: #0b0d8d;
}

.audit-filters {
  grid-template-columns: 180px repeat(3, minmax(140px, 1fr)) auto;
}

.rooms-ledger small {
  display: block;
  color: #6b7280;
  margin-top: 3px;
}

.bed-detail-row td {
  background: #fbfcff !important;
  padding-top: 8px;
  padding-bottom: 16px;
}

.compact-bed-grid {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}

.compact-bed-grid .room-bed {
  min-height: 76px;
  border-radius: 14px;
}

@media (max-width: 1280px) {
  .enterprise-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .enterprise-stats article:nth-child(3n) {
    border-right: 0;
  }

  .enterprise-workspace,
  .bottom-insights,
  .inventory-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .sidebar {
    background: #fff;
  }

  .enterprise-stats,
  .enterprise-toolbar {
    grid-template-columns: 1fr;
  }

  .enterprise-stats article {
    border-right: 0;
    border-bottom: 1px solid #e6e8ef;
  }

  .enterprise-stats article:last-child {
    border-bottom: 0;
  }

  .task-ledger article {
    grid-template-columns: 12px 1fr auto;
  }

  .task-ledger article p {
    grid-column: 2 / -1;
  }
}

@media (max-width: 980px) {
  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .sidebar {
    width: min(84vw, 310px);
  }

  .content {
    padding: 16px 16px 92px;
  }

  .desk-qr-grid {
    grid-template-columns: 1fr;
  }

  .pms-table {
    min-width: 760px;
  }
}

@media (max-width: 620px) {
  .premium-card,
  .panel,
  .kpi-card,
  .priority-card,
  .queue-card,
  .queue-stat {
    border-radius: 18px;
  }

  .content {
    padding: 16px 14px 92px;
  }

  .stock-alert-card {
    grid-template-columns: 64px 1fr;
  }

  .stock-alert-card a {
    grid-column: 2;
  }
}

/* Final Dormer operations redesign overrides */
.panel,
.premium-card,
.room-map-board,
.room-map-card,
.pos-barcode-card,
.pos-search-card,
.pos-quick-card,
.pos-cart,
.pos-products-section,
.pos-transactions-section {
  border: 1px solid var(--ops-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--ops-shadow);
}

.screen-header,
.verify-hero,
.inventory-header {
  border-radius: 14px;
}

.enterprise-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.enterprise-stats article {
  border: 1px solid var(--ops-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 70, .06);
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-section-card {
  padding: 18px;
}

.form-section-wide {
  grid-column: 1 / -1;
}

.room-status-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.room-status-strip .blocked {
  background: #f3f4f6;
  color: #374151;
}

.bed-dot.maintenance,
.room-bed.maintenance {
  background: #fee2e2;
  color: #991b1b;
}

.bed-dot.blocked,
.room-bed.blocked {
  background: #e5e7eb;
  color: #374151;
}

@media (max-width: 980px) {
  .enterprise-stats,
  .form-section-grid,
  .room-status-strip {
    grid-template-columns: 1fr;
  }
}

/* Guest Files vault — file-centric document archive */
.vault-filter-bar { flex-wrap: wrap; }

.vault-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vault-total-count { color: var(--muted); font-size: 13px; font-weight: 700; }

.vault-selection-bar {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--dormer-blue);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 16px 0;
  box-shadow: 0 14px 34px rgba(11,13,141,.25);
}

.vault-selection-bar strong { font-size: 16px; }

.vault-selection-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.vault-selection-actions .button.ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.vault-category { margin-top: 26px; }

.vault-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vault-category-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
  margin: 0;
  color: var(--ink);
}

.vault-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.vault-file-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: var(--surface);
  transition: box-shadow .15s ease, transform .15s ease;
}

.vault-file-card:hover { box-shadow: 0 14px 34px rgba(15,23,42,.08); transform: translateY(-1px); }

.vault-file-select { position: absolute; top: 10px; left: 10px; z-index: 2; }
.vault-file-select input { width: 18px; height: 18px; accent-color: var(--dormer-blue); cursor: pointer; }

.vault-file-thumb {
  display: block;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.vault-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.vault-file-thumb--pdf,
.vault-file-thumb--other {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
}

.vault-file-thumb--pdf .lucide,
.vault-file-thumb--other .lucide { width: 32px; height: 32px; }

.vault-file-thumb--pdf span,
.vault-file-thumb--other span { font-size: 11px; font-weight: 800; text-transform: uppercase; }

.vault-file-meta { display: grid; gap: 2px; }

.vault-file-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-file-guest {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.vault-file-sub { font-size: 11px; color: var(--muted); }
.vault-file-meta time { font-size: 11px; color: var(--muted); }

.vault-file-actions { display: flex; gap: 10px; }
.vault-file-actions .document-link { font-size: 12px; }

/* Lightbox */
.vault-lightbox {
  width: min(1100px, calc(100% - 40px));
  background: rgba(9,11,63,.92);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-lightbox[open] { display: flex; }

.vault-lightbox img {
  max-width: calc(100% - 120px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
}

.vault-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,.15);
  color: #fff;
}

.vault-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: #fff;
}

.vault-lightbox-prev { left: 16px; }
.vault-lightbox-next { right: 16px; }

@media (max-width: 720px) {
  .vault-toolbar { flex-direction: column; align-items: flex-start; }
  .vault-selection-bar { flex-direction: column; align-items: flex-start; }
}
