:root {
  --forest: #173d33;
  --forest-2: #245949;
  --leaf: #3e8068;
  --mint: #e8f3ed;
  --mint-strong: #cfe5d7;
  --paper: #f3f2eb;
  --card: #fffefa;
  --ink: #253832;
  --muted: #697971;
  --line: #dce3dc;
  --amber: #ddb550;
  --amber-soft: #fbf0c9;
  --red: #b7463d;
  --red-soft: #f8e2de;
  --gray-soft: #eff1ee;
  --shadow: 0 14px 36px rgba(26, 54, 44, .075);
  --radius: 18px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  font-size: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.session-loading .app-shell { display: none; }
.mobile-account-tools { display: none; }
.session-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--forest); font-size: 24px; line-height: 1.8; }
.server-saving::after { content: "正在保存到服务器…"; position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(243,242,235,.9); color: var(--forest); font-size: 28px; font-weight: 700; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #7eb59b; outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 20px; color: #f5f5e9; background: var(--forest); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 13px; padding: 3px 6px 29px; color: inherit; text-decoration: none; }
.brand-mark { width: 49px; height: 49px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px 15px 15px 4px; color: var(--forest); background: #e9bd63; font-size: 28px; font-weight: 900; }
.brand-copy strong { display: block; font-size: 22px; letter-spacing: .04em; }
.brand-copy small { display: block; margin-top: 4px; color: #a8c4b5; font-size: 14px; letter-spacing: .08em; }
.sidebar-caption { margin: 0 0 9px 11px; color: #89a79a; font-size: 14px; letter-spacing: .12em; }
.main-nav { display: grid; gap: 7px; }
.nav-item { min-height: 54px; width: 100%; display: flex; align-items: center; gap: 13px; padding: 9px 12px; border: 0; border-radius: 12px; color: #d7e4db; background: transparent; text-align: left; font-size: 18px; font-weight: 650; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { color: var(--forest); background: #eff5eb; box-shadow: inset 3px 0 #e6b753; }
.nav-icon { width: 27px; flex: 0 0 27px; color: #a7c8b7; font-size: 24px; line-height: 1; text-align: center; }
.nav-item.active .nav-icon { color: var(--forest-2); }
.nav-badge { min-width: 27px; height: 26px; display: grid; place-items: center; margin-left: auto; padding: 0 7px; border-radius: 20px; color: white; background: #b7463d; font-size: 14px; }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.local-status { display: flex; align-items: flex-start; gap: 10px; margin: 0 2px 16px; padding: 12px 10px; border: 1px solid rgba(207,229,215,.16); border-radius: 12px; background: rgba(255,255,255,.045); }
.status-dot { width: 10px; height: 10px; flex: 0 0 10px; margin-top: 6px; border-radius: 50%; background: #8ec59b; box-shadow: 0 0 0 4px rgba(142,197,155,.12); }
.local-status strong, .local-status small { display: block; }
.local-status strong { font-size: 15px; }
.local-status small { margin-top: 4px; color: #a8beb1; font-size: 15px; }
.utility-nav { min-height: 47px; font-size: 16px; }
.sidebar-foot { margin: 20px 5px 0; color: #87a496; font-size: 14px; }
.sidebar-foot i { margin: 0 5px; color: #dcb45c; font-style: normal; }
.main-area { min-width: 0; padding: 30px clamp(20px, 3.2vw, 52px) 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: 0 0 25px; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: .035em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--forest); font-size: clamp(30px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
h2 { margin-bottom: 0; color: var(--forest); font-size: 27px; line-height: 1.28; }
h3 { margin-bottom: 0; color: var(--forest); font-size: 21px; }
.topbar-tools { display: flex; align-items: center; gap: 25px; }
.month-control { display: grid; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 650; }
.month-control input { min-height: 43px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: var(--card); font-weight: 700; }
.date-clock { min-width: 144px; text-align: right; }
.date-clock span { display: block; color: var(--forest-2); font-size: 14px; font-weight: 750; }
.date-clock strong { display: block; margin: 2px 0; color: var(--forest); font-size: 25px; letter-spacing: .03em; }
.date-clock small { color: var(--muted); font-size: 14px; }
.demo-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding: 13px 16px; border: 1px solid #ead394; border-radius: 12px; color: #624c18; background: #fff6d8; }
.demo-banner[hidden] { display: none; }
.demo-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #bd8f28; font-weight: 900; }
.demo-banner div { display: grid; gap: 3px; }
.demo-banner strong { font-size: 16px; }
.demo-banner div span { color: #79622a; font-size: 14px; }
.demo-banner .button { margin-left: auto; }
.page-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 18px 3px 0; border-top: 1px solid #dce2da; color: #76847c; font-size: 14px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 7px 0 19px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.heading-actions, .button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; color: #fff; background: var(--forest-2); font-size: 17px; font-weight: 750; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { background: var(--forest); box-shadow: 0 5px 13px rgba(23,61,51,.15); }
.button:active { transform: translateY(1px); }
.button-secondary { border-color: #ccd9d0; color: var(--forest-2); background: #f7faf6; }
.button-secondary:hover { color: var(--forest); background: #edf5ef; }
.button-light { min-height: 39px; padding: 7px 13px; border-color: #e5d190; color: #674f15; background: #fffdf6; font-size: 15px; }
.button-light:hover { background: #fff1bf; }
.button-danger { border-color: #ecc4be; color: #9e342f; background: #fff5f3; }
.button-danger:hover { color: #8c2925; background: #fbe7e2; }
.button-small { min-height: 38px; padding: 6px 12px; border-radius: 9px; font-size: 15px; }
.button-quiet { min-height: 38px; border: 0; color: var(--forest-2); background: transparent; font-size: 15px; }
.button-quiet:hover { background: var(--mint); box-shadow: none; }
.panel { border: 1px solid #e1e6df; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.panel-pad { padding: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { min-height: 116px; position: relative; overflow: hidden; padding: 18px 19px; border: 1px solid #e0e6df; border-radius: 15px; background: var(--card); box-shadow: 0 5px 18px rgba(20,55,43,.045); }
.metric-card::after { content: ""; position: absolute; right: -18px; bottom: -36px; width: 100px; height: 100px; border: 1px solid rgba(42,96,72,.12); border-radius: 50%; box-shadow: 0 0 0 10px rgba(42,96,72,.035), 0 0 0 21px rgba(42,96,72,.025); }
.metric-label { color: var(--muted); font-size: 15px; font-weight: 650; }
.metric-value { display: block; margin-top: 8px; color: var(--forest); font-size: 30px; font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.metric-note { display: block; margin-top: 6px; color: #7a8980; font-size: 15px; }
.metric-card.warn .metric-value { color: var(--red); }
.metric-card.gold .metric-value { color: #9a721c; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(285px, .9fr); gap: 18px; }
.building-section { margin-bottom: 18px; padding: 18px; }
.building-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.building-title { display: flex; align-items: baseline; gap: 9px; }
.building-title h3 { font-size: 23px; }
.building-title span { color: var(--muted); font-size: 14px; }
.building-summary { margin-left: auto; color: var(--muted); font-size: 15px; }
.room-grid { display: grid; grid-template-columns: repeat(6, minmax(104px, 1fr)); gap: 10px; }
.room-tile { min-height: 133px; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px; border: 1px solid #d5e3d9; border-radius: 12px; color: var(--ink); background: var(--mint); text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.room-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(23,61,51,.1); }
.room-tile.paid { border-color: #b7d8c1; background: #e3f1e7; }
.room-tile.unpaid { border-color: #ecc0ba; background: var(--red-soft); }
.room-tile.issued { border-color: #e7d48c; background: var(--amber-soft); }
.room-tile.empty { border-color: #e4c95e; background: #f8eab1; }
.room-tile.unrecorded { border-color: #d8ddd8; background: var(--gray-soft); }
.room-number { color: #173d33; font-size: 23px; font-weight: 850; line-height: 1.1; }
.room-state { max-width: 100%; overflow: hidden; color: #4d6258; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.room-name { overflow: hidden; max-width: 100%; color: var(--ink); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.room-rent { margin-top: auto; color: #51675c; font-size: 14px; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 100px; background: rgba(255,255,255,.76); color: #42574d; font-size: 13px; font-weight: 750; }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-pill.paid { color: #26734c; }
.state-pill.unpaid { color: #b7463d; }
.state-pill.issued { color: #99721d; }
.state-pill.empty { color: #95751a; }
.state-pill.unrecorded { color: #6f7872; }
.legend { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(34,61,49,.12); }
.legend-dot.green { background: #cfe7d5; }
.legend-dot.red { background: #f1cfca; }
.legend-dot.yellow { background: #f4e2a2; }
.legend-dot.gray { background: #e2e5e1; }
.quick-stack { display: grid; gap: 14px; }
.quick-card { display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fffefa; text-align: left; }
.quick-card:hover { border-color: #b5cfc0; background: #f8fbf7; }
.quick-symbol { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: var(--forest); background: var(--mint); font-size: 26px; font-weight: 800; }
.quick-card.exit .quick-symbol { color: #9e433a; background: #f9e9e6; }
.quick-card strong { display: block; font-size: 18px; }
.quick-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.soft-note { padding: 15px 16px; border-left: 4px solid #d9b558; border-radius: 0 11px 11px 0; color: #685b3b; background: #fbf5df; font-size: 15px; line-height: 1.6; }
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 12px 0 15px; }
.filter-chip { min-height: 40px; padding: 7px 15px; border: 1px solid #d9e1db; border-radius: 30px; color: #506359; background: #fffefa; font-size: 15px; font-weight: 700; }
.filter-chip.active { border-color: var(--forest-2); color: white; background: var(--forest-2); }
.search-box { min-width: 220px; min-height: 41px; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.table-wrap { overflow: auto; border: 1px solid #e1e6df; border-radius: 14px; background: #fffefa; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 13px 13px; border-bottom: 1px solid #e5e9e3; text-align: left; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 1; color: #4c6257; background: #f3f6f1; font-size: 15px; font-weight: 750; white-space: nowrap; }
td { color: #34463d; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf7; }
.rent-row.status-paid { background: #f0f8f1; }
.rent-row.status-issued { background: #fff9e5; }
.rent-row.status-unpaid { background: #fff0ed; }
.rent-row.status-unrecorded { background: #f4f5f3; }
.room-cell strong { display: block; color: var(--forest); font-size: 19px; }
.room-cell small, td small { display: block; margin-top: 4px; color: #738178; font-size: 14px; }
.money { color: var(--forest); font-weight: 750; white-space: nowrap; }
.money.red { color: #a83c35; }
.table-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.table-actions .button { min-height: 39px; padding: 6px 10px; font-size: 14px; }
.status-label { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 750; white-space: nowrap; }
.status-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status-label.paid { color: #288052; }
.status-label.issued { color: #a27916; }
.status-label.unpaid { color: #b64239; }
.status-label.unrecorded { color: #737e76; }
.split-section { margin-top: 18px; }
.blank-state { padding: 38px 18px; color: var(--muted); text-align: center; }
.blank-state strong { display: block; margin-bottom: 5px; color: var(--forest); font-size: 19px; }
.building-tabs { display: flex; gap: 8px; }
.select, .text-input, .number-input, .date-input, .textarea { width: 100%; min-height: 47px; padding: 9px 12px; border: 1px solid #ccd8cf; border-radius: 9px; color: var(--ink); background: #fff; }
.textarea { min-height: 82px; resize: vertical; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: #40554a; font-size: 15px; font-weight: 750; }
.field label .required { color: #b7463d; }
.field-help { color: #77857c; font-size: 15px; line-height: 1.45; }
.field.full { grid-column: 1 / -1; }
.form-section-title { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; margin: 3px 0 -3px; padding-bottom: 8px; border-bottom: 1px solid #e5e9e2; color: var(--forest); font-size: 17px; font-weight: 800; }
.form-section-title span { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: var(--forest-2); font-size: 13px; }
.occupant-form-row { margin: 2px 0 12px; padding: 15px; border: 1px solid #dfe7df; border-radius: 11px; background: #f8faf6; }
.resident-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--forest); font-size: 17px; }
.compact-grid { gap: 12px; }
.role-badge { display: inline-block; padding: 3px 8px; border-radius: 999px; color: var(--forest-2); background: #e7f1e9; font-size: 13px; font-weight: 750; white-space: nowrap; }
.warning-callout { border-left-color: #c48c20; background: #fff7e4; }
.resident-table { min-width: 960px; }
.resident-table td { vertical-align: middle; }
.resident-table td:first-child { min-width: 145px; }
.summary-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 15px; padding: 13px 16px; border-radius: 10px; background: #f0f6f1; }
.summary-strip span { color: var(--muted); font-size: 14px; }
.summary-strip strong { color: var(--forest); font-size: 20px; }
.building-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.building-switch button { min-height: 42px; padding: 8px 16px; border: 1px solid #d8e0d9; border-radius: 9px; color: var(--muted); background: white; font-size: 15px; font-weight: 700; }
.building-switch button.active { border-color: #aacbb6; color: var(--forest-2); background: #e9f3ec; }
.report-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.report-card { padding: 17px; border: 1px solid #dfe6df; border-radius: 13px; background: #fffefa; }
.report-card span { color: var(--muted); font-size: 14px; }
.report-card strong { display: block; margin-top: 8px; color: var(--forest); font-size: 25px; }
.report-card.red strong { color: var(--red); }
.report-card.gold strong { color: #947015; }
.tabs { display: flex; gap: 5px; padding: 5px; border-radius: 10px; background: #edf1ec; }
.tabs button { min-height: 37px; padding: 7px 13px; border: 0; border-radius: 8px; color: #586a60; background: transparent; font-size: 15px; font-weight: 700; }
.tabs button.active { color: var(--forest); background: white; box-shadow: 0 1px 5px rgba(24,55,43,.1); }
.archive-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid #e6ebe5; }
.archive-card:last-child { border-bottom: 0; }
.avatar { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--forest-2); background: #e7f1e9; font-weight: 850; }
.archive-info { min-width: 0; flex: 1; }
.archive-info strong { display: block; color: var(--ink); font-size: 18px; }
.archive-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.archive-side { text-align: right; }
.archive-side strong { display: block; color: var(--forest); font-size: 16px; }
.archive-side small { color: var(--muted); font-size: 15px; }
.modal-layer[hidden] { display: none; }
.modal-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,32,27,.55); backdrop-filter: blur(2px); }
.modal-card { position: relative; z-index: 1; width: min(740px, 100%); max-height: min(90vh, 920px); display: flex; flex-direction: column; border: 1px solid #e1e6df; border-radius: 17px; background: var(--card); box-shadow: 0 25px 80px rgba(0,0,0,.2); animation: modal-in .18s ease-out; }
.modal-card.wide { width: min(920px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 23px 15px; border-bottom: 1px solid #e5e9e3; }
.modal-head h2 { font-size: 24px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dce3dc; border-radius: 50%; color: #50635a; background: white; font-size: 25px; }
.icon-button:hover { background: #f0f5f0; }
.modal-body { overflow: auto; padding: 19px 23px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 23px 19px; border-top: 1px solid #e5e9e3; }
.toast-stack { position: fixed; right: 23px; bottom: 22px; z-index: 40; display: grid; gap: 9px; }
.toast { max-width: min(440px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 11px; color: white; background: var(--forest); box-shadow: 0 8px 22px rgba(0,0,0,.18); font-size: 16px; animation: modal-in .18s ease-out; }
.toast.error { background: #a83c35; }
.receipt-preview { max-width: 560px; margin: 0 auto; padding: 25px; border: 1px solid #e3e5dc; background: #fff; box-shadow: 0 7px 24px rgba(25,50,40,.07); }
.receipt-preview h3 { margin-bottom: 6px; text-align: center; font-size: 22px; }
.receipt-sub { margin-bottom: 18px; color: var(--muted); text-align: center; font-size: 14px; }
.receipt-line { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dashed #dfe4dc; font-size: 15px; }
.receipt-line.total { margin-top: 6px; border-bottom: 0; color: var(--forest); font-size: 19px; font-weight: 850; }
.receipt-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e1e6df; color: #63736a; font-size: 15px; line-height: 1.6; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 145px; }
.subsection { margin-top: 22px; }
.callout { margin: 14px 0 0; padding: 12px 14px; border-radius: 9px; color: #5b6c62; background: #f2f5f0; font-size: 14px; line-height: 1.55; }
.inline-check { display: flex; align-items: flex-start; gap: 9px; color: #40554a; font-size: 15px; line-height: 1.45; }
.inline-check input { width: 19px; height: 19px; flex: 0 0 auto; margin: 0; accent-color: var(--forest-2); }
.meter-total { padding: 16px; border: 1px solid #e0e5dd; border-radius: 12px; background: #f8f9f5; }
.meter-total h3 { margin-bottom: 10px; }
.meter-total .field-grid { margin-top: 11px; }
.meter-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e0e5dd; color: var(--muted); font-size: 15px; }
.meter-result strong { color: var(--forest); font-size: 21px; }
.bar-track { height: 10px; overflow: hidden; border-radius: 20px; background: #e7ece6; }
.bar-fill { height: 100%; border-radius: inherit; background: #3f8068; }
.cash-highlight { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid #cfe1d3; border-radius: 13px; background: #eef6ef; }
.cash-highlight span { color: #5d7064; font-size: 15px; }
.cash-highlight strong { display: block; margin-top: 4px; color: var(--forest); font-size: 28px; }
.empty-large { padding: 55px 25px; text-align: center; }
.empty-large .empty-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 18px; color: var(--forest-2); background: #e7f1e9; font-size: 28px; }
.empty-large h3 { margin-bottom: 7px; font-size: 21px; }
.empty-large p { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.6; }
.text-link { border: 0; padding: 0; color: var(--forest-2); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.right { text-align: right; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; }
.no-print {}
@media (max-width: 1200px) {
  .room-grid { grid-template-columns: repeat(5, minmax(100px, 1fr)); }
  .metric-grid, .report-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 80px minmax(0, 1fr); }
  .sidebar { padding: 20px 10px 14px; }
  .brand { justify-content: center; padding: 0 0 25px; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-copy, .sidebar-caption, .nav-item > span:not(.nav-icon):not(.nav-badge), .local-status > span:not(.status-dot), .sidebar-foot { display: none; }
  .nav-item { justify-content: center; min-height: 54px; padding: 9px 5px; }
  .nav-icon { width: auto; flex-basis: auto; font-size: 26px; }
  .nav-badge { position: absolute; transform: translate(18px,-14px); min-width: 22px; height: 22px; padding: 0 5px; font-size: 12px; }
  .local-status { justify-content: center; padding: 14px 8px; }
  .local-status .status-dot { margin-top: 0; }
  .main-area { padding: 23px 22px; }
}
@media (max-width: 620px) {
  .mobile-account-tools { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
  :root { font-size: 18px; }
  .app-shell { display: block; padding-bottom: 73px; }
  .sidebar { position: fixed; z-index: 10; inset: auto 0 0; width: 100%; height: 68px; flex-direction: row; align-items: center; justify-content: center; padding: 5px 7px; border-top: 1px solid rgba(255,255,255,.12); }
  .brand, .sidebar-caption, .sidebar-bottom { display: none; }
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-item { position: relative; min-height: 55px; flex-direction: column; justify-content: center; gap: 1px; padding: 3px 1px; border-radius: 9px; font-size: 14px; }
  .nav-item > span:not(.nav-icon):not(.nav-badge) { display: block; }
  .nav-icon { font-size: 21px; }
  .nav-badge { top: 0; right: 9px; position: absolute; transform: none; min-width: 19px; height: 19px; }
  .main-area { padding: 16px 13px 16px; }
  .topbar { align-items: flex-start; gap: 9px; margin-bottom: 17px; }
  h1 { font-size: 29px; }
  .topbar-tools { align-items: flex-end; gap: 8px; }
  .month-control span, .date-clock span, .date-clock small { display: none; }
  .month-control input { min-height: 42px; width: 143px; padding: 5px 6px; font-size: 16px; }
  .date-clock { min-width: auto; }
  .date-clock strong { font-size: 18px; }
  .demo-banner { align-items: flex-start; flex-wrap: wrap; padding: 11px; }
  .demo-banner div { flex: 1; }
  .demo-banner div span { font-size: 15px; }
  .demo-banner .button { width: 100%; margin: 1px 0 0; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-grid, .report-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .metric-card { min-height: 102px; padding: 13px; }
  .metric-label { font-size: 15px; }
  .metric-value { font-size: 25px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .room-tile { min-height: 116px; padding: 10px; }
  .room-number { font-size: 21px; }
  .building-section, .panel-pad { padding: 14px; }
  .building-top { align-items: flex-start; flex-wrap: wrap; }
  .building-summary { width: 100%; margin-left: 0; }
  .section-head { align-items: flex-start; }
  .section-head .legend { justify-content: flex-end; }
  .filter-bar { gap: 6px; }
  .filter-chip { min-height: 41px; padding: 7px 11px; font-size: 15px; }
  .search-box { width: 100%; margin-left: 0; }
  .table-wrap { overflow: auto; }
  table { min-width: 820px; font-size: 15px; }
  .modal-card table { min-width: 0; table-layout: fixed; }
  .modal-card th, .modal-card td { padding: 8px 5px; font-size: 15px; }
  .modal-card th:nth-child(4), .modal-card td:nth-child(4) { display: none; }
  .modal-card td:last-child .button { min-height: 38px; padding: 5px 7px; font-size: 15px; }
  th, td { padding: 10px 9px; }
  .field-grid, .field-grid.three { grid-template-columns: 1fr; }
  .form-section-title { grid-column: 1; }
  .modal-layer { padding: 0; align-items: end; }
  .modal-card, .modal-card.wide { width: 100%; max-height: 94vh; border-radius: 17px 17px 0 0; }
  .modal-head { padding: 15px 17px 12px; }
  .modal-body { padding: 16px 17px; }
  .modal-foot { padding: 12px 17px 16px; }
  .modal-foot .button { flex: 1; }
  .archive-card { gap: 10px; padding: 13px 10px; }
  .archive-info strong { font-size: 16px; }
  .archive-info small { font-size: 14px; }
  .archive-side { min-width: 76px; }
  .archive-side strong { font-size: 15px; }
  .cash-highlight { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; }
  .toolbar .select { flex: 1; min-width: 120px; }
  .page-foot { padding: 13px 2px 0; font-size: 14px; }
}
@media print {
  body { background: white; }
  .sidebar, .topbar, .demo-banner, .page-foot, .no-print, .modal-head, .modal-foot { display: none !important; }
  .app-shell { display: block; }
  .main-area { padding: 0; }
  .panel { box-shadow: none; }
  .print-only { display: block !important; }
}
