:root{--bg: #f4f6f4;--surface: #ffffff;--surface-2: #eef1ee;--text: #1a2320;--muted: #55605a;--border: #dde2de;--accent: #2f6f4f;--accent-contrast: #ffffff;--ok: #2f6f4f;--warn: #8a5b00;--danger: #a63a2e;--ok-bg: #e3efe8;--warn-bg: #f6ecd9;--danger-bg: #f7e4e1;--focus: #1d4ed8;--shadow: 0 1px 3px rgba(16, 20, 24, .08);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #101418;--surface: #1a2025;--surface-2: #232a30;--text: #e8ece9;--muted: #a3aeb2;--border: #2c343a;--accent: #63b28c;--accent-contrast: #0c1410;--ok: #79c29e;--warn: #e0b160;--danger: #ec9086;--ok-bg: #1c2f26;--warn-bg: #332a17;--danger-bg: #38201d;--focus: #8ab4f8;--shadow: 0 1px 3px rgba(0, 0, 0, .4);color-scheme:dark}}:root[data-theme=light]{--bg: #f4f6f4;--surface: #ffffff;--surface-2: #eef1ee;--text: #1a2320;--muted: #55605a;--border: #dde2de;--accent: #2f6f4f;--accent-contrast: #ffffff;--ok: #2f6f4f;--warn: #8a5b00;--danger: #a63a2e;--ok-bg: #e3efe8;--warn-bg: #f6ecd9;--danger-bg: #f7e4e1;--focus: #1d4ed8;color-scheme:light}:root[data-theme=dark]{--bg: #101418;--surface: #1a2025;--surface-2: #232a30;--text: #e8ece9;--muted: #a3aeb2;--border: #2c343a;--accent: #63b28c;--accent-contrast: #0c1410;--ok: #79c29e;--warn: #e0b160;--danger: #ec9086;--ok-bg: #1c2f26;--warn-bg: #332a17;--danger-bg: #38201d;--focus: #8ab4f8;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:16px;line-height:1.5}#root{min-height:100dvh}.app-shell{max-width:640px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(64px + env(safe-area-inset-bottom))}.app-header{position:sticky;top:0;z-index:10;background:var(--bg);padding:12px 16px 8px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.app-header h1{font-size:1.15rem;margin:0;font-weight:650}.app-header .subtitle{color:var(--muted);font-size:.85rem}main.app-main{flex:1;padding:0 16px 24px;display:flex;flex-direction:column;gap:16px}.tab-bar{position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--surface);border-top:1px solid var(--border);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom)}.tab-bar-inner{display:flex;width:100%;max-width:640px}.tab-bar a{flex:1;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:var(--muted);font-size:.72rem;font-weight:550}.tab-bar a .tab-icon{font-size:1.15rem;line-height:1}.tab-bar a.active{color:var(--accent)}.tab-bar a:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}.card h2{margin:0;font-size:1rem;font-weight:650}.card h3{margin:0;font-size:.95rem;font-weight:650}.kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;font-weight:700;color:var(--muted)}.next-action-title{font-size:1.25rem;font-weight:700;margin:0;line-height:1.3}.amount-line{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.amount-line .amount{font-size:1.6rem;font-weight:750;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:.85rem}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 10px;font-size:.75rem;font-weight:650;border:1px solid transparent}.badge.ok{color:var(--ok);background:var(--ok-bg)}.badge.warn{color:var(--warn);background:var(--warn-bg)}.badge.danger{color:var(--danger);background:var(--danger-bg)}.badge.neutral{color:var(--muted);background:var(--surface-2)}button,.button{font:inherit;min-height:48px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);padding:10px 16px;font-weight:600;cursor:pointer;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}button.danger-btn{background:var(--danger-bg);border-color:var(--danger);color:var(--danger)}button.link-btn{background:none;border:none;min-height:44px;color:var(--accent);padding:4px 8px;text-decoration:underline}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.button-row>*{flex:1}label.field{display:flex;flex-direction:column;gap:4px;font-size:.9rem;font-weight:600}label.field .hint{font-weight:400;color:var(--muted);font-size:.8rem}input,select,textarea{font:inherit;min-height:48px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:8px 12px;width:100%}textarea{min-height:72px;resize:vertical}input[type=checkbox],input[type=radio]{width:22px;height:22px;min-height:22px;accent-color:var(--accent)}.check-row{display:flex;align-items:flex-start;gap:10px;font-size:.95rem}.check-row input{margin-top:3px;flex-shrink:0}fieldset{border:1px solid var(--border);border-radius:12px;padding:12px;margin:0;display:flex;flex-direction:column;gap:10px}legend{font-weight:650;font-size:.9rem;padding:0 6px}.form-grid{display:flex;flex-direction:column;gap:12px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}details.disclosure{border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}details.disclosure summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:8px 12px;font-weight:600;font-size:.9rem}details.disclosure .disclosure-body{padding:4px 12px 12px;display:flex;flex-direction:column;gap:6px;font-size:.88rem}.calc-lines{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-variant-numeric:tabular-nums}ul.plain{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}.util-bar{height:10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);overflow:hidden;position:relative}.util-bar .fill{height:100%;background:var(--ok);border-radius:999px;min-width:2px}.util-bar .fill.warn{background:var(--warn)}.util-bar .fill.danger{background:var(--danger)}.account-row{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);text-decoration:none;color:inherit}.account-row .row-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.account-row .name{font-weight:650}.money{font-variant-numeric:tabular-nums}.event-list{display:flex;flex-direction:column;gap:8px}.event-item{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.event-item .event-symbol{font-size:1rem;width:24px;text-align:center;flex-shrink:0}.event-date-heading{font-weight:700;font-size:.9rem;margin:8px 0 0}.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.month-grid .dow{text-align:center;font-size:.7rem;font-weight:700;color:var(--muted);padding:4px 0}.month-cell{min-height:52px;border:1px solid var(--border);border-radius:8px;padding:3px 4px;font-size:.75rem;background:var(--surface);display:flex;flex-direction:column;gap:2px;overflow:hidden}.month-cell.outside{opacity:.4}.month-cell.today{border-color:var(--accent);border-width:2px}.month-cell .day-num{font-weight:650}.month-cell .cell-events{display:flex;flex-wrap:wrap;gap:2px;font-size:.7rem;line-height:1}.legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:.8rem}.legend .legend-item{display:inline-flex;gap:6px;align-items:center}.notice{border-radius:10px;padding:10px 12px;font-size:.9rem;border:1px solid var(--border);background:var(--surface-2)}.notice.warn{background:var(--warn-bg);border-color:var(--warn)}.notice.danger{background:var(--danger-bg);border-color:var(--danger)}.notice.ok{background:var(--ok-bg);border-color:var(--ok)}.divider{border:none;border-top:1px solid var(--border);margin:4px 0}.screen-title{font-size:1.3rem;font-weight:700;margin:8px 0 0}.stack{display:flex;flex-direction:column;gap:12px}.row-between{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.onboarding-progress{display:flex;gap:6px}.onboarding-progress .step-dot{height:6px;flex:1;border-radius:999px;background:var(--surface-2);border:1px solid var(--border)}.onboarding-progress .step-dot.done{background:var(--accent);border-color:var(--accent)}@media(min-width:720px){.app-header{padding-top:20px}.month-cell{min-height:72px}}
