:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #17283f;
  background: #f3f6fa;
  font-size: 14px;
  --canvas: #f3f6fa;
  --paper: #fff;
  --ink: #17283f;
  --muted: #58697d;
  --subtle: #5e7085;
  --line: #d8e0ea;
  --royal: #075aab;
  --navy-soft: #12396c;
  --side: #08234e;
  --royal-soft: #e7f3fc;
  --gold: #d9ad42;
  --gold-dark: #846014;
  --income-chart: #087dca;
  --expense-chart: #d9ad42;
  --red: #943b32;
  --sidebar-width: 238px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl { margin: 0; }
strong { font-weight: 650; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sidebar { width: var(--sidebar-width); position: fixed; z-index: 5; inset: 0 auto 0 0; background: var(--side); color: #eaf1fa; display: flex; flex-direction: column; padding: 27px 17px 18px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 7px; margin-bottom: 36px; font-size: 18px; letter-spacing: -.045em; font-weight: 700; line-height: 1; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: block; flex: 0 0 auto; }
.brand-sub { display: block; margin-top: 6px; font-size: 8px; letter-spacing: .18em; font-weight: 700; color: #edcb6b; }
.nav-group + .nav-group { margin-top: 25px; }
.nav-label { padding: 0 10px; font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #9eb4ce; margin-bottom: 9px; }
.nav-link { color: #c6d5e8; display: flex; gap: 11px; align-items: center; min-height: 39px; padding: 8px 10px; margin: 2px 0; border-radius: 7px; font-weight: 500; }
.nav-link .icon { width: 17px; height: 17px; color: #9fbde0; }
.nav-link:hover, .workspace:hover { background: #102e50; color: #fff; }
.nav-link.active { background: var(--navy-soft); color: #fff; font-weight: 650; }
.nav-link.active .icon { color: #f5d378; }
.workspace { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid #29435f; display: flex; align-items: center; gap: 9px; border-radius: 0 0 8px 8px; }
.workspace-avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-soft); color: #e5effd; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.workspace-text { display: grid; min-width: 0; flex: 1; gap: 2px; }
.workspace-text strong { font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-text small { font-size: 11px; color: #a3b9d2; }
.workspace > .icon { width: 13px; height: 13px; color: #a3b9d2; }
.layout { margin-left: var(--sidebar-width); min-width: 0; }
.topbar { position: sticky; z-index: 3; top: 0; height: 63px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; font-size: 13px; }
.breadcrumb .icon { width: 13px; height: 13px; color: #819285; }
.breadcrumb strong { color: var(--ink); }
.mode-indicator { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 11px; font-weight: 650; padding: 5px 9px; border-radius: 30px; color: var(--navy-soft); background: var(--royal-soft); white-space: nowrap; }
.mode-indicator.demo { background: #fbf1d7; color: var(--gold-dark); }
.mode-indicator .icon { width: 13px; height: 13px; }
.menu-toggle, .nav-overlay { display: none !important; }
main { max-width: 1480px; min-height: calc(100vh - 63px); margin: 0 auto; padding: 29px 32px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.page-head h1 { font-size: clamp(26px, 2.3vw, 35px); line-height: 1.13; font-weight: 720; letter-spacing: -.05em; }
.page-head p { color: var(--muted); margin-top: 7px; line-height: 1.45; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button:hover { background: #eff4fb; border-color: #b7c8dd; }
.button.primary { color: #fff; background: var(--royal); border-color: var(--royal); }
.button.primary:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.button.danger { color: var(--red); }
.text-button { border: 0; background: transparent; color: var(--royal); padding: 4px 0; font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 15px; height: 15px; }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; display: inline-grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.icon-button:hover { color: var(--ink); background: var(--royal-soft); }
.select-icon { position: relative; display: inline-flex; align-items: center; }
.select-icon > .icon { pointer-events: none; position: absolute; left: 10px; color: var(--royal); width: 15px; height: 15px; }
.select-icon select { padding-left: 32px; font-weight: 600; }
.panel, .stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; min-width: 0; box-shadow: 0 1px 2px #1a352007; }
.panel-head { padding: 17px 19px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-head h2 { font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -.027em; }
.panel-head p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.stat-card { position: relative; padding: 16px 16px 15px; min-height: 119px; }
.stat-card h2 { font-size: 13px; color: var(--muted); font-weight: 600; padding-right: 36px; }
.stat-card .amount { display: block; font-size: clamp(20px, 2.05vw, 30px); letter-spacing: -.045em; font-weight: 720; line-height: 1.2; margin-top: 13px; overflow-wrap: anywhere; white-space: normal; text-align: left; }
.stat-card p { font-size: 11px; color: var(--subtle); margin-top: 4px; }
.stat-icon, .entry-icon { display: inline-grid; place-items: center; color: #326a52; background: #e8f2eb; border-radius: 8px; flex: 0 0 auto; }
.stat-icon { position: absolute; top: 13px; right: 13px; width: 33px; height: 33px; }
.stat-icon .icon { width: 16px; height: 16px; }
.tone-in { color: #277450; background: #e5f4e9; }
.tone-out { color: #8a5c31; background: #fbf0e3; }
.tone-trend { color: #4f6190; background: #eef0fa; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); gap: 16px; margin-bottom: 17px; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.income-dot { background: var(--income-chart); }
.expense-dot { background: var(--expense-chart); }
.chart-scroll { padding: 7px 19px 16px; overflow-x: auto; }
.chart { height: 198px; display: grid; grid-template-columns: minmax(37px, auto) 1fr; grid-template-rows: minmax(0, 1fr) 26px; gap: 0 9px; font-size: 10px; color: var(--subtle); }
.axis-labels { position: relative; text-align: right; }
.axis-labels span { position: absolute; right: 0; line-height: 1; transform: translateY(50%); }
.plot { position: relative; isolation: isolate; }
.plot-line { border-top: 1px dashed #e2eae1; left: 0; right: 0; position: absolute; z-index: -1; }
.plot-line.base { border-top-style: solid; border-top-color: #dce6dc; }
.plot-bars, .month-labels { display: grid; grid-template-columns: repeat(var(--months), minmax(0, 1fr)); }
.plot-bars { height: 100%; }
.bar-pair { display: flex; justify-content: center; gap: 3px; position: relative; min-width: 0; }
.bar { width: min(34%, 21px); min-width: 4px; max-height: 100%; position: absolute; border-radius: 3px 3px 0 0; }
.bar.down { border-radius: 0 0 3px 3px; }
.bar.income { right: calc(50% + 1.5px); background: var(--income-chart); }
.bar.expenses { left: calc(50% + 1.5px); background: var(--expense-chart); }
.month-labels span { text-align: center; padding-top: 9px; }
.fund-panel .panel-head { padding-bottom: 10px; }
.fund-chart { display: grid; justify-items: center; padding: 0 18px 12px; }
.donut { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.donut-hole { display: grid; place-content: center; text-align: center; width: 89px; height: 89px; background: #fff; border-radius: 50%; color: var(--muted); font-size: 10px; gap: 3px; }
.donut-hole strong { color: var(--ink); font-size: 14px; letter-spacing: -.03em; }
.fund-legend { list-style: none; padding: 0; margin: 0; width: 100%; }
.fund-legend li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; color: var(--muted); font-size: 12px; }
.fund-legend strong { color: var(--ink); font-size: 12px; white-space: nowrap; }
.fund-legend li + li { border-top: 1px solid #eff2ee; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { background: #f0f4f9; color: #52667e; font-weight: 650; font-size: 11px; white-space: nowrap; }
th, td { padding: 10px 15px; border-bottom: 1px solid #edf1f6; }
th:first-child, td:first-child { padding-left: 19px; }
th:last-child, td:last-child { padding-right: 19px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7fafe; }
.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.positive { color: #25694b; }
.negative { color: var(--red); }
.date-cell { white-space: nowrap; }
.table-action { text-align: right; white-space: nowrap; }
.entry-cell { display: flex; align-items: center; gap: 9px; min-width: 170px; }
.entry-cell .title-link { font-weight: 650; color: var(--ink); text-align: left; display: block; overflow-wrap: anywhere; white-space: normal; }
.entry-cell .title-link:hover { color: var(--royal); }
.entry-icon { width: 32px; height: 32px; }
.entry-icon .icon { width: 16px; height: 16px; }
.entry-icon.expense { background: #fbf0e3; color: #8e5d35; }
.entry-icon.journal, .entry-icon.transfer { background: #edf0fa; color: #526395; }
.entry-icon.reversal { background: #faece9; color: var(--red); }
.secondary { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; }
.attachment-count { display: inline-flex; align-items: center; gap: 2px; color: var(--royal); font-variant-numeric: tabular-nums; }
.attachment-count .icon { width: 13px; height: 13px; }
.badge { display: inline-flex; align-items: center; border-radius: 20px; background: #edf2ed; color: #4e6154; padding: 3px 8px; line-height: 1.25; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge.donation, .badge.unrestricted, .badge.cleared { background: #e7f3e9; color: #286747; }
.badge.expense, .badge.restricted { background: #f8efe3; color: #82592e; }
.badge.reversal { color: var(--red); background: #f8eae7; }
.badge.journal, .badge.transfer { background: #eceefa; color: #4e5d87; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.dashboard-grid .panel + .panel, .report-layout .panel + .panel, .settings-grid .panel + .panel { margin-top: 0; }
.filters { padding: 14px 19px; display: flex; align-items: end; width: 100%; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line); }
.filters .field { flex: 0 1 auto; }
.filters .field:has(.search-field) { flex: 1 1 210px; max-width: 330px; }
.filters .field select { max-width: 240px; }
.filters .count { margin: 0 0 9px auto; color: var(--muted); font-size: 12px; }
.search-field { position: relative; display: block; font-weight: 400 !important; }
.search-field .icon { width: 16px; height: 16px; position: absolute; top: 10px; left: 10px; color: var(--subtle); pointer-events: none; }
.search-field input { padding-left: 33px; width: 100%; }
.field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 650; color: #425248; }
input:not([type=checkbox]), select, textarea { min-width: 0; display: block; background: #fff; border: 1px solid #dce4da; border-radius: 7px; min-height: 36px; padding: 7px 9px; color: var(--ink); font-size: 13px; }
input::placeholder, textarea::placeholder { color: #69776e; }
textarea { resize: vertical; min-height: 70px; }
input[type=checkbox] { accent-color: var(--royal); width: 16px; height: 16px; margin: 0; cursor: pointer; vertical-align: middle; }
.check-field { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.filter-check { min-height: 36px; padding: 0 3px; white-space: nowrap; color: #425248; }
.empty { text-align: center; color: var(--muted); padding: 30px 20px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
.loading { padding: 25px; color: var(--muted); }
.pagination { padding: 12px 19px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.report-layout { display: grid; grid-template-columns: minmax(175px, 225px) minmax(0, 1fr); align-items: start; gap: 15px; }
.report-menu { padding: 7px; }
.report-menu button { display: block; width: 100%; padding: 10px 9px; text-align: left; border-radius: 6px; border: 0; background: transparent; color: #485b4d; font-size: 13px; }
.report-menu button:hover { background: #f1f6f0; }
.report-menu button.active { background: #e8f3ea; color: #215f43; font-weight: 700; }
.report-table .group td { background: #f5f8f4; color: #354d3d; font-weight: 700; }
.report-table .total td { background: #f0f6ef; font-weight: 700; border-top: 1px solid #dce7dc; }
.report-meta { padding: 0 19px 12px; color: var(--muted); font-size: 12px; }
.report-error { padding: 20px; color: var(--red); }
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab-bar .active { background: #e6f2e8; border-color: #b7d1bf; color: #205d42; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 1fr); gap: 15px; align-items: start; }
.panel-body { padding: 0 19px 19px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-body .hint + * { margin-top: 11px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
.form-grid .full, .full { grid-column: 1 / -1; }
.form-error { display: none; padding: 9px 11px; border-radius: 6px; border: 1px solid #efd6d2; color: #8b342a; background: #fcf1ef; font-size: 13px; line-height: 1.45; }
.form-error:not(:empty) { display: block; }
.dialog-body > .form-error:not(:empty) { margin-bottom: 10px; }
.reconcile-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 13px 19px; }
.reconcile-totals > div { border: 1px solid var(--line); padding: 10px; border-radius: 7px; }
.reconcile-totals strong { display: block; margin-top: 4px; font-size: 16px; }
.reconcile-banner { padding: 0 19px 11px; }
.dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 22px 76px #172a2266; color: var(--ink); }
.dialog.wide { width: min(850px, calc(100% - 28px)); }
.dialog::backdrop { background: #15292175; }
.dialog-head { position: sticky; z-index: 1; top: 0; background: #fff; padding: 15px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.035em; }
.dialog-body { padding: 17px 19px; }
.dialog-foot { position: sticky; bottom: 0; padding: 12px 19px; background: #f8faf7; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-align: left; padding: 12px; display: flex; gap: 9px; align-items: flex-start; }
.choice:hover { background: #f1f7f2; border-color: #c1d7c4; }
.choice .hint { display: block; margin-top: 4px; }
.journal-headers, .journal-line { display: grid; grid-template-columns: minmax(123px, 1.4fr) minmax(110px, 1fr) minmax(84px, .65fr) minmax(84px, .65fr) 27px; gap: 5px; align-items: center; }
.journal-headers { font-size: 11px; color: var(--muted); font-weight: 650; margin-bottom: 5px; }
.journal-line + .journal-line { margin-top: 5px; }
.journal-editor { overflow-x: auto; }
.journal-inner { min-width: 520px; }
.journal-line .icon-button { width: 27px; }
.journal-summary { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; margin-top: 8px; gap: 8px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-list dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.attachment-picker h3, .entry-files h3 { font-size: 14px; font-weight: 700; letter-spacing: -.012em; }
.attachment-picker h3 { margin: 0 0 7px; }
.attachment-context { margin-bottom: 12px; }
.drop-zone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px dashed #a9c3ae; border-radius: 9px; background: #f7faf6; }
.drop-zone.dragging, .drop-zone:focus-within { border-color: #438461; background: #edf6ee; }
.upload-mark, .file-mark { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 7px; color: var(--royal); background: var(--royal-soft); }
.drop-copy strong { font-size: 13px; }
.drop-copy .hint { margin-top: 2px; }
.attachment-feedback:not(:empty) { margin-top: 7px; overflow-wrap: anywhere; }
.file-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.staged-files:not(:empty) { margin-top: 8px; }
.file-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.file-mark { overflow: hidden; }
.file-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.file-summary { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.file-summary strong, .file-summary small { display: block; }
.file-summary strong { font-size: 12px; }
.file-summary small { color: var(--muted); font-size: 11px; }
.file-actions, .entry-files-head { display: flex; align-items: center; gap: 7px; }
.entry-files { border: 1px solid var(--line); border-radius: 9px; padding: 11px; background: #fafcf9; }
.entry-files-head { flex-wrap: wrap; justify-content: space-between; margin-bottom: 8px; }
.entry-files-head h3 { display: flex; align-items: center; gap: 6px; }
.receipt { border: 1px solid var(--line); border-radius: 9px; padding: 22px; }
.receipt h2 { font-size: 23px; letter-spacing: -.035em; }
.receipt-address { white-space: pre-line; margin: 5px 0 20px; }
.receipt-amount { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; }
#notifications { position: fixed; right: 17px; bottom: 17px; z-index: 9; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; min-width: 200px; padding: 11px 15px; background: #14392e; color: #fff; border-radius: 7px; box-shadow: 0 5px 22px #102f2633; }
.toast .icon { color: #c8edd2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
  :root { --sidebar-width: 208px; }
  main, .topbar { padding-left: 22px; padding-right: 22px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding-left: 12px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(255px, 1fr); gap: 12px; }
}
@media (max-width: 900px) {
  .layout { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease; visibility: hidden; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  body.nav-open .nav-overlay { display: block !important; position: fixed; z-index: 4; inset: 0; width: 100%; border: 0; background: #112b2175; }
  .menu-toggle { display: inline-grid !important; margin-left: -4px; }
  .breadcrumb { margin-right: auto; }
  .topbar { gap: 8px; height: 55px; }
  main { padding-top: 23px; }
  .stat-card .amount { font-size: clamp(21px, 3vw, 29px); }
}
@media (max-width: 620px) {
  main, .topbar { padding-left: 14px; padding-right: 14px; }
  .page-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 17px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 104px; }
  .stat-icon { top: 10px; right: 8px; width: 29px; height: 29px; }
  .dashboard-grid, .report-layout, .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .chart { min-width: calc(var(--months) * 25px + 38px); }
  .chart-scroll { padding: 7px 11px 13px; }
  .panel-head, .filters, .panel-body { padding-left: 12px; padding-right: 12px; }
  .report-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .report-menu button { padding: 7px; font-size: 12px; }
  .reconcile-totals { padding: 11px 12px; gap: 6px; }
  .reconcile-totals > div { padding: 7px; }
  .reconcile-totals strong { font-size: 13px; }
}
@media (max-width: 410px) {
  .stat-card h2 { font-size: 11px; }
  .breadcrumb > span:first-child, .breadcrumb > .icon { display: none; }
  .form-grid, .chooser { grid-template-columns: minmax(0, 1fr); }
  .drop-zone { grid-template-columns: auto minmax(0, 1fr); }
  .drop-zone .choose-files { grid-column: 2; justify-self: start; }
}
@media print {
  body, .panel, .dialog { background: #fff; }
  .sidebar, .topbar, .no-print, .filters, .report-menu, .dialog-head, .dialog-foot, #notifications, .nav-overlay { display: none !important; }
  .layout, main, .report-layout { display: block; margin: 0; padding: 0; }
  .panel { box-shadow: none; }
  .table-wrap { overflow: visible; }
  .dialog { position: static; width: 100%; max-width: none; max-height: none; margin: 0; border: 0; box-shadow: none; overflow: visible; }
  .dialog::backdrop { display: none; }
  body:has(.dialog[open]) .layout { display: none; }
  .report-table table { font-size: 10px; }
  tr { break-inside: avoid; }
}
