:root{--bg:#f4f4ef;--surface:#fff;--surface-2:#ecece6;--border:#d9d9d1;--text:#1c1c1c;--muted:#6e6e66;--accent:#e5484d;--accent-strong:#cf3a3f;--ring-bg:#e3e3dc;--danger:#d43f3f;--ok:#2f9e63;--shadow:0 1px 3px #00000014;--shadow-lg:0 12px 36px #00000029;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html.dark{--bg:#131316;--surface:#1d1d23;--surface-2:#26262d;--border:#33333c;--text:#ececf1;--muted:#9a9aa5;--accent:#ff6b6b;--accent-strong:#ff8080;--ring-bg:#2b2b33;--danger:#ff6b6b;--ok:#4cc38a;--shadow:0 1px 4px #00000059;--shadow-lg:0 12px 36px #00000080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{-webkit-tap-highlight-color:transparent;margin:0;padding:0;overflow-x:hidden}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.45;transition:background .2s,color .2s}h1,h2,h3{letter-spacing:-.015em;margin:0;line-height:1.2}button{font-family:inherit}.app{max-width:680px;padding:max(.85rem, env(safe-area-inset-top)) max(.9rem, env(safe-area-inset-right)) calc(4.8rem + env(safe-area-inset-bottom)) max(.9rem, env(safe-area-inset-left));margin:0 auto}.app.in-player{max-width:100%;padding:0}.app-header{z-index:20;background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);position:sticky;top:0}.app-header-inner{max-width:680px;padding:.65rem 1rem;padding-top:max(.65rem, env(safe-area-inset-top));justify-content:space-between;align-items:center;margin:0 auto;display:flex}.brand{color:var(--text);align-items:center;gap:.45rem;font-size:1.1rem;font-weight:800;text-decoration:none;display:flex}.brand .dot{background:var(--accent);border-radius:50%;width:.65rem;height:.65rem;display:inline-block}.desktop-nav-links{align-items:center;gap:.35rem;display:flex}.desktop-nav-links a{color:var(--muted);border-radius:9px;padding:.4rem .75rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .12s,color .12s}.desktop-nav-links a.active,.desktop-nav-links a:hover{color:var(--text);background:var(--surface-2)}.mobile-tab-bar{z-index:30;background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--border);padding:.35rem .5rem max(.45rem, env(safe-area-inset-bottom));justify-content:space-around;align-items:center;display:none;position:fixed;bottom:0;left:0;right:0}.tab-item{color:var(--muted);border-radius:8px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:.2rem;min-height:44px;padding:.3rem 0;font-size:.72rem;font-weight:600;text-decoration:none;transition:color .12s;display:flex}.tab-icon{width:1.35rem;height:1.35rem}.tab-item.active{color:var(--accent)}.tab-item:active{opacity:.75}@media (width<=600px){.desktop-nav-links{display:none}.mobile-tab-bar{display:flex}}.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:1rem}.card+.card{margin-top:.75rem}.card h2{font-size:1.08rem}.muted{color:var(--muted)}.small{font-size:.85rem}.btn{border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;white-space:nowrap;touch-action:manipulation;border-radius:11px;justify-content:center;align-items:center;gap:.4rem;min-height:38px;padding:.6rem 1.05rem;font-size:.95rem;font-weight:600;text-decoration:none;transition:filter .12s,transform 60ms,background .12s;display:inline-flex}.btn:hover{filter:brightness(1.05)}.btn:active{transform:scale(.97)}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent-strong);border-color:var(--accent-strong)}.btn.ghost{background:0 0}.btn.danger{color:var(--danger);border-color:color-mix(in srgb, var(--danger) 40%, var(--border))}.btn.small{border-radius:9px;min-height:32px;padding:.35rem .65rem;font-size:.85rem}.btn.icon{width:2.3rem;height:2.3rem;padding:.4rem;font-size:1rem}.btn:disabled,.btn.disabled{opacity:.45;cursor:not-allowed;pointer-events:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.icon-btn{color:var(--muted);cursor:pointer;touch-action:manipulation;background:0 0;border:none;border-radius:8px;place-items:center;padding:.35rem .5rem;font-size:1.15rem;line-height:1;transition:background .12s,color .12s;display:inline-grid}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.icon-btn:active{transform:scale(.95)}input[type=text],textarea{background:var(--surface);width:100%;color:var(--text);border:1px solid var(--border);border-radius:11px;padding:.65rem .75rem;font-family:inherit;font-size:1rem;line-height:1.45}input[type=text]:focus,textarea:focus{outline:2px solid color-mix(in srgb, var(--accent) 55%, transparent);border-color:var(--accent)}textarea{resize:vertical;min-height:4.2rem}.field{margin-bottom:.95rem}.field>label,.field>.flabel{color:var(--muted);margin-bottom:.35rem;font-size:.85rem;font-weight:600;display:block}.row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.spread{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.routine-heading{align-items:center}.routine-heading-actions{justify-content:flex-end;gap:.4rem}.starter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.starter-option{border:1px solid var(--border);background:var(--surface);min-width:0;color:var(--text);text-align:left;cursor:pointer;touch-action:manipulation;border-radius:14px;flex-direction:column;align-items:stretch;gap:.45rem;padding:.45rem;transition:border-color .12s,transform 60ms,background .12s;display:flex}.starter-option:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 5%, var(--surface))}.starter-option:active{transform:scale(.98)}.starter-option-copy{flex-direction:column;gap:.15rem;min-width:0;padding:0 .15rem .2rem;display:flex}.starter-option-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:700;overflow:hidden}.starter-option-copy .muted{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:.78rem;line-height:1.35;display:-webkit-box;overflow:hidden}.starter-duration{color:var(--accent-strong);margin-top:.2rem;font-size:.78rem;font-weight:800}.new-blank-button{width:100%;margin-top:.75rem;padding:.7rem}.modal-backdrop{z-index:60;-webkit-backdrop-filter:blur(4px);background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal-sheet{background:var(--surface);border:1px solid var(--border);width:100%;max-width:540px;max-height:90vh;padding:1.1rem 1rem max(1.2rem, env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);border-top-left-radius:20px;border-top-right-radius:20px;animation:.2s cubic-bezier(.16,1,.3,1) slideUp;overflow-y:auto}@media (width>=600px){.modal-backdrop{align-items:center;padding:1.5rem}.modal-sheet{border-radius:20px;max-height:85vh}}@keyframes slideUp{0%{opacity:.8;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.modal-header{justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.85rem;display:flex}.close-modal-btn{padding:.3rem .5rem;font-size:1.2rem}.empty-routines-card{padding:1.2rem 1rem}.empty-state-header{margin-bottom:.2rem}.routine-tools{gap:.5rem;margin-bottom:.75rem;display:flex}.routine-tools input{flex:1;min-width:0}.routine-tools select{background:var(--surface);color:var(--text);border:1px solid var(--border);font:inherit;border-radius:11px;padding:.6rem .75rem;font-size:.9rem}.import-status{margin:-.35rem 0 .7rem}.routine-card{flex-direction:column;gap:.65rem;display:flex}.routine-title{font-size:1.12rem;font-weight:700}.routine-stretch-summary{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;line-height:1.45;display:-webkit-box;overflow:hidden}.routine-card-actions{gap:.4rem;margin-top:.15rem}.routine-card-actions .play-btn{padding-inline:.85rem;font-weight:700}.stat-row{color:var(--muted);flex-wrap:wrap;gap:.5rem;font-size:.85rem;display:flex}.badge{background:var(--surface-2);border-radius:999px;align-items:center;gap:.25rem;padding:.2rem .6rem;font-size:.78rem;font-weight:600;display:inline-flex}.stretch-card{flex-direction:column;gap:.4rem;transition:transform .1s,box-shadow .1s;display:flex}.stretch-card-main-row{align-items:center;gap:.6rem;width:100%;display:flex}.stretch-main{flex:1;min-width:0}.stretch-name{font-size:.98rem;font-weight:700}.stretch-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:.2rem;font-size:.82rem;display:flex}.stretch-desc-preview{margin-top:.25rem;padding-left:2.2rem}.stretch-desc-preview p{color:var(--muted);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.84rem;line-height:1.45;display:-webkit-box;overflow:hidden}.thumb-sm{object-fit:cover;border:1px solid var(--border);border-radius:9px;flex-shrink:0;width:2.6rem;height:2.6rem}.thumb-ph{background:var(--surface-2);border-radius:9px;flex-shrink:0;place-items:center;width:2.6rem;height:2.6rem;font-size:1.1rem;display:grid}.editor{border-left:4px solid var(--accent)}.drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;color:var(--muted);touch-action:none;border-radius:6px;place-items:center;padding:.4rem .25rem;font-size:1.3rem;line-height:1;display:grid}.drag-handle:active{cursor:grabbing;color:var(--accent)}.stretch-reorder-arrows{flex-direction:column;align-items:center;gap:.1rem;display:flex}.stretch-reorder-arrows .arrow-btn{padding:.2rem .4rem;font-size:.95rem}.stretch-card-actions{gap:.35rem}.stretch-card.over{outline:2px dashed var(--accent);outline-offset:2px;border-radius:16px}.stretch-card.is-dragging{box-shadow:var(--shadow-lg);border-color:var(--accent);background:color-mix(in srgb, var(--accent) 6%, var(--surface));transform:scale(1.01)}.player{height:100dvh;max-height:100dvh;padding:max(.6rem, env(safe-area-inset-top)) .9rem max(.75rem, env(safe-area-inset-bottom));text-align:center;box-sizing:border-box;flex-direction:column;justify-content:space-between;align-items:center;display:flex;overflow:hidden}.player-top{flex-shrink:0;justify-content:space-between;align-items:center;gap:.5rem;width:100%;display:flex}.player-routine{text-overflow:ellipsis;white-space:nowrap;max-width:60%;font-size:.95rem;font-weight:700;overflow:hidden}.player-idle-content{flex-direction:column;align-items:center;gap:.9rem;margin:auto 0;display:flex}.player-big-start-btn{box-shadow:0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);border-radius:16px;padding:.85rem 2.5rem;font-size:1.15rem;font-weight:700}.player-hero-stage{flex-direction:column;flex-shrink:1;align-items:center;gap:.45rem;width:min(100%,28rem);margin:auto 0;display:flex}.player-stage-header{flex-direction:column;align-items:center;gap:.2rem;width:100%;display:flex}.player-badge-row{justify-content:center;align-items:center;height:1.5rem;display:flex}.player-hero-title{text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;max-width:95%;margin:0;font-size:1.25rem;font-weight:800;line-height:1.25;display:-webkit-box;overflow:hidden}.player-hero-visual-card{aspect-ratio:5/4;background:var(--surface-2);border:1px solid var(--border);cursor:pointer;border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;width:min(100%,240px);max-height:180px;transition:transform .12s,box-shadow .12s;display:flex;overflow:hidden;box-shadow:0 6px 20px #00000014}.player-hero-visual-card:active{transform:scale(.98)}.player-hero-photo{object-fit:cover;width:100%;height:100%}.player-hero-illustration{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.player-break-hero{background:linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);flex-direction:column;justify-content:center;align-items:center;gap:.4rem;width:100%;height:100%;padding:1rem;display:flex}.player-break-icon{font-size:2.2rem}.player-break-next-box{flex-direction:column;align-items:center;gap:.1rem;display:flex}.player-next-sub{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.72rem;font-weight:700}.player-next-main{color:var(--text);white-space:nowrap;text-overflow:ellipsis;max-width:200px;font-size:.92rem;font-weight:700;overflow:hidden}.player-timer-strip{background:color-mix(in srgb, var(--surface) 90%, transparent);border:1px solid var(--border);box-sizing:border-box;border-radius:16px;justify-content:center;align-items:center;gap:.75rem;width:100%;padding:.4rem .85rem;display:flex}.player-mini-ring-wrap{flex-shrink:0;justify-content:center;align-items:center;display:flex}.player-ring-inner-time{font-variant-numeric:tabular-nums;color:var(--accent);font-size:1.15rem;font-weight:800}.player-timer-info{text-align:left;flex-direction:column;flex:1;align-items:flex-start;min-width:0;display:flex}.time{font-variant-numeric:tabular-nums;letter-spacing:-.03em;margin-bottom:.1rem;font-size:2.6rem;font-weight:800;line-height:1}.player-cue-text{color:var(--muted);-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:.78rem;line-height:1.35;display:-webkit-box;overflow:hidden}.side-badge{background:var(--accent);color:#fff;letter-spacing:.08em;border-radius:999px;align-items:center;gap:.3rem;padding:.2rem .7rem;font-size:.75rem;font-weight:800;display:inline-flex}.side-badge-neutral{background:var(--surface-2);color:var(--muted);border:1px solid var(--border)}.break-badge{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.player-zoom-modal{flex-direction:column;gap:.75rem;max-width:440px;max-height:90dvh;display:flex}.player-zoom-content{flex-direction:column;align-items:center;gap:.85rem;padding:.25rem 0;display:flex;overflow-y:auto}.player-zoom-ill-wrap{justify-content:center;align-items:center;width:100%;display:flex}.player-zoom-photo{border:1px solid var(--border);border-radius:16px;width:100%;max-width:280px;height:auto;box-shadow:0 4px 16px #0000001f}.player-zoom-desc-box{background:var(--surface-2);border:1px solid var(--border);text-align:left;border-radius:12px;width:100%;padding:.75rem .9rem}.player-zoom-desc-title{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:.35rem;font-size:.76rem;font-weight:700;display:block}.player-zoom-desc-text{color:var(--text);margin:0;font-size:.88rem;line-height:1.45}.player-controls{flex-shrink:0;justify-content:center;align-items:center;gap:1.2rem;display:flex}.player-progress{flex-shrink:0;width:min(100%,26rem)}.progress-track{background:var(--surface-2);border:1px solid var(--border);border-radius:999px;height:.45rem;overflow:hidden}.progress-fill{background:var(--accent);border-radius:inherit;height:100%;transition:width .2s linear}.segment-map{background:color-mix(in srgb, var(--surface) 60%, transparent);border:1px solid var(--border);border-radius:12px;flex-shrink:0;width:min(100%,34rem);padding:.35rem .5rem}.segment-map-list{scrollbar-width:none;-ms-overflow-style:none;gap:.35rem;display:flex;overflow-x:auto}.segment-map-list::-webkit-scrollbar{display:none}.segment-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);font:inherit;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;touch-action:manipulation;border-radius:999px;flex:none;align-items:center;gap:.25rem;max-width:10rem;padding:.25rem .55rem;font-size:.75rem;font-weight:600;display:inline-flex;overflow:hidden}.segment-chip span{font-variant-numeric:tabular-nums}.segment-chip.current{background:var(--accent);border-color:var(--accent);color:#fff}.segment-chip.complete{color:var(--ok)}.ctrl{border:1px solid var(--border);background:var(--surface);width:3.6rem;height:3.6rem;color:var(--text);cursor:pointer;touch-action:manipulation;border-radius:50%;place-items:center;font-size:1.3rem;transition:transform 60ms,background .12s;display:grid}.ctrl:active{transform:scale(.94)}.ctrl.main{background:var(--accent);border-color:var(--accent);color:#fff;width:4.6rem;height:4.6rem;box-shadow:0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent);font-size:1.6rem}.ctrl.main:hover{background:var(--accent-strong)}.finish-overlay{z-index:50;background:color-mix(in srgb, var(--bg) 94%, transparent);-webkit-backdrop-filter:blur(8px);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:2rem;display:flex;position:fixed;inset:0}.finish-icon{font-size:4.2rem}.finish-title{font-size:1.9rem;font-weight:800}.stats-grid{grid-template-columns:repeat(2,1fr);gap:.65rem;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:.9rem}.stat-num{font-variant-numeric:tabular-nums;margin:.15rem 0;font-size:1.8rem;font-weight:800}.calendar{grid-template-columns:repeat(7,1fr);gap:.35rem;margin-top:.75rem;display:grid}.cal-day{aspect-ratio:1;background:var(--surface-2);border:1px solid var(--border);color:var(--muted);border-radius:8px;place-items:center;font-size:.72rem;display:grid}.cal-day.done{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}.cal-day.today{outline:2px solid var(--accent);outline-offset:1px}.settings-group{padding:.35rem 0}.settings-group+.settings-group{border-top:1px solid var(--border);margin-top:.65rem;padding-top:.65rem}.settings-group h3{text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:.4rem 0;font-size:.85rem}.player-test-hud{background:color-mix(in srgb, var(--accent) 10%, var(--surface));border:1px solid color-mix(in srgb, var(--accent) 35%, var(--border));border-radius:12px;flex-shrink:0;justify-content:space-between;align-items:center;gap:.5rem;width:min(100%,30rem);margin-bottom:.2rem;padding:.35rem .6rem;display:flex}.test-hud-label{color:var(--accent-strong);letter-spacing:.04em;white-space:nowrap;font-size:.72rem;font-weight:800}.test-hud-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.35rem;display:flex}.speed-selector{background:var(--surface-2);border-radius:8px;gap:2px;padding:2px;display:inline-flex}.speed-btn{color:var(--muted);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:.15rem .4rem;font-size:.72rem;font-weight:700;line-height:1}.speed-btn.active{background:var(--accent);color:#fff}.test-btn{min-height:24px!important;padding:.2rem .45rem!important;font-size:.75rem!important}.snapshots-list{flex-direction:column;gap:.4rem;margin-top:.4rem;display:flex}.snapshot-item{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem .65rem;display:flex}@media (width<=480px){.time{font-size:2.9rem}.routine-tools{flex-direction:column}.routine-heading-actions{justify-content:space-between;width:100%}.routine-heading-actions>*{text-align:center;flex:1}.routine-card-actions{width:100%}.routine-card-actions>.btn{flex:1}}
