.ledgerNav{color:#ffe08a!important}
.ledgerNav.active{color:#0a1745!important;background:linear-gradient(135deg,#ffe27e,#ffb654)!important;box-shadow:0 9px 24px #ffbe4b40}
.familyCard>div.v22FamilyPortrait{background-repeat:no-repeat;background-size:470%;border:2px solid #ffffff85;border-radius:24px;width:92px;height:92px;box-shadow:0 12px 30px #111a54a6,inset 0 0 20px #ffffff33}
.familyCard:hover>div.v22FamilyPortrait{transform:translateY(-4px) scale(1.04)}
main.v22-ledger-open>section:not(#v22-ledger-app),main.v22-ledger-open>footer{display:none!important}
#v22-ledger-app{display:none;min-height:calc(100vh - 82px)}
main.v22-ledger-open>#v22-ledger-app{display:block}
.v22-ledger{--gold:#ffd66b;--cyan:#78e8ff;--pink:#ff84b9;--ink:#08102f;--panel:#111b48e8;position:relative;isolation:isolate;color:#f7f8ff;background:#07102e;min-height:calc(100vh - 82px);padding:42px max(24px,6vw) 90px;overflow:hidden}
.v22-ledger:before{content:"";z-index:-2;background:linear-gradient(180deg,#07102fa8 0,#07102fe8 380px,#07102f 760px),url(/page-files.png) top center/cover no-repeat;position:absolute;inset:0 0 auto;height:760px}
.v22-ledger:after{content:"";z-index:-1;opacity:.5;background:radial-gradient(circle at 15% 15%,#5068ff4d,transparent 32%),radial-gradient(circle at 85% 10%,#ffd86b35,transparent 30%);position:absolute;inset:0;pointer-events:none}
.ledgerHero{border:1px solid #ffffff2e;border-radius:30px;min-height:220px;margin:0 auto 24px;padding:34px 360px 34px 36px;position:relative;overflow:hidden;background:linear-gradient(115deg,#111b51f5 0%,#15235bd9 56%,#493e8cb3 100%);box-shadow:0 28px 80px #0007,inset 0 1px #ffffff24}
.ledgerHero .eyebrow{color:#82edff;letter-spacing:.18em;font-size:12px;font-weight:900;margin:0 0 10px}.ledgerHero h1{font-size:clamp(34px,5vw,58px);letter-spacing:-.05em;line-height:1.05;margin:0 0 12px}.ledgerHero h1 em{color:var(--gold);font-style:normal}.ledgerHero p{color:#cad5ff;line-height:1.75;margin:0;max-width:600px}.ledgerHeroArt{position:absolute;right:8px;bottom:-28px;width:350px;height:250px;object-fit:contain;filter:drop-shadow(0 22px 28px #0008)}
.ledgerTopbar,.ledgerTabs,.ledgerPanel,.ledgerMetric{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);background:var(--panel);border:1px solid #8db4ff30;box-shadow:0 18px 50px #00000038}
.ledgerTopbar{border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 auto 16px;padding:13px 15px}.ledgerFilters,.ledgerActions,.ledgerInlineFilters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.v22-ledger button,.v22-ledger select,.v22-ledger input,.v22-ledger textarea{font:inherit}.v22-ledger button{cursor:pointer}.ledgerSelect,.ledgerInput,.ledgerTextarea{color:#f8f9ff;background:#070e2ccf;border:1px solid #8aa8ef52;border-radius:12px;padding:10px 12px;outline:none}.ledgerSelect:focus,.ledgerInput:focus,.ledgerTextarea:focus{border-color:#77e6ff;box-shadow:0 0 0 3px #58dfff20}.ledgerSelect option{color:#111;background:#fff}.ledgerButton{color:#eef5ff;background:#263875;border:1px solid #91aaf044;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;font-weight:800}.ledgerButton:hover{transform:translateY(-1px);border-color:#8feaff}.ledgerButton.primary{color:#17204d;background:linear-gradient(135deg,#ffe27b,#ffb951);border:0}.ledgerButton.cyan{color:#061537;background:linear-gradient(135deg,#85efff,#65bfff);border:0}.ledgerButton.ghost{background:#ffffff0b}.ledgerButton.danger{color:#ffb6c5;background:#6b183347;border-color:#ff6a8b55}.ledgerButton.small{border-radius:9px;padding:7px 10px;font-size:12px}
.ledgerTabs{border-radius:16px;display:flex;gap:6px;margin:0 auto 18px;padding:6px}.ledgerTabs button{color:#aebbe8;background:transparent;border:0;border-radius:11px;padding:11px 18px;font-weight:900}.ledgerTabs button.active{color:#101b49;background:linear-gradient(135deg,#8af0ff,#72c4ff);box-shadow:0 8px 24px #62dfff35}
.ledgerMetrics{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin-bottom:16px}.ledgerMetric{border-radius:20px;padding:20px;min-width:0}.ledgerMetric small{color:#9eacd7;display:block;font-weight:800}.ledgerMetric strong{display:block;font-size:clamp(21px,2vw,31px);letter-spacing:-.04em;margin:8px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledgerMetric span{color:#8593c2;font-size:12px}.ledgerMetric.income strong{color:#75e8bb}.ledgerMetric.expense strong{color:#ff8da9}.ledgerMetric.balance strong{color:#86e8ff}.ledgerMetric.saving strong{color:#ffd46b}.ledgerMetric.loan strong{color:#d7b4ff}
.ledgerGrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:16px;margin-bottom:16px}.ledgerPanel{border-radius:22px;padding:22px;min-width:0}.ledgerPanelHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.ledgerPanelHead h2,.ledgerPanelHead h3{font-size:20px;margin:0}.ledgerPanelHead span,.ledgerMuted{color:#93a1ce;font-size:13px}
.ledgerChart{height:220px;display:flex;align-items:flex-end;gap:9px;padding:10px 3px 0}.ledgerMonth{flex:1;min-width:0;text-align:center}.ledgerBars{height:180px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.ledgerBar{width:min(12px,42%);min-height:2px;border-radius:7px 7px 2px 2px;transition:.25s}.ledgerBar.income{background:linear-gradient(#75edc1,#339c82)}.ledgerBar.expense{background:linear-gradient(#ff9ab1,#d84e73)}.ledgerMonth small{color:#8797c7;display:block;font-size:10px;margin-top:7px}
.ledgerDonutWrap{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:18px}.ledgerDonut{border-radius:50%;width:150px;height:150px;position:relative;box-shadow:inset 0 0 24px #0005}.ledgerDonut:after{content:"지출 분류";color:#aab7df;background:#101841;border-radius:50%;place-items:center;width:86px;height:86px;font-size:12px;font-weight:900;display:grid;position:absolute;inset:32px}.ledgerLegend{gap:8px;display:grid}.ledgerLegend div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:12px}.ledgerLegend i{border-radius:50%;width:8px;height:8px}.ledgerLegend span{color:#a8b5dd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ledgerLegend b{font-size:11px}
.ledgerMethodList{gap:11px;display:grid}.ledgerMethodRow{display:grid;grid-template-columns:76px 1fr auto;align-items:center;gap:10px;font-size:12px}.ledgerMethodRow>span{color:#b4c0e8}.ledgerMethodTrack{background:#ffffff12;border-radius:99px;height:8px;overflow:hidden}.ledgerMethodTrack i{background:linear-gradient(90deg,#64cfff,#8b72ff);border-radius:99px;height:100%;display:block}.ledgerMethodRow b{font-size:11px}
.ledgerRecent,.ledgerLoanList{display:grid;gap:10px}.ledgerRecentItem{background:#07102bbf;border:1px solid #809ce52e;border-radius:15px;display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:12px;padding:13px}.ledgerRecentItem time{color:#8492be;font-size:12px}.ledgerRecentItem b{display:block}.ledgerRecentItem small{color:#8e9bc7}.ledgerRecentItem strong.income{color:#75e7bc}.ledgerRecentItem strong.expense{color:#ff8da9}
.ledgerTableWrap{overflow:auto;border:1px solid #829fe62a;border-radius:16px}.ledgerTable{border-collapse:collapse;width:100%;min-width:900px}.ledgerTable th{color:#8fa0d0;text-align:left;background:#09112f;padding:12px;font-size:12px;white-space:nowrap}.ledgerTable td{border-top:1px solid #819fe31c;padding:12px;font-size:13px;vertical-align:middle}.ledgerTable tr:hover td{background:#ffffff05}.ledgerAmount.income{color:#79e8bd;font-weight:900}.ledgerAmount.expense{color:#ff91aa;font-weight:900}.ledgerCellSub{color:#8493c1;display:block;font-size:11px;margin-top:3px}.ledgerRowActions{display:flex;gap:5px}
.ledgerEmpty{color:#aab6da;text-align:center;background:linear-gradient(135deg,#121b48d9,#0b1234d9);border:1px dashed #88a5ea50;border-radius:20px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:250px;padding:25px}.ledgerEmpty img{object-fit:contain;width:210px;height:125px;filter:drop-shadow(0 12px 16px #0008);margin-bottom:8px}.ledgerEmpty b{color:#fff;font-size:18px;margin-bottom:6px}
.loanSummary{grid-template-columns:repeat(4,1fr)}.loanCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.loanCard{background:linear-gradient(145deg,#151f52,#0b1236);border:1px solid #83a8f33b;border-radius:22px;padding:20px;box-shadow:0 16px 42px #0004}.loanCardTop{display:flex;justify-content:space-between;gap:12px}.loanCard h3{margin:0 0 5px}.loanCard .bank{color:#8feaff;font-size:12px;font-weight:900}.loanBadge{color:#ffdf83;background:#664e193d;border:1px solid #dcae4155;border-radius:99px;height:max-content;padding:5px 9px;font-size:11px}.loanBalance{font-size:27px;font-weight:950;margin:18px 0 12px}.loanMeta{color:#9aa9d4;display:flex;justify-content:space-between;gap:10px;font-size:12px}.loanProgress{background:#ffffff12;border-radius:99px;height:9px;margin:12px 0;overflow:hidden}.loanProgress i{background:linear-gradient(90deg,#78e8ff,#a884ff);border-radius:99px;height:100%;display:block}.loanActions{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}
.ledgerModalBackdrop{z-index:10000;background:#020617d6;backdrop-filter:blur(10px);position:fixed;inset:0;padding:24px;overflow:auto}.ledgerModal{background:linear-gradient(150deg,#151f50,#0b1235);border:1px solid #93b0f04f;border-radius:26px;width:min(760px,100%);margin:3vh auto;padding:26px;position:relative;box-shadow:0 35px 100px #000b}.ledgerModal h2{margin:0 0 6px}.ledgerModal>p{color:#97a5d0;margin:0 0 22px}.ledgerModalClose{color:#dbe5ff;background:#ffffff12;border:1px solid #ffffff24;border-radius:50%;width:38px;height:38px;position:absolute;top:18px;right:18px}.ledgerFormGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.ledgerField{display:grid;gap:7px}.ledgerField.full{grid-column:1/-1}.ledgerField label{color:#b4c1e8;font-size:12px;font-weight:900}.ledgerField input,.ledgerField select,.ledgerField textarea{width:100%;box-sizing:border-box}.ledgerField textarea{resize:vertical;min-height:78px}.ledgerFormActions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.ledgerCheck{color:#bdc8e8;display:flex;align-items:center;gap:9px;font-size:13px}.ledgerCheck input{accent-color:#6fdfff;width:18px;height:18px}
.ledgerToast{z-index:11000;color:#081433;background:linear-gradient(135deg,#8df0ff,#ffd876);border-radius:14px;padding:12px 18px;font-weight:900;position:fixed;right:22px;bottom:22px;box-shadow:0 16px 50px #0008}.ledgerLoading{place-items:center;min-height:420px;display:grid}.ledgerLoading span{color:#aab8e3}.ledgerSpinner{border:3px solid #ffffff1f;border-top-color:#79e8ff;border-radius:50%;width:42px;height:42px;margin:0 auto 12px;animation:ledgerSpin .8s linear infinite}@keyframes ledgerSpin{to{transform:rotate(360deg)}}
@media(max-width:1180px){.ledgerMetrics{grid-template-columns:repeat(3,1fr)}.ledgerHero{padding-right:300px}.ledgerHeroArt{width:300px}.loanSummary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){#v22-ledger-app{min-height:calc(100vh - 70px)}.v22-ledger{padding:25px 18px 70px}.ledgerHero{padding:30px 28px 190px;min-height:0}.ledgerHeroArt{right:50%;bottom:-42px;width:300px;height:220px;transform:translateX(50%)}.ledgerTopbar{align-items:flex-start;flex-direction:column}.ledgerActions{width:100%}.ledgerTabs{overflow:auto}.ledgerTabs button{white-space:nowrap;flex:1}.ledgerMetrics{grid-template-columns:repeat(2,1fr)}.ledgerGrid{grid-template-columns:1fr}.ledgerDonutWrap{grid-template-columns:140px 1fr}.loanCards{grid-template-columns:1fr}}
@media(max-width:560px){.ledgerHero h1{font-size:38px}.ledgerMetrics,.loanSummary{grid-template-columns:1fr 1fr}.ledgerMetric{padding:16px}.ledgerMetric strong{font-size:20px}.ledgerPanel{padding:16px}.ledgerChart{gap:3px}.ledgerBars{gap:1px}.ledgerDonutWrap{grid-template-columns:1fr;justify-items:center}.ledgerLegend{width:100%}.ledgerRecentItem{grid-template-columns:1fr auto}.ledgerRecentItem time{grid-column:1/-1}.ledgerFormGrid{grid-template-columns:1fr}.ledgerField.full{grid-column:auto}.ledgerModalBackdrop{padding:10px}.ledgerModal{border-radius:20px;padding:22px 16px}.ledgerFormActions{flex-direction:column-reverse}.ledgerFormActions button{width:100%}}
