:root{--brand: #00BA4A;--bg: #000000;--card: #121212;--line: #242424;--text: #f4f4f5;--muted: #a1a1aa;--ok: #00BA4A;--warn: #f59e0b;--bad: #ef4444;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body{min-height:100dvh}button{font:inherit;cursor:pointer}h1,h2{margin:0 0 8px}h2{font-size:20px}.muted{color:var(--muted)}.small{font-size:13px}.center{min-height:60dvh;display:grid;place-items:center;text-align:center;padding:24px}.error{color:var(--bad);margin-top:10px;font-size:14px}.gym-header{display:flex;flex-direction:column;align-items:center;gap:10px;padding:32px 16px 20px}.gym-header.small{flex-direction:row;padding:0;gap:10px}.gym-logo{width:96px;height:96px;border-radius:50%;object-fit:contain;background:#fff}.gym-logo.placeholder{display:grid;place-items:center;background:var(--card);color:var(--brand)}.gym-header.small .gym-logo{width:40px;height:40px}.gym-name{font-weight:700;font-size:20px}.gym-header.small .gym-name{font-size:16px}.login{max-width:420px;margin:0 auto;padding:0 16px 24px}.foot{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:13px;margin-top:28px;text-decoration:none}.foot img{width:22px;height:22px;border-radius:6px}.foot b{color:var(--brand)}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;margin-bottom:14px}.input{width:100%;background:#0c0c0d;color:var(--text);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:16px;margin:8px 0 12px}.input.big{font-size:22px;text-align:center;letter-spacing:1px}.input.code{letter-spacing:8px}.btn{width:100%;background:var(--brand);color:#fff;border:0;border-radius:14px;padding:14px;font-weight:700;font-size:16px;margin-top:8px}.btn:disabled{opacity:.5}.btn.secondary{width:auto;padding:10px 16px;margin:0}.link{background:none;border:0;color:var(--brand);padding:8px 0;text-decoration:underline}.link.small{font-size:13px;color:var(--muted)}.app{max-width:520px;margin:0 auto;padding:14px 14px 90px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.hello{font-size:24px;margin:4px 0 14px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.big-value{font-size:30px;font-weight:800;margin:6px 0}.status{border-left:6px solid var(--ok)}.status.warn{border-left-color:var(--warn)}.status.bad{border-left-color:var(--bad)}.status.off{border-left-color:var(--muted)}.status-text{margin:6px 0 4px}.pill{border-radius:999px;padding:5px 12px;font-size:13px;font-weight:700;background:#00ba4a29;color:var(--ok);white-space:nowrap}.pill.warn{background:#f59e0b26;color:var(--warn)}.pill.bad{background:#ef444426;color:var(--bad)}.pill.off{background:#27272a;color:var(--muted)}.push{display:flex;align-items:center;justify-content:space-between;gap:12px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.chip{background:#0c0c0d;color:var(--text);border:1px solid var(--line);border-radius:999px;padding:8px 14px}.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.qr{display:block;width:240px;max-width:80%;margin:10px auto;background:#fff;border-radius:12px;padding:8px}.waiting{display:flex;align-items:center;gap:8px;justify-content:center;color:var(--muted);margin-top:10px}.dot{width:10px;height:10px;border-radius:50%;background:var(--brand);animation:pulse 1.2s infinite}@keyframes pulse{0%,to{opacity:.3}50%{opacity:1}}.center-card{text-align:center}.done-icon{width:72px;height:72px;border-radius:50%;background:var(--ok);color:#fff;font-size:40px;display:grid;place-items:center;margin:8px auto 12px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.stat{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column}.stat b{font-size:26px;color:var(--brand)}.stat span{color:var(--muted);font-size:13px}.bars{display:flex;align-items:flex-end;gap:8px;height:170px;margin-top:10px}.bar-col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.bar{width:100%;max-width:38px;background:var(--brand);border-radius:8px 8px 2px 2px;min-height:4px}.bar-val{font-size:12px;font-weight:700;margin-bottom:4px}.bar-label{font-size:12px;color:var(--muted);margin-top:6px}.bar-sub{font-size:10px;color:var(--muted);min-height:12px}.list{margin-top:6px}.list-row{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.dur{font-weight:700}.tabs{position:fixed;bottom:0;left:0;right:0;display:flex;background:#0a0a0a;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.tabs button{flex:1;background:none;border:0;color:var(--muted);padding:10px 0 12px;display:flex;flex-direction:column;align-items:center;font-size:12px;gap:2px}.tabs button svg{width:24px;height:24px}.tabs button.on{color:var(--brand)}.icon-btn{background:none;border:1px solid var(--line);color:var(--muted);width:40px;height:40px;border-radius:12px;display:grid;place-items:center}.icon-btn svg{width:20px;height:20px}.push-icon{width:40px;height:40px;border-radius:12px;background:#ffffff0f;color:var(--brand);display:grid;place-items:center;flex:none}.push-text{flex:1}.access{display:flex;align-items:center;gap:14px}.access-icon{width:32px;height:32px;color:var(--brand);flex:none}.seg{display:flex;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:4px;margin-bottom:14px}.seg button{flex:1;background:none;border:0;color:var(--muted);padding:9px 0;border-radius:10px;font-size:14px}.seg button.on{background:var(--brand);color:#fff;font-weight:700}.stat{position:relative}.stat-icon{position:absolute;top:12px;right:12px;width:20px;height:20px;color:var(--muted)}.delta{font-size:11px;font-weight:700;margin-left:4px;color:var(--muted);white-space:nowrap}.delta.up{color:var(--brand)}.delta.down{color:var(--bad)}.goal-line{font-size:18px;margin-top:2px}.goal-line b{font-size:26px;color:var(--brand)}.stepper{display:flex;align-items:center;gap:10px}.stepper button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:#0a0a0a;color:var(--text);font-size:18px}.stepper span{font-weight:700;min-width:26px;text-align:center}.progress{height:10px;border-radius:999px;background:#242424;margin:12px 0 8px;overflow:hidden}.progress div{height:100%;background:var(--brand);border-radius:999px;transition:width .3s}.cal{display:flex;gap:4px;margin-top:10px;overflow-x:auto}.cal-days{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted);margin-right:2px}.cal-days span{height:16px;line-height:16px}.cal-col{display:flex;flex-direction:column;gap:4px}.cal-cell{display:inline-block;width:16px;height:16px;border-radius:4px;background:#1f1f1f}.cal-cell.future{background:transparent}.cal-cell.l1{background:#00ba4a59}.cal-cell.l2{background:#00ba4aa6}.cal-cell.l3{background:var(--brand)}.cal-legend{display:flex;align-items:center;gap:4px;margin-top:8px;justify-content:flex-end}.cal-legend .cal-cell{width:12px;height:12px}.bar.empty{background:#242424}.two{display:grid;grid-template-columns:1fr;gap:0}@media(min-width:480px){.two{grid-template-columns:1fr 1fr;gap:14px}}.hbar{display:grid;grid-template-columns:74px 1fr 22px;align-items:center;gap:8px;margin-top:8px;font-size:13px}.hbar div{height:8px;background:#242424;border-radius:999px;overflow:hidden}.hbar i{display:block;height:100%;background:var(--brand);border-radius:999px}.hbar b{text-align:right}.fav{margin-top:10px}.fav b{color:var(--text)}.records{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.records>div{background:#0a0a0a;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px}.records b{font-size:20px}.records span{color:var(--muted);font-size:12px}.rec-icon{width:20px;height:20px;color:var(--brand);margin-bottom:4px}.bars.weekly{gap:4px;height:140px}.bars.weekly .bar-label{font-size:10px;white-space:nowrap;min-height:14px}.bars.weekly .bar-val{font-size:11px}.sheet-bg{position:fixed;inset:0;z-index:50;background:#000000b3;display:flex;align-items:flex-end;justify-content:center;padding:16px;animation:fade .2s}@media(min-width:560px){.sheet-bg{align-items:center}}.sheet{width:100%;max-width:420px;background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom));animation:up .25s ease-out}.prompt-head{display:flex;gap:14px;align-items:center;margin-bottom:16px}.prompt-head img{width:60px;height:60px;border-radius:16px;background:#fff;object-fit:contain;flex:none}.prompt-icon{width:60px;height:60px;border-radius:16px;background:#00ba4a24;color:var(--brand);display:grid;place-items:center;flex:none}.prompt-icon svg{width:30px;height:30px}.prompt-head h3{margin:0 0 4px;font-size:18px}.prompt-head p{margin:0}.stack{display:flex;flex-direction:column;gap:8px}.stack .btn{margin-top:0}.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text);font-weight:600}.muted-link{color:var(--muted);text-align:center;font-size:13px}.steps{margin:0 0 6px;padding-left:20px;line-height:1.6;color:var(--text)}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes up{0%{transform:translateY(30px);opacity:0}to{transform:none;opacity:1}}
