
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#182e3e;background:#f3f5f5;font-synthesis:none;font-size:15px;--green:#597b65;--muted:#72808a;--line:#e4e9eb}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:46px;border:0;border-radius:12px;background:#182f42;color:white;padding:11px 17px;font-weight:600}button:disabled{opacity:.45;cursor:default}button.secondary{background:#edf1f2;color:#294152}button.ghost{background:transparent;color:#526b5d;padding:10px 6px}button.danger{background:#f8e8e5;color:#9c3d31}button:focus-visible,a:focus-visible{outline:3px solid #94b8a2;outline-offset:3px}#app{max-width:1020px;margin:auto;padding:calc(24px + env(safe-area-inset-top)) 24px calc(110px + env(safe-area-inset-bottom))}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.logo{font-size:21px;letter-spacing:-1px;font-weight:850}.logo i{display:inline-grid;place-items:center;background:#182e3e;color:#fff;width:28px;height:28px;border-radius:8px;margin-right:8px;font-style:normal}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted);text-transform:uppercase}.subtitle{font-size:9px;letter-spacing:1.6px;margin:5px 0 0 36px;color:var(--muted)}h1{font-size:28px;letter-spacing:-1px;margin:8px 0 10px}h2{font-size:18px;letter-spacing:-.3px;margin:0 0 12px}h3{font-size:15px;margin:0 0 7px}p{line-height:1.7;margin:8px 0}.muted,small{color:var(--muted);font-size:12px;line-height:1.7}.pill{font-size:11px;color:#597460;background:#e9f0e9;padding:7px 10px;border-radius:30px;white-space:nowrap}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;min-width:0}.hero{background:#182f42;color:#fff;border:0;position:relative;overflow:hidden}.hero .muted,.hero .eyebrow{color:#b7c5cf}.hero .pill{background:#344a58;color:#d6e3d9}.big{font-size:44px;font-weight:650;letter-spacing:-2px;line-height:1.2;margin:20px 0 6px}.big small{font-size:13px;font-weight:400;letter-spacing:0}.progress{height:6px;background:#e9eef0;border-radius:9px;overflow:hidden;margin:18px 0 12px}.progress span{display:block;height:100%;background:#839d86;border-radius:9px}.hero .progress{background:#3a4e5e}.hero .progress span{background:#b2c4b0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.label-row{margin:24px 0 12px}.mode-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mode{background:#f6f8f8;color:#687881;border:1px solid #e6ebed;text-align:left;padding:13px 10px;font-weight:400;min-width:0}.mode strong{display:block;font-size:14px;margin-bottom:5px}.mode small{font-size:10px}.mode.active{background:#eaf0eb;border-color:#8aa58e;color:#365d43}.mode.active small{color:#597b65}.mode-desc{min-height:28px;margin-top:10px}.moods{display:flex;gap:8px}.mood{flex:1;background:#f5f7f7;color:#6b7b84;border:1px solid transparent;font-size:13px}.mood.active{background:#eaf0eb;border-color:#8aa58e;color:#365d43}label{display:block;font-size:12px;color:#647681;margin:15px 0 7px}input,textarea,select{width:100%;max-width:100%;border:1px solid #dfe6e8;background:#fafbfb;color:#182e3e;border-radius:10px;padding:12px;min-height:46px}input[type=checkbox]{width:22px;min-height:22px;accent-color:#597b65}textarea{resize:vertical;min-height:76px}.primary-wide{width:100%;margin-top:18px}.fine{font-size:11px;text-align:center;color:#7c8c94;margin-top:10px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:20px 12px;margin:22px 0}.stat strong{font-size:24px;font-weight:650;display:block;margin-top:5px;letter-spacing:-.5px}.stat small{font-size:10px}.link-button{font-size:12px}.nav{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:center;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line)}.nav button{flex:1;max-width:150px;background:transparent;border-radius:10px;color:#84919a;padding:7px 2px;min-width:0;min-height:56px;font-weight:500;font-size:10px}.nav button svg{display:block;margin:0 auto 4px;width:20px;height:20px}.nav button.active{color:#203b4d;background:#edf2ef}.nav span{display:block;font-size:8px;letter-spacing:.8px;margin-top:2px}.section-head{margin-bottom:24px}.section-head p{color:var(--muted);font-size:13px}.milestone{display:flex;gap:17px;padding:19px 0;border-bottom:1px solid var(--line)}.milestone:last-child{border-bottom:0}.day-tag{width:49px;height:49px;flex-shrink:0;border-radius:14px;display:grid;place-content:center;text-align:center;background:#edf1f2;font-weight:650}.day-tag small{font-size:8px;letter-spacing:1px}.day-tag.done{background:#e5eee6;color:#557358}.milestone .content{flex:1;min-width:0}.reward{position:relative}.reward-number{font-size:11px;letter-spacing:1.6px;color:#7c8b94;margin-bottom:18px}.reward .pill{white-space:normal}.reward-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.reward-actions button{font-size:12px;flex:1}.divider{height:1px;background:var(--line);margin:18px 0}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center;margin-top:15px}.calendar span{min-height:30px;display:grid;place-items:center;font-size:11px;border-radius:8px;color:#7e8b92}.calendar .hit{background:#e6eee7;color:#4f7257;font-weight:700}.calendar .today{outline:1px solid #819b87}.calendar .week{font-size:9px;min-height:20px}.entry{padding:14px 0;border-bottom:1px solid var(--line)}.entry:last-child{border:0}.entry p{overflow-wrap:anywhere;font-size:13px}.chart{width:100%;height:145px;display:block;overflow:visible}.chart text{font-size:10px;fill:#81909a}.chart polyline{fill:none;stroke:#65866d;stroke-width:2}.chart circle{fill:#65866d}.empty{padding:24px 8px;text-align:center;color:#8a969d;font-size:12px;line-height:1.8}.timeline{border-left:2px solid #d7e3d9;padding-left:17px;margin:12px 4px}.checks label{display:flex;align-items:center;gap:11px;line-height:1.6;font-size:13px}.checks input{flex-shrink:0}details{padding:14px 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;min-height:34px;font-size:13px;font-weight:600;line-height:1.7}.wrap{overflow-wrap:anywhere}dialog{max-width:440px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;border:0;border-radius:20px;padding:25px;color:#182e3e}dialog::backdrop{background:rgba(18,35,48,.5)}dialog h2{padding-right:30px}.close{position:absolute;top:10px;right:10px;background:transparent;color:#647681;padding:10px}.form-actions{display:flex;gap:10px;margin-top:22px}.form-actions button{flex:1}#toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:30;max-width:calc(100% - 32px);width:max-content;padding:13px 18px;border-radius:12px;background:#203b4d;color:#fff;font-size:13px;box-shadow:0 6px 24px #152d3c25;display:none}.event{border-color:#b7cbb9;background:#f3f7f2}.report-line{padding:10px 0;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);font-size:13px}.storage-alert{background:#fbeae5;padding:16px;border-radius:12px;margin-bottom:16px;font-size:13px;line-height:1.7}.money{font-variant-numeric:tabular-nums}.privacy{display:flex;gap:7px;align-items:center;font-size:11px;color:#7c8b94;margin:24px 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{font-size:12px}.file-input{display:none}footer{font-size:10px;letter-spacing:1.4px;color:#a1acb2;text-align:center;margin:30px 0 0} @media(min-width:720px){#app{padding-top:34px}.home-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;align-items:start}.home-layout>.stack{gap:20px}.page-narrow{max-width:720px;margin:auto}.card{padding:26px}.nav{left:50%;transform:translateX(-50%);max-width:1000px;border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0}.reward-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}} @media(max-width:390px){#app{padding-left:18px;padding-right:18px}.card{padding:19px}.mode{padding:12px 8px}.big{font-size:40px}h1{font-size:26px}.pill{font-size:10px}.grid2{gap:10px}}
:root{color-scheme:light}
.stat{min-width:0}.stat strong,.hero .big{overflow-wrap:anywhere}
@media(max-width:719px){.home-layout{display:flex;flex-direction:column;gap:16px}.home-layout>.stack{display:contents}.home-layout .card{order:3}.home-layout .hero{order:2}#today-card{order:1}.home-layout .privacy{order:4}}
