:root{--bg:#f3f1ea;--surface:#fff;--surface-2:#ebe8dd;--border:#d6d1c1;--text:#1d2118;--muted:#646a5a;--accent:#4b5d2b;--accent-ink:#fff;--accent-soft:#e2e8d2;--gold:#9a7b1c;--danger:#a23a2a;--rest:#2f5f86;--ok:#3f7a3a;--radius:12px;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#14170f;--surface:#1d2117;--surface-2:#262b1f;--border:#353c2b;--text:#e9e6d8;--muted:#9ea38f;--accent:#8fa85a;--accent-ink:#12150d;--accent-soft:#2b3420;--gold:#d6b456;--danger:#e0715f;--rest:#6aa6d6;--ok:#7fbf6f;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);-webkit-text-size-adjust:100%;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}body.modal-open{overflow:hidden}h1,h2,h3{margin:0 0 .25rem;line-height:1.2}h1{font-size:1.35rem}h2{font-size:1.15rem}h3{font-size:1.02rem}p{margin:.25rem 0}a{color:var(--accent)}input,select,textarea,button{font:inherit;color:inherit}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid var(--border);background:var(--surface);border-radius:8px;width:100%;min-height:40px;padding:.5rem .6rem}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center}.row{align-items:center;display:flex}.wrap{flex-wrap:wrap}.gap{gap:.75rem}.gap-sm{gap:.4rem}.stack{flex-direction:column;gap:.3rem;margin:.5rem 0;display:flex}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.warn-text{color:var(--danger)}.site-header{background:var(--surface);border-bottom:1px solid var(--border);z-index:20;justify-content:space-between;align-items:center;padding:.6rem 1rem;display:flex;position:sticky;top:0}.brand{color:var(--text);letter-spacing:.02em;align-items:center;gap:.5rem;font-weight:700;text-decoration:none;display:flex}.site-header nav{gap:.25rem;display:flex}.site-header nav a{color:var(--muted);border-radius:8px;padding:.35rem .7rem;text-decoration:none}.site-header nav a.on{color:var(--text);background:var(--surface-2)}.app,.library{max-width:760px;margin:0 auto;padding:1rem 1rem 8rem}.loading{text-align:center;color:var(--muted);padding:3rem 1rem}.app-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.app-title h1{color:var(--muted);min-width:0;font-size:1.1rem;font-weight:600}.account{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;min-width:0;display:flex}.account-email{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:14rem;font-size:.85rem;overflow:hidden}.sync-status{background:var(--surface-2);color:var(--muted);border-radius:999px;padding:.1rem .5rem;font-size:.75rem;font-weight:600}.sync-status.idle{color:var(--ok)}.sync-status.offline,.sync-status.error{color:var(--danger)}.account-notice{text-align:right;color:var(--muted);flex-basis:100%;margin:0}.logged-out .site-header nav{display:none}.login-screen{max-width:420px;margin:0 auto;padding:2rem 1rem 4rem}.login-card h1{margin-bottom:.25rem;font-size:1.4rem}.login-form{flex-direction:column;margin-top:.5rem;display:flex}.choice-screen{max-width:560px}.choice-options{gap:.75rem;margin:1rem 0;display:grid}@media (width>=560px){.choice-options{grid-template-columns:1fr 1fr}}.choice-option{text-align:left;border:2px solid var(--border);border-radius:var(--radius);background:var(--surface-2);cursor:pointer;flex-direction:column;gap:.4rem;padding:.9rem;display:flex}.choice-option:hover:not(:disabled){border-color:var(--accent)}.choice-option:disabled{opacity:.5;cursor:default}.choice-option.recommended{border-color:color-mix(in srgb, var(--accent) 60%, var(--border))}.choice-title{font-size:1.05rem;font-weight:700}.choice-effect{font-size:.85rem;font-weight:600}.choice-extra{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.login-form .btn.big{margin-top:.5rem}.tabs{background:var(--surface-2);border-radius:10px;gap:.25rem;margin:.5rem 0 1rem;padding:4px;display:flex}.tabs a{text-align:center;color:var(--muted);border-radius:8px;flex:1;padding:.5rem;font-weight:600;text-decoration:none}.tabs a.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001a}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.9rem;padding:1rem}.btn{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:.35rem;min-height:40px;padding:.45rem .9rem;font-weight:600;display:inline-flex}.btn:hover{filter:brightness(.97)}.btn:disabled{opacity:.4;cursor:default}.btn.small{min-height:34px;padding:.3rem .65rem;font-size:.88rem}.btn.big{min-height:48px;padding:.6rem 1.4rem;font-size:1.05rem}.btn.accent{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.ghost{background:0 0;border-color:#0000}.btn.danger{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 40%, var(--border));background:0 0}.btn.icon{min-width:36px;min-height:36px;padding:.25rem}.block-add{border-style:dashed;width:100%;margin-bottom:.9rem}.toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.6rem;display:flex}.week-picker,.seg{background:var(--surface-2);border-radius:8px;gap:2px;padding:3px;display:flex}.week-picker button,.seg button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:6px;min-height:34px;padding:.4rem .75rem;font-weight:600}.week-picker button.on,.seg button.on{background:var(--accent);color:var(--accent-ink)}.seg{margin-top:.5rem}.seg button{flex:1;font-size:.88rem}.week-strip{grid-template-columns:repeat(7,minmax(0,1fr));gap:.35rem;margin-bottom:.9rem;display:grid}.day-chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:center;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:.1rem;min-height:62px;padding:.5rem .2rem;display:flex;position:relative}.day-chip .dow{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.72rem;font-weight:700}.day-chip .dname{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.72rem;font-weight:600;line-height:1.15;display:-webkit-box;overflow:hidden}.day-chip.rest{color:var(--muted);background:0 0;border-style:dashed}.day-chip.today .dow{color:var(--gold)}.day-chip .changed{background:var(--gold);border-radius:50%;width:6px;height:6px;position:absolute;top:5px;left:5px}.day-chip.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.day-chip.started{border-color:var(--gold)}.day-chip.complete{border-color:var(--ok)}.day-chip.complete .dot{color:var(--ok);font-size:.6rem;font-weight:800;position:absolute;top:1px;right:3px}.planner-row{flex-wrap:wrap;align-items:flex-end;gap:.6rem;display:flex}.planner-row .stack{margin:.25rem 0 0}.grow{flex:220px;min-width:0}.seg.compact{margin:0}.seg.compact button{white-space:nowrap}.override-note{color:var(--gold);margin-top:.5rem}button.link{color:var(--accent);cursor:pointer;font:inherit;background:0 0;border:0;padding:0;text-decoration:underline}.rest-card{padding:2rem 1rem}.rest-icon{color:var(--muted);margin-bottom:.4rem;font-size:2.2rem;line-height:1}.schedule-list{margin:.5rem 0 0;padding:0;list-style:none}.schedule-list li{grid-template-columns:6.5rem 1fr;align-items:center;gap:.5rem;padding:.3rem 0;display:grid}.workout-list{margin:.5rem 0 0;padding:0;list-style:none}.workout-list li{border-bottom:1px solid var(--border);align-items:center;gap:.5rem;padding:.4rem 0;display:flex}.workout-list input{flex:1;min-width:0}.workout-list .muted{text-align:right;flex-shrink:0;max-width:30%}.day-head h2{font-size:1.45rem}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--gold);font-size:.75rem;font-weight:700}.progression{background:var(--surface-2);color:var(--muted);border-radius:8px;margin-top:.5rem;padding:.5rem .7rem;font-size:.9rem}.progression.active{background:color-mix(in srgb, var(--gold) 15%, var(--surface));color:var(--text);border-left:3px solid var(--gold)}.block-head{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.5rem;display:flex}.block-head>div:first-child{flex:1;min-width:0}.block-actions{flex-direction:column;align-items:flex-end;gap:.35rem;display:flex}.progress-chip{color:var(--muted);background:var(--surface-2);border-radius:999px;padding:.1rem .5rem;font-size:.78rem;font-weight:700}.rounds-input{align-items:center;gap:.6rem;margin-bottom:.5rem;font-weight:600;display:flex}.rounds-input input{max-width:120px}.slots{margin:0;padding:0;list-style:none}.slot{border-top:1px solid var(--border);padding:.75rem 0}.slot:last-child{padding-bottom:.25rem}.slot-head{align-items:flex-start;gap:.6rem;display:flex}.slot-title{flex:1;min-width:0}.slot-actions{flex-shrink:0;gap:.25rem;display:flex}.slot.is-done .ex-link{color:var(--muted);text-decoration:line-through}.ex-link{color:var(--text);font-weight:650;text-decoration:none}.ex-link span{color:var(--accent);font-size:.8em}.ex-link:hover{text-decoration:underline}.target{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:.1rem .5rem;font-size:.8rem;font-weight:700}.cue{color:var(--muted);margin-top:.15rem;font-size:.85rem}.last{margin-top:.15rem}.big-check{width:24px;height:24px;accent-color:var(--accent);flex-shrink:0;margin-top:1px}.tag{background:var(--surface-2);color:var(--muted);border:0;border-radius:999px;padding:.08rem .45rem;font-size:.72rem;font-weight:600;display:inline-block}.tag.eq{background:var(--accent-soft);color:var(--accent)}.tag.warn{background:color-mix(in srgb, var(--danger) 15%, var(--surface));color:var(--danger)}.swap-tag{cursor:pointer;background:color-mix(in srgb, var(--gold) 18%, var(--surface));color:var(--gold)}table.sets{border-collapse:collapse;width:100%;margin-top:.5rem}table.sets th{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;padding:0 .25rem .2rem;font-size:.72rem;font-weight:700}table.sets td{padding:.2rem .25rem}table.sets .set-n{width:2rem;color:var(--muted);text-align:center;font-weight:700}table.sets td:last-child{width:48px}table.sets tr.is-done input{background:var(--accent-soft);border-color:#0000}.done-btn{border:1px solid var(--border);background:var(--surface);width:44px;height:40px;color:var(--muted);cursor:pointer;border-radius:8px;font-size:1.05rem;font-weight:800}.done-btn.on{background:var(--ok);border-color:var(--ok);color:#fff}.edit-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.6rem;width:100%;display:grid}.edit-grid label,.num-pair{color:var(--muted);flex-direction:column;gap:.25rem;font-size:.82rem;font-weight:600;display:flex}.edit-grid .span-all{grid-column:1/-1}.edit-grid label.check{flex-direction:row;align-items:center}.num-pair input{max-width:80px}.slot-edit{background:var(--surface-2);border-radius:8px;margin-top:.5rem;padding:.6rem}.block.editing{border-style:dashed;border-color:var(--accent)}label.check{cursor:pointer;align-items:center;gap:.45rem;min-height:36px;display:inline-flex}label.check input{width:18px;height:18px;accent-color:var(--accent)}.finish-row{margin-top:.5rem}.modal-backdrop{z-index:50;background:#00000080;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border-radius:16px 16px 0 0;flex-direction:column;width:100%;max-width:640px;max-height:88vh;display:flex}@media (width>=700px){.modal-backdrop{align-items:center}.modal{border-radius:16px;max-height:80vh}}.modal-head{justify-content:space-between;align-items:flex-start;padding:1rem 1rem .5rem;display:flex}.modal-controls{border-bottom:1px solid var(--border);flex-direction:column;gap:.5rem;padding:0 1rem .5rem;display:flex}.modal-controls select{flex:1;width:auto;min-width:160px}.modal-body{padding:.5rem 1rem 1.5rem;overflow-y:auto}.list-head{text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:.75rem 0 .25rem;font-size:.75rem}.pick-list,.ex-history-list,.lib-list,.session-list{margin:0;padding:0;list-style:none}.pick-row{border:0;border-bottom:1px solid var(--border);cursor:pointer;text-align:left;background:0 0;flex-direction:column;align-items:flex-start;gap:.2rem;width:100%;padding:.6rem .5rem;display:flex}.pick-row:hover,.pick-row.on{background:var(--surface-2)}.pick-row:disabled{opacity:.45}.pick-title{font-weight:600}.pick-meta{flex-wrap:wrap;gap:.25rem;display:flex}.timer-bar{z-index:40;background:var(--surface);border-top:3px solid var(--accent);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #0003}.timer-bar.rest{border-top-color:var(--rest)}.timer-progress{background:var(--gold);height:3px;transition:width .25s linear;position:absolute;top:-3px;left:0}.timer-content{align-items:center;gap:.75rem;max-width:760px;margin:0 auto;padding:.6rem 1rem;display:flex}.timer-info{flex:1;min-width:0}.timer-title{white-space:nowrap;text-overflow:ellipsis;font-size:.8rem;font-weight:700;overflow:hidden}.timer-phase{white-space:nowrap;text-overflow:ellipsis;font-weight:600;overflow:hidden}.timer-next{white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.timer-clock{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:800}.timer-actions{flex-direction:column;gap:.25rem;display:flex}.pill{color:#fff;background:var(--accent);border-radius:4px;padding:.05rem .4rem;font-size:.68rem;font-weight:800}.pill.rest{background:var(--rest)}@media (width>=560px){.timer-actions{flex-direction:row}}.session-list li{border-bottom:1px solid var(--border);grid-template-columns:6.5rem 1fr;gap:.5rem;padding:.5rem 0;display:grid}.session-list .date{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem}.ex-detail{background:var(--surface-2);border-radius:0 0 8px 8px;padding:.5rem}.history-table{border-collapse:collapse;width:100%;font-size:.9rem}.history-table th,.history-table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:.35rem}.history-table th{text-transform:uppercase;color:var(--muted);font-size:.72rem}.history input[type=search]{margin:.5rem 0}.eq-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.15rem .75rem;margin-top:.5rem;display:grid}.danger-zone{border-color:color-mix(in srgb, var(--danger) 35%, var(--border))}.library #lib-search{margin-top:.6rem}.lib-list li{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.35rem;padding:.45rem 0;display:flex}.lib-list a{color:var(--text);font-weight:550;text-decoration:none}.lib-list a span{color:var(--accent);font-size:.8em}.lib-list a:hover{text-decoration:underline}[hidden]{display:none!important}@media (width<=420px){.week-strip{gap:.2rem}.day-chip .dname{font-size:.64rem}.block-head{flex-direction:column}.block-actions{flex-direction:row;justify-content:space-between;align-self:stretch;align-items:center}}
