:root{color-scheme:dark;--bg:#0b0e14;--panel:#151923;--panel2:#1c2230;--line:#292f3b;--text:#f2f4f7;--muted:#99a3b4;--faint:#778395;--accent:#b4f0c4;--accent-dark:#233d31;--amber:#f2c580;--red:#f4a29c;--radius:19px;--shadow:0 16px 50px #05070d60}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.42 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button,input,select,textarea{-webkit-tap-highlight-color:transparent}input,select,textarea{accent-color:var(--accent);background:#10141d;color:var(--text);border:1px solid #343b4c;border-radius:12px;padding:12px;min-width:0}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=number]{width:100%;font-variant-numeric:tabular-nums}input[type=time],input[type=date]{width:100%}input[type=range]{accent-color:var(--accent)}textarea{min-height:88px;width:100%;resize:vertical}select{width:100%}.app-shell{max-width:540px;min-height:100dvh;margin:auto;padding:0 18px calc(112px + env(safe-area-inset-bottom));position:relative}.topbar{position:sticky;top:0;z-index:12;padding:calc(16px + env(safe-area-inset-top)) 0 14px;background:linear-gradient(180deg,#0b0e14 87%,#0b0e14ee 95%,transparent);display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:11px;color:var(--accent);letter-spacing:.16em;font-weight:800}.screen-name{font-size:29px;letter-spacing:-.05em;line-height:1.12;font-weight:760;margin:5px 0 0}.icon-button{border:1px solid var(--line);background:var(--panel);color:var(--text);width:43px;height:43px;border-radius:13px;display:grid;place-items:center}.icon-button svg,.glyph svg,.nav svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.glyph{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center}.glyph.sm svg{width:16px;height:16px}.glyph.lg svg{width:24px;height:24px}.glyph.xl svg{width:29px;height:29px}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:13px}.eyebrow{font-size:11px;letter-spacing:.10em;color:var(--muted);font-weight:740;text-transform:uppercase}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:17px;margin-bottom:13px}.inset{background:var(--panel2);border-radius:14px;padding:13px}.card-title{font-size:17px;font-weight:760;letter-spacing:-.025em}.hstack{display:flex;align-items:center;gap:11px}.between{display:flex;justify-content:space-between;gap:10px;align-items:center}.stack{display:flex;flex-direction:column;gap:10px}.section{margin:24px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.section h2{font-size:16px;margin:0;letter-spacing:-.02em}.section p{margin:0}.btn{border:0;border-radius:12px;min-height:43px;padding:10px 14px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-align:center;background:var(--accent);color:#101a13}.btn.secondary{background:var(--panel2);color:var(--text);border:1px solid #363e4f}.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}.btn.danger{background:#492628;color:#ffd7d5}.btn.sm{padding:7px 10px;min-height:33px;font-size:12px}.btn.full{width:100%}.btn:active,.icon-button:active,.nav button:active,.tap:active{transform:scale(.985)}.pill{font-size:11px;font-weight:730;white-space:nowrap;background:var(--panel2);border:1px solid var(--line);border-radius:99px;padding:5px 9px;color:var(--muted)}.pill.accent{color:var(--accent);background:var(--accent-dark);border-color:#315342}.pill.warn{color:var(--amber);background:#423421;border-color:#6a5131}.pill.red{color:var(--red);background:#482c2b;border-color:#68403c}.statrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:14px 7px;text-align:center;min-width:0}.stat .value{font-size:20px;line-height:1.18;letter-spacing:-.055em;font-weight:790;font-variant-numeric:tabular-nums}.stat .label{font-size:10px;color:var(--muted);margin-top:5px}.hero{border-radius:23px;padding:21px 19px;border:1px solid #3c5b49;background:radial-gradient(ellipse at top right,#254b39 0%,#15241f 43%,#131b1b 85%);margin:10px 0 14px;overflow:hidden}.hero-big{font-size:43px;font-weight:820;letter-spacing:-.065em;line-height:1.05;margin:11px 0 7px}.progress{width:100%;height:7px;border-radius:20px;background:#353b47;overflow:hidden}.progress>span{display:block;background:var(--accent);height:100%;border-radius:20px;transition:width .2s}.event{display:flex;gap:12px;padding:11px 0;align-items:flex-start;border-bottom:1px solid #2a303d}.event:last-child{border-bottom:none}.event .time{width:56px;flex:0 0 56px;color:var(--muted);font-size:12px;padding-top:6px;font-variant-numeric:tabular-nums}.event .eventicon{height:34px;width:34px;flex:0 0 34px;border-radius:11px;background:var(--panel2);display:grid;place-items:center;color:var(--accent)}.event .content{flex:1;min-width:0}.event .name{font-weight:720;font-size:13.5px}.event .desc{font-size:12px;color:var(--muted);margin-top:4px}.event .mutebtn{margin-left:auto;align-self:center}.nav{position:fixed;z-index:15;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,540px);padding:11px 10px calc(10px + env(safe-area-inset-bottom));background:#121720f7;border-top:1px solid #303849;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;backdrop-filter:blur(20px)}.nav button{border:0;background:transparent;color:#8d98aa;border-radius:13px;min-height:56px;padding:7px 0 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;font-weight:600}.nav button.active{color:var(--accent);background:#21352b}.nav svg{width:20px;height:20px}.weekstrip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekstrip button{border:1px solid transparent;background:var(--panel);color:var(--muted);border-radius:13px;padding:8px 0 9px;min-width:0}.weekstrip button.active{background:var(--accent-dark);border-color:#4d7e5d;color:var(--text)}.weekstrip .dayword{font-size:10px}.weekstrip .daynum{font-size:18px;font-weight:730;margin-top:3px}.tabs{display:flex;gap:5px;background:#171d28;padding:5px;border-radius:14px}.tabs button{flex:1;border:0;background:transparent;color:var(--muted);border-radius:10px;min-height:36px;padding:7px 5px;font-size:12px;font-weight:720}.tabs button.active{background:#343c4c;color:var(--text)}.rowitem{width:100%;border:0;background:transparent;color:var(--text);text-align:left;display:flex;gap:11px;padding:13px 0;align-items:center;border-bottom:1px solid var(--line)}.rowitem:last-child{border-bottom:0}.rowitem .circle{height:35px;width:35px;background:var(--panel2);border-radius:11px;display:grid;place-items:center;color:var(--accent);flex:none}.rowitem .primary{font-size:14px;font-weight:710}.rowitem .secondary{font-size:12px;color:var(--muted);margin-top:3px}.rowitem .grow{flex:1;min-width:0}.rowitem .right{color:var(--muted);font-size:12px;text-align:right}.check{height:23px;width:23px;flex:none;border:1.5px solid #69758a;border-radius:8px;display:grid;place-items:center}.check.checked{color:#152019;background:var(--accent);border-color:var(--accent)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.titleline{font-size:23px;letter-spacing:-.04em;font-weight:770;margin:0}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;color:var(--muted);font-weight:690}.miniicon{background:var(--panel2);color:var(--accent);width:36px;height:36px;display:grid;place-items:center;border-radius:11px}.reminder{background:#242a30;border:1px solid #3f4950;padding:14px;border-radius:14px;display:flex;gap:12px;align-items:flex-start}.reminder .glyph{color:var(--amber)}.notice{font-size:12px;color:var(--muted);line-height:1.5}.tag{font-size:10px;color:var(--accent);letter-spacing:.07em;text-transform:uppercase;font-weight:780}.bigtime{font-size:44px;font-variant-numeric:tabular-nums;font-weight:800;letter-spacing:-.065em}.series{display:grid;grid-template-columns:38px 1fr 1fr 1fr;gap:5px;align-items:center;padding:7px 0}.series.head{font-size:10px;color:var(--muted);text-align:center}.series input{text-align:center;padding:10px 5px;font-size:13px}.series .completed{background:var(--accent-dark);border:1px solid #5e9571;color:var(--accent);border-radius:11px;min-height:40px;display:grid;place-items:center}.series .pending{background:var(--panel2);border:1px solid #4a5261;border-radius:11px;min-height:40px;color:var(--muted);display:grid;place-items:center}.training-head{position:sticky;top:85px;z-index:5}.footerline{margin:22px 0;text-align:center;font-size:11px;color:var(--faint)}.modalback{position:fixed;inset:0;background:#000a;display:flex;align-items:flex-end;justify-content:center;z-index:40;backdrop-filter:blur(3px)}.sheet{width:min(100%,540px);max-height:90dvh;overflow-y:auto;border-radius:24px 24px 0 0;border:1px solid #465061;border-bottom:0;background:#171c26;box-shadow:var(--shadow);padding:22px 18px calc(25px + env(safe-area-inset-bottom))}.sheet .handle{width:42px;height:5px;background:#525b6a;border-radius:10px;margin:0 auto 17px}.sheet h3{font-size:22px;letter-spacing:-.04em;margin:0 0 7px}.sheet p{color:var(--muted);font-size:13px;margin-top:0}.modal-actions{display:flex;gap:9px;margin-top:19px}.modal-actions .btn{flex:1}.close{height:34px;width:34px;border:1px solid var(--line);background:var(--panel2);border-radius:11px;color:var(--text);font-size:20px;display:grid;place-items:center}.level{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);gap:4px}.waterbtns{display:flex;gap:8px}.waterbtns .btn{flex:1}.chartbars{height:100px;display:flex;align-items:flex-end;justify-content:space-around;gap:8px;padding-top:10px}.chartbars .barcol{width:100%;height:100%;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:5px}.chartbars .bar{background:#648f73;min-height:4px;border-radius:7px 7px 3px 3px;width:70%;max-width:28px}.chartbars .barlabel{font-size:10px;color:var(--muted)}.separator{height:1px;background:var(--line);margin:15px 0}.counter{display:flex;gap:8px;align-items:center}.counter .btn{min-height:36px;padding:7px 12px}.counter strong{min-width:18px;text-align:center}.highlight{color:var(--accent)}.warning{color:var(--amber)}.dangertext{color:var(--red)}.empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}.skeleton{opacity:.65}.tap{cursor:pointer}a{color:var(--accent)}@media (min-width:650px){.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
#toast{position:fixed;z-index:99;bottom:calc(91px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);pointer-events:none;opacity:0;transition:opacity .15s,transform .15s;background:#d7fae0;color:#142319;padding:11px 17px;border-radius:13px;box-shadow:0 10px 30px #0007;font-size:13px;font-weight:720;text-align:center;max-width:min(85vw,400px)}#toast.visible{opacity:1;transform:translate(-50%,0)}
