:root{color:#17231d;font-synthesis:none;--green:#247454;--mint:#dff3e9;--card:#fff;--muted:#6e7b74;--line:#e3e9e5;--danger:#bd3e45;background:#f4f7f5;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--tg-theme-secondary-bg-color,#f4f7f5);min-width:280px;color:var(--tg-theme-text-color,#17231d);margin:0}button,input,select,textarea{font:inherit}.app{max-width:720px;min-height:100dvh;padding:env(safe-area-inset-top) 18px calc(92px + env(safe-area-inset-bottom));margin:auto}header{justify-content:space-between;align-items:center;padding:25px 2px 18px;display:flex}h1{margin:4px 0;font-size:25px}h2{margin:0;font-size:23px}h3{margin:0 0 5px}.eyebrow{letter-spacing:1.7px;color:var(--green);margin:0;font-size:11px;font-weight:800}.avatar,.round{background:var(--mint);color:var(--green);border:0;border-radius:50%;width:44px;height:44px;font-size:18px;font-weight:800}.hero{color:#fff;background:linear-gradient(140deg,#1e684b,#318263);border-radius:25px;justify-content:space-between;align-items:center;padding:22px;display:flex;box-shadow:0 12px 28px #246a4c2c}.hero p{color:#d8eee4;margin:0 0 10px}.hero h2{margin-bottom:5px;font-size:22px}.heroTime{background:#ffffff14;border:1px solid #ffffff70;border-radius:22px;place-items:center;width:72px;height:72px;font-size:20px;font-weight:800;display:grid}.sectionTitle,.pageTitle{justify-content:space-between;align-items:end;margin:27px 2px 13px;display:flex}.sectionTitle span{color:var(--muted);font-size:13px}.doseList,.day{background:var(--tg-theme-bg-color,var(--card));border-radius:21px;padding:4px 16px}.dose{border-bottom:1px solid var(--line);align-items:center;gap:14px;padding:14px 0;display:flex}.dose:last-child{border:0}.time{color:var(--green);width:45px;font-weight:800}.grow{flex:1;min-width:0}.grow strong,.grow small{display:block}.grow small,.medCard p,.medCard small{color:var(--muted);margin:3px 0;font-size:13px}.status{color:#65736b;white-space:nowrap;background:#eef2ef;border-radius:20px;padding:6px 9px;font-size:11px}.status.taken{color:#176943;background:#dff3e9}.status.skipped{color:#a75a15;background:#fff0df}.status.active{color:#176943;background:#dff3e9}.quick{grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0;display:grid}.quick button{background:var(--tg-theme-bg-color,var(--card));text-align:left;min-height:102px;color:inherit;border:0;border-radius:18px;padding:13px}.quick b{background:var(--mint);width:34px;height:34px;color:var(--green);border-radius:12px;place-items:center;margin-bottom:10px;font-size:20px;display:grid}.quick span{font-size:12px;font-weight:700}.medCard{background:var(--tg-theme-bg-color,var(--card));border:0;border-radius:19px;align-items:center;gap:13px;margin-bottom:10px;padding:16px;display:flex}.pill{color:#2f8061;background:#e6f3ed;border-radius:14px;place-items:center;width:42px;height:42px;display:grid}.detailed{cursor:pointer}.empty{text-align:center;color:var(--muted);background:var(--tg-theme-bg-color,var(--card));border-radius:20px;padding:27px}.empty div,.emptyIcon{color:var(--green);font-size:30px}nav{z-index:10;width:min(720px,100%);padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--tg-theme-bg-color,#fff) 94%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid var(--line);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}nav button{color:#88938d;background:0 0;border:0;place-items:center;gap:2px;padding:5px;font-size:10px;display:grid}nav b{font-size:20px}nav .active{color:var(--green)}.backdrop{z-index:30;background:#0d21176b;justify-content:center;align-items:end;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modal{background:var(--tg-theme-bg-color,#fff);color:var(--tg-theme-text-color,#17231d);width:min(720px,100%);max-height:94dvh;padding:21px 20px calc(25px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;overflow:auto;box-shadow:0 -15px 40px #0002}.modalHead{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.modalHead button{background:#edf2ef;border:0;border-radius:50%;width:38px;height:38px;font-size:23px}label{margin:14px 0 7px;font-size:13px;font-weight:700;display:block}input,select,textarea{border:1px solid var(--line);background:var(--tg-theme-secondary-bg-color,#f6f8f7);width:100%;color:inherit;border-radius:14px;outline:none;min-height:48px;padding:13px 14px}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #2474541c}.split{grid-template-columns:1fr 1fr;gap:10px;display:grid}.timeRow{grid-template-columns:1fr 1fr auto;gap:8px;margin:7px 0;display:grid}.timeRow button{color:var(--danger);background:#f4e7e7;border:0;border-radius:12px}.link,.advanced{color:var(--green);background:0 0;border:0;padding:10px 0;font-weight:750}.advanced{border-top:1px solid var(--line);justify-content:space-between;width:100%;margin-top:8px;display:flex}.advancedBox{background:#f3f7f5;border-radius:18px;padding:3px 14px 13px}.chips{flex-wrap:wrap;gap:5px;display:flex}.chips button{border:1px solid var(--line);background:#fff;border-radius:50%;width:38px;height:38px}.chips .on{background:var(--green);color:#fff}.stage{grid-template-columns:1fr 1fr .7fr;gap:5px;margin:7px 0;display:grid}.stage input{padding:8px;font-size:11px}.submit,.modal form>button[type=submit],.actions button,.settings>button,.sticky button,button:not(.link):not(.advanced){cursor:pointer}.submit,.actions button,.settings>button,.sticky button{background:var(--green);color:#fff;border:0;border-radius:15px;width:100%;min-height:49px;padding:14px 17px;font-weight:800}.secondary,.actions .secondary{color:var(--green)!important;background:#e8f1ed!important}.actions{gap:9px;display:grid}.actions .danger{color:var(--danger);background:#f8e7e8}.hint{color:var(--muted);text-align:center;font-size:11px;line-height:1.4}.formError,.toast{color:var(--danger);background:#fff0f0;border-radius:13px;padding:11px}.toast{justify-content:space-between;margin-bottom:12px;display:flex}.toast button{color:inherit;background:0 0;border:0}.review{text-align:center}.reviewHero{background:var(--mint);width:74px;height:74px;color:var(--green);border-radius:24px;place-items:center;margin:auto;font-size:30px;font-weight:900;display:grid}.review dl{text-align:left;background:#f5f8f6;border-radius:17px;grid-template-columns:1fr 1fr;padding:14px;display:grid}.review dt,.review dd{margin:5px}.review dd{text-align:right;font-weight:700}.review ul{text-align:left;color:var(--muted)}.sticky{background:inherit;grid-template-columns:1fr 1.5fr;gap:9px;padding-top:12px;display:grid;position:sticky;bottom:0}.calendar{background:var(--tg-theme-bg-color,#fff);border-radius:22px;margin-top:12px;padding:12px}.calHead{justify-content:space-between;align-items:center;padding:7px;display:flex}.calHead button{background:#eef3f0;border:0;border-radius:11px;width:38px;height:38px;font-size:22px}.week,.grid{grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.week b{text-align:center;color:var(--muted);padding:10px 0;font-size:11px}.grid button,.grid i{aspect-ratio:1;color:inherit;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex}.grid button.selected{background:var(--mint);outline:1px solid var(--green)}.grid button div{gap:2px;height:5px;display:flex}.grid em,.legend i{background:#8b9690;border-radius:50%;width:5px;height:5px;display:inline-block}.grid em.taken,.legend i.taken{background:#27935d}.grid em.skipped,.legend i.skipped{background:#e0883b}.grid em.planned,.legend i.planned{background:#3c78c2}.legend{color:var(--muted);flex-wrap:wrap;gap:12px;margin:14px 3px;font-size:11px;display:flex}.legend i{margin-right:4px}.day{margin-top:12px;padding:16px}.settings{gap:8px;display:grid}.notice{color:#70531b;background:#fff4dc;border-radius:18px;padding:15px}.notice p{margin-bottom:0}.stats{text-align:center}.ring{--p:0deg;background:conic-gradient(var(--green) var(--p),#e7ece9 0);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:150px;height:150px;margin:10px auto 25px;display:flex;position:relative}.ring:after{content:"";background:var(--tg-theme-bg-color,#fff);border-radius:50%;position:absolute;top:14px;bottom:14px;left:14px;right:14px}.ring b,.ring span{z-index:1}.ring b{font-size:30px}.ring span{color:var(--muted);font-size:11px}.statGrid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.statGrid div{background:#f3f7f5;border-radius:15px;padding:15px}.statGrid b,.statGrid span{display:block}.statGrid b{font-size:23px}.statGrid span{color:var(--muted);font-size:11px}.center{text-align:center;place-content:center;min-height:100dvh;padding:30px;display:grid}.loader{border:4px solid #d8e5de;border-top-color:var(--green);border-radius:50%;width:40px;height:40px;margin:auto;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:360px){.app{padding-left:12px;padding-right:12px}.quick{grid-template-columns:1fr}.quick button{align-items:center;gap:12px;min-height:68px;display:flex}.quick b{margin:0}.status{padding:5px;font-size:9px}.split{grid-template-columns:1fr}.heroTime{display:none}}@media (prefers-color-scheme:dark){:root{--card:#1d2823;--line:#34423b;--muted:#9ba9a1;--mint:#254a3b}body{background:#121a16}.advancedBox,.statGrid div,input,select,textarea{background:#202d27}.notice{color:#f0dcae;background:#3b3322}}.doseActions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px;display:flex}.doseActions button{background:var(--mint);color:var(--green);border:0;border-radius:10px;padding:6px 8px;font-size:10px}.history{border-top:1px solid var(--line);margin-top:16px;padding-top:13px}.history p{color:var(--muted);font-size:12px}@media (prefers-color-scheme:dark){:root,body{color:#edf5f1}nav{background:#16211c}.modal{background:#18231e}.grid button,.hero h2,.dose strong,.medCard h3,.pageTitle h2,.sectionTitle h2,header h1{color:#edf5f1}}
