:root{--ink:#253b34;--green:#244d43;--soft:#eef2e9;--paper:#faf9f5;--line:#e4e5dc;--muted:#7c847c;--orange:#a45e40;--radius:18px;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{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 #bd9461;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{width:240px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:38px 23px;display:flex;flex-direction:column}.brand{display:flex;gap:13px;align-items:center;font-size:16px;line-height:1.3;letter-spacing:.2px}.brand strong{font-weight:600}.nav-label{font-size:10px;letter-spacing:1.7px;color:var(--muted);margin:51px 12px 17px}nav{display:grid;gap:9px}.nav-item{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:11px;color:#69736c;font-size:14px}.nav-item.active{background:var(--soft);color:var(--green);font-weight:600}.nav-item:hover{background:#f4f6ef}.sidebar-bottom{margin-top:auto;padding:22px 13px 0;border-top:1px solid var(--line);font-size:12px;color:var(--green)}.sidebar-bottom p{font-size:12px;line-height:1.7;color:var(--muted);margin:13px 0 0}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#799e71;margin-right:7px}.workspace{margin-left:240px}.topbar{min-height:87px;border-bottom:1px solid var(--line);padding:0 46px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted)}.topbar-right{display:flex;align-items:center;gap:23px}.avatar{border-radius:50%;background:#e6e9dc;width:35px;height:35px;display:grid;place-items:center;color:var(--green);font-family:Georgia,serif;font-size:18px}main{max-width:1400px;margin:auto;padding:42px 46px 36px;min-height:calc(100vh - 145px)}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--muted);margin:0 0 12px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:40px;line-height:1.18;letter-spacing:-1px;margin-bottom:12px}h2{font-size:27px;margin-bottom:0}h3{font-size:17px;font-weight:600;margin-bottom:10px}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:32px}.intro p:last-child{color:var(--muted);font-size:14px;margin:0;line-height:1.6}.small-tag{display:inline-flex;border:1px solid var(--line);border-radius:30px;padding:10px 15px;font-size:11px;gap:7px;align-items:center;white-space:nowrap}.hero{background:var(--green);border-radius:var(--radius);padding:36px 39px;color:#fcfaf2;position:relative;overflow:hidden;min-height:193px;display:flex;align-items:center;justify-content:space-between;margin-bottom:34px}.hero .eyebrow{color:#bdcfc0}.hero h2{font-size:32px;line-height:1.22;margin-bottom:15px}.hero p:last-child{font-size:13px;line-height:1.7;color:#ced8ce;max-width:440px;margin:0}.house-art{position:relative;width:160px;height:130px;flex-shrink:0;margin-right:25px}.house-art .roof{position:absolute;width:99px;height:99px;border-left:2px solid #c5d1b2;border-top:2px solid #c5d1b2;transform:rotate(45deg);left:31px;top:19px}.house-art .house{position:absolute;left:23px;bottom:0;width:118px;height:82px;border:2px solid #c5d1b2;background:var(--green);border-radius:0 0 3px 3px}.house-art .door{position:absolute;bottom:-2px;left:45px;width:27px;height:47px;background:#c5d1b2;border-radius:18px 18px 0 0}.house-art:after{content:'✦';position:absolute;right:-25px;top:-9px;color:#d9b58a;font-size:32px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:31px 0 18px}.section-heading h2{font-family:inherit;font-size:17px;font-weight:600}.section-heading span{font-size:11px;color:var(--muted)}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px}.module-card{border:1px solid var(--line);background:white;border-radius:var(--radius);padding:27px;display:flex;flex-direction:column;position:relative;transition:transform .2s,box-shadow .2s;min-height:233px}.module-card:hover{transform:translateY(-3px);box-shadow:0 9px 25px #253b3407}.module-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--soft);color:var(--green);margin-bottom:22px}.module-card.cooking .module-icon{background:#f8ece1;color:var(--orange)}.module-card .arrow{position:absolute;right:28px;top:37px;color:var(--muted);width:18px;height:18px}.module-card h2{font-size:25px;margin-bottom:9px}.module-card p{font-size:13px;color:var(--muted);line-height:1.6;margin-bottom:25px}.card-bottom{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:12px}.card-bottom strong{font-weight:500}.card-bottom span{font-size:11px;color:var(--muted)}.future{border:1px dashed #d9dfd2;border-radius:var(--radius);padding:22px 28px;display:flex;align-items:center;gap:20px;background:#f4f5ef;margin-top:23px}.future-icon{font-size:24px;color:#849276}.future h3{font-size:13px;margin-bottom:5px}.future p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.footer{font-size:10px;letter-spacing:.3px;color:var(--muted);display:flex;justify-content:space-between;padding:0 46px 24px;max-width:1400px;margin:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:#fff;border:1px solid var(--green);border-radius:10px;padding:12px 18px;font-size:13px;line-height:1.35;white-space:nowrap}.button:hover{filter:brightness(1.08)}.button.secondary{background:white;color:var(--ink);border-color:var(--line)}.button.danger{background:#9b4034;border-color:#9b4034}.button svg{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:23px}.stat p{font-size:12px;color:var(--muted);margin-bottom:12px}.stat strong{font-size:27px;font-weight:500;letter-spacing:-.5px}.stat.income strong{color:#4f7962}.stat.expense strong{color:var(--orange)}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px}.toolbar input{max-width:320px}.panel{border:1px solid var(--line);background:#fff;border-radius:var(--radius);overflow:hidden}.empty{text-align:center;padding:65px 22px}.empty .module-icon{margin:0 auto 17px}.empty h3{font-family:Georgia,serif;font-size:24px;font-weight:400}.empty p{font-size:13px;color:var(--muted);max-width:370px;margin:0 auto 23px;line-height:1.7}.notice{padding:15px 18px;background:#fff0e5;border:1px solid #efdbcc;border-radius:10px;font-size:13px;line-height:1.6;color:#88553c;margin:0 0 23px}.notice button{margin-left:12px;background:none;border:0;text-decoration:underline;color:inherit}.transactions{width:100%;border-collapse:collapse;text-align:left}.transactions th{color:var(--muted);font-size:11px;font-weight:500;background:#f5f6f0;padding:16px 20px}.transactions td{padding:18px 20px;border-top:1px solid var(--line);font-size:13px}.transactions small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.amount{white-space:nowrap;font-weight:600}.amount.income{color:#4f7962}.amount.expense{color:var(--orange)}.icon-button{background:none;border:0;color:var(--muted);border-radius:7px;padding:5px;display:inline-grid;place-items:center;font-size:28px;line-height:1}.icon-button:hover{background:var(--soft);color:var(--ink)}.icon-button svg{width:17px;height:17px}.table-scroll{overflow-x:auto}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.recipe-card{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;display:flex;flex-direction:column}.recipe-cover{height:100px;background:#eeeede;display:grid;place-items:center;color:#759174}.recipe-cover svg{width:43px;height:43px;stroke-width:1}.recipe-card:nth-child(3n+2) .recipe-cover{background:#f4e8dc;color:#ac7550}.recipe-card:nth-child(3n) .recipe-cover{background:#e3ebea;color:#61837f}.recipe-body{padding:21px;flex:1;display:flex;flex-direction:column}.recipe-body h3{font-family:Georgia,serif;font-size:21px;font-weight:400;overflow-wrap:anywhere}.recipe-meta{display:flex;gap:13px;color:var(--muted);font-size:11px;margin-bottom:20px}.recipe-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}.text-button{border:0;background:none;color:var(--green);padding:0;font-size:12px;font-weight:600}input,select,textarea{border:1px solid #d9ddd4;border-radius:9px;background:#fff;color:var(--ink);padding:11px 12px;width:100%;font-size:14px;min-height:43px}textarea{resize:vertical;line-height:1.5}label{display:block;font-size:12px;margin-bottom:7px}dialog{color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:30px;width:min(560px,calc(100% - 32px));max-height:90vh;box-shadow:0 25px 90px #12271c30}dialog::backdrop{background:#12271c55;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:start;justify-content:space-between;margin-bottom:24px;gap:20px}.dialog-head h2{font-size:28px}.form-field{margin-bottom:18px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:23px;padding-top:20px}.form-error{color:#a1392a;font-size:13px;line-height:1.5}.details h3{font-size:14px;margin:25px 0 12px}.details p,.details li{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.details ul{padding-left:20px}.details .recipe-meta{margin-top:14px}#toast{position:fixed;bottom:28px;right:30px;color:white;background:var(--green);padding:14px 22px;border-radius:10px;font-size:13px;z-index:9;box-shadow:0 8px 30px #0002;display:none}#toast.visible{display:block}.skip{position:fixed;top:-80px;left:10px;z-index:20;background:white;padding:15px}.skip:focus{top:10px}.loading{color:var(--muted);padding:70px;text-align:center}.month-picker{display:flex;align-items:center;gap:12px;font-size:13px}.month-picker input{width:180px}.muted{color:var(--muted)}
@media(min-width:1500px){main{padding-top:54px}.hero{min-height:220px}.module-card{min-height:270px}}
@media(max-width:1050px){.sidebar{width:200px;padding:30px 16px}.workspace{margin-left:200px}main{padding:32px 28px}.topbar{padding:0 28px}.footer{padding:0 28px 24px}.recipe-grid{grid-template-columns:repeat(2,1fr)}h1{font-size:34px}.hero{padding:28px}.house-art{margin:0;transform:scale(.85)}.stats{gap:10px}.stat{padding:18px}.stat strong{font-size:23px}}
@media(max-width:720px){.sidebar{position:static;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:18px 20px 12px}.brand{font-size:13px}.brand img{width:34px;height:34px}.brand br{display:none}.brand strong{margin-left:5px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;margin-top:16px;gap:4px}.nav-item{padding:10px 12px;font-size:12px;gap:8px}.nav-item svg{width:17px;height:17px}.workspace{margin:0}.topbar{height:58px;min-height:58px;padding:0 21px;font-size:11px}.avatar{display:none}.topbar-right{gap:0}main{padding:28px 21px;min-height:calc(100vh - 240px)}h1{font-size:32px}.intro{align-items:start;flex-wrap:wrap;margin-bottom:23px}.intro>div{min-width:0}.intro .small-tag{display:none}.hero{padding:27px;min-height:auto}.hero h2{font-size:29px}.house-art{display:none}.module-grid{grid-template-columns:1fr;gap:15px}.module-card{padding:23px;min-height:220px}.module-icon{margin-bottom:17px}.section-heading{margin-top:26px}.future{padding:19px}.footer{padding:4px 21px 22px;font-size:9px;gap:14px}.footer span{max-width:180px;text-align:right}.stats{grid-template-columns:1fr}.stat{display:flex;justify-content:space-between;align-items:center;padding:18px 20px}.stat p{margin:0}.stat strong{font-size:24px}.toolbar{flex-wrap:wrap}.month-picker{width:100%;justify-content:space-between}.toolbar input{max-width:none}.recipe-grid{grid-template-columns:1fr}.transactions th,.transactions td{padding:14px;font-size:12px}.transactions:not(.finance-history-table) th:nth-child(2),.transactions:not(.finance-history-table) td:nth-child(2){display:none}dialog{padding:23px}.form-row{grid-template-columns:1fr;gap:0}.button{padding:11px 14px;font-size:12px}.intro>.button{margin-top:8px}.topbar-right span{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.auth-card{max-width:500px;margin:15px auto 40px;padding:35px;border:1px solid var(--line);border-radius:20px;background:#fff}.auth-card h1{font-size:32px}.auth-description{font-size:14px;line-height:1.7;color:var(--muted);margin-bottom:27px}.auth-submit{width:100%;margin-top:8px}.field-hint{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0 22px}#account{display:flex;align-items:center;gap:16px}.account-name{font-size:12px;color:var(--ink)}.wallet-picker{display:flex;align-items:center;gap:12px}.wallet-picker select{width:230px}.wallet-picker label,.month-picker label{margin:0}.wallet-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.wallet-card{background:white;border:1px solid var(--line);border-radius:14px;padding:19px;display:flex;align-items:center;gap:14px;min-width:0}.wallet-card .module-icon{width:38px;height:38px;margin:0;flex-shrink:0}.wallet-card h3{font-size:13px;line-height:1.5;margin:0;overflow-wrap:anywhere;flex:1}.wallet-card .icon-button:disabled{cursor:default}.chart-panel{padding:26px}.chart-content{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center;gap:35px}.donut-wrap{position:relative;width:230px;height:230px;margin:auto}.donut{width:230px;height:230px;stroke:none}.donut-center{position:absolute;inset:70px 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}.donut-center span{font-size:10px;color:var(--muted);margin-bottom:8px}.donut-center strong{font-size:18px;font-weight:500}.chart-legend{width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}.chart-legend td{padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:middle}.chart-legend tr:last-child td{border-bottom:0}.chart-legend td:first-child{overflow-wrap:anywhere}.chart-legend td:nth-child(2),.chart-legend td:nth-child(3){text-align:right;white-space:nowrap}.chart-legend td:last-child{color:var(--muted)}.legend-dot{width:9px;height:9px;margin-right:9px}.chart-empty{font-size:13px;color:var(--muted);margin:0;text-align:center;padding:27px;line-height:1.7}.member-list{padding:8px 25px}.member-row{display:flex;align-items:center;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}.member-row:last-child{border-bottom:0}.member-row>div{flex:1;min-width:0}.member-row h3{font-size:14px;margin-bottom:4px;overflow-wrap:anywhere}.member-row p{font-size:12px;color:var(--muted);margin:0}.member-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--soft);color:var(--green);flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.wallet-list{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-content{grid-template-columns:1fr;gap:10px}.toolbar .wallet-picker{width:100%;justify-content:space-between}.wallet-picker select{width:230px}}
@media(max-width:720px){.auth-card{padding:24px;margin:0 auto 20px}.auth-card h1{font-size:29px}.auth-card .module-icon{margin-bottom:23px}.wallet-list{grid-template-columns:1fr}.wallet-picker select{width:180px}.chart-panel{padding:19px}.chart-legend{font-size:11px}.chart-legend td{padding:11px 5px}.account-name{display:none}.topbar-right>#today{display:none}.member-list{padding:4px 18px}.member-row{gap:12px}.member-row .small-tag{font-size:9px;padding:7px 10px}.member-avatar{width:35px;height:35px}.section-heading .button{font-size:11px;padding:10px}.donut-wrap,.donut{width:210px;height:210px}.donut-center{inset:65px 25px}.donut-center strong{font-size:16px}}
@media(max-width:720px){nav{flex-wrap:wrap}}
.member-actions{display:flex;align-items:center;gap:7px}.member-row .member-actions{flex:0 0 auto}@media(max-width:720px){.member-row{flex-wrap:wrap}.member-row .member-actions{margin-left:auto}.member-row .small-tag{margin-left:auto}}
.wallet-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.wallet-card h3{min-width:0}.wallet-edit-operation td:nth-child(2){max-width:450px;overflow-wrap:anywhere}.wallet-edit-title{display:block;font-size:12px;font-weight:600;color:var(--green);margin-bottom:7px}.wallet-name-change{display:block;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.transactions .wallet-edit-operation small{font-size:10px;line-height:1.7;margin-top:7px;overflow-wrap:anywhere}.wallet-edit-amount{color:var(--muted)}@media(max-width:720px){.wallet-card{gap:11px}.wallet-actions{gap:4px}.wallet-edit-title{font-size:11px}.wallet-name-change{font-size:12px}.wallet-edit-operation td:nth-child(2){max-width:220px}.transactions .wallet-edit-operation small{font-size:9px}}
.wallet-group{margin-bottom:22px}.wallet-group-label{font-size:13px;font-weight:500;color:var(--muted);margin:0 0 12px}.wallet-name{flex:1;min-width:0}.wallet-name h4{font-size:13px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:anywhere}.wallet-access{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.export-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:720px){.export-actions{gap:10px}.section-heading:has(.export-actions){align-items:flex-start;flex-wrap:wrap}}
.account-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:23px;margin:26px 0 8px}.account-overview span{display:block;font-size:12px;color:var(--muted);margin-bottom:9px}.account-overview strong{font-size:21px;font-weight:500}.account-name-button{border:0;background:none;padding:0;text-align:left;color:var(--green);font:inherit;font-weight:600;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px}.account-name-button:hover{text-decoration-color:currentColor}.account-balance{display:block;font-size:17px;font-weight:500;margin-top:12px}.account-balance.negative{color:var(--orange)}.account-checkbox{display:flex;align-items:center;gap:10px;margin:19px 0;font-size:13px;line-height:1.5}.account-checkbox input{width:18px;min-height:18px;height:18px;flex:0 0 18px}.account-current{background:var(--soft);padding:14px;border-radius:9px;font-size:14px}.account-detail-balance{font-size:30px;font-weight:500}.account-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.account-movement{background:#f6f8f2}@media(max-width:720px){.account-overview{grid-template-columns:1fr;padding:19px;gap:20px}.account-overview strong{font-size:20px}.account-balance{font-size:16px}}
#editor.account-editor{padding:24px}#editor.account-editor .dialog-head{margin-bottom:18px}#editor.account-editor .form-field{margin-bottom:13px}#editor.account-editor .field-hint{margin:8px 0 12px}#editor.account-editor .account-checkbox{margin:12px 0}#editor.account-editor .account-current{padding:12px;margin-bottom:12px}#editor.account-editor .form-actions{margin-top:15px;padding-top:14px}@media(max-width:520px){#editor.account-editor .form-row{grid-template-columns:1fr}}
.account-balance,.account-overview strong{overflow-wrap:anywhere}
.recipe-cover{height:180px}.recipe-cover img{width:100%;height:100%;object-fit:cover}.photo-hint{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 15px}.photo-preview{margin:0 0 18px}.photo-preview[hidden]{display:none}.photo-preview img{display:block;width:100%;max-height:190px;object-fit:contain;background:var(--soft);border-radius:12px;margin-bottom:10px}.recipe-detail-photo{display:block;width:100%;max-height:350px;object-fit:contain;border-radius:12px;background:var(--soft)}.recipe-photo-title{font-size:16px;font-weight:500;overflow-wrap:anywhere}input[type=file]{padding:10px;font-size:12px}

/* Recipe shopping lists stay readable and selectable on phones. */
.recipe-shopping-button{width:100%;justify-content:center;margin:4px 0 16px}
.shopping-recipe-name{font-size:18px;font-weight:600;overflow-wrap:anywhere;margin-bottom:10px}
.shopping-text{display:block;width:100%;max-height:45vh;min-height:160px;resize:vertical;line-height:1.8;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}


.cooking-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;align-items:start}
.cooking-recipes{min-width:0}.cooking-recipes .recipe-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.shopping-panel{position:sticky;top:24px;padding:24px;min-width:0;max-height:calc(100vh - 48px);overflow:auto}
.shopping-panel-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:20px}.shopping-panel-head h2{font-size:25px;line-height:1.2}
.shopping-panel-head .eyebrow{font-size:9px;letter-spacing:1.4px}.shopping-panel-head .small-tag{padding:8px 12px}
.shopping-selection{background:var(--soft);padding:16px;border-radius:12px;margin-bottom:18px}.shopping-selection h3{font-size:13px;margin-bottom:12px}
.shopping-dishes{list-style:none;padding:0;margin:0 0 10px}.shopping-dishes li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #d9dfd2}.shopping-dishes li:last-child{border-bottom:0}
.shopping-dishes strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere}.shopping-dishes small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.shopping-dishes .icon-button{flex-shrink:0}
.shopping-panel .shopping-text{font-size:13px;max-height:42vh;min-height:210px;padding:14px;line-height:1.8}.shopping-copy{width:100%;justify-content:center}.shopping-empty{padding:30px 0 20px;text-align:center;color:var(--muted)}.shopping-empty>span{display:block;font-size:34px;margin-bottom:16px;color:var(--green)}.shopping-empty h3{font-size:16px;color:var(--ink)}.shopping-empty p{font-size:13px;line-height:1.7}
.cooking-header-actions{display:flex;gap:10px;flex-wrap:wrap}.shopping-jump{display:none}
@media(max-width:1100px){.cooking-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.shopping-panel{padding:18px}}
@media(max-width:900px){.cooking-layout{grid-template-columns:1fr}.shopping-panel{position:static;max-height:none}.shopping-jump{display:inline-flex}.cooking-header-actions{justify-content:flex-start}.shopping-panel .shopping-text{max-height:50vh}}

.shopping-panel-head{margin-bottom:16px}.shopping-selection{padding:12px;margin-bottom:12px}.shopping-selection h3{margin-bottom:8px}.shopping-dishes{max-height:180px;overflow:auto}.shopping-dishes li{padding:6px 0}
.shopping-list-label{display:block;font-size:13px;font-weight:600;margin:0 0 10px}.shopping-panel .shopping-text{height:190px;min-height:170px;max-height:32vh}
/* Monthly category budgets. */
.budget-section { margin-block: 36px; }
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.budget-card, .budget-empty { padding: 24px; }
.budget-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.budget-card h3 { margin: 0 0 8px; font-size: 21px; overflow-wrap: anywhere; }
.budget-card-heading p, .budget-empty p { margin: 0 0 20px; color: var(--muted, #7a847c); font-size: 13px; }
.budget-amounts { display: flex; justify-content: space-between; gap: 16px; margin-block: 12px; flex-wrap: wrap; }
.budget-amounts span { display: block; font-size: 12px; color: var(--muted, #7a847c); margin-bottom: 6px; }
.budget-amounts strong { font-size: 18px; }
.budget-card progress { display: block; appearance: none; width: 100%; height: 9px; border: 0; border-radius: 8px; overflow: hidden; background: #eceee4; accent-color: var(--budget-progress, #244d43); }
.budget-card progress::-webkit-progress-bar { background: #eceee4; }
.budget-card progress::-webkit-progress-value { background: var(--budget-progress, #244d43); }
.budget-card progress::-moz-progress-bar { background: var(--budget-progress, #244d43); }
.budget-remaining { font-size: 14px; margin-block: 14px 20px; }
.budget-over .budget-remaining { color: #a74531; }
.budget-over progress { accent-color: var(--budget-progress, #a74531); }
.budget-over progress::-webkit-progress-value { background: var(--budget-progress, #a74531); }
.budget-over progress::-moz-progress-bar { background: var(--budget-progress, #a74531); }
@media (max-width: 520px) { .budget-card { padding: 18px; } .budget-card-heading { flex-wrap: wrap; } }
.transaction-actions { display: flex; align-items: center; gap: 8px; }
.wallet-archive { margin-block: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.wallet-archive summary { cursor: pointer; font-weight: 600; margin-bottom: 18px; }
.archive-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wallet-archive .wallet-card { flex-wrap: wrap; }
.wallet-archive .wallet-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.wallet-archive .wallet-name { min-width: 160px; flex: 1 1 160px; }
.wallet-archive .archive-actions { flex: 1 1 100%; justify-content: flex-end; }

.savings-goal { margin-top: 12px; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.savings-goal span { display: block; }
.savings-goal progress { display: block; width: 100%; height: 7px; margin-block: 7px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--green); }
.savings-goal progress::-webkit-progress-bar { background: #eceee4; }
.savings-goal progress::-webkit-progress-value { background: #244d43; }
.savings-goal progress::-moz-progress-bar { background: #244d43; }

.scope-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.scope-charts .chart-panel { min-width: 0; }
.scope-charts h3 { font-size: 17px; margin: 0; }
.scope-charts .chart-content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.scope-charts .donut-wrap, .scope-charts .donut { width: 200px; height: 200px; }
.scope-charts .donut-center { inset: 60px 20px; }
.scope-charts .chart-legend td { padding-inline: 4px; }
@media (max-width: 900px) { .scope-charts { grid-template-columns: minmax(0, 1fr); } }

.monthly-summaries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.monthly-summary{padding:22px}.monthly-summary h3{font-size:17px;margin:0}.monthly-summary .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 0}.monthly-summary .stat{padding:16px 12px;min-width:0}.monthly-summary .stat strong{display:block;font-size:20px;white-space:nowrap;max-width:100%;overflow-x:auto}.monthly-summary .stat p{font-size:11px}@media(max-width:1100px){.monthly-summaries{grid-template-columns:1fr}}@media(max-width:540px){.monthly-summary .stats{grid-template-columns:1fr}.monthly-summary .stat{display:flex;justify-content:space-between;gap:12px}.monthly-summary .stat p{margin:0}}

.family-admin-panel{padding:28px;margin-top:32px}.family-admin-panel .section-heading{margin:0 0 14px}.family-admin-panel h2{font-family:Georgia,serif;font-size:27px;font-weight:400;margin:6px 0}.family-admin-panel .field-hint{line-height:1.8}.family-admin-panel .notice{overflow-wrap:anywhere}#family-admin-dialog h2{font-family:Georgia,serif;font-size:29px;font-weight:400}@media(max-width:600px){.family-admin-panel{padding:20px}.family-admin-panel .section-heading{align-items:flex-start;gap:16px;flex-direction:column}}
.storage-quotas{display:grid;gap:16px}.storage-quota-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:20px 0;border-top:1px solid var(--line)}.storage-quota-row>div{flex:1;min-width:0}.storage-quota-row h3{overflow-wrap:anywhere;font-size:19px}.storage-quota-row progress{width:100%;height:12px;accent-color:var(--green)}@media(max-width:600px){.storage-quota-row{flex-direction:column}.storage-quota-row>div{width:100%}}

/* Family lifecycle and administrator enrolment */
.family-tabs,.family-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.mfa-card{max-width:680px}.mfa-card .button{margin:8px 8px 8px 0}.mfa-recovery{white-space:pre-wrap;line-height:1.8;letter-spacing:2px;padding:16px;border:1px solid var(--border);border-radius:12px}.button.danger{background:#a33c32;color:#fff}.button.danger:hover{background:#842e27}

.savings-schedule{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}.savings-schedule details{margin-top:6px}.savings-schedule summary{cursor:pointer;color:var(--green)}.savings-schedule details p{font-size:11px;line-height:1.6;margin:8px 0;color:var(--muted)}.savings-schedule .savings-overdue{color:var(--orange)}

.wallet-capital-button{font-size:11px;margin-top:10px;text-align:left}
.wallet-group .wallet-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr))}.wallet-group .wallet-card{align-items:flex-start}

.finance-toolbar-start{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.finance-toolbar-start .month-picker{width:auto}.finance-capital-link{min-height:45px}

.savings-parts-editor{border:1px solid var(--line);border-radius:12px;padding:16px;margin:18px 0}.savings-parts-editor legend{padding:0 8px;font-size:13px}.savings-part-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px;gap:10px;align-items:end;margin:14px 0}.savings-part-row label{font-size:12px;min-width:0}.savings-part-row input{width:100%;margin-top:6px;min-width:0}.savings-part-row .money-calculate-button{width:32px;flex-basis:32px;font-size:19px}.savings-part-row>.icon-button{height:44px;align-self:end}.savings-parts-view{font-size:12px;margin:12px 0}.savings-parts-view summary{cursor:pointer;color:var(--green)}.savings-parts-view ul{padding:0;list-style:none}.savings-parts-view li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0}.savings-parts-view li>span{overflow-wrap:anywhere}.savings-parts-view li>strong{white-space:nowrap}@media(max-width:480px){.savings-part-row{grid-template-columns:minmax(0,1fr) 28px}.savings-part-row>label{grid-column:1}.savings-part-row>.icon-button{grid-column:2;grid-row:1/3}.savings-parts-editor{padding:12px}}

.summary-drilldown{display:block;border:0;background:none;color:inherit;padding:0;text-align:left;cursor:pointer}.summary-drilldown:hover strong{text-decoration:underline;text-underline-offset:4px}.summary-drilldown:disabled{cursor:default}.finance-details{width:min(900px,calc(100% - 32px))}.finance-details .report-table td:nth-child(2),.finance-details .report-table th:nth-child(2){display:table-cell}.report-table td{overflow-wrap:anywhere}.report-table td:last-child{white-space:nowrap}.report-category{text-align:left;text-decoration:underline;text-underline-offset:3px}.finance-details .form-actions{align-items:center}.report-table small{white-space:pre-wrap}

button.stat{text-align:left;color:inherit;cursor:pointer}button.stat:hover{border-color:var(--green)}button.stat:disabled{cursor:default}
.report-table .amount.income{color:var(--green)}.report-table .amount.expense{color:var(--orange)}

[data-finance-block][hidden]{display:none!important}.finance-layout-settings{border:1px solid var(--line);border-radius:14px;padding:16px 20px;margin:20px 0}.finance-layout-settings summary{cursor:pointer;font-weight:600}.finance-layout-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:16px;margin:20px 0}.finance-layout-options label{display:flex;align-items:center;gap:10px;font-size:14px}.finance-layout-options input[type=checkbox]{width:20px;min-height:20px;height:20px}.scope-charts:has(>[hidden]){grid-template-columns:1fr}.monthly-summaries:empty{display:none}

.monthly-summaries:has(>:only-child){grid-template-columns:1fr}

.budget-card.budget-level-green{--budget-progress:#2f9e63}.budget-card.budget-level-yellow{--budget-progress:#e0b326}.budget-card.budget-level-red{--budget-progress:#dc4c4c}

.finance-collapsible{min-width:0;margin:24px 0}.finance-collapse-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;border:1px solid var(--line);border-radius:12px;padding:16px 20px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;font:600 15px/1.5 var(--font-body,sans-serif)}.finance-collapse-bar>span:first-child{display:flex;align-items:center;gap:10px}.finance-collapse-arrow{font-size:17px;color:var(--muted)}.finance-collapse-label{font-size:12px;font-weight:400;color:var(--muted);flex-shrink:0}.finance-collapse-bar:focus-visible{outline:2px solid var(--green);outline-offset:3px}.finance-collapse-content{padding-top:18px}.finance-collapse-content>.monthly-summary{height:100%}.finance-collapse-content>.monthly-summary>h3{display:none}.finance-collapse-content>.account-overview{margin-top:0}.monthly-summaries>.finance-collapsible,.scope-charts>.finance-collapsible{margin:0}.finance-collapse-content>.budget-section>.section-heading,.finance-collapse-content>.section-heading:first-child{margin-top:0}.finance-collapse-content>.budget-section>.section-heading>h2,.finance-collapsible[data-finance-section=wallets]>.finance-collapse-content>.section-heading>h2,.finance-collapsible[data-finance-section=history]>.finance-collapse-content>.section-heading>h2{display:none}.finance-collapsible[data-finance-section=history] .export-actions{margin-left:auto}@media(max-width:600px){.finance-collapse-bar{padding:14px;font-size:14px}.finance-collapse-label{font-size:11px}.finance-collapse-content{padding-top:14px}}

.finance-collapse-content>.budget-section>.section-heading,.finance-collapsible[data-finance-section=wallets]>.finance-collapse-content>.section-heading{justify-content:flex-end}
[data-category-picker] [hidden]{display:none!important}[data-category-editor]{margin-top:14px}[data-category-editor] input{margin:6px 0 10px}[data-category-error]:empty{display:none}
.finance-history-table .operation-number{width:1%;padding-inline:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.finance-history-table .operation-wallet{min-width:8rem;overflow-wrap:anywhere}
.finance-category-settings-form{margin-top:18px}.finance-category-settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
#finance-settings [hidden]{display:none!important}#finance-settings [data-status]:empty{display:none}
.finance-category-list{margin:16px 0 0;padding:0;list-style:none}.finance-category-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 0}.finance-category-list li span{overflow-wrap:anywhere}.finance-category-list li div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.price-toolbar{justify-content:flex-start;gap:.75rem;flex-wrap:wrap}.price-toolbar label{margin:0}.price-toolbar select{width:min(100%,28rem)}
.price-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;margin:1rem 0}
.price-stats div{display:grid;gap:.35rem;padding:.9rem;border:1px solid var(--line);border-radius:12px}
.price-stats span{color:var(--muted);font-size:.9rem}.price-stats strong{overflow-wrap:anywhere}
.price-chart{display:block;width:100%;height:auto;max-height:18rem}.price-chart text{font-size:18px}
.price-history{width:100%;border-collapse:collapse;text-align:left}.price-history th,.price-history td{padding:.65rem;border-bottom:1px solid var(--line)}
.price-history td:last-child{white-space:nowrap}.price-history td:nth-child(2){overflow-wrap:anywhere}
