:root{--bg:#f6f4ef;--card:#fff;--text:#1f2a26;--muted:#5d6964;--line:#dcd8cf;--brand:#2f5d50;--brand-text:#fff;--brand-soft:#e3eee9;--danger:#a33a2a;--warn:#b7791f;--warn-soft:#fbf0dc;--radius:14px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:17px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--bg:#141917;--card:#1e2522;--text:#e9eeeb;--muted:#a3b0aa;--line:#34403b;--brand:#7cc0a8;--brand-text:#0f1a16;--brand-soft:#24362f;--danger:#f08b7b;--warn:#e0b060;--warn-soft:#3a3020;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);margin:0}button,input{font:inherit;color:inherit}.app-header{background:var(--card);border-bottom:1px solid var(--line);z-index:5;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex;position:sticky;top:0}.app-name{color:var(--brand);cursor:pointer;background:0 0;border:0;padding:8px 0;font-size:1rem;font-weight:700}.unit-switch{border:1px solid var(--line);border-radius:999px;display:flex;overflow:hidden}.unit-switch button{cursor:pointer;background:0 0;border:0;min-height:36px;padding:6px 14px;font-size:.9rem}.unit-switch button[aria-pressed=true]{background:var(--brand);color:var(--brand-text)}.card.job{margin-bottom:10px;padding:12px 16px}.card.job .field{margin-bottom:4px}.card.job.off{opacity:.65}.job-line{color:var(--muted);margin:4px 0 0;font-size:.95rem}.job-line strong{color:var(--text)}.card.job .more{margin-bottom:0}.lines .subtotal dt{color:var(--text);font-weight:600}.screen{max-width:560px;margin:0 auto;padding:16px 16px 120px}h1{margin:12px 0 6px;font-size:1.5rem;line-height:1.2}h2{margin:0 0 10px;font-size:1.1rem}.lead{color:var(--muted);margin:0 0 16px}.back-link{color:var(--brand);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;min-height:44px;margin:-4px 0 6px;padding:8px 12px 8px 0;font-weight:600;display:inline-flex}.back-link span{font-size:1.4rem;line-height:1}.progress p{color:var(--muted);margin:6px 0 0;font-size:.85rem}.progress-bar{background:var(--line);border-radius:3px;height:6px;overflow:hidden}.progress-bar div{background:var(--brand);height:100%;transition:width .3s}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:14px;padding:16px}.field{border:0;min-width:0;margin:0 0 14px;padding:0}.field>label,.field legend{margin-bottom:6px;padding:0;font-weight:600;display:block}.field-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.hint{color:var(--muted);margin:6px 0 0;font-size:.85rem}.hint.center{text-align:center;margin-bottom:8px}.number-input,.text-input{border:1px solid var(--line);background:var(--bg);border-radius:10px;align-items:center;width:100%;min-height:48px;display:flex}.number-input:focus-within,.text-input:focus{outline:2px solid var(--brand);outline-offset:1px}.number-input input{background:0 0;border:0;outline:none;flex:1;min-width:0;padding:10px 12px;font-size:1.05rem}.text-input{padding:10px 12px}.affix{color:var(--muted);white-space:nowrap;padding:0 12px;font-size:.9rem}.affix:first-child{padding-right:0}.choice-row{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.choice-btn{border:1px solid var(--line);background:var(--bg);cursor:pointer;border-radius:10px;flex-direction:column;align-items:center;gap:2px;min-height:56px;padding:8px 4px;font-weight:600;display:flex}.choice-btn small{color:var(--muted);text-align:center;font-size:.72rem;font-weight:400}.choice-btn.selected{border:2px solid var(--brand);background:var(--brand-soft)}.field>.toggle-row{cursor:pointer;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-bottom:0;font-weight:600;display:flex}.toggle-row input{appearance:none;background:var(--line);cursor:pointer;border-radius:15px;flex-shrink:0;width:50px;height:30px;transition:background .2s;position:relative}.toggle-row input:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .2s;position:absolute;top:3px;left:3px}.toggle-row input:checked{background:var(--brand)}.toggle-row input:checked:after{transform:translate(20px)}.toggle-row input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.more{margin:4px 0 14px}.more summary{cursor:pointer;color:var(--brand);min-height:44px;padding:10px 0;font-weight:600}.more-body{padding-top:6px}.primary-btn,.secondary-btn{cursor:pointer;border-radius:12px;width:100%;min-height:52px;font-size:1.05rem;font-weight:700}.primary-btn{background:var(--brand);color:var(--brand-text);border:0}.primary-btn:disabled{opacity:.45;cursor:not-allowed}.secondary-btn{border:2px dashed var(--line);color:var(--brand);background:0 0;margin-bottom:8px}.link-btn{color:var(--brand);cursor:pointer;background:0 0;border:0;min-height:44px;padding:10px 0;text-decoration:underline}.link-btn.danger{color:var(--danger)}.bottom-bar{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line);position:fixed;bottom:0;left:0;right:0}.bottom-bar .primary-btn{max-width:528px;margin:0 auto;display:block}.empty{text-align:center;color:var(--muted);padding:20px 0}.result{background:var(--brand-soft);border-color:var(--brand);text-align:center}.result-label{color:var(--muted);margin:0;font-size:.9rem}.result-range{margin:4px 0;font-size:1.9rem;font-weight:800;line-height:1.15}.result-mid{margin:0 0 10px}.note{color:var(--muted);margin:0;font-size:.85rem}.note.center{text-align:center;margin:4px 0 14px}.result-headline{margin:6px 0 2px;font-size:1.45rem;font-weight:800;line-height:1.15}.status-not-yet{background:var(--warn-soft);border-color:var(--warn)}.lines dd small{color:var(--muted);font-weight:400}.lines{margin:0 0 12px}.lines div{border-bottom:1px solid var(--line);justify-content:space-between;gap:12px;padding:8px 0;display:flex}.lines dt{color:var(--muted)}.lines dd{white-space:nowrap;margin:0;font-weight:600}.lines .total{border-bottom:0}.lines .total dt{color:var(--text);font-weight:700}.buy-list{margin:0;padding:0;list-style:none}.buy-list li{border-bottom:1px solid var(--line);flex-direction:column;padding:10px 0;display:flex}.buy-list li:last-child{border-bottom:0}.buy-list span{color:var(--muted);font-size:.95rem}.buy-list .small{font-size:.85rem}.field-row.three{grid-template-columns:1fr 1fr 1fr;gap:8px}.field-row.three .field{margin-bottom:0}.field-row.three .field>label{color:var(--muted);font-size:.85rem;font-weight:400}.price-group legend{margin-bottom:6px;padding:0;font-weight:600}.buy-list .room-cost{color:var(--text);font-weight:600}.project-list{margin:0 0 14px;padding:0;list-style:none}.project-card{flex-direction:column;padding:0;display:flex;overflow:hidden}.project-open{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:14px 16px 6px;display:flex}.project-name{font-size:1.1rem;font-weight:700}.project-meta{color:var(--muted);font-size:.85rem}.project-range{margin-top:4px;font-weight:600}.project-card .link-btn.small{align-self:flex-start;min-height:36px;padding:0 16px 10px;font-size:.9rem}.empty-card h2{margin-bottom:6px}.empty-card .lead{margin:0}.budget-card p{margin:0 0 12px}.secondary-btn.solid{border-style:solid;margin-bottom:0}.type-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.type-tile{text-align:left;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);cursor:pointer;flex-direction:column;align-items:flex-start;gap:4px;min-height:96px;padding:14px;display:flex}.type-tile:hover,.type-tile:focus-visible{border-color:var(--brand)}.type-label{font-size:1.05rem;font-weight:700}.type-blurb{color:var(--muted);font-size:.85rem}.optional{color:var(--muted);font-size:.9rem;font-weight:400}.item-row{align-items:flex-end;gap:8px;display:flex}.item-row .field{flex:1;margin-bottom:10px}.item-row .link-btn{margin-bottom:10px}.shop-list{margin:0 0 8px;padding:0;list-style:none}.shop-list li{border-bottom:1px solid var(--line)}.shop-list li:last-child{border-bottom:0}.shop-list label{cursor:pointer;align-items:center;gap:12px;min-height:52px;padding:10px 0;display:flex}.shop-list input[type=checkbox]{width:24px;height:24px;accent-color:var(--brand);flex-shrink:0}.shop-text{flex-direction:column;flex:1;min-width:0;display:flex}.shop-name{font-weight:600}.shop-amount{color:var(--muted);font-size:.9rem}.shop-cost{white-space:nowrap;font-weight:600}.shop-list li.done .shop-name,.shop-list li.done .shop-amount,.shop-list li.done .shop-cost{color:var(--muted);text-decoration:line-through}.list-actions{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px;display:grid}@media print{.app-header,.bottom-bar,.back-link,.no-print{display:none!important}body,.card{color:#000;background:#fff;border:0}.screen{padding:0}}.center{text-align:center}.welcome h1{margin-top:24px;font-size:1.8rem}.welcome-steps{margin:8px 0 20px;padding-left:22px}.welcome-steps li{margin-bottom:14px;line-height:1.5}.split-result{margin:4px 0 0}
