.graph{--erg:#4c8ed9;--sim:#e8833a;--resistance:#8e6cc9;--free:#9aa4ae;--grid:#eaeef2;--ftp-line:#8c959f;--label:#59636e;--step-edge:#fff;--mark:#1f2328;--now:#1f2328;margin:0 0 24px}.graph.dark{--grid:#2a3038;--ftp-line:#6e7781;--label:#8b949e;--step-edge:#0d1117;--mark:#c9d1d9;--now:#fff}.graph svg{width:100%;height:auto;font-size:11px;display:block}.graph .grid line{stroke:var(--grid)}.graph .grid.ftp line{stroke:var(--ftp-line);stroke-dasharray:4 3}.graph .grid text,.graph .axis{fill:var(--label)}.graph .step{stroke:var(--step-edge);stroke-width:.5px;cursor:default}.graph .step.hovered{filter:brightness(.8)}.graph svg.clickable .step{cursor:pointer}.graph svg.highlighting .step:not(.selected){opacity:.35}.graph .step.selected{stroke:var(--mark);stroke-width:1px}.graph .event line{stroke:var(--mark);stroke-dasharray:2 3}.graph .event text{fill:var(--mark);font-weight:600}.graph .failure path{fill:none;stroke:var(--mark);stroke-width:1.5px}.graph .failure text{fill:var(--mark);paint-order:stroke;stroke:var(--step-edge);stroke-width:3px;font-size:11px;font-weight:600}.graph .now{stroke:var(--now);stroke-width:2px}.graph .mode-erg{fill:var(--erg);background:var(--erg)}.graph .mode-sim{fill:var(--sim);background:var(--sim)}.graph .mode-resistance{fill:var(--resistance);background:var(--resistance)}.graph .mode-free{fill:var(--free);background:var(--free)}.graph figcaption{justify-content:space-between;gap:16px;margin-top:8px;font-size:14px;display:flex}.graph .legend{gap:12px;display:flex}.graph .swatch{border-radius:2px;width:10px;height:10px;display:inline-block}.graph .hover-info{color:var(--label);text-align:right}:root{color:#1f2328;--erg:#4c8ed9;--sim:#e8833a;--resistance:#8e6cc9;--free:#9aa4ae;--out:#f2c94c;--power-line:#fff;--cadence-line:#2ec4b6;--heart-rate-line:#f85149;background:#f6f8fa;font-family:system-ui,sans-serif;font-size:16px}body{margin:0}.player{box-sizing:border-box;max-width:900px;min-height:100vh;margin:0 auto;padding:24px}.player.dragging{outline-offset:-12px;outline:3px dashed #0969da}.player header{justify-content:space-between;align-items:center;gap:16px;display:flex}.player h1{margin:0;font-size:22px}.player .brand{align-items:baseline;gap:12px;display:flex}.player .tagline{color:#59636e}.open{color:#fff;cursor:pointer;background:#0969da;border-radius:6px;padding:10px 18px;font-weight:500}.open:hover{background:#0550ae}.open input{display:none}.hint{color:#59636e}.mode-erg{background:var(--erg)}.mode-sim{background:var(--sim)}.mode-resistance{background:var(--resistance)}.mode-free{background:var(--free)}.problems h2{color:#cf222e}.problems li{margin-bottom:8px}.problems code{background:#fff8c5;border-radius:4px;padding:1px 4px}.profile{background:#fff;border:1px solid #d1d9e0;border-radius:8px;margin-top:32px;padding:16px 20px}.profile h2{margin:0 0 12px;font-size:18px}.number-field label{align-items:center;gap:8px;font-weight:500;display:inline-flex}.number-field input{font:inherit;border:1px solid #d1d9e0;border-radius:6px;padding:6px 8px}.number-field input:focus::placeholder{color:#0000}.number-field input.invalid{border-color:#cf222e;outline-color:#cf222e}.number-field .field-error{color:#cf222e;margin-left:12px;font-size:14px}.profile .hint{margin:8px 0 0;font-size:14px}.profile .hint:not(:last-child){margin-bottom:20px}.player.pre-ride{max-width:1080px}.pre-ride header{align-items:flex-start}.pre-ride .description{color:#59636e;margin:6px 0 0}.pre-ride button{font:inherit;cursor:pointer;border-radius:6px;font-weight:500}.pre-ride button.secondary{color:#1f2328;background:#fff;border:1px solid #d1d9e0;padding:8px 16px}.pre-ride button.secondary:hover{background:#eaeef2}.pre-ride .headline{gap:40px;margin:20px 0;display:flex}.pre-ride .edit-in-builder{color:#0969da;align-self:flex-end;margin-left:auto;text-decoration:none}.pre-ride .edit-in-builder:hover{text-decoration:underline}.pre-ride .headline dt{color:#59636e;font-size:14px}.pre-ride .headline dd{font-variant-numeric:tabular-nums;margin:0;font-size:28px;font-weight:700}.pre-ride .columns{grid-template-columns:minmax(0,1fr) 360px;align-items:start;gap:24px;display:grid}.pre-ride h2{margin:0 0 12px;font-size:18px}.pre-ride .steps,.pre-ride .devices{background:#fff;border:1px solid #d1d9e0;border-radius:8px;padding:16px 20px}.pre-ride .step-list{font-variant-numeric:tabular-nums;padding:0}.pre-ride .step-list .header,.pre-ride .step-list .folded{color:#59636e}.pre-ride .side{flex-direction:column;gap:16px;display:flex}.pre-ride .devices p{color:#59636e;margin:0}.pre-ride .devices p+p{margin-top:8px}.pre-ride .devices strong{color:#1f2328}.pre-ride .devices .device+.device{border-top:1px solid #eaeef2;margin-top:14px;padding-top:14px}.pre-ride .devices .note{font-size:14px}.pre-ride .devices .warning{color:#7d4e00;background:#fff8c5;border-radius:6px;padding:6px 10px}.pre-ride .dot{background:#9aa4ae;border-radius:50%;width:9px;height:9px;margin-right:8px;display:inline-block}.pre-ride .dot.on{background:#1f883d}.pre-ride .device-buttons{align-items:center;gap:12px;margin-top:12px;display:flex}.pre-ride .other-devices{border-top:1px dashed #eaeef2;margin:12px 0 0;padding:10px 0 0;list-style:none}.pre-ride .other-devices li{align-items:baseline;gap:12px;margin-top:6px;display:flex}.pre-ride .other-devices li:first-child{margin-top:0}.player button.link{font:inherit;color:#0969da;cursor:pointer;background:0 0;border:none;padding:0}.player button.link:hover{text-decoration:underline}.pre-ride .trainer-settings{border-top:1px solid #d1d9e0;margin-top:16px;padding-top:12px}.pre-ride .trainer-settings summary{color:#59636e;cursor:pointer;font-size:14px;font-weight:500}.pre-ride .trainer-settings .note{margin:8px 0}.pre-ride .trainer-settings .number-field{margin-top:8px;font-size:14px;display:block}.pre-ride .trainer-settings .number-field label{font-weight:400}.pre-ride .profile{margin:0}.pre-ride .setting{align-items:center;gap:8px;font-size:15px;display:flex}.pre-ride .no-recording,.pre-ride .no-cadence{color:#7d4e00;background:#fff8c5;border-radius:6px;margin:0 0 -8px;padding:8px 12px;font-size:14px}.pre-ride button.start{color:#fff;background:#1f883d;border:none;border-radius:8px;padding:16px;font-size:22px;font-weight:700}.pre-ride button.start:hover{background:#1a7f37}.ride{box-sizing:border-box;color:#e6edf3;font-variant-numeric:tabular-nums;background:#0b0f14;grid-template-rows:minmax(0,1fr) clamp(190px,30vh,300px);grid-template-columns:272px minmax(0,1fr) 272px;gap:16px;padding:16px;display:grid;position:fixed;inset:0}.ride .muted{color:#9aa4b2;font-size:15px}.ride .panel{background:#151b23;border:1px solid #2a313c;border-radius:10px;padding:10px 14px}.ride .big-number{font-size:30px;font-weight:700}.ride .value{flex-direction:column;display:flex}:where(.ride) button{color:#fff;font:inherit;cursor:pointer;background:#21262d;border:1px solid #3d444d;font-weight:700}.ride button:disabled{cursor:default;opacity:.45}.ride .left,.ride .right{flex-direction:column;gap:12px;min-height:0;display:flex}.ride .so-far{grid-template-columns:1fr 1fr;gap:8px;display:grid}.step-list{margin:0;padding:6px;list-style:none}.step-list li{border-radius:6px;align-items:center;gap:8px;height:28px;padding-right:8px;font-size:16px;font-weight:500;display:flex}.step-list .label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.step-list .header,.step-list .folded{font-size:15px;font-weight:600}.step-list .current{font-weight:700}.step-list .bar{border-radius:2px;flex-shrink:0;width:5px;height:16px}.ride .step-list{flex:1;min-height:0;position:relative;overflow:hidden}.ride .step-list .header,.ride .step-list .folded{color:#9aa4b2}.ride .step-list .done{color:#8b949e}.ride .step-list .current{background:#24364f}.ride .bar{border-radius:2px;flex-shrink:0;width:5px;height:16px}.ride .tick{color:#3fb950}.ride .scope{flex-direction:column;gap:6px;display:flex}.ride .adjust{justify-content:space-between;align-items:center;gap:8px;display:flex}.ride button.small{border-radius:12px;width:60px;height:60px;font-size:40px}.ride .center{flex-direction:column;justify-content:space-between;gap:12px;min-height:0;display:flex}.ride .live{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 8px;display:grid}.ride .live-value{flex-direction:column;align-items:center;display:flex}.ride .live-value+.live-value{border-left:1px solid #2a313c}.ride .reading{font-size:76px;font-weight:700;line-height:1}.ride .unit{font-size:22px;font-weight:600}.ride .target{color:#c9d1d9;margin-top:6px;font-size:19px}.ride .live-value.out .reading,.ride .live-value.out .status{color:var(--out)}.ride .status{margin-right:8px;font-weight:700}.ride .cue{text-align:center;justify-content:center;align-items:center;min-height:64px;padding:0 12px;font-size:30px;font-weight:600;line-height:1.2;display:flex}.ride .this-interval{flex-direction:column;align-items:center;gap:8px;display:flex}.ride .this-interval .adjust{gap:28px}.ride button.huge{background:#16273d;border:2px solid #4c8ed9;border-radius:28px;width:136px;height:136px;font-size:84px;line-height:1}.ride .setting{text-align:center;flex-direction:column;align-items:center;width:190px;display:flex}.ride .setting-value{font-size:52px;font-weight:700;line-height:1.05}.ride .note{font-size:14px}.ride .current-step{flex-direction:column;gap:8px;display:flex}.ride .title{justify-content:space-between;align-items:center;gap:8px;display:flex}.ride .name{font-size:20px;font-weight:600}.ride .badge{color:#0b0f14;border-radius:4px;padding:2px 8px;font-size:15px;font-weight:700}.ride .step-target{font-size:40px;font-weight:700;line-height:1.1}.ride .step-target.ramp{white-space:nowrap;font-size:30px}.ride .progress{background:#2a313c;border-radius:7px;height:14px;overflow:hidden}.ride .progress div{height:100%}.ride .times{justify-content:space-between;display:flex}.ride .times .value:last-child{align-items:flex-end}.ride .modes{flex-direction:column;gap:6px;display:flex}.ride .mode-buttons{grid-template-columns:1fr 1fr;gap:6px;display:grid}.ride .mode-buttons button{border-radius:8px;height:44px;font-size:17px;font-weight:600}.ride .mode-buttons button.on{color:#0b0f14;opacity:1}.ride .next{flex-direction:column;gap:2px;display:flex}.ride .next-step{align-items:center;gap:8px;font-size:20px;font-weight:600;display:flex}.ride .ride-buttons{gap:8px;display:flex}.ride button.shot{border-radius:10px;width:56px;height:56px;font-size:22px}.ride .shot-message{z-index:20;color:#e6edf3;background:#151b23e6;border:1px solid #2a313c;border-radius:8px;padding:8px 14px;font-size:16px;position:fixed;top:16px;right:16px}.ride .lost-devices{z-index:20;color:#1f2328;background:#f0b72f;border-radius:10px;padding:10px 18px;font-size:22px;font-weight:600;position:fixed;top:16px;left:50%;transform:translate(-50%)}.ride .lost-devices p{align-items:center;gap:16px;margin:0;display:flex}.ride .lost-devices p+p{margin-top:8px}.ride .lost-devices button{color:#fff;background:#1f2328;border:none;border-radius:8px;height:44px;padding:0 18px;font-size:20px}.ride .save-screenshots{margin:16px 0 0}.ride .save-screenshots button{border-radius:10px;height:44px;padding:0 18px;font-size:16px}.ride button.pause{border-radius:10px;flex:1;height:56px;font-size:22px}.ride button.end-test{border:2px solid #e6edf3;border-radius:10px;height:56px;font-size:22px}.ride button.close{color:#c9d1d9;border-radius:10px;height:56px;padding:0 14px;font-size:16px;font-weight:500}.ride .graph-strip{background:#10161e;border-radius:10px;flex-direction:column;grid-column:1/4;display:flex;position:relative;overflow:hidden}.ride .strip-row{align-items:baseline;gap:20px;padding:0 12px 6px;display:flex}.ride .strip-graph{flex:1;min-height:0}.ride .graph-strip .graph{margin:0}.ride .clock{align-items:baseline;gap:8px;display:flex}.ride .clock .muted{font-size:13px}.ride .clock .big-number{font-size:32px;line-height:1}.ride .clock.elapsed{flex-direction:row-reverse}.ride .clock.remaining{margin-left:auto}.ride .ride-lines polyline{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;pointer-events:none}.ride .ride-lines .edge{stroke:#0b0f14b3;stroke-width:4px}.ride .ride-lines .power{stroke:var(--power-line)}.ride .ride-lines .cadence{stroke:var(--cadence-line)}.ride .ride-lines .heart-rate{stroke:var(--heart-rate-line)}.ride .line-key{gap:12px;font-size:13px;display:flex}.ride .line-key .swatch{vertical-align:middle;border-radius:2px;width:14px;height:3px;margin-right:2px;display:inline-block}.ride .line-key .swatch.power{background:var(--power-line)}.ride .line-key .swatch.cadence{background:var(--cadence-line)}.ride .line-key .swatch.heart-rate{background:var(--heart-rate-line)}.ride .dev-speed{background:#0b0f14d9;border:1px dashed #e3b341;border-radius:8px;align-items:center;gap:4px;padding:3px 6px;display:flex;position:absolute;top:6px;left:50%;transform:translate(-50%)}.ride .dev-speed .muted{color:#e3b341;margin-right:4px;font-size:13px}.ride .dev-speed button{border-radius:6px;padding:2px 8px;font-size:13px}.ride .dev-speed button.on{color:#0b0f14;background:#e3b341;border-color:#e3b341}.ride .dialog{z-index:10;background:#0b0f1499;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.ride .confetti{z-index:1;pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.ride .dialog-box{text-align:center;background:#151b23;border:1px solid #2a313c;border-radius:16px;max-width:680px;padding:32px 40px;box-shadow:0 12px 40px #00000080}.ride .dialog h2{margin:0 0 8px;font-size:44px}.ride .dialog p{margin:8px 0;font-size:20px;line-height:1.4}.ride .dialog-buttons{justify-content:center;gap:12px;margin-top:24px;display:flex}.ride .dialog-buttons button{white-space:nowrap;border-radius:10px;height:56px;padding:0 24px;font-size:18px}.ride .dialog-buttons button.primary{background:#1f6feb;border-color:#388bfd}.ride .portrait-note{display:none}@media (orientation:portrait){.ride .portrait-note{text-align:center;background:#0b0f14;justify-content:center;align-items:center;padding:32px;font-size:28px;display:flex;position:fixed;inset:0}}.player .unsaved-ride{background:#fff8c5;border:1px solid #d4a72c;border-radius:8px;margin:16px 0;padding:14px 18px}.player .unsaved-ride p{margin:0}.player .unsaved-ride-buttons{align-items:center;gap:16px;margin-top:10px;display:flex}.player .unsaved-ride button.save,.player.error-screen button.primary{font:inherit;color:#fff;cursor:pointer;background:#1f883d;border:none;border-radius:6px;padding:8px 16px;font-weight:500}.player.error-screen{max-width:560px;margin:0 auto;padding:48px 16px}
