:root {
  --ink: #14211d;
  --muted: #708078;
  --paper: #f5f4ef;
  --card: #fffefa;
  --line: #e4e4dc;
  --green: #2f6f5d;
  --green-dark: #183c33;
  --mint: #8dc9b5;
  --coral: #e78466;
  --gold: #d8a94a;
  --blue: #6c8ebf;
  --purple: #9d7bb0;
  --shadow: 0 12px 36px rgba(28, 44, 38, 0.07);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 230px; padding: 26px 18px; color: #ecf4f0; background: #111b18; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 8px 28px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: #14211d; font: 700 19px/1 "Manrope"; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 17px/1.15 "Manrope"; }
.brand small { margin-top: 4px; color: #8ba198; font-size: 11px; }
nav { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: #91a49c; text-align: left; cursor: pointer; transition: .18s ease; display: flex; align-items: center; gap: 11px; font-weight: 600; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; color: #789086; text-align: center; }
.nav-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #f1f6f3; }
.nav-item.active { background: #22352f; color: white; }
.nav-item.active .nav-icon { color: var(--mint); }
.sidebar-note { margin-top: auto; padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.09); display: flex; gap: 10px; align-items: flex-start; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 11px; }
.sidebar-note small { color: #7d9189; font-size: 10px; margin-top: 3px; }
.status-dot { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #71c79f; box-shadow: 0 0 0 4px rgba(113,199,159,.12); }
main { margin-left: 230px; padding: 34px 42px 48px; max-width: 1700px; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 25px; }
.eyebrow, .card-kicker { margin: 0 0 5px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
h1, h2 { margin: 0; font-family: "Manrope", sans-serif; }
h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; }
h2 { font-size: 17px; letter-spacing: -.02em; }
.top-actions { display: flex; gap: 10px; }
.primary-button { min-height: 42px; border: 0; border-radius: 10px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--green); color: white; cursor: pointer; font-size: 11px; font-weight: 700; box-shadow: 0 7px 18px rgba(47,111,93,.18); }
.primary-button:hover { background: #285f50; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.primary-button span { font-size: 17px; font-weight: 400; }
.select-wrap { min-width: 152px; padding: 7px 12px 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.select-wrap span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.select-wrap select { width: 100%; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: 12px; padding: 2px 18px 0 0; }
.view { display: none; animation: appear .2s ease; }
.view.active { display: block; }
@keyframes appear { from { opacity: .2; transform: translateY(4px); } }
.loading { min-height: 55vh; display: grid; place-items: center; align-content: center; color: var(--muted); gap: 14px; }
.loading span { width: 28px; height: 28px; border: 2px solid #d6ddd8; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { padding: 18px; border: 1px solid #efb4a5; background: #fff5f1; border-radius: 12px; color: #8a3824; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi-grid.compact { margin-bottom: 14px; }
.kpi { min-height: 115px; border-radius: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(28,44,38,.035); }
.kpi.featured { color: white; background: var(--green-dark); border-color: transparent; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 600; }
.featured .kpi-label { color: #a9c3b9; }
.kpi-value { margin-top: 10px; font: 700 clamp(24px, 3vw, 32px)/1 "Manrope"; letter-spacing: -.04em; }
.kpi-meta { margin-top: 8px; color: var(--muted); font-size: 10px; }
.featured .kpi-meta { color: #a9c3b9; }
.trend-up { color: #d87155; }.trend-down { color: #3f9477; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.wide { min-width: 0; }
.card-heading { min-height: 70px; padding: 17px 20px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.subcopy { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 13px; color: var(--muted); font-size: 10px; padding-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }.dot.total { background: var(--green); }.dot.media { background: var(--coral); }
.chart-selectors { display: flex; gap: 8px; align-items: flex-start; }
.chart-category { min-width: 124px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.chart-category select { display: block; width: 100%; margin-top: 4px; padding: 6px 28px 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.chart { position: relative; height: 260px; padding: 0 14px 12px; }
.chart.medium { height: 240px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.grid-line { stroke: #e9ebe6; stroke-width: 1; }.axis-label { fill: #85938c; font-size: 9px; }.chart-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }.chart-area { opacity: .09; }.chart-point { stroke: white; stroke-width: 1.5; }
.chart-point-halo { opacity: .18; }
.chart-property-band rect { opacity: .72; }
.chart-property-label { fill: #52655d; font-size: 8px; font-weight: 700; }
.chart-marker { pointer-events: none; }
.chart-marker-line { stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 4; opacity: .32; }
.chart-marker-halo { opacity: .22; }
.chart-marker-dot { stroke: white; stroke-width: 3; filter: drop-shadow(0 1px 2px rgba(20,33,29,.25)); }
.chart-tooltip { position: absolute; z-index: 2; top: 5px; right: 18px; min-width: 112px; max-width: 190px; padding: 7px 9px; border: 1px solid #d9e3de; border-radius: 8px; color: var(--ink); background: rgba(255,254,250,.94); box-shadow: 0 5px 14px rgba(28,44,38,.1); pointer-events: none; font-size: 9px; }
.chart-tooltip strong { display: block; margin-bottom: 3px; color: var(--green); }
.chart-tooltip small { display: block; margin: -1px 0 5px; color: var(--muted); font-size: 8px; font-weight: 600; }
.chart-tooltip span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.chart-tooltip i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.chart-tooltip b { margin-left: auto; }
.donut-layout { min-height: 260px; display: grid; grid-template-columns: 135px 1fr; align-items: center; gap: 12px; padding: 2px 20px 20px; }
.donut { width: 130px; height: 130px; border-radius: 50%; position: relative; }
.donut::after { content: ""; position: absolute; inset: 25px; border-radius: 50%; background: var(--card); }
.donut-center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.donut-center strong { font: 700 16px/1 "Manrope"; }.donut-center small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.breakdown-list { display: grid; gap: 8px; }
.breakdown-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; font-size: 10px; }
.breakdown-row i { width: 7px; height: 7px; border-radius: 2px; }.breakdown-row span { color: var(--muted); }.breakdown-row strong { font-size: 10px; }
.recent-card { grid-column: 1 / -1; }
.vehicle-chart-card { margin-bottom: 14px; }
.vehicle-summary-card .summary-table { max-height: 360px; overflow: auto; }
.vehicle-summary-card .summary-table th { position: sticky; top: 0; z-index: 1; }
.text-button { border: 0; background: transparent; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.compact-table, .data-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 9px 12px; background: #f4f5f1; color: #829088; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
td { padding: 10px 12px; border-top: 1px solid #ecece5; font-size: 11px; white-space: nowrap; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }
.stacked-cell { display: inline-grid; gap: 2px; }
.stacked-cell small { color: var(--muted); font-size: 9px; font-weight: 500; }
.stacked-cell.number { justify-items: end; }
.invoice-stack { display: grid; gap: 6px; }
.invoice-cell { display: grid; gap: 1px; min-width: 92px; }
.invoice-cell strong { font-variant-numeric: tabular-nums; }
.invoice-cell small { color: var(--muted); font-size: 8px; line-height: 1.25; }
.invoice-cell + .invoice-cell { padding-top: 5px; border-top: 1px solid var(--line); }
.empty-amount { color: #b5bdb8; }
.bar-cell { min-width: 120px; }.microbar { height: 5px; border-radius: 5px; background: #e8ede9; overflow: hidden; }.microbar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.full-card { min-height: 600px; }
.entry-history-card { margin-top: 14px; }
.edit-entry-button { height: 28px; padding: 0 11px; border: 1px solid #cfded7; border-radius: 7px; color: var(--green); background: #f2f8f5; font-size: 9px; font-weight: 700; cursor: pointer; }
.edit-entry-button:hover { background: #e4f1eb; }
.record-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.delete-entry-button { height: 28px; padding: 0 9px; border: 1px solid #ead2cc; border-radius: 7px; color: #a14d3b; background: #fff7f4; font-size: 9px; font-weight: 700; cursor: pointer; }
.delete-entry-button:hover { background: #fce8e1; }
.source-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; color: var(--muted); background: #f1f2ee; font-size: 9px; font-weight: 700; }
.table-actions { display: flex; gap: 8px; align-items: center; }
input[type="search"], .outline-button { height: 34px; border: 1px solid var(--line); background: white; border-radius: 9px; }
input[type="search"] { width: 210px; padding: 0 11px; outline: 0; font-size: 11px; }
.outline-button { padding: 0 13px; cursor: pointer; color: var(--green); font-size: 10px; font-weight: 700; }
.pagination { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination-buttons { display: flex; gap: 6px; }.pagination button { border: 1px solid var(--line); background: white; border-radius: 7px; height: 28px; min-width: 30px; cursor: pointer; }.pagination button:disabled { opacity: .35; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.timeline-control { margin: -2px 0 14px; padding: 14px 18px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 4px 18px rgba(28,44,38,.035); }
.summary-timeline { grid-column: 1 / -1; margin: -2px 0 0; }
.timeline-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.timeline-heading strong, .timeline-heading span { display: block; }
.timeline-heading strong { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.timeline-heading span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.timeline-windows { display: flex; gap: 4px; }
.timeline-windows button { min-width: 40px; height: 26px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.timeline-windows button.active { color: white; border-color: var(--green); background: var(--green); }
.timeline-range { width: 100%; height: 18px; margin: 0; accent-color: var(--green); cursor: ew-resize; }
.timeline-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #dce5e0; }
.timeline-range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 3px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 2px 6px rgba(24,60,51,.25); -webkit-appearance: none; }
.timeline-range::-moz-range-track { height: 4px; border-radius: 4px; background: #dce5e0; }
.timeline-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green), 0 2px 6px rgba(24,60,51,.25); }
.timeline-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.table-card { margin-top: 14px; max-height: 430px; overflow: auto; }
.comparison-layout { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(340px, 1.1fr); gap: 16px; align-items: stretch; }
.comparison-form { padding-bottom: 20px; }
#comparison-form { padding: 5px 20px 0; display: grid; gap: 15px; }
#comparison-form label { color: var(--muted); font-size: 10px; font-weight: 600; }
#comparison-form input { display: block; width: 100%; margin-top: 6px; height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; outline: 0; background: #fbfbf7; color: var(--ink); font-weight: 600; }
#comparison-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(141,201,181,.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comparison-result { position: relative; min-height: 430px; padding: 32px; border-radius: 16px; overflow: hidden; color: white; background: var(--green-dark); box-shadow: var(--shadow); }
.comparison-result::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; bottom: -100px; background: rgba(141,201,181,.09); }
.result-label { color: #a9c3b9; font-size: 10px; font-weight: 700; letter-spacing: .1em; }.result-total { margin-top: 12px; font: 700 54px/1 "Manrope"; letter-spacing: -.055em; }
.result-change { display: inline-flex; margin-top: 13px; border-radius: 20px; padding: 7px 10px; background: rgba(255,255,255,.08); color: #d2e5de; font-size: 11px; }
.result-breakdown { margin-top: 34px; display: grid; gap: 12px; }.result-row { display: flex; justify-content: space-between; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px; }.result-row span { color: #a9c3b9; }.result-note { margin-top: 22px; color: #8fa99f; font-size: 10px; line-height: 1.5; max-width: 400px; }
.empty { padding: 36px; text-align: center; color: var(--muted); font-size: 12px; }

dialog { width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--card); box-shadow: 0 30px 90px rgba(10,25,20,.3); }
dialog::backdrop { background: rgba(10,25,20,.58); backdrop-filter: blur(3px); }
#entry-form { padding: 24px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-heading .subcopy { max-width: 560px; line-height: 1.5; }
.icon-button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; }
.invoice-upload { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 13px 14px; border: 1px dashed #b8d2c6; border-radius: 12px; background: #f4f9f6; }
.invoice-upload-copy { display: flex; align-items: center; gap: 11px; min-width: 0; }
.invoice-upload-copy strong, .invoice-upload-copy small { display: block; }
.invoice-upload-copy strong { font-size: 11px; }
.invoice-upload-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.invoice-upload-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; color: white; background: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.invoice-file-input { width: 154px; min-height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; cursor: pointer; font-size: 9px; }
.invoice-file-input::file-selector-button, .invoice-file-input::-webkit-file-upload-button { min-height: 32px; margin-right: 7px; padding: 0 12px; border: 0; border-radius: 7px; color: white; background: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; }
.invoice-file-input:focus { border-color: var(--mint); outline: 0; box-shadow: 0 0 0 3px rgba(141,201,181,.18); }
.invoice-file-input.disabled { opacity: .55; cursor: wait; }
.invoice-status { margin: -4px 0 14px; padding: 10px 12px; border-radius: 9px; color: var(--muted); background: #f1f2ee; font-size: 10px; line-height: 1.45; }
.invoice-status.success { color: #245e4d; background: #eaf5f0; }
.invoice-status.warning { color: #775b18; background: #fff7dc; }
.invoice-status.error { color: #8a3824; background: #fff1ec; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin-top: 13px; }
.form-field { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.form-field.full { margin-top: 4px; }
.entry-type-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.copy-button { min-height: 42px; padding: 0 13px; border: 1px solid #cfded7; border-radius: 9px; color: var(--green); background: #f2f8f5; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.copy-button:hover { background: #e8f3ee; }
.copy-button span { font-size: 14px; }
.form-field input, .form-field select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fbfbf7; font-weight: 600; }
.form-field input:focus, .form-field select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(141,201,181,.18); }
.formula-preview { margin-top: 18px; padding: 14px; border: 1px solid #dce8e2; border-radius: 11px; background: #f2f8f5; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.formula-preview > strong { grid-column: 1 / -1; color: var(--green); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.formula-preview span { min-width: 0; }
.formula-preview small, .formula-preview b { display: block; }
.formula-preview small { color: var(--muted); font-size: 9px; }
.formula-preview b { margin-top: 3px; font-size: 12px; overflow-wrap: anywhere; }
.form-message { margin-top: 14px; padding: 11px 12px; border-radius: 9px; color: #8a3824; background: #fff1ec; font-size: 11px; }
.form-message.success { color: #245e4d; background: #eaf5f0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .sidebar { width: 78px; padding-inline: 12px; }.brand { justify-content: center; padding-inline: 0; }.brand > span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 12px; }.nav-item span { font-size: 18px; }.sidebar-note { display: none; } main { margin-left: 78px; padding: 28px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.recent-card { grid-column: auto; }.two-column { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sidebar { inset: auto 0 0 0; width: 100%; height: calc(62px + var(--safe-bottom)); padding: 8px 8px calc(8px + var(--safe-bottom)); flex-direction: row; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -8px 24px rgba(17,27,24,.18); }.brand { display: none; }.sidebar nav { width: 100%; grid-template-columns: repeat(6, 1fr); gap: 2px; }.nav-item { min-height: 46px; padding: 8px 4px; border-radius: 8px; touch-action: manipulation; }.nav-item span { font-size: 17px; }
  main { margin: 0; padding: 22px 14px calc(88px + var(--safe-bottom)); }.topbar { display: block; }.top-actions { margin-top: 18px; flex-wrap: wrap; }.select-wrap { flex: 1; min-width: 0; }.top-actions .primary-button { width: 100%; }.kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.kpi { min-height: 105px; padding: 15px; }.dashboard-grid { gap: 10px; }.card-heading { padding: 15px; }.chart-selectors { width: 100%; }.chart-category { flex: 1; min-width: 0; }.chart-card .card-heading { flex-wrap: wrap; }.donut-layout { grid-template-columns: 115px 1fr; padding-inline: 14px; }.donut { width: 110px; height: 110px; }.table-actions { width: 100%; margin-top: 9px; }.full-card .card-heading { display: block; } input[type="search"] { flex: 1; width: auto; }.comparison-layout { grid-template-columns: 1fr; }.comparison-result { min-height: 360px; }.field-row, .form-grid { grid-template-columns: 1fr; }.formula-preview { grid-template-columns: 1fr 1fr; }.result-total { font-size: 45px; }.timeline-heading { align-items: flex-start; flex-direction: column; }.entry-type-row { grid-template-columns: 1fr; }.copy-button { width: 100%; }.invoice-upload { align-items: stretch; flex-direction: column; }.invoice-file-input { width: 100%; min-height: 46px; }.dialog-actions { position: sticky; bottom: 0; z-index: 2; margin-inline: -16px; margin-bottom: -16px; padding: 14px 16px max(16px, var(--safe-bottom)); background: linear-gradient(rgba(255,254,250,.92), var(--card) 28%); }
  dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  #entry-form { padding: 18px 16px 16px; }
}
@media (max-width: 430px) { .kpi-grid { grid-template-columns: 1fr; }.top-actions { display: grid; grid-template-columns: 1fr 1fr; }.donut-layout { grid-template-columns: 1fr; justify-items: center; }.breakdown-list { width: 100%; }.legend { display: none; } }
