:root{--bg: #000000;--surface: #111113;--surface-2: #1a1a1d;--surface-3: #242428;--border: #26262a;--text: #ffffff;--text-2: #b4b4ba;--text-3: #8c8c93;--danger: #ff5a5f;--ok: #4ade80;--radius-lg: 20px;--radius-md: 14px;--radius-sm: 10px;--tap: 48px;--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}:root[data-theme=monochrome]{--accent: #ffffff;--accent-ink: #000000;--accent-soft: rgba(255,255,255,.12);--accent-text: #ffffff;--track: #3a3a3f;--chart-fill: rgba(255,255,255,.14)}:root[data-theme=orange]{--accent: #FF6C0E;--accent-ink: #120700;--accent-soft: rgba(255,108,14,.16);--accent-text: #FF6C0E;--track: #34261c;--chart-fill: rgba(255,108,14,.28)}:root[data-theme=blue]{--bg: #050506;--surface: #0e0f12;--surface-2: #15171b;--surface-3: #1e2127;--border: #1d1f25;--text-2: #b9bec8;--text-3: #8b909b;--accent: #1A76EC;--accent-ink: #ffffff;--accent-soft: rgba(26,118,236,.16);--accent-text: #3B9BFF;--track: #1b2740;--chart-fill: rgba(26,118,236,.25);--radius-lg: 16px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0;background:#000}body{font-family:var(--font);color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior:none}button,input,select,textarea{font:inherit;color:inherit}button{background:none;border:0;padding:0;cursor:pointer}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app{max-width:430px;height:100%;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden}.screen{flex:1;overflow-y:auto;padding:calc(var(--safe-top) + 14px) 16px 24px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.screen::-webkit-scrollbar{display:none}.h1{font-size:30px;font-weight:700;letter-spacing:-.02em;margin:0}.sub{color:var(--text-2);font-size:15px;margin:2px 0 0}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:12px}.muted{color:var(--text-3)}.small{font-size:13px}.tiny{font-size:11px}.num{font-variant-numeric:tabular-nums}.bold{font-weight:600}.accent{color:var(--accent-text)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:14px}.card.tap{display:block;width:100%;text-align:left}.card.tap:active{background:var(--surface-2)}.card-title{font-size:17px;font-weight:600}.btn{min-height:var(--tap);border-radius:var(--radius-md);padding:0 18px;font-weight:600;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--surface-2);border:1px solid var(--border)}.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent}.btn.block{width:100%}.btn.ghost{background:transparent}.btn.danger{color:var(--danger)}.btn:active{filter:brightness(.88)}.btn:disabled{opacity:.45}.icon-btn{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.icon-btn:active{background:var(--surface-2)}.seg{display:flex;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:3px;gap:2px}.seg button{flex:1;min-height:38px;border-radius:999px;font-size:15px;font-weight:500;color:var(--text-2)}.seg button[aria-selected=true]{background:var(--accent);color:var(--accent-ink);font-weight:600}.bar{height:8px;border-radius:99px;background:var(--track);overflow:hidden}.bar>i{display:block;height:100%;border-radius:99px;background:var(--accent)}.tabbar{display:grid;grid-template-columns:repeat(5,1fr);background:#0a0a0cf5;border-top:1px solid var(--border);padding:6px 6px calc(var(--safe-bottom) + 6px);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tabbar button{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11px;color:var(--text-3);border-radius:12px}.tabbar button[aria-current=page]{color:var(--accent-text);font-weight:600}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day{min-height:56px;border-radius:12px;border:1px solid var(--border);background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:var(--text-2)}.day b{font-size:16px;color:var(--text)}.day[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:transparent}.day[aria-pressed=true] b{color:var(--accent-ink)}.input{width:100%;min-height:var(--tap);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:0 14px;font-size:16px}.input:focus{border-color:var(--accent);outline:none}.search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:0 14px;min-height:var(--tap)}.search input{flex:1;background:none;border:0;outline:none;min-width:0}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--text-2)}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:3px 10px;font-size:12px;font-weight:600;background:var(--surface-3);color:var(--text-2)}.pill.demo{background:var(--accent-soft);color:var(--accent-text)}.pill.off:before{content:"";width:7px;height:7px;border-radius:50%;background:#777}.pill.on:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--ok)}.scrim{position:absolute;top:0;right:0;bottom:0;left:0;background:#0009;z-index:20;display:flex;align-items:flex-end}.sheet{width:100%;max-height:92%;overflow-y:auto;background:var(--surface);border-radius:24px 24px 0 0;border:1px solid var(--border);padding:8px 16px calc(var(--safe-bottom) + 18px)}.grab{width:40px;height:5px;border-radius:9px;background:var(--surface-3);margin:4px auto 12px}.list-row{display:flex;align-items:center;gap:12px;min-height:56px;width:100%;text-align:left;padding:8px 14px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border)}.list-row:active{background:var(--surface-2)}.hr{height:1px;background:var(--border);margin:6px 0}.sets{display:grid;grid-template-columns:34px 1fr 1fr 56px 56px;gap:8px;align-items:center}.sets .hd{font-size:12px;color:var(--text-3);text-align:center}.cell{min-height:var(--tap);width:100%;text-align:center;border-radius:10px;background:var(--surface-3);border:1px solid transparent;font-size:17px;font-weight:600}.cell:focus{border-color:var(--accent);outline:none}.check{width:44px;height:44px;border-radius:50%;border:2px solid var(--text-3);display:inline-flex;align-items:center;justify-content:center;margin:0 auto}.check[aria-checked=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.toast{position:absolute;left:16px;right:16px;bottom:calc(var(--safe-bottom) + 76px);z-index:30;background:var(--surface-3);border:1px solid var(--border);border-radius:14px;padding:12px 14px;font-size:14px}.state{text-align:center;color:var(--text-3);padding:28px 12px;font-size:14px}.banner{background:var(--surface-2);border:1px dashed var(--border);border-radius:12px;padding:10px 12px;font-size:13px;color:var(--text-2)}@media (prefers-reduced-motion:no-preference){.bar>i{transition:width .3s}}.card{background:linear-gradient(180deg,#ffffff09,#fff0 60%),var(--surface)}.tile{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:104px;padding:10px 6px;border-radius:var(--radius-lg);background:linear-gradient(180deg,#ffffff0a,#fff0),var(--surface);border:1px solid var(--border);font-size:15px;font-weight:600;color:var(--text);line-height:1.2}.tile:active{background:var(--surface-2)}.tile svg{color:var(--text)}.sq{width:48px;height:48px;border-radius:14px;background:var(--surface);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;flex:none}.sq:active{background:var(--surface-2)}.roundbtn{width:44px;height:44px;border-radius:50%;background:var(--surface);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;flex:none}.ico{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2);color:var(--accent-text);flex:none}.metric{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;color:var(--text-2);min-height:40px}.metric+.metric{border-top:1px solid var(--border)}.metric b{color:var(--text);font-weight:600}.metric .lead{display:flex;align-items:center;gap:10px}.metric svg{color:var(--accent-text)}.stat{flex:1;position:relative;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);padding:12px 14px}.stat svg{position:absolute;right:12px;top:12px;color:var(--accent-text)}.thumb{width:72px;height:56px;border-radius:12px;object-fit:cover;flex:none;background:var(--surface-3)}.rowcard{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:8px 14px 8px 8px;border-radius:var(--radius-lg);background:linear-gradient(180deg,#ffffff09,#fff0),var(--surface);border:1px solid var(--border);min-height:64px}.rowcard:active{background:var(--surface-2)}.rowcard .t{font-weight:600;font-size:16px}.rowcard .st{font-size:13px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.circ{width:28px;height:28px;border-radius:50%;border:2px solid var(--text-3);display:inline-flex;align-items:center;justify-content:center;flex:none}.circ.on{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.eyebrow{font-size:15px;color:var(--text-2);margin:0}.hero{position:relative;overflow:hidden;border-radius:var(--radius-lg);border:1px solid var(--border);min-height:210px;padding:18px;display:flex;flex-direction:column;justify-content:flex-end;background:#000}.hero img{position:absolute;right:0;top:0;height:100%;width:68%;object-fit:cover;object-position:center top;opacity:.95}.hero:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:linear-gradient(90deg,#050506 30%,#0506064d 62%,#0506061a)}.hero>*:not(img){position:relative;z-index:2}.divrow{display:flex;align-items:center;gap:12px;min-height:46px;border-top:1px solid var(--border)}.pb{font-variant-numeric:tabular-nums}.search input{font-size:15px}.tile{padding-left:14px;padding-right:14px}.fab{position:fixed;right:max(16px,calc(50% - 199px));bottom:calc(var(--tabbar-h,64px) + var(--safe-bottom,0px) + 14px);z-index:30;display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px;border-radius:24px;background:var(--accent);color:var(--accent-ink);font-weight:700;box-shadow:0 6px 20px #00000080}.coach{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;max-width:430px;margin:0 auto;display:flex;flex-direction:column;background:var(--bg)}.coach-head{display:flex;align-items:center;gap:12px;padding:calc(var(--safe-top,0px) + 12px) 16px 10px;border-bottom:1px solid var(--border)}.coach-panel{padding:12px 16px;border-bottom:1px solid var(--border);background:var(--surface);max-height:55vh;overflow:auto}.coach-body{flex:1;overflow:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:88%;padding:10px 14px;border-radius:18px;white-space:pre-wrap;line-height:1.4;font-size:16px}.bubble.user{align-self:flex-end;background:var(--accent);color:var(--accent-ink);border-bottom-right-radius:6px}.bubble.assistant{align-self:flex-start;background:var(--surface-2);border:1px solid var(--border);border-bottom-left-radius:6px}.bubble.err{border-color:var(--danger,#ff5a5a)}.chip{display:flex;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;border-radius:12px;background:var(--accent-soft);color:var(--accent-text);font-size:13px;font-weight:600}.coach-input{display:flex;gap:10px;align-items:center;padding:10px 16px calc(var(--safe-bottom,0px) + 12px);border-top:1px solid var(--border)}
