:root {
  color-scheme: light;
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --ink: #18201e;
  --muted: #66716e;
  --line: #d9dedc;
  --nav: #0d3f6f;
  --nav-muted: #bfd0df;
  --primary: #1aa6a5;
  --primary-dark: #147f7f;
  --green: #17694f;
  --green-soft: #e1f4f3;
  --orange: #b86117;
  --orange-soft: #fff0df;
  --red: #b83c3c;
  --red-soft: #fae7e6;
  --blue: #326c92;
  --blue-soft: #e4eef5;
  --shadow: 0 10px 28px rgba(24, 32, 30, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(20, 122, 97, 0.24); outline-offset: 1px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; font-weight: 500; }
h2 { font-size: 19px; font-weight: 500; }
h3 { font-size: 16px; font-weight: 500; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--nav); }
.auth-panel { width: min(430px, 100%); background: var(--surface); padding: 32px; border-radius: 8px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.auth-logo { display: block; width: min(320px, 100%); height: auto; }
.form-stack { display: grid; gap: 15px; }
.form-field { display: grid; gap: 7px; min-width: 0; }
.form-field > span, .form-label { color: #34403d; font-weight: 500; }
.form-control, .form-select, textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); padding: 9px 11px; }
textarea { min-height: 88px; resize: vertical; }
.form-error { color: var(--red); min-height: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.span-2 { grid-column: 1 / -1; }
.task-room-picker { align-content: start; }
.task-room-search { position: relative; }
.task-room-search i, .task-room-search > svg { position: absolute; left: 11px; top: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.task-room-search .form-control { padding-left: 36px; }
.task-room-search-status { min-height: 16px; color: var(--muted); font-size: 11px; }
.remember-control { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); cursor: pointer; }
.remember-control input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.login-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }

.button { min-height: 40px; border: 1px solid var(--line); border-radius: 5px; padding: 8px 14px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.button:hover { background: var(--surface-2); }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.danger { color: var(--red); border-color: #e7c1bf; }
.button.small { min-height: 32px; padding: 5px 9px; font-size: 13px; }
.button:disabled { opacity: 0.5; cursor: not-allowed; }
.button i, .icon-button i, .nav-item i { width: 17px; height: 17px; }
.icon-button { position: relative; width: 38px; height: 38px; border: 0; border-radius: 5px; display: grid; place-items: center; color: var(--muted); background: transparent; }
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 2px solid var(--surface); }
.inline-actions { display: inline-flex; align-items: center; gap: 6px; }
.icon-button.inverse { color: var(--nav-muted); }
.icon-button.inverse:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-logout { display: none; }
.task-alert-button { color: var(--red); background: var(--red-soft); }
.task-alert-button:hover { color: #8d2424; background: #f5d5d3; }
.task-alert-button > span { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--surface); border-radius: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; }
.push-enabled { color: #177053; background: var(--green-soft); }
.push-disabled { color: #9a6107; background: #fff3d7; }
.push-enabled > i, .push-enabled > svg, .push-disabled > i, .push-disabled > svg { width: 20px; height: 20px; stroke-width: 2.25; }
.push-status-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: #16a36d; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: #fff; min-height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 22px; }
.sidebar-logo { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.sidebar-brand strong { display: block; font-size: 16px; font-weight: 500; }
.sidebar-brand span { display: block; margin-top: 3px; font-size: 12px; color: var(--nav-muted); }
.side-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; border: 0; border-radius: 5px; min-height: 42px; padding: 9px 11px; background: transparent; color: var(--nav-muted); display: flex; align-items: center; gap: 10px; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: #fff; color: var(--nav); }
.sidebar-footer { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: space-between; color: var(--nav-muted); }

.main-area { min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { min-height: 78px; padding: 17px 26px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; position: sticky; top: 0; z-index: 10; }
.topbar-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.page-brand-mark { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.app-back-button { flex: 0 0 auto; gap: 4px; color: var(--primary-dark); }
.app-back-button > svg, .app-back-button > i { width: 16px; height: 16px; }
.page-content { flex: 1; width: 100%; padding: 24px 26px 48px; max-width: 1500px; margin: 0 auto; }
.app-footer { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 26px 20px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; overflow-wrap: anywhere; }
.assigned-task-alert { border-bottom: 1px solid #e3b4b1; background: #fff0ef; }
.assigned-task-alert button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 9px 26px; border: 0; background: transparent; color: #862b2b; text-align: left; }
.assigned-task-alert button > i:first-child { width: 22px; height: 22px; animation: task-bell 1.7s ease-in-out infinite; }
.assigned-task-alert button > i:last-child { width: 18px; height: 18px; }
.assigned-task-alert strong, .assigned-task-alert small { display: block; }
.assigned-task-alert strong { font-size: 14px; }
.assigned-task-alert small { margin-top: 2px; color: #9f4d4d; font-size: 11px; }
.push-notification-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 9px 26px; border-bottom: 1px solid #d9c27b; background: #fff8df; color: #6e4d0d; }
.push-notification-prompt > div { min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px; }
.push-notification-prompt i { width: 22px; height: 22px; }
.push-notification-prompt strong, .push-notification-prompt small { display: block; }
.push-notification-prompt small { margin-top: 2px; color: #8d6c27; font-size: 11px; }
.push-enable-button { gap: 5px; white-space: nowrap; }
.push-enable-button i, .push-enable-button svg { width: 15px; height: 15px; }
@keyframes task-bell { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(13deg); } 82% { transform: rotate(-13deg); } 88% { transform: rotate(8deg); } }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 17px; min-width: 0; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); }
.metric-icon { width: 32px; height: 32px; border-radius: 5px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); }
.metric-icon i { width: 17px; height: 17px; }
.metric-value { margin-top: 12px; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-note { color: var(--muted); margin-top: 5px; font-size: 12px; }
.metric-note.alert { color: var(--red); }
.metric-link { color: inherit; text-align: left; appearance: none; }
.metric-link:hover { border-color: var(--primary); }
.metric-link-hint { display: block; margin-top: 9px; color: var(--primary-dark); font-size: 12px; }
.occupancy-history { max-width: 900px; margin-inline: auto; }
.occupancy-heading { align-items: center; }
.occupancy-heading p { text-align: right; max-width: 320px; }
.occupancy-filters { display: grid; gap: 16px; padding: 16px; margin-bottom: 18px; }
.occupancy-month-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.occupancy-month-nav .button { min-height: 40px; }
.occupancy-month-nav input { min-width: 0; width: 100%; }
.occupancy-date-filter summary { color: var(--muted); cursor: pointer; }
.occupancy-date-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 12px; }
.occupancy-date-fields input { min-width: 0; width: 100%; }
.occupancy-type-filter { display: flex; gap: 8px; }
.occupancy-type-filter .button { flex: 1; }
.occupancy-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 2px 0 12px; color: var(--muted); }
.occupancy-counts strong { color: var(--ink); font-size: 20px; }
.occupancy-counts small { margin-left: auto; }
.occupancy-records { display: grid; gap: 10px; }
.occupancy-day { color: var(--muted); font-size: 14px; margin-top: 10px; }
.occupancy-record { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; overflow-wrap: anywhere; }
.occupancy-record-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.occupancy-record-top time { color: var(--muted); font-size: 12px; }
.occupancy-room { color: var(--muted); margin-top: 5px; }
.occupancy-record dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 0; }
.occupancy-record dt { color: var(--muted); font-size: 12px; }
.occupancy-record dd { margin: 4px 0 0; }
.occupancy-record-note { color: var(--muted); margin-top: 12px; font-size: 12px; }
.occupancy-range-error { color: var(--red); padding: 16px; }
.occupancy-transfer-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 14px; }
.occupancy-transfer-location { min-width: 0; background: var(--surface-2); border-radius: 6px; padding: 12px; }
.occupancy-transfer-location > span, .occupancy-transfer-location time { color: var(--muted); font-size: 12px; }
.occupancy-transfer-location strong { display: block; margin-top: 6px; }
.occupancy-transfer-location p { margin: 5px 0; color: var(--muted); }
.occupancy-transfer-arrow { color: var(--primary-dark); font-size: 22px; }
.occupancy-transfer-actions { margin-top: 14px; }
.occupancy-transfer-candidates { display: grid; gap: 10px; margin-bottom: 18px; }
.occupancy-transfer-candidates > h3 { color: var(--orange); }
.occupancy-transfer-pending { border-color: #e4cba8; }
@media (max-width: 520px) {
  .occupancy-heading { align-items: flex-start; flex-direction: column; }
  .occupancy-heading p { text-align: left; }
  .occupancy-month-nav { gap: 6px; }
  .occupancy-month-nav .button { padding-inline: 10px; }
  .occupancy-filters { padding: 12px; }
  .occupancy-date-fields { grid-template-columns: minmax(0, 1fr); }
  .occupancy-date-fields .button { justify-self: start; }
  .occupancy-transfer-route { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .occupancy-transfer-arrow { justify-self: center; transform: rotate(90deg); }
  .occupancy-counts { gap: 10px; }
  .occupancy-counts small { margin-left: 0; flex-basis: 100%; }
}

.rent-insights { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.7fr); gap: 12px; margin-bottom: 20px; }
.rent-progress-panel, .rent-trend-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.rent-insight-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rent-insight-heading span, .rent-insight-heading small { display: block; color: var(--muted); font-size: 11px; }
.rent-insight-heading strong { display: block; margin-top: 4px; font-size: 23px; font-weight: 500; }
.rent-insight-heading > small { padding-top: 5px; text-align: right; }
.rent-progress-track { height: 14px; overflow: hidden; margin-top: 26px; border-radius: 7px; background: #e6eae8; }
.rent-progress-track i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: var(--primary); transition: width .25s ease; }
.rent-progress-values { display: grid; gap: 10px; margin-top: 20px; }
.rent-progress-values span { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.rent-progress-values span > i, .rent-chart-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--primary); }
.rent-progress-values span > i.outstanding { background: var(--orange); }
.rent-progress-values strong { color: var(--ink); font-size: 13px; font-weight: 500; }
.rent-chart-legend { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.rent-chart-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.rent-chart-legend i.receivable { background: #acd8d6; }
.rent-chart-legend i.collected { background: var(--primary); }
.rent-chart-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.rent-trend-chart { min-width: 580px; height: 188px; display: grid; grid-template-columns: repeat(6, minmax(68px, 1fr)); gap: 10px; align-items: stretch; margin-top: 8px; padding: 10px 6px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #edf0ef 44px); }
.rent-trend-month { min-width: 0; display: grid; grid-template-rows: 138px auto auto; align-items: end; text-align: center; }
.rent-trend-stage { height: 132px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.rent-bar { width: 17px; display: block; border-radius: 3px 3px 0 0; background: #acd8d6; }
.rent-bar.collected { background: var(--primary); }
.rent-trend-month > strong { margin-top: 5px; font-size: 11px; font-weight: 500; }
.rent-trend-month > small { color: var(--muted); font-size: 9px; white-space: nowrap; }

.business-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.business-insights .salesperson-panel { grid-column: 1 / -1; }
.analysis-summary { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-left: 6px solid var(--primary); border-radius: 6px; background: var(--surface); }
.analysis-summary.risk-medium { border-left-color: var(--orange); }
.analysis-summary.risk-high, .analysis-summary.risk-emergency { border-left-color: var(--red); }
.analysis-summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.analysis-summary-heading span { color: var(--muted); font-size: 11px; }
.analysis-summary-heading h2 { margin-top: 3px; font-size: 20px; }
.analysis-summary > p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.analysis-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analysis-summary-grid article { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--line); }
.analysis-summary-grid article:last-child { border-right: 0; }
.analysis-summary-grid span, .analysis-summary-grid small { display: block; color: var(--muted); font-size: 11px; }
.analysis-summary-grid strong { display: block; margin: 5px 0; font-size: 23px; font-weight: 600; }
.analysis-summary-grid small { line-height: 1.5; }
.analysis-actions { padding-top: 14px; }
.analysis-actions > strong { font-size: 13px; }
.analysis-actions ol { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 21px; color: #4c5955; font-size: 12px; line-height: 1.6; }
.analytics-trends { margin-top: 24px; }
.analytics-trends .business-insights { margin-bottom: 0; }
.analytics-quick-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #a8cec0; background: #eef7f3; }
.analytics-quick-action strong, .analytics-quick-action span { display: block; }
.analytics-quick-action strong { font-size: 13px; }
.analytics-quick-action span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.performance-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.performance-period-control { width: 180px; }
.performance-period-control span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.performance-table { min-width: 980px; }
.performance-total { background: #eef7f3; }
.performance-total td { border-top: 2px solid #9fc9b8; }
.calculation-note { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.performance-history-note { padding: 12px 14px; border: 1px solid #ebd69e; border-radius: 10px; color: #75521f; background: #fff8e7; }
.performance-history-label { color: #8a641f; font-size: 11px; line-height: 1.6; }
.penalty-ledger-actions { flex-wrap: wrap; }
.penalty-ledger-block { margin-top: 18px; }
.penalty-ledger-block h3 { margin-bottom: 8px; font-size: 14px; }
.penalty-type-panel { padding: 16px; margin-top: 14px; }
.penalty-type-panel h4 { margin: 16px 0 8px; font-size: 13px; }
.finance-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.finance-toolbar p, .finance-record-section .section-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.finance-period-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; }
.finance-period-controls .form-field { width: 160px; }
.finance-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finance-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.finance-category-grid > .panel { padding: 14px; min-width: 0; }
.finance-category-grid h2 { font-size: 16px; margin-bottom: 10px; }
.finance-loading { padding: 20px; }
.finance-screen { max-width: 1000px; margin: 0 auto; }
.finance-page-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.finance-page-heading > div { flex: 1; min-width: 0; }
.finance-page-heading h2 { font-size: 20px; line-height: 1.4; }
.finance-page-heading p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.finance-back { border: 0; background: transparent; color: var(--primary); padding: 10px 4px; font: inherit; cursor: pointer; flex-shrink: 0; }
.finance-selection-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.finance-selection-bar label { flex: 1; min-width: 0; }
.finance-selection-bar label > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.finance-total-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 20px; }
.finance-total-grid article { padding: 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; min-width: 0; }
.finance-total-grid span { display: block; color: var(--muted); font-size: 12px; }
.finance-total-grid strong { display: block; margin-top: 8px; font-size: 23px; font-weight: 650; overflow-wrap: anywhere; }
.finance-total-grid .finance-profit { grid-column: 1 / -1; background: #eaf5f2; border-color: #c7e0d8; }
.finance-entry-list { display: grid; gap: 9px; margin: 16px 0; }
.finance-entry-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.finance-entry-card > span:first-child { min-width: 0; }
.finance-entry-card strong { display: block; font-size: 15px; }
.finance-entry-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.6; }
.finance-entry-amount { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 600; }
.finance-entry-amount b { color: #8c9b96; font-size: 22px; font-weight: 400; }
.finance-section-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 10px; }
.finance-section-total span { color: var(--muted); font-size: 13px; }
.finance-section-total strong { font-size: 24px; }
.finance-page-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 16px 0; }
.finance-inline-form { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.finance-coverage { margin: 12px 0; padding: 12px 14px; border: 1px solid #ecdfb9; border-radius: 9px; background: #fff9eb; color: #75521f; font-size: 12px; }
.finance-coverage summary { cursor: pointer; }
.finance-coverage summary > span { float: right; opacity: .8; font-size: 11px; }
.finance-coverage p, .finance-basis p { line-height: 1.8; margin-top: 10px; }
.finance-basis { color: var(--muted); font-size: 12px; margin: 18px 0; }
.finance-basis summary { cursor: pointer; }
.finance-home-refresh { margin: 16px 0; text-align: center; }
.finance-property-summary { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.finance-property-summary > header { padding: 6px 2px 4px; }
.finance-property-summary > header h3 { font-size: 16px; }
.finance-property-summary .finance-entry-card { margin-top: 8px; padding: 12px; }
.finance-property-summary .finance-entry-card strong { font-size: 12px; }
.finance-property-list { display: grid; gap: 12px; }
.finance-property-query { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; margin: 10px 0; }
.finance-property-query .form-control,.finance-property-query .form-select,.finance-property-query .button { min-height: 44px; min-width: 0; max-width: 100%; }
.finance-property-match { color: var(--muted); font-size: 12px; margin: 12px 0 8px; }
.finance-property-summary > .calculation-note { margin-bottom: 12px; }
.finance-property-vacancy { min-width: 0; padding: 12px 16px; border-top: 1px solid var(--line); background: #f7faf8; }
.finance-property-vacancy h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.finance-property-vacancy p { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-property-vacancy p > span { color: var(--muted); }
.finance-property-vacancy .finance-vacancy-dates { color: var(--muted); font-size: 11px; }
.finance-property-vacancy summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-vacancy-year { padding: 8px 0; }
@media (max-width: 600px) {
  .finance-property-query { grid-template-columns: minmax(0, 1fr); }
  .finance-property-query .button { justify-self: start; }
  .finance-property-vacancy { padding: 12px; }
}
.finance-property-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.finance-property-profile { padding: 14px 16px; border-top: 1px solid var(--line); min-width: 0; }
.finance-property-profile > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.finance-property-profile h3 { font-size: 13px; }
.finance-property-profile .button { min-height: 44px; white-space: normal; }
.finance-profile-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.finance-profile-metrics > div { min-width: 0; }
.finance-profile-metrics dt { color: var(--muted); font-size: 11px; line-height: 1.7; }
.finance-profile-metrics dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.finance-property-profile > p { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-profile-preview { padding: 14px; border: 1px solid #c8dfd4; border-radius: 10px; background: #f0f8f3; min-width: 0; }
.finance-profile-preview .calculation-note { margin-top: 12px; }
.finance-inline-form input[name="propertyFeeUnitPrice"] { width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.finance-recurring-costs { min-width: 0; padding: 12px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.finance-recurring-costs > article { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7faf8; }
.finance-recurring-costs header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; font-size: 12px; }
.finance-recurring-costs header > span { color: var(--muted); }
.finance-recurring-costs dl { display: grid; gap: 10px; margin: 12px 0; }
.finance-recurring-costs dt { color: var(--muted); font-size: 11px; }
.finance-recurring-costs dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.finance-recurring-costs p { margin-top: 8px; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-recurring-costs > p { grid-column: 1 / -1; }
.finance-recurring-costs summary,.finance-recurring-costs .button { min-height: 44px; white-space: normal; }
.finance-recurring-costs summary { cursor: pointer; align-content: center; font-size: 12px; }
.finance-legacy-coverage { padding: 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.finance-legacy-coverage h3 { font-size: 14px; margin-bottom: 10px; }
.finance-legacy-coverage > article { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.finance-legacy-coverage article > p { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-legacy-choice { min-height: 44px; display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-legacy-choice input { flex: 0 0 18px; width: 18px; height: 18px; }
.finance-legacy-choice > span { min-width: 0; }
.finance-legacy-review { margin-top: 12px; }
.finance-legacy-coverage .form-grid { margin-top: 12px; }
.finance-legacy-coverage .form-control { min-height: 44px; }
[data-recurring-start-date] { min-height: 44px; }
[data-finance-form] [name="areaSqm"],[data-finance-form] [name="propertyFeeBasis"],[data-finance-form] [name="propertyFeeAmount"] { min-height: 44px; }
@media (max-width: 600px) {
  .finance-property-profile { padding: 12px; }
  .finance-recurring-costs { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .finance-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-profile-metrics > div:last-child { grid-column: 1 / -1; }
}
.finance-property-open { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; padding: 14px 16px; text-align: left; cursor: pointer; }
.finance-property-open:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; border-radius: inherit; }
.finance-property-payback { display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.finance-property-open strong { display: block; font-size: 14px; }
.finance-property-open small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.finance-property-chevron { color: var(--muted); font-size: 24px; line-height: 1; }
.finance-property-progress { display: flex; align-items: center; gap: 8px; }
.finance-property-progress .finance-payback-track { flex: 1; margin: 0; height: 5px; }
.finance-property-progress.estimated small { color: #8a621f; }
.finance-property-progress.estimated .finance-payback-track > span { background: #a77f36; }
.finance-property-payback .finance-payback-amounts b { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; }
.finance-receipt-timing { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface); min-width: 0; }
.finance-receipt-timing > header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.finance-receipt-timing > header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.finance-receipt-timing > header span, .finance-receipt-timing dt { color: var(--muted); font-size: 11px; }
.finance-receipt-timing > header strong { font-size: 14px; overflow-wrap: anywhere; }
.finance-receipt-timing .button { min-height: 44px; white-space: normal; }
.finance-receipt-timing dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
.finance-receipt-timing dl > div { min-width: 0; }
.finance-receipt-timing dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.finance-receipt-timing > p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px; overflow-wrap: anywhere; }
.finance-recovery-forecast { margin-top: 14px; padding: 12px; border: 1px solid #cfe6df; border-radius: 10px; background: #f0f8f5; min-width: 0; }
.finance-recovery-forecast > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; }
.finance-recovery-forecast > header strong { font-size: 13px; color: var(--primary); }
.finance-recovery-forecast > header span { color: var(--muted); font-size: 11px; }
.finance-recovery-forecast p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.finance-recovery-forecast .finance-forecast-current { font-size: 12px; }
.finance-recovery-forecast .finance-forecast-current b { color: var(--text); font-weight: 600; }
.finance-recovery-forecast dl { margin-top: 10px; }
.finance-recovery-forecast .finance-forecast-date { grid-column: 1 / -1; }
.finance-recovery-forecast dd { color: var(--primary); }
.finance-recovery-forecast.estimated dd { color: #8a621f; }
.finance-recovery-forecast .finance-forecast-status { color: var(--text); font-size: 13px; font-weight: 600; }
.finance-payback { padding: 14px 16px; border-top: 1px solid var(--line); background: #f7faf8; }
.finance-payback-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.finance-payback-heading strong { font-weight: 500; }
.finance-payback-heading b { color: var(--primary); font-size: 15px; }
.finance-payback-track { height: 8px; border-radius: 5px; overflow: hidden; background: #dfe9e4; margin: 12px 0; }
.finance-payback-track > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.finance-payback.pending .finance-payback-heading b { color: var(--muted); font-size: 12px; }
.finance-payback.estimated .finance-payback-heading b { color: #8a621f; }
.finance-payback.estimated .finance-payback-track > span { background: #a77f36; }
.finance-payback-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.finance-payback-amounts > div { min-width: 0; }
.finance-payback-amounts dt { color: var(--muted); font-size: 11px; }
.finance-payback-amounts dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.finance-payback > p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px; overflow-wrap: anywhere; }
.finance-payback-breakdown { display: grid; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dfe9e4; min-width: 0; }
.finance-payback-breakdown p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.finance-payback-breakdown strong { color: var(--text); font-weight: 600; }
.finance-payback > .finance-payback-surplus { color: var(--primary); font-size: 13px; font-weight: 600; }
.finance-secondary-entry { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 480px) {
  .finance-property-open { gap: 8px; padding: 12px; }
  .finance-receipt-timing { padding: 13px; }
  .finance-payback { padding: 13px; }
  .finance-payback-heading { flex-wrap: wrap; }
  .finance-payback-amounts { gap: 8px; }
  .finance-payback-amounts dd { font-size: 13px; }
}
.finance-property-costs { margin: 22px 0 28px; }
.finance-cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.finance-cost-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 15px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.finance-cost-tile strong { font-size: 14px; }
.finance-cost-tile b { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.finance-cost-tile small { font-size: 11px; color: var(--muted); }
.finance-bound-property { padding: 12px 14px; background: #eaf5f2; border-radius: 8px; color: #306f60; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.finance-detail-heading { margin: 20px 0 12px; font-size: 15px; }
.finance-contract-record { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; line-height: 1.7; }
.finance-contract-record > span { min-width: 0; }
.finance-contract-record > button { flex-shrink: 0; }
.finance-rent-free { padding: 3px 0 12px; margin: 18px 0; border-top: 1px solid var(--line); }
.finance-project-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.finance-project-metrics article { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.finance-project-metrics article > span { display: block; font-size: 12px; color: var(--muted); }
.finance-project-metrics strong { display: block; margin-top: 8px; font-size: 23px; overflow-wrap: anywhere; }
.finance-project-metrics strong small { margin-left: 5px; font-size: 13px; font-weight: 400; }
.finance-project-list { display: grid; gap: 12px; margin: 14px 0; }
.finance-project-card { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.finance-project-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 0; font: inherit; color: var(--text); text-align: left; background: transparent; border: 0; cursor: pointer; }
.finance-project-link > span { min-width: 0; }
.finance-project-link strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.finance-project-link small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.finance-project-link > b { font-size: 24px; font-weight: 400; color: var(--muted); }
.finance-project-progress { margin: 18px 0 12px; }
.finance-project-progress > div, .finance-project-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.finance-project-progress > div > span, .finance-project-foot > span { color: var(--muted); }
.finance-project-progress progress { appearance: none; display: block; height: 7px; border: 0; border-radius: 8px; width: 100%; overflow: hidden; background: #e9efec; margin: 9px 0; }
.finance-project-progress progress::-webkit-progress-bar { background: #e9efec; border-radius: 8px; }
.finance-project-progress progress::-webkit-progress-value { background: var(--primary); border-radius: 8px; }
.finance-project-progress progress::-moz-progress-bar { background: var(--primary); border-radius: 8px; }
.finance-project-progress ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; gap: 3px; font-size: 10px; color: #8a9691; text-align: center; }
.finance-project-progress li.reached { color: var(--primary); }
.finance-project-progress li[aria-current] { font-weight: 650; }
.finance-project-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.finance-project-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.finance-project-list-heading h3 { font-size: 15px; }
.finance-project-list-heading select { width: auto; max-width: 58%; font-size: 12px; }
.finance-project-list-heading > span { font-size: 12px; color: var(--muted); }
.finance-project-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.finance-project-breakdown > div { padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.finance-project-breakdown dt { color: var(--muted); font-size: 11px; }
.finance-project-breakdown dd { margin: 5px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.finance-appliances { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.finance-appliances > span { border-radius: 7px; padding: 7px 10px; background: #eaf5f2; color: #306f60; font-size: 12px; }
.finance-project-records { display: grid; gap: 10px; margin: 12px 0; }
.finance-project-records > article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.finance-project-records > article > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.finance-project-records p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.finance-record-attribution { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; }
.finance-record-attribution > span { display: block; }
.finance-project-records.finance-audit-records > article > div { flex-wrap: wrap; overflow-wrap: anywhere; }
.finance-project-records .inline-actions { justify-content: flex-end; margin-top: 10px; }
.finance-record-query { margin: 16px 0; min-width: 0; }
.finance-record-scope { display: flex; flex-wrap: wrap; gap: 8px; }
.finance-record-scope .button[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.finance-record-query > p { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.finance-record-timing { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.finance-lifetime-heading { margin: 18px 0 10px; }
.finance-lifetime-heading h3 { font-size: 16px; }
.finance-lifetime-heading p { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 6px; overflow-wrap: anywhere; }
.finance-period-comparison { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7faf8; margin: 14px 0; }
.finance-period-comparison h3 { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.finance-period-comparison dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.finance-period-comparison dl > div { min-width: 0; }
.finance-period-comparison dt { color: var(--muted); font-size: 11px; }
.finance-period-comparison dd { margin: 5px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.finance-cost-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; background: #f7faf8; border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; }
.finance-cost-period span,.finance-cost-period small { font-size: 12px; color: var(--muted); }
.finance-cost-period strong { font-size: 16px; overflow-wrap: anywhere; }
.finance-annual-rent { margin-top: 22px; }
.finance-rent-main > header > div { min-width: 0; }
.finance-rent-main > header small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.finance-rent-main > header > div > strong { display: block; font-size: 30px; color: var(--primary); overflow-wrap: anywhere; }
.finance-rent-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 12px; font-size: 13px; }
.finance-rent-terms > * { padding: 6px 9px; border-radius: 7px; background: #edf5f0; color: #286b54; }
.finance-rent-usage { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-rent-unset { padding: 20px; border: 1px dashed #b9cfc3; border-radius: 12px; background: #f5faf7; }
.finance-rent-unset h3 { font-size: 19px; color: var(--primary); margin-bottom: 9px; }
.finance-rent-unset p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.finance-rent-accounting,.finance-rent-other-rounds,.finance-rent-payment-details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 18px 0; min-width: 0; }
.finance-rent-accounting > summary,.finance-rent-other-rounds > summary,.finance-rent-payment-details > summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 14px; line-height: 1.7; }
.finance-rent-accounting { background: #f8faf9; }
.finance-rent-payment-details { margin-bottom: 0; }
.finance-operating-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.finance-operating-metrics > article { min-width: 0; padding: 16px; border: 1px solid #c8dfd4; border-radius: 12px; background: #f0f8f3; }
.finance-operating-metrics article > span { display: block; color: #456657; font-size: 12px; line-height: 1.7; }
.finance-operating-metrics article > strong { display: block; font-size: 23px; font-weight: 650; margin: 8px 0; color: var(--primary); overflow-wrap: anywhere; }
.finance-operating-metrics small { display: block; color: var(--muted); font-size: 11px; line-height: 1.8; }
.finance-rent-supplement { min-height: 44px; max-width: 100%; white-space: normal; margin-top: 8px; }
.finance-operating-metrics > p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.finance-tenant-cash { padding: 15px; margin: 20px 0; min-width: 0; border: 1px solid #d6e1eb; border-radius: 11px; background: #f4f8fb; }
.finance-tenant-cash > header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.finance-tenant-cash h3 { font-size: 15px; }
.finance-tenant-cash header > span { font-size: 11px; color: #526b80; }
.finance-tenant-cash dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.finance-tenant-cash dl > div { min-width: 0; }
.finance-tenant-cash dt { color: var(--muted); font-size: 12px; }
.finance-tenant-cash dd { font-size: 18px; margin: 7px 0; overflow-wrap: anywhere; }
.finance-tenant-cash > p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 10px 0; }
.finance-tenant-cash details > summary { font-size: 13px; cursor: pointer; min-height: 44px; align-content: center; }
.finance-historical-rent { min-width: 0; margin: 18px 0; padding: 16px; border: 1px solid #c8dfd4; border-radius: 11px; background: #f7fbf8; }
.finance-historical-rent > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.finance-historical-rent > header > div { flex: 1 1 240px; min-width: 0; }
.finance-historical-rent h3 { font-size: 16px; }
.finance-historical-rent p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0; overflow-wrap: anywhere; }
.finance-historical-rent .button { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.finance-historical-records > summary { min-height: 44px; align-content: center; cursor: pointer; font-size: 13px; overflow-wrap: anywhere; }
.finance-historical-list { display: grid; gap: 12px; }
.finance-historical-list > article { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.finance-historical-list > article.is-void { background: #f5f6f5; }
.finance-historical-list header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.finance-historical-list header > strong { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.finance-historical-list header > span { font-size: 12px; color: var(--muted); }
.finance-historical-list dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 14px 0; }
.finance-historical-list dl > div { min-width: 0; }
.finance-historical-list dt { color: var(--muted); font-size: 12px; }
.finance-historical-list dd { font-size: 14px; margin: 5px 0 0; overflow-wrap: anywhere; }
.finance-historical-list .finance-page-actions { justify-content: flex-start; margin-bottom: 0; }
.finance-continuation-total { flex-wrap: wrap; }
.finance-continuation-total strong { min-width: 0; overflow-wrap: anywhere; }
.finance-continuation-metrics { margin-bottom: 12px; }
.finance-continuation-metrics small { display: block; margin-top: 6px; color: var(--muted); }
.finance-continuation-list { display: grid; gap: 12px; min-width: 0; }
.finance-continuation-list h3 { font-size: 16px; }
.finance-continuation-list .form-control { min-height: 44px; max-width: 100%; }
.finance-continuation-tenants { display: grid; gap: 8px; }
.finance-continuation-tenants article { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.finance-continuation-tenants article > div { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; }
.finance-continuation-tenants strong { display: block; font-size: 14px; }
.finance-continuation-tenants span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.finance-continuation-tenants .button, .finance-continuation-form .button { min-height: 44px; max-width: 100%; }
.finance-continuation-form .form-field, .finance-continuation-form input { min-width: 0; max-width: 100%; }
.finance-daily-rent { margin: 24px 0; min-width: 0; }
.finance-daily-rent h3 { font-size: 15px; margin-bottom: 8px; }
.finance-daily-rent > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.finance-daily-rent-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; background: var(--surface); }
.finance-daily-rent-list > article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.finance-daily-rent-list > article:last-child { border-bottom: 0; }
.finance-daily-rent-list time { overflow-wrap: anywhere; }
.finance-daily-rent-list article > span { color: var(--muted); text-align: center; font-size: 12px; }
.finance-daily-rent-list strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.finance-commission-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.finance-commission-totals > article { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.finance-commission-totals span { font-size: 12px; color: var(--muted); }
.finance-commission-totals strong { display: block; font-size: 22px; margin-top: 8px; overflow-wrap: anywhere; }
.finance-commission-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.finance-commission-filters label { min-width: 0; }
.finance-commission-filters label > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.finance-commission-records { display: grid; gap: 13px; margin: 16px 0; }
.finance-commission-records > article { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.finance-commission-records header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.finance-commission-records header > strong { font-size: 16px; overflow-wrap: anywhere; }
.finance-commission-records header > span { color: #487362; font-size: 12px; }
.finance-commission-records p { font-size: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; margin: 8px 0; }
.finance-commission-records dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.finance-commission-records dl > div { min-width: 0; }
.finance-commission-records dt { font-size: 11px; color: var(--muted); }
.finance-commission-records dd { margin: 6px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.finance-commission-records .finance-page-actions { justify-content: flex-start; }
.finance-commission-records details > summary,.finance-commission-rules > summary,.finance-commission-sales > summary { min-height: 44px; align-content: center; cursor: pointer; font-size: 13px; }
.finance-commission-rules,.finance-commission-sales { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 20px 0; background: #f7faf8; min-width: 0; }
.finance-commission-rules ul { margin: 10px 0; padding-left: 20px; }
.finance-commission-rules li,.finance-commission-rules > p { font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.finance-commission-sales article { padding: 13px 0; border-top: 1px solid var(--line); }
.finance-commission-sales article > p { font-size: 12px; line-height: 1.8; margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.finance-commission-payment { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 12px; }
.finance-commission-payment > span { min-width: 0; overflow-wrap: anywhere; }
.finance-commission-quote { min-width: 0; border: 1px solid #cbded2; border-radius: 10px; background: #f0f8f3; padding: 14px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-commission-quote > small { display: block; color: var(--muted); font-size: 11px; }
.finance-commission-quote ul { padding-left: 18px; margin: 8px 0 0; }
.finance-commission-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 13px; line-height: 1.8; padding: 8px 0; }
.finance-commission-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.finance-commission-readonly { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; min-width: 0; margin: 0; padding: 0; border: 0; }
@media (max-width: 760px) {
  .finance-operating-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .finance-operating-metrics > article:nth-child(3) { grid-column: 1 / -1; }
  .metrics[aria-label="关键经营指标"] > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .finance-commission-readonly { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .finance-rent-main > header > div > strong { font-size: 28px; }
  .finance-rent-accounting,.finance-rent-other-rounds,.finance-rent-payment-details { padding: 10px 12px; }
  .finance-operating-metrics > article { padding: 12px; }
  .finance-operating-metrics article > strong { font-size: 21px; }
  .finance-tenant-cash { padding: 12px; }
  .finance-tenant-cash dl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .finance-historical-rent { padding: 12px; }
  .finance-historical-rent > header > div { flex-basis: 100%; }
  .finance-historical-rent > header > .button { width: 100%; justify-content: center; }
  .finance-historical-list > article { padding: 12px; }
  .finance-historical-list dl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .finance-historical-list .finance-page-actions > .button { flex: 1 1 auto; min-width: 0; }
  .finance-daily-rent-list > article { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) minmax(0, .8fr); gap: 6px; padding: 12px 10px; font-size: 12px; }
  .finance-commission-totals { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .finance-commission-totals > article { padding: 13px; }
  .finance-commission-filters { grid-template-columns: minmax(0, 1fr); }
  .finance-commission-records > article { padding: 13px; }
  .finance-commission-records dl { gap: 7px; }
  .finance-commission-records dd { font-size: 13px; }
  .finance-commissions .button { min-height: 44px; white-space: normal; max-width: 100%; }
  .finance-commission-records .finance-page-actions > .button { flex: 1 1 auto; min-width: 0; }
}
.finance-annual-plan { min-width: 0; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.finance-annual-plan > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.finance-annual-plan > header strong { font-size: 17px; overflow-wrap: anywhere; }
.finance-annual-plan > header > span { font-size: 12px; color: var(--primary); padding: 5px 8px; border-radius: 6px; background: #eaf5f2; }
.finance-annual-preview { min-width: 0; padding: 15px; margin-top: 14px; border: 1px solid #d6e5dc; border-radius: 10px; background: #f5faf7; }
.finance-annual-preview h3 { font-size: 14px; margin: 0 0 14px; }
.finance-annual-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.finance-annual-dates > div { min-width: 0; }
.finance-annual-dates dt { font-size: 12px; color: var(--muted); line-height: 1.6; }
.finance-annual-dates dd { margin: 5px 0 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.finance-annual-priority { padding: 12px 14px; background: #eef5fa; border-radius: 8px; color: #48657c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.finance-rent-series-round { min-width: 0; width: 100%; margin: 8px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.finance-rent-series-round[hidden] { display: none; }
.finance-rent-series-round > legend { max-width: 100%; padding: 0 6px; font-size: 14px; line-height: 1.8; font-weight: 600; overflow-wrap: anywhere; }
.finance-rent-series-round .form-grid { min-width: 0; }
.finance-rent-series-round .form-control,.finance-rent-series-round .form-select { min-height: 44px; }
.finance-rent-series-round .finance-annual-preview { margin-top: 16px; }
.finance-rent-series-entry .button { min-height: 44px; white-space: normal; max-width: 100%; }
.finance-rent-cash-summary { margin: 18px 0; padding: 16px; border: 1px solid #c8dfd4; border-radius: 12px; background: #f0f8f3; min-width: 0; }
.finance-rent-cash-summary h3,.finance-rent-payment-schedule h3,.finance-rent-payment-history > h3,.finance-initial-payment h3 { font-size: 15px; margin-bottom: 12px; }
.finance-rent-cash-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.finance-rent-cash-summary dl > div { min-width: 0; }
.finance-rent-cash-summary dt { font-size: 12px; color: var(--muted); line-height: 1.7; }
.finance-rent-cash-summary dd { font-size: 20px; font-weight: 600; margin: 6px 0 0; overflow-wrap: anywhere; }
.finance-rent-cash-summary > p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 12px 0; }
.finance-rent-payment-schedule { margin-top: 18px; }
.finance-rent-payment-totals { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; margin-bottom: 12px; }
.finance-rent-payment-totals strong { overflow-wrap: anywhere; }
.finance-rent-payment-schedule > article { padding: 14px; margin: 10px 0; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.finance-rent-payment-schedule > article > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.finance-rent-payment-schedule > article > div > span { color: var(--muted); }
.finance-rent-payment-schedule dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.finance-rent-payment-schedule dl > div { min-width: 0; }
.finance-rent-payment-schedule dt { font-size: 11px; color: var(--muted); }
.finance-rent-payment-schedule dd { font-size: 14px; margin: 5px 0 0; overflow-wrap: anywhere; }
.finance-rent-payment-warning { margin-top: 14px; padding: 12px; color: #805e29; background: #fff7e7; border-radius: 8px; font-size: 12px; line-height: 1.8; }
.finance-rent-payment-history { margin-top: 24px; }
.finance-initial-payment { padding: 15px; border: 1px solid #c8dfd4; border-radius: 10px; background: #f0f8f3; min-width: 0; }
.finance-legacy-rent { margin: 24px 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.finance-legacy-rent > summary { cursor: pointer; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.finance-legacy-rent .finance-contract-record > span { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .finance-annual-plan,.finance-legacy-rent { padding: 12px; }
  .finance-annual-preview { padding: 12px; }
  .finance-rent-series-round { padding: 12px; }
  .finance-rent-series-round .form-grid { grid-template-columns: minmax(0, 1fr); }
  .finance-rent-series-round .span-2 { grid-column: auto; }
  .finance-annual-dates { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .finance-annual-plan .finance-page-actions .button,.finance-annual-rent > .finance-page-actions .button { flex: 1 1 auto; min-width: 0; white-space: normal; min-height: 44px; }
  .finance-legacy-rent .finance-page-actions .button { max-width: 100%; white-space: normal; min-height: 44px; }
  .finance-rent-cash-summary { padding: 13px; }
  .finance-rent-cash-summary dl { grid-template-columns: minmax(0, 1fr); }
  .finance-initial-payment,.finance-rent-payment-schedule > article { padding: 12px; }
  .finance-rent-payment-schedule dl { gap: 7px; }
  .finance-rent-payment-schedule dd { font-size: 13px; }
  .finance-rent-payment-schedule .button { width: 100%; min-height: 44px; }
}
.data-table .finance-record-timing { margin-top: 0; }
@media (max-width: 480px) {
  .finance-record-scope .button { flex: 1; min-width: 0; min-height: 44px; padding: 9px 10px; white-space: normal; }
  .finance-project-records > article > div:first-child { flex-wrap: wrap; overflow-wrap: anywhere; }
  .finance-project-records > article > div:first-child > * { min-width: 0; }
  .finance-selection-bar { gap: 6px; }
  .finance-selection-bar .form-select { padding-inline: 6px; }
}
@media (max-width: 760px) {
  .finance-toolbar { flex-direction: column; align-items: stretch; }
  .finance-period-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-period-controls .form-field { width: auto; }
  .finance-category-grid { grid-template-columns: 1fr; }
  .finance-metrics { grid-template-columns: 1fr; }
  .finance-record-section .section-heading { flex-direction: column; align-items: stretch; }
}
.checkout-warning { margin-bottom: 14px; padding: 11px 12px; border-left: 4px solid var(--orange); background: var(--orange-soft); }
.checkout-warning strong, .checkout-warning span { display: block; }
.checkout-warning strong { font-size: 13px; }
.checkout-warning span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.trend-card, .salesperson-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.trend-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.trend-heading span, .trend-heading small { display: block; color: var(--muted); font-size: 11px; }
.trend-heading strong { display: block; margin-top: 3px; font-size: 20px; }
.trend-svg { width: 100%; height: 112px; display: block; margin-top: 4px; overflow: visible; }
.trend-svg line { stroke: #e6eae8; stroke-width: 1; }
.trend-svg polyline { fill: none; stroke: #a33a82; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.loss-trend .trend-svg polyline { stroke: #c56d20; }
.income-trend .trend-svg polyline { stroke: #16805a; }
.trend-dates { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.salesperson-list { display: grid; gap: 10px; margin-top: 14px; }
.salesperson-row { display: grid; grid-template-columns: minmax(76px, 1fr) minmax(52px, 1fr) auto auto; align-items: center; gap: 8px; }
.salesperson-row > div:first-child { min-width: 0; }
.salesperson-row strong, .salesperson-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salesperson-row span, .salesperson-row small { color: var(--muted); font-size: 10px; }
.salesperson-bar { height: 7px; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.salesperson-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.salesperson-row b { font-size: 12px; white-space: nowrap; }
.salesperson-row small { white-space: nowrap; }
.section { margin-bottom: 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel-padding { padding: 16px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; background: #f8f9f8; }
.data-table th, .data-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-cell-value { min-width: 0; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfa; }
.data-table .amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.status { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 8px; font-size: 12px; white-space: nowrap; background: var(--surface-2); color: #495451; }
.status.green { background: var(--green-soft); color: #17694f; }
.status.orange { background: var(--orange-soft); color: var(--orange); }
.status.red { background: var(--red-soft); color: var(--red); }
.status.blue { background: var(--blue-soft); color: var(--blue); }
.priority-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: #9ba4a1; }
.priority-dot.high { background: var(--red); }
.priority-dot.normal { background: var(--orange); }
.priority-dot.low { background: var(--blue); }
.priority-select { border-left-width: 5px; font-weight: 600; }
.priority-select.priority-high { border-left-color: var(--red); color: #a42c37; }
.priority-select.priority-normal { border-left-color: var(--orange); color: #8b5a08; }
.priority-select.priority-low { border-left-color: var(--blue); color: #23648a; }
.task-actions { display: flex; align-items: center; gap: 5px; }
.task-actions .button { min-width: max-content; }
.task-status-control { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 150px; }
.task-status-control .form-select { min-width: 100px; width: auto; }
.task-reviewer { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.task-reviewer i, .task-reviewer svg { width: 15px; height: 15px; }
.task-review-context { display: grid; gap: 4px; padding: 11px 13px; border-left: 4px solid var(--primary); background: var(--green-soft); }
.task-review-context span, .task-review-submission > div span { color: var(--muted); font-size: 11px; }
.task-review-submission { padding: 14px 0; border-bottom: 1px solid var(--line); }
.task-review-submission:first-of-type { padding-top: 0; }
.task-review-submission:last-child { border-bottom: 0; }
.task-review-submission > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.task-review-submission > p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.task-review-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.task-review-gallery button { min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; }
.task-review-gallery img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: cover; background: var(--surface-2); }
.task-review-gallery .review-image-name { display: block; overflow: hidden; padding: 7px 8px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-review-gallery .review-thumbnail { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.review-thumbnail img { position: absolute; inset: 0; }
.review-thumbnail .review-thumb-status { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: var(--muted); font-size: 12px; }
.review-history { border-top: 1px solid var(--line); }
.review-history > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 10px 0; cursor: pointer; color: var(--muted); font-size: 12px; }
.review-history > summary::after { content: '展开'; color: var(--primary-dark); }
.review-history[open] > summary::after { content: '收起'; }
.review-history > summary span { margin-left: auto; font-size: 11px; }
.review-history .task-review-submission { padding-top: 0; }
.review-image-viewer { width: min(1080px, calc(100% - 28px)); height: min(88vh, 960px); height: min(88dvh, 960px); max-width: 100%; max-height: 96vh; max-height: 96dvh; padding: 0; margin: auto; overflow: hidden; border: 0; border-radius: 9px; background: #101923; color: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.review-image-viewer[open] { display: flex; flex-direction: column; }
.review-image-viewer::backdrop { background: rgba(4, 10, 17, .8); }
.review-viewer-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #2c3743; }
.review-viewer-header > div { min-width: 0; }
.review-viewer-header p { overflow: hidden; margin-bottom: 4px; color: #b5c4d3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-viewer-header h2 { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.review-viewer-icon { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #42505f; border-radius: 6px; background: #1c2936; color: #fff; font-size: 27px; line-height: 1; }
.review-viewer-icon:hover { background: #2e4052; }
.review-viewer-icon:disabled { opacity: .35; cursor: default; }
.review-viewer-viewport { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; overscroll-behavior: contain; background: #09111a; }
.review-viewer-viewport > img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; cursor: zoom-in; }
.review-image-viewer.is-zoomed .review-viewer-viewport { display: block; }
.review-image-viewer.is-zoomed .review-viewer-viewport > img { min-width: 100%; max-width: none; max-height: none; cursor: zoom-out; }
.review-viewer-message { position: absolute; inset: auto 12px 14px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.review-viewer-message p { max-width: 100%; padding: 8px 12px; border-radius: 5px; background: rgba(4,10,17,.8); color: #e2eaf2; font-size: 13px; text-align: center; }
.review-viewer-message button { pointer-events: auto; }
.review-viewer-footer { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 16px; border-top: 1px solid #2c3743; }
.review-viewer-paging, .review-viewer-tools { display: flex; align-items: center; gap: 8px; }
.review-viewer-paging > span { min-width: 54px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.review-image-viewer .button { min-height: 44px; border-color: #42505f; background: #1c2936; color: #fff; }
.review-image-viewer .button:hover, .review-image-viewer .button[aria-pressed="true"] { background: #2e4052; }
.review-image-viewer button:focus-visible { outline: 3px solid #65d5d1; outline-offset: 2px; }
@media (max-width: 600px) {
  .review-image-viewer { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .review-viewer-header { padding: calc(9px + env(safe-area-inset-top)) 12px 9px; }
  .review-viewer-footer { justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .review-viewer-paging { margin-right: auto; }
  .review-viewer-tools .button { padding: 8px 10px; font-size: 12px; }
  .review-history > summary span { display: none; }
}
.task-review-timeline { position: relative; display: grid; gap: 0; margin-top: 14px; }
.task-review-event { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; min-height: 66px; padding-bottom: 14px; }
.task-review-event:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 31px; bottom: 0; width: 2px; background: var(--line); }
.task-review-event-icon { z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.task-review-event-icon i, .task-review-event-icon svg { width: 16px; height: 16px; }
.task-review-event.approved .task-review-event-icon { background: var(--green-soft); color: var(--green); }
.task-review-event.rejected .task-review-event-icon { background: var(--orange-soft); color: var(--orange); }
.task-review-event strong, .task-review-event p, .task-review-event small { display: block; }
.task-review-event p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.task-review-event small { margin-top: 6px; color: var(--ink); font-size: 12px; }
.task-stage-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.task-stage { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-left: 5px solid #9ba4a1; border-radius: 6px; background: var(--surface); color: var(--ink); text-align: left; }
.task-stage span { color: var(--muted); font-size: 12px; }
.task-stage strong { font-size: 23px; font-variant-numeric: tabular-nums; }
.task-stage.stage-in_progress { border-left-color: #237aa7; }
.task-stage.stage-review { border-left-color: #a56b0a; }
.task-stage.stage-done { border-left-color: #27805f; }
.task-stage.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.team-role-select { min-width: 130px; }
.danger-icon { color: var(--red); background: var(--red-soft); }
.danger-icon:hover { color: #8d2424; background: #f5d5d3; }

.task-list, .activity-list, .due-list { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row-title { font-weight: 500; margin-bottom: 4px; }
.list-row-meta { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 9px; }
.activity-list { grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
.activity-list .list-row { grid-template-columns: minmax(0, 1fr); }
.task-row-card { border-left: 5px solid #9ba4a1; margin: 5px 7px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 5px; background: #fff; }
.task-row-card.priority-high, .task-row.priority-high { border-left-color: #c63f4b; background: #fff7f7; }
.task-row-card.status-in_progress, .task-row.status-in_progress { border-left-color: #237aa7; background: #f2f8fc; }
.task-row-card.status-review, .task-row.status-review { border-left-color: #a56b0a; background: #fff9eb; }
.task-row-card.status-done, .task-row.status-done { border-left-color: #27805f; background: #f1faf6; }
.task-table .task-row td:first-child { border-left: 5px solid #9ba4a1; }
.task-table .task-row.priority-high td:first-child { border-left-color: #c63f4b; }
.task-table .task-row.status-in_progress td:first-child { border-left-color: #237aa7; }
.task-table .task-row.status-review td:first-child { border-left-color: #a56b0a; }
.task-table .task-row.status-done td:first-child { border-left-color: #27805f; }

.rent-reminder-list { display: grid; }
.rent-due-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); border-left: 5px solid #1b8a66; background: #fff; }
.rent-due-row:last-child { border-bottom: 0; }
.rent-due-row.urgent { border-left-color: var(--orange); background: #fffaf1; }
.rent-due-row.overdue { border-left-color: var(--red); background: #fff5f4; }
.rent-due-row > button:first-child { min-width: 0; display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(100px, .8fr) minmax(128px, .8fr) minmax(95px, .6fr) 18px; align-items: center; gap: 12px; padding: 6px 4px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.rent-due-row span { min-width: 0; }
.rent-due-row strong, .rent-due-row small, .rent-due-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rent-due-row strong { font-size: 13px; }
.rent-due-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.rent-due-countdown { text-align: right; }
.rent-due-countdown b { color: #187253; font-size: 13px; }
.rent-due-row.urgent .rent-due-countdown b { color: var(--orange); }
.rent-due-row.overdue .rent-due-countdown b { color: var(--red); }
.rent-due-row > button:first-child > i { width: 18px; height: 18px; color: var(--muted); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 5px; padding: 3px; gap: 2px; }
.segment { border: 0; background: transparent; color: var(--muted); border-radius: 4px; min-height: 32px; padding: 6px 10px; }
.segment.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.management-tabs.segmented { flex-wrap: wrap; overflow: visible; min-width: 0; gap: 5px; }
.management-tabs .segment { min-height: 44px; flex: 1 1 auto; white-space: normal; }
.search-control { position: relative; width: min(310px, 100%); }
.search-control i, .search-control > svg { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-control input { padding-left: 34px; }

.property-compact-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.property-compact-summary div { padding: 9px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-compact-summary div:nth-child(4n) { border-right: 0; }
.property-compact-summary div:nth-last-child(-n + 4) { border-bottom: 0; }
.property-compact-summary span { display: block; color: var(--muted); font-size: 10px; }
.property-compact-summary strong { display: block; margin-top: 2px; font-size: 18px; }
.property-compact-summary .alert strong { color: var(--red); }
.property-compact-summary .renovation strong { color: #23648a; font-size: 15px; }
.property-compact-summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.vacancy-loss-summary { display: grid; grid-template-columns: minmax(170px, 1fr) auto; align-items: center; gap: 3px 18px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid #efc8a6; border-left: 6px solid var(--orange); border-radius: 6px; background: #fff9f2; }
.vacancy-loss-summary span { display: flex; align-items: center; gap: 7px; color: #805322; font-size: 12px; font-weight: 600; }
.vacancy-loss-summary span i, .vacancy-loss-summary span svg { width: 17px; height: 17px; }
.vacancy-loss-summary strong { grid-row: 1 / span 2; grid-column: 2; color: #a95519; font-size: 23px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vacancy-loss-summary small { color: var(--muted); font-size: 10px; }
.vacancy-risk-panel { margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 6px solid #27805f; border-radius: 6px; background: var(--surface); }
.vacancy-risk-panel.risk-watch { border-left-color: #237aa7; background: #f4f9fc; }
.vacancy-risk-panel.risk-medium { border-left-color: var(--orange); background: #fffaf0; }
.vacancy-risk-panel.risk-high { border-left-color: var(--red); background: #fff7f7; }
.vacancy-risk-panel.risk-emergency { border-color: #c62828; border-left-color: #a11616; background: #fff0f0; box-shadow: 0 0 0 1px rgba(161,22,22,.08); }
.vacancy-risk-panel.risk-emergency .vacancy-risk-heading strong, .vacancy-risk-panel.risk-emergency .vacancy-risk-heading b { color: #a11616; }
.vacancy-risk-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vacancy-risk-heading span, .vacancy-risk-heading strong { display: block; }
.vacancy-risk-heading span { color: var(--muted); font-size: 11px; }
.vacancy-risk-heading strong { margin-top: 3px; font-size: 18px; }
.vacancy-risk-heading b { font-size: 24px; font-variant-numeric: tabular-nums; }
.vacancy-risk-panel > p { margin-top: 8px; color: #52605c; font-size: 12px; }
.vacancy-risk-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vacancy-risk-facts span { padding: 4px 7px; border-radius: 4px; background: rgba(255,255,255,.72); color: #44504d; font-size: 11px; }
.vacancy-solutions { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.vacancy-solutions > strong { font-size: 13px; }
.vacancy-solutions ol { margin: 7px 0 0; padding-left: 20px; color: #44504d; font-size: 12px; line-height: 1.65; }
.property-search { position: relative; display: block; margin-bottom: 10px; }
.property-search i, .property-search > svg { position: absolute; left: 11px; top: 12px; z-index: 1; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.property-search input { padding-left: 36px; padding-right: 48px; }
.property-search > span { position: absolute; right: 11px; top: 12px; color: var(--muted); font-size: 12px; }
.property-toolbar { align-items: center; }
.property-toolbar-actions { min-width: min(620px, 100%); display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1 1 auto; }
.property-toolbar .property-search { width: min(420px, 100%); margin-bottom: 0; }
.property-sort-control { min-width: 154px; }
.property-sort-control > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.property-sort-control select { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
.suite-list { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.community-block { margin-bottom: 28px; }
.community-header { min-height: 48px; padding: 11px 14px; background: #e9edef; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-header h2 { font-size: 18px; }
.community-header span { color: var(--muted); white-space: nowrap; }
.suite-block { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.suite-block.expanded { box-shadow: var(--shadow); }
.suite-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; flex-wrap: wrap; }
.suite-header > div:first-child { min-width: 0; }
.suite-header strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.suite-header span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.suite-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; }
.suite-summary-button { flex: 1 1 340px; min-width: 0; min-height: 44px; padding: 2px 5px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.suite-summary-button .suite-title { min-width: 0; margin: 0; }
.suite-summary-button .suite-title strong { display: block; font-size: 14px; }
.suite-summary-button .suite-title small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.suite-summary-button .suite-counts { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin: 0; }
.suite-summary-button .suite-counts b, .suite-summary-button .suite-counts em { border-radius: 4px; padding: 3px 5px; background: var(--surface-2); color: #44504d; font-size: 10px; font-style: normal; white-space: nowrap; }
.suite-summary-button .suite-counts em { background: #e5f6ed; color: #126c4c; }
.suite-summary-button .suite-counts em.vacant { background: #fff0f0; color: #bd2f2f; }
.suite-summary-button .suite-counts em.reserved { background: #fff4d9; color: #885b06; }
.suite-summary-button .suite-counts em.renovation { background: #e8f3fa; color: #23648a; }
.suite-summary-button .suite-counts em.rent { background: #f0f4f2; color: #3f4d48; }
.suite-summary-button .suite-counts em.income { background: #e8f5f4; color: #126f6b; }
.suite-summary-button .suite-counts em.daily-rent { background: #e0f3ef; color: #126f6b; white-space: normal; overflow-wrap: anywhere; }
.suite-summary-button .suite-counts em.daily-rent.pending { background: #fff3df; color: #805c22; }
.suite-summary-button .suite-counts em.daily-rent small { display: block; font-size: 9px; font-weight: 400; line-height: 1.5; }
.suite-summary-button .suite-counts em.loss { background: #fff0df; color: #a95519; }
.suite-summary-button .suite-counts em.urgent { background: #b51f1f; color: #fff; }
.suite-block.urgent { border-color: #df9d9d; box-shadow: 0 0 0 1px rgba(181,31,31,.08); }
.suite-summary-button .suite-counts i { width: 16px; height: 16px; color: var(--muted); }
.suite-block.expanded .room-grid { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.property-current-costs { min-width: 0; margin-top: 8px; padding: 9px 10px; border-radius: 5px; background: var(--surface-2); }
.property-cost-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.property-cost-totals > div, .property-cost-component { min-width: 0; }
.property-cost-totals span, .property-cost-totals small, .property-cost-component small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.property-cost-totals strong { display: block; margin: 3px 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.property-cost-details { margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.property-cost-details > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--brand); }
.property-cost-details p, .property-cost-details ul { color: var(--muted); line-height: 1.7; margin: 6px 0; }
.property-cost-details ul { padding-left: 18px; }
.property-cost-components { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 8px; }
.property-cost-component { padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.property-cost-component strong, .property-cost-component span { display: block; font-size: 12px; line-height: 1.7; }
.property-cost-pending { color: #805c22; font-size: 12px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.property-cost-pending .button { min-height: 44px; margin-left: 5px; }
.property-daily-risk-controls { margin: 0 0 12px; min-width: 0; }
.property-daily-risk-filter { display: flex; flex-wrap: wrap; gap: 7px; }
.property-daily-risk-filter .button { min-height: 44px; white-space: normal; }
.property-daily-risk-controls > p { color: var(--muted); margin: 8px 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.property-daily-comparison { padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); margin-bottom: 10px; min-width: 0; }
.property-daily-comparison > header { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 12px; }
.property-daily-comparison > header > span { font-size: 11px; overflow-wrap: anywhere; }
.property-daily-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.property-daily-values > div { min-width: 0; }
.property-daily-values span { display: block; font-size: 11px; line-height: 1.6; }
.property-daily-values strong { display: block; font-size: 14px; line-height: 1.7; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.property-daily-comparison > p { margin: 8px 0 0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.property-daily-comparison.daily-loss { background: #fff0f0; border-color: #d56b6b; color: #a41e25; }
.property-daily-comparison.daily-near { background: #fff5d6; border-color: #d1a435; color: #825b05; }
.property-daily-comparison.daily-pending, .property-daily-comparison.daily-neutral { color: var(--muted); background: #f2f4f3; }

.an-shell { display: grid; gap: 16px; min-width: 0; }
.an-local-nav { display: flex; flex-wrap: wrap; gap: 9px; }
.an-local-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--accent); text-decoration: none; }
.an-panel[id] { scroll-margin-top: 110px; }
.an-show-all { grid-column: 1 / -1; text-align: center; }
.an-show-all .button { min-height: 44px; }
.an-intro { padding: 4px 0; }
.an-intro h2 { margin: 0 0 7px; font-size: 22px; font-weight: 650; }
.an-intro p, .an-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.an-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 18px; min-width: 0; }
.an-heading { margin-bottom: 15px; }
.an-heading h2 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.an-query { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.an-query label, .an-property-tools label { display: grid; gap: 7px; min-width: 0; }
.an-query label > span, .an-property-tools label > span { font-size: 12px; color: var(--muted); }
.an-query label { flex: 0 1 180px; }
.an-query input, .an-query select, .an-property-tools input, .an-property-tools select { width: 100%; min-width: 0; min-height: 44px; }
.an-query .button { min-height: 44px; }
[data-analysis-financial], [data-analysis-operations] { display: grid; gap: 16px; min-width: 0; }
.an-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.an-metric { padding: 14px; background: #f2f6f4; border-radius: 6px; min-width: 0; }
.an-metric > span, .an-metric > strong, .an-metric > small { display: block; }
.an-metric > span { font-size: 12px; color: var(--muted); }
.an-metric > strong { margin: 9px 0; font-size: 25px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.an-metric > small { font-size: 11px; color: var(--muted); line-height: 1.8; }
.an-metric.an-loss { background: #fff0f0; color: #a41e25; }
.an-metric.an-pending { background: #fff7df; }
.an-metric.an-profit { background: #e8f6ef; color: #176c52; }
.an-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 12px 0; overflow-wrap: anywhere; }
.an-warning { padding: 11px 13px; margin: 12px 0; color: #785b16; background: #fff8e3; border-radius: 5px; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.an-warning summary { min-height: 30px; cursor: pointer; }
.an-warning ul { margin: 6px 0; padding-left: 20px; }
.an-detail > summary { min-height: 44px; display: list-item; align-content: center; font-size: 13px; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.an-detail[open] > summary { margin-bottom: 10px; }
.an-costs { display: grid; gap: 13px; }
.an-cost-row > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; }
.an-cost-row span { font-size: 13px; flex: 1; min-width: 75px; }
.an-cost-row strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.an-cost-row small { font-size: 11px; color: var(--muted); }
.an-cost-track { height: 7px; margin-top: 7px; background: #edf1ef; border-radius: 4px; overflow: hidden; }
.an-cost-track i { display: block; height: 100%; background: #32877b; border-radius: 4px; }
.an-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.an-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.an-table th, .an-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.8; min-width: 110px; }
.an-table th { font-weight: 600; color: var(--muted); }
.an-table td small { display: block; color: var(--muted); font-size: 10px; }
.an-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: #edf2f0; color: var(--muted); font-size: 11px; white-space: normal; line-height: 1.7; }
.an-status.an-loss { color: #a41e25; background: #ffeded; }
.an-status.an-near { color: #825b05; background: #fff0c2; }
.an-status.an-profit { color: #176c52; background: #e3f4eb; }
.an-status-summary, .an-operations-summary { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-top: 13px; font-size: 12px; color: var(--muted); }
.an-property-tools { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(2, minmax(140px, 1fr)); gap: 12px; }
.an-property-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 15px; }
.an-property { min-width: 0; border: 1px solid var(--line); padding: 15px; border-radius: 6px; }
.an-property > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.an-property h3 { margin: 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.an-property header p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.an-property-amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.an-property-amounts span { display: block; font-size: 11px; color: var(--muted); }
.an-property-amounts strong { display: block; font-size: 15px; margin-top: 7px; overflow-wrap: anywhere; line-height: 1.7; }
.an-negative { color: #a41e25; }
.an-incomplete { display: block; font-size: 11px; color: #8a6819; margin-top: 6px; }
.an-property footer { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }
.an-property footer .button { min-height: 44px; }
.an-daily { padding: 10px; border: 1px solid var(--line); background: #f5f8f6; border-radius: 5px; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.an-daily > p { margin: 5px 0 0; }
.an-daily > small { display: block; margin-top: 4px; }
.an-daily-loss { border-color: #d56b6b; background: #fff0f0; color: #a41e25; }
.an-daily-near { border-color: #d1a435; background: #fff5d6; color: #825b05; }
.an-daily-pending, .an-daily-neutral { background: #f2f4f3; color: var(--muted); }
.an-vacancy-loss { margin-top: 16px; padding: 14px; background: #fff6e6; border-radius: 6px; }
.an-vacancy-loss span, .an-vacancy-loss strong, .an-vacancy-loss small { display: block; }
.an-vacancy-loss span { font-size: 12px; }
.an-vacancy-loss strong { font-size: 26px; margin: 7px 0; overflow-wrap: anywhere; }
.an-vacancy-loss small { font-size: 11px; color: var(--muted); line-height: 1.9; }
.an-age-buckets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.an-age-buckets span { padding: 8px 11px; background: #f1f5f3; border-radius: 5px; font-size: 11px; line-height: 1.7; }
.an-priorities { display: grid; gap: 12px; }
.an-priorities article { display: flex; align-items: start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.an-priority-index { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; background: #e7f1ed; color: #276a58; font-size: 12px; }
.an-priorities article > div { flex: 1; min-width: 0; }
.an-priorities h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.an-priorities p, .an-priorities small { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.an-priorities .button { min-height: 44px; flex-shrink: 0; }
@media (max-width: 900px) { .an-property-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .an-shell { gap: 12px; }
  [data-analysis-financial], [data-analysis-operations] { gap: 12px; }
  .an-panel { padding: 13px; }
  .an-intro h2 { font-size: 19px; }
  .an-query { padding: 12px; gap: 10px; }
  .an-query label { flex: 1 1 110px; }
  .an-query .button { width: 100%; justify-content: center; }
  .an-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .an-metric { padding: 11px; }
  .an-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .an-metric > strong { font-size: 21px; }
  .an-metric > small { font-size: 10px; }
  .an-property-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .an-property-tools label:first-child { grid-column: 1 / -1; }
  .an-property { padding: 12px; }
  .an-priorities article { flex-wrap: wrap; gap: 8px; }
  .an-priorities article > div { flex-basis: calc(100% - 34px); }
  .an-priorities article > .button { margin-left: 32px; }
}
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.room-card { width: 100%; min-width: 0; border: 2px solid var(--line); border-left-width: 6px; border-radius: 6px; padding: 9px 10px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.room-card:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(20, 36, 31, .1); }
.room-card.occupied { background: #e5f6ed; border-color: #16805a; }
.room-card.vacant { background: #fff0f0; border-color: #d33b3b; }
.room-card.signing { background: #fff3cf; border-color: #b66a00; }
.room-card.reserved { background: #fff6df; border-color: #b78316; }
.room-card.reserved .room-card-top { flex-wrap: wrap; gap: 6px; }
.room-card.collection { background: #fff4df; border-color: var(--orange); }
.room-card.leaving { background: #e8f3fc; border-color: #2f7db5; }
.room-card.arrears { background: #ffe8e8; border-color: #b42318; }
.room-card.maintenance { background: #edf0f2; border-color: #68737d; }
.room-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.room-number { display: block; font-size: 16px; font-weight: 700; }
.room-type { color: var(--muted); font-size: 12px; margin-top: 3px; }
.room-state { flex: 0 0 auto; border-radius: 4px; padding: 3px 6px; background: #68737d; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; }
.room-card.occupied .room-state { background: #126c4c; }
.room-card.vacant .room-state { background: #bd2f2f; }
.room-card.signing .room-state { background: #9c5b00; }
.room-card.reserved .room-state { background: #885b06; }
.room-card.collection .room-state { background: var(--orange); }
.room-card.leaving .room-state { display: inline-flex; align-items: center; gap: 4px; background: #1e6598; }
.room-card.arrears .room-state { background: #b42318; }
.room-occupancy { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-top: 9px; }
.room-occupancy strong { min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.room-occupancy span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.room-card-footer { min-height: 24px; margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(71,84,79,.2); display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #52605c; font-size: 11px; }
.room-card-footer i { width: 14px; height: 14px; flex: 0 0 auto; }
.icon-button.compact { width: 32px; height: 32px; }

.room-detail-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-left: 6px solid #68737d; border-radius: 5px; padding: 12px 14px; background: #edf0f2; }
.room-detail-status span { font-size: 18px; font-weight: 700; }
.room-detail-status strong { overflow-wrap: anywhere; text-align: right; }
.room-detail-status.occupied { background: #e5f6ed; border-color: #16805a; }
.room-detail-status.vacant { background: #fff0f0; border-color: #d33b3b; }
.room-detail-status.signing { background: #fff3cf; border-color: #b66a00; }
.room-detail-status.reserved { background: #fff6df; border-color: #b78316; }
.room-detail-status.collection { background: #fff4df; border-color: var(--orange); }
.room-detail-status.leaving { background: #e8f3fc; border-color: #2f7db5; }
.departure-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 21px; min-height: 23px; padding: 1px 4px; border-radius: 3px; color: #fff; background: #2676ad; font-size: 15px; font-weight: 700; line-height: 1.3; vertical-align: middle; }
.room-state .departure-icon { min-width: 17px; min-height: 18px; font-size: 12px; padding: 0 3px; background: #fff; color: #1e6598; }
.departure-plan-notice, .departure-room-note { margin: 10px 0; padding: 12px; background: #edf6fd; border: 1px solid #c4dcee; border-radius: 6px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.departure-room-note > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.departure-room-note p { margin: 6px 0; }
.departure-room-note details p { white-space: pre-wrap; }
.departure-tabs.segmented { flex-wrap: wrap; overflow: visible; margin: 12px 0; gap: 6px; }
.departure-tabs .segment { min-height: 44px; flex: 1 1 auto; white-space: normal; }
.departure-search { width: 100%; margin-bottom: 12px; }
.departure-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 12px 0; }
.departure-item { min-width: 0; padding: 14px; border: 1px solid #c4dcee; border-left: 4px solid #2f7db5; border-radius: 6px; background: var(--surface); overflow-wrap: anywhere; }
.departure-item header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.departure-item h3 { margin: 0; font-size: 15px; }
.departure-item p { margin: 7px 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.departure-item .button { min-height: 44px; white-space: normal; margin-top: 6px; }
.departure-countdown { display: block; margin: 9px 0; font-size: 18px; color: #1e6598; }
.departure-overdue { border-left-color: #b42318; }
.departure-overdue .departure-countdown { color: #b42318; }
.departure-unknown { border-left-color: #b08027; }
.departure-unknown .departure-countdown { color: #8b691c; }
.room-detail-status.arrears { background: #ffe8e8; border-color: #b42318; }
.room-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.room-detail-fact { min-width: 0; padding: 10px 12px; background: var(--surface); }
.room-detail-fact span { display: block; color: var(--muted); font-size: 11px; }
.room-detail-fact strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.room-detail-note { padding: 10px 12px; border-radius: 5px; background: #f4f6f5; color: var(--muted); font-size: 12px; line-height: 1.6; }
.room-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 3px; }
.room-detail-actions .button { justify-content: center; min-width: 0; }

.landlord-list { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.landlord-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1fr) minmax(150px, .9fr) minmax(160px, 1.2fr) 40px; align-items: center; gap: 14px; min-height: 58px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.landlord-row:last-child { border-bottom: 0; }
.landlord-row:nth-child(even) { background: #f8faf9; }
.landlord-row > div { min-width: 0; }
.landlord-row span { display: block; color: var(--muted); font-size: 10px; }
.landlord-row strong { display: block; margin-top: 2px; overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.landlord-name strong { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.landlord-name span { margin-top: 3px; font-size: 11px; }
.button.reminder { border-color: #e5bd60; background: #fff7df; color: #895600; }
.contract-groups { display: grid; gap: 9px; }
.contract-group, .lease-collapsible { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.contract-group > summary, .lease-collapsible > summary { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.contract-group > summary::-webkit-details-marker, .lease-collapsible > summary::-webkit-details-marker { display: none; }
.contract-group > summary:hover, .lease-collapsible > summary:hover { background: #f8faf9; }
.contract-group > summary strong, .contract-group > summary small, .lease-collapsible > summary strong, .lease-collapsible > summary small { display: block; }
.contract-group > summary small, .lease-collapsible > summary small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.contract-group > summary b, .lease-collapsible > summary b { font-size: 13px; white-space: nowrap; }
.contract-group > summary > i, .lease-collapsible > summary > i { width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.contract-group[open] > summary, .lease-collapsible[open] > summary { border-bottom: 1px solid var(--line); background: #f5f8f7; }
.contract-group[open] > summary > i, .lease-collapsible[open] > summary > i { transform: rotate(180deg); }
.lease-collapsible { margin-bottom: 9px; }
.lease-collapsible > summary { grid-template-columns: minmax(0, 1fr) auto auto 18px; }
.lease-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: 18px; padding: 16px; }
.lease-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.fact { border-left: 3px solid var(--line); padding-left: 10px; }
.fact span { display: block; color: var(--muted); font-size: 12px; }
.fact strong { display: block; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.document-list { display: grid; gap: 7px; margin-top: 10px; }
.media-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 7px; }
.media-list-row .document-button { min-width: 0; }
.media-list-row .document-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.document-button { width: 100%; border: 1px solid var(--line); background: var(--surface); min-height: 38px; border-radius: 5px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); text-align: left; }
.document-button i { width: 16px; height: 16px; color: var(--primary); }

.empty-state { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty-state i { width: 28px; height: 28px; margin-bottom: 8px; }

.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 7px; box-shadow: 0 24px 70px rgba(0,0,0,.25); color: var(--ink); }
.modal::backdrop { background: rgba(13, 22, 19, 0.56); }
.modal-header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px; display: grid; gap: 15px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.file-note { color: var(--muted); font-size: 12px; }
.modal-operation-record { overflow-wrap: anywhere; }
.upload-progress { display: grid; gap: 7px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.upload-progress > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.upload-progress progress { width: 100%; height: 8px; accent-color: var(--primary); }
.background-upload { position: fixed; top: 90px; right: 18px; z-index: 90; width: min(330px, calc(100% - 26px)); padding: 13px 14px; border: 1px solid #16805a; border-radius: 6px; background: #f4fbf7; box-shadow: 0 10px 30px rgba(13, 45, 34, .2); }
.background-upload.error { border-color: var(--red); background: #fff5f5; }
.background-upload-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.background-upload-heading strong { font-size: 13px; }
.background-upload-heading span { color: var(--muted); font-size: 12px; }
.background-upload-heading button { width: 28px; height: 28px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.background-upload-file { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.background-upload progress { width: 100%; height: 8px; margin-top: 8px; accent-color: var(--primary); }
.background-upload p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pull-refresh { --pull-progress: 0; position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; z-index: 120; display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transform: translateX(-50%) scale(calc(.82 + var(--pull-progress) * .18)); transform-origin: center; }
.pull-refresh.bottom { top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); }
.pull-refresh-spinner { width: 15px; height: 15px; border: 2px solid #b7c4c0; border-top-color: var(--primary); border-radius: 50%; transform: rotate(calc(var(--pull-progress) * 300deg)); }
.pull-refresh.refreshing .pull-refresh-spinner { animation: refresh-spin .75s linear infinite; }
.pull-refresh strong { font-size: 12px; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
.contract-invite-note { padding: 11px 13px; border-left: 3px solid var(--primary); background: var(--green-soft); color: var(--muted); line-height: 1.6; }
.suffix-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.suffix-input .form-control { border-radius: 5px 0 0 5px; }
.suffix-input span { min-width: 58px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-left: 0; border-radius: 0 5px 5px 0; background: #f3f6f5; color: var(--muted); }
.contract-signing { display: grid; gap: 13px; border-top: 1px solid var(--line); padding-top: 16px; }
.contract-preview { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; line-height: 1.7; color: var(--ink); }
.contract-preview strong { display: block; font-size: 16px; margin-bottom: 7px; text-align: center; }
.contract-preview p { margin: 3px 0; }
.check-row { display: flex; gap: 9px; align-items: flex-start; line-height: 1.55; }
.check-row input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.signature-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.signature-pad { width: 100%; height: 160px; display: block; border: 1px dashed #85938f; border-radius: 6px; background: #fff; touch-action: none; }
.signed-contract { display: grid; gap: 16px; }
.signed-contract pre { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.75; }
.signature-record { display: grid; gap: 7px; }
.signature-record span { color: var(--muted); font-size: 12px; }
.signature-record img { width: min(100%, 360px); height: 130px; object-fit: contain; object-position: left center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.confirm-dialog { width: min(390px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 7px; color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.confirm-dialog::backdrop { background: rgba(13, 22, 19, 0.56); }
.confirm-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; padding: 20px 20px 16px; }
.confirm-body h2 { font-size: 18px; }
.confirm-body p { margin-top: 6px; color: var(--muted); line-height: 1.6; }
.confirm-icon { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.confirm-icon i { width: 20px; height: 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }

.task-reminder { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 28px); padding: 0; overflow: hidden; border: 0; border-top: 6px solid var(--red); border-radius: 7px; color: var(--ink); box-shadow: 0 28px 80px rgba(57, 17, 17, .34); }
.task-reminder::backdrop { background: rgba(30, 10, 10, .7); }
.task-reminder-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 18px 14px; background: #fff7f6; }
.task-reminder-heading p { margin-bottom: 3px; color: var(--red); font-size: 12px; font-weight: 700; }
.task-reminder-heading h2 { font-size: 20px; font-weight: 700; }
.task-reminder-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.task-reminder-icon i { width: 24px; height: 24px; animation: task-bell 1.4s ease-in-out infinite; }
.task-reminder-list { max-height: min(48vh, 390px); display: grid; gap: 8px; overflow-y: auto; padding: 12px 18px; }
.task-reminder-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 5px; background: #fffaf3; }
.task-reminder-item.urgent, .task-reminder-item.overdue { border-left-color: var(--red); background: #fff3f2; }
.task-reminder-item strong, .task-reminder-item span { display: block; }
.task-reminder-item strong { font-size: 14px; }
.task-reminder-item span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.task-reminder-item b { color: var(--orange); font-size: 12px; white-space: nowrap; }
.task-reminder-item.overdue b { color: var(--red); }
.task-reminder-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #fff; }

.toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; background: var(--nav); color: #fff; border-radius: 6px; padding: 11px 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; z-index: 100; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #8f2e2e; }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-summary-grid article:nth-child(2) { border-right: 0; }
  .analysis-summary-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .salesperson-panel { grid-column: 1 / -1; }
  .lease-layout { grid-template-columns: 1fr; }
  .landlord-row { grid-template-columns: minmax(110px, .7fr) minmax(160px, 1fr) minmax(140px, .9fr) 40px; }
  .landlord-note { grid-column: 1 / -1; }
  .landlord-row > .icon-button { grid-column: 4; grid-row: 1; }
  .landlord-row strong { white-space: normal; overflow-wrap: anywhere; }
  .rent-insights { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; min-height: calc(100vh - 66px - env(safe-area-inset-bottom)); min-height: calc(100dvh - 66px - env(safe-area-inset-bottom)); }
  .main-area { min-height: calc(100vh - 66px - env(safe-area-inset-bottom)); min-height: calc(100dvh - 66px - env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { min-height: calc(76px + env(safe-area-inset-top)); padding: calc(18px + env(safe-area-inset-top)) 15px 12px; flex-wrap: wrap; gap: 10px; }
  .topbar > div:first-child { min-width: 0; }
  .page-brand-mark { width: 36px; height: 36px; }
  .topbar h1 { font-size: 20px; overflow-wrap: anywhere; }
  .header-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-end; min-width: 0; gap: 4px; padding-top: 4px; }
  .button, .button.small, .icon-button, .icon-button.compact, .segment { min-height: 44px; }
  .icon-button, .icon-button.compact { min-width: 44px; height: 44px; flex-shrink: 0; }
  .mobile-logout { display: grid; width: 44px; height: 44px; }
  .page-content { padding: 16px 13px 28px; }
  .app-footer { padding: 0 13px 18px; }
  .assigned-task-alert button { padding: 9px 14px; }
  .push-notification-prompt { align-items: flex-start; padding: 10px 14px; }
  .push-notification-prompt .button { flex: 0 0 auto; }
  .form-control, .form-select, textarea { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
  .business-insights { grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
  .analysis-summary { padding: 14px 12px; }
  .analysis-summary-heading h2 { font-size: 18px; }
  .analysis-summary-grid article { padding: 11px 9px; }
  .analysis-summary-grid strong { font-size: 20px; }
  .analytics-quick-action { align-items: stretch; flex-direction: column; }
  .analytics-quick-action .button { width: 100%; justify-content: center; }
  .performance-period-control { width: 100%; }
  .business-insights .salesperson-panel { grid-column: auto; }
  .trend-svg { height: 96px; }
  .metric-card { padding: 13px; }
  .metric-value { font-size: 22px; }
  .metric-note { min-height: 30px; }
  .rent-progress-panel, .rent-trend-panel { padding: 13px; }
  .rent-insight-heading strong { font-size: 21px; }
  .rent-chart-scroll { overflow-x: hidden; }
  .rent-trend-chart { min-width: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding-left: 0; padding-right: 0; }
  .rent-trend-stage { gap: 2px; }
  .rent-bar { width: 10px; }
  .rent-trend-month > small { font-size: 8px; }
  .mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(var(--nav-count, 6), minmax(0, 1fr)); background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav .nav-item { border-radius: 0; padding: 7px 1px; min-height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 3px; font-size: 10px; text-align: center; color: var(--muted); }
  .mobile-nav .nav-item.active { color: var(--primary); background: var(--green-soft); }
  .mobile-nav .nav-item i { width: 20px; height: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .toolbar { align-items: stretch; }
  .segmented { width: 100%; max-width: 100%; overflow-x: auto; }
  .segment { flex: 0 0 auto; }
  .search-control { width: 100%; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-compact-summary div { padding: 7px 8px; }
  .property-compact-summary strong { font-size: 16px; }
  .property-compact-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-compact-summary div:nth-child(4n) { border-right: 1px solid var(--line); }
  .property-compact-summary div:nth-child(2n) { border-right: 0; }
  .property-compact-summary div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .property-compact-summary div:nth-last-child(-n + 2) { border-bottom: 0; }
  .property-toolbar-actions { min-width: 100%; display: grid; grid-template-columns: 1fr; }
  .property-sort-control { min-width: 0; width: 100%; }
  .property-toolbar .property-search { width: 100%; }
  .vacancy-loss-summary { grid-template-columns: 1fr; gap: 4px; padding: 10px 11px; }
  .vacancy-loss-summary strong { grid-row: auto; grid-column: auto; font-size: 21px; }
  .vacancy-risk-panel { padding: 12px; }
  .vacancy-risk-heading b { font-size: 20px; }
  .vacancy-risk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-summary-button { flex-basis: 100%; width: 100%; flex-wrap: wrap; gap: 6px; }
  .suite-summary-button .suite-counts { width: 100%; max-width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .suite-actions { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; padding: 0 2px; }
  .suite-actions .button { width: 100%; justify-content: center; }
  .suite-list { padding-bottom: 68px; }
  .landlord-row { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 9px 48px 9px 11px; }
  .landlord-row .icon-button { position: absolute; top: 9px; right: 7px; }
  .landlord-note { grid-column: 1 / -1; }
  .task-table .task-row { border-left: 5px solid #9ba4a1; }
  .task-table .task-row.priority-high { border-left-color: #c63f4b; }
  .task-table .task-row.status-in_progress { border-left-color: #237aa7; }
  .task-table .task-row.status-review { border-left-color: #a56b0a; }
  .task-table .task-row.status-done { border-left-color: #27805f; }
  .task-table .task-row td:first-child { border-left: 0; }
  .task-stage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-stage { min-height: 54px; padding: 8px 10px; }
  .task-stage strong { font-size: 20px; }
  .task-actions { flex-wrap: wrap; }
  .task-status-control { min-width: 0; }
  .task-review-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rent-due-row { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 10px; }
  .rent-due-row > button:first-child { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 8px; }
  .rent-due-tenant { grid-column: 1; }
  .rent-due-date { grid-column: 1; }
  .rent-due-countdown { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .rent-due-row > button:first-child > i { grid-column: 3; grid-row: 1 / span 3; }
  .contract-group > summary { padding: 9px 11px; }
  .lease-collapsible > summary { grid-template-columns: minmax(0, 1fr) auto 18px; padding: 9px 11px; }
  .lease-collapsible > summary .status { grid-column: 1 / -1; width: fit-content; }
  .lease-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; }
  .section-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
  .panel.table-wrap { overflow: visible; border: 0; background: transparent; }
  .data-table { display: block; min-width: 0; width: 100%; }
  .data-table thead { display: none; }
  .data-table tbody { display: grid; gap: 10px; width: 100%; }
  .data-table tr { display: block; width: 100%; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
  .data-table td, .data-table .amount { display: grid; grid-template-columns: minmax(88px, 34%) minmax(0, 1fr); gap: 10px; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 500; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table .table-cell-value { min-width: 0; overflow-wrap: anywhere; }
  .data-table .form-select { min-width: 0; }
  .inline-actions { flex-wrap: wrap; }
  .toast { left: 13px; right: 13px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .modal { max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .modal-header { position: sticky; top: 0; z-index: 2; background: var(--surface); gap: 10px; }
  .modal-header > div { min-width: 0; overflow-wrap: anywhere; }
  .background-upload { top: calc(82px + env(safe-area-inset-top)); left: 13px; right: 13px; width: auto; }
  .task-reminder-heading { padding: 15px 14px 12px; }
  .task-reminder-list { padding: 10px 14px; }
  .task-reminder-actions { padding: 12px 14px 15px; }
}

@media (max-width: 420px) {
  .auth-panel { padding: 24px 19px; }
  .auth-logo { width: min(270px, 100%); }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .room-card { padding: 10px; }
  .room-occupancy { display: grid; gap: 3px; }
  .room-occupancy span { font-size: 12px; }
  .suite-header { align-items: flex-start; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-top span:first-child { font-size: 12px; }
  .lease-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .finance-total-grid { grid-template-columns: minmax(0, 1fr); }
  .finance-project-metrics { grid-template-columns: minmax(0, 1fr); }
  .finance-entry-card { flex-wrap: wrap; }
  .finance-entry-amount { max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; white-space: normal; }
}

.signing-body { min-height: 100vh; background: #eef2f1; padding: 0; }
.finance-rent-editor-upgrade,.finance-rent-series-paid { min-width: 0; padding: 14px; border: 1px solid #c9dfd4; border-radius: 8px; background: #f0f8f3; }
.finance-rent-editor-upgrade p,.finance-rent-series-paid p { margin: 8px 0; line-height: 1.7; overflow-wrap: anywhere; }
.finance-rent-editor-upgrade .button,.finance-property-rent-entry .button { min-height: 44px; max-width: 100%; white-space: normal; }
.finance-property-rent-entry { padding: 0 16px; }
.finance-rent-series-date-control { min-width: 0; align-self: end; }
.finance-rent-series-date-control[hidden] { display: none; }
.finance-rent-series-date-control p { margin: 0 0 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.finance-rent-series-date-control .button { min-height: 44px; max-width: 100%; white-space: normal; }
.finance-rent-group-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 14px; }
.finance-rent-group-option,.finance-rent-editing-identity { min-width: 0; padding: 14px; border: 1px solid #c9dfd4; border-radius: 8px; background: #f7fbf8; overflow-wrap: anywhere; }
.finance-rent-group-option header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.finance-rent-group-option h3 { margin: 0; font-size: 16px; }
.finance-rent-group-option p,.finance-rent-editing-identity p { margin: 9px 0; line-height: 1.7; font-size: 13px; }
.finance-rent-group-option .button,.finance-rent-editing-identity .button { min-height: 44px; max-width: 100%; white-space: normal; }
.finance-rent-group-option details { margin: 12px 0; font-size: 13px; }
.finance-rent-terms-correction { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 14px; border: 1px solid #dcc993; background: #fff9e8; border-radius: 8px; font-size: 13px; line-height: 1.8; }
.finance-rent-terms-correction input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.finance-rent-terms-correction span { min-width: 0; overflow-wrap: anywhere; }
.signing-page { width: min(760px, 100%); margin: 0 auto; padding: 18px 14px 42px; }
.signing-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.signing-brand img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.signing-brand strong, .signing-brand span { display: block; }
.signing-brand strong { font-size: 19px; }
.signing-brand span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.signing-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 17px; margin-bottom: 12px; }
.signing-panel h1 { font-size: 21px; }
.signing-message { text-align: center; padding: 48px 18px; }
.signing-message p { color: var(--muted); margin-top: 9px; line-height: 1.7; }
.signing-message.success h1 { color: var(--primary); }
.signing-message.error h1 { color: var(--red); }
.signing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.signing-facts div { border-left: 3px solid var(--line); padding-left: 10px; }
.signing-facts .wide { grid-column: 1 / -1; }
.signing-facts span { display: block; color: var(--muted); font-size: 12px; }
.signing-facts strong { display: block; margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }
.signing-terms { margin-top: 17px; padding: 13px; border-radius: 5px; background: #f5f7f6; color: var(--muted); line-height: 1.7; white-space: pre-wrap; }
.signing-submit { width: 100%; min-height: 48px; justify-content: center; margin-top: 4px; }

@media (max-width: 520px) {
  .signing-page { padding: 14px 10px 32px; }
  .signing-panel { padding: 14px; }
  .signing-facts { grid-template-columns: 1fr; }
  .signing-facts .wide { grid-column: auto; }
  .media-upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
  .room-grid { grid-template-columns: 1fr; }
}
