/* The saved Ruang Kost FigCraft design, adapted to live content and native controls.
   Ivory is the property canvas; navy anchors financial totals; clay marks action. */
:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --editorial: var(--font);
  --canvas: #f5f1e9;
  --surface: #fff;
  --surface-soft: #eae6de;
  --surface-hover: #f1ece4;
  --ink: #17243b;
  --ink-soft: #3d4c66;
  --muted: #58657b;
  --accent: #a34b32;
  --accent-hover: #843923;
  --accent-soft: #f3e5dd;
  --line: #d9d7d1;
  --line-strong: #b9b8b3;
  --input-border: #91959b;
  --sidebar: #fff;
  --sidebar-width: 248px;
  --radius: 12px;
  --radius-small: 8px;
}
[data-theme="dark"] {
  --canvas: #151b27;
  --surface: #1d2635;
  --surface-soft: #283141;
  --surface-hover: #343e4e;
  --sidebar: #1d2635;
  --ink: #f6f1e8;
  --ink-soft: #dfdce0;
  --muted: #b9c0cc;
  --accent: #f0b196;
  --accent-hover: #ffd0ba;
  --accent-soft: #412e2a;
  --line: #3c4452;
  --line-strong: #687080;
  --input-border: #9296a1;
}
body { font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--font); }
h1 { font-size: 32px; line-height: 1.22; font-weight: 650; letter-spacing: -.7px; }
h2 { font-weight: 650; line-height: 1.35; }
h3 { font-weight: 600; }
.button, .button.small, .text-button, .text-link,
.tab, .tabs > button, .tabs > a,
.media-filters .button, .media-card-actions .button,
.quantity-controls button { min-height: 48px; }
.button { padding: 12px 17px; font-size: 14px; font-weight: 600; }
.button.small { padding: 10px 14px; }
.button.secondary { border-color: var(--input-border); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { min-height: 48px; }
input[type="file"] { max-width: 100%; overflow: hidden; }
input[type="file"]::file-selector-button { min-height: 48px; }
.wordmark { min-height: 48px; display: inline-flex; align-items: center; font-weight: 650; letter-spacing: -.55px; }
.draft-strip { background: var(--surface); font-size: 12px; }
.panel { border-radius: 12px; }
.info-banner, .notice { border-left-width: 1px; }
.page-header { margin-bottom: 32px; align-items: flex-start; }
.page-header p { margin-top: 10px; max-width: 64ch; }
.page-actions { margin-top: 0; }
.page-actions .button { min-width: 128px; }
.section { margin-top: 32px; }
.section-head { min-height: 48px; }
.section-head h2 { font-size: 22px; }
.section-head > a { min-height: 48px; }
.panel > .section-head { padding-bottom: 7px; }
.form-note { font-size: 12px; }
.status { white-space: normal; }

/* Owner rail stays quiet, with room for all thirteen destinations. */
.admin-sidebar, .mobile-nav {
  --ink: #17243b; --ink-soft: #3d4c66; --muted: #58657b;
  --surface: #fff; --surface-soft: #f5f1e9; --surface-hover: #f1ece4;
  --line: #d9d7d1; --line-strong: #b9b8b3;
  --accent: #a34b32; --accent-hover: #843923; --accent-soft: #f3e5dd;
  --focus: #974426;
}
[data-theme="dark"] .admin-sidebar, [data-theme="dark"] .mobile-nav {
  --ink: #f6f1e8; --ink-soft: #dfdce0; --muted: #b9c0cc;
  --surface: #1d2635; --surface-soft: #283141; --surface-hover: #343e4e;
  --line: #3c4452; --line-strong: #687080;
  --accent: #f0b196; --accent-hover: #ffd0ba; --accent-soft: #412e2a;
  --focus: #ffd0ba;
}
.admin-sidebar { padding: 24px 12px 20px; background: var(--sidebar); border-right: 1px solid var(--line); }
.sidebar-brand { margin: 0 12px 30px; }
.sidebar-brand > strong { font-size: 22px; font-weight: 650; line-height: 1.3; }
.sidebar-brand > span.muted { font-size: 12px; margin-top: 14px; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { margin: 0 12px 8px; font-size: 11px; text-transform: uppercase; font-weight: 500; }
.admin-sidebar nav, .nav-group nav { gap: 3px; }
.nav-link { min-height: 48px; padding: 12px 13px; font-size: 13px; border: 0; }
.nav-link[aria-current="page"], .nav-link.active { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.sidebar-bottom { padding: 24px 4px 0; }
.sidebar-bottom > a { min-height: 48px; padding: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.sidebar-bottom .button { width: 100%; justify-content: flex-start; }
.workspace-topbar { min-height: 88px; padding: 16px 40px; background: var(--surface); border-bottom: 0; }
.workspace-main { max-width: 1500px; padding: 40px 40px 64px; }
.account-summary { gap: 8px 16px; }
.cloud-status { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cloud-status:has([role="alert"]) { color: var(--red); }
.cloud-status [role="alert"] { max-width: 56ch; }
.cloud-status .button { min-height: 48px; }
.workspace-main > .cloud-status, .tenant-main > .cloud-status { margin-bottom: 20px; }
.workspace-footer > .cloud-status { margin-bottom: 8px; }
.tenant-header .cloud-status, .workspace-topbar .cloud-status { flex-basis: 100%; }
.kpi-grid { gap: 16px; background: transparent; border: 0; border-radius: 0; overflow: visible; margin-bottom: 40px; }
.kpi { display: block; min-height: 140px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.kpi:last-child { border-right: 1px solid var(--line); }
.kpi-label { margin-bottom: 18px; }
.kpi-value { font-size: clamp(24px, 2.1vw, 34px); line-height: 1.15; letter-spacing: -.8px; overflow-wrap: anywhere; }
.kpi-note { margin-top: 16px; font-size: 12px; }
.kpi:first-child { color: #fff; background: #17243b; border-color: #17243b; }
.kpi:first-child .kpi-label, .kpi:first-child .kpi-note, .kpi:first-child .kpi-value small { color: #d9e0eb; }
.room-card { border-radius: 12px; padding: 24px; }
.room-card > .inline .status { max-width: 65%; }
.list-row { min-height: 80px; padding: 18px 20px; }
.list-row > .button { margin-left: 0; }
.table-scroll { border-radius: 8px; }
.data-table th { background: var(--blue-soft); color: var(--muted); }
.data-table td { padding-block: 15px; }
.data-table .button { min-width: 92px; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.room-grid, .media-grid { gap: 24px; }
.room-card-foot, .room-card > span:last-child { line-height: 1.6; }
.occupancy-summary { padding: 24px; }
.occupancy-summary h2 { font-size: 20px; }
.occupancy-bar { display: block; width: 100%; height: 12px; margin: 22px 0 18px; overflow: hidden; appearance: none; border: 0; border-radius: 0; background: var(--surface-soft); color: #17243b; accent-color: #17243b; }
.occupancy-bar::-webkit-progress-bar { background: var(--surface-soft); }
.occupancy-bar::-webkit-progress-value { background: #17243b; }
.occupancy-bar::-moz-progress-bar { background: #17243b; }
.occupancy-legend { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; line-height: 1.6; }
.occupancy-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.occupancy-legend .status { min-height: 0; padding: 0; background: transparent; color: inherit; font-weight: 400; }
[data-theme="dark"] .occupancy-bar { color: #b2c2d9; accent-color: #b2c2d9; }
[data-theme="dark"] .occupancy-bar::-webkit-progress-value { background: #b2c2d9; }
[data-theme="dark"] .occupancy-bar::-moz-progress-bar { background: #b2c2d9; }
.filterbar .search-input { min-width: 0; }
.filterbar > .form-field:first-child { flex: 1 1 250px; }
.pos-grid { gap: 24px; }
.product-card { border-radius: 12px; }
.product-card > span:last-child { color: var(--accent); font-weight: 600; }

/* Property website: a single honest image area, with the price beside its story. */
.site-header { max-width: 1440px; min-height: 88px; padding: 20px 40px; border-bottom: 0; }
.site-header .wordmark { font-size: 24px; flex-shrink: 0; }
.site-links { gap: 16px; }
.site-links a { min-height: 48px; min-width: 112px; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.site-links a:hover { background: var(--surface-hover); border-color: var(--accent); }
.site-links a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.site-actions .button.ghost { border-color: var(--line); background: var(--surface); color: var(--ink); min-width: 100px; }
.public-mobile-nav { display: none; }
.landing-main { max-width: 1440px; padding: 28px 40px 72px; }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 40px 0 72px; }
.hero h1 { max-width: 620px; font: 650 clamp(36px, 3.7vw, 54px)/1.3 var(--font); letter-spacing: -1.2px; }
.hero-label { font-size: 12px; font-weight: 500; margin-bottom: 26px; }
.hero-desc { max-width: 440px; font-size: 16px; line-height: 1.55; margin-top: 28px; }
.hero-facts { gap: 16px 32px; margin-top: 34px; padding-top: 0; border: 0; }
.hero-facts strong { font-size: 24px; line-height: 1.4; margin-top: 6px; }
.hero-facts small { font-size: 16px; }
.hero-actions { margin-top: 30px; gap: 16px; }
.hero-actions .button { min-width: 190px; }
.photo-placeholder, .property-photo { border-radius: 12px; border: 0; aspect-ratio: 1.4; }
.photo-placeholder { min-height: 340px; background: var(--surface-soft); padding: 32px; }
.hero-photo { max-height: 500px; }
.placeholder-frame { gap: 12px; }
.placeholder-frame > .placeholder-room { font-size: 15px; font-weight: 500; color: var(--muted); }
.photo-placeholder .illustration-label { margin: 0; }
.landing-section { padding: 48px 0; }
.landing-section-head h2 { font-size: 28px; line-height: 1.3; }
.landing-section-head p { font-size: 14px; }
.offer-body { padding: 24px; }
.offer-body h3 { font-size: 22px; }
.offer-body .offer-price { font-size: 27px; letter-spacing: -.5px; }
.offer-features { gap: 9px 16px; }
.facility-grid { gap: 0 32px; }
.facility-item { padding: 24px 0; }
.facility-item strong { font-size: 17px; }
.location-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; }
.nearby-public { margin-top: 0; }
.location-summary { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.site-footer { max-width: 1440px; padding: 28px 40px 40px; }

/* Tenant pages reuse the owner's rail at desktop, with a five-item phone bar. */
.tenant-header { min-height: 88px; border-bottom: 0; background: var(--surface); }
.tenant-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.bill-highlight { display: flex; flex-direction: column; padding: 28px; min-height: 250px; border: 1px solid #17243b; border-radius: 12px; color: #fff; background: #17243b; }
.bill-highlight > span:first-child, .bill-highlight > p { color: #d9e0eb; }
.bill-highlight > .metric, .bill-highlight > strong { font-size: 38px; margin: 32px 0 20px; }
.bill-highlight > .button { align-self: flex-start; margin-top: auto; }
.bill-highlight .button.primary { background: #a34b32; color: #fff; border-color: #a34b32; }
.tenant-room.panel { padding: 28px; border-radius: 12px; }
.tenant-room.panel > h2 { font-size: 22px; }
.tenant-room.panel > .button { margin-top: 28px; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-grid > article.panel { padding: 26px; }
.tenant-main .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tenant-nav .tenant-nav-brand, .tenant-nav .tenant-nav-public, .tenant-nav .tenant-nav-label { display: none; }
.tenant-nav-links { display: contents; }
@media (min-width: 1100px) {
  .tenant-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: calc(100dvh - var(--preview-height)); align-items: start; }
  .tenant-header { grid-column: 2; grid-row: 1; width: 100%; max-width: none; margin: 0; padding: 16px 40px; }
  .tenant-nav { grid-column: 1; grid-row: 1 / 4; position: sticky; top: var(--preview-height); display: flex; flex-direction: column; gap: 4px; min-height: calc(100dvh - var(--preview-height)); max-height: calc(100dvh - var(--preview-height)); overflow-y: auto; padding: 24px 12px; margin: 0; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 0; }
  .tenant-nav .tenant-nav-brand { display: flex; min-height: 48px; padding: 0 12px; margin-bottom: 32px; border: 0; color: var(--ink); font-size: 22px; font-weight: 650; letter-spacing: -.55px; }
  .tenant-nav .tenant-nav-label { display: block; padding: 0 12px; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 500; text-transform: uppercase; }
  .tenant-nav-links { display: flex; flex-direction: column; gap: 3px; }
  .tenant-nav-links > a, .tenant-nav > button { min-height: 48px; padding: 12px 14px; border: 0; border-radius: 8px; font-size: 13px; color: var(--ink-soft); }
  .tenant-nav .tenant-nav-public { display: flex; min-height: 48px; padding: 12px 14px; margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
  .tenant-nav [aria-current="page"], .tenant-nav [aria-selected="true"], .tenant-nav .active { background: var(--accent-soft); color: var(--accent); }
  .tenant-main { grid-column: 2; grid-row: 2; width: 100%; max-width: 1500px; margin: 0 auto; padding: 40px; }
  .tenant-layout > .site-footer { grid-column: 2; grid-row: 3; width: 100%; max-width: 1500px; padding-inline: 40px; }
}

/* A floating upload stays visible above the page, never a replacement route. */
dialog.modal { width: min(680px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: 16px; }
dialog.modal::backdrop { background: #17243b66; }
.modal-head { padding: 20px 24px; align-items: center; }
#modal .modal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); }
.modal-head h2 { padding-top: 0; font-size: 24px; }
.modal-content { padding: 24px; }
.modal-head .button { min-width: 64px; }
.modal-actions { padding: 20px 24px; }
.media-form { gap: 24px; }
.media-form-section + .media-form-section { padding-top: 24px; }
.media-file-field { border: 1px dashed var(--input-border); background: var(--canvas); border-radius: 12px; }
.media-file-field input[type="file"]::file-selector-button { min-height: 48px; }
.media-file-preview { background: var(--surface); }
.media-form-actions { position: sticky; bottom: -24px; z-index: 1; padding: 20px 0 0; background: var(--surface); }
.media-form-actions .button { min-width: 128px; }
.media-card-body h3 { font-size: 21px; }
.media-filters .button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.photo-viewer { border-radius: 12px; }
.toast { z-index: 250; }

/* Login uses the same type and measured surfaces as the workspace. */
.access-intro h1 { font: 650 clamp(32px, 3.7vw, 46px)/1.2 var(--font); letter-spacing: -.8px; }
.auth-story-title { font: 600 clamp(30px, 3vw, 40px)/1.25 var(--font); letter-spacing: -.7px; }
.auth-story { border-radius: 12px; }
.auth-heading h1 { font-size: 32px; }
.access-card { border-radius: 12px; }
.auth-tabs a, .auth-actions > a, .auth-demo summary { min-height: 48px; }

@media (min-width: 1200px) {
  .nearby-layout { grid-template-columns: 340px minmax(0, 1fr); }
  .pos-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .site-header { flex-wrap: wrap; }
  .site-links { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .site-actions { margin-left: auto; }
  .site-links a { min-width: 0; }
}
@media (min-width: 1600px) {
  .workspace-main { padding: 44px 48px 68px; }
  .workspace-topbar { padding-inline: 48px; }
}

/* Tablet: full workspace width, while paired content remains paired. */
@media (min-width: 700px) and (max-width: 1099px) {
  .admin-sidebar { display: block; position: static; padding: 22px 28px 20px; min-height: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
  .sidebar-brand > span.muted { margin: 0; }
  .admin-sidebar > .nav-group { display: inline-flex; flex-direction: column; vertical-align: top; width: calc(33.333% - 16px); margin: 0 16px 0 0; }
  .admin-sidebar nav { flex-direction: column; gap: 2px; }
  .admin-sidebar .nav-link { min-height: 48px; padding: 10px 12px; }
  .nav-label { margin-bottom: 6px; }
  .workspace-topbar { min-height: 80px; padding-inline: 32px; }
  .workspace-main { padding: 32px; }
  .workspace-footer { padding-inline: 32px; }
  .kpi-grid { gap: 16px; }
  .kpi { padding: 20px; }
  .kpi-value { font-size: 26px; }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tenant-header { padding: 20px 32px; }
  .tenant-nav { padding-inline: 32px; gap: 32px; }
  .tenant-main { padding: 32px; }
  .tenant-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
  .bill-highlight, .tenant-room.panel { padding: 24px; }
  .bill-highlight > .metric { font-size: 34px; }
  .site-header { padding-inline: 32px; flex-wrap: wrap; }
  .site-links { order: 3; width: 100%; padding: 12px 0 0; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .site-links a { min-width: 0; }
  .site-actions { margin-left: auto; }
  .landing-main { padding: 24px 32px 64px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 24px; padding-bottom: 48px; }
  .hero h1 { font-size: 40px; }
  .hero-desc { font-size: 15px; }
  .hero-facts strong { font-size: 21px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { min-width: 0; }
  .photo-placeholder { min-height: 320px; aspect-ratio: 1; }
  .room-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .location-layout { gap: 24px; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 24px; }
  .hero h1 { font-size: 34px; }
  .hero-facts { gap: 14px; }
  .photo-placeholder { min-height: 300px; }
  .location-layout { grid-template-columns: 1fr; }
}

/* Phone: intentional single-column work, contained tables, five tenant shortcuts. */
@media (max-width: 699px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 14px; }
  h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.5px; }
  .draft-strip { padding: 7px 16px; font-size: 11px; gap: 4px 10px; }
  .admin-sidebar { display: none; }
  .mobile-nav { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); }
  .mobile-nav summary { min-height: 72px; padding: 12px 24px; }
  .mobile-nav summary > span { font-size: 13px; }
  .mobile-nav[open] { padding-bottom: 16px; }
  .mobile-nav > .nav-group { padding: 0 16px 16px; }
  .mobile-nav .nav-link { min-height: 48px; font-size: 13px; }
  .mobile-nav .nav-label { font-size: 11px; margin-bottom: 8px; }
  .workspace-topbar { min-height: 72px; padding: 12px 24px; }
  .workspace-topbar > div:first-child { display: none; }
  .workspace-topbar > .account-summary { width: 100%; justify-content: flex-end; gap: 6px 12px; }
  .workspace-topbar .account-summary > span { margin-right: auto; font-size: 12px; }
  .workspace-topbar .button { padding-inline: 12px; font-size: 12px; }
  .workspace-main { padding: 28px 24px 48px; }
  .workspace-footer { padding: 0 24px 24px; }
  .page-header { display: block; margin-bottom: 28px; }
  .page-header h1 { overflow-wrap: anywhere; }
  .page-header p { font-size: 14px; }
  .page-actions { margin-top: 20px; }
  .page-actions .button { min-width: 0; flex: 1 1 auto; }
  .kpi-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .kpi { display: block; min-height: 140px; border: 1px solid var(--line); padding: 20px; }
  .kpi-value { font-size: 30px; margin-top: 18px; }
  .kpi-label { margin: 0; }
  .kpi-note { margin-top: 14px; }
  .section-head h2 { font-size: 20px; }
  .section-head { flex-wrap: wrap; gap: 10px; }
  .occupancy-summary { padding: 20px; }
  .occupancy-legend { gap: 8px 16px; font-size: 12px; }
  .list-row { align-items: flex-start; gap: 12px; padding: 20px; }
  .list-row .list-main { flex-basis: 100%; }
  .list-row > .button, .list-row > .inline { margin-left: 0; }
  .list-row > .button { width: 100%; }
  .list-row > .stack { width: 100%; gap: 12px; }
  .list-row > .stack .button { width: 100%; }
  .room-grid, .product-grid, .room-offers { grid-template-columns: 1fr; gap: 20px; }
  .room-card { padding: 24px; min-height: 210px; }
  .room-card > .inline { flex-wrap: nowrap; }
  .filterbar { gap: 16px; }
  .filterbar > .form-field { flex-basis: 100%; }
  .filterbar > .button { flex: 1; }
  .filterbar > .inline { width: 100%; }
  .filterbar .search-input { width: 100%; min-width: 0; }
  .tabs { border-radius: 8px; }
  .table-scroll { width: 100%; max-width: 100%; }
  .data-table { min-width: 700px; }
  .data-table th, .data-table td { padding-inline: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  input:not([type="radio"]):not([type="checkbox"]), select, textarea { font-size: 16px; }
  .form-actions > .button { flex: 1 1 auto; }
  .ledger-row { gap: 16px; align-items: flex-start; }
  .ledger-row > span { min-width: 0; }
  .ledger-row strong { max-width: 60%; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .facility-grid { grid-template-columns: 1fr; gap: 0; }
  .facility-item { padding-block: 20px; }
  .site-header { padding: 16px 24px; gap: 14px; min-height: 88px; flex-wrap: wrap; }
  .site-header .wordmark { font-size: 22px; }
  .site-header { position: relative; flex-wrap: nowrap; justify-content: space-between; }
  .site-header > .site-links, .site-header > .site-actions { display: none; }
  .public-mobile-nav { display: block; flex-shrink: 0; }
  .public-mobile-nav > summary { display: flex; align-items: center; justify-content: center; min-height: 48px; min-width: 92px; padding: 11px 16px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; list-style: none; }
  .public-mobile-nav > summary::-webkit-details-marker { display: none; }
  .public-mobile-nav[open] > summary { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
  .public-mobile-nav > nav { position: absolute; top: calc(100% - 8px); right: 24px; z-index: 75; display: grid; width: min(360px, calc(100vw - 48px)); max-height: calc(100dvh - 130px); overflow-y: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgb(23 36 59 / 16%); }
  .public-mobile-nav nav > a { display: flex; align-items: center; min-height: 48px; padding: 12px 14px; border-radius: 7px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
  .public-mobile-nav nav > a:hover { color: var(--accent); background: var(--accent-soft); }
  .public-mobile-nav nav > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .public-mobile-nav nav > a:last-child { margin-top: 6px; background: var(--accent); color: var(--on-accent); }
  .public-mobile-nav nav > a:last-child:hover { background: var(--accent-hover); }
  [data-theme="dark"] .public-mobile-nav > nav { box-shadow: 0 12px 32px rgb(0 0 0 / 30%); }
  .site-actions { gap: 8px; }
  .site-actions .button { font-size: 13px; padding-inline: 12px; min-width: 0; }
  .site-links { order: 3; width: 100%; gap: 8px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; white-space: normal; }
  .site-links a { min-width: 0; font-size: 12px; padding: 10px 6px; line-height: 1.35; text-align: center; }
  .landing-main { padding: 16px 24px 48px; }
  .hero { grid-template-columns: 1fr; padding: 24px 0 40px; gap: 32px; }
  .hero h1 { font-size: 36px; line-height: 1.25; letter-spacing: -.8px; }
  .hero-label { font-size: 11px; margin-bottom: 20px; }
  .hero-desc { font-size: 15px; line-height: 1.6; margin-top: 20px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hero-actions .button { width: 100%; min-width: 0; }
  .hero-facts { margin-top: 28px; gap: 16px; }
  .hero-facts strong { font-size: 23px; }
  .hero-facts small { font-size: 14px; }
  .photo-placeholder, .property-photo { aspect-ratio: 4 / 3; border-radius: 12px; }
  .photo-placeholder { min-height: 250px; padding: 24px; }
  .hero-visual { max-width: none; }
  .landing-section { padding: 36px 0; }
  .landing-section-head { display: block; margin-bottom: 24px; }
  .landing-section-head h2 { font-size: 25px; }
  .landing-section-head > a { margin-top: 12px; }
  .room-offer { display: block; }
  .offer-body { padding: 24px; }
  .offer-body > .inline { flex-wrap: nowrap; }
  .offer-body > .inline .status { max-width: 65%; }
  .location-layout { grid-template-columns: 1fr; gap: 24px; }
  .location-summary { padding: 24px; }
  .site-footer { padding: 28px 24px 36px; }
  .site-footer .inline { gap: 8px 16px; }
  .tenant-layout { padding-bottom: 76px; }
  .tenant-header { padding: 16px 24px; gap: 12px; min-height: 88px; }
  .tenant-header .wordmark { font-size: 22px; }
  .tenant-header .account-summary { width: 100%; gap: 6px 12px; }
  .tenant-header .account-summary > span { margin-right: auto; font-size: 12px; }
  .tenant-header .button { font-size: 12px; padding-inline: 12px; }
  .tenant-main { padding: 28px 24px 40px; }
  .tenant-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: 100%; padding: 0 12px env(safe-area-inset-bottom); border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface); overflow: visible; }
  .tenant-nav-links > a, .tenant-nav > button { justify-content: center; text-align: center; min-height: 64px; padding: 10px 4px; border-top: 3px solid transparent; border-bottom: 0; font-size: 12px; line-height: 1.3; }
  .tenant-nav [aria-current="page"], .tenant-nav [aria-selected="true"], .tenant-nav .active { border-top-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
  .tenant-grid, .tenant-main .split-grid { grid-template-columns: 1fr; gap: 24px; }
  .bill-highlight { min-height: 250px; padding: 24px; }
  .bill-highlight > .metric, .bill-highlight > strong { font-size: 34px; margin-block: 28px 20px; }
  .bill-highlight > .button { width: 100%; margin-top: 24px; }
  .tenant-room.panel { padding: 24px; }
  .tenant-room.panel > .button { width: 100%; }
  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .tenant-layout .toast { bottom: 84px; }
  dialog.modal, dialog.modal.wide { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border-radius: 12px; }
  .modal-head { padding: 16px 20px; gap: 12px; }
  .modal-head h2 { font-size: 22px; }
  .modal-head .button { min-width: 56px; padding-inline: 10px; }
  .modal-content { padding: 20px; }
  .modal-actions { padding: 20px; gap: 12px; }
  .modal-actions .button { flex: 1 1 auto; }
  .media-form-actions { bottom: -20px; gap: 12px; }
  .media-form-actions .button { min-width: 0; width: 100%; }
  .media-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .media-filters .button { padding-inline: 8px; font-size: 12px; }
  .media-file-field { padding: 16px; }
  .media-file-preview > div { padding: 14px; }
  .media-file-field input[type="file"] { font-size: 13px; }
  .media-file-field input[type="file"]::file-selector-button { padding-inline: 12px; margin-right: 8px; }
  .media-card-actions .button { flex: 1 1 auto; }
  .access-header { padding: 16px 24px; }
  .access-layout { padding: 32px 24px 48px; }
  .access-intro h1 { font-size: 34px; }
  .auth-layout { padding: 24px; }
  .auth-heading h1 { font-size: 28px; }
  .auth-story-title { font-size: 30px; }
  .auth-password-field { gap: 8px; }
  .auth-password-toggle { min-width: 72px; }
}
@media (max-width: 374px) {
  .workspace-main, .tenant-main, .landing-main { padding-inline: 16px; }
  .site-header, .workspace-topbar, .tenant-header { padding-inline: 16px; }
  .public-mobile-nav > nav { right: 16px; width: min(360px, calc(100vw - 32px)); }
  .hero h1 { font-size: 32px; }
  .kpi-value, .bill-highlight > .metric { font-size: 28px; }
  .definition-grid { grid-template-columns: 1fr; }
  .site-actions .button { font-size: 12px; padding-inline: 10px; }
  .modal-head h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, a, .button { transition: none; }
}
