:root {
  --ink: #203930; --muted: #65796e; --green: #245c46; --green-dark: #16392d;
  --mint: #d7edce; --background: #f3f6f1; --line: #e1e8df; --white: #fff;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--background); font-synthesis: none;
}
.print-page main { max-width: 1000px; }
.print-page .actions { margin-bottom: 25px; }
.print-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.print-table th, .print-table td { border: 1px solid #bbb; padding: 8px; text-align: left; }
.print-table td:last-child, .print-table th:last-child { text-align: right; }
@media print {
  @page { margin: 15mm; }
  .no-print { display: none !important; }
  .print-page { background: white; color: black; font-size: 11pt; }
  .print-page main { max-width: none; padding: 0; }
  .print-table tr { break-inside: avoid; }
  .print-table thead { display: table-header-group; }
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6ba585; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h1 { font-size: clamp(27px, 3vw, 37px); font-weight: 720; margin-bottom: 10px; overflow-wrap: anywhere; }
h2 { font-size: 21px; margin-bottom: 14px; }
h3 { font-size: 17px; }
p { margin-bottom: 16px; }
small { font-size: 12px; }
.muted, .helptext { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: #748174; font-size: 11px; font-weight: 750; margin-bottom: 10px; }
.sidebar { width: 248px; position: fixed; inset: 0 auto 0 0; background: linear-gradient(180deg, #183f32, #123328); color: #e9f1e7; display: flex; flex-direction: column; padding: 26px 16px 18px; z-index: 20; overflow: hidden; }
.sidebar > .brand { flex-shrink: 0; padding: 0 9px 22px; border-bottom: 1px solid #ffffff12; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 720; letter-spacing: -.04em; }
.brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .24em; opacity: .65; margin-top: 1px; }
.brand-mark { width: 38px; height: 42px; border: 2px solid #c9e6bb; border-radius: 9px 9px 3px 3px; display: grid; grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); gap: 5px; place-content: center; flex: 0 0 auto; }
.brand-mark i { background: #c9e6bb; border-radius: 1px; }
.nav-caption { font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .16em; color: #9fbeae; margin: 0 12px 8px; line-height: 1.5; }
.sidebar nav { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; margin: 20px -4px 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff33 transparent; }
.sidebar nav > * { flex-shrink: 0; }
.nav-group ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; border-radius: 9px; color: #cfdfd5; transition: background-color .15s, color .15s; }
.sidebar nav a:hover { background: #ffffff0e; color: #fff; }
.sidebar nav a:focus-visible { outline-color: #c9e6bb; outline-offset: -2px; }
.sidebar nav a[aria-current="page"] { color: #193e2d; background: #dcefd2; font-weight: 700; box-shadow: 0 3px 10px #0000000a; }
.sidebar nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: #497b4f; border-radius: 0 3px 3px 0; }
.nav-icon { display: block; width: 20px; height: 20px; flex: 0 0 auto; opacity: .85; }
.nav-link[aria-current="page"] .nav-icon { opacity: 1; }
.nav-label { min-width: 0; }
/* Drawn chevron instead of the "›" glyph, which sits below the row's centre. */
.nav-current { flex: 0 0 auto; margin-left: auto; margin-right: 4px; width: 7px; height: 7px; border: solid #497b4f; border-width: 0 2px 2px 0; transform: rotate(-45deg); font-size: 0; opacity: 0; }
.nav-link[aria-current="page"] .nav-current { opacity: 1; }
.sidebar-footer { flex-shrink: 0; margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff12; font-size: 11px; color: #9fbeae; }
.sidebar-footer p { font-size: 9px; line-height: 1.5; margin: 12px 6px 0; text-align: center; }
.connection { display: flex; gap: 8px; align-items: center; }
.connection span { width: 6px; height: 6px; border-radius: 50%; background: #adcf96; }
.technical-link { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #ffffff18; border-radius: 8px; color: #d8e6d9; font-size: 11px; }
.technical-link:hover { border-color: #ffffff38; background: #ffffff08; }
.technical-link .nav-icon { width: 16px; height: 16px; }
.technical-link > span:last-child { margin-left: auto; }
.workspace { margin-left: 248px; }
.topbar { height: 80px; background: #ffffffb3; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 42px; gap: 20px; }
.topbar-label { font-size: 12px; color: var(--muted); }
.user-menu { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.user-name { color: inherit; font-weight: 650; }
.user-name:hover { text-decoration: underline; }
.user-menu form { margin-left: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e2ebdb; display: grid; place-items: center; font-weight: 700; }
main { max-width: 1440px; margin: auto; padding: 35px 42px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.page-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin-bottom: 0; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid transparent; background: var(--green); color: white; border-radius: 9px; padding: 11px 17px; font-size: 12px; font-weight: 650; line-height: 1.45; flex: 0 0 auto; }
.button:hover { background: #1a4836; }
.button.secondary { background: white; color: var(--ink); border-color: #d9e3d6; }
.button.secondary:hover { background: #f0f5ed; }
.button.mint { background: var(--mint); color: var(--green-dark); }
.button.mint:hover { background: #c7e4ba; }
.button.danger { background: #a53d39; }
.button.danger-outline { color: #9b4540; background: transparent; border-color: #e6cecb; }
.text-button { padding: 5px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.inline-link, .back-link { color: var(--green); font-size: 12px; font-weight: 650; }
.inline-link:hover, .back-link:hover, .text-button:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 20px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero { border-radius: 18px; background: linear-gradient(110deg, #255b45, #14382c); color: white; padding: 30px 34px; display: flex; justify-content: space-between; gap: 30px; overflow: hidden; min-height: 253px; margin-bottom: 24px; }
.hero h2 { font-size: clamp(26px, 3vw, 35px); margin: 16px 0 13px; font-weight: 650; }
.hero p { color: #c6d9cb; max-width: 470px; font-size: 12px; margin-bottom: 22px; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .025em; }
.pill.light { border: 1px solid #b8d7b24d; color: #d5e9cf; font-size: 9px; letter-spacing: .12em; }
.pill.warning, .notice.warning { background: #fbf3dd; color: #7d6023; }
.pill.success { background: #e1efda; color: #34623a; }
.pill.neutral, .notice.neutral { background: #eaf0e5; color: #5b6d59; }
.building-art { position: relative; display: flex; gap: 14px; align-items: flex-end; justify-content: center; min-width: 235px; padding: 40px 10px 0; }
.art-building { width: 95px; z-index: 1; background: #ffffff0c; border: 1px solid #b7d5a570; border-radius: 5px 5px 0 0; display: grid; grid-template-columns: repeat(3, 10px); grid-auto-rows: 18px; gap: 18px 12px; align-content: start; justify-content: center; padding-top: 25px; transform: skewY(-6deg); }
.art-building b { background: #b6d89d72; border-radius: 2px; }
.art-building.tall { height: 205px; }
.art-building.short { height: 150px; }
.art-circle { position: absolute; width: 210px; height: 210px; background: #d0e7bb10; border: 1px solid #d0e7bb15; border-radius: 50%; right: -25px; top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.stat-card { display: flex; flex-direction: column; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 19px 21px; }
.stat-card:hover { border-color: #afc8a9; }
.stat-card > span { font-size: 12px; color: var(--muted); }
.stat-card strong { font-size: 34px; font-weight: 650; line-height: 1.4; }
.stat-card small { font-size: 10px; color: #7d8b7b; }
.stat-card strong.stat-text { font-size: 24px; }
.stat-card.stat-alert { border-color: #e6cecb; background: #fbf3f1; }
.stat-card.stat-alert strong { color: #9b4540; }
.unit-finance .stats { margin-bottom: 0; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 11px; color: inherit; }
.todo-item:hover { background: #f4f8f1; }
.todo-item > strong { min-width: 44px; font-size: 26px; font-weight: 650; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; }
.todo-item > span:not(.todo-go) { display: grid; gap: 2px; min-width: 0; }
.todo-item b { font-size: 13px; }
.todo-item small { font-size: 11px; color: var(--muted); }
.todo-go { flex: 0 0 auto; margin-left: auto; width: 7px; height: 7px; border: solid #7d8b7b; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.todo-warning { border-left-color: #d8b25a; }
.todo-alert { border-left-color: #b3524b; }
.todo-alert > strong { color: #9b4540; }
.todo-neutral { border-left-color: #9fb59a; }
.staircase-summary { margin-bottom: 24px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 25px; margin-bottom: 24px; min-width: 0; }
.panel > p { font-size: 13px; color: var(--muted); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading h2, .panel-heading .eyebrow { margin-bottom: 0; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.panel-heading h2 { font-size: 18px; }
.dashboard-grid, .details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.unit-summary { display: grid; gap: 0; margin-bottom: 16px; }
.unit-summary > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #edf1e9; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.steps span { display: inline-block; color: #79996a; background: #eff5e9; padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.steps h3 { font-size: 15px; margin-bottom: 8px; }
.steps p { font-size: 12px; color: var(--muted); margin: 0; }
.record-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(85px, 1fr)) 18px; align-items: center; gap: 18px; padding: 18px 6px; border-top: 1px solid #edf1e9; font-size: 12px; }
.record-row:hover { background: #f7faf4; }
.record-primary { display: flex; gap: 12px; align-items: center; min-width: 0; }
.record-primary strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.record-primary small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.record-symbol { width: 33px; height: 37px; border-radius: 8px; background: #edf3e6; display: grid; place-items: center; color: #5f7c50; font-size: 13px; font-weight: 650; flex: 0 0 auto; }
.record-cell { color: var(--muted); overflow-wrap: anywhere; }
.record-arrow { color: var(--green); font-size: 18px; }
.list-caption { display: flex; gap: 25%; font-size: 9px; font-weight: 650; letter-spacing: .14em; color: #899385; padding: 14px 6px; }
.empty-state { padding: 30px 15px; text-align: center; border: 1px dashed #dfe7d7; border-radius: 10px; background: #fafcf8; }
.empty-symbol { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #769567; background: #eef4e8; font-size: 23px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; margin-bottom: 9px; }
.empty-state p { font-size: 12px; color: var(--muted); max-width: 400px; margin: auto; }
.filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search-field { flex: 1 1 220px; min-width: 180px; }
.filter-field { flex: 0 1 190px; min-width: 155px; }
.active-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 16px; background: #eef5ea; border: 1px solid #d5e5ce; border-radius: 10px; font-size: 12px; }
.active-filters-label { font-weight: 700; color: var(--green-dark); }
.active-filter-list { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #c5dac0; color: var(--ink); font-size: 12px; line-height: 1.3; }
.filter-chip:hover { border-color: var(--green); background: #f7fbf5; }
.filter-chip strong { font-weight: 650; color: var(--green-dark); }
.filter-chip-remove { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e8f1e4; color: var(--green-dark); font-size: 13px; font-weight: 700; line-height: 1; }
.filter-chip:hover .filter-chip-remove { background: var(--green); color: #fff; }
.active-filters-clear { margin-left: auto; }
label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 7px; }
input, select, textarea { border: 1px solid #dbe3d7; border-radius: 8px; background: #fff; padding: 11px 12px; width: 100%; color: var(--ink); font-size: 13px; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: #648e6c; outline: 2px solid #dbead6; outline-offset: 1px; }
input:disabled, select:disabled { background: #f2f5ef; color: #66745f; opacity: 1; }
input::placeholder { color: #9aa493; }
textarea { resize: vertical; }
.form-panel { max-width: 1000px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 26px; }
.form-field { min-width: 0; }
.import-format { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.import-preview { overflow-x: auto; max-width: 100%; }
.import-preview table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: 12px; }
.import-preview th, .import-preview td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); max-width: 240px; overflow-wrap: anywhere; }
.required { color: #9a5c46; }
.helptext { font-size: 11px; margin: 8px 0 0; }
.invoice-upload-picker { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.invoice-upload-picker > input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.invoice-upload-picker input[type="file"]:focus-visible + .invoice-upload-button { outline: 3px solid #6ba585; outline-offset: 4px; }
.invoice-upload-status { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.invoice-upload-picker [hidden] { display: none; }
.file-picker { position: relative; margin-top: 4px; }
.file-picker > input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.file-picker-zone { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px dashed #c3d5bd; border-radius: 12px; background: #f8fbf6; cursor: pointer; transition: border-color .15s, background-color .15s; }
.file-picker-zone:hover, .file-picker.is-dragging .file-picker-zone { border-color: var(--green); background: #eef5ea; }
.file-picker.is-dragging .file-picker-zone * { pointer-events: none; }
.file-picker > input[type="file"]:focus-visible + .file-picker-zone { outline: 3px solid #6ba585; outline-offset: 3px; }
.file-picker-icon { flex: 0 0 auto; width: 40px; height: 48px; display: grid; place-items: end center; padding-bottom: 8px; border: 1.5px solid #c3d5bd; border-radius: 5px 13px 5px 5px; background: white; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .06em; transition: background-color .15s, border-color .15s, color .15s; }
.file-picker.has-file .file-picker-icon { background: var(--green); border-color: var(--green); color: white; }
.file-picker-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.file-picker-text strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.file-picker-text small { font-size: 12px; color: var(--muted); }
.file-picker-button { pointer-events: none; }
.file-picker.has-file .file-picker-zone { border-style: solid; background: white; }
.file-picker.has-error .file-picker-zone { border-color: #bb7163; background: #fbede9; }
.file-picker.has-error .file-picker-text small { color: #a04338; }
.file-picker-clear { margin-top: 6px; }
.file-picker-clear:hover { color: var(--ink); }
.file-picker [hidden] { display: none; }
@media (max-width: 650px) { .file-picker-button { display: none; } }
.has-error input, .has-error select { border-color: #bb7163; }
.errorlist { color: #a04338; font-size: 12px; margin: 7px 0 0; padding-left: 18px; }
.checkbox-field { display: flex; flex-direction: column; justify-content: center; }
.checkbox-label { display: flex; gap: 10px; align-items: center; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.details { margin: 0; }
.details > div { display: grid; grid-template-columns: minmax(95px, 1fr) minmax(0, 1.6fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf1e9; font-size: 13px; }
.details > div:last-child { border-bottom: none; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.count { font-size: 12px; border-radius: 5px; background: #edf3e7; padding: 2px 6px; vertical-align: middle; }
.notice { border-radius: 9px; padding: 14px 17px; margin-bottom: 20px; font-size: 12px; }
.notice.error { background: #fbede9; color: #8d4034; }
.notice.success { background: #e7f2e0; color: #335f34; }
.notice .errorlist { margin: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 24px; font-size: 12px; }
.page-footer { color: #8b9486; font-size: 10px; padding-top: 12px; }
.page-footer span { margin: 0 9px; }
.narrow-panel { max-width: 700px; }
.skip-link { position: fixed; left: 260px; top: -60px; padding: 12px; background: white; z-index: 100; }
.skip-link:focus { top: 8px; }
.login-page { min-height: 100dvh; display: grid; place-items: center; padding: 30px; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; width: min(1050px, 100%); background: white; padding: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 80px #173a2510; }
.login-intro { padding: 47px; background: linear-gradient(145deg, #285d46, #14362b); color: white; }
.login-intro .brand { margin-bottom: 70px; }
.login-intro h1 { font-size: clamp(30px, 3.5vw, 43px); margin: 20px 0; }
.login-intro > p { color: #c5d8c6; font-size: 14px; }
.login-intro > small { color: #a9c2ad; font-size: 10px; }
.login-benefits { display: grid; gap: 16px; margin: 40px 0 50px; font-size: 12px; color: #91b28f; }
.login-benefits b { font-weight: 500; margin-left: 12px; color: #e2ebde; }
.login-card { padding: 70px 48px; align-self: center; }
.login-card h2 { font-size: 27px; }
.login-card .muted { font-size: 13px; margin-bottom: 30px; }
.login-card .form-field { margin-bottom: 22px; }
.login-note { font-size: 11px; line-height: 1.8; color: #8b9486; margin: 28px 0 0; }
.full-width { width: 100%; padding: 13px; }
.two-factor-steps { font-size: 13px; color: var(--muted); padding-left: 18px; margin: 0 0 18px; line-height: 1.6; }
.two-factor-qr { display: flex; justify-content: center; margin: 0 0 12px; }
.two-factor-qr svg { display: block; width: min(240px, 100%); height: auto; aspect-ratio: 1; background: white; border-radius: 8px; }
.two-factor-secret { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.two-factor-secret code { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .06em; word-break: break-word; color: var(--ink); }
.recovery-codes { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-codes code { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f6f9f3; font-size: 13px; text-align: center; letter-spacing: .04em; }
.remember-device { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; font-size: 13px; cursor: pointer; }
.remember-device input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.remember-device small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 3px; }
.trusted-devices { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.trusted-devices h3 { font-size: 15px; margin: 0 0 12px; }
.trusted-devices ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.trusted-devices li { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; }
.trusted-devices li > span { min-width: 0; }
.trusted-devices small { display: block; color: var(--muted); font-size: 11px; }
.two-factor-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; font-size: 12px; }
.participant-field { border: 0; padding: 0; margin: 0; min-width: 0; width: 100%; }
.participant-field legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.participant-field label { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 400; }
.billing-month-row, .invoice-row { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.billing-month-row:first-child, .invoice-row:first-of-type { border-top: 0; }
.billing-month-row > div, .invoice-row > div { min-width: 0; overflow-wrap: anywhere; }
.billing-month-row p, .invoice-row p { font-size: 12px; margin: 6px 0 12px; }
.invoice-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; flex-shrink: 0; }
.document-link { overflow-wrap: anywhere; }
.revision-history { margin-bottom: 20px; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-stats strong { font-size: clamp(20px, 2.3vw, 30px); overflow-wrap: anywhere; }
.unit-statement { border-top: 1px solid var(--line); padding: 15px 0; }
.unit-statement summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 14px; }
.unit-statement summary > span { min-width: 0; overflow-wrap: anywhere; }
.unit-statement small, .billing-charge small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 5px; }
.statement-body { padding: 18px 0 0 18px; font-size: 12px; }
.billing-charge { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.billing-charge > span { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1450px) { .hero { padding: 38px 42px; } .hero h2 { font-size: 38px; } }
@media (max-width: 1150px) {
  .sidebar { width: 220px; padding-left: 12px; padding-right: 12px; }
  .workspace { margin-left: 220px; }
  main { padding: 28px; }
  .topbar { padding: 0 28px; }
  .record-row { grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(60px, 1fr)) 12px; gap: 12px; }
  .building-art { min-width: 190px; }
  .stat-card { padding: 17px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .sidebar { padding-top: 20px; padding-bottom: 14px; }
  .sidebar > .brand { padding-bottom: 16px; }
  .sidebar nav { gap: 14px; margin-top: 14px; }
  .sidebar nav a { min-height: 36px; padding-block: 7px; }
  .nav-caption { margin-bottom: 6px; }
  .sidebar-footer { margin-top: 12px; padding-top: 12px; }
  .sidebar-footer p { margin-top: 8px; }
}
@media (max-width: 900px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: auto; display: block; padding: 16px 22px 10px; overflow: visible; }
  .sidebar > .brand { padding: 0; border: 0; }
  .sidebar .brand { font-size: 20px; }
  .sidebar .brand-mark { width: 30px; height: 32px; gap: 4px; grid-template-columns: repeat(2, 5px); grid-template-rows: repeat(2, 5px); }
  .sidebar .brand small, .nav-caption, .sidebar-footer { display: none; }
  .sidebar nav { flex-direction: row; gap: 5px; overflow-x: auto; overflow-y: hidden; margin: 12px -8px 0; padding: 4px; }
  .nav-group, .nav-group ul, .nav-group li { display: contents; }
  .sidebar nav a { white-space: nowrap; padding: 10px 12px; font-size: 11px; }
  .sidebar nav .nav-icon { width: 17px; height: 17px; }
  .nav-current { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 60px; }
  .hero { min-height: 230px; }
  .skip-link { left: 10px; }
}
@media (max-width: 650px) {
  .billing-month-row { flex-direction: column; gap: 10px; }
  .invoice-row { gap: 12px; }
  .invoice-actions .amount { font-size: 13px; }
  main { padding: 22px 16px; }
  .topbar { padding: 0 18px; }
  .topbar-label { font-size: 10px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero { padding: 27px 24px; }
  .building-art { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 17px; }
  .stat-card strong { font-size: 30px; }
  .dashboard-grid, .details-grid, .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid { gap: 22px; }
  .panel, .form-panel { padding: 20px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .panel-heading { flex-wrap: wrap; }
  .record-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 0; }
  .record-primary { grid-column: 1; }
  .record-cell { grid-column: 1; padding-left: 45px; font-size: 11px; }
  .record-arrow { grid-column: 2; grid-row: auto; }
  .list-caption { display: none; }
  .filters { align-items: stretch; }
  .filters > div { width: 100%; flex: 1 1 100%; }
  .active-filters-clear { margin-left: 0; }
  .details > div { grid-template-columns: 1fr 1.4fr; gap: 14px; }
  .pagination { gap: 10px; flex-wrap: wrap; }
  .login-page { padding: 16px; }
  .login-layout { grid-template-columns: 1fr; border-radius: 17px; }
  .login-intro { padding: 28px; }
  .login-intro .brand { margin-bottom: 25px; }
  .login-intro .pill, .login-intro > p, .login-benefits, .login-intro > small { display: none; }
  .login-intro h1 { font-size: 26px; margin-bottom: 0; }
  .login-card { padding: 30px 28px; }
  .login-card h2 { font-size: 24px; }
}
