:root{--accent: #2f6fc4;--bg: #101316;--surface: #1a1f24;--surface-2: #242a31;--line: #323a42;--ink: #f2f5f7;--muted: #a3afba;--ok: #38b27f;--warn: #e3a948;--danger: #ef7676;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{margin:0;min-height:100%}body{background:var(--bg);color:var(--ink);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1,h2,h3,p{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:default}:focus-visible{outline:2px solid var(--ink);outline-offset:2px}ul,ol{margin:6px 0;padding-left:20px}li{margin-bottom:6px}label{display:grid;gap:6px;font-size:14px;color:var(--muted)}input,select{width:100%;min-height:46px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink);font-size:16px}input:disabled{opacity:.6}.app{max-width:620px;margin:0 auto;min-height:100dvh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 16px;position:sticky;top:0;background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:5}.top strong{color:var(--accent);filter:brightness(1.35)}.sync{margin-left:auto;font-size:12px;color:var(--muted)}.sync.error{color:var(--danger)}.sync.offline{color:var(--warn)}.content{padding:0 16px 24px;display:grid;gap:14px;min-width:0}.content>*{min-width:0}.date{color:var(--muted);font-size:14px}.date:first-letter{text-transform:uppercase}.day-title{font-size:26px;line-height:1.15;font-weight:750;letter-spacing:-.01em}.muted{color:var(--muted)}.small{font-size:13px}.center{text-align:center}.error{color:var(--danger)}.btn{min-height:50px;padding:12px 18px;width:100%;border-radius:12px;background:var(--accent);color:#fff;font-weight:700}.ghost-btn{background:var(--surface-2);color:var(--ink)}.ghost{min-height:40px;padding:6px 10px;border-radius:8px;color:var(--ink);font-weight:600}.ghost:hover{background:var(--surface-2)}.login{max-width:420px;min-height:100dvh;margin:0 auto;padding:32px 16px;display:flex;flex-direction:column;justify-content:center;gap:28px}.brand{display:grid;justify-items:center;gap:8px;text-align:center}.brand img{border-radius:18px}.brand h1{font-size:30px}.brand p{color:var(--muted)}.stack{display:grid;gap:14px}.strip-wrap{background:var(--surface);border-radius:14px;padding:8px}.strip-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px;font-size:14px}.strip-head .ghost{font-size:22px;min-width:44px}.strip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.day{display:grid;justify-items:center;gap:2px;padding:6px 0;min-height:56px;border-radius:10px;color:var(--muted);font-size:12px}.day b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:14px;color:var(--ink);font-weight:600}.day.now span{color:var(--ink);font-weight:800}.day.done b{background:var(--ok);color:#06251a}.day.on{background:var(--surface-2);box-shadow:inset 0 0 0 2px var(--accent)}.prog{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}.bar{flex:1;height:8px;border-radius:8px;background:var(--surface-2);overflow:hidden}.bar span{display:block;height:100%;background:var(--accent);border-radius:8px;transition:width .2s}.list{display:grid;gap:8px}.row{display:flex;align-items:center;gap:12px;width:100%;padding:10px;border-radius:12px;background:var(--surface);text-align:left;min-height:72px}.row:hover{background:var(--surface-2)}.row-text{flex:1;display:grid;gap:2px;min-width:0}.row-text small{color:var(--muted);font-size:13px}.row-text .kc{color:var(--ink);opacity:.8}.row-check{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;background:var(--surface-2);font-size:13px;color:var(--muted)}.row.is-done .row-check{background:var(--ok);color:#06251a}.row.is-done b{opacity:.75}.thumb{width:72px;height:54px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--surface-2);font-size:26px}.rest{background:var(--surface);padding:20px;border-radius:14px;display:grid;gap:8px}.anim{position:relative;width:72px;height:54px;flex:none;border-radius:8px;overflow:hidden;background:#000}.anim img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.anim-b{animation:flip 2.4s steps(1) infinite}.anim.big{width:100%;height:min(36dvh,62vw);border-radius:12px}.anim.big img{object-fit:contain}@keyframes flip{0%,49.9%{opacity:0}50%,to{opacity:1}}@media (prefers-reduced-motion: reduce){.anim-b{animation-duration:8s}}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:var(--bg);display:flex;flex-direction:column;max-width:620px;margin:0 auto}.sheet-top{display:flex;align-items:center;justify-content:space-between;padding:8px 12px}.sheet-body{flex:1;min-height:0;overflow-y:auto;padding:0 16px 80px;display:flex;flex-direction:column;gap:12px}.sheet-body>*{flex:none}.sheet-body h2{font-size:22px;line-height:1.2}.sheet-foot{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:5px 10px;border-radius:99px;background:var(--surface-2);font-size:13px;color:var(--muted)}.chip b{color:var(--ink)}.note{padding:10px 12px;border-radius:10px;background:var(--surface);border-left:3px solid var(--accent);font-size:14px}.last{font-size:13px;color:var(--muted)}.steps{padding-left:22px}.sets{display:grid;gap:8px}.set{display:grid;grid-template-columns:26px 1fr 1fr 50px;align-items:end;gap:8px}.set-n{align-self:center;padding-top:18px;font-weight:700;color:var(--muted);text-align:center}.set-f{gap:2px;font-size:12px}.set-f input{text-align:center;font-weight:700;padding:8px 4px}.tick{width:50px;height:46px;border-radius:10px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center}.set.done .tick{background:var(--ok);color:#06251a}.set.done input{border-color:var(--ok)}.fold{background:var(--surface);border-radius:12px}.fold summary{padding:14px;font-weight:650;cursor:pointer}.fold-body{padding:0 14px 14px;display:grid;gap:10px}.card{background:var(--surface);padding:14px;border-radius:12px;display:grid;gap:10px}.card h3{font-size:16px}.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:var(--surface)}.seg button{min-height:44px;border-radius:9px;font-weight:650;color:var(--muted)}.seg .on{background:var(--accent);color:#fff}.macro-head{font-size:15px;color:var(--muted)}.macro-head b{font-size:24px;color:var(--ink)}.macros{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;font-size:12px;color:var(--muted)}.macros b{display:block;font-size:14px;color:var(--ink)}.meal{align-items:center}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats div{background:var(--surface);padding:12px 8px;border-radius:12px;text-align:center}.stats b{display:block;font-size:18px}.stats span{font-size:12px;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}.chart{width:100%;height:auto;display:block}.chart .ax{fill:var(--muted);font-size:10px}.chart .ln{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;filter:brightness(1.3)}.chart .pt{fill:var(--accent);filter:brightness(1.3)}.chart .goal{stroke:var(--muted);stroke-dasharray:4 4}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:7px 6px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap;font-variant-numeric:tabular-nums}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-weight:600;font-size:12px}.wk{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:14px}.wk b{font-weight:600}.wk span{color:var(--muted);text-align:right}.timer{position:fixed;left:50%;transform:translate(-50%);bottom:calc(70px + env(safe-area-inset-bottom));width:min(calc(100% - 24px),596px);z-index:30;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:var(--surface-2);box-shadow:0 6px 24px #00000080;font-size:14px}.timer b{font-size:22px;font-variant-numeric:tabular-nums;margin-right:auto}.nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:center;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.nav button{flex:1;max-width:124px;display:grid;justify-items:center;gap:2px;padding:8px 0;min-height:60px;font-size:12px;color:var(--muted)}.nav .on{color:var(--ink);font-weight:700}.nav .on svg{color:var(--accent);filter:brightness(1.3)}
