/* Ruang kost: warm hospitality outside, a quiet navy workspace inside. */
:root {
  color-scheme: light;
  --canvas: #f5f1e9;
  --surface: #ffffff;
  --surface-soft: #eee8df;
  --surface-hover: #e8dfd4;
  --sidebar: #17243b;
  --ink: #17243b;
  --ink-soft: #3e485b;
  --muted: #62616a;
  --accent: #a34b32;
  --accent-hover: #843923;
  --on-accent: #ffffff;
  --accent-soft: #f5e9e2;
  --navy: #17243b;
  --on-navy: #f9f5ee;
  --success: #344c6a;
  --success-soft: #e9eef4;
  --line: #ddd7ce;
  --line-strong: #bdb5aa;
  --input-border: #8b8590;
  --amber: #865319;
  --amber-soft: #fbefdc;
  --red: #a03a31;
  --red-soft: #faeae6;
  --blue: #315777;
  --blue-soft: #e9f0f6;
  --focus: #974426;
  --radius: 12px;
  --radius-small: 8px;
  --preview-height: 38px;
  --sidebar-width: 250px;
  --font: "Segoe UI", Arial, sans-serif;
  --editorial: Georgia, "Times New Roman", serif;
  --shadow-modal: 0 24px 90px rgb(23 36 59 / 19%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #151b27;
  --surface: #1d2635;
  --surface-soft: #283141;
  --surface-hover: #343e4e;
  --sidebar: #111b2d;
  --ink: #f6f1e8;
  --ink-soft: #dfdce0;
  --muted: #b9b7bd;
  --accent: #f0b196;
  --accent-hover: #ffd0ba;
  --on-accent: #3f2017;
  --accent-soft: #412e2a;
  --navy: #111b2d;
  --success: #c3d1e4;
  --success-soft: #2a374a;
  --line: #3c4452;
  --line-strong: #687080;
  --input-border: #9296a1;
  --amber: #efc18b;
  --amber-soft: #473725;
  --red: #f4b0a7;
  --red-soft: #4a302c;
  --blue: #b3d1ea;
  --blue-soft: #2c4253;
  --focus: #ffd0ba;
  --shadow-modal: 0 24px 90px rgb(0 0 0 / 35%);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, summary, select, input[type="radio"], input[type="checkbox"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, select, textarea, summary, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--focus); }
main:focus { outline: none; }
button { transition: background-color 120ms ease, border-color 120ms ease; }
button:active:not(:disabled) { transform: translateY(1px); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.9px; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 650; letter-spacing: -.35px; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.15px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 12px 18px; background: var(--accent); color: var(--on-accent); border-radius: 5px; transform: translateY(calc(-100% - 24px)); clip-path: inset(100%); }
.skip-link:focus-visible { transform: none; clip-path: none; }
.muted { color: var(--muted); }
.text-small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.money, .metric, .kpi-value, .room-number, .offer-price, .ledger-row strong, .bill-highlight strong { font-variant-numeric: tabular-nums; }
.money { font-weight: 600; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: var(--radius-small); text-decoration: none; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.4; font-weight: 600; text-align: center; }
.button svg { width: 18px; height: 18px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--input-border); color: var(--ink); }
.button.secondary:hover { background: var(--surface-hover); border-color: var(--accent); }
.button.ghost { color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); }
.button.danger { color: var(--red); border-color: var(--red); }
.button.danger:hover { background: var(--red-soft); }
.button.small { font-size: 13px; min-height: 44px; padding: 10px 13px; }
.button.wide { width: 100%; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--accent-hover); }
.print-only { display: none; }

/* Draft disclosure is quiet; access to each portal lives in its login flow. */
.draft-strip { position: sticky; top: 0; z-index: 70; min-height: var(--preview-height); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 28px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
.draft-strip strong { color: var(--ink-soft); font-weight: 600; }

/* ACCESS: two explicit portals, with a hospitable story beside a practical form. */
.access-header { max-width: 1280px; min-height: 100px; margin: 0 auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.access-header .inline { justify-content: flex-end; }
.access-layout { max-width: 1120px; margin: 0 auto; padding: 64px 40px 88px; }
.access-intro { max-width: 690px; }
.access-intro h1 { margin-top: 16px; font: 400 48px/1.15 var(--editorial); letter-spacing: -1.3px; }
.access-intro > p:last-child { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.access-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.access-card { min-width: 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.access-number { display: block; color: var(--accent); font-size: 13px; margin-bottom: 25px; font-variant-numeric: tabular-nums; }
.access-card h2 { font-size: 23px; font-weight: 600; }
.access-card p { max-width: 330px; margin-top: 12px; color: var(--muted); line-height: 1.8; }
.access-card > .button { margin-top: 30px; }
.access-layout > .auth-simulation { margin-top: 26px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1280px; min-height: calc(100dvh - 138px); margin: 0 auto; padding: 44px 40px 64px; gap: 20px; }
.auth-story { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-width: 0; padding: 52px 44px 40px; border: 1px solid #17243b; border-radius: 20px; background: var(--navy); color: var(--on-navy); }
.auth-copy > p:last-child { max-width: 355px; margin-top: 25px; color: #d4d5dc; font-size: 15px; line-height: 1.8; }
.auth-kicker { display: block; font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--accent); }
.auth-story .auth-kicker { color: #eebaa4; }
.auth-story-title { margin-top: 26px; font: 400 clamp(32px, 3.2vw, 42px)/1.18 var(--editorial); letter-spacing: -.8px; }
.auth-notes { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 26px; border-top: 1px solid #5c667c; color: #d4d5dc; font-size: 13px; line-height: 1.7; }
.auth-main { align-self: center; width: 100%; max-width: 550px; min-width: 0; padding: 12px 44px; }
.auth-tabs { display: flex; gap: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.auth-tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 0 14px; color: var(--muted); border-bottom: 3px solid transparent; font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-tabs a:hover { color: var(--ink); }
.auth-tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.auth-heading h1 { margin-top: 10px; font-size: 29px; line-height: 1.3; letter-spacing: -.65px; }
.auth-heading > p:last-child { margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-form { display: grid; gap: 22px; margin-top: 30px; }
.auth-form .form-field + .form-field { margin-top: 0; }
.auth-form input { min-height: 48px; }
.auth-password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.auth-password-toggle { min-height: 48px; padding-inline: 11px; border-color: var(--line); font-size: 13px; }
.auth-form > .button { width: 100%; min-height: 48px; }
.auth-form .form-error { margin-top: 0; }
.auth-simulation { font-size: 12px; color: var(--muted); line-height: 1.7; }
.auth-form > .auth-simulation { margin-top: -8px; text-align: center; }
.auth-demo { margin-top: 26px; border-block: 1px solid var(--line); }
.auth-demo summary { min-height: 48px; padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.auth-demo > p { padding: 6px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.auth-demo strong { color: var(--ink); font-weight: 600; }
.auth-demo > .button { margin-bottom: 10px; }
.auth-demo > .form-note { padding-bottom: 15px; }
.auth-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.auth-actions > .button { padding-inline: 0; font-size: 13px; }
.auth-actions > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }

/* ADMIN: stable property rail, open workspace, then one task at a time. */
.admin-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: calc(100dvh - var(--preview-height)); align-items: start; }
.admin-sidebar, .mobile-nav { --ink: #f9f5ee; --ink-soft: #e6e5e7; --muted: #c2c6d1; --surface: #f5f1e9; --surface-soft: #233149; --surface-hover: #2c3a52; --line: #3a475e; --line-strong: #64718a; --accent: #f9f5ee; --accent-hover: #ffffff; --accent-soft: #2c3a52; --focus: #f0b196; }
.admin-sidebar { position: sticky; top: var(--preview-height); min-height: calc(100dvh - var(--preview-height)); max-height: calc(100dvh - var(--preview-height)); overflow-y: auto; padding: 34px 18px 24px; background: var(--sidebar); border-right: 0; display: flex; flex-direction: column; }
.sidebar-brand, .admin-sidebar .brand { color: var(--ink); font-size: 24px; line-height: 1.2; font-weight: 750; letter-spacing: -.9px; text-decoration: none; margin: 0 10px 29px; }
.sidebar-brand span, .admin-sidebar .brand span { color: var(--accent); }
.sidebar-brand small, .admin-sidebar .brand small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.sidebar-brand > strong { display: block; font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -.2px; overflow-wrap: anywhere; }
.sidebar-brand > span.muted { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 400; letter-spacing: 0; }
.property-select { padding: 17px 10px; margin-bottom: 25px; border-block: 1px solid var(--line-strong); }
.property-select > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.property-select strong { display: block; font-size: 14px; font-weight: 600; }
.property-select select { margin-top: 8px; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-label { display: block; color: var(--muted); font-size: 12px; margin: 0 12px 8px; }
.admin-sidebar nav, .nav-group nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 14px; border: 1px solid transparent; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-link:hover { background: var(--surface-hover); }
.nav-link[aria-current="page"], .nav-link.active { border-color: #f5f1e9; background: #f5f1e9; color: #17243b; font-weight: 650; }
.nav-link svg { width: 18px; height: 18px; }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 500; }
.sidebar-bottom { margin-top: auto; padding: 28px 10px 0; font-size: 12px; color: var(--muted); }
.sidebar-bottom strong { display: block; color: var(--ink); font-size: 13px; margin-top: 4px; font-weight: 600; }
.sidebar-bottom > a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
.mobile-nav { display: none; }
.admin-workspace { min-width: 0; }
.workspace-topbar { min-height: 84px; padding: 16px 40px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-topbar > div:first-child { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.workspace-topbar > div:first-child strong { font-size: 14px; line-height: 1.5; font-weight: 600; }
.breadcrumbs, .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumbs strong, .breadcrumb strong { color: var(--ink-soft); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.account-summary > span { display: block; }
.account-summary strong { color: var(--ink-soft); font-weight: 600; }
.workspace-main { max-width: 1500px; margin: 0 auto; padding: 40px 40px 64px; min-width: 0; }
.workspace-footer { max-width: 1500px; margin: 0 auto; padding: 0 36px 28px; font-size: 12px; color: var(--muted); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-header h1 { max-width: 700px; }
.page-header p { max-width: 680px; margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.page-header .eyebrow { font-size: 12px; margin: 0 0 7px; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { min-width: 0; padding: 26px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.kpi:last-child { border-right: 0; }
.kpi-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kpi-value { display: block; font-size: 29px; font-weight: 650; line-height: 1.25; letter-spacing: -.8px; }
.kpi-value small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.kpi-note { display: block; font-size: 12px; margin-top: 10px; color: var(--muted); line-height: 1.6; }
.kpi-trend { color: var(--success); font-size: 12px; }
.section { margin-top: 32px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-bottom: 16px; }
.section-head h2 { font-size: 19px; }
.section-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.section-head > a { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel.padded, .panel-content { padding: 24px; }
.panel > form, form.panel.stack { padding: 26px; }
.stack > .form-field + .form-field { margin-top: 0; }
.stack > .form-field + .form-grid, .stack > .form-grid + .form-field { margin-top: 0; }
.stack:has(> .ledger-row) { gap: 0; }
.ledger-row small.muted { display: block; margin-top: 5px; font-size: 12px; }
#admin-facilities-form > section.panel { padding: 26px; }
#admin-facilities-form > section.panel > .section-head { padding: 0; margin-bottom: 22px; }
#admin-facilities-form > section.panel > .form-note { margin-top: 18px; }
.form-field + .form-grid { margin-top: 22px; }
.form-grid + .form-field { margin-top: 22px; }
.form-field + .info-banner { margin-top: 24px; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 15px 20px 20px; margin: 23px 0 0; }
legend { font-size: 13px; font-weight: 600; padding: 0 8px; }
fieldset > label.inline { min-height: 44px; font-size: 14px; }
.panel > .section-head { padding: 21px 24px 0; margin-bottom: 10px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.info-banner { padding: 17px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-small); background: var(--accent-soft); color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.info-banner strong { color: var(--accent); }
.info-banner.warning { border-left-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.info-banner.error { border-left-color: var(--red); background: var(--red-soft); color: var(--red); }
.info-banner p + p { margin-top: 8px; }
.list-row { display: flex; align-items: center; gap: 18px; padding: 22px 24px; min-width: 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row > .button { flex-shrink: 0; margin-left: auto; }
.list-main { min-width: 0; flex: 1; }
.list-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; }
.list-meta { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
.room-token { width: 48px; height: 52px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line-strong); background: var(--surface-soft); border-radius: 4px; color: var(--ink-soft); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 28px; padding: 4px 8px; border-radius: 4px; background: var(--surface-soft); color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.status.occupied, .status.paid, .status.done { color: var(--success); background: var(--success-soft); }
.status.vacant { color: var(--ink-soft); background: var(--surface-soft); border: 1px dashed var(--input-border); }
.status.reserved, .status.open { color: var(--blue); background: var(--blue-soft); }
.status.maintenance, .status.verification, .status.partial, .status.progress { color: var(--amber); background: var(--amber-soft); }
.status.unpaid, .status.high { color: var(--red); background: var(--red-soft); }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.room-card { display: flex; flex-direction: column; min-width: 0; min-height: 200px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; }
button.room-card:hover, a.room-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.room-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.room-number { font-size: 27px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; }
.room-card-body { margin-top: 20px; }
.room-card-body strong { display: block; font-size: 14px; font-weight: 600; }
.room-card-body p, .room-card .muted { color: var(--muted); font-size: 12px; margin-top: 5px; }
.room-card-foot { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.room-card-foot .status { white-space: normal; }
.room-card > .inline { width: 100%; justify-content: space-between; margin-bottom: 16px; }
.room-card > span { display: block; font-size: 14px; }
.room-card > strong { display: block; font-size: 18px; font-weight: 600; margin-top: 15px; }
.room-card > strong .muted { display: inline; font-weight: 400; }
.room-card > span:last-child { margin-top: auto; padding-top: 17px; font-size: 12px; }
.text-small + .room-grid { margin-top: 21px; }
.floor-section + .floor-section { margin-top: 36px; }
.floor-section h2 { margin-bottom: 18px; }
.room-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 23px; font-size: 12px; color: var(--muted); }
.room-legend > span { display: flex; align-items: center; gap: 7px; }
.filterbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.filterbar .form-field { margin: 0; min-width: 160px; }
.filterbar > .inline { align-items: flex-end; gap: 14px; }
.search-input { min-width: 260px; }
.tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-soft); max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.tab, .tabs > button, .tabs > a { display: flex; justify-content: center; align-items: center; min-height: 44px; flex-shrink: 0; padding: 10px 15px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.tab:hover, .tabs > button:hover, .tabs > a:hover { color: var(--ink); background: var(--surface-hover); }
.tab[aria-pressed="true"], .tab[aria-selected="true"], .tabs > [aria-pressed="true"], .tabs > [aria-selected="true"], .tabs > .active { color: var(--accent); background: var(--surface); border-color: var(--line-strong); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 14px; }
.data-table th { padding: 16px 20px; background: var(--surface-soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; text-align: left; }
.data-table td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--canvas); }
.data-table td strong { font-weight: 600; }
.data-table td .muted { display: block; margin-top: 5px; font-size: 12px; }
.data-table .money { font-size: 14px; }
.data-table .button { font-size: 13px; }
.tabs + .table-scroll { margin-top: 22px; }
.table-footnote { margin-top: 14px; font-size: 12px; color: var(--muted); }
.form-field { display: block; min-width: 0; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.form-field + .form-field { margin-top: 20px; }
.form-field > span:first-child { display: block; margin-bottom: 8px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { display: block; min-width: 0; width: 100%; min-height: 46px; margin-top: 8px; padding: 11px 13px; border: 1px solid var(--input-border); border-radius: var(--radius-small); background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.5; font-weight: 400; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--focus); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid > .form-field + .form-field { margin-top: 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 8px; line-height: 1.7; }
.form-error { color: var(--red); font-size: 13px; font-weight: 500; margin-top: 12px; }
.form-error:empty { display: none; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.definition { min-width: 0; }
.definition dt, .definition > span:first-child { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.definition dd { margin: 0; font-size: 15px; font-weight: 600; }
.definition > strong { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ledger-row { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row strong { font-weight: 600; white-space: nowrap; }
.ledger-row.total { color: var(--accent); border-top: 1px solid var(--line-strong); font-weight: 650; margin-top: 7px; padding-top: 21px; }
.metric { font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -.7px; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty-state h2, .empty-state h3 { color: var(--ink); font-size: 18px; margin-bottom: 10px; }
.empty-state p { max-width: 420px; margin: 0 auto; }
.empty-state .button { margin-top: 22px; }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; }
.product-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.product-card > .muted { font-size: 12px; margin-bottom: 12px; }
.product-card h3, .product-card > strong { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.product-card .money { font-size: 16px; color: var(--accent); margin-top: auto; }
.product-card > span:last-child { margin-top: 12px; font-size: 13px; }
.cart { min-width: 0; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.cart > h2 { margin-bottom: 20px; }
.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-row strong { display: block; font-size: 14px; font-weight: 600; }
.cart-row .muted { font-size: 12px; margin-top: 5px; }
.cart-row > .money { grid-column: 1 / -1; text-align: right; }
.cart-row > strong:last-child { grid-column: 1 / -1; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.quantity-controls { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 5px; flex-shrink: 0; }
.quantity-controls button { width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 0; background: transparent; font-size: 19px; color: var(--accent); }
.quantity-controls button:hover { background: var(--accent-soft); }
.quantity-controls span { min-width: 27px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.cart .ledger-row { margin: 10px 0 17px; }
.cart form { margin-top: 24px; }
.cart .form-actions > .button { width: 100%; }

/* LANDING: an editorial property introduction, with honest visual placeholders. */
.site-header { max-width: 1280px; min-height: 108px; margin: 0 auto; padding: 26px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { min-width: 0; font-size: 24px; line-height: 1.25; font-weight: 750; color: var(--ink); letter-spacing: -.8px; text-decoration: none; overflow-wrap: anywhere; }
.wordmark span { color: var(--accent); }
.wordmark small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.site-links { display: flex; align-items: center; gap: 25px; }
.site-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.site-links a:hover { color: var(--accent); text-decoration: underline; }
.site-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.site-actions { display: flex; gap: 10px; align-items: center; }
.landing-main { max-width: 1280px; margin: 0 auto; padding: 32px 40px 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 44px 0 80px; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.hero-label { display: block; font-size: 13px; color: var(--accent); margin-bottom: 22px; font-weight: 600; }
.hero h1 { max-width: 600px; font-family: var(--editorial); font-size: clamp(38px, 4vw, 52px); line-height: 1.14; font-weight: 400; letter-spacing: -1.5px; }
.hero-desc { max-width: 540px; margin-top: 20px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-facts { display: flex; gap: 18px 26px; flex-wrap: wrap; padding: 25px 0 0; margin-top: 32px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.hero-facts strong { display: block; font-weight: 600; margin-bottom: 3px; }
.hero-facts span { color: var(--muted); }
.hero-facts small { color: var(--muted); font-size: 12px; font-weight: 400; }
.hero-visual { min-width: 0; }
.illustration-label { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.photo-placeholder { min-height: 360px; aspect-ratio: 4 / 3; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 32px; border: 1px solid var(--line-strong); border-radius: 20px 20px 80px 20px; background: var(--surface-soft); text-align: center; color: var(--ink-soft); }
.photo-placeholder > strong { font-size: 16px; font-weight: 600; }
.photo-placeholder > span, .photo-placeholder > p { font-size: 13px; color: var(--muted); max-width: 320px; }
.placeholder-frame { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.placeholder-frame > .placeholder-room { display: block; font-size: 20px; line-height: 1.4; color: var(--ink-soft); font-weight: 600; }
.placeholder-frame > .muted { display: block; font-size: 14px; line-height: 1.8; max-width: 310px; }
.placeholder-frame > .button { margin-top: 5px; }
.property-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 20px 20px 80px 20px; }
.hero-photo { max-height: 450px; }
.photo-editor-preview { width: min(600px, 100%); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin: 24px 0; }
.panel.section:has(#property-photo) { padding: 26px; }
.panel.section:has(#property-photo) > .section-head { padding: 0; }
.room-illustration { width: min(240px, 100%); height: 180px; position: relative; border: 2px solid var(--line-strong); border-radius: 4px; background: var(--surface); overflow: hidden; }
.room-illustration::before { content: ""; position: absolute; width: 42%; height: 56%; left: 14%; top: 17%; border: 2px solid var(--input-border); border-radius: 2px; background: var(--accent-soft); }
.room-illustration::after { content: ""; position: absolute; width: 68%; height: 31%; bottom: 14%; right: -2px; border: 2px solid var(--input-border); background: var(--surface-soft); border-radius: 7px 2px 0 0; }
.landing-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.landing-section:last-child { border-bottom: 0; padding-bottom: 0; }
.landing-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 27px; }
.landing-section-head h2 { font-size: 26px; letter-spacing: -.6px; }
.landing-section-head p { color: var(--muted); margin-top: 10px; max-width: 660px; font-size: 15px; }
.landing-section-head > a { min-height: 44px; display: flex; align-items: center; flex-shrink: 0; font-size: 14px; }
.room-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.room-offer { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.room-offer:not(:has(.room-offer-visual)) { display: block; }
.room-offer-visual { height: 178px; display: grid; align-content: center; justify-items: center; gap: 12px; background: var(--surface-soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 22px; text-align: center; }
.room-offer-visual .room-illustration { width: 120px; height: 90px; }
.offer-body { padding: 28px; }
.offer-body h3 { font-size: 19px; margin-bottom: 9px; }
.offer-body > p { color: var(--muted); font-size: 13px; }
.offer-body > .inline { justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.offer-body > .inline > .category-label { margin-bottom: 0; padding-top: 5px; }
.offer-price { display: block; color: var(--ink); font-size: 24px; font-weight: 650; line-height: 1.4; letter-spacing: -.5px; margin: 24px 0 0; }
.offer-price small { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.offer-price > span { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.offer-body > .offer-price { color: var(--ink); font-size: 24px; margin-bottom: 12px; }
.offer-body > .form-note { margin-top: 0; margin-bottom: 20px; }
.offer-features { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 16px 0 23px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; }
.offer-features li::before { content: "·"; margin-right: 6px; }
.offer-body > .button { width: 100%; }
.facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.facility-item { min-width: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.facility-item h3, .facility-item strong { display: block; font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.facility-item p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.facility-item > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; }
.location-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.location-summary { min-width: 0; }
.location-summary h3 { margin-bottom: 12px; }
.location-summary p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.location-summary .button { margin-top: 20px; }
.nearby-public { margin-top: 24px; }
.nearby-public h3 { font-size: 16px; margin-bottom: 13px; }
.nearby-public > .place-card + .place-card { margin-top: 17px; }
.nearby-public > .place-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.place-note { color: var(--ink-soft); font-size: 14px; white-space: pre-line; margin: 10px 0; }
.location-summary > p + p { margin-top: 14px; }
.nearby-public > ul { padding: 0; margin: 0; list-style: none; }
.nearby-public li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.nearby-public li span:last-child { color: var(--muted); font-size: 12px; white-space: nowrap; }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 28px 40px 38px; border-top: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 13px; }
.site-footer strong { color: var(--ink-soft); font-weight: 600; }
.site-footer p { margin-top: 7px; max-width: 580px; }
.site-footer { flex-wrap: wrap; }
.site-footer .inline > a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer > p:last-child { flex-basis: 100%; max-width: 900px; margin-top: 0; }
.landing-main > .panel:not(:has(> form)), .landing-section > .panel:not(:has(> form)) { padding: 28px; }
.landing-main > .panel > .empty-state, .landing-section > .panel > .empty-state { padding: 26px 0 14px; }
.landing-main .panel > .button { margin: 12px 0 0; }
.landing-main .panel:has(> .empty-state) { text-align: center; }
.landing-main .panel:has(> .empty-state) > .button { margin-bottom: 8px; }
.landing-main .split-grid > aside.panel { padding: 27px; }
.landing-main .split-grid > aside.panel > .muted { margin-top: 12px; font-size: 14px; }
.landing-main .panel > h2 + p { margin-top: 12px; }
.landing-main .panel > .facility-grid { padding-top: 0; }
.landing-main .panel > .facility-grid .facility-item:nth-child(-n+3) { border-top: 0; }
#public-visit-form > .button { margin-top: 23px; }
.fee-list { margin: 17px 0 0; padding: 0; list-style: none; }
.fee-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.fee-list li strong { font-weight: 600; white-space: nowrap; }
.fee-list .ledger-row { align-items: flex-start; }
.fee-list .ledger-row > strong { max-width: 68%; white-space: normal; text-align: right; font-size: 13px; line-height: 1.7; }
.visit-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.visit-panel p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 640px; }
.visit-panel .button { flex-shrink: 0; }

/* PENYEWA: fewer choices, a visible bill and a direct route to a useful action. */
.tenant-layout { min-height: calc(100dvh - var(--preview-height)); }
.tenant-header { max-width: 1180px; margin: 0 auto; padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tenant-header .wordmark { font-size: 22px; }
.tenant-header > .inline { font-size: 13px; color: var(--muted); }
.tenant-nav { display: flex; gap: 24px; padding: 0 36px; border-bottom: 1px solid var(--line-strong); max-width: 1180px; margin: 0 auto; overflow-x: auto; overscroll-behavior-x: contain; }
.tenant-nav a, .tenant-nav button { min-height: 52px; display: inline-flex; align-items: center; padding: 10px 0 15px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.tenant-nav a:hover, .tenant-nav button:hover { background: var(--surface-hover); color: var(--ink); }
.tenant-nav [aria-current="page"], .tenant-nav [aria-selected="true"], .tenant-nav .active { color: var(--ink); font-weight: 650; background: transparent; border-bottom-color: var(--accent); }
.tenant-main { max-width: 1180px; margin: 0 auto; padding: 40px 36px 64px; min-width: 0; }
.tenant-welcome { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 28px; }
.tenant-welcome h1 { font-size: 30px; }
.tenant-welcome p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.tenant-room { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--muted); }
.tenant-room strong { display: block; color: var(--ink); font-size: 20px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tenant-room.panel { display: block; padding: 27px; margin-top: 0; }
.tenant-room.panel > .muted:first-child { display: block; font-size: 13px; margin-bottom: 11px; }
.tenant-room.panel > h2 { font-size: 21px; line-height: 1.45; margin-bottom: 12px; }
.tenant-room.panel > p { margin-top: 8px; font-size: 14px; line-height: 1.8; }
.tenant-room.panel > .button { margin-top: 23px; }
.tenant-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.bill-highlight { min-width: 0; padding: 34px; border: 1px solid var(--line-strong); border-top: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); }
.bill-highlight h2 { font-size: 18px; }
.bill-highlight > .metric, .bill-highlight > strong { display: block; font-size: 35px; line-height: 1.25; font-weight: 650; letter-spacing: -1px; margin: 19px 0 12px; }
.bill-highlight > p { color: var(--muted); font-size: 14px; }
.bill-highlight .inline { margin-top: 24px; }
.bill-highlight .info-banner { margin-top: 24px; }
.bill-highlight > span:first-child { display: block; font-size: 14px; color: var(--muted); }
.bill-highlight > .button { margin-top: 25px; }
.contract-card { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contract-card h2 { font-size: 18px; margin-bottom: 21px; }
.contract-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.contract-card .definition-grid { gap: 22px; }
.contract-card > .button { margin-top: 22px; }
.contract-card > .definition-grid + p { margin-top: 24px; }
.tenant-main .split-grid > .panel:not(.contract-card), .tenant-main > .panel.section:not(:has(> .list-row)) { padding: 26px; }
.tenant-main .panel > h2 + p { margin-top: 12px; }
.announcement { border-top: 1px solid var(--line); padding: 21px 0; }
.announcement h3 { font-size: 16px; margin-bottom: 9px; }
.announcement p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.announcement time { display: block; color: var(--muted); font-size: 12px; margin-top: 11px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-grid > button, .service-grid > a { min-height: 130px; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; }
.service-grid > button:hover, .service-grid > a:hover { border-color: var(--accent); background: var(--accent-soft); }
.service-grid strong { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.service-grid span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.service-grid > article.panel { padding: 25px; }
.service-grid > article.panel > h2 { font-size: 19px; margin-top: 7px; }
.service-grid > article.panel > .offer-price { margin: 19px 0 23px; }
.service-grid > article.panel > .button { width: 100%; }

/* Location tools use real coordinates and disclose their map provider. */
.map-canvas { width: 100%; min-width: 0; height: 360px; position: relative; z-index: 1; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface-soft); overflow: hidden; }
.map-canvas:empty { display: grid; place-items: center; }
.map-canvas:empty::after { content: "Peta sedang disiapkan"; color: var(--muted); font-size: 14px; }
.map-canvas .leaflet-control-attribution { font-size: 12px; line-height: 1.5; padding: 3px 6px; }
.map-canvas .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.map-picker-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.coordinate-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.coordinate-fields > .form-field + .form-field { margin-top: 0; }
.nearby-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.place-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); min-width: 0; }
.place-card h3, .place-card strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.5; }
.place-card p, .place-card .muted { font-size: 13px; color: var(--muted); margin-top: 8px; }
.place-card .button { margin-top: 14px; }
.category-label { display: block; color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.scan-status { padding: 16px 19px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.scan-status.error { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.radius-control { display: flex; align-items: center; gap: 18px; }
.radius-control input[type="range"] { padding: 0; margin: 0; border: 0; min-height: 44px; accent-color: var(--accent); }
.radius-control output { flex-shrink: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.selected-place { padding: 18px 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent-soft); font-size: 14px; }
.selected-place p { color: var(--muted); margin-top: 6px; font-size: 13px; }
.map-attribution { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading > .muted { font-size: 12px; padding-top: 4px; white-space: nowrap; }
.eyebrow { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.8; margin-top: 13px; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 9px 0; font-size: 14px; line-height: 1.7; cursor: pointer; }
.checkbox-field input { flex-shrink: 0; margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.status.success { color: var(--success); background: var(--success-soft); }
.status.neutral { color: var(--ink-soft); background: var(--surface-soft); }
.notice { padding: 18px 21px; background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.notice.error { background: var(--red-soft); border-left-color: var(--red); color: var(--red); }
.notice p { margin-top: 8px; }
.notice .button { margin-top: 17px; }
.nearby-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.nearby-location-panel { padding: 26px; }
.nearby-location-panel > .section-heading { flex-wrap: wrap; }
.nearby-location-panel > h3 { font-size: 18px; margin-bottom: 12px; }
.nearby-location-panel > .muted { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.nearby-pin-visual { display: grid; place-items: center; width: 64px; height: 64px; margin: 3px 0 23px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.nearby-pin-visual > span { font-size: 33px; line-height: 1; }
.nearby-pin-visual > i { display: none; }
.nearby-detail { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.nearby-detail:first-of-type { margin-top: 18px; }
.nearby-detail > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.nearby-detail strong { display: block; font-size: 14px; font-weight: 600; }
.nearby-detail small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.nearby-review { display: grid; gap: 26px; min-width: 0; }
.nearby-review > .panel { padding: 26px; }
.nearby-summary { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.nearby-category { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 26px; }
.nearby-category .section-heading { margin-bottom: 12px; }
.nearby-category .section-heading h3 { font-size: 16px; }
.nearby-place { display: flex; align-items: flex-start; gap: 13px; padding: 17px 0; min-height: 64px; border-bottom: 1px solid var(--line); cursor: pointer; }
.nearby-place:last-child { border-bottom: 0; }
.nearby-place input { margin-top: 5px; flex-shrink: 0; }
.nearby-place-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.nearby-place-body strong { font-size: 14px; font-weight: 600; line-height: 1.5; }
.nearby-place-body .muted { font-size: 12px; line-height: 1.7; }
.nearby-place > .text-link { flex-shrink: 0; padding-top: 0; align-items: flex-start; line-height: 1.7; }
.nearby-no-result { padding: 8px 0 14px; font-size: 13px; }
.nearby-attribution { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.nearby-progress { display: flex; align-items: center; gap: 15px; }
.nearby-progress .loading-indicator { flex-shrink: 0; }
.manual-place-row { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.manual-place-row:last-child { border-bottom: 0; padding-bottom: 0; }
.manual-place-row > .nearby-place { border-bottom: 0; }
.manual-place-actions { margin-top: 0; margin-left: 30px; gap: 8px 14px; }
.manual-place-note { white-space: pre-line; overflow-wrap: anywhere; }
.manual-place-row .nearby-place-body strong { overflow-wrap: anywhere; }
.maps-link-instructions { padding: 27px; }
.maps-link-steps { padding-left: 22px; margin: 22px 0 26px; color: var(--ink-soft); font-size: 14px; }
.maps-link-steps li { padding-left: 5px; margin-bottom: 18px; }
.maps-link-steps li:last-child { margin-bottom: 0; }
.empty-icon { margin-bottom: 15px; color: var(--accent); font-size: 32px; line-height: 1.3; }
.picker-page { min-height: calc(100dvh - var(--preview-height)); }
.picker-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1340px; padding: 26px 40px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.picker-header .brand { color: var(--ink); font-size: 24px; font-weight: 750; letter-spacing: -.8px; text-decoration: none; }
.picker-header .brand span { color: var(--accent); }
.picker-main { max-width: 1340px; margin: 0 auto; padding: 34px 40px 60px; }
.picker-main .page-heading { margin-bottom: 29px; }
.picker-main .page-heading p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 13px; max-width: 760px; }
.picker-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 28px; align-items: start; }
.picker-grid > * { min-width: 0; }
.picker-form { display: grid; gap: 20px; padding: 27px; }
.picker-form > h2 { margin-bottom: 3px; }
.picker-form .form-field + .form-field, .picker-form .field-hint { margin-top: 0; }
.picker-form .form-field small { display: inline; font-size: 12px; color: var(--muted); font-weight: 400; }
.picker-divider { height: 1px; width: 100%; background: var(--line); margin-block: 3px; }
.nearby-map { width: 100%; position: relative; z-index: 1; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface-soft); overflow: hidden; }
#nearby-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.nearby-map .leaflet-control-attribution { font-size: 12px; line-height: 1.5; padding: 4px 7px; }
.kost-map-pin { display: grid; place-items: center; border-radius: 6px 6px 14px 14px; border: 2px solid #ffffff; background: #a34b32; color: #ffffff; box-shadow: 0 2px 7px rgb(0 0 0 / 25%); }
.kost-map-pin > span { font-size: 28px; line-height: 1; }

/* A true modal is the only elevated surface. */
dialog.modal { width: min(650px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-modal); overflow: auto; }
dialog.modal.wide { width: min(980px, calc(100vw - 40px)); }
dialog.modal::backdrop { background: rgb(17 27 45 / 52%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 28px 21px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 22px; padding-top: 6px; }
.modal-head > .button { flex-shrink: 0; }
.modal-content { padding: 27px 28px; }
.modal-content > p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.modal-content > h3 { margin: 25px 0 12px; }
.modal-content > .info-banner { margin-bottom: 24px; }
.modal-content > .definition-grid { margin-block: 25px; }
.modal-content form > .button { margin-top: 24px; }
.modal-content .form-grid { margin-top: 20px; }
.modal-content .ledger-row:last-child { margin-bottom: 0; }
.modal-actions { padding: 21px 28px 25px; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; width: max-content; max-width: min(560px, calc(100vw - 36px)); padding: 16px 21px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: 7px; font-size: 14px; box-shadow: 0 6px 20px rgb(23 36 59 / 12%); }
.loading-indicator { display: inline-block; width: 25px; height: 25px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: loading 800ms linear infinite; }
@keyframes loading { to { transform: rotate(360deg); } }
.state-message { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 70px 24px; min-height: 340px; text-align: center; color: var(--muted); font-size: 15px; }
.state-message h2 { color: var(--ink); }
.state-message p { max-width: 500px; }

@media (min-width: 1200px) {
  .split-grid { grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .pos-grid .cart { position: sticky; top: calc(var(--preview-height) + 24px); }
  .tenant-grid { grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); }
  .map-picker-layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
  .nearby-layout { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (min-width: 1600px) {
  .workspace-main { padding: 42px 48px 68px; }
  .workspace-topbar { padding-inline: 48px; }
  .workspace-footer { padding-inline: 48px; }
  .page-header { margin-bottom: 34px; }
  .kpi-grid { margin-bottom: 38px; }
  .split-grid { gap: 34px; }
  .room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  .page-header { align-items: flex-start; }
  .page-actions { margin-top: 5px; }
  .kpi { padding: 22px; }
  .kpi-value { font-size: 27px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 36px; }
  .site-links { gap: 18px; }
  .room-offers { gap: 18px; }
  .offer-body { padding: 22px; }
  .auth-main { padding-inline: 28px; }
  .auth-story { padding-inline: 36px; }
}

/* Tablet gets the full width instead of squeezing a sidebar and two columns. */
@media (max-width: 1099px) {
  .admin-layout { display: block; }
  .admin-sidebar { position: static; min-height: 0; max-height: none; overflow: visible; padding: 24px 28px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 20px 28px; }
  .sidebar-brand, .admin-sidebar .brand { margin: 2px 0 0; font-size: 22px; }
  .property-select { margin: 0; padding: 0; border: 0; }
  .admin-sidebar > .property-select { grid-column: 1; }
  .nav-group { min-width: 0; }
  .nav-group + .nav-group { margin-top: 0; }
  .admin-sidebar > .nav-group { grid-column: 2; }
  .nav-label { margin-left: 8px; margin-bottom: 7px; }
  .admin-sidebar nav, .nav-group nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; }
  .nav-link { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .nav-count { margin-left: 7px; }
  .sidebar-bottom { display: none; }
  .workspace-main { padding: 32px 28px 50px; }
  .workspace-topbar { padding: 15px 28px; min-height: 74px; }
  .workspace-footer { padding-inline: 28px; }
  .page-header { align-items: flex-end; }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-top: 30px; padding-bottom: 52px; }
  .site-header, .landing-main { padding-inline: 30px; }
  .site-header { gap: 18px; }
  .site-header .wordmark { font-size: 22px; }
  .site-links { gap: 14px; }
  .site-actions .button { padding-inline: 13px; }
  .photo-placeholder { min-height: 300px; }
  .room-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-layout { grid-template-columns: 1fr; gap: 27px; }
  .site-footer { padding-inline: 30px; }
}

@media (max-width: 899px) {
  .page-header { display: block; }
  .page-actions { margin-top: 20px; }
  .kpi { padding: 21px 19px; }
  .kpi-value { font-size: 25px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { flex-wrap: wrap; min-height: 90px; }
  .site-links { order: 3; width: 100%; gap: 24px; border-top: 1px solid var(--line); padding-top: 9px; }
  .site-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 25px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { max-width: 650px; font-size: 48px; }
  .hero-visual { max-width: 680px; width: 100%; }
  .photo-placeholder { min-height: 300px; aspect-ratio: 16 / 9; }
  .landing-section { padding-block: 47px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker-grid { grid-template-columns: 1fr; }
  .picker-form { grid-template-columns: 1fr 1fr; gap: 22px; }
  .picker-form > h2, .picker-form > .field-hint, .picker-form > .picker-divider, .picker-form > .checkbox-field, .picker-form > .button, .picker-form > .form-field:has([name="mapsLink"]) { grid-column: 1 / -1; }
  .tenant-header, .tenant-main { padding-inline: 28px; }
  .tenant-nav { padding-inline: 28px; }
  .visit-panel { align-items: flex-start; }
  .auth-layout { padding-inline: 30px; gap: 28px; }
  .auth-main { padding-inline: 0; }
  .auth-story { padding: 36px 28px; }
  .auth-story-title { font-size: 33px; }
  .auth-heading h1 { font-size: 27px; }
  .access-header { padding-inline: 30px; }
  .access-layout { padding: 48px 30px 64px; }
  .access-card { padding: 28px; }
}

@media (max-width: 699px) {
  html { scroll-padding-top: 54px; }
  .draft-strip { padding-inline: 18px; gap: 8px; }
  .admin-sidebar { display: none; }
  .mobile-nav { display: block; background: var(--sidebar); border-bottom: 1px solid var(--line); }
  .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 20px; color: var(--ink); font-size: 14px; font-weight: 600; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); }
  .mobile-nav[open] summary::after { content: "−"; }
  .mobile-nav summary > span { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: auto; }
  .mobile-nav nav { padding: 4px 16px 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mobile-nav > .nav-group { padding: 0 16px 13px; margin-top: 0; }
  .mobile-nav > .nav-group nav { padding: 0; }
  .mobile-nav .nav-label { grid-column: 1 / -1; margin: 12px 8px 3px; }
  .mobile-nav .nav-link { min-height: 46px; padding: 11px; font-size: 14px; }
  .workspace-topbar { min-height: 70px; padding: 13px 20px; gap: 12px; flex-wrap: wrap; }
  .breadcrumbs, .breadcrumb { gap: 6px; font-size: 12px; }
  .topbar-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .topbar-actions .button { padding-inline: 10px; font-size: 12px; }
  .workspace-main { padding: 29px 20px 44px; }
  .workspace-footer { padding: 0 20px 25px; font-size: 12px; }
  h1 { font-size: 28px; letter-spacing: -.7px; }
  .page-header { margin-bottom: 25px; }
  .page-header p { font-size: 14px; margin-top: 10px; }
  .page-actions { gap: 9px; margin-top: 19px; }
  .kpi-grid { grid-template-columns: 1fr; margin-bottom: 28px; }
  .kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 18px; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
  .kpi-label { font-size: 13px; margin: 0; }
  .kpi-value { grid-column: 2; grid-row: 1 / 3; font-size: 26px; }
  .kpi-note { font-size: 12px; margin-top: 6px; }
  .split-grid { gap: 25px; }
  .section { margin-top: 28px; }
  .section-head { align-items: flex-start; gap: 15px; margin-bottom: 15px; }
  .section-head h2 { font-size: 18px; }
  .section-head p { font-size: 13px; }
  .section-head > a { font-size: 13px; }
  .panel.padded, .panel-content { padding: 22px; }
  .panel > .section-head { padding: 20px 21px 0; }
  .list-row { padding: 20px; gap: 13px; flex-wrap: wrap; }
  .list-row .list-main { flex-basis: calc(100% - 64px); }
  .list-row > .button { margin-left: 61px; }
  .list-title { font-size: 14px; }
  .list-meta { font-size: 12px; }
  .list-row > .inline { margin-left: 61px; }
  .room-grid { gap: 14px; }
  .room-card { padding: 19px; min-height: 210px; }
  .room-card-head { flex-wrap: wrap; gap: 10px; }
  .room-number { font-size: 26px; }
  .room-card-head .status { font-size: 12px; }
  .room-card-body { margin-top: 17px; }
  .room-card-body strong { font-size: 14px; }
  .filterbar { gap: 18px; margin-bottom: 24px; align-items: stretch; }
  .filterbar > .inline { width: 100%; align-items: flex-end; gap: 15px; }
  .filterbar .form-field { min-width: 0; flex: 1; }
  .filterbar .search-input { flex-basis: 100%; width: 100%; }
  .filterbar > .search-input { width: 100%; }
  .tabs { width: 100%; }
  .tab, .tabs > button, .tabs > a { font-size: 13px; padding-inline: 13px; }
  .form-field { font-size: 14px; }
  input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .data-table { min-width: 650px; }
  .data-table th { padding: 15px 18px; }
  .data-table td { padding: 18px; }
  .definition-grid { gap: 23px 18px; }
  .ledger-row { gap: 16px; font-size: 14px; }
  .product-grid { gap: 14px; }
  .product-card { min-height: 180px; padding: 21px; }
  .product-card h3, .product-card > strong { font-size: 16px; }
  .cart { padding: 23px; }
  .site-header { padding: 22px 21px 17px; gap: 17px; }
  .site-header .wordmark { font-size: 21px; }
  .site-actions .button { font-size: 13px; padding-inline: 12px; }
  .site-links { gap: 23px; overflow-x: auto; white-space: nowrap; }
  .site-links a { flex-shrink: 0; font-size: 14px; }
  .landing-main { padding: 12px 21px 50px; }
  .hero { padding: 25px 0 41px; gap: 28px; }
  .hero-label { margin-bottom: 15px; }
  .hero h1 { font-size: 39px; letter-spacing: -.85px; line-height: 1.16; }
  .hero-desc { font-size: 15px; margin-top: 18px; line-height: 1.8; }
  .hero-actions { margin-top: 23px; gap: 10px; }
  .hero-facts { gap: 16px 23px; margin-top: 22px; padding-top: 21px; }
  .photo-placeholder { min-height: 270px; aspect-ratio: auto; padding: 23px; }
  .room-illustration { width: 200px; height: 150px; }
  .landing-section { padding: 39px 0; }
  .landing-section-head { display: block; margin-bottom: 23px; }
  .landing-section-head h2 { font-size: 24px; }
  .landing-section-head p { font-size: 14px; margin-top: 11px; line-height: 1.8; }
  .landing-section-head > a { margin-top: 11px; }
  .room-offers { grid-template-columns: 1fr; gap: 22px; }
  .room-offer { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1fr); }
  .room-offer-visual { height: auto; min-height: 210px; border-bottom: 0; border-right: 1px solid var(--line); padding: 17px; }
  .room-offer-visual .room-illustration { width: 110px; height: 88px; }
  .offer-body { padding: 22px; }
  .offer-price { font-size: 23px; margin-top: 15px; }
  .offer-features { margin: 14px 0 19px; }
  .facility-grid { gap: 0 24px; }
  .facility-item { padding-block: 21px; }
  .facility-item h3, .facility-item strong { font-size: 16px; }
  .facility-item p { font-size: 14px; }
  .location-layout { gap: 24px; }
  .site-footer { display: block; padding: 26px 21px 31px; font-size: 13px; }
  .site-footer > * + * { margin-top: 18px; }
  .visit-panel { display: block; padding: 25px; }
  .visit-panel .button { margin-top: 23px; }
  .tenant-header { padding: 23px 21px 20px; gap: 17px; flex-wrap: wrap; }
  .tenant-header > .inline { gap: 8px; font-size: 12px; }
  .tenant-header .wordmark { font-size: 21px; }
  .tenant-nav { padding: 0 21px; gap: 22px; }
  .tenant-nav a, .tenant-nav button { padding-inline: 0; font-size: 13px; }
  .tenant-main { padding: 28px 21px 46px; }
  .tenant-welcome { display: block; margin-bottom: 25px; }
  .tenant-welcome h1 { font-size: 28px; }
  .tenant-room { display: inline-flex; align-items: baseline; gap: 13px; margin-top: 20px; padding: 11px 15px; }
  .tenant-room strong { display: inline; font-size: 19px; margin: 0; }
  .bill-highlight { padding: 25px; }
  .bill-highlight > .metric, .bill-highlight > strong { font-size: 33px; }
  .bill-highlight .inline { gap: 10px; }
  .bill-highlight .inline > .button { flex: 1; }
  .contract-card { padding: 23px; }
  .service-grid { gap: 14px; }
  .service-grid > button, .service-grid > a { padding: 21px; min-height: 140px; }
  .service-grid strong { font-size: 15px; }
  .map-canvas { height: 330px; }
  .nearby-layout { gap: 24px; }
  .nearby-location-panel, .nearby-review > .panel { padding: 23px; }
  .nearby-review { gap: 23px; }
  .nearby-review .section-heading { flex-wrap: wrap; }
  .nearby-category .section-heading { flex-wrap: nowrap; }
  .nearby-place { flex-wrap: wrap; gap: 10px 12px; }
  .nearby-place-body { flex-basis: calc(100% - 34px); }
  .nearby-place > .text-link { margin-left: 30px; align-items: center; }
  .nearby-summary { font-size: 14px; }
  .button-row { gap: 10px; }
  .button-row > .button { flex: 1; }
  .picker-header { padding: 22px; }
  .picker-header .brand { font-size: 22px; }
  .picker-main { padding: 28px 22px 45px; }
  .picker-main .page-heading p { font-size: 14px; }
  .picker-form { display: grid; grid-template-columns: 1fr; padding: 23px; gap: 20px; }
  .picker-form > * { grid-column: 1 !important; }
  .nearby-map { height: 340px !important; }
  .nearby-grid { grid-template-columns: 1fr; gap: 15px; }
  .coordinate-fields { gap: 15px; }
  dialog.modal { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  dialog.modal.wide { width: calc(100vw - 24px); }
  .modal-head { padding: 20px 22px 18px; gap: 16px; }
  .modal-head h2 { font-size: 20px; }
  .modal-content { padding: 23px 22px; }
  .modal-actions { padding: 20px 22px 23px; gap: 10px; }
  .modal-actions .button { flex: 1; }
  .toast { bottom: 15px; max-width: calc(100vw - 24px); padding: 15px 18px; font-size: 14px; }
  .access-header { min-height: 92px; padding: 20px 21px; flex-wrap: wrap; gap: 14px; }
  .access-header .wordmark { font-size: 21px; }
  .access-header .inline { gap: 8px; }
  .access-header .button { font-size: 13px; padding-inline: 10px; }
  .access-layout { padding: 36px 21px 52px; }
  .access-intro h1 { font-size: 38px; letter-spacing: -.9px; }
  .access-intro > p:last-child { font-size: 15px; margin-top: 18px; }
  .access-options { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
  .access-card { padding: 26px; }
  .access-card h2 { font-size: 22px; }
  .access-number { margin-bottom: 18px; }
  .access-card > .button { width: 100%; margin-top: 24px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; padding: 24px 21px 44px; min-height: 0; }
  .auth-story { grid-row: 2; padding: 28px; gap: 28px; border-radius: 14px; }
  .auth-story-title { margin-top: 18px; font-size: 31px; }
  .auth-copy > p:last-child { margin-top: 18px; font-size: 14px; }
  .auth-notes { padding-top: 20px; gap: 8px 18px; font-size: 12px; }
  .auth-main { grid-row: 1; max-width: 550px; margin: 0 auto; padding: 0; }
  .auth-tabs { margin-bottom: 25px; }
  .auth-heading h1 { font-size: 27px; }
  .auth-form { margin-top: 25px; gap: 20px; }
  .auth-actions { margin-top: 14px; }
}

@media (max-width: 420px) {
  .workspace-main { padding-inline: 17px; }
  .workspace-topbar { padding-inline: 17px; }
  .workspace-footer { padding-inline: 17px; }
  .kpi { display: block; }
  .kpi-value { font-size: 28px; margin-top: 10px; }
  .kpi-note { margin-top: 9px; }
  .section-head { flex-wrap: wrap; gap: 5px; }
  .section-head > a { min-height: 44px; }
  .room-grid { grid-template-columns: 1fr; }
  .room-card { min-height: 185px; padding: 23px; }
  .room-card-head { flex-wrap: nowrap; }
  .room-card-body { margin-top: 20px; }
  .room-card-foot { padding-top: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 150px; padding: 23px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions > .button { width: 100%; }
  .definition-grid { grid-template-columns: 1fr; gap: 20px; }
  .room-offer { display: block; }
  .room-offer-visual { min-height: 175px; border-right: 0; border-bottom: 1px solid var(--line); }
  .room-offer-visual .room-illustration { width: 135px; height: 100px; }
  .offer-body { padding: 25px; }
  .facility-grid { grid-template-columns: 1fr; }
  .hero-actions .button { flex-basis: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid > button, .service-grid > a { min-height: 120px; }
  .coordinate-fields { grid-template-columns: 1fr; gap: 20px; }
  .map-canvas { height: 300px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .loading-indicator { border-style: dashed; }
}

@media print {
  :root { color-scheme: light; --canvas: #fff; --surface: #fff; --ink: #222; --muted: #555; --line: #ccc; --accent: #a34b32; }
  body { background: #fff; font-size: 12px; }
  .draft-strip, .access-header, .admin-sidebar, .mobile-nav, .workspace-topbar, .site-header, .tenant-header, .tenant-nav, .page-actions, .filterbar, .toast, dialog, .screen-only { display: none !important; }
  .print-only { display: block; }
  .admin-layout { display: block; }
  .workspace-main, .tenant-main { padding: 0; max-width: none; }
  .panel, .kpi, .room-card { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .data-table { min-width: 0; font-size: 11px; }
  .data-table th, .data-table td { padding: 10px; }
  .button, .text-button { display: none; }
}
