:root{--bg:#f7f6f1;--surface:#fff;--ink:#233c35;--muted:#747d76;--line:#e2e6dd;--green:#153e35;--mint:#e7eee4;--gold:#dbc182;--red:#ab4f3d;--red-bg:#fbefe9;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a7c8b6;outline-offset:3px}.app{max-width:1600px;margin:auto;display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{padding:42px 27px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;font-size:22px;letter-spacing:-1px;font-weight:650}.brandmark{background:var(--green);color:#fff;width:46px;height:46px;display:grid;place-content:center;border-radius:14px;font-family:Georgia;font-size:34px}.brand small{display:block;font-size:8px;letter-spacing:2px;color:var(--muted);margin-top:7px}.desktop-nav{margin-top:58px;display:grid;gap:9px}.desktop-nav a{display:flex;gap:13px;padding:14px 16px;align-items:center;border-radius:11px;color:var(--muted);font-weight:550}.desktop-nav a.active{background:var(--mint);color:var(--green)}.nav-icon{width:21px;height:21px;display:inline-flex}.nav-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.sidebar-foot{margin-top:auto;font-size:12px;line-height:1.7}.sidebar-foot small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.status-dot{display:inline-block;width:6px;height:6px;background:#709c6a;border-radius:100%;margin-right:4px}.main{min-width:0;padding:0 48px}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.breadcrumb,.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;color:var(--muted)}.mobile-brand{display:none}.icon-button{border:1px solid var(--line);background:transparent;border-radius:50%;width:40px;height:40px;color:var(--ink);font-size:19px;display:grid;place-content:center;flex-shrink:0}.heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.heading-row h1{font-family:Georgia,"Times New Roman",serif;letter-spacing:-1px;font-size:40px;font-weight:400;margin:7px 0 10px}.heading-row p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.button{border:0;background:var(--green);color:white;border-radius:11px;min-height:44px;padding:12px 19px;font-size:12px;font-weight:600;display:inline-flex;justify-content:center;align-items:center;gap:8px}.button.secondary{color:var(--ink);background:var(--surface);border:1px solid var(--line)}.button.danger{background:var(--red)}.text-button{border:0;background:none;padding:0;color:var(--green);font-size:12px;font-weight:600;text-align:left}.sidebar-foot .text-button{margin-top:15px}.month-control{display:inline-flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:7px;background:var(--surface)}.month-control button{border:0;background:transparent;width:27px;height:27px;font-size:18px;color:var(--ink)}.month-control span{font-size:12px;min-width:108px;text-align:center;font-weight:550}.overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:21px}.hero{background:var(--green);color:#f7f7ed;border-radius:var(--radius);padding:29px 31px;position:relative;overflow:hidden;min-height:245px;display:flex;flex-direction:column;justify-content:space-between}.hero:after{content:"";position:absolute;width:220px;height:220px;border:1px solid #ffffff10;border-radius:100%;right:-60px;top:-50px;box-shadow:0 0 0 35px #ffffff06,0 0 0 70px #ffffff03;pointer-events:none}.hero .eyebrow{color:#c6d5c9}.hero-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.hero h2{font-size:41px;letter-spacing:-1.6px;font-weight:400;margin:18px 0 7px}.hero p{font-size:12px;line-height:1.6;color:#cad9d0;margin:0}.hero .hero-meta{display:flex;gap:27px;border-top:1px solid #ffffff20;margin-top:22px;padding-top:17px}.hero-meta strong{display:block;font-size:15px;color:#fff;font-weight:500;margin-bottom:3px}.hero-meta span{font-size:10px;color:#cad9d0}.tag{font-size:9px;letter-spacing:.4px;border-radius:30px;display:inline-block;padding:6px 9px;background:var(--mint);color:var(--green);white-space:nowrap}.hero .tag{background:#ffffff14;color:#dce8dc}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:24px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:19px}.card-title h2,.section-title h2{font-size:16px;font-weight:600;letter-spacing:-.3px;margin:0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:32px 0 16px}.info{font-size:12px;line-height:1.7;color:var(--muted)}.info strong{color:var(--ink)}.number{font-variant-numeric:tabular-nums}.big-number{font-size:31px;letter-spacing:-1px;margin:12px 0;font-weight:450}.muted{color:var(--muted)}.small{font-size:11px}.notice{display:flex;gap:12px;border-radius:12px;background:#eee9da;padding:13px 16px;margin:22px 0;color:#786646;font-size:11px;line-height:1.65}.notice.green{background:var(--mint);color:var(--green)}.notice.red{background:var(--red-bg);color:var(--red)}.notice strong{font-weight:650}.circle-icon{width:35px;height:35px;border-radius:10px;display:grid;place-content:center;background:var(--mint);color:var(--green);flex-shrink:0}.circle-icon.gold{background:#f5eddc;color:#9e7a30}.circle-icon.blue{background:#eaf0f5;color:#66819c}.pot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.pot-card{padding:22px;display:flex;flex-direction:column;gap:14px}.pot-card h3{margin:0;font-size:14px;font-weight:600}.pot-top{display:flex;align-items:center;justify-content:space-between}.pot-card .big-number{margin:0;font-size:27px}.pot-card .pot-description{font-size:10px;color:var(--muted);margin:5px 0 0}.progress{height:6px;border-radius:99px;background:#ecefe8;overflow:hidden;display:flex}.progress>span{height:100%;background:#85a380;border-radius:99px;max-width:100%;transition:width .25s}.progress.warn>span{background:#b97d4b}.progress.red>span{background:var(--red)}.pot-bottom{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);line-height:1.4}.pot-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:auto}.two-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:21px}.budget-row{padding:14px 0;border-bottom:1px solid #edf0e9}.budget-row:last-child{border:0}.budget-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:10px;align-items:center}.budget-line strong{font-weight:550}.budget-row .small{margin-top:7px;display:flex;justify-content:space-between}.step{display:flex;align-items:flex-start;gap:13px;margin:19px 0}.step-num{display:grid;place-content:center;flex-shrink:0;border:1px solid var(--line);border-radius:100%;width:26px;height:26px;font-size:11px}.step h3{font-size:12px;font-weight:600;margin:1px 0 5px}.step p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.step .step-num.active{background:var(--green);color:white;border:0}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:30px 0;padding:23px 0;border-top:1px solid var(--line)}.account-list{display:grid;gap:13px}.account-item{display:flex;justify-content:space-between;align-items:center;gap:15px}.account-item h3{font-size:13px;margin:0 0 5px}.account-item .account-value{font-size:23px;letter-spacing:-.7px}.negative{color:var(--red)}.account-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.account-details strong{font-size:15px;font-weight:500;display:block;margin-top:7px}.wide-table{overflow-x:auto}.transactions{width:100%;border-collapse:collapse;font-size:12px}.transactions td,.transactions th{text-align:left;padding:15px 8px;border-bottom:1px solid var(--line);line-height:1.5}.transactions th{font-size:10px;color:var(--muted);font-weight:500}.transactions td:last-child,.transactions th:last-child{text-align:right}.transactions .delete-button{border:0;background:none;color:var(--muted);font-size:17px;padding:7px}.empty{padding:28px 15px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:15px 0}.legend i{width:7px;height:7px;display:inline-block;border-radius:3px;margin-right:5px}.filter{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff;color:var(--ink);max-width:100%;font-size:12px}.bottom-nav{display:none}dialog{width:min(94vw,470px);border:1px solid var(--line);border-radius:22px;padding:25px;background:var(--surface);color:var(--ink);max-height:88vh;overflow:auto}dialog::backdrop{background:#12302870;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}.dialog-head h2{font-size:21px;letter-spacing:-.6px;margin:0}.dialog-head .icon-button{width:32px;height:32px;font-size:14px}.field{display:block;font-size:12px;margin:16px 0;color:var(--ink);font-weight:550}.field input,.field select{width:100%;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:13px;margin-top:8px;color:var(--ink);font-size:16px;min-height:46px}.field small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:6px;font-weight:400}.dialog-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.dialog-actions .button{flex:1}.error{color:var(--red);font-size:12px;line-height:1.6}.toast{position:fixed;left:50%;bottom:94px;transform:translateX(-50%) translateY(20px);background:var(--green);color:#fff;border-radius:12px;padding:13px 22px;font-size:12px;opacity:0;pointer-events:none;transition:all .2s;z-index:20;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.settings-actions{display:grid;gap:12px;margin-top:20px}.summary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.summary-stats .card{padding:19px}.summary-stats .big-number{font-size:26px}.chart-bars{display:flex;gap:6px;align-items:flex-end;height:75px;padding-top:10px}.chart-bars .bar{flex:1;background:var(--mint);border-radius:5px 5px 0 0;position:relative;min-height:3px}.chart-bars .bar.active{background:#91ad88}.bars-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:6px}.balance-note{margin-top:12px;font-size:10px;color:var(--muted);line-height:1.6}.storage-error{position:sticky;top:0;background:var(--red-bg);padding:15px;color:var(--red);font-size:13px;z-index:20}.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:18px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px}button:disabled{opacity:.45;cursor:not-allowed}.private-note{padding:12px 0;font-size:11px;color:var(--muted);line-height:1.6}
@media(min-width:1400px){.main{padding:0 65px}main{max-width:1060px;margin:auto}.topbar,.page-footer{max-width:1060px;margin-left:auto;margin-right:auto}}
@media(max-width:1100px){.app{grid-template-columns:195px minmax(0,1fr)}.sidebar{padding:35px 18px}.main{padding:0 28px}.pot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading-row h1{font-size:35px}.overview-grid{grid-template-columns:1.2fr 1fr}.hero{padding:25px}.two-columns{grid-template-columns:1fr}.hero h2{font-size:34px}}
@media(max-width:760px){.app{display:block}.sidebar{display:none}.main{padding:0 20px}.topbar{height:76px;margin-bottom:24px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:10px;font-family:Georgia;font-size:34px;font-weight:600}.mobile-brand span{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;letter-spacing:-.6px;font-weight:600}.heading-row{align-items:flex-start;flex-direction:column;gap:18px}.heading-row h1{font-size:34px;margin:6px 0 9px}.heading-actions{justify-content:space-between;width:100%;gap:8px}.overview-grid{grid-template-columns:1fr}.hero{min-height:239px;padding:24px}.hero h2{font-size:39px}.pot-grid{grid-template-columns:1fr 1fr;gap:11px}.pot-card{padding:17px;gap:12px;border-radius:16px}.pot-card h3{font-size:12px}.pot-card .big-number{font-size:23px}.pot-actions{gap:12px}.pot-actions .text-button{font-size:10px;min-height:28px}.pot-bottom{font-size:9px}.card{padding:20px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:10px 8px max(12px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid var(--line);z-index:10;justify-content:space-around;backdrop-filter:blur(12px)}.bottom-nav a{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:9px;letter-spacing:.1px;color:var(--muted);min-width:65px;min-height:43px;justify-content:center}.bottom-nav a.active{color:var(--green);font-weight:650}.bottom-nav .nav-icon{width:22px;height:22px}.page-footer{margin-bottom:100px;gap:20px;font-size:9px}.page-footer span{text-align:right}.notice{font-size:11px;margin:19px 0}.summary-stats{gap:8px}.summary-stats .card{padding:14px 11px;border-radius:13px}.summary-stats .big-number{font-size:20px;letter-spacing:-.8px}.summary-stats .small{font-size:9px}.account-details{gap:7px}.account-details strong{font-size:13px}.transactions td{padding:13px 5px}.transactions th{padding:12px 5px}.transactions .description-cell{max-width:155px;overflow-wrap:anywhere}.section-title{margin-top:26px}.button{min-height:44px;padding:12px 15px}.settings-actions .button{width:100%}}
@media(max-width:360px){.main{padding:0 15px}.pot-grid{grid-template-columns:1fr}.summary-stats{grid-template-columns:1fr}.summary-stats .card{display:flex;align-items:center;justify-content:space-between}.heading-actions{flex-wrap:wrap}.hero h2{font-size:34px}.form-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.import-preview{max-height:45vh;overflow:auto;padding-right:5px}.import-row{padding:13px 0;border-top:1px solid var(--line);display:grid;gap:8px}.import-row strong{display:block;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.import-row span{display:block;margin-top:5px}.import-row select{width:100%;min-height:44px}.bottom-nav a{min-width:50px}@media(max-width:400px){.bottom-nav a{font-size:8px}}
.login-page{max-width:420px;margin:12vh auto;padding:30px}.login-page h1{font:400 34px Georgia,serif;letter-spacing:-1px;margin:25px 0 10px}.login-page .button{width:100%}

/* Budgetstatus bruger både farve og tekst. Manglende køb er neutral status. */
.food-status.budget-over{background:#922d2d;color:#fff;border:2px solid #c34545}.food-status.budget-under{background:#17583d;color:#fff;border:2px solid #328b60}.food-status.budget-pending{background:#edf0eb;color:#34463e;border:2px solid #d5dcd4}.food-status.budget-pending .eyebrow,.food-status.budget-pending .hero-meta span{color:#526359}.food-status.budget-pending .tag{background:#dce3d9;color:#34463e}.budget-status-label{display:inline-block;font-weight:700;font-size:13px;margin-top:12px;padding:7px 11px;border:1px solid currentColor;border-radius:8px}.positive{color:#176a41;font-weight:700}.negative{color:#a32121;font-weight:700}

.closing-card h3{margin-top:0}.closing-card .big-number{font-size:28px}.closing-red{background:#fff0f0;border:2px solid #bd4444;color:#922323}.closing-green{background:#edf7ef;border:2px solid #378658;color:#17583d}
