:root{--bg:#fff;--surface:#fff;--text:#1c1f26;--text-muted:#6b7280;--border:#e5e7eb;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--primary:#2f6fd6;--primary-dark:#163b73;--on-primary:#fff;--status-safe:#1f9d67;--status-warning:#d99a12;--status-danger:#d0453f;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--sans)}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0}button{font-family:inherit}#root{min-height:100svh}.dashboard{max-width:900px;margin:0 auto;padding:32px 20px 64px}.dashboard__header{background:var(--primary-dark);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;padding:24px 28px;display:flex}.dashboard__header h1{color:var(--on-primary);margin:0;font-size:28px}.summary-stats{gap:24px;display:flex}.summary-stat{text-align:right}.summary-stat__label{color:#ffffffb3;margin-bottom:4px;font-size:13px}.summary-stat__number{color:var(--on-primary);font-size:22px;font-weight:700}.summary-stat__number--negative{color:var(--status-danger)}.transaction-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:28px;padding:16px;display:flex}.type-toggle{border:1px solid var(--border);border-radius:8px;display:flex;overflow:hidden}.type-toggle__btn{background:var(--bg);color:var(--text-muted);cursor:pointer;border:none;padding:10px 14px;font-size:14px;font-weight:600}.type-toggle__btn--active{background:var(--primary);color:var(--on-primary)}.transaction-form__input,.transaction-form__select{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;padding:10px 12px;font-size:14px}.transaction-form__input--amount{flex:0 120px}.transaction-form__input--note{flex:160px}.transaction-form__submit{background:var(--primary);color:var(--on-primary);cursor:pointer;border:none;border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600}.transaction-form__submit:hover{opacity:.85}.budget-progress{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:28px;padding:16px 20px}.budget-progress__header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.budget-progress__label{color:var(--text-muted);font-size:13px;font-weight:600}.budget-progress__edit{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:13px;font-weight:600}.budget-progress__edit:hover{text-decoration:underline}.budget-progress__track{background:var(--bg);border:1px solid var(--border);border-radius:7px;height:14px;overflow:hidden}.budget-progress__fill{border-radius:7px;height:100%;transition:width .2s}.budget-progress__fill--safe{background:var(--status-safe)}.budget-progress__fill--warning{background:var(--status-warning)}.budget-progress__fill--danger{background:var(--status-danger)}.budget-progress__summary{color:var(--text-muted);justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:13px;display:flex}.budget-progress__over{color:var(--status-danger);font-weight:700}.budget-progress--form .budget-progress__form-row{gap:10px;display:flex}.budget-progress__input{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;flex:0 160px;padding:10px 12px;font-size:14px}.budget-progress__submit{background:var(--primary);color:var(--on-primary);cursor:pointer;border:none;border-radius:8px;padding:10px 18px;font-size:14px;font-weight:600}.budget-progress__cancel{border:1px solid var(--border);background:var(--bg);color:var(--text-muted);cursor:pointer;border-radius:8px;padding:10px 14px;font-size:14px}.chart-row{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;margin-bottom:28px;display:grid}.chart-row .category-chart,.chart-row .category-pie-chart{margin-bottom:0}.category-chart{background:var(--surface);border:1px solid var(--border);border-radius:12px;margin-bottom:28px;padding:20px}.category-chart__title{margin:0 0 16px;font-size:16px}.category-chart__bars{flex-direction:column;gap:10px;display:flex}.category-chart__row{grid-template-columns:100px 1fr 80px;align-items:center;gap:10px;display:grid}.category-chart__label{color:var(--text-muted);font-size:13px}.category-chart__track{background:var(--bg);border:1px solid var(--border);border-radius:9px;height:18px;overflow:hidden}.category-chart__fill{background:var(--accent);border-radius:9px;height:100%;transition:width .2s}.category-chart__amount{text-align:right;font-size:13px;font-weight:600}.category-pie-chart{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px}.category-pie-chart__title{margin:0 0 16px;font-size:16px}.category-pie-chart__body{flex-wrap:wrap;align-items:center;gap:24px;display:flex}.category-pie-chart__pie{border-radius:50%;flex-shrink:0;width:140px;height:140px}.category-pie-chart__legend{flex-direction:column;flex:160px;gap:8px;min-width:0;margin:0;padding:0;list-style:none;display:flex}.category-pie-chart__legend-row{grid-template-columns:10px 1fr auto auto;align-items:center;gap:8px;display:grid}.category-pie-chart__legend-dot{background:var(--accent);border-radius:50%;width:10px;height:10px}.category-pie-chart__legend-label{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.category-pie-chart__legend-pct{color:var(--text-muted);font-size:13px}.category-pie-chart__legend-amount{text-align:right;font-size:13px;font-weight:600}.transaction-list{flex-direction:column;gap:8px;display:flex}.transaction-row{background:var(--surface);border:1px solid var(--border);border-radius:10px;grid-template-columns:10px 90px 100px 1fr auto auto;align-items:center;gap:12px;padding:12px 14px;display:grid}.transaction-row__dot{background:var(--accent);border-radius:50%;width:10px;height:10px}.transaction-row__date{color:var(--text-muted);white-space:nowrap;font-size:13px}.transaction-row__category{font-size:13px;font-weight:600}.transaction-row__note{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.transaction-row__amount{white-space:nowrap;font-size:14px;font-weight:700}.transaction-row__delete{color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:0 2px;font-size:18px;line-height:1}.transaction-row__delete:hover{color:#e34948}.empty-state{text-align:center;color:var(--text-muted);padding:32px 20px}.empty-state__hint{margin-top:6px;font-size:14px}
