:root{--text:#475569;--text-h:#0f172a;--muted:#94a3b8;--bg:#f8fafc;--panel:#fff;--field:#f8fafc;--section:#f8fafc;--border:#f1f5f9;--accent:#4f46e5;--accent-strong:#312e81;--accent-soft:#4f46e51f;--accent-border:#c7d2fe;--danger:#e11d48;--success:#10b981;--rose:#f43f5e;--sky:#0ea5e9;--shadow:0 1px 2px #0f172a0a;--sans:"Plus Jakarta Sans", Inter, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;font:16px/1.5 var(--sans);color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background:radial-gradient(circle at top right, #eef2ffc7, transparent 34rem), radial-gradient(circle at bottom left, #ecfdf5c7, transparent 30rem), var(--bg);min-width:320px;margin:0}button,input,select,textarea{font-family:inherit}button{letter-spacing:0}h1,h2,p{margin:0}h1,h2{color:var(--text-h);letter-spacing:0;font-weight:900}h1{font-size:34px;line-height:1.15}h2{font-size:22px;line-height:1.2}#root{min-height:100svh}.app-shell{box-sizing:border-box;width:min(1280px,100%);margin:0 auto;padding:32px}.app-header{justify-content:space-between;gap:24px;margin-bottom:38px;display:flex}.app-brand-row{align-items:center;gap:12px;margin-bottom:4px;display:flex}.app-brand-mark{background:var(--accent);color:#fff;border-radius:18px;place-items:center;width:40px;height:40px;font-size:12px;font-weight:900;display:grid;box-shadow:0 10px 22px #4f46e538}.app-header h1{color:var(--text-h);margin:0;font-size:32px;font-weight:900;line-height:1.1}.app-header h1 span,.transaction-modal h2 span{color:var(--accent)}.app-header p{color:#64748b;margin:0;font-size:15px;font-weight:700}.view-switcher{border:1px solid var(--border);box-shadow:var(--shadow);background:#fff;border-radius:18px;flex-wrap:wrap;gap:8px;margin-bottom:32px;padding:6px;display:inline-flex}.view-switcher-link{min-height:40px;color:var(--muted);border-radius:13px;justify-content:center;align-items:center;padding:0 22px;font-size:14px;font-weight:900;text-decoration:none;transition:color .16s,background .16s,box-shadow .16s;display:inline-flex}.view-switcher-link:hover{color:#475569;background:var(--section)}.view-switcher-link.active{color:#fff;background:#0f172a;box-shadow:0 12px 22px #0f172a21}.app-main{text-align:left}.summary-card-grid,.kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin-bottom:34px;display:grid}.summary-card,.kpi-card{border:1px solid var(--border);min-height:92px;box-shadow:var(--shadow);box-sizing:border-box;background:#fff;border-radius:24px;align-items:center;gap:16px;padding:22px;display:flex}.summary-card-icon{background:#f1f5f9;border-radius:18px;flex:none;width:48px;height:48px}.summary-card p,.kpi-label{color:#64748b;margin:0 0 4px;font-size:13px;font-weight:800}.summary-card strong,.kpi-value{color:var(--text-h);font-size:21px;font-weight:900;line-height:1.18;display:block}.summary-card.income .summary-card-icon{background:#ecfdf5}.summary-card.expense .summary-card-icon{background:#fff1f2}.summary-card.saving .summary-card-icon{background:#f0f9ff}.summary-card.invest .summary-card-icon,.summary-card.balance .summary-card-icon{background:#eef2ff}.ledger-section,.filter-results,.filter-panel,.asset-section,.annual-section,.chart-card,.summary-section{border:1px solid var(--border);box-shadow:var(--shadow);background:#fff;border-radius:32px}.ledger-section{position:relative;overflow:hidden}.ledger-header{justify-content:space-between;align-items:center;gap:16px;padding:24px 28px;display:flex}.ledger-title-block h2,.asset-section-header h2,.filter-results-header h2,.filter-panel-header h2,.annual-header h2,.chart-card-header h2{color:var(--text-h);margin:0;font-size:19px;font-weight:900}.ledger-title-block span{color:var(--muted);margin-top:4px;font-size:12px;font-weight:900;display:block}.ledger-header-actions,.asset-form-actions,.filter-panel-actions,.row-actions{flex-wrap:wrap;gap:8px;display:flex}.toolbar-btn,.ghost-btn,.asset-tab,.filter-panel-actions button,.row-edit,.row-delete,.selection-danger-btn{color:#475569;min-height:38px;font:inherit;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:0 14px;font-size:13px;font-weight:900;transition:border-color .16s,background .16s,color .16s,transform .12s}.toolbar-btn:hover:not(:disabled),.ghost-btn:hover:not(:disabled),.asset-tab:hover,.filter-panel-actions button:hover,.row-edit:hover{background:#f8fafc;border-color:#cbd5e1}.toolbar-btn:disabled,.ghost-btn:disabled{opacity:.5;cursor:not-allowed}.primary-btn,.asset-add-btn,.modal-submit,.form-actions button,.asset-form-actions button[type=submit]{color:#fff;min-height:42px;font:inherit;cursor:pointer;background:#0f172a;border:0;border-radius:12px;padding:0 18px;font-size:14px;font-weight:900;box-shadow:0 14px 26px #0f172a1f}.primary-btn:hover,.asset-add-btn:hover,.modal-submit:hover,.form-actions button:hover{background:var(--accent)}.ledger-toolbar{border:1px solid var(--border);background:#fff;border-radius:24px;align-items:center;gap:14px;margin:0 20px 20px;padding:16px;display:flex}.ledger-search-wrap{flex:1;min-width:220px}.ledger-search{width:100%;color:var(--text-h);background:#f8fafc;border:0;border-radius:18px;padding:13px 16px;font-size:14px;font-weight:800}.period-picker{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.period-picker label{color:#64748b;background:#f8fafc;border-radius:16px;align-items:center;gap:8px;min-height:40px;padding:0 12px;font-size:12px;font-weight:900;display:inline-flex}label{color:#94a3b8;letter-spacing:.04em;text-transform:uppercase;gap:8px;font-size:11px;font-weight:900;display:grid}input,select,textarea{box-sizing:border-box;width:100%;color:var(--text-h);background:var(--field);font:inherit;letter-spacing:0;border:0;border-radius:16px;padding:12px 14px;font-size:14px;font-weight:800}textarea{resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:0}.period-picker select{background:0 0;width:auto;min-width:78px;padding:6px 18px 6px 0}.selection-danger-btn,.ghost-btn.danger,.row-delete:hover{color:var(--danger);background:#fff1f2;border-color:#fecdd3}.ledger-table-wrapper{overflow-x:auto}.ledger-table{border-collapse:collapse;width:100%;font-size:14px}.ledger-table th{color:#94a3b8;letter-spacing:.08em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f8fafc;padding:18px 24px;font-size:11px;font-weight:900}.ledger-table td{border-top:1px solid var(--border);color:#475569;white-space:nowrap;padding:18px 24px;font-size:14px;font-weight:700}.ledger-table tbody tr{transition:background .16s}.ledger-table tbody tr:hover,.ledger-table tr.is-selected{background:#f8fafc}.ledger-table .amount-col,.amount-col{text-align:right;font-variant-numeric:tabular-nums}.select-col{text-align:center;width:44px}.select-col input[type=checkbox],.filter-main-label input,.filter-detail-label input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0}.sort-btn{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;display:inline-flex}.sort-btn.active,.sort-btn:hover{color:var(--accent)}.sort-arrow{min-width:10px;font-size:10px}.type-badge{border:1px solid;border-radius:999px;align-items:center;min-height:22px;padding:0 10px;font-size:10px;font-weight:900;display:inline-flex}.type-수입{color:#059669;background:#ecfdf5;border-color:#d1fae5}.type-지출{color:#e11d48;background:#fff1f2;border-color:#ffe4e6}.type-저축{color:#0284c7;background:#f0f9ff;border-color:#e0f2fe}.type-투자{color:#4f46e5;background:#eef2ff;border-color:#e0e7ff}.category-stack{gap:2px;display:grid}.category-stack strong{color:#1e293b;font-size:14px;font-weight:900}.category-stack small{color:#94a3b8;font-size:11px;font-weight:800}.empty-message{color:var(--muted);text-align:center;padding:44px 20px;font-weight:800}.error-message{color:#be123c;background:#fff1f2;border:1px solid #fecdd3;border-radius:14px;margin:0 20px 18px;padding:12px 14px;font-size:14px;font-weight:800}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172a9e;justify-content:center;align-items:center;padding:18px;display:flex;position:fixed;inset:0}.transaction-modal{background:#fff;border-radius:40px;width:min(560px,100%);max-height:calc(100svh - 36px);overflow:auto;box-shadow:0 28px 70px #0f172a47}.modal-header{border-bottom:1px solid var(--border);background:#f8fafcb8;justify-content:space-between;align-items:center;padding:24px 30px;display:flex}.modal-header h2{color:var(--text-h);margin:0;font-size:21px;font-weight:900}.modal-close{color:#94a3b8;cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;width:40px;height:40px;font-size:30px;line-height:1;display:grid;transform:rotate(45deg)}.modal-close:hover{color:#475569;background:#fff}.modal-body{gap:20px;padding:30px;display:grid}.type-selector{background:#f1f5f9;border-radius:18px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:6px;display:grid}.type-selector button{color:#64748b;min-height:36px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:13px;font-size:12px;font-weight:900}.type-selector button.active{color:var(--accent);box-shadow:var(--shadow);background:#fff}.form-grid{gap:14px;display:grid}.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.three-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.amount-input{text-align:right;font-variant-numeric:tabular-nums}.modal-amount-preview{background:#eef2ff;border-radius:16px;justify-content:space-between;align-items:baseline;padding:14px 16px;display:flex}.modal-amount-preview span{color:#64748b;font-size:12px;font-weight:900}.modal-amount-preview strong{color:var(--accent);font-size:20px;font-weight:900}.modal-submit{border-radius:18px;min-height:52px}.ledger-edit-row td,.asset-edit-row td{background:#f8fafc;padding:18px}.ledger-edit-form,.asset-form{background:#fff;border-radius:18px;gap:14px;padding:16px;display:grid}.asset-form-actions{justify-content:flex-end}.asset-form-actions button[type=button]{color:#64748b;min-height:38px;font:inherit;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:0 14px;font-weight:900}.page-header{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px;display:flex}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px;font-size:12px;font-weight:900}.page-header h1{color:var(--text-h);margin:0;font-size:30px;font-weight:900}.summary-stack{gap:24px;display:grid}.chart-card{padding:24px}.chart-card-header{margin-bottom:18px}.summary-section{overflow:hidden}.summary-section-header{background:var(--accent);color:#fff;grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);align-items:center;gap:24px;padding:24px 28px;display:grid}.summary-section-title{align-items:baseline;gap:16px;display:flex}.summary-section-title h2{color:#fff;margin:0;font-size:24px;font-weight:900}.summary-section-title span,.summary-progress-meta{color:#ffffffdb;font-size:13px;font-weight:900}.summary-progress-meta{justify-content:space-between;margin-bottom:8px;display:flex}.progress-track{background:#ffffff3d;border-radius:999px;height:12px;overflow:hidden}.progress-fill{border-radius:inherit;background:#fff;height:100%}.goal-input{max-width:142px;margin-left:auto;padding:9px 12px}.delta-under{color:#e11d48;font-weight:900}.delta-over{color:#10b981;font-weight:900}.delta-neutral{color:var(--muted);font-weight:900}.filter-layout{grid-template-columns:300px minmax(0,1fr);align-items:start;gap:24px;display:grid}.filter-panel,.filter-results,.asset-section,.annual-section{padding:22px}.filter-panel{max-height:calc(100vh - 40px);position:sticky;top:20px;overflow-y:auto}.filter-panel-header,.filter-results-header,.asset-section-header,.annual-header{justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;display:flex}.filter-group{border-top:1px solid var(--border);padding:14px 0}.filter-group:first-of-type{border-top:0}.filter-main-label,.filter-detail-label{color:#334155;letter-spacing:0;text-transform:none;cursor:pointer;align-items:center;gap:9px;font-size:14px;font-weight:900;display:flex}.filter-subs{gap:10px;margin-top:12px;padding-left:26px;display:grid}.filter-sub-name{color:var(--muted);text-transform:uppercase;margin:0 0 6px;font-size:11px;font-weight:900}.filter-sub ul{gap:5px;margin:0;padding:0;list-style:none;display:grid}.filter-results-meta{align-items:baseline;gap:10px;display:flex}.filter-results-meta span{color:var(--muted);font-size:13px;font-weight:900}.filter-results-meta strong{color:var(--accent);font-size:19px;font-weight:900}.kpi-card{display:block}.kpi-balance{background:#0f172a;border-color:#0f172a}.kpi-balance .kpi-label,.kpi-balance .kpi-value{color:#fff}.kpi-balance-negative{background:#e11d48;border-color:#e11d48}.annual-table th,.annual-table td{padding:14px 16px;font-size:13px}.annual-row-label{z-index:1;color:var(--text-h);background:#fff;font-weight:900;position:sticky;left:0}.annual-total-cell{color:var(--accent);background:#eef2ff;font-weight:900}.annual-balance-row td{border-top:2px solid #e0e7ff;font-weight:900}.asset-tabs{border:1px solid var(--border);background:#fff;border-radius:18px;flex-wrap:wrap;gap:8px;width:fit-content;margin:18px 0;padding:6px;display:flex}.asset-tab{border-color:#0000;border-radius:13px}.asset-tab.active{color:#fff;background:#0f172a}.asset-form{background:#f8fafc;border:1px dashed #cbd5e1;margin-bottom:18px}@media (width<=1080px){.summary-card-grid,.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=860px){.app-shell{padding:24px 16px}.ledger-header,.ledger-toolbar,.page-header{flex-direction:column;align-items:stretch}.ledger-header-actions,.period-picker{width:100%}.filter-layout{grid-template-columns:1fr}.filter-panel{max-height:none;position:static}.summary-section-header{grid-template-columns:1fr}}@media (width<=620px){.app-header h1{font-size:28px}.view-switcher,.asset-tabs{box-sizing:border-box;width:100%}.view-switcher-link,.asset-tab{flex:auto}.summary-card-grid,.kpi-grid,.two-columns,.three-columns{grid-template-columns:1fr}.type-selector{grid-template-columns:repeat(2,minmax(0,1fr))}input,select,textarea{font-size:16px}}
