:root{font-family:system-ui,-apple-system,sans-serif;color:#202b25;background:#eef3ef;font-synthesis:none;--ink:#202b25;--muted:#66726a;--line:#dbded5;--green:#176850;--deep:#123d32;--red:#a03931}*{box-sizing:border-box}html{min-height:100%;scrollbar-color:#a8b7ac #eef3ef}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e5ad4d;outline-offset:2px}::selection{background:#bfe8d6;color:#123d32}.app-shell{max-width:720px;margin:auto;padding:0 20px 130px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;letter-spacing:-.02em}.brand-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--deep);color:#f8f5e9;font-family:Georgia,serif;font-style:italic;font-size:21px}.icon-button,.month-arrow,.close-button{display:grid;place-items:center;background:transparent;border:0;color:var(--ink)}.icon-button{width:42px;height:42px}.icon-button svg,.month-arrow svg,.primary-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.month-row{display:flex;align-items:center;justify-content:center;gap:14px;margin:11px 0 26px}.month-label{min-width:178px;text-align:center;font-size:19px;font-weight:800}.month-arrow{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff}.summary{background:var(--deep);border-radius:18px;color:#f8f7ef;padding:26px 26px 25px;box-shadow:0 12px 28px -18px #123d3270}.summary-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.summary h1{font-size:16px;font-weight:600;margin:0;color:#d5e4d9}.summary-head span{font-size:12px;color:#c3d9cc;white-space:nowrap}.summary-amount{font-size:clamp(37px,10vw,57px);line-height:1.07;letter-spacing:-.035em;font-weight:800;margin:15px 0 23px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-amount.negative{color:#ffb8a7}.summary-rule{height:1px;background:#ffffff30}.summary-details{display:flex;justify-content:space-between;gap:20px;padding-top:19px}.summary-details div{display:flex;flex-direction:column;gap:5px}.summary-details span{font-size:13px;color:#b9d1c2}.summary-details strong{font-size:17px;font-variant-numeric:tabular-nums}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:39px 0 14px}.section-heading h2{font-size:21px;letter-spacing:-.025em;margin:0}.text-button{border:0;background:none;color:var(--green);font-weight:800;font-size:14px;padding:10px 0}.budget-list,.expense-list{display:grid;gap:10px}.budget-card{background:#fff;border-radius:15px;padding:19px 19px 17px;box-shadow:0 5px 20px -18px #25352d85}.budget-top{display:flex;justify-content:space-between;align-items:start;gap:12px}.budget-name{font-size:18px;font-weight:800;margin:0;word-break:break-word}.budget-edit{border:0;background:#eef4ef;color:var(--green);border-radius:8px;padding:8px 11px;font-weight:700;font-size:13px;white-space:nowrap}.budget-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:20px 0 16px}.budget-amounts div{min-width:0}.budget-amounts span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.budget-amounts strong{display:block;font-size:clamp(14px,3.7vw,18px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.budget-amounts .negative{color:var(--red)}.progress{height:6px;background:#e6ece6;border-radius:6px;overflow:hidden}.progress span{display:block;height:100%;background:#46a67a;border-radius:6px}.progress.over span{background:#c66050}.budget-add{margin-top:16px;border:0;background:none;padding:4px 0;color:var(--green);font-weight:800;font-size:14px}.expense-row{background:#fff;border-radius:13px;padding:16px 17px;display:flex;align-items:center;gap:13px}.expense-date-badge{width:47px;min-width:47px;text-align:center;color:var(--muted);font-size:11px;line-height:1.2;text-transform:uppercase}.expense-date-badge strong{display:block;color:var(--ink);font-size:21px}.expense-main{min-width:0;flex:1}.expense-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.expense-main span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.expense-side{text-align:right}.expense-side strong{display:block;white-space:nowrap;font-size:16px;font-variant-numeric:tabular-nums}.expense-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:7px}.expense-actions button{border:0;background:none;color:var(--green);font-size:12px;font-weight:700;padding:3px 0}.expense-actions .delete{color:var(--red)}.muted-count{color:var(--muted);font-size:13px}.empty{border:1px dashed #c5cec3;border-radius:15px;padding:25px 22px;color:var(--muted);line-height:1.5;background:#fafaf6}.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}.empty p{margin:0}.action-bar{position:fixed;bottom:0;left:0;right:0;padding:14px max(20px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#eef3ef 75%,#eef3efea);z-index:5}.action-bar .primary-button{max-width:680px;margin:auto}.primary-button{min-height:54px;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:13px;background:#177256;color:#fff;font-weight:800;font-size:16px;box-shadow:0 10px 20px -15px #0f553d}.primary-button:hover{background:#0e6048}.primary-button:disabled{background:#a9b8ae;cursor:not-allowed}.sheet{border:0;border-radius:20px 20px 0 0;padding:26px 22px max(28px,env(safe-area-inset-bottom));width:min(100%,720px);max-height:min(92dvh,850px);margin:auto auto 0;overflow:auto;background:#fbfcf9;color:var(--ink);box-shadow:0 -12px 40px #1f35294d}.sheet::backdrop{background:#13271fb3}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-head h2{font-size:23px;letter-spacing:-.025em;margin:0}.close-button{font-size:30px;width:38px;height:38px;line-height:1}.sheet label:not(.restore-label){display:block;font-size:14px;font-weight:700;margin:17px 0 8px}.sheet input:not([type=hidden]):not([type=file]),.sheet select{width:100%;height:52px;padding:0 14px;border:1px solid #cbd4ca;border-radius:11px;background:#fff;color:var(--ink);font-size:16px}.money-input{display:flex;align-items:center;background:#fff;border:1px solid #cbd4ca;border-radius:11px;height:52px}.money-input span{padding-left:14px;color:var(--muted);font-weight:700}.sheet .money-input input{border:0!important;height:49px!important}.field-hint,.backup-copy{color:var(--muted);font-size:14px;line-height:1.45}.field-hint{margin:10px 0 0}.form-error{color:var(--red);font-size:14px;min-height:20px;margin:14px 0}.form-submit{margin-top:4px}.secondary-button{width:100%;min-height:51px;background:#e8f1e9;border:0;border-radius:11px;color:var(--green);font-weight:800}.restore-label{display:block;font-weight:800;margin:28px 0 10px}.sheet input[type=file]{width:100%;font-size:14px}.toast{position:fixed;left:50%;bottom:95px;transform:translateX(-50%);background:#202b25;color:#fff;padding:11px 17px;border-radius:9px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20;white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1}@media(min-width:721px){.sheet{margin:auto;border-radius:18px;max-width:440px}.action-bar{left:50%;right:auto;transform:translateX(-50%);width:720px}}@media(max-width:370px){.app-shell{padding-left:15px;padding-right:15px}.summary{padding:22px}.budget-amounts{gap:3px}.expense-row{gap:8px;padding:14px 12px}}
