:root{font-family:Arial,Helvetica,sans-serif;color:#294363;background:#f3f6fb;font-size:16px;line-height:1.5}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8aabef;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.8px;line-height:1.3}h2{font-size:18px;letter-spacing:-.3px;font-weight:600}header{background:#12243f;color:#fff;padding:21px max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;gap:14px;align-items:center;font-size:14px;font-weight:600;letter-spacing:.02em}.brand img{width:48px;height:48px;object-fit:contain;border:3px solid white;border-radius:50%;background:#fff}.brand small{display:block;font-size:11px;color:#cdb179;letter-spacing:.14em;margin-top:5px}header nav{display:flex;align-items:center;gap:10px}header nav a,header nav button{border:1px solid #ffffff28;background:transparent;border-radius:7px;padding:9px 13px;color:#d6e2f7;font-size:13px}.workspace{max-width:1296px;margin:auto;padding:32px 28px 0}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px}.eyebrow{display:block;font-size:11px;letter-spacing:.14em;color:#8ba1bd;margin-bottom:8px}.heading p{font-size:15px;color:#7b92b0;margin-top:9px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:11px 16px;font-size:14px;min-height:43px;font-weight:500}.primary{background:#416fe4;border-color:#416fe4;color:#fff}.primary:hover{background:#315bce}.secondary{background:#fff;border-color:#dce5f2;color:#627fa5}.secondary:hover{background:#f2f6ff}.navy{background:#284b79;border-color:#284b79}.danger{background:#ad6756;border-color:#ad6756}.periodbar{display:flex;align-items:flex-end;gap:14px;border-top:1px solid #dfe7f2;padding-top:21px;margin-bottom:21px}.periodbar label{font-size:11px;letter-spacing:.06em;color:#859bb7;display:flex;flex-direction:column;gap:8px}.periodbar select,.periodbar input{border:1px solid #dce5f2;background:#fff;color:#597799;padding:10px 12px;border-radius:7px;font-size:14px;min-height:43px}.periodbar select{min-width:240px}.period-link{margin-left:auto;color:#6a87b3;font-size:13px;padding:10px}.summary{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;gap:18px;margin-bottom:22px}.summary article{padding:21px 22px;border:1px solid #e1e8f2;background:#fff;border-radius:11px;min-width:0}.summary article>span{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:#7d93af;min-height:30px}.summary strong{font-size:28px;letter-spacing:-.8px;font-weight:600;display:block;margin:18px 0 17px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary small{display:flex;gap:6px;justify-content:space-between;font-size:12px;color:#8ba0bb}.summary b{font-weight:400}.summary .balance-card{background:linear-gradient(115deg,#1e3556,#2c466c);border-color:#29466e;color:#fff;position:relative}.balance-card:before{content:'';position:absolute;top:0;left:22px;right:22px;height:2px;background:linear-gradient(90deg,#cbaa74,transparent)}.summary .balance-card>span{color:#c6d5ea}.summary .balance-card small{border-top:1px solid #ffffff24;padding-top:13px;color:#b7c7df}.summary i{font-style:normal;border-radius:7px;padding:4px 9px}.summary i.income{background:#eef3fe;color:#6d92e6}.summary i.expense{background:#fcf3e9;color:#c7995d}.quick-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#eaf0fc;border:1px solid #dce6f8;border-radius:9px;padding:16px 19px;margin-bottom:22px}.quick-actions strong{font-size:14px;font-weight:500;color:#6581aa;display:block}.quick-actions small{font-size:12px;color:#8ea4c0;display:block;margin-top:3px}.quick-actions>div:last-child{display:flex;gap:10px}.quick-actions button{font-size:13px}.charts-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:22px;margin-bottom:25px}.chart-panel{padding:22px 24px 18px;background:#fff;border:1px solid #e1e8f2;border-radius:11px;min-width:0;overflow:hidden}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.chip{background:#f6f8fc;border:1px solid #e6edf7;border-radius:5px;padding:5px 8px;color:#879eba;font-size:12px;white-space:nowrap}.legend{display:flex;gap:21px;font-size:12px;color:#7e94b1;margin-top:20px;margin-bottom:12px}.legend span{display:flex;align-items:center;gap:7px}.legend i,.allocation-list i{height:7px;width:7px;border-radius:2px;display:inline-block;flex-shrink:0}.blue{background:#4775ed}.gold{background:#edaa5f}.chart-scroll{width:100%;overflow-x:auto;min-height:240px}.chart-scroll svg{width:100%;height:240px;display:block}.chart-caption{padding-top:13px;border-top:1px solid #edf2f8;font-size:12px;line-height:1.7;color:#8097b5}.muted{font-size:12px;color:#8ba0bc}.chart-panel>p{margin-top:5px}#donut{display:flex;justify-content:center;margin:17px 0}.donut{height:177px;width:177px;border-radius:50%;display:grid;place-items:center}.donut>div{border-radius:50%;width:130px;height:130px;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column}.donut strong{font-size:27px;font-weight:600;letter-spacing:-.7px;margin:2px}.donut small{font-size:12px;color:#8ca2bf}.allocation-list{display:flex;flex-direction:column;gap:9px;max-height:125px;overflow:auto;font-size:12px;color:#8298b5}.allocation-list>div{display:flex;gap:8px;align-items:center}.allocation-list b{margin-left:auto;font-weight:500;color:#6683a9}.allocation-list p{text-align:center}.transactions{background:#fff;border:1px solid #e1e8f2;border-radius:11px;overflow:hidden;scroll-margin-top:20px}.section-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px 16px;gap:20px}.section-head p{font-size:13px;color:#839bbb;margin-top:5px}.section-head button{font-size:12px}.table-controls{display:flex;gap:12px;padding:0 24px 19px}.table-controls input,.table-controls select{border:1px solid #dfe7f3;border-radius:7px;background:#fbfdff;padding:10px 12px;color:#6480a4;font-size:14px}.table-controls input{width:370px;min-width:0;max-width:100%}.table-controls input::placeholder{color:#95a9c2}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;font-weight:500;color:#889fbf;letter-spacing:.03em;background:#f8fafd}td,th{padding:15px 22px;border-bottom:1px solid #edf2f8}td{font-size:14px;color:#5f7a9f}td strong{font-weight:500;display:block;min-width:165px;max-width:340px;overflow-wrap:anywhere}td small{display:block;font-size:12px;color:#8ca3c1;margin-top:4px}.date{white-space:nowrap;font-size:13px}.amount{text-align:right}.number{white-space:nowrap;font-variant-numeric:tabular-nums}.income.number{color:#5f86d0}.expense.number{color:#be915c}.badge{display:inline-block;font-size:12px;padding:5px 8px;border-radius:5px;white-space:nowrap}.badge.income{color:#6086cc;background:#edf4ff}.badge.expense{color:#ba8c52;background:#fbf2e9}.proof-button{display:flex;align-items:center;gap:8px;background:transparent;color:#678abb;font-size:12px;text-align:left;white-space:nowrap}.proof-button img{width:38px;height:38px;border-radius:6px;border:1px solid #dbe6f6;object-fit:cover}.proof-button small{font-size:11px}.icon-button{background:transparent;color:#7e98bd;font-size:12px;padding:7px 5px}.icon-button.delete{color:#b78372}.empty{text-align:center;color:#8ba1bd;padding:65px 20px;font-size:15px;min-height:170px}.table-footer{display:flex;justify-content:space-between;gap:20px;padding:14px 24px;font-size:12px;color:#8ca2bd}footer{font-size:12px;color:#8da2bd;padding:25px 0;display:flex;justify-content:space-between;gap:20px}.setup{max-width:630px;margin:45px auto;padding:30px;background:#fff;border:1px solid #e1e8f3;border-radius:13px}.setup h1{font-size:25px}.setup>p{font-size:14px;color:#8a9fbc;margin:8px 0 22px}.setup-logo{width:64px;height:64px;object-fit:contain;display:block;margin-bottom:19px}.setup.login{max-width:460px}.back-link{display:block;font-size:14px;color:#819abb;margin-top:20px}.error{padding:14px;border:1px solid #ebd2c7;background:#fff3ed;border-radius:8px;color:#a16b52;font-size:14px;margin-bottom:17px}.notice{padding:17px;background:#edf7f0;border:1px solid #cce6d4;border-radius:8px;color:#527c63;font-size:15px;margin:20px 0}.entry-form{display:flex;flex-direction:column;gap:16px}.entry-form label{display:flex;flex-direction:column;gap:7px;color:#6a85a9;font-size:14px}.entry-form input,.entry-form select,.entry-form textarea{border:1px solid #dce5f2;border-radius:7px;background:#fcfdff;font-size:16px;padding:10px 12px;width:100%;min-width:0;color:#57749a}.entry-form input::placeholder,.entry-form textarea::placeholder{color:#9cb0ca}.entry-form textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.entry-form hr{border:0;border-top:1px solid #e4ebf5;width:100%}dialog{border:1px solid #dce6f5;border-radius:13px;box-shadow:0 20px 100px #11264738;background:white;color:#294363;max-height:92dvh;overflow:auto;width:min(620px,calc(100vw - 30px));padding:27px}dialog::backdrop{background:#0a192f77;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:23px}.dialog-header h2{font-size:23px}.dialog-header p{font-size:14px;color:#8a9fba;margin-top:6px}.close{background:transparent;font-size:27px;color:#8199b9;line-height:1}.upload-area{border:1px dashed #bed2ef!important;border-radius:9px;padding:17px;background:#f5f9ff;color:#7c9dc9!important}.upload-area input{font-size:13px;border:0;background:transparent;padding:6px 0}.upload-area small{font-size:12px;color:#94aac8}.entry-form .public-proof{display:flex;flex-direction:row;align-items:center;gap:12px;padding:14px;background:#f3f7ff;border:1px solid #dfe9f9;border-radius:8px}.public-proof input{width:19px;height:19px;accent-color:#416fe4}.public-proof small{display:block;font-size:12px;color:#8ca4c4;margin-top:5px}.text-button{font-size:13px;color:#9a7564;background:transparent;text-align:left}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}#confirm-delete p{font-size:15px;color:#8ca0bd;margin-top:12px}#proof{width:min(740px,calc(100vw - 30px))}#proof-content{padding:13px;background:#f3f6fb;border-radius:8px;text-align:center;margin-bottom:17px}#proof-content img{display:block;max-width:100%;max-height:57dvh;object-fit:contain;margin:auto}#proof-content small{display:block;color:#849cbe;font-size:12px;margin-top:9px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#1c3558;color:#fff;border-radius:9px;box-shadow:0 7px 24px #152c4828;font-size:14px;max-width:calc(100vw - 32px);z-index:99}
@media(max-width:1050px){.summary{grid-template-columns:1fr 1fr;gap:14px}.charts-grid{grid-template-columns:1.5fr 1fr;gap:17px}.heading h1{font-size:28px}.quick-actions{align-items:flex-start}.quick-actions>div:last-child{flex-direction:column}.quick-actions small{max-width:260px}}
@media(max-width:760px){header{padding:17px 22px}.brand{font-size:12px}.brand small{font-size:10px}.brand img{width:43px;height:43px}header nav a,header nav button{font-size:12px;padding:8px}.workspace{padding:26px 22px 0}.heading{flex-direction:column;align-items:flex-start;gap:17px}.charts-grid{grid-template-columns:1fr}.quick-actions{flex-direction:column;gap:13px}.quick-actions>div:last-child{flex-direction:row;width:100%}.quick-actions button{flex:1}.quick-actions small{max-width:none}.periodbar{flex-wrap:wrap}.period-link{margin-left:0}.table-controls{flex-wrap:wrap}.table-controls input{flex:1}footer{flex-direction:column;gap:5px}.setup{margin:20px}.chart-panel{padding:20px}}
@media(max-width:480px){header{padding:14px 16px;gap:10px}.brand{font-size:10px;gap:9px;letter-spacing:0}.brand small{font-size:9px}.brand img{width:38px;height:38px}header nav{gap:4px}header nav a,header nav button{font-size:11px;padding:7px;max-width:85px}.workspace{padding:23px 16px 0}.heading h1{font-size:26px}.heading p{font-size:14px}.periodbar label{width:100%}.periodbar select,.periodbar input{width:100%}.period-link{display:none}.summary{gap:10px}.summary article{padding:16px 14px}.summary article>span{font-size:13px}.summary strong{font-size:23px;letter-spacing:-.7px}.summary small{font-size:12px;flex-wrap:wrap}.quick-actions{padding:14px}.quick-actions button{font-size:12px;padding:10px 8px}.chart-panel{padding:18px 15px}.panel-title h2{font-size:15px}.chip{font-size:11px}.table-controls{padding:0 16px 17px;flex-direction:column;gap:10px}.table-controls input{width:100%}.section-head{padding:18px 16px;gap:10px;align-items:flex-start;flex-direction:column}.section-head button{font-size:12px;padding:8px 10px;min-height:35px}td,th{padding:14px 16px}.table-footer{padding:13px 16px;flex-direction:column;gap:4px}dialog{padding:23px 18px}.form-row{grid-template-columns:1fr}.setup{margin:16px;padding:23px 20px}.setup h1{font-size:23px}.public-proof span{font-size:13px}footer{font-size:12px}}
