.pilot-notice { margin: 12px; padding: 16px 20px; color: #68420d; background: #fff6df; border: 1px solid #dcba71; border-radius: 12px; font: 14px/1.5 system-ui, sans-serif; }
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.human-check-notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-soft); background: #f8f8f4; font-size: .88rem; }
.customer-duplicate-warning { padding: 10px 12px; border: 1px solid #e6c879; border-radius: 10px; color: #68420d; background: #fff8e6; }
.customer-workspace .customer-link { padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.customer-workspace .customer-link:hover { color: var(--brand); text-decoration: underline; }
.customer-booking-detail-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9f6; }
.customer-booking-detail-card h3 { margin: 0 0 8px; font-size: 1rem; }
.customer-booking-detail-card ul { padding-left: 20px; }
.customer-booking-detail-card li { margin: 5px 0; }
.customer-invoice-links { list-style: none; padding-left: 0 !important; }
.customer-search { grid-template-columns: minmax(260px, 1fr) auto; align-items: end; margin-bottom: 20px; }
.customer-data { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(0, 1.2fr); gap: 12px 18px; margin: 18px 0 0; }
.customer-data dt { color: var(--muted); font-size: .9rem; }
.customer-data dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.customer-archive { display: flex; justify-content: flex-end; margin: -8px 0 24px; }
.customer-form [hidden] { display: none !important; }
.customer-dialog-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(16, 28, 41, .58); backdrop-filter: blur(3px); }
.booking-dialog-backdrop { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 18px; background: rgba(12, 26, 39, .62); backdrop-filter: blur(5px); }
.booking-dialog { display: flex; flex-direction: column; width: min(1120px, 100%); max-height: min(94dvh, 1000px); overflow: hidden; border: 1px solid #dfe5e9; border-radius: 20px; background: #f7f9fa; box-shadow: 0 28px 90px rgba(10, 24, 38, .34); }
.booking-dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 26px; border-bottom: 1px solid #e1e7ec; background: rgba(255,255,255,.98); }
.booking-dialog-header .eyebrow { margin: 0 0 5px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.booking-dialog-header h2 { margin: 0 0 5px; font-size: 22px; }
.booking-dialog-header p:last-child { margin: 0; color: #667085; font-size: 13px; }
.booking-dialog-close { flex: 0 0 auto; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #dfe5e9; border-radius: 50%; background: #fff; color: #344054; font-size: 24px; cursor: pointer; }
.booking-dialog-close:hover { background: #edf5f3; border-color: #a9cec7; }
.booking-dialog-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 26px 28px; }
.booking-dialog-content > .page-header { display: none; }
.booking-dialog-content .booking-wizard-steps { margin-top: 0; }
.booking-dialog-content .booking-wizard-form { margin-bottom: 0; }
.booking-dialog-content .booking-wizard-actions { position: sticky; bottom: -28px; z-index: 4; margin: 18px -26px -28px; padding: 14px 26px; border-top: 1px solid #e1e7ec; background: rgba(255,255,255,.98); }
.booking-dialog-content .booking-unit-card { background: #fff; }
@media(max-width:640px){.booking-dialog-backdrop{padding:0}.booking-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.booking-dialog-header{padding:16px}.booking-dialog-content{padding:16px 16px 24px}.booking-dialog-content .booking-wizard-actions{bottom:-24px;margin:18px -16px -24px;padding:12px 16px}.booking-dialog-content .booking-unit-fields,.booking-dialog-content .room-guest-row{grid-template-columns:1fr}}
.customer-dialog { display: flex; flex-direction: column; width: min(920px, 100%); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #dfe5e9; border-radius: 20px; background: #f7f9fa; box-shadow: 0 28px 90px rgba(10, 24, 38, .28); }
.customer-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid #e1e7ec; background: rgba(255,255,255,.97); }
.customer-dialog-header h2 { margin: 0 0 5px; font-size: 22px; }
.customer-dialog-header p { margin: 0; color: #667085; font-size: 13px; }
.customer-dialog-header .eyebrow { margin-bottom: 5px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.customer-dialog .customer-dialog-form, .customer-dialog .customer-form { margin: 0; padding: 22px 26px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.customer-dialog .form-actions { position: sticky; bottom: -22px; z-index: 1; margin: 8px -26px -22px; padding: 14px 26px; border-top: 1px solid #e1e7ec; background: rgba(255,255,255,.97); }
.room-inventory-dialog { width: min(820px,100%); }
.property-unit-dialog { width: min(760px,100%); }
.property-unit-dialog > form { padding: 22px 26px; margin: 0; }
.property-unit-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 16px; }
.property-unit-card { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid #dfe5e9; border-radius: 16px; background: #fff; }
.property-unit-card.is-selected { border-color: #0d8079; box-shadow: 0 0 0 1px #0d8079; }
.property-unit-card h3 { margin: 12px 0 8px; }
.property-unit-card p { margin: 8px 0; }
.property-unit-card .button-row { flex-wrap: wrap; margin-top: 12px; }
.property-initial-unit { min-width: 0; border: 1px solid #dfe5e9; border-radius: 14px; padding: 18px; background: #f8faf9; }
.property-initial-unit legend { padding: 0 8px; font-weight: 700; }
.room-inventory-dialog .room-inventory-form { margin: 0; padding: 22px 26px; }
.room-inventory-dialog .modal-header h2 { margin: 0 0 5px; font-size: 22px; }
.room-inventory-dialog .room-bed-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(240px,1.4fr) auto; align-items: end; gap: 12px; padding: 12px; margin: 8px 0; border: 1px solid #dfe5e9; border-radius: 12px; background: #fff; }
.room-inventory-dialog .room-bed-row .field { margin: 0; }
.room-inventory-dialog .room-bed-split { min-height: 44px; }
.room-inventory-dialog .room-bed-split.is-disabled { opacity: .55; }
.room-inventory-dialog .room-capacity-output { display: block; min-height: 42px; padding: 10px 12px; border: 1px solid #dfe5e9; border-radius: 10px; background: #f4f7f8; font-weight: 700; }
@media(max-width:640px){.room-inventory-dialog .room-inventory-form{padding:16px}.room-inventory-dialog .room-bed-row{grid-template-columns:1fr}.room-inventory-dialog .form-actions{position:sticky;bottom:-16px;margin:8px -16px -16px;padding:12px 16px}}
@media(max-width:600px){.customer-dialog-backdrop{padding:8px}.customer-dialog{max-height:calc(100dvh - 16px);border-radius:15px}.customer-dialog-header{padding:17px}.customer-dialog .customer-form{padding:17px}.customer-dialog .form-actions{bottom:-17px;margin:8px -17px -17px;padding:12px 17px}}
.request-filters { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr) minmax(160px, .5fr) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.request-new td { background: #f1f8f4; }
.request-detail { margin-top: 18px; }
.request-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.requests-workspace a { color: var(--brand); }
@media(max-width:760px){.request-filters{grid-template-columns:1fr}.request-detail-head{align-items:flex-start}}
@media(max-width:680px){.customer-search{grid-template-columns:1fr}.customer-data{grid-template-columns:1fr;gap:5px}.customer-data dd{margin-bottom:10px}}
#turnstile-widget { min-height: 65px; }
.pilot-notice p { margin: 6px 0 0; }
:root {
  color-scheme: light;
  --ink: #12201f;
  --ink-soft: #53605e;
  --forest: #173f3a;
  --forest-deep: #0d2d2a;
  --mint: #d9ebe4;
  --gold: #d6a84b;
  --paper: #fffdf8;
  --canvas: #f5f3ed;
  --line: #dcded8;
  --danger: #a13a32;
  --success: #28745e;
  --warning: #9a6b1d;
  --shadow: 0 18px 50px rgba(20, 48, 44, 0.10);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 168, 75, 0.13), transparent 30rem),
    var(--canvas);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--forest-deep);
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.app-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--ink-soft);
}

.loading-mark, .brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 15px;
  font: 700 24px/1 Georgia, serif;
  box-shadow: 0 10px 24px rgba(23, 63, 58, .24);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px 20px;
  color: #f8f5ed;
  background: var(--forest-deep);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand small { display: block; margin-top: 3px; color: #a9c5bd; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 7px; }
.nav-label { margin: 0 10px 5px; color: #85a69d; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  color: #cfddd8;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}
.nav-button:hover, .nav-button:focus-visible { color: white; background: rgba(255,255,255,.08); outline: none; }
.nav-button.active { color: white; background: rgba(217, 235, 228, .14); }
.nav-button[disabled] { opacity: .48; cursor: default; }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: #e6aa56; color: #173f3a; font-size: 11px; font-weight: 800; line-height: 1; }
.nav-icon { width: 21px; text-align: center; }
.sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.user-chip { padding: 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #cfddd8; font-size: 13px; }

.main { min-width: 0; padding: 34px clamp(20px, 4vw, 58px) 60px; }
.public-intake-main { min-height: 100vh; display: grid; align-content: start; justify-content: center; padding: clamp(16px, 4vw, 56px); background: var(--surface-soft); }
.public-intake-card { width: min(100%, 780px); }
.mobile-topbar { display: none; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 7px; color: var(--success); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font: 700 clamp(30px, 4vw, 46px)/1.08 Georgia, serif; letter-spacing: -.025em; }
h2 { margin-bottom: 8px; font: 700 clamp(22px, 3vw, 31px)/1.16 Georgia, serif; }
h3 { margin-bottom: 7px; font-size: 17px; }
.lede, .muted { color: var(--ink-soft); }
.lede { max-width: 760px; margin-bottom: 0; line-height: 1.55; }
.small { font-size: 13px; }

.card {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(210, 214, 206, .82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-header p { margin-bottom: 0; }
.card-flat { box-shadow: none; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stat { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-value { font: 700 36px/1 Georgia, serif; }
.stat-label { color: var(--ink-soft); font-size: 13px; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  color: white;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 12px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { background: var(--forest-deep); box-shadow: 0 9px 22px rgba(23,63,58,.17); transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(214,168,75,.36); outline-offset: 2px; }
.button.secondary { color: var(--forest); background: transparent; }
.button.secondary:hover { background: var(--mint); box-shadow: none; }
.button.ghost { color: inherit; background: transparent; border-color: transparent; }
.button.danger { color: var(--danger); background: transparent; border-color: #e5bab5; }
.button:disabled { opacity: .58; cursor: wait; transform: none; box-shadow: none; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; align-content: start; gap: 7px; }
.form-grid [hidden] { display: none !important; }
.field.full { grid-column: 1 / -1; }
label, .field-label { font-size: 13px; font-weight: 720; }
input, select, textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd4cc;
  border-radius: 11px;
}
.password-control { position: relative; min-width: 0; }
.password-control input { padding-right: 52px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  padding: 0;
  color: #586a65;
  background: transparent;
  border: 0;
  border-radius: 9px;
  transform: translateY(-50%);
  cursor: pointer;
}
.password-toggle:hover { color: var(--forest-deep); background: #eef3ef; }
.password-toggle:focus-visible { outline: 3px solid rgba(214,168,75,.55); outline-offset: 1px; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-off { display: none; }
.password-toggle[aria-pressed="true"] .eye-on { display: none; }
.password-toggle[aria-pressed="true"] .eye-off { display: block; }
.housekeeping-task-steps { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 24px; }
.housekeeping-task-steps li { padding-left: 4px; }
.housekeeping-address-group { display: grid; gap: 12px; margin: 16px 0; padding: 16px; border: 1px solid var(--border, #dbe3ec); border-radius: 16px; background: var(--surface-subtle, #f8fafc); }
.housekeeping-address-group > .card-header { margin: 0; }
.housekeeping-address-group > .card { margin: 0; }
.housekeeping-scanner video { display: block; width: min(100%, 520px); max-height: 60vh; margin: 12px auto; border-radius: 12px; background: #111827; object-fit: cover; }
.housekeeping-qr-preview { display: grid; justify-items: center; gap: 8px; margin-top: 20px; text-align: center; }
.housekeeping-qr-preview > div { width: min(220px, 70vw); padding: 12px; border: 1px solid var(--line, #d7dee8); border-radius: 12px; background: #fff; }
.housekeeping-qr-preview svg { display: block; width: 100%; height: auto; }
.platform-modules { margin-top: 22px; }
.module-admin-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.module-admin-card h3 { margin: 0 0 5px; }
.module-admin-card p { margin: 0 0 8px; }
.module-admin-card small { color: var(--muted); }
textarea { min-height: 92px; resize: vertical; }
.help { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 7px; }

.auth-layout, .installer-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr);
}
.auth-story, .installer-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 6vw, 76px);
  color: #f7f3e9;
  background: var(--forest-deep);
}
.auth-story::after, .installer-aside::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(214,168,75,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(214,168,75,.05), 0 0 0 105px rgba(214,168,75,.035);
}
.story-copy { position: relative; z-index: 1; max-width: 510px; }
.story-copy h1 { margin-top: 50px; color: white; font-size: clamp(38px, 6vw, 68px); }
.story-copy p { color: #bad0c9; font-size: 17px; line-height: 1.65; }
.story-list { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.story-list li { display: flex; gap: 10px; color: #dce8e4; }
.story-list li::before { content: "✓"; color: var(--gold); font-weight: 900; }
.auth-main, .installer-main { display: grid; align-content: center; padding: clamp(24px, 6vw, 76px); }
.auth-box { width: min(100%, 560px); margin: auto; }
.auth-tabs { display: flex; gap: 7px; margin: 25px 0; padding: 5px; background: #e8ebe5; border-radius: 13px; }
.auth-tab { flex: 1; padding: 10px; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; }
.auth-tab.active { background: white; box-shadow: 0 3px 12px rgba(18,32,31,.09); }

.stepper { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: 50px; }
.step { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 11px; padding: 9px 0; color: #8faca3; }
.step-dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #527169; border-radius: 50%; font-size: 12px; font-weight: 800; }
.step.active { color: white; }
.step.active .step-dot { color: var(--forest-deep); background: var(--gold); border-color: var(--gold); }
.step.done { color: #c8d9d4; }
.step.done .step-dot { color: white; background: var(--success); border-color: var(--success); }
.setup-token-note { padding: 14px; color: #5a4930; background: #fff5dc; border: 1px solid #efd69a; border-radius: 12px; font-size: 13px; line-height: 1.5; }

.check-list, .item-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.check-item, .item-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; background: #f3f4ef; border: 1px solid #e1e3dd; border-radius: 12px; }
.check-copy { min-width: 0; }
.check-copy strong, .check-copy small { display: block; }
.check-copy small { margin-top: 3px; color: var(--ink-soft); }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge.pass, .badge.active { color: #155745; background: #d8eee5; }
.badge.warn, .badge.pending { color: #755015; background: #f7e7c1; }
.badge.fail, .badge.suspended { color: #8d302a; background: #f3d9d6; }
.badge.neutral { color: #4f5d59; background: #e6e9e5; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.inventory-unassigned-beds-heading td { background: var(--surface-subtle, #f1f5f5); color: var(--ink-soft, #53616a); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; min-width: 680px; background: white; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e8e9e4; text-align: left; vertical-align: top; }
th { color: var(--ink-soft); background: #f5f6f2; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.empty { padding: 38px 20px; text-align: center; color: var(--ink-soft); border: 1px dashed #c8cec6; border-radius: 15px; }
.property-card { position: relative; display: grid; gap: 17px; cursor: pointer; }
.property-card:hover { border-color: #aac8bf; }
.property-kind { color: var(--success); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.property-meta { color: var(--ink-soft); font-size: 13px; }

.module-grid { display: grid; gap: 10px; max-height: 330px; overflow: auto; padding-right: 4px; }
.module-option { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.module-option input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.module-option strong, .module-option small { display: block; }
.module-option small { margin-top: 4px; color: var(--ink-soft); line-height: 1.4; }

.toast-region { position: fixed; inset: max(18px, env(safe-area-inset-top)) 18px auto auto; z-index: 2147483647; display: grid; gap: 9px; width: min(460px, calc(100vw - 36px)); max-height: min(45dvh,400px); overflow: auto; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
.toast-region[popover]:not(:popover-open),.toast-region:empty { display: none; }
.toast-region::backdrop { background: transparent; pointer-events: none; }
.toast { display:flex;align-items:flex-start;gap:12px;padding: 15px 16px; color: white; background: var(--forest-deep); border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,.2); animation: toast-in .2s ease-out; }
.toast>div { min-width:0;flex:1;overflow-wrap:anywhere; }
.toast strong { display:block;font-size:15px; }
.toast p { margin:6px 0 0;font-size:14px;line-height:1.5;color:inherit; }
.toast.error { background: #fff3ef;color:#76251d;border:2px solid #b54232; }
.toast-close { flex:0 0 36px;min-width:36px;min-height:36px;padding:0;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:24px/1 system-ui;cursor:pointer; }
.toast-close:focus-visible { outline:3px solid currentColor;outline-offset:2px; }
@media(max-width:600px){.toast-region{inset:max(10px,env(safe-area-inset-top)) 10px auto auto;width:calc(100vw - 20px);max-height:40dvh}.toast{padding:12px}.toast-close{min-width:40px;min-height:40px;flex-basis:40px}}
@media print{.toast-region{display:none!important}}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.busy-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(245,243,237,.45); cursor: progress; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .auth-layout, .installer-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 310px; }
  .installer-aside { min-height: auto; padding-bottom: 30px; }
  .story-copy h1 { margin-top: 28px; }
  .stepper { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
  .step { grid-template-columns: 28px 1fr; font-size: 12px; }
  .step-dot { width: 27px; height: 27px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: white; background: rgba(13,45,42,.97); backdrop-filter: blur(12px); }
  .mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding: 9px 18px; color: white; background: var(--forest-deep); scrollbar-width: none; }
  .mobile-nav .nav-button { flex: 0 0 auto; width: auto; padding: 9px 12px; }
}

@media (max-width: 700px) {
  .main { padding: 23px 15px 50px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .grid.two, .grid.three, .form-grid { grid-template-columns: 1fr; }
  .field.full, .form-actions { grid-column: auto; }
  .auth-main, .installer-main { padding: 28px 16px 45px; }
  .auth-story, .installer-aside { padding: 26px 20px; }
  .auth-story { min-height: 260px; }
  .story-copy h1 { font-size: 38px; }
  .story-list { display: none; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 19px; border-radius: 16px; }
  .card-header { flex-direction: column; }
  .button { width: 100%; }
  .button-row .button { width: auto; flex: 1; }
  .auth-tabs { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.server-state { padding: 10px 14px; border-radius: 10px; background: #e0f4ed; color: #14594b; font-size: 14px; }
.server-workspace { border:0; margin:0; padding:0; min-width:0; }
.server-unit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #dfe7e3; }
.server-unit > label:first-child { display: flex; align-items: center; gap: 12px; }
.server-unit input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; }
.server-unit small { display: block; color: #59716a; }
.server-unit input[type=number] { width: 100%; box-sizing: border-box; }
.server-customer-results { display: grid; gap: 8px; margin-top: 10px; }
.server-booking-table td { vertical-align: top; }
.server-booking-table .button { margin: 3px 0; }
.server-bookings details { margin-top: 16px; }
@media(max-width:700px) { .server-unit { grid-template-columns: 1fr; } .server-booking-table table,.server-booking-table tbody,.server-booking-table tr,.server-booking-table td { display:block; width:100%; box-sizing:border-box; } .server-booking-table thead { display:none; } .server-booking-table tr { border-bottom:2px solid #dfe7e3; padding:12px 0; } .server-booking-table td::before { content:attr(data-label); display:block; font-size:12px; color:#59716a; } }
/* Personal employee access forms share the responsive server workspace. */
.employee-choice {display:flex;gap:.75rem;align-items:center;padding:.6rem 0;}
.employee-choice input[type=checkbox] {width:1.2rem;height:1.2rem;flex-shrink:0;}
.employee-permissions {display:grid;gap:10px;}
.employee-permission-group {border:1px solid var(--line);border-radius:12px;padding:12px 16px;}
.employee-permission-group h3 {font-size:14px;margin:2px 0 8px;}
.employee-row {display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem 0;border-bottom:1px solid #dce4e8;overflow-wrap:anywhere;}
.employee-row p {margin:.35rem 0;}
@media(max-width:600px){.employee-row{align-items:flex-start;flex-direction:column;}.employee-list .button{width:100%;}}
.invoice-totals { display:grid; grid-template-columns:minmax(120px,1fr) auto; gap:8px 24px; max-width:420px; margin:24px 0 0 auto; }
.invoice-totals dt,.invoice-totals dd { margin:0; }
.invoice-totals dd { text-align:right; }
.invoice-paper { color:#172b28; }
.invoice-line-include { display:flex; align-items:center; gap:8px; min-width:180px; }
.invoice-line-input { width:112px; min-width:88px; }
.invoice-preview-options { margin-top:20px; }
.dashboard-month { display:grid; gap:6px; color:var(--muted); font-size:13px; }
.dashboard-month input { border:1px solid var(--line); border-radius:10px; padding:10px 12px; color:var(--ink); background:white; font:inherit; }
.dashboard-main { align-items:start; margin-top:18px; }
.dashboard-stats { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.dashboard-total { color:var(--forest); font-size:22px; }
.dashboard-chart-title { margin:18px 0 0; font-size:14px; }
.dashboard-chart { display:grid; grid-template-columns:repeat(31,minmax(18px,1fr)); align-items:end; gap:5px; min-height:150px; padding-top:14px; overflow-x:auto; }
.dashboard-day { display:grid; justify-items:center; align-content:end; gap:6px; min-width:18px; color:var(--muted); font-size:10px; }
.dashboard-day i { display:flex; align-items:end; width:100%; height:92px; overflow:hidden; border-radius:5px; background:#edf2ef; }
.dashboard-day b { display:block; width:100%; min-height:0; border-radius:5px; background:linear-gradient(180deg,#8dc9b0,#21765e); }
.dashboard-day b.money-bar { background:linear-gradient(180deg,#e7c777,#a7781e); }
.dashboard-day b.breakfast-bar { background:linear-gradient(180deg,#ffc98a,#d76e22); }
.dashboard-day b.level-1 { height:10%; }.dashboard-day b.level-2 { height:20%; }.dashboard-day b.level-3 { height:30%; }.dashboard-day b.level-4 { height:40%; }.dashboard-day b.level-5 { height:50%; }.dashboard-day b.level-6 { height:60%; }.dashboard-day b.level-7 { height:70%; }.dashboard-day b.level-8 { height:80%; }.dashboard-day b.level-9 { height:90%; }.dashboard-day b.level-10 { height:100%; }
.dashboard-money-chart { min-height:115px; }
.dashboard-money-chart .dashboard-day i { height:62px; }
.dashboard-day strong { color:var(--ink); font-size:10px; }
.dashboard-bookings { display:grid; gap:7px; margin:8px 0 16px; }
.dashboard-booking { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:12px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:white; text-align:left; cursor:pointer; }
.dashboard-booking:hover { border-color:#82b59f; background:#f6faf8; }
.dashboard-booking small { display:block; margin-top:4px; color:var(--muted); }
.dashboard-setup { margin-top:18px; }
.housekeeping-work-report { margin:18px 0; }
.housekeeping-work-report .card-header { align-items:end; }
.housekeeping-work-report .card-header h2 { margin-bottom:4px; }
.housekeeping-report-calendar { overflow-x:auto; }
.housekeeping-report-weekdays,.housekeeping-report-grid { display:grid; grid-template-columns:repeat(7,minmax(72px,1fr)); gap:5px; }
.housekeeping-report-weekdays { margin:12px 0 5px; text-align:center; color:var(--muted); font-size:12px; }
.housekeeping-report-cell { min-height:68px; padding:7px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.housekeeping-report-cell summary { display:grid; gap:4px; cursor:pointer; list-style:none; }
.housekeeping-report-cell summary::-webkit-details-marker { display:none; }
.housekeeping-report-cell summary span { font-weight:700; }
.housekeeping-report-cell summary strong { color:var(--forest); font-size:12px; }
.housekeeping-report-cell summary small { color:var(--muted); }
.housekeeping-report-cell[open] { grid-column:span 7; }
.housekeeping-report-cell.empty-day { min-height:40px; color:#a3aba7; background:#f8faf9; }
.housekeeping-report-details h4 { margin:12px 0 4px; }
.housekeeping-report-shift { margin:12px 0 4px 10px; padding:12px; border-left:3px solid var(--forest); background:#f7faf8; border-radius:0 10px 10px 0; }
.housekeeping-report-shift p { margin:0 0 10px; }
.housekeeping-report-task { padding:8px 0; border-top:1px solid var(--line); }
.housekeeping-report-task small { color:var(--muted); margin-left:8px; }
.housekeeping-report-task ol { margin:6px 0 0 22px; color:var(--muted); }
@media(max-width:700px){.dashboard-chart{grid-template-columns:repeat(31,22px);}.dashboard-day i{height:70px;}}
@media(max-width:540px){.housekeeping-report-weekdays,.housekeeping-report-grid{grid-template-columns:repeat(7,minmax(42px,1fr));gap:3px}.housekeeping-report-cell{min-height:56px;padding:5px}.housekeeping-report-cell summary strong{font-size:10px}}
.invoice-ledger { margin-top: 18px; }
.invoice-ledger h3 { margin-top: 22px; }
.invoice-ledger-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.invoice-ledger-form h3 { margin: 0; }
.invoice-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.invoice-pagination .field { min-width:150px; margin:0; }
.invoice-pagination .button-row { margin-left:auto; }
.booking-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.booking-pagination .field { min-width:150px; margin:0; }
.booking-pagination .button-row { margin-left:auto; }
.customer-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.customer-pagination .field { min-width:150px; margin:0; }
.customer-pagination .button-row { margin-left:auto; }
.request-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.request-pagination .field { min-width:150px; margin:0; }
.request-pagination .button-row { margin-left:auto; }
.employee-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.employee-pagination .field { min-width:150px; margin:0; }
.employee-pagination .button-row { margin-left:auto; }
.resource-type-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.resource-type-pagination .field { min-width:150px; margin:0; }
.resource-type-pagination .button-row { margin-left:auto; }
.portfolio-pagination,.resource-pagination { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:18px; }
.portfolio-pagination .field,.resource-pagination .field { min-width:150px; margin:0; }
.portfolio-pagination .button-row,.resource-pagination .button-row { margin-left:auto; }
.invoice-footer { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:34px; padding-top:18px; border-top:1px solid #cfd8d4; font-size:.88rem; line-height:1.6; }
@media (max-width:640px) { .invoice-pagination,.booking-pagination,.customer-pagination,.request-pagination,.employee-pagination,.resource-type-pagination,.portfolio-pagination,.resource-pagination { align-items:stretch; } .invoice-pagination .button-row,.booking-pagination .button-row,.customer-pagination .button-row,.request-pagination .button-row,.employee-pagination .button-row,.resource-type-pagination .button-row,.portfolio-pagination .button-row,.resource-pagination .button-row { width:100%; margin-left:0; } .invoice-pagination .button-row .button,.booking-pagination .button-row .button,.customer-pagination .button-row .button,.request-pagination .button-row .button,.employee-pagination .button-row .button,.resource-type-pagination .button-row .button,.portfolio-pagination .button-row .button,.resource-pagination .button-row .button { flex:1; } }
@media print {
  body * { visibility:hidden !important; }
  .invoice-paper,.invoice-paper *, .analytics-print-area,.analytics-print-area * { visibility:visible !important; }
  .invoice-paper,.analytics-print-area { position:absolute; inset:0 auto auto 0; width:100%; margin:0; border:0; box-shadow:none; }
  .analytics-print-area { padding:0; background:#fff; color:#111; font-size:9pt; }
  .analytics-print-area .analytics-filters,.analytics-print-area .button-row,.analytics-print-area [data-action],.analytics-print-area .muted.small { display:none !important; }
  .analytics-print-area .card { break-inside:avoid; box-shadow:none; border-color:#bbb; }
  .analytics-print-area h1,.analytics-print-area h2,.analytics-print-area h3 { color:#111; break-after:avoid; }
  .analytics-print-area .table-wrap { overflow:visible; }
  .analytics-print-area table { width:100%; font-size:8pt; }
  .analytics-print-area thead { display:table-header-group; }
  .analytics-print-area tr { break-inside:avoid; }
}
.property-logo-preview{display:block;max-width:240px;max-height:160px;object-fit:contain;margin:1rem 0;border:1px solid var(--line);border-radius:12px;background:#fff;padding:.5rem}
.housekeeping-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:12px 0}.housekeeping-photo-grid figure{margin:0;padding:8px;background:#f7f9fb;border:1px solid #dce4ed;border-radius:12px}.housekeeping-photo-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.housekeeping-photo-grid figcaption{padding:6px 2px;color:#526171;font-size:.85rem}
fieldset.integration-property-list,
fieldset.integration-scope-list { min-width: 0; }
.integration-property-list,
.integration-scope-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem 1rem; }
.integration-property-list label,
.integration-scope-list label { display: flex; align-items: flex-start; gap: .55rem; }
.integration-token-reveal { border: 1px solid var(--accent, #0d8077); background: color-mix(in srgb, var(--accent, #0d8077) 6%, white); }
.integration-token-value { display: block; margin: 1rem 0; padding: 1rem; border-radius: .75rem; overflow-wrap: anywhere; user-select: all; background: #fff; font-size: .95rem; }

.inventory-bed-summary { display: block; margin-top: 6px; line-height: 1.45; }

/* Property-scoped TTLock setup. */
.smart-access-workspace { display:grid; gap:1.25rem; }
.ttlock-object-summary { display:grid; gap:1rem; }
.ttlock-steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.ttlock-steps li { display:grid; gap:.35rem; padding:1rem; border:1px solid #dce5e8; border-radius:12px; background:#f8fafb; }
.ttlock-steps li.done { background:#edf8f4; border-color:#acd6c5; }
.ttlock-steps span,.ttlock-device small { color:#52677a; font-size:.85rem; }
.ttlock-door-grid,.ttlock-device-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:1rem; }
.ttlock-door,.ttlock-device { padding:1rem; border:1px solid #dce5e8; border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.ttlock-door h3 { margin:0; }
.ttlock-device { display:grid; gap:.4rem; }
.ttlock-device-details { margin-top:1rem; }
.ttlock-device-details summary { cursor:pointer; font-weight:600; padding:.6rem 0; }
.ttlock-resource-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:.6rem; }
.ttlock-resource-list[hidden] { display:none; }
.ttlock-mapping-editor { border:2px solid #16867b; }
@media(max-width:600px) { .ttlock-steps { grid-template-columns:1fr; } .smart-access-workspace .card-header { flex-wrap:wrap; gap:.6rem; } }

.booking-checkout-all{display:flex;align-items:center;gap:12px;padding:16px;background:#eef6f2;border:1px solid #c2ded4;border-radius:12px;font-weight:700}.booking-checkout-rooms{display:grid;gap:10px;margin:16px 0}.booking-checkout-row{display:flex;align-items:center;gap:13px;border:1px solid #dce7e8;border-radius:12px;padding:15px}.booking-checkout-row>span:first-of-type{display:grid;gap:5px;flex:1;min-width:0}.booking-checkout-row small{color:#607780}.booking-checkout-status{font-size:12px;background:#e6f4ed;color:#23634a;border-radius:8px;padding:5px 8px}.booking-checkout-dialog input[type=checkbox]{width:20px;height:20px;accent-color:#087d76;flex-shrink:0}

.booking-stay-mode{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}.booking-stay-mode .button[aria-pressed=true]{background:#087d76;color:white;border-color:#087d76}
.smart-health-panel { margin: 1.25rem 0; padding: 1rem; border: 1px solid #dbe4e9; border-radius: 14px; background: #f8fafb; }
.smart-health-warnings { display: grid; gap: .75rem; }
.smart-health-warnings article { display: grid; gap: .55rem; padding: 1rem; background: #fff9e9; border: 1px solid #ead6a1; border-radius: 12px; }
.smart-health-warnings article p { margin: 0; }
.smart-health-warnings article button { justify-self: start; margin-top: .35rem; }
.smart-health-settings { margin-top: 1rem; }
.smart-health-settings summary { cursor: pointer; font-weight: 650; padding: .5rem 0; }
.smart-health-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.smart-health-fields label { display: grid; gap: .5rem; }
@media (max-width: 600px) { .smart-health-fields { grid-template-columns: 1fr; } .smart-health-warnings article button { width: 100%; } }

.nav-badge.nav-badge-warning{background:#ffcf5a;color:#493300;min-width:22px;height:22px;padding:0 6px;font-size:15px;border:1px solid #e7b640;}
