:root{--bg:#f5f4ee;--card:#fffefa;--ink:#263c33;--muted:#7c847c;--green:#225540;--greenSoft:#e9eee3;--sep:#e3e5dc;--purple:#e9e3f1;--purpleInk:#71658a;--fill:#eceee6;--shadow:rgba(29,55,40,.06)}
html[data-theme=dark]{--bg:#101a16;--card:#19261f;--ink:#edf0e8;--muted:#a1afa3;--green:#95c8a9;--greenSoft:#293e30;--sep:#304337;--purple:#342e42;--purpleInk:#c6b2e3;--fill:#29372f}
body{line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b2a5c6;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--green);outline-offset:2px}[hidden]{display:none!important}svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:var(--green)}
.sidebar{position:fixed;inset:0 auto 0 0;width:236px;padding:36px 22px;background:var(--card);border-right:1px solid var(--sep);display:flex;flex-direction:column}.brand,.mobile-brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink);font-weight:650;font-size:22px}.brand small{display:block;font-size:8px;letter-spacing:.14em;font-weight:550;margin-top:5px;color:var(--muted)}.brand-mark{display:flex;align-items:center;justify-content:center;width:43px;height:43px;background:#225540;color:#f6f3de;border-radius:13px;font-family:Georgia,serif;font-size:33px;line-height:1;flex-shrink:0}.brand-mark span{color:#b2c6a0}.sidebar nav{display:grid;gap:8px;margin-top:48px}.sidebar nav button{display:flex;align-items:center;gap:15px;padding:14px 16px;border:0;background:none;border-radius:12px;color:var(--muted);font-size:14px;text-align:left}.sidebar nav button.active{background:var(--greenSoft);color:var(--green);font-weight:650}.sidebar-foot{margin-top:auto;color:var(--ink);font-size:12px}.sidebar-foot p{font-size:11px;color:var(--muted);margin-top:9px}.privacy-dot{display:inline-block;width:6px;height:6px;background:#739c74;border-radius:50%;margin-right:5px}.workspace{margin-left:236px}.app-header{height:89px;padding:0 42px;border-bottom:1px solid var(--sep);display:flex;align-items:center;justify-content:space-between}.desktop-context{font-size:10px;letter-spacing:.16em;color:var(--muted)}.settings-button{display:grid;place-items:center;width:42px;height:42px;background:var(--card);color:var(--ink);border:1px solid var(--sep);border-radius:13px}.mobile-brand{display:none}.wrap{max-width:1050px;padding:38px 42px 25px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:.19em;text-transform:uppercase;margin-bottom:11px;color:var(--muted)}.bigTitle{font-size:32px;font-weight:580;letter-spacing:-.045em;margin:0 0 10px;line-height:1.15}.page-subtitle{font-size:13px;color:var(--muted)}.gear{width:auto;min-height:42px;font-size:12px;padding:10px 13px;white-space:nowrap;border:1px solid var(--sep);border-radius:11px;color:var(--green)}.gear.on{background:var(--greenSoft);color:var(--green)!important}.date-nav{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}.date-nav label{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.date-nav input{width:174px;font-size:14px;padding:10px 12px;border-radius:11px}.today{font-size:10px;letter-spacing:.08em;margin:0 0 12px 2px}.hero,.plHero{border-radius:23px;background:#244f3d;color:#f9f8ef;text-align:left;padding:30px 32px;position:relative;overflow:hidden}.hero .eyebrow{color:#b0c3b0}.hero .big{color:#f4f0da;font-size:68px;font-weight:500;letter-spacing:-.06em}.hero .big span{font-size:28px;color:#bacab8;letter-spacing:-.03em}.heroLabel{color:#bccabc;font-size:13px;margin-top:8px}.heroNote{font-size:17px;margin-top:18px}.heroSub{color:#c0cfc2;font-size:11px;border-color:#ffffff25;padding-top:18px;margin-top:24px}.hero .btnMain{margin-top:20px;background:#e9eddd;color:#244f3d;max-width:230px}.week{gap:9px;margin:18px 0}.day{border-radius:13px;border:1px solid var(--sep);min-height:64px;padding:10px 0}.day b{font-size:11px}.day.sel{background:var(--greenSoft);box-shadow:inset 0 0 0 1px var(--green)}.habits{border:1px solid var(--sep);border-radius:20px;margin-top:0}.habit{padding:19px 21px;min-height:71px;font-size:15px}.box{border-radius:9px;width:26px;height:26px}.habit.on .box,.sLine.on .box{background:#2f654b}.sTag{font-size:11px;background:var(--fill);padding:5px 9px;border-radius:7px}.habit .name{font-weight:530}.barWrap{border:1px solid var(--sep);border-radius:20px;padding:23px;margin-top:20px}.barTop{font-size:12px}.bar{height:7px}.stats{gap:13px;margin-top:18px}.stat{border:1px solid var(--sep);border-radius:18px;padding:22px}.stat:nth-child(2){background:var(--purple);border-color:transparent}.stat .v{font-size:29px;font-weight:500}.stat .k{font-size:11px;margin-top:9px}.sectionTitle{font-size:14px;font-weight:600;color:var(--ink);margin:28px 0 12px;letter-spacing:-.02em}.note{font-size:12px;line-height:1.65;margin:13px 3px;color:var(--muted)}.editRow{padding:10px 12px 0}.add{font-size:13px;border:1px solid var(--sep);margin-top:12px}.habits>.add{border:0;border-top:1px solid var(--sep);border-radius:0}.btnMain{background:#28563f;color:#fffefa!important;font-size:14px;padding:15px;border-radius:12px}.btnGhost{font-size:12px;border:1px solid var(--sep);min-height:40px}.info-card{padding:17px 20px;border-radius:14px;background:var(--purple);color:var(--ink);font-size:12px;line-height:1.7;margin-top:14px}.plHero>.v{color:#f4f0da!important;font-size:43px;font-weight:500}.plHero>.k{color:#b8cdbb}.plHero .stats{margin-top:26px!important}.plHero .stat{background:#ffffff10!important;border:1px solid #ffffff20;color:#fff}.plHero .stat .v{font-size:24px}.plHero .stat .k{color:#bbcfbf}.priceGrid{gap:12px}.pCell{border:1px solid var(--sep);border-radius:16px;padding:18px}.pCell .v{font-size:23px;font-weight:500}.pCell .k{font-size:12px}.pCell .s{margin-top:6px}.investment-form{background:var(--card);border:1px solid var(--sep);border-radius:18px;margin:20px 0}.investment-form summary{padding:18px 21px;color:var(--green);font-weight:600;font-size:14px;cursor:pointer;list-style:none}.investment-body{padding:4px 22px 18px}.field-label{display:block;font-size:12px;color:var(--muted);margin-bottom:14px}.field-label input{margin-top:7px}.formRow{margin-bottom:12px}.formRow>*{min-width:0}.curSeg{flex-basis:110px}.curSeg button{min-height:43px;font-size:14px}.entry{border:1px solid var(--sep);padding:21px;border-radius:18px;margin-bottom:12px}.eTop{flex-wrap:wrap;gap:8px}.eTop .t{font-size:12px;min-width:150px}.pill{font-size:10px;background:var(--greenSoft);color:var(--green)}.x,.del{min-width:40px;min-height:40px}.eGrid .val{font-size:18px;font-weight:550}.eGrid .lbl{margin-top:5px}.bigTot,.summary{border:1px solid var(--sep);border-radius:18px;padding:22px}.cumTop,.totRow{gap:14px}.cumTop span,.totRow span{overflow-wrap:anywhere}.cumSub{gap:12px}.cumSub span{flex:1}.summary{line-height:1.9;font-size:13px}.navRow{background:var(--greenSoft);padding:9px;border-radius:14px;gap:12px}.navRow span{font-size:14px}.cal{gap:8px;margin:18px 0}.cell{border:0;font:inherit;font-size:13px;border-radius:12px;min-height:42px;max-height:80px}.cell:disabled{opacity:.35}.hrow{background:var(--card);border:1px solid var(--sep);padding:18px;border-radius:15px}.hrowTop{font-size:13px;gap:12px}.hrowTop span:first-child{overflow-wrap:anywhere}.mini{height:5px}.sBlock,.sEditCard{border:1px solid var(--sep);border-radius:20px;margin-top:18px}.sHead{padding:20px;font-size:17px}.sLine{padding:17px 20px;font-size:14px;line-height:1.65}.sLine .name{min-width:0;overflow-wrap:anywhere}.sLink{font-size:11px;padding:4px 9px;white-space:normal}.sEditCard{padding:21px}.sQuote{background:var(--greenSoft)}.sHd{padding:15px 20px}.theme-choices{display:flex;gap:12px}.theme-choices button{padding:11px 23px;border:1px solid var(--sep);border-radius:12px;background:var(--card);color:var(--ink)}footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;padding:35px 2px 8px}footer small{white-space:nowrap;font-size:10px}.bottom-nav{display:none}dialog{position:fixed;margin:auto;width:calc(100% - 28px);max-width:510px;max-height:85dvh;padding:27px;background:var(--card);color:var(--ink);border:1px solid var(--sep);border-radius:24px;overflow:auto}dialog::backdrop{background:#14271daa;backdrop-filter:blur(5px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.modal-head h2{font-size:22px;font-weight:550}.modal-head button{border:0;background:var(--fill);color:var(--ink);border-radius:10px;width:40px;height:40px}dialog h3{font-size:15px;font-weight:600;margin:25px 0 12px}dialog p{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}dialog small{color:var(--muted)}.backup{flex-direction:column;border:0;margin:0;padding:0}.backup button{background:var(--greenSoft);color:var(--green)}#notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);width:max-content;background:#273d30;color:#f7f7ea;padding:15px 20px;border-radius:13px;z-index:10002;font-size:12px;box-shadow:0 8px 25px #0002}#notice button{border:0;background:#ffffff20;color:#fff;margin-left:15px;border-radius:7px;padding:5px 9px}.empty-state{padding:30px;border-radius:22px;background:var(--card)}
@media(min-width:1100px){body[data-page=today] #view{display:grid;grid-template-columns:1.12fr 1fr;gap:0 24px;align-items:start}body[data-page=today] .date-nav,body[data-page=today] .today{grid-column:1/-1}body[data-page=today] .hero{grid-column:1;grid-row:3/5;min-height:278px}body[data-page=today] .week{grid-column:2;grid-row:3;margin-top:0}body[data-page=today] .habits{grid-column:2;grid-row:4/7}body[data-page=today] .barWrap,body[data-page=today] #view>.stats{grid-column:1}body[data-page=today] .hero~.sectionTitle{grid-column:1/-1}body[data-page=today] #view:has(.editRow){display:block}.priceGrid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:800px){.sidebar{display:none}.workspace{margin-left:0}.app-header{height:77px;padding:0 21px}.mobile-brand{display:flex;font-size:20px;gap:10px}.brand-mark{width:34px;height:34px;font-size:28px;border-radius:10px}.desktop-context{display:none}.wrap{max-width:600px;padding:27px 20px 102px}.page-head{display:block;margin-bottom:25px}.bigTitle{font-size:29px;max-width:330px}.page-subtitle{font-size:12px;line-height:1.65}.gear{margin-top:16px;min-height:38px;padding:8px 12px;font-size:11px}.hero,.plHero{padding:27px 25px}.hero .big{font-size:61px}.heroNote{font-size:16px}.heroSub{line-height:1.7}.date-nav{gap:10px}.date-nav label{display:block;font-size:10px}.date-nav input{display:block;margin-top:5px;width:174px;min-height:42px}.week{gap:5px}.day b{font-size:9px}.day{min-height:59px}.habit{padding:17px 16px;font-size:14px}.habit .name{overflow-wrap:anywhere}.stats{gap:10px}.stat{padding:19px 17px}.stat .v{font-size:27px}.barWrap{padding:20px}.barTop{font-size:11px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--card);border-top:1px solid var(--sep);padding:8px 16px calc(8px + env(safe-area-inset-bottom));display:block;z-index:100}.bottom-nav .tabs{background:transparent;padding:0;gap:6px;max-width:600px;margin:auto}.bottom-nav .tab{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:var(--muted);padding:8px 4px;border-radius:13px}.bottom-nav .tab.on{color:var(--green);background:var(--greenSoft);box-shadow:none}.bottom-nav svg{width:21px;height:21px}.investment-body{padding:4px 16px 17px}.pCell{padding:16px}.pCell .v{font-size:20px}.eGrid{gap:10px;flex-wrap:wrap}.eGrid .val{font-size:16px}.entry{padding:17px}.curSeg{flex-basis:100px}.formRow{gap:7px}.formRow input{padding:12px;font-size:16px}.cumSub{font-size:11px;flex-wrap:wrap}.cal{gap:5px}.cell{min-height:36px;font-size:11px;border-radius:9px}.hrowTop{font-size:12px}.hrowTop span:last-child{font-size:11px;white-space:nowrap}footer{font-size:9px;flex-direction:column;gap:6px}#notice{bottom:98px}.theme-choices{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}#confetti{display:none!important}}
