:root {
  color-scheme: light;
  --navy: #10263b;
  --navy-deep: #0b1c2d;
  --navy-soft: #1b3954;
  --mint: #84d2bc;
  --mint-deep: #26715e;
  --sky: #76b6ec;
  --orange: #f3ad70;
  --violet: #a995e7;
  --ink: #173046;
  --muted: #526575;
  --line: #e2e9ee;
  --canvas: #f4f7f9;
  --white: #fff;
  --danger: #aa3541;
  --shadow: 0 7px 26px rgba(23, 48, 70, .045);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
a { color: var(--mint-deep); text-underline-offset: 3px; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1 { color: var(--navy); font-size: clamp(25px, 2.4vw, 32px); font-weight: 730; line-height: 1.18; letter-spacing: -.035em; }
h2 { color: var(--navy); font-size: 19px; font-weight: 720; line-height: 1.3; letter-spacing: -.02em; }
h3 { color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.4; }
p { overflow-wrap: anywhere; }
small { font-size: 12px; }
::selection { color: var(--navy); background: #bceadb; }
:focus-visible { outline: 3px solid #26715e; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.app-shell { display: flex; min-height: 100vh; }
.app-shell > *, .workspace > *, .grid-4 > *, .grid-3 > *, .grid-2 > *, .split > *, .form-grid > * { min-width: 0; }
.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 238px; flex-direction: column; gap: 23px; height: 100vh; padding: 30px 16px 18px; overflow-y: auto; color: #d7e3ec; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 13px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; flex: 0 0 39px; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: var(--navy); background: var(--mint); font-size: 21px; font-weight: 800; }
.brand strong { display: block; font-size: 20px; font-weight: 730; line-height: 1.1; letter-spacing: -.025em; }
.brand small, .brand span + div > span { display: block; margin-top: 4px; color: #9db2c2; font-size: 11px; }
.nav-group { display: grid; gap: 5px; }
.nav-group > p, .nav-group > small, .nav-group > .nav-label { margin: 0 12px 5px; color: #8ca6bb; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 9px; color: #b7c8d5; background: transparent; text-align: left; text-decoration: none; font-size: 13px; font-weight: 500; transition: color .15s ease, background .15s ease; }
.nav-link svg { width: 18px; height: 18px; opacity: .9; }
.nav-link:hover { color: #fff; background: #ffffff0e; }
.nav-link.active { color: var(--navy); background: var(--mint); font-weight: 730; }
.nav-link:focus-visible { outline-color: #b6f1e0; outline-offset: 2px; }
.nav-link .badge { margin-left: auto; }
.sidebar-bottom { display: grid; gap: 13px; margin-top: auto; padding: 17px 10px 0; border-top: 1px solid #ffffff16; color: #9db2c2; font-size: 11px; }
.sidebar-bottom strong { display: block; margin-bottom: 4px; color: #edf6fa; font-size: 12px; }
.sidebar-bottom p { font-size: 11px; line-height: 1.6; }
.sidebar-bottom .badge { width: fit-content; color: #bfeadb; background: #84d2bc16; }
.workspace { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 83px; padding: 17px 36px; border-bottom: 1px solid var(--line); background: #fff; }
.context { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.context strong { color: var(--navy); font-size: 13px; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 11px; }
.year-switch { min-height: 37px; padding: 7px 31px 7px 11px; border: 1px solid #dce6ec; border-radius: 8px; color: var(--navy); background: var(--canvas); font-size: 12px; font-weight: 650; }
.year-switch label { color: var(--muted); font-size: 12px; }
.year-switch select { padding: 0 5px; border: 0; color: var(--navy); background: transparent; font-weight: 700; }
main#main { width: 100%; max-width: 1540px; margin: 0 auto; padding: 31px 36px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading p { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--mint-deep); font-size: 10px; font-weight: 800; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; }
.page-actions { display: flex; flex-shrink: 0; align-items: center; flex-wrap: wrap; gap: 8px; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 23px; padding: 28px 29px; overflow: hidden; border: 1px solid #cce6de; border-radius: 13px; color: var(--ink); background: linear-gradient(112deg, #e4f4ee 0%, #eff8f5 62%, #e8f1f8 100%); }
.hero::after { position: absolute; top: -70px; right: -20px; width: 260px; height: 260px; border: 35px solid #84d2bc12; border-radius: 50%; pointer-events: none; content: ""; }
.hero-copy, .hero-actions { position: relative; z-index: 1; }
.hero-copy { max-width: 690px; }
.hero h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; }
.hero p { max-width: 650px; color: #48675f; font-size: 13px; line-height: 1.65; }
.hero .eyebrow { color: #367462; }
.hero-actions { display: flex; flex-shrink: 0; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; color: #526575; background: #edf2f5; font-size: 10px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.badge.mint { color: #276650; background: #e4f4ec; }
.badge.amber { color: #82591c; background: #fff2da; }
.badge.blue { color: #34678e; background: #e9f2fc; }
.badge.gray { color: #5b6b77; background: #edf2f5; }
.grid-4, .grid-3, .grid-2 { display: grid; align-items: stretch; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 + *, .grid-3 + *, .grid-2 + * { margin-top: 23px; }
.card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: var(--shadow); }
.card > p + p { margin-top: 9px; }
.card h3 + p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.metric { position: relative; min-height: 133px; padding: 20px; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-label svg { width: 17px; height: 17px; color: #5f8c80; }
.metric-value { display: block; margin: 14px 0 8px; color: var(--navy); font-size: clamp(22px, 2.2vw, 29px); font-weight: 730; line-height: 1.12; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 14px; }
.section-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-heading .text-muted { font-size: 12px; }
.card .section-heading:first-child { margin-top: 0; }
.module-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 11px; color: inherit; background: #fff; box-shadow: var(--shadow); text-align: left; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
a.module-card:hover, button.module-card:hover, .module-card[data-route]:hover { transform: translateY(-2px); border-color: #a9d0c4; box-shadow: 0 9px 24px #1730460d; }
.module-icon { display: grid; width: 38px; height: 38px; margin-bottom: 17px; place-items: center; border-radius: 10px; color: var(--mint-deep); background: #e9f5ef; font-size: 21px; }
.module-icon svg { width: 20px; height: 20px; }
.module-card:nth-child(3n + 2) .module-icon { color: #3b7196; background: #eaf2fb; }
.module-card:nth-child(3n + 3) .module-icon { color: #927040; background: #fbf1e4; }
.module-title { display: block; margin-bottom: 8px; color: var(--navy); font-size: 15px; font-weight: 720; }
.module-description { flex: 1; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.module-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf1f4; color: var(--mint-deep); font-size: 11px; font-weight: 650; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 41px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: #fff; text-align: center; text-decoration: none; font-size: 12px; font-weight: 650; line-height: 1.45; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: var(--navy); background: var(--mint); box-shadow: 0 3px 7px #26715e12; }
.button.primary:hover { background: #9bddc9; }
.button.secondary { border-color: #d9e4ea; background: #fff; }
.button.secondary:hover { border-color: #b8cdd8; background: #f7fafb; }
.button.ghost { color: var(--muted); background: transparent; }
.button.ghost:hover { color: var(--navy); background: #edf3f6; }
.button.danger { border-color: #f0d3d6; color: var(--danger); background: #fff5f5; }
.button.danger:hover { background: #ffebec; }
.button.small { min-height: 33px; padding: 6px 10px; font-size: 11px; }
.icon-button { flex-shrink: 0; width: 36px; min-height: 36px; padding: 7px; border-color: var(--line); color: var(--muted); }
.icon-button:hover { color: var(--navy); background: var(--canvas); }
.icon-button svg { width: 17px; height: 17px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.card > .table-wrap { margin-top: 17px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--muted); background: #f8fafb; font-size: 10px; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid #edf1f4; vertical-align: middle; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
td strong { font-size: 12px; font-weight: 650; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
td .button + .button { margin-left: 4px; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; padding: 29px 22px; color: var(--muted); text-align: center; }
.empty-state h3 { margin-top: 1px; }
.empty-state p { max-width: 410px; font-size: 12px; line-height: 1.7; }
.empty-state > svg { width: 31px; height: 31px; margin-bottom: 1px; color: #8aa99f; stroke-width: 1.4; }
.empty-state .button { margin-top: 5px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #d9e7ed; border-radius: 9px; color: #3d6275; background: #edf5fa; font-size: 12px; line-height: 1.65; }
.notice.warning { border-color: #ecdcb9; color: #775a24; background: #fff8e9; }
.notice svg { width: 18px; height: 18px; margin-top: 1px; }
.notice strong { display: block; margin-bottom: 3px; font-weight: 700; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid #edf1f4; }
.list-row:first-child { padding-top: 0; }
.list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.list-row > :first-child { min-width: 0; }
.list-row p, .list-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.list-row strong { font-size: 12px; }
.progress { height: 7px; overflow: hidden; border-radius: 20px; background: #eaf0f2; }
.progress > span, .progress > div { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width .3s ease; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .form-field > span { color: #334e61; font-size: 12px; font-weight: 650; }
.form-field small { color: var(--muted); font-size: 11px; line-height: 1.6; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { width: 100%; max-width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #cfdee6; border-radius: 7px; color: var(--ink); background: #fff; font-size: 13px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8396a4; }
textarea { min-height: 95px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; margin: 0; accent-color: var(--mint-deep); }
input[type=file] { font-size: 12px !important; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 5px 8px; border: 0; border-radius: 4px; color: var(--ink); background: #eaf2f5; }
.search-input { min-width: 150px; max-width: 340px !important; }
.dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; background: #071a2b87; backdrop-filter: blur(3px); }
.modal { display: flex; flex-direction: column; width: 100%; max-width: 690px; max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid #dce6ec; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #071a2b40; }
.modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 19px; }
.modal-header p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.modal-body { min-height: 0; padding: 23px 24px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .notice:last-child { margin-bottom: 0; }
.modal-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 9px; padding: 17px 24px; border-top: 1px solid var(--line); background: #fbfcfd; }
.report-preview { padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; }
.report-preview h1 { margin-bottom: 8px; font-size: 23px; }
.report-preview h2 { margin: 25px 0 12px; font-size: 16px; }
.report-preview p { margin-bottom: 10px; }
.report-preview table { margin: 14px 0; }
.tabs { display: flex; gap: 5px; max-width: 100%; margin-bottom: 20px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.tab { flex: 0 0 auto; min-height: 38px; padding: 8px 14px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tab.active, .tab[aria-selected=true] { color: #235d4d; background: #e7f5ee; font-weight: 700; }
.tab:hover { color: var(--navy); background: #f0f5f7; }
.text-muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.mobile-label { display: none; }
.source-link { color: var(--mint-deep); font-size: 11px; font-weight: 650; text-decoration: underline; }
.stack { display: grid; gap: 18px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-bottom: 17px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; }
.checkbox-row input { flex-shrink: 0; margin-top: 2px; }
.checklist { display: grid; gap: 0; }
.checklist label { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf1f4; font-size: 12px; }
.checklist label:last-child { border-bottom: 0; }
.checklist input { flex-shrink: 0; margin-top: 2px; }
.checklist small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.property-card { display: flex; flex-direction: column; gap: 15px; }
.property-address { color: var(--muted); font-size: 12px; }
.property-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.property-stats small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.property-stats strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.category-label { display: flex; align-items: center; gap: 9px; }
.category-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.toast { position: fixed; z-index: 150; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 14px 19px; border: 1px solid #b8dbc9; border-radius: 9px; color: #245b49; background: #edfaf2; box-shadow: 0 8px 30px #10263b17; font-size: 12px; }
.error-text { color: var(--danger); font-size: 12px; }
footer { padding: 22px 36px 25px; color: #6c7f8d; font-size: 10px; line-height: 1.7; }
footer .split { align-items: flex-start; }
#print-report { display: none; }

@media (min-width: 1650px) {
  .topbar { padding-right: 48px; padding-left: 48px; }
  main#main { padding-top: 37px; padding-right: 48px; padding-left: 48px; }
}
@media (max-width: 1180px) {
  .sidebar { flex-basis: 216px; padding-right: 12px; padding-left: 12px; }
  .topbar { padding-right: 25px; padding-left: 25px; }
  main#main { padding-right: 25px; padding-left: 25px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-direction: column; align-items: flex-start; gap: 18px; }
  .page-heading { align-items: flex-start; }
  .page-actions { justify-content: flex-end; }
  footer { padding-right: 25px; padding-left: 25px; }
}
@media (max-width: 880px) {
  .app-shell { display: block; }
  .sidebar { position: static; display: block; width: 100%; height: auto; padding: 17px 20px 0; overflow: visible; }
  .brand { width: fit-content; padding: 0 0 16px; }
  .brand-mark { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 10px; }
  .nav-group { display: contents; }
  .sidebar nav { display: flex; gap: 6px; max-width: 100%; margin: 0 -20px; padding: 0 20px 13px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #526e80 transparent; }
  .sidebar > .nav-group { display: flex; gap: 6px; margin: 0 -20px; padding: 0 20px 13px; overflow-x: auto; }
  .nav-group > p, .nav-group > small, .nav-group > .nav-label { display: none; }
  .nav-link { flex: 0 0 auto; width: auto; min-height: 40px; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
  .nav-link svg { width: 16px; height: 16px; }
  .sidebar-bottom { display: none; }
  .topbar { min-height: 70px; padding: 14px 23px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions > .badge { display: none; }
  main#main { padding: 25px 23px 10px; }
  .grid-2 { gap: 15px; }
  .page-heading { flex-wrap: wrap; gap: 16px; }
  .page-actions { justify-content: flex-start; }
  .card { padding: 20px; }
  footer { padding: 20px 23px; }
}
@media (max-width: 560px) {
  body { font-size: 13px; }
  .sidebar { padding: 15px 16px 0; }
  .brand { padding-bottom: 14px; }
  .sidebar nav, .sidebar > .nav-group { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  .topbar { align-items: center; gap: 10px; min-height: 66px; padding: 12px 16px; }
  .context { font-size: 10px; }
  .context strong { font-size: 11px; }
  .topbar-actions { flex-shrink: 0; }
  .topbar-actions .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .topbar-actions .button svg { width: 14px; height: 14px; }
  .year-switch { min-height: 36px; padding: 7px 8px; font-size: 11px; }
  .year-switch label { display: none; }
  .topbar .year-switch { width: auto; }
  main#main { padding: 23px 16px 8px; }
  h1 { font-size: 27px; }
  h2 { font-size: 18px; }
  .page-heading { gap: 16px; margin-bottom: 21px; }
  .page-heading p { margin-top: 8px; font-size: 12px; line-height: 1.65; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1 1 auto; min-height: 43px; }
  .eyebrow { margin-bottom: 8px; font-size: 9px; }
  .hero { gap: 17px; margin-bottom: 18px; padding: 22px 20px; border-radius: 11px; }
  .hero h2 { font-size: 20px; }
  .hero p { font-size: 12px; }
  .hero-actions { flex-wrap: wrap; width: 100%; }
  .hero-actions .button { flex: 1; }
  .grid-4, .grid-3, .grid-2 { gap: 12px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 + *, .grid-3 + *, .grid-2 + * { margin-top: 19px; }
  .card { padding: 18px; border-radius: 10px; }
  .metric { min-height: 132px; padding: 16px 13px; }
  .metric-label { align-items: flex-start; gap: 5px; font-size: 10px; line-height: 1.5; }
  .metric-label svg { width: 14px; height: 14px; }
  .metric-value { margin: 14px 0 8px; font-size: 23px; }
  .metric-note { font-size: 10px; }
  .section-heading { align-items: flex-start; gap: 12px; margin-top: 24px; margin-bottom: 13px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading p { font-size: 11px; }
  .section-heading > .button { flex-shrink: 0; }
  .module-card { padding: 20px; }
  .module-description { margin-bottom: 17px; }
  .module-icon { margin-bottom: 13px; }
  .button { min-height: 43px; padding: 10px 13px; }
  .button.small { min-height: 36px; }
  .icon-button { width: 41px; min-height: 41px; }
  .badge { padding: 4px 7px; font-size: 9px; }
  .notice { padding: 13px 14px; font-size: 11px; }
  .list-row { gap: 10px; }
  .list-row > .badge { flex-shrink: 0; }
  .list-row > .amount { font-size: 12px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form-field.full { grid-column: auto; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { min-height: 45px; font-size: 16px; }
  .year-switch { font-size: 12px; }
  .search-input { max-width: 100% !important; }
  .toolbar { align-items: stretch; }
  .toolbar .search-input { flex: 1 1 100%; }
  th { padding: 11px; font-size: 9px; }
  td { padding: 13px 11px; font-size: 11px; }
  .table-wrap table { min-width: 570px; }
  .table-wrap { margin-right: 0; margin-left: 0; }
  .mobile-label { display: inline; }
  .dialog-backdrop { align-items: center; padding: 10px; }
  .modal { max-height: calc(100dvh - 20px); border-radius: 12px; }
  .modal-header { padding: 17px 18px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 20px 18px; }
  .modal-footer { flex-wrap: wrap; gap: 8px; padding: 14px 18px; }
  .modal-footer .button { flex: 1 1 auto; }
  .report-preview { padding: 16px; }
  .tabs { gap: 3px; }
  .tab { padding: 8px 11px; font-size: 11px; }
  .split { align-items: flex-start; gap: 10px; }
  .split:has(> .search-input) { flex-wrap: wrap; }
  .stack { gap: 15px; }
  .toast { right: 16px; bottom: 16px; }
  footer { padding: 19px 16px; font-size: 9px; }
  footer .split { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4 portrait; margin: 17mm 15mm 18mm; }
  html, body { width: auto; height: auto; min-height: 0; margin: 0; padding: 0; color: #162e40; background: #fff; font-size: 10pt; }
  body > :not(#print-report) { display: none !important; }
  #print-report { display: block !important; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  #print-report, #print-report * { overflow: visible !important; }
  #print-report h1 { margin: 0 0 8pt; font-size: 22pt; }
  #print-report h2 { margin: 20pt 0 8pt; font-size: 13pt; break-after: avoid; }
  #print-report h3 { font-size: 11pt; break-after: avoid; }
  #print-report p { margin: 0 0 8pt; font-size: 9pt; }
  #print-report table { width: 100%; min-width: 0; margin: 10pt 0; border-collapse: collapse; font-size: 8.5pt; }
  #print-report thead { display: table-header-group; }
  #print-report tfoot { display: table-footer-group; }
  #print-report tr { break-inside: avoid; }
  #print-report th, #print-report td { padding: 7pt 5pt; border-bottom: 1px solid #dbe4ea; white-space: normal; }
  #print-report th { color: #334c5e; background: #edf2f5; font-size: 8pt; }
  #print-report .card, #print-report .notice, #print-report .metric, #print-report .property-card { break-inside: avoid; box-shadow: none; }
  #print-report .table-wrap { border: 0; border-radius: 0; }
  #print-report .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #print-report .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #print-report .metric-value { font-size: 17pt; }
  #print-report .button, #print-report button, #print-report .no-print { display: none !important; }
  #print-report a { color: inherit; text-decoration: none; }
  #print-report .page-break { break-before: page; }
  #print-report footer { padding: 12pt 0 0; font-size: 8pt; }
  #print-report .badge { border-color: #d8e2e8; background: #fff; font-size: 8pt; }
}
