#egyenleg-app {
  color-scheme: light dark;
  --paper: light-dark(#f5f4f1,#171819);
  --card-bg: light-dark(#fffefa,#222426);
  --ink: light-dark(#222426,#f7f3ed);
  --subtle: light-dark(#605d58,#c3bdb5);
  --rule: light-dark(#e9e4dc,#363839);
  --orange: light-dark(#a74308,#ffae73);
  --orange-solid: #ff9a42;
  --peach: light-dark(#ffead6,#402a1b);
  --sage: light-dark(#e9f0e9,#26382d);
  --good: light-dark(#2d5a41,#a8dfb8);
  --bad: light-dark(#a33a46,#ffaab4);
  --rose: light-dark(#f8e9e8,#43282d);
  --sky: light-dark(#70a8d1,#82b8e3);
  --gold: light-dark(#efc995,#d7a86f);
  --sand: light-dark(#e7944e,#e69250);
  --chart-grid: light-dark(#e8e4de,#45423c); --forecast: light-dark(#356889,#88bcdc);
  color:var(--ink); background:var(--paper); border:1px solid var(--rule);
  border-radius:20px; overflow:hidden; font: 14px/1.45 "Aptos","Inter",system-ui,sans-serif;
  container-type:inline-size; text-align:left;
}
#egyenleg-app *, #egyenleg-app *::before, #egyenleg-app *::after {box-sizing:border-box}
#egyenleg-app [hidden] {display:none!important}
#egyenleg-app h1,#egyenleg-app h2,#egyenleg-app h3,#egyenleg-app p,#egyenleg-app figure {margin:0}
#egyenleg-app h1 {font-size:clamp(29px,4.2cqi,43px);line-height:1.04;letter-spacing:-.055em;font-weight:650}
#egyenleg-app h2 {font-size:17px;line-height:1.25;letter-spacing:-.035em;font-weight:670}
#egyenleg-app h3 {font-size:14px;letter-spacing:-.015em}
#egyenleg-app button,#egyenleg-app input,#egyenleg-app select,#egyenleg-app textarea {font:inherit}
#egyenleg-app button {cursor:pointer}
#egyenleg-app :focus-visible {outline:2px solid #d16614;outline-offset:3px}
#egyenleg-app .shell {display:grid;grid-template-columns:177px minmax(0,1fr);min-width:0}
#egyenleg-app .rail {background:#22262a;color:#fff4ea;padding:25px 14px 18px;display:flex;flex-direction:column;gap:26px}
#egyenleg-app .brand {display:flex;align-items:center;gap:10px;font-size:19px;font-weight:680;letter-spacing:-.06em;white-space:nowrap;margin-left:4px}
#egyenleg-app .brand-mark {display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:10px;background:#ff9a42;color:#261a0f}
#egyenleg-app .brand-mark i {display:block}
#egyenleg-app .side-nav {display:grid;gap:4px}
#egyenleg-app .nav-button {border:0;background:transparent;color:#d5d8da;text-align:left;padding:9px 10px;border-radius:9px;white-space:nowrap;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:550;min-height:39px}
#egyenleg-app .nav-button:hover {background:#353b41;color:#fff}
#egyenleg-app .nav-button[aria-current="page"] {background:#3a312a;color:#ffb272;box-shadow:inset 2px 0 #ff9a42}
#egyenleg-app .side-foot {border-top:1px solid #41464a;padding-top:12px}
#egyenleg-app .content {padding:25px 25px 24px;min-width:0}
#egyenleg-app .top {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:20px;padding-right:25px}
#egyenleg-app .eyebrow {color:var(--subtle);font-size:11px;letter-spacing:.095em;text-transform:uppercase;font-weight:650;margin-bottom:7px}
#egyenleg-app .button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:8px 12px;border:1px solid var(--rule);border-radius:9px;color:var(--ink);background:var(--card-bg);font-weight:620;font-size:12px}
#egyenleg-app .button:hover {background:var(--peach)}
#egyenleg-app .primary {background:var(--orange-solid);border-color:var(--orange-solid);color:#25180b}
#egyenleg-app .primary:hover {background:#ffaf69}
#egyenleg-app .quiet {background:transparent}
#egyenleg-app .toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:16px}
#egyenleg-app .toggle {display:flex;flex-wrap:wrap;gap:3px;padding:3px;background:var(--card-bg);border:1px solid var(--rule);border-radius:10px}
#egyenleg-app .toggle button {border:0;border-radius:7px;min-height:31px;background:transparent;color:var(--subtle);font-size:12px;font-weight:620;padding:4px 10px}
#egyenleg-app .toggle button[aria-pressed="true"] {background:var(--peach);color:var(--orange)}
#egyenleg-app .picker {display:flex;gap:7px;align-items:center;color:var(--subtle);font-size:12px}
#egyenleg-app select,#egyenleg-app input,#egyenleg-app textarea {min-width:0;max-width:100%;border:1px solid var(--rule);border-radius:8px;background:var(--card-bg);color:var(--ink);padding:8px 9px}
#egyenleg-app .picker select {font-size:12px;color:var(--ink)}
#egyenleg-app .stack {display:grid;gap:12px}
#egyenleg-app .pair {display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
#egyenleg-app .chart-pair {grid-template-columns:minmax(0,1.52fr) minmax(0,1fr)}
#egyenleg-app .panel {min-width:0;border:1px solid var(--rule);border-radius:13px;background:var(--card-bg);padding:15px}
#egyenleg-app .hero {border-color:transparent;padding:17px 16px}
#egyenleg-app .hero.peach {background:var(--peach)}
#egyenleg-app .hero.green {background:var(--sage)}
#egyenleg-app .hero.danger {background:var(--rose)}
#egyenleg-app .hero .metric-title {display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650}
#egyenleg-app .metric {font-size:clamp(22px,3.8cqi,37px);letter-spacing:-.062em;line-height:1.12;font-weight:670;margin-top:8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#egyenleg-app .secondary {color:var(--subtle);font-size:11.5px;line-height:1.4;margin-top:5px}
#egyenleg-app .green .secondary {color:var(--good)}
#egyenleg-app .danger .secondary,#egyenleg-app .negative {color:var(--bad)}
#egyenleg-app .accounts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;padding:0;list-style:none}
#egyenleg-app .accounts li {min-width:0;padding:9px 9px 8px;border:1px solid var(--rule);border-radius:9px;background:var(--card-bg);display:grid;gap:3px}
#egyenleg-app .account-label {font-size:11px;color:var(--subtle);line-height:1.25}
#egyenleg-app .account-amount {font-size:14px;font-weight:670;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#egyenleg-app .trend-label {min-width:42px}
#egyenleg-app .trend-track {flex:1;align-self:center;max-width:65%;height:9px;border-radius:4px;background:var(--rule);overflow:hidden}
#egyenleg-app .trend-fill {display:block;height:100%;background:var(--orange);border-radius:4px}
#egyenleg-app .button-small {min-height:32px;font-size:11px;padding:5px 8px;white-space:nowrap}
#egyenleg-app .panel-head {display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:12px;flex-wrap:wrap}
#egyenleg-app .key {display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;color:var(--subtle);font-size:11px}
#egyenleg-app .key span {display:inline-flex;gap:5px;align-items:center}
#egyenleg-app .key b {width:14px;border-top:2px solid var(--orange)}
#egyenleg-app .key .forecast-key {border-top-style:dashed;border-top-color:var(--forecast)}
#egyenleg-app .balance-chart {min-width:0}
#egyenleg-app .balance-chart svg {display:block;width:100%;height:161px;overflow:visible}
#egyenleg-app .chart-label {font-size:11px;fill:var(--subtle);font-family:inherit}
#egyenleg-app .chart-inspect {font-size:11px;color:var(--subtle);margin-top:4px;min-height:17px}
#egyenleg-app .donut-wrap {display:grid;justify-items:center;gap:10px}
#egyenleg-app .donut {position:relative;width:126px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center}
#egyenleg-app .donut::after {position:absolute;inset:15px;content:"";border-radius:50%;background:var(--card-bg)}
#egyenleg-app .donut-label {position:relative;z-index:1;text-align:center;line-height:1.2}
#egyenleg-app .donut-label strong {display:block;letter-spacing:-.04em;font-size:15px;font-variant-numeric:tabular-nums}
#egyenleg-app .donut-label span {color:var(--subtle);font-size:11px}
#egyenleg-app .legend {display:grid;gap:4px;width:100%;margin:0;padding:0;list-style:none}
#egyenleg-app .legend li {display:grid;grid-template-columns:9px minmax(0,1fr) max-content;gap:7px;align-items:center;font-size:11px;color:var(--subtle)}
#egyenleg-app .legend strong {color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
#egyenleg-app .swatch {width:8px;height:8px;border-radius:3px}
#egyenleg-app .list {list-style:none;margin:0;padding:0}
#egyenleg-app .list li + li {border-top:1px solid var(--rule)}
#egyenleg-app .row {display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;padding:8px 0}
#egyenleg-app .row-content {min-width:0;overflow-wrap:anywhere}
#egyenleg-app .row-name {font-weight:630;font-size:13px}
#egyenleg-app .amount {font-weight:660;white-space:nowrap;font-variant-numeric:tabular-nums}
#egyenleg-app .positive {color:var(--good)}
#egyenleg-app .linked {color:var(--orange);border:0;padding:3px 0;background:none;text-align:left;font-size:12px;font-weight:650}
#egyenleg-app .linked:hover {text-decoration:underline}
#egyenleg-app .goal + .goal {border-top:1px solid var(--rule);margin-top:11px;padding-top:11px}
#egyenleg-app .goal-line {display:flex;justify-content:space-between;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:12px}
#egyenleg-app .goal-line strong {font-variant-numeric:tabular-nums}
#egyenleg-app .track {height:7px;border-radius:10px;background:var(--rule);margin-top:7px;overflow:hidden}
#egyenleg-app .track span {display:block;height:100%;border-radius:10px;background:var(--orange);max-width:100%}
#egyenleg-app .goal:nth-child(2) .track span {background:var(--good)}
#egyenleg-app .badge {display:inline-block;border-radius:30px;padding:2px 6px;font-size:10.5px;background:var(--peach);color:var(--orange);font-weight:550}
#egyenleg-app .badge.overdue {background:var(--rose);color:var(--bad)}
#egyenleg-app .table-wrap {overflow:auto}
#egyenleg-app table {width:100%;border-collapse:collapse;text-align:left;font-size:12px}
#egyenleg-app th,#egyenleg-app td {padding:9px 6px;border-bottom:1px solid var(--rule);vertical-align:top}
#egyenleg-app tr:last-child td {border-bottom:0}
#egyenleg-app th {font-size:11px;color:var(--subtle);font-weight:620;white-space:nowrap}
#egyenleg-app th:last-child,#egyenleg-app td:last-child {text-align:right}
#egyenleg-app .report-values {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#egyenleg-app .report-values .metric {font-size:clamp(17px,2.4cqi,26px)}
#egyenleg-app .filters {display:flex;flex-wrap:wrap;gap:7px;align-items:center}
#egyenleg-app .filters input,#egyenleg-app .filters select {font-size:12px}
#egyenleg-app .dialog-wrap {padding:18px;border-top:1px solid var(--rule);background:var(--paper)}
#egyenleg-app .dialog-card {max-width:560px;margin:0 auto}
#egyenleg-app .form-grid {display:grid;grid-template-columns:1fr 1fr;gap:10px}
#egyenleg-app form label {display:grid;gap:4px;font-size:12px;font-weight:610}
#egyenleg-app form .full {grid-column:1 / -1}
#egyenleg-app form .actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:12px}
#egyenleg-app .login {max-width:350px;margin:22px auto 28px;padding:22px}
#egyenleg-app .login .brand {margin:0 0 16px}
#egyenleg-app .login form {margin-top:15px}
#egyenleg-app .login .actions {justify-content:stretch;display:grid;gap:8px}
#egyenleg-app .notice {background:var(--peach);color:var(--orange);border-radius:8px;padding:8px 10px;margin-bottom:11px;font-size:12px}
#egyenleg-app .alert {color:var(--bad);margin-top:8px;font-size:12px}
#egyenleg-app .no-content {padding:10px 0;color:var(--subtle);font-size:12px}
#egyenleg-app .footnote {color:var(--subtle);font-size:11px;margin-top:12px}
#egyenleg-app .visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#egyenleg-app .nowrap {white-space:nowrap}
@container (max-width:760px) {
  #egyenleg-app .shell {grid-template-columns:1fr}
  #egyenleg-app .rail {padding:10px 13px;gap:10px;display:grid;grid-template-columns:1fr auto;align-items:center}
  #egyenleg-app .side-nav {grid-column:1/-1;grid-row:2;display:flex;gap:3px;flex-wrap:wrap}
  #egyenleg-app .side-foot {grid-column:2;grid-row:1;margin:0;border:0;padding:0}
  #egyenleg-app .rail .nav-button {padding:7px 8px;min-height:34px}
  #egyenleg-app .content {padding:17px 14px}
  #egyenleg-app .top {padding-right:0}
}
@container (max-width:540px) {
  #egyenleg-app .chart-pair,#egyenleg-app .lower {grid-template-columns:minmax(0,1fr)}
  #egyenleg-app .accounts {grid-template-columns:repeat(2,minmax(0,1fr))}
  #egyenleg-app .nav-button {font-size:11px;gap:4px}
  #egyenleg-app .nav-button svg {width:13px;height:13px}
  #egyenleg-app .hero {padding:12px 10px}
  #egyenleg-app .hero .metric-title {font-size:11.5px;gap:4px}
  #egyenleg-app .panel {padding:12px}
  #egyenleg-app .table-wrap table thead {display:none}
  #egyenleg-app .table-wrap table tr {display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--rule);padding:6px 0}
  #egyenleg-app .table-wrap table td {padding:2px 0;border:0}
  #egyenleg-app .table-wrap table td:first-child {grid-column:1;grid-row:1}
  #egyenleg-app .table-wrap table td:last-child {grid-column:2;grid-row:1}
  #egyenleg-app .table-wrap table td:nth-child(2),#egyenleg-app .table-wrap table td:nth-child(3) {grid-column:1;color:var(--subtle)}
  #egyenleg-app .report-values {grid-template-columns:1fr}
}
@media (pointer:coarse) {
  #egyenleg-app button,#egyenleg-app .rail .nav-button {min-height:44px}
  #egyenleg-app input,#egyenleg-app select,#egyenleg-app textarea {font-size:16px}
}
  
html {color-scheme:light dark;background:light-dark(#eeede9,#111214)}
body {margin:0;padding:24px}
#egyenleg-app {max-width:1320px;margin:0 auto}
#egyenleg-app .shell {min-height:min(820px,calc(100vh - 50px))}
#egyenleg-app .top {padding-right:0}
#egyenleg-app .rail {padding-bottom:22px}
#egyenleg-app .side-foot {display:grid;gap:6px}
#egyenleg-app .side-foot form {margin:0}
#egyenleg-app .side-foot form button {width:100%}
#egyenleg-app .nav-button {font-size:14px}
#egyenleg-app button:disabled {opacity:.55;cursor:default}
#egyenleg-app .login {margin-block:clamp(24px,8vh,75px)}
#egyenleg-app .login h1 {font-size:30px}
#egyenleg-app .login .button {width:100%}
#egyenleg-app .login form label + label {margin-top:10px}
#egyenleg-app .setup-instructions {max-width:510px}
#egyenleg-app .setup-instructions ol {padding-left:22px;margin:12px 0}
#egyenleg-app .setup-instructions li + li {margin-top:5px}
#egyenleg-app .setup-instructions textarea {display:block;width:100%;margin-top:4px;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:12px}
#egyenleg-app .form-grid fieldset {border:1px solid var(--rule);border-radius:8px;min-width:0;padding:10px}
#egyenleg-app .form-grid legend {padding:0 6px;font-weight:650}
#egyenleg-app .date-range {display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-bottom:12px}
#egyenleg-app .date-range label {display:grid;gap:3px;color:var(--subtle);font-size:12px}
#egyenleg-app .date-range .button {align-self:end}
#egyenleg-app .actions .remove {margin-right:auto;color:var(--bad)}
#egyenleg-app .empty-action {margin-top:8px}
#egyenleg-app .warning {background:var(--rose);color:var(--bad)}
#egyenleg-app .brand-mark i::before {content:"";width:13px;height:7px;display:block;border:2px solid currentColor;border-radius:2px;box-shadow:0 4px 0 -1px currentColor;transform:rotate(-25deg)}
#egyenleg-app i[data-lucide]:not([data-lucide="layers-2"]) {display:inline-grid;width:15px;height:15px;place-items:center;flex:none;font-style:normal;line-height:1}
#egyenleg-app i[data-lucide="plus"]::before {content:"+";font-size:18px}
#egyenleg-app i[data-lucide="layout-dashboard"]::before {content:"⊞";font-size:17px}
#egyenleg-app i[data-lucide="list"]::before {content:"≡";font-size:17px}
#egyenleg-app i[data-lucide="calendar-days"]::before {content:"▦";font-size:15px}
#egyenleg-app i[data-lucide="receipt-text"]::before {content:"▤";font-size:15px}
#egyenleg-app i[data-lucide="chart-no-axes-combined"]::before {content:"∿";font-size:20px}
#egyenleg-app i[data-lucide="wallet"]::before {content:"▱";font-size:17px}
#egyenleg-app i[data-lucide="shield-check"]::before {content:"✓";font-size:16px}
#egyenleg-app i[data-lucide="arrow-right-left"]::before {content:"⇄";font-size:15px}
#egyenleg-app i[data-lucide="settings"]::before {content:"⚙";font-size:15px}
#egyenleg-app i[data-lucide="exit"]::before {content:"↪";font-size:15px}
@media (max-width:760px) {
  body {padding:8px}
  #egyenleg-app .shell {min-height:0}
}
@container (max-width:760px) {
  #egyenleg-app .side-foot {display:flex;align-items:center;flex-wrap:wrap}
  #egyenleg-app .nav-button {font-size:12px}
}
@container (max-width:430px) {
  #egyenleg-app .side-foot {gap:0}
  #egyenleg-app .side-foot .nav-button {padding-inline:4px;font-size:11px}
  #egyenleg-app .side-foot i {display:none!important}
  #egyenleg-app .brand {font-size:17px;gap:6px;margin-left:0}
  #egyenleg-app .brand-mark {width:26px;height:26px}
  #egyenleg-app .accounts .account-amount {font-size:14px}
}
