
:root{color-scheme:dark;--bg:#111713;--panel:#1a211c;--line:#303a31;--muted:#9ba89a;--text:#f2f5eb;--green:#cfef89;--peach:#f3bd91;--red:#f2a39b;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:transparent;color:inherit;border-radius:12px;padding:11px 16px}button:hover{border-color:var(--green)}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}a{color:var(--green)}.shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:240px 1fr;min-height:100vh}aside{padding:37px 24px;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:33px;font-weight:750;letter-spacing:-2px;color:var(--text);text-decoration:none}.brandmark{background:var(--green);color:var(--bg);border-radius:13px;width:38px;height:40px;text-align:center;font-size:36px}.branddot{color:var(--green);margin-left:-8px}.aside-caption{font-size:9px;letter-spacing:2px;color:var(--muted);margin:24px 0 44px}nav{display:grid;gap:10px}nav button{border:0;text-align:left;display:flex;align-items:center;gap:14px;color:var(--muted);padding:15px}nav button.active{background:#2b3524;color:var(--green)}.aside-bottom{display:flex;gap:12px;align-items:center;margin-top:auto;font-size:13px}.avatar{background:#313d2c;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--green)}small{display:block;color:var(--muted);font-size:11px;margin-top:5px}main{padding:36px 48px 20px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:36px;font-size:10px;letter-spacing:1.5px;color:var(--muted)}.status{border:1px solid var(--line);border-radius:20px;padding:8px 11px;font-size:10px;letter-spacing:.3px}.status:before{content:'●';color:var(--green);margin-right:7px}.title-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}h1{font-size:36px;letter-spacing:-1.4px;margin:0 0 9px;font-weight:550}p{color:var(--muted);line-height:1.55;margin:0}h2{font-size:20px;letter-spacing:-.5px;margin:0}h3{font-size:16px;margin:0}.hero{background:var(--green);border-radius:22px;padding:28px 30px;color:#192214;display:flex;justify-content:space-between;gap:20px;margin-bottom:28px;overflow:hidden}.hero h2{font-size:27px;max-width:420px;line-height:1.2;margin:10px 0}.hero p{color:#4c5b36;font-size:13px;max-width:420px}.hero small{color:#52653d;letter-spacing:1px;font-size:9px}.hero-art{font-size:80px;line-height:1;transform:rotate(-12deg);align-self:center;margin-right:10px}.cols{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:24px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px;gap:10px}.section-head span,.muted{font-size:12px;color:var(--muted)}.habits{display:grid;grid-template-columns:1fr 1fr;gap:12px}.habit{padding:19px;text-align:left;background:var(--panel);min-height:153px;border:1px solid var(--line);border-radius:17px;position:relative}.habit-top{display:flex;justify-content:space-between;margin-bottom:15px}.icon{font-size:24px;color:var(--peach)}.check{width:22px;height:22px;border:1px solid #53604e;border-radius:50%;display:grid;place-items:center;font-size:12px}.habit.done .check{background:var(--green);color:#1c2516;border:0}.habit.done{border-color:#50643c}.habit p{font-size:11px;margin-top:6px;line-height:1.5}.habit .value{font-size:11px;color:var(--green);margin-top:10px;min-height:13px}.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:18px}.pill{font-size:10px;padding:5px 9px;border-radius:20px;background:#303d26;color:var(--green);white-space:nowrap}.pill.warn{background:#423428;color:var(--peach)}.pill.red{background:#422e2b;color:var(--red)}.empty{padding:26px 6px;text-align:center}.empty .empty-icon{font-size:35px;color:#74866a;margin-bottom:12px}.empty p{font-size:12px;margin:10px 0 18px}.primary{background:var(--green);color:#1c2516;border-color:transparent;font-weight:600}.secondary{background:#293227}.text-button{border:0;padding:6px 0;color:var(--green);font-size:12px}.subscription{border-top:1px solid var(--line);padding:16px 0}.subscription:first-of-type{border-top:0}.sub-line{display:flex;justify-content:space-between;gap:10px;align-items:center}.sub-name{display:flex;gap:10px;align-items:center}.sub-icon{width:37px;height:37px;background:#35432b;border-radius:11px;display:grid;place-items:center;font-weight:650;color:var(--green)}.subscription p{font-size:12px;margin-top:8px}.sub-actions{display:flex;gap:8px;margin-top:13px}.sub-actions button{font-size:12px;padding:8px 12px}.stat{display:flex;justify-content:space-between;font-size:12px;margin:16px 0 8px}.stat span{color:var(--muted)}progress{width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;background:#343e32;display:block}progress::-webkit-progress-bar{background:#343e32}progress::-webkit-progress-value{background:var(--green)}.task{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.task button{padding:4px 7px;border-radius:8px}.task span{flex:1;font-size:13px;overflow-wrap:anywhere}.task.completed span{text-decoration:line-through;color:var(--muted)}.task .delete{border:0;color:var(--muted)}.task-form{display:flex;gap:8px;margin-top:16px}.task-form input{min-width:0;flex:1}.summary{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}.summary .card{flex:1;min-width:140px;margin:0}.big-number{font-size:28px;margin:12px 0 5px;letter-spacing:-1px}.hint{font-size:12px;color:var(--muted);line-height:1.6}.subscriptions-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}.subscriptions-list .card{margin:0}.subscriptions-list .subscription{border:0;padding:0}footer{font-size:11px;color:#73816e;margin-top:36px;padding-bottom:16px}input,select,textarea{background:#111812;color:var(--text);border:1px solid #43503e;border-radius:10px;padding:12px;outline:0;width:100%;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--green)}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}input[type=date],input[type=month]{width:auto;color-scheme:dark}label{display:block;font-size:12px;color:var(--muted);margin:16px 0 7px}label.inline{display:flex;align-items:center;gap:10px;color:var(--text)}textarea{resize:vertical;min-height:80px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}dialog{background:#1a221c;color:var(--text);border:1px solid #46513e;border-radius:22px;padding:26px;width:480px;max-width:calc(100vw - 24px);max-height:90dvh}dialog::backdrop{background:#050904bf;backdrop-filter:blur(5px)}.modal-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-top button{border:0;font-size:21px;padding:0 5px}.modal-foot{display:flex;gap:10px;margin-top:24px}.modal-foot .primary{flex:1}.error{color:var(--red);font-size:12px;margin-top:12px}.danger{color:var(--red)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--green);color:#18210f;padding:13px 22px;border-radius:14px;display:none;z-index:5;max-width:90vw;font-size:13px;box-shadow:0 10px 60px #0008}#toast.visible{display:block}.history-scroll{overflow:auto}.month-grid{min-width:750px;display:grid;grid-template-columns:110px repeat(31,minmax(20px,1fr));gap:4px;align-items:center}.month-grid .head{font-size:9px;color:var(--muted);text-align:center;padding-bottom:8px}.month-grid .row-label{font-size:12px;position:sticky;left:0;background:var(--panel);z-index:1;padding:10px 0}.cell{padding:0;width:100%;height:25px;border-radius:5px;background:#242e23;font-size:10px;border-color:transparent}.cell.good{background:#9cbb65;color:#17200f}.cell.no{background:#5c3932;color:#f1c4b9}.cell.partial{background:#6c6340;color:#f1deb5}.cell.future{opacity:.2}.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:11px;color:var(--muted)}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.settings-row p{font-size:12px;margin-top:5px}.loading{padding:80px 0;color:var(--muted)}.mobile-brand{display:none}.notes{white-space:pre-wrap;overflow-wrap:anywhere} .week-note{margin-top:18px;font-size:11px}
@media(min-width:1400px){main{padding:40px 65px}.habits{gap:16px}.habit{min-height:165px}}
@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}aside{padding:30px 18px}main{padding:30px 25px}.cols{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.side-column .card{margin:0}.side-column .card:last-child{grid-column:1/-1}.hero-art{font-size:65px}}
@media(max-width:650px){.shell{display:block}aside{height:auto;position:static;border:0;padding:24px 20px 0}.brand{font-size:27px}.brandmark{width:32px;height:34px;font-size:30px}.aside-caption,.aside-bottom{display:none}nav{position:fixed;bottom:0;left:0;right:0;z-index:3;background:#182019f5;backdrop-filter:blur(15px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:7px 8px max(10px,env(safe-area-inset-bottom))}nav button{padding:8px 2px;display:flex;flex-direction:column;gap:4px;font-size:18px;border-radius:10px}nav button span{font-size:10px}main{padding:20px 18px 90px}header{margin-bottom:26px;font-size:8px;letter-spacing:1px}.status{font-size:9px}h1{font-size:29px}.title-row{align-items:flex-start;flex-wrap:wrap;margin-bottom:22px}.title-row p{font-size:12px}.hero{padding:23px;margin-bottom:26px;gap:10px}.hero h2{font-size:24px}.hero p{font-size:11px}.hero-art{font-size:50px;margin:0}.habits{gap:10px}.habit{padding:15px;min-height:155px}.habit h3{font-size:15px}.side-column{display:block}.side-column .card{margin-bottom:16px}.cols{gap:26px}.subscriptions-list{grid-template-columns:1fr}.summary .card{padding:17px}.big-number{font-size:24px}.card{padding:19px}#toast{bottom:90px}.form-grid{gap:10px}input[type=date]{max-width:160px;font-size:12px}dialog{padding:22px}.settings-row{gap:10px}}

#tasks-card{margin-top:24px}

/* FLOW: quieter typography and compact surfaces. */
:root{--bg:#151617;--panel:#1c1d1f;--line:#343638;--muted:#a0a3a6;--text:#f1f0ec;--green:#d5dfb9;--peach:#b8bbaf}
.brand{font-size:30px;font-weight:650;letter-spacing:-1px;gap:9px}.branddot{font-size:30px;font-weight:350;color:var(--muted);margin:0}.aside-caption{letter-spacing:1.4px}nav button.active{background:#2c3029}.card,.habit{border-radius:10px}.habit{min-height:145px}.habit:hover{background:#232527}.habit.done{border-color:#778367}.icon{font-size:20px}.primary{border-radius:9px}.status:before{color:var(--muted)}h1{font-size:32px;font-weight:500;letter-spacing:-.8px}.title-row{margin-bottom:34px}.empty-icon{display:none}.empty{padding:16px 0}.avatar{background:#30322e}.sub-icon{background:#30352a}.check{border-color:#62665f}footer{color:var(--muted);opacity:.65}.cell{background:#2c2e2b}
@media(max-width:650px){nav{background:#1b1d1ef5}.brand{font-size:28px}.habit{min-height:145px}.title-row{margin-bottom:28px}h1{font-size:29px}}
