*{box-sizing:border-box}:root{color-scheme:dark;--bg: #000;--panel: #111113;--panel-soft: #18181b;--panel-strong: #202024;--border: #2b2b31;--border-soft: #24242a;--text: #f8fafc;--muted: #a1a1aa;--muted-2: #71717a;--red: #ef4444;--red-dark: #991b1b;--red-soft: rgba(239, 68, 68, .14);--success: #22c55e;--warning: #f59e0b;--title-date: #fbbf24}html{background:var(--bg)}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.center-screen,.auth-page{min-height:100vh;display:grid;place-items:center;padding:18px}.setup-card,.auth-card{background:linear-gradient(180deg,#18181bfa,#111113fa);border:1px solid var(--border);border-radius:22px;box-shadow:0 18px 42px #00000057}.setup-card,.auth-card{width:100%;max-width:420px;padding:24px}.setup-card pre{max-width:100%;overflow:auto;padding:12px;border-radius:14px;background:#050506;color:#fecaca}.auth-logo,.brand-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:18px;background:linear-gradient(135deg,var(--red),var(--red-dark));color:#fff;box-shadow:0 10px 25px #ef444447}.auth-card h1,.hero-card h2,.card h3{color:var(--text)}.auth-card h1,.hero-card h2{margin:16px 0 7px;font-size:clamp(26px,7vw,34px);letter-spacing:-.04em}.card h3{margin:0 0 8px;font-size:20px}.auth-card p,.hero-card p,.card p,.empty,.message{color:var(--muted);margin:0;line-height:1.5}.form,.inline-form{display:grid;gap:12px;margin-top:18px}label{display:grid;gap:8px;color:var(--text);font-weight:750;font-size:15px}input,select{width:100%;border:1px solid var(--border);border-radius:16px;padding:15px;background:#0f0f12;color:var(--text);outline:none;min-height:52px}input::placeholder{color:var(--muted-2)}input:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px #ef444429}.primary-button,.secondary-button,.icon-button,.link-button,.danger-icon,.move-icon,.mini-danger-button{border:0;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:850;min-height:48px;transition:transform .12s ease,background .12s ease,border .12s ease}.primary-button:active,.secondary-button:active,.icon-button:active,.danger-icon:active,.move-icon:active{transform:scale(.98)}.primary-button{background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;padding:14px 18px}.primary-button.success-button{background:#008f39;color:#fff;border:1px solid #00d14d}.secondary-button{background:var(--panel-strong);color:var(--text);border:1px solid var(--border);padding:13px 16px}.small-button{min-height:40px;padding:9px 12px;font-size:14px}.icon-button{width:48px;height:48px;background:var(--panel-strong);color:var(--text);border:1px solid var(--border);flex:0 0 auto}.link-button{width:100%;background:transparent;color:#fecaca;padding:14px;margin-top:10px}.danger-icon,.mini-danger-button,.danger-button{background:var(--red-soft);color:#fecaca;border:1px solid rgba(239,68,68,.22)}.danger-icon{width:42px;height:42px;flex:0 0 auto}.mini-danger-button{width:34px;height:34px;min-height:34px}.move-icon{width:34px;height:34px;min-height:34px;background:var(--panel-soft);color:var(--text);border:1px solid var(--border-soft)}.full-width-button{width:100%}.app-shell{min-height:100vh;padding-bottom:92px}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 14px;background:#000;border-bottom:1px solid var(--border-soft);transition:transform .24s ease,opacity .24s ease;will-change:transform}.topbar-hidden{transform:translateY(-110%);opacity:0;pointer-events:none}.brand-logo{width:48px;height:48px;flex:0 0 auto;border-radius:50%}.topbar h1{margin:0;font-size:18px;line-height:1;letter-spacing:-.03em}.content{width:100%;margin:0 auto;padding:14px 12px}.page{display:grid;gap:18px}.hero-card,.card{padding:0}.compact-hero h2{margin-top:0}.hero-card label{margin-top:15px}.hero-title-row,.section-header-row,.row-between,.exercise-header,.history-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.inline-form{grid-template-columns:1fr}.exercise-card{display:grid;gap:14px}.exercise-header h2,.exercise-header h3,.exercise-header p{margin:0}.exercise-header h2{font-size:clamp(28px,7vw,36px);letter-spacing:-.04em;line-height:1.05}.exercise-header p{margin-top:5px}.exercise-header{align-items:center;flex-wrap:wrap}.exercise-header .item-actions{flex-wrap:nowrap;margin-left:auto}.last-performance{display:grid;gap:8px;padding:14px;border-radius:16px;background:#ef444414;border:1px solid rgba(239,68,68,.18);color:#fee2e2;font-size:15px}.last-performance span{color:var(--text)}.muted-last-performance{background:var(--panel-soft);border-color:var(--border);color:var(--muted)}.sets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.set-card{padding:14px;border-radius:18px;background:#0c0c0f;border:1px solid var(--border-soft);display:grid;gap:12px}.set-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.sticky-save-bar{position:sticky;bottom:82px;z-index:15;display:grid;grid-template-columns:.85fr 1.15fr;gap:10px;padding:0;border:0;border-radius:20px;background:#111113ed;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.actions-row{display:grid;gap:10px}.bottom-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;border:1px solid var(--border);border-radius:24px;background:#111113f0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 18px 50px #0000008c}.bottom-nav button{border:0;border-radius:18px;background:transparent;color:var(--muted);padding:11px 4px;display:grid;place-items:center;gap:4px;font-weight:800;font-size:12px}.bottom-nav button.active{background:linear-gradient(135deg,#ef44443d,#991b1b2e);color:#fff;border:1px solid rgba(239,68,68,.28)}.history-list,.exercise-list{display:grid;gap:10px;margin-top:14px}.history-item,.exercise-list-item,.edit-exercise{background:#0c0c0f;border:1px solid var(--border-soft);border-radius:18px;padding:13px}.exercise-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px}.exercise-list-item strong,.history-item strong,.edit-exercise strong{display:block;color:var(--text);margin-bottom:5px}.exercise-list-item span,.history-item span{display:block;color:var(--muted);font-size:15px;line-height:1.6}.item-actions,.split-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.edit-block,.edit-workout{display:grid;gap:12px;width:100%}.edit-set-row{display:grid;grid-template-columns:72px 1fr 1fr;gap:8px;align-items:center;margin-top:10px}.edit-set-row span{color:var(--muted);font-size:14px}.chart-card{min-height:320px}.recharts-cartesian-grid line,.recharts-cartesian-axis-line,.recharts-cartesian-axis-tick-line{stroke:#3f3f46}.recharts-text{fill:var(--muted)}.recharts-default-tooltip{background:#111113!important;border:1px solid var(--border)!important;border-radius:12px!important;color:var(--text)!important}.chart-header-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.chart-window{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}.chart-window select{width:auto;min-height:40px;padding:8px 10px}.chart-hint{margin:8px 0 0;color:var(--muted);font-size:13px}.chart-tooltip{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:#111113;border:1px solid var(--border);color:var(--text);font-size:13px}.chart-tooltip strong{font-size:14px}.chart-tooltip-sets{color:var(--muted)}.empty{padding:16px;border-radius:16px;background:#ffffff08;border:1px dashed var(--border)}.message{padding:13px 15px;border-radius:16px;background:#ef44441f;border:1px solid rgba(239,68,68,.18);color:#fecaca}.toast-container{position:fixed;top:14px;left:12px;right:12px;z-index:999;display:grid;gap:10px;pointer-events:none}.toast{pointer-events:auto;width:100%;border:1px solid var(--border);border-radius:17px;padding:13px 14px;color:#fff;text-align:left;font-weight:800;box-shadow:0 16px 36px #0000005c}.toast-success{background:#22c55eeb}.toast-error{background:#b91c1cf2}.toast-info{background:#27272af5}@media(min-width:640px){.content{padding:22px 18px}.hero-card,.card{padding:0}.inline-form{grid-template-columns:1fr 1fr auto;align-items:end}.actions-row{grid-template-columns:1fr 1fr}.bottom-nav{left:50%;right:auto;width:min(520px,calc(100% - 24px));transform:translate(-50%)}.toast-container{left:auto;right:18px;width:360px}}@media(min-width:900px){.content{padding-top:28px}.page{gap:22px}.sets-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sticky-save-bar{position:static;max-width:100%;margin-left:auto}}.selector-stack{display:grid;gap:12px;margin-top:14px}@media(min-width:640px){.selector-stack{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}}.set-card{min-width:0}.set-card input{padding-left:14px;padding-right:14px}.sticky-save-bar-single{display:flex;width:100%}@media(max-width:380px){.sets-grid{gap:8px}.set-card{padding:10px;border-radius:16px}.set-card input{min-height:44px;padding:11px 10px}.set-card-header strong{font-size:14px}}.history-card-header{align-items:center}.history-item-editable{display:grid;gap:10px}.history-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.history-item-top strong{margin:0;padding-top:8px}.edit-exercise-sets{display:grid;gap:8px;margin-top:4px}@media(max-width:520px){.history-item-top{display:grid;gap:10px}.history-item-top .item-actions{justify-content:flex-start}.edit-set-row{grid-template-columns:1fr 1fr}.edit-set-row span{grid-column:1 / -1}}.bodyweight-form{align-items:end}.weight-summary-grid{display:grid;gap:12px;margin:16px 0}.summary-box{display:grid;gap:8px;padding:16px;border-radius:18px;background:#0c0c0f;border:1px solid var(--border-soft)}.summary-box span,.summary-box small{color:var(--muted);font-size:14px;line-height:1.45}.summary-box strong{color:var(--text);font-size:22px}.trend-badge{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border-radius:999px;font-size:15px;font-weight:900}.trend-badge.down{color:#bbf7d0;background:#22c55e24;border:1px solid rgba(34,197,94,.22)}.trend-badge.up{color:#fecaca;background:#ef444424;border:1px solid rgba(239,68,68,.22)}.trend-badge.neutral{color:var(--muted);background:var(--panel-soft);border:1px solid var(--border)}.weekly-list,.weight-log-list{display:grid;gap:12px;margin-top:16px}.weekly-row,.weight-log-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border-radius:18px;background:#0c0c0f;border:1px solid var(--border-soft)}.weekly-row div,.weight-log-row div{display:grid;gap:4px}.weekly-row strong,.weight-log-row strong{color:var(--text)}.weekly-row span,.weight-log-row span,.weekly-row em{color:var(--muted);font-size:14px;line-height:1.45}.weekly-row em{color:var(--title-date);font-style:normal}.weekly-row b{white-space:nowrap;color:#fff}@media(min-width:640px){.weight-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.form-actions-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.form-actions-row .primary-button,.form-actions-row .secondary-button{min-height:48px}.weight-log-row .item-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}@media(max-width:480px){.weight-log-row{align-items:flex-start}.weight-log-row .item-actions{justify-content:flex-start}}.provisional-note{color:#fbbf24!important}.chart-legend-note{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 12px;color:var(--muted);font-size:14px}.chart-legend-note span{display:inline-flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;border-radius:999px;display:inline-block}.legend-dot.final{background:#ef4444}.legend-dot.provisional{background:#fbbf24}.legend-dot.score{background:#ef4444}.legend-dot.trend{background:#a1a1aa}.pagination-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px 0 4px;flex-wrap:wrap}.pagination-controls span{color:var(--muted);font-size:14px;font-weight:800}.pagination-controls button:disabled{opacity:.42;cursor:not-allowed;transform:none}.save-button-full,.form-actions .save-button-full{width:100%}.rest-toggle-button{width:44px;height:44px;min-height:44px;flex:0 0 auto;border:1px solid var(--border);border-radius:16px;background:var(--panel-strong);color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.rest-toggle-on{color:#bbf7d0;border-color:#22c55e47;background:#22c55e24}.exercise-tool-button{width:42px;height:42px;min-height:42px;flex:0 0 auto;padding:0;border:1px solid var(--border);border-radius:16px;display:inline-flex;align-items:center;justify-content:center;transition:transform .12s ease,background .12s ease,border-color .12s ease}.exercise-tool-button:active{transform:scale(.96)}.exercise-tool-button-blue{color:#93c5fd;background:#3b82f624;border-color:#3b82f64d}.exercise-tool-button-yellow{color:#fbbf24;background:#f59e0b24;border-color:#f59e0b4d}.date-tool{position:relative;display:inline-flex;flex:0 0 auto}.date-picker-input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;min-height:0;padding:0;border:0;opacity:0;pointer-events:none}.rest-timer-bar{display:grid;gap:10px;padding:14px;border-radius:16px;background:#0c0c0f;border:1px solid var(--border-soft)}.rest-timer-settings{display:flex;align-items:center;justify-content:space-between;gap:10px}.rest-timer-label{font-family:inherit;color:var(--muted);font-size:14px;font-weight:800}.rest-timer-controls{display:flex;align-items:center;gap:8px}.rest-step-button{width:36px;height:36px;min-height:36px;border:1px solid var(--border);border-radius:13px;background:var(--panel-strong);color:var(--text);display:inline-flex;align-items:center;justify-content:center}.rest-step-button:active{transform:scale(.96)}.rest-timer-value{min-width:52px;text-align:center;font-family:inherit;font-weight:800;font-size:16px;color:var(--text)}.rest-timer-counting{display:flex;align-items:center;justify-content:space-between;gap:10px}.rest-countdown{display:flex;align-items:baseline;gap:4px}.rest-countdown-number{font-family:inherit;font-size:38px;font-weight:800;letter-spacing:-.03em;line-height:1;color:#fff}.rest-countdown-unit{font-family:inherit;color:var(--muted);font-weight:800;font-size:16px}.rest-cancel-button{width:40px;height:40px;min-height:40px;flex:0 0 auto;border:1px solid rgba(239,68,68,.22);border-radius:13px;background:var(--red-soft);color:#fecaca;display:inline-flex;align-items:center;justify-content:center}.sessions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.session-card{display:grid;gap:10px;padding:14px;border-radius:16px;background:#0c0c0f;border:1px solid var(--border-soft);min-width:0}.session-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.session-card-header strong{color:var(--title-date);font-size:15px}.session-card-header span{color:var(--title-date);font-size:14px;font-weight:800}.session-card .session-order{margin:0;color:var(--title-date);font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-sets{display:grid;gap:4px}.session-set{color:var(--text);font-size:14px;font-weight:700}.trend-badge.improving{color:#bbf7d0;background:#22c55e24;border:1px solid rgba(34,197,94,.22)}.trend-badge.declining{color:#fecaca;background:#ef444424;border:1px solid rgba(239,68,68,.22)}.trend-badge.maintaining{color:var(--muted);background:var(--panel-soft);border:1px solid var(--border)}.recent-sessions{display:flex;padding:6px;border-radius:16px;background:#0c0c0f;border:1px solid var(--border-soft);min-height:96px}.recent-session{flex:1 1 0;min-width:0;display:grid;align-content:start;gap:10px;padding:10px;border-left:1px solid var(--border-soft);color:var(--muted)}.recent-session:first-child{border-left:0}.recent-session-latest{color:var(--text)}.recent-session-date{color:var(--title-date);font-size:16px;font-weight:800}.recent-session-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}.recent-session-order{margin-left:auto;color:var(--title-date);font-size:12px;font-weight:700;white-space:nowrap}.recent-session-sets{display:grid;gap:4px;font-size:17px}.recent-sessions-empty{justify-content:center;align-items:center}.recent-sessions-empty span{color:var(--muted);font-size:15px}@media(min-width:900px){.sessions-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
