:root{--bg:#f6f7f2;--paper:#fff;--ink:#1f302a;--muted:#606c64;--green:#234b3f;--sage:#e7eddf;--line:#e2e6dd;--orange:#a24523;--radius:22px;--shadow:0 5px 24px #223b2605;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--green)}button{border:0;background:none}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4a7661;outline-offset:3px}svg{width:21px;height:21px;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1{font-size:40px;line-height:1.15;letter-spacing:-1.6px;font-weight:570;margin-bottom:12px}h2{font-size:19px;letter-spacing:-.45px;font-weight:600;margin:0}h3{font-size:16px;margin:0}p{margin-bottom:12px}.muted{color:var(--muted)}.small{font-size:13px}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted)}.skip-link{position:fixed;top:-100px;left:20px;background:var(--green);color:#fff;padding:14px;z-index:20}.skip-link:focus{top:12px}
.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#f0f2eb;border-right:1px solid var(--line);padding:38px 22px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:38px;font-weight:600;letter-spacing:-2px;padding-left:10px}.brand img{border-radius:12px}.brand-dot{color:#61855c}.brand-caption{font-size:8px;letter-spacing:1.9px;margin:14px 0 48px 12px;color:var(--muted)}.nav-item{min-height:50px;display:flex;align-items:center;gap:13px;width:100%;padding:12px 18px;margin:6px 0;border-radius:13px;color:var(--muted);text-align:left;font-weight:500}.nav-item.active{background:#e0e7d7;color:var(--green);font-weight:650}.nav-item:hover{background:#e6ebe0}.nav-item.nav-add{background:var(--green);color:#fff;margin:20px 0;box-shadow:0 4px 8px #234b3f10}.nav-item.nav-add:hover{background:#305d4e}.sidebar-bottom{margin-top:auto;padding:24px 10px 0}.sidebar-bottom p{font-size:12px;color:var(--muted);margin-top:10px}.local-label{font-size:12px;display:flex;gap:8px;align-items:center}.local-label i,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#527749}.version{color:#667461;font-size:10px;letter-spacing:.8px}.app-shell{margin-left:238px;padding:0 44px;max-width:1530px}.topbar{display:flex;justify-content:space-between;align-items:center;height:94px;border-bottom:1px solid var(--line);margin-bottom:35px}.date-label{font-size:13px;color:var(--muted);text-transform:capitalize}.status-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#ffffff80;border-radius:30px;min-height:38px;padding:8px 14px;font-size:11px;color:#4e634f}.mobile-brand,.mobile-nav{display:none}.page-footer{text-align:center;color:#697167;font-size:11px;padding:34px 0 26px}.loading{padding:80px 0;text-align:center;color:var(--muted)}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:28px}.page-heading h1{font-size:32px;margin:6px 0}.page-heading p{color:var(--muted);margin:8px 0 0}.hero{position:relative;overflow:hidden;min-height:208px;border:1px solid #dce4d1;border-radius:var(--radius);background:linear-gradient(115deg,#e7eddd,#edf1e7);padding:32px 36px;margin-bottom:28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.hero .eyebrow{color:#4c6347;margin-bottom:16px}.hero p{margin:0;color:#52604f;max-width:390px;font-size:14px}.hero-decoration{width:156px;height:156px;position:relative;flex:none;margin-right:26px;display:grid;place-items:center}.hero-decoration:before,.hero-decoration:after{content:"";position:absolute;border:1px solid #bdcdb2;border-radius:50%;width:150px;height:150px}.hero-decoration:before{transform:translateX(-20px)}.hero-decoration:after{transform:translateX(20px)}.hero-decoration img{width:63px;height:63px;position:relative;z-index:1;border-radius:22px;transform:rotate(-8deg)}.hero-meta{display:inline-flex;gap:6px;align-items:center;margin-top:21px;color:#4b634a;font-size:12px}.hero-meta svg{width:15px;height:15px}.dashboard{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:22px;align-items:start}.stack{display:grid;gap:22px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.card-title{display:flex;align-items:center;gap:10px}.card-title svg{width:19px;height:19px;color:#58724d}.card-header p{margin:3px 0 0}.card-footer{padding-top:15px;border-top:1px solid var(--line);margin-top:16px}.link-button{color:#3f6048;font-size:12px;min-height:44px;padding:6px 0;display:inline-flex;align-items:center;gap:7px;text-decoration:none;font-weight:550}.link-button svg{width:15px;height:15px}.pill{border-radius:20px;background:#eff2e9;padding:4px 9px;font-size:11px;color:#506147;display:inline-flex;align-items:center;gap:5px}.pill.warn{background:#fcf0e4;color:#88411f}.pill.done{background:#e5eee5;color:#3d6342}.btn{border:1px solid var(--line);background:white;padding:11px 16px;min-height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:550;font-size:14px;text-decoration:none}.btn:hover{background:#f2f5ec}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.primary:hover{background:#315e4e}.btn.soft{background:#eef2e7;color:var(--green);border-color:transparent}.btn.danger{color:#963e2e}.btn.full{width:100%}.icon-btn{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px}.icon-btn:hover{background:var(--sage)}.icon-btn svg{width:18px;height:18px}.empty-state{padding:25px 8px 20px;text-align:center}.empty-symbol{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#f7f8f3;margin:0 auto 15px;color:#6c7e59}.empty-state h3{font-size:15px;font-weight:550;margin-bottom:7px}.empty-state p{font-size:12px;color:var(--muted);max-width:270px;margin:0 auto 12px}.empty-state .link-button{margin:0 auto}.empty-compact{padding:12px 0;font-size:13px;color:var(--muted)}.money{font-size:39px;font-weight:550;letter-spacing:-1.7px;line-height:1.3;font-variant-numeric:tabular-nums;margin:7px 0}.money.negative{color:var(--orange)}.budget-label{font-size:12px;color:var(--muted)}progress{display:block;width:100%;height:6px;border:0;border-radius:20px;background:#edf0e8;overflow:hidden;margin:17px 0 10px}progress::-webkit-progress-bar{background:#edf0e8}progress::-webkit-progress-value{background:#719468;border-radius:20px}progress::-moz-progress-bar{background:#719468;border-radius:20px}.progress-warn::-webkit-progress-value{background:#b66840}.progress-warn::-moz-progress-bar{background:#b66840}.split-line{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:var(--muted)}
.row-list{list-style:none;padding:0;margin:0}.row{display:flex;gap:11px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0e8;min-width:0}.row:last-child{border-bottom:0}.row-body{flex:1;min-width:0}.row-title{font-size:14px;font-weight:520;overflow-wrap:anywhere;display:block}.row-meta{font-size:11px;color:var(--muted);margin-top:4px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.row-amount{font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}.check{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}.check-circle{width:21px;height:21px;border:1.5px solid #b9c3ae;border-radius:7px;display:grid;place-items:center}.check[aria-pressed=true] .check-circle{background:var(--green);border-color:var(--green);color:#fff}.check svg{width:14px;height:14px}.completed .row-title{text-decoration:line-through;color:#7a8176}.row-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f1f4eb;color:#5e7755;flex-shrink:0}.row-icon svg{width:18px;height:18px}.step-list{display:grid;gap:5px}.step-button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:12px 0;min-height:57px}.step-number{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:11px;color:#66775e;flex:none}.step-button strong{font-size:13px;font-weight:500;display:block}.step-button small{color:var(--muted);font-size:11px}.step-button>svg{margin-left:auto;width:16px;height:16px;color:#78916c}.section-space{margin-top:24px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.segmented{display:flex;background:#e9ede3;border-radius:12px;padding:4px;gap:3px;width:fit-content}.segmented button{padding:9px 17px;border-radius:9px;min-height:42px;color:#5b6955;font-size:13px}.segmented button[aria-pressed=true]{background:#fff;color:var(--green);box-shadow:0 2px 5px #31462a08;font-weight:600}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.note{padding:15px 18px;border-radius:13px;background:#edf2e8;color:#4f6047;font-size:12px;line-height:1.6;margin-top:16px}.note.warn{background:#fff3e7;color:#87491e}.note p:last-child{margin-bottom:0}.notice{padding:14px 18px;border:1px solid #e1e6d8;border-radius:14px;display:flex;gap:12px;font-size:13px;background:#f2f5eb;margin-bottom:20px}.notice svg{margin-top:1px;color:#688060}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.stat{border:1px solid var(--line);background:#fff;border-radius:17px;padding:22px}.stat-value{font-size:30px;letter-spacing:-1px;font-weight:550;margin:10px 0 5px;overflow-wrap:anywhere}.stat-caption{font-size:11px;color:var(--muted)}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.module-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.module-card{background:white;border:1px solid var(--line);border-radius:18px;padding:22px;display:flex;gap:15px;align-items:center;text-align:left;min-height:105px}.module-card>svg{color:#526f4e;width:23px;height:23px}.module-card strong{font-size:14px;font-weight:550;display:block}.module-card span{font-size:12px;color:var(--muted)}.module-card .arrow{margin-left:auto;width:16px}.category-row{margin:18px 0}.category-row progress{height:8px;margin:9px 0}.history-list .row{align-items:flex-start}.history-list time{font-size:11px;white-space:nowrap;color:var(--muted)}.history-list .row-icon{width:32px;height:32px}.back-link{display:flex;align-items:center;gap:6px;font-size:12px;color:#586b50;padding:0;min-height:44px;margin-top:-20px}.danger-text{color:var(--orange)}.status-lines{margin:0;padding-left:18px;color:var(--muted);font-size:13px}.status-lines li{margin:8px 0}
dialog{padding:0;border:1px solid var(--line);border-radius:25px;width:min(580px,calc(100% - 30px));max-height:90dvh;box-shadow:0 25px 100px #1b302c2b;background:#fbfcf8;color:var(--ink)}dialog::backdrop{background:#12251d66;backdrop-filter:blur(3px)}.modal-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:22px 24px 16px;position:sticky;top:0;background:#fbfcf8;border-bottom:1px solid var(--line);z-index:1}.modal-heading h2{font-size:22px}.modal-body{padding:24px}.modal-body>p{font-size:13px;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:block;margin-bottom:18px;font-size:12px;font-weight:550}.form-grid .field{margin-bottom:0}.field input,.field select,.field textarea{display:block;width:100%;padding:12px 13px;border:1px solid #cfd8c8;background:#fff;border-radius:11px;font-size:16px;min-height:48px;margin-top:7px}.field small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:6px}.field input[readonly]{background:#edf0e8;color:#63705f}.field textarea{resize:vertical;min-height:90px}.check-field{display:flex;align-items:center;gap:10px;font-size:13px;min-height:44px;margin:12px 0}.check-field input{width:20px;height:20px;accent-color:var(--green)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;border-top:1px solid var(--line);padding-top:20px}.form-actions .btn.primary{flex:1}.form-error{background:#fff0e8;border:1px solid #efcbb6;padding:12px 14px;border-radius:12px;color:#963e25;font-size:13px;margin:0 0 18px}.form-error:empty{display:none}.add-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.capture-option{border:1px solid var(--line);border-radius:17px;padding:21px 16px;text-align:left;background:#fff;min-height:122px}.capture-option>svg{display:block;margin-bottom:12px;color:#567651}.capture-option strong{font-size:14px;font-weight:550;display:block}.capture-option span{font-size:11px;color:var(--muted);display:block;margin-top:3px}.capture-option:hover{background:#eff3e9}.ingredient-line{display:grid;grid-template-columns:minmax(0,1fr) 95px 44px;gap:8px;align-items:end;margin:12px 0}.ingredient-line .field{margin:0}.consume-line{display:grid;grid-template-columns:1fr 140px;gap:15px;align-items:center;margin:14px 0}.consume-line .field{margin:0}.consume-line strong{display:block;font-size:14px;font-weight:550}.consume-line small{font-size:11px;color:var(--muted)}.import-row{padding:16px 0;border-bottom:1px solid var(--line)}.import-row p{font-size:12px;margin:6px 0;color:var(--muted)}.import-row .field{margin:10px 0 0}.import-summary{position:sticky;top:0;background:var(--sage);border-radius:12px;padding:12px;font-size:13px}.count-tag{font-size:11px;color:#65795a;margin-left:6px}#toast{position:fixed;bottom:28px;left:calc(50% + 119px);transform:translateX(-50%);max-width:calc(100vw - 40px);padding:14px 20px;border-radius:14px;background:#234b3f;color:#fff;font-size:13px;box-shadow:0 7px 30px #102a2626;z-index:10;text-align:center}#toast[hidden]{display:none}.quiet-divider{margin:24px 0;border:0;border-top:1px solid var(--line)}.wide{grid-column:1/-1}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.app-shell{padding:0 65px}}@media(max-width:1100px){.sidebar{width:195px;padding:32px 14px}.brand-caption{font-size:7px;letter-spacing:1.5px}.app-shell{margin-left:195px;padding:0 26px}.hero-decoration{width:100px;margin-right:8px}.hero-decoration:before,.hero-decoration:after{width:100px;height:100px}.hero{padding:28px}.hero h1{font-size:35px}#toast{left:calc(50% + 97px)}.card{padding:20px}.stats-grid{gap:12px}.stat{padding:18px}}
@media(max-width:760px){.sidebar{display:none}.app-shell{margin:0;padding:0 20px}.topbar{height:78px;margin-bottom:24px}.mobile-brand{display:block;font-size:30px;font-weight:600;letter-spacing:-1.5px;text-decoration:none;color:var(--ink)}.mobile-brand span{color:#6f8759}.topbar .date-label{display:none}.status-pill{font-size:10px;min-height:38px;padding:7px 11px}.hero{padding:25px 23px;margin-bottom:22px;min-height:195px}.hero h1{font-size:32px;letter-spacing:-1.2px}.hero .eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:15px}.hero p{font-size:12px;max-width:230px}.hero-decoration{position:absolute;right:-32px;top:47px;width:95px;opacity:.35;margin:0}.hero-decoration img{width:38px;height:38px}.hero-decoration:before,.hero-decoration:after{width:95px;height:95px}.hero>div:first-child{position:relative;z-index:1}.hero-meta{font-size:10px;max-width:240px;margin-top:18px}.dashboard{grid-template-columns:1fr;gap:18px}.stack{gap:18px}.card{padding:21px;border-radius:20px}.card-header{margin-bottom:14px}h2{font-size:18px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;position:fixed;bottom:0;left:0;right:0;z-index:4;padding:7px 10px calc(7px + env(safe-area-inset-bottom));background:#fcfdf9f5;border-top:1px solid #dee4d5;backdrop-filter:blur(14px)}.mobile-nav button{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;color:#687260;border-radius:12px}.mobile-nav button.active{color:var(--green);font-weight:650}.mobile-nav button.active>svg{stroke-width:2.2}.mobile-nav button.nav-add{color:#fff;background:var(--green);width:52px;min-height:52px;justify-self:center;border-radius:18px;transform:translateY(-7px);box-shadow:0 3px 10px #173f2c16}.mobile-nav button.nav-add span{position:absolute;bottom:-18px;color:var(--green);font-size:9px}.mobile-nav button.nav-add svg{width:25px;height:25px}.page-footer{padding:30px 0 calc(105px + env(safe-area-inset-bottom));font-size:10px}#toast{left:50%;bottom:calc(90px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 40px)}.page-heading{margin-bottom:24px}.page-heading h1{font-size:29px;letter-spacing:-1px}.page-heading p{font-size:13px}.page-heading>.btn{padding:10px 12px;font-size:12px;min-height:44px}.summary-grid{grid-template-columns:1fr;gap:18px}.stats-grid{grid-template-columns:1fr;gap:12px}.stat{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 12px;padding:18px 20px}.stat-value{font-size:25px;margin:0}.stat-caption{flex-basis:100%;margin-top:5px}.module-grid{gap:12px}.module-card{padding:18px 14px;display:block;min-height:137px}.module-card>svg{margin-bottom:10px;width:23px;height:23px}.module-card .arrow{display:none}.module-card strong{font-size:13px}.module-card span{font-size:11px}.toolbar .segmented{max-width:100%}.segmented button{padding:9px 13px;font-size:12px}.history-list time{font-size:10px}.row-title{font-size:13px}.row-amount{font-size:14px}.note{font-size:12px}.back-link{margin-top:-8px}.money{font-size:35px}.empty-state{padding:19px 0}.status-lines{font-size:12px}}
@media(max-width:480px){dialog{width:100%;max-width:100%;margin:auto 0 0;max-height:92dvh;border-radius:24px 24px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.modal-heading{padding:18px 22px 14px}.modal-heading h2{font-size:21px}.modal-body{padding:22px}.form-grid{gap:14px}.form-grid .wide{grid-column:1/-1}.ingredient-line{grid-template-columns:minmax(0,1fr) 87px 36px;gap:6px}.ingredient-line .icon-btn{min-width:36px}.consume-line{grid-template-columns:minmax(0,1fr) 125px}.hero-decoration{right:-46px}.app-shell{padding:0 17px}.form-actions .btn{padding:11px 13px}.row{gap:8px}.row .icon-btn{min-width:40px}.actions .btn{font-size:12px;padding:10px 12px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .12s,color .12s}dialog[open]{animation:appear .16s ease-out}@keyframes appear{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}}

/* VIDA 0.3 — habits: low-friction, accessible interactions */
.habit-progress{display:flex;flex-direction:column;gap:3px;margin:-5px 0 8px;color:var(--muted);font-size:12px}
.habit-progress progress{margin:7px 0 5px}
.habit-stats{display:grid;gap:12px;margin-top:15px}
.habit-stats .split-line{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}
.habit-stats .split-line strong{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink)}
.habit-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:20px}
.day-pill{position:relative;display:flex;min-width:0;cursor:pointer}
.day-pill input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.day-pill span{width:100%;display:grid;place-items:center;border-radius:11px;border:1px solid #ced9c8;min-height:46px;font-size:12px;font-weight:600;background:#fff;color:var(--muted)}
.day-pill input:checked+span{background:var(--green);border-color:var(--green);color:#fff}
.day-pill input:focus-visible+span{outline:3px solid #4a7661;outline-offset:2px}
@media(max-width:400px){.habit-days{gap:3px}.day-pill span{font-size:11px;min-height:42px}}

/* VIDA 0.4 — quiet, mobile-first planner. No remote fonts or assets. */
:root{--bg:#f7f6f2;--paper:#fffefa;--ink:#24372f;--muted:#68766f;--green:#245646;--sage:#ebf0e9;--line:#e5e7df;--shadow:0 8px 32px #1f34280a;--pink:#f3e6e3;--blue:#e8eff1}
:root[data-accent="ocean"]{--green:#305c75;--sage:#e6eef2}
:root[data-accent="plum"]{--green:#6f5067;--sage:#f1e9ef}
body{letter-spacing:.01em}
.app-shell{max-width:1450px}
.topbar{margin-bottom:25px}
.hero.vida-hero{background:linear-gradient(120deg,#e9eee4 0%,#f3f0e9 100%);border-color:#e2e5d9;min-height:170px;box-shadow:none;display:flex;align-items:center}
.vida-hero h1{font-size:clamp(28px,3.3vw,39px);margin:2px 0 8px;font-weight:640}
.vida-hero .eyebrow{margin-bottom:9px;color:#526a5a}
.vida-hero p{font-size:13px;max-width:480px;line-height:1.65}
.hero-quick{display:flex;flex-wrap:wrap;gap:9px;margin-top:19px}
.hero-mark{font-size:56px;letter-spacing:-7px;font-weight:760;color:#33584613;user-select:none}
.hero-mark span{color:#2d765626}
.life-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.dashboard-card,.life-dashboard>.card{min-height:210px}
.life-dashboard .card-header h2{font-size:17px;letter-spacing:-.45px}
.life-dashboard .row:last-of-type{border-bottom:0}
.life-dashboard .card-footer{margin-top:8px;padding-top:8px}
.card{background:var(--paper);box-shadow:var(--shadow)}
.card-title svg{color:var(--green)}
.row:hover{background:#f5f8f312}
.check-circle{width:25px;height:25px;border-radius:9px}
.check[aria-pressed=true] .check-circle{background:var(--green)}
.pill{background:var(--sage);color:var(--green)}
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-bottom:8px}
.day-chip{min-height:77px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:var(--paper);border:1px solid var(--line);border-radius:16px;color:var(--muted)}
.day-chip strong{font-weight:650;font-size:17px;color:var(--ink)}
.day-chip span{font-weight:600;font-size:11px}
.day-chip.selected{background:var(--green);border-color:var(--green);color:white;box-shadow:0 6px 18px #234b3f16}
.day-chip.selected strong{color:white}
.day-chip i{width:4px;height:4px;border-radius:50%;background:#a8bbb2}
.day-chip.selected i{background:#d9e6de}
.day-chip .empty-dot{opacity:0}
.week-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 20px}
.week-nav strong{font-size:13px;font-weight:600;text-transform:capitalize}
.plan-tabs{max-width:100%;overflow-x:auto}
.timeline{list-style:none;margin:0;padding:0}
.timeline-item{display:flex;align-items:center;gap:13px;min-height:70px;border-bottom:1px solid var(--line);padding:12px 0}
.timeline-item:last-child{border:0}
.timeline-time{flex:none;width:70px;font-size:11px;color:var(--muted)}
.timeline-body{flex:1;min-width:0;display:grid;gap:3px}
.timeline-body strong{font-size:14px;font-weight:590;overflow-wrap:anywhere}
.timeline-body small{font-size:11px;color:var(--muted)}
.line-through{text-decoration:line-through;opacity:.65}
.habit-calendar{border-top:1px solid var(--line);padding:17px 0}
.habit-calendar:first-of-type{border-top:0}
.habit-calendar small{color:var(--muted);font-size:11px}
.habit-dots{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:15px}
.habit-dot{width:100%;max-width:42px;aspect-ratio:1;justify-self:center;border-radius:50%;background:#f0f3ed;border:1px solid #dce3d9;color:#6d7a71;font-size:11px;min-height:38px}
.habit-dot.not-due{opacity:.43}
.habit-dot.marked{background:var(--green);color:white;border-color:var(--green);opacity:1}
.habit-dot.today-dot{outline:2px solid #b7cabc;outline-offset:3px}
.insight-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 22px}
.insight-strip>div{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}
.insight-strip small{display:block;color:var(--muted);font-size:11px;margin-bottom:10px}
.insight-strip strong{font-size:clamp(15px,2vw,24px);font-weight:650;letter-spacing:-.6px;overflow-wrap:anywhere}
.goal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.goal-large{font-size:38px;letter-spacing:-1.5px;color:var(--green);font-weight:700}
.treat-info{display:flex;flex-direction:column;gap:3px;background:var(--sage);border-radius:15px;padding:17px;margin-bottom:23px}
.treat-info>span,.treat-info small{font-size:12px;color:var(--muted)}
.treat-info strong{font-size:22px;color:var(--green)}
.preference-row{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid var(--line)}
.preference-row select{background:var(--paper);border:1px solid var(--line);padding:7px 11px;border-radius:10px;min-height:44px}
.preference-row label{margin:6px 0}
.add-grid{gap:9px}.capture-option{min-height:100px;padding:16px 14px;border-radius:15px;background:var(--paper)}.capture-option>svg{margin-bottom:8px}.capture-option strong{font-size:13px}
.module-card{background:var(--paper)}
@media(max-width:760px){
  .hero.vida-hero{padding:23px 22px;min-height:0;margin-bottom:16px}
  .vida-hero h1{font-size:29px}
  .vida-hero p{font-size:12px}
  .hero-mark{display:none}
  .hero-quick{margin-top:16px}
  .life-dashboard{grid-template-columns:1fr;gap:13px}
  .life-dashboard .card{padding:20px;min-height:0}
  .week-strip{gap:5px}.day-chip{min-height:65px;border-radius:13px}.day-chip strong{font-size:16px}
  .day-chip span{font-size:10px}
  .insight-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.insight-strip>div{padding:14px}
  .goal-list{grid-template-columns:1fr}
  .toolbar .plan-tabs{width:100%;flex-wrap:nowrap}.plan-tabs button{padding:7px 10px;flex:1;font-size:11px}
  .habit-dots{gap:6px}.habit-dot{min-height:36px}
}
@media(max-width:430px){.life-dashboard .card-header h2{font-size:16px}.week-nav .link-button{font-size:11px}.timeline-time{width:52px}.app-shell{padding-left:16px;padding-right:16px}}

/* Dark theme is optional and stored in the same versioned state. */
:root[data-theme="dark"]{--bg:#141b19;--paper:#1d2622;--ink:#e8eee9;--muted:#a9b6ae;--green:#a1c6b4;--sage:#293a32;--line:#39473e;--shadow:none;--orange:#edab8b}
:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .mobile-nav{background:#1a2420;border-color:var(--line)}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .stat,:root[data-theme="dark"] .module-card,:root[data-theme="dark"] .day-chip,:root[data-theme="dark"] .capture-option,:root[data-theme="dark"] .btn,:root[data-theme="dark"] dialog,:root[data-theme="dark"] .modal-heading,:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .btn.primary,:root[data-theme="dark"] .nav-add,:root[data-theme="dark"] .day-chip.selected,:root[data-theme="dark"] .habit-dot.marked{background:#36775a;color:#fff;border-color:#36775a}
:root[data-theme="dark"] .vida-hero{background:linear-gradient(120deg,#233c32,#262e2a);border-color:var(--line)}
:root[data-theme="dark"] .vida-hero .eyebrow,:root[data-theme="dark"] .vida-hero p{color:#b9cfc1}
:root[data-theme="dark"] .segmented,:root[data-theme="dark"] .note,:root[data-theme="dark"] .treat-info,:root[data-theme="dark"] .notice{background:var(--sage);color:var(--ink)}
:root[data-theme="dark"] .segmented button[aria-pressed=true]{background:#334b3d;color:var(--ink)}
:root[data-theme="dark"] .pill,:root[data-theme="dark"] .row-icon,:root[data-theme="dark"] .habit-dot,:root[data-theme="dark"] .empty-symbol{background:var(--sage);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .mobile-nav button:not(.nav-add){color:#c8d8cd}
:root[data-theme="dark"] .row{border-color:var(--line)}
:root[data-theme="dark"] .field input[readonly]{background:#2a382f}
:root[data-theme="dark"] .check[aria-pressed=true] .check-circle{background:#36775a;border-color:#36775a}
:root[data-theme="dark"] progress{background:#34433a}
:root[data-theme="dark"] .modal-heading{border-color:var(--line)}
@media(prefers-color-scheme:dark){
  :root[data-theme="system"]{--bg:#141b19;--paper:#1d2622;--ink:#e8eee9;--muted:#a9b6ae;--green:#a1c6b4;--sage:#293a32;--line:#39473e;--shadow:none}
  :root[data-theme="system"] .sidebar,:root[data-theme="system"] .mobile-nav{background:#1a2420}
  :root[data-theme="system"] .card,:root[data-theme="system"] .stat,:root[data-theme="system"] .module-card,:root[data-theme="system"] .day-chip,:root[data-theme="system"] .capture-option,:root[data-theme="system"] .btn,:root[data-theme="system"] dialog,:root[data-theme="system"] .modal-heading,:root[data-theme="system"] .field input,:root[data-theme="system"] .field select,:root[data-theme="system"] .field textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
  :root[data-theme="system"] .vida-hero{background:#233c32}
  :root[data-theme="system"] .vida-hero p,:root[data-theme="system"] .vida-hero .eyebrow{color:#b9cfc1}
}
.life-dashboard .empty-state{padding:12px 4px}
.life-dashboard .empty-symbol{width:42px;height:42px;margin-bottom:9px}
.life-dashboard .empty-state h3{margin-bottom:4px}
.life-dashboard .empty-state .link-button{margin-top:3px}
.searchable-note[hidden]{display:none}
.note-search{max-width:360px}
.upcoming-event{border-radius:13px;background:var(--sage);padding:11px 13px;display:flex;gap:9px;align-items:center;margin-top:10px;font-size:12px;color:var(--ink)}
.upcoming-event svg{width:16px;height:16px;color:var(--green)}

/* VIDA 0.5 — mobile calendar, finance grouping and low-effort preferences */
:root[data-accent="terracotta"]{--green:#935442;--sage:#f3e9e2}
:root[data-accent="olive"]{--green:#526b38;--sage:#edf0e3}
:root[data-accent="slate"]{--green:#455d6b;--sage:#e9eef1}
:root[data-density="compact"] .life-dashboard{gap:11px}
:root[data-density="compact"] .life-dashboard .card{padding:16px}
:root[data-density="compact"] .row{padding:8px 0}
:root[data-density="compact"] .timeline-item{padding:8px 0;min-height:54px}
.category-quick{display:flex;flex-wrap:wrap;gap:7px;margin:11px 0 15px}
.category-chip{background:var(--sage);border:1px solid var(--line);color:var(--green);border-radius:99px;padding:6px 11px;min-height:37px;font-size:12px;font-weight:560}
.category-chip:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.finance-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.finance-summary-grid .category-row{margin:11px 0}
.finance-summary-grid progress{margin:5px 0 0}
.goal-mini{padding:10px 0;border-bottom:1px solid var(--line)}
.goal-mini:last-child{border:0}.goal-mini .split-line{flex-wrap:wrap}
.goal-mini strong{color:var(--ink)}.goal-mini .link-button{margin:5px 0 0}
.home-treat{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:17px 0 0;border:1px solid var(--line);padding:15px 20px;border-radius:18px;background:var(--paper)}
.home-treat>div{display:grid;gap:3px;min-width:0}
.home-treat strong{font-size:13px;overflow-wrap:anywhere}
.home-treat small{color:var(--muted);font-size:11px}
.home-treat-eyebrow{font-size:10px;letter-spacing:.1em;color:var(--muted)}
.week-nav{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px}
.week-nav strong{text-align:center;min-width:0;line-height:1.3;white-space:normal}
.week-nav button{min-height:44px;min-width:72px;display:inline-flex;align-items:center;justify-content:center;gap:4px}
.week-nav button svg{width:14px;min-width:14px}
.day-chip{position:relative;min-width:0}
.day-chip.off-day:not(.selected){background:#eef2e8;border-color:#cfdfd1}
.day-chip.holiday-day:not(.selected){background:#f5e5df;border-color:#eac7bb}
.day-chip.special-off-day:not(.selected){background:#e3eaf3;border-color:#bfd2e9}
.day-chip.selected{background:var(--green);border-color:var(--green);color:white}
.day-chip.selected strong{color:white}
.calendar-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px 15px;margin:0 0 16px;font-size:11px;color:var(--muted)}
.calendar-legend span{display:inline-flex;align-items:center;gap:5px}
.calendar-legend i{display:inline-block;width:11px;height:11px;border-radius:4px;border:1px solid var(--line)}
.calendar-legend .legend-weekend{background:#cddfcf}
.calendar-legend .legend-holiday{background:#ebc2b4}
.calendar-legend .legend-custom{background:#c1d3ea}
.calendar-legend .link-button{margin-left:auto;min-height:38px}
.month-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:15px;margin-bottom:19px}
.month-title{font-weight:650;font-size:13px;margin:0 0 12px;text-transform:capitalize}
.month-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center}
.calendar-header{font-size:11px;color:var(--muted);padding-bottom:6px}
.month-day{min-width:0;min-height:37px;border-radius:10px;border:1px solid transparent;font-size:12px}
.month-day.off-day:not(.selected){background:#e3eee2}
.month-day.holiday-day:not(.selected){background:#f2dcd4}
.month-day.special-off-day:not(.selected){background:#dce8fa}
.month-day.selected{background:var(--green);color:white}
.month-day.is-today{outline:2px solid var(--green);outline-offset:1px}
.day-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--sage);padding:10px 13px;border-radius:14px;margin:3px 0 14px;font-size:12px}
.day-status strong{display:flex;align-items:center;gap:5px}
.day-status svg{width:16px;height:16px}
.day-status .link-button{margin-left:auto;min-height:38px}
.timeline-item .icon-btn{flex:none}
.timeline-item .check{flex:none}
.timeline-time{width:72px;white-space:nowrap}
.field{min-width:0}
.field input[type="date"],.field input[type="time"],.field input[type="month"]{display:block;min-width:0;width:100%;max-width:100%;font-size:16px;box-sizing:border-box;appearance:auto;-webkit-appearance:auto}
.field input::-webkit-calendar-picker-indicator{margin-left:0;max-width:23px;min-width:20px;cursor:pointer}
.date-time-grid{margin:0 0 18px}
.agenda-priority[hidden],.agenda-note[hidden]{display:none!important}
.pref-toggle{min-height:38px}
@media(max-width:800px){.finance-summary-grid{grid-template-columns:1fr}}
@media(max-width:620px){
  .date-time-grid{grid-template-columns:minmax(0,1fr)}
  .date-time-grid .field{min-width:0;width:100%}
  .date-time-grid .field+.field{margin-top:3px}
  .finance-toolbar .actions{width:100%}
  .finance-toolbar .actions .btn{flex:1}
  .week-nav .link-button{min-width:66px;max-width:94px;padding:6px 4px;font-size:11px}
  .home-treat{padding:14px}
  .home-treat .link-button{font-size:11px;flex:none}
  .month-day{min-height:40px}
}
:root[data-theme="dark"] .day-chip.off-day:not(.selected),:root[data-theme="dark"] .month-day.off-day:not(.selected){background:#294036;color:var(--ink)}
:root[data-theme="dark"] .day-chip.holiday-day:not(.selected),:root[data-theme="dark"] .month-day.holiday-day:not(.selected){background:#573a30;color:var(--ink)}
:root[data-theme="dark"] .day-chip.special-off-day:not(.selected),:root[data-theme="dark"] .month-day.special-off-day:not(.selected){background:#31485c;color:var(--ink)}
:root[data-theme="dark"] .home-treat,:root[data-theme="dark"] .month-card{background:var(--paper)}
