:root{color-scheme:dark;--bg:#101112;--surface:#191a1b;--surface-raised:#202123;--border:#2c2e30;--text:#e5e5e3;--muted:#8b8d8e;--accent:#c2c5be;--mono:ui-monospace,SFMono-Regular,Menlo,monospace;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html{min-height:100%}body,html{background:var(--bg)}body{margin:0;color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #deded8;outline-offset:3px}.app-shell{min-height:100svh;width:100%;margin:0 auto;padding:0 clamp(12px,1.5vw,28px)}.topbar{height:58px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #242526}.topbar-title{flex:1 1;min-width:0;padding:0 20px;overflow:hidden;color:#777a7b;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.header-actions{position:relative;display:flex;align-items:center;gap:7px}.wordmark{color:#d7d8d4;text-decoration:none;font:600 11px var(--mono);letter-spacing:.2em}.text-button{height:32px;display:inline-flex;align-items:center;gap:8px;padding:0 11px;background:var(--surface-raised);border:1px solid var(--border);border-radius:4px;color:#c6c7c4;font-size:11px;cursor:pointer}.analyze-button:hover,.primary-button:hover,.text-button:hover{background:#2b2d2f}.text-button.active{color:#f0f0eb;background:#3b3d3e;border-color:#66696a}.primary-button svg,.text-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}.mirror-button svg{width:15px;height:15px}.mirror-button.active{color:#f0f0eb;background:#3b3d3e;border-color:#66696a}.video-library-menu{position:absolute;z-index:20;top:calc(100% + 7px);right:0;width:min(320px,84vw);max-height:min(65vh,440px);overflow:auto;padding:6px;background:#1a1b1c;border:1px solid #363839;border-radius:5px;box-shadow:0 14px 36px #0009}.library-add,.library-entry,.library-remove{border:0;color:#d2d3cf;background:transparent;cursor:pointer}.library-add{width:100%;display:flex;align-items:center;gap:8px;padding:9px;border-radius:3px;text-align:left;font-size:10px}.library-add:hover,.library-entry:hover,.library-remove:hover{background:#292b2c}.library-add svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7}.library-divider{height:1px;margin:4px 0;background:#303233}.library-empty{display:block;padding:12px 9px;color:#858887;font-size:10px}.library-row{display:flex;align-items:center;gap:3px}.library-entry{flex:1 1;min-width:0;overflow:hidden;padding:9px;border-radius:3px;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.library-remove{width:28px;height:28px;border-radius:3px;color:#8d8f8d;font-size:16px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-gap:14px;gap:14px;padding:22px 0 34px}.practice-column{min-width:0}.video-stage{width:100%}.video-stage.with-selfie{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);grid-gap:8px;gap:8px;align-items:stretch}.video-frame{width:100%;height:min(65vw,70svh);min-height:280px;position:relative;overflow:hidden;background:#050505;border:1px solid #252627;border-radius:4px}.video-stage.with-selfie .video-frame{height:auto;min-height:0;max-height:70svh;aspect-ratio:16/9}.video-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#050505}.video-frame video.is-mirrored{transform:scaleX(-1)}.selfie-frame{position:relative;min-width:0;min-height:0;overflow:hidden;background:#050505;border:1px solid #252627;border-radius:4px}.selfie-video{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;transform:scaleX(-1)}.selfie-caption{position:absolute;bottom:8px;left:8px;padding:4px 5px;color:#ecece8;background:#101112b8;border-radius:2px;font:8px var(--mono);letter-spacing:.08em;pointer-events:none}.welcome-card{height:100%;display:grid;place-items:center;background:#090a0a}.welcome-content{display:grid;place-items:center}.primary-button{display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 14px;color:#e3e3df;background:#202122;border:1px solid #383a3b;border-radius:4px;font-size:11px;cursor:pointer}.timeline-timecodes{display:flex;justify-content:space-between;margin:0 7px;color:#858787;font:9px var(--mono)}.timeline-current{display:inline-flex;align-items:center;gap:10px}.timeline-current>span{color:#b5b6b2}.transport{padding:3px 0 0}input[type=range]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:100%;height:16px;margin:0;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:2px;border-radius:4px;background:linear-gradient(to right,#c8cac4 var(--range-progress,0),#3b3d3e var(--range-progress,0))}input[type=range]::-moz-range-track{height:2px;background:#3b3d3e}input[type=range]::-moz-range-progress{height:2px;background:#c8cac4}input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;margin-top:-4px;border:1px solid #0e0f10;border-radius:50%;background:#d5d6d1}input[type=range]::-moz-range-thumb{width:8px;height:8px;border:1px solid #0e0f10;border-radius:50%;background:#d5d6d1}.control-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;grid-gap:18px;gap:18px;padding-top:11px}.speed-controls{display:flex;align-items:center;gap:2px}.control-label{margin-right:7px;color:#77797a;font:8px var(--mono);letter-spacing:.1em}.speed-controls>button{padding:6px 7px;color:#929494;background:transparent;border:0;border-radius:3px;font:10px var(--mono);cursor:pointer}.speed-controls>button.active{color:#e2e2de;background:#2c2d2e}.custom-speed{display:flex;align-items:center;gap:7px;margin-left:6px;padding-left:9px;border-left:1px solid #333536}.custom-speed input{width:65px}.custom-speed input::-webkit-slider-thumb{width:8px;height:8px;margin-top:-3px;background:#c5c7c0;border:0}.custom-speed span{min-width:34px;color:#9b9c9b;font:9px var(--mono)}.center-controls{display:flex;align-items:center;gap:14px}.play-button{width:33px;height:33px;display:grid;place-items:center;color:#161718;background:#d0d1cc;border:0;border-radius:50%;cursor:pointer}.play-button:hover{background:#f0f0eb}.play-button svg{width:15px;height:15px;fill:currentColor;stroke:currentColor}.play-button svg path{stroke-width:1}.skip-button{position:relative;width:30px;height:30px;display:grid;place-items:center;padding:0;color:#b5b6b3;background:none;border:0;cursor:pointer}.skip-button:disabled{opacity:.35;cursor:default}.skip-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}.skip-button svg path:first-child{fill:currentColor;stroke:none}.skip-button .reverse-icon{transform:scaleX(-1)}.counts-hint{color:#767879;font:9px var(--mono);white-space:nowrap}.counts-hint>span:not(.count-dot){margin:0 4px;color:#555758}.count-dot{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:#c7c9c2}.tools-column{display:block}.panel{min-width:0;padding:13px 14px;background:var(--surface);border:1px solid #292b2c;border-radius:4px}.beat-panel{max-width:390px}.panel-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}.panel-icon{width:24px;height:24px;display:grid;place-items:center;color:#b5b7b1;background:#292a2b;border-radius:3px}.panel-icon svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.5}.panel-heading .eyebrow{display:none}.panel-heading h2{margin:0;color:#d7d8d4;font-size:11px;font-weight:500}.tempo-display{display:flex;align-items:center;justify-content:space-between;gap:9px}.tempo-input-wrap{display:flex;align-items:center;gap:8px;color:#777a7b;font:9px var(--mono)}.tempo-input-wrap input{width:72px;height:31px;padding:0 8px;color:#e3e3df;background:#111213;border:1px solid #343637;border-radius:3px;font:14px var(--mono)}.tempo-input-wrap input::placeholder{color:#66696a}.tempo-input-wrap input::-webkit-inner-spin-button{opacity:.35}.analyze-button{height:31px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;color:#d5d6d1;background:#282a2b;border:1px solid #3a3c3d;border-radius:3px;font-size:10px;cursor:pointer}.analyze-button:disabled{opacity:.5;cursor:default}.analyze-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7}.stop-analysis{margin-top:8px;padding:0;color:#a6a7a4;background:none;border:0;font-size:9px;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.analysis-status{margin:8px 0 0;color:#9b9d9a;font-size:9px;line-height:1.4}.offset-row{display:flex;align-items:center;gap:6px;padding-top:8px;color:#777a7b;font:8px var(--mono)}.offset-row>span:first-child{margin-right:auto}.offset-value{color:#b5b6b2}.offset-row button{width:19px;height:19px;color:#b6b8b2;background:#252627;border:1px solid #353738;border-radius:3px;cursor:pointer}.meter-row{display:flex;align-items:center;justify-content:space-between;margin-top:9px;padding-top:8px;color:#777a7b;border-top:1px solid #2a2c2d;font:8px var(--mono)}.segmented-control{display:flex;gap:2px;padding:2px;background:#111213;border-radius:3px}.segmented-control button{padding:4px 8px;color:#898b8a;background:none;border:0;border-radius:2px;font:9px var(--mono);cursor:pointer}.segmented-control button.selected{color:#e1e2de;background:#303233}.loop-editor{margin:0 0 12px}.loop-controls{display:grid;grid-template-columns:minmax(155px,.5fr) minmax(260px,1.5fr) auto;align-items:center;grid-gap:12px;gap:12px;padding:8px 10px;background:var(--surface);border:1px solid #292b2c;border-radius:4px}.bar-select-row{padding:7px 0;color:#777a7b;border-top:1px solid #2a2c2d;border-bottom:1px solid #2a2c2d;font:8px var(--mono)}.bar-select-row,.bar-stepper{display:flex;align-items:center;gap:8px}.bar-stepper{margin-left:auto}.bar-stepper button{width:20px;height:20px;padding:0;color:#c1c2bd;background:#252627;border:1px solid #383a3b;border-radius:3px;cursor:pointer}.bar-stepper button:disabled{opacity:.4;cursor:default}.bar-stepper strong{min-width:34px;color:#d7d8d4;text-align:center;font:10px var(--mono)}.bar-stepper small{color:#888a89;font:8px var(--sans)}.loop-length{min-width:28px;color:#888a89;text-align:right;font:8px var(--mono)}.loop-actions{display:grid;grid-template-columns:1fr 1fr;grid-gap:6px;gap:6px}.mark-button{min-width:0;height:32px;display:flex;align-items:center;gap:8px;padding:0 8px;color:#c6c7c2;background:#202122;border:1px solid #303233;border-radius:3px;text-align:left;cursor:pointer}.mark-button:disabled{opacity:.45;cursor:default}.mark-button strong{overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:400;white-space:nowrap}.mark-letter{width:18px;height:18px;flex:none;display:grid;place-items:center;color:#d6d7d2;background:#37393a;border-radius:50%;font:8px var(--mono)}.mark-b{color:#d6d7d2;background:#45403d}.loop-track{height:24px;position:relative;margin:4px 5px 0}.timeline-rail{position:absolute;inset:0 1px}.track-line{position:absolute;top:12px;right:0;left:0;height:2px;background:#37393a;border-radius:3px}.track-ticks{position:absolute;inset:0;pointer-events:none}.track-ticks i{position:absolute;top:5px;width:1px;height:15px;background:#555758}.loop-active .track-line{background:#555751}.loop-region{position:absolute;top:10px;height:6px;background:#9fa29a;border-radius:5px}.loop-region span{position:absolute;top:-11px;color:#bfc1bb;font:7px var(--mono)}.loop-region span:first-child{left:0}.loop-region span:last-child{right:0}.timeline-seek{position:absolute;z-index:4;inset:0;width:100%;height:24px!important;padding:0}.timeline-seek::-webkit-slider-runnable-track{height:2px;background:transparent}.timeline-seek::-moz-range-track{height:2px;background:transparent}.timeline-seek::-webkit-slider-thumb{width:2px;height:20px;margin-top:-9px;border:0;border-radius:1px;background:#f2f2ed}.timeline-seek::-moz-range-thumb{width:2px;height:20px;border:0;border-radius:1px;background:#f2f2ed}.timeline-seek:disabled{cursor:default}.loop-footer{min-height:17px;justify-content:space-between;color:#858785;font:8px var(--mono)}.loop-footer,.loop-footer>span{display:flex;align-items:center}.loop-footer>span{gap:5px}.loop-footer button{padding:2px 0 2px 8px;color:#989a96;background:none;border:0;font-size:8px;cursor:pointer}.loop-status-dot{width:5px;height:5px;background:#bfc1bb;border-radius:50%}.saved-sections{margin-top:8px;padding:8px 10px;background:var(--surface);border:1px solid #292b2c;border-radius:4px}.saved-sections-heading{display:flex;align-items:center;justify-content:space-between;color:#777a7b;font:8px var(--mono)}.saved-sections-heading button{padding:4px 7px;color:#c6c7c2;background:#252627;border:1px solid #383a3b;border-radius:3px;font:9px var(--sans);cursor:pointer}.saved-sections-heading button:disabled{opacity:.45;cursor:default}.saved-sections ol{display:grid;grid-gap:4px;gap:4px;margin:7px 0 0;padding:0;list-style:none}.saved-sections li{display:flex;align-items:center;gap:4px}.saved-section-load{flex:1 1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;color:#d2d3cf;background:#202122;border:1px solid #303233;border-radius:3px;text-align:left;cursor:pointer}.saved-section-load:disabled{opacity:.45;cursor:default}.saved-section-load strong{font-size:9px;font-weight:500}.saved-section-load span{overflow:hidden;color:#8f918f;font:8px var(--mono);text-overflow:ellipsis;white-space:nowrap}.saved-section-delete{width:28px;height:28px;color:#999b99;background:transparent;border:0;border-radius:3px;font-size:16px;cursor:pointer}.saved-section-delete:hover{background:#292b2c}.saved-sections>p{margin:8px 0 1px;color:#777a7b;font-size:9px}.inline-error{margin:8px 0 0;padding:8px 10px;color:#e2b0a8;background:#281d1b;border:1px solid #47302d;border-radius:3px;font-size:10px}@media (min-width:1500px){.video-frame{height:min(66vw,75svh)}}@media (max-width:760px){.app-shell{padding:0 14px}.topbar{height:52px}.workspace{gap:12px;padding:14px 0 22px}.video-frame{height:min(56.25vw,56svh);min-height:210px;border-radius:3px}.video-stage.with-selfie{grid-template-columns:minmax(0,2.5fr) minmax(0,1fr);gap:5px}.video-stage.with-selfie .video-frame{height:auto;min-height:0;max-height:56svh;border-radius:3px}.selfie-frame{border-radius:3px}.header-actions{gap:4px}.text-button{gap:5px;padding-inline:8px}.menu-chevron,.text-button span:not(.menu-chevron),.topbar-title{display:none}.control-row{grid-template-columns:1fr auto;gap:7px;padding-top:7px}.speed-controls{grid-column:1;grid-row:1}.center-controls{grid-column:2;grid-row:1;gap:9px}.counts-hint{display:none}.custom-speed input{width:42px}.tools-column{display:block}.panel{padding:11px 12px}.loop-controls{grid-template-columns:1fr 1.4fr;gap:8px}.bar-select-row{grid-column:1/-1}.loop-footer{justify-self:end}}@media (max-width:380px){.control-label{display:none}.speed-controls>button{padding-inline:5px}.custom-speed{margin-left:2px;padding-left:6px}.custom-speed input{width:35px}.video-frame{min-height:190px}}