:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#17312d;background:#f3f2eb;font-synthesis:none;--green:#195e4e;--muted:#65756d;--line:#dce2d7}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:#fff;color:inherit;cursor:pointer;font-weight:600}button:hover{background:#edf3ed}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#104c3d}button.danger{color:#a13b32}a{color:var(--green)}input,select{min-width:0;min-height:44px;padding:11px 12px;border:1px solid #ccd5cb;border-radius:8px;background:#fff;color:inherit;width:100%}input:focus,button:focus-visible,select:focus{outline:3px solid #b6d79e;outline-offset:2px}label{display:block;font-size:12px;font-weight:650;margin:12px 0 7px}.muted{font-weight:400;color:var(--muted)}header{background:#122b27;color:#f3f5eb;display:flex;align-items:center;justify-content:space-between;padding:23px 5%;gap:20px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:29px;font-weight:720;letter-spacing:-1px}.logo{background:#c5e5a7;color:#15382f;border-radius:12px;width:44px;height:44px;text-align:center;font-size:35px;line-height:40px}.brand-sub{font-size:9px;letter-spacing:2px;font-weight:500;border-left:1px solid #566c60;padding-left:20px;margin-left:10px}.backup{display:flex;gap:8px}.backup button{background:transparent;border-color:#456058;color:#e3eddf;font-size:12px}main{max-width:1500px;margin:auto;padding:38px 5% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:#718265}h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1px;font-size:38px;margin:8px 0 12px}.intro p{font-size:14px;color:var(--muted);margin:0}.local-badge{font-size:11px;color:#4b6c4b;background:#e7eddc;padding:9px 13px;border-radius:20px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;align-items:start}.panel{background:#fffefa;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 4px 18px #263e2810}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}h2{font-size:18px;margin:4px 0;font-weight:650;letter-spacing:-.4px}.pill{font-size:10px;background:#eef0e8;padding:6px 9px;border-radius:20px;white-space:nowrap}.add-row,.filter-row{display:flex;gap:8px}.filter-row{margin:22px 0 18px;padding-top:20px;border-top:1px solid var(--line)}.filter-row input{font-size:12px}.filter-row button[aria-pressed=true]{background:#e4efcc}.library-foot{font-family:Georgia,serif;font-style:italic;color:#8a9784;text-align:center;font-size:13px;margin:25px 0 0}.video-card{border:1px solid var(--line);border-radius:10px;margin-bottom:12px;overflow:hidden;background:white}.video-card.selected{border-color:#478464;box-shadow:0 0 0 1px #478464}.video-main{border:0;border-radius:0;display:block;width:100%;padding:0;text-align:left}.video-main img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#233c32}.video-main strong{display:block;padding:12px 12px 4px;font-size:13px;overflow-wrap:anywhere}.video-bottom{display:flex;justify-content:space-between;align-items:center;padding:0 7px 4px 12px;font-size:11px;color:var(--muted)}.video-bottom button{border:0;padding:5px 12px;background:transparent}.practice{display:grid;gap:20px}.player-panel{padding-bottom:12px}.player-panel .section-title a{font-size:12px;white-space:nowrap}.player-panel h2{overflow-wrap:anywhere}#player-shell{position:relative;aspect-ratio:16/9;min-height:210px;background:#142e28;border-radius:10px;overflow:hidden}#player,#player-shell iframe{width:100%;height:100%;position:absolute;inset:0;border:0}#welcome{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#e1ebd7;background:radial-gradient(ellipse at top,#365441,#132e28 70%);text-align:center;padding:15px}#welcome[hidden]{display:none}.big-loop{font-size:76px;color:#b6d394;line-height:1.2}h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:14px 0 0}#welcome p{font-size:13px;color:#aabda9;line-height:1.8}.transport{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:15px}.transport button{font-size:12px}#clock{font-variant-numeric:tabular-nums;font-size:14px;margin-left:8px}.speed-label{display:flex;align-items:center;gap:10px;margin:0 0 0 auto;color:var(--muted)}.speed-label select{width:85px}.status,.hint{font-size:11px;color:var(--muted);line-height:1.7}.status{margin:12px 0 0}#clips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.clip-tab{text-align:left;font-size:12px;flex:1 1 150px}.clip-tab small{display:block;color:var(--muted);font-weight:400;margin-top:5px}.clip-tab.active{border-color:#63925c;background:#edf3e2}fieldset{border:0;padding:0;margin:0}.time-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.time-row{display:flex;gap:7px}.time-row input{font-variant-numeric:tabular-nums}.time-row button{font-size:11px;white-space:nowrap}.editor-actions{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:10px}.editor-actions>div{display:flex;gap:8px}.check{display:flex;align-items:center;gap:9px;margin:0}.check input{width:19px;height:19px;min-height:19px;accent-color:var(--green)}.help{font-size:12px;color:var(--muted);line-height:1.8;margin:25px 0}.help summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;width:max-content;padding:14px 22px;background:#173c31;color:white;border-radius:12px;box-shadow:0 8px 30px #0003;z-index:10;font-size:13px}#notice:empty{display:none}footer{max-width:1500px;margin:15px auto 0;padding:20px 5% 30px;border-top:1px solid var(--line);font-size:10px;letter-spacing:2px;color:#6b7e68;display:flex;justify-content:space-between}footer span{letter-spacing:0}.empty{font-size:13px;color:var(--muted);line-height:1.8;padding:12px 0}
@media(max-width:950px){.workspace{grid-template-columns:250px minmax(0,1fr);gap:16px}.panel{padding:16px}.time-fields{grid-template-columns:1fr}.brand-sub{display:none}.local-badge{display:none}main{padding:28px 3% 0}.transport #clock{margin-left:0}}
@media(max-width:680px){header{padding:16px 4%}.brand{font-size:24px}.backup button{font-size:10px;padding:9px}.workspace{display:flex;flex-direction:column}.library,.practice{width:100%}h1{font-size:31px}.intro{margin-bottom:22px}#gallery{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:330px;overflow:auto}.video-card{margin:0}.time-fields{grid-template-columns:1fr 1fr;gap:10px}.time-row{flex-direction:column}.transport{gap:7px}.speed-label{font-size:11px}.speed-label select{width:72px}footer span{display:none}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,border-color .15s}}
.chapter-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:16px}.chapter-nav button{font-size:11px}.chapter-nav span{font-size:12px;text-align:center;color:var(--muted);overflow-wrap:anywhere}.timeline-wrap{margin:18px 0 8px;padding:14px 16px 5px;background:#f3f5ed;border:1px solid var(--line);border-radius:12px}.timeline-labels{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.timeline-labels>span:first-child{letter-spacing:1px}.timeline{position:relative;height:108px;margin:0 27px;touch-action:none}#seek-track{position:absolute;left:0;right:0;top:37px;height:34px;cursor:crosshair;touch-action:none;background:linear-gradient(transparent 13px,#cbd5c5 13px,#cbd5c5 21px,transparent 21px)}#seek-track[aria-disabled=true]{opacity:.4;cursor:default}#selected-range{position:absolute;top:13px;height:8px;background:#6ca052;border-radius:4px;pointer-events:none}#playhead{position:absolute;top:4px;height:27px;width:3px;background:#122e27;pointer-events:none;transform:translateX(-50%)}#playhead:before{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:#122e27;left:-3px;top:-1px}.timeline button{position:absolute;transform:translateX(-50%);padding:0 5px;width:55px;min-height:44px;font-size:9px;letter-spacing:.5px;border:1px solid #588352;background:#e4efcf;touch-action:none;z-index:2}.timeline #start-handle{top:1px;border-bottom:4px solid #528149}.timeline #end-handle{top:64px;border-top:4px solid #528149}#chapter-marks{pointer-events:none}#chapter-marks span{position:absolute;top:12px;width:2px;height:10px;background:#fff}.chapter-details{margin:16px 0 8px;font-size:12px}.chapter-details summary{min-height:44px;padding:12px 0;cursor:pointer;color:var(--green);font-weight:600}.chapter-details textarea{font:inherit;width:100%;padding:12px;border:1px solid #ccd5cb;border-radius:8px;resize:vertical;min-height:110px;margin-bottom:10px}.range-invalid{color:#a13b32!important}#seek-track:focus-visible{outline:3px solid #b6d79e;outline-offset:2px}
@media(max-width:680px){.chapter-nav{flex-wrap:wrap}.chapter-nav span{order:3;width:100%}.timeline-wrap{padding-left:10px;padding-right:10px}.timeline-labels{font-size:9px}}
.mode-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:11px;color:var(--green)}.mode-row button{font-size:11px}.timeline-wrap .time-fields{margin-top:8px}.timeline-wrap .time-fields label{margin-top:5px}@media(min-width:681px) and (max-width:950px){.timeline-wrap .time-fields{grid-template-columns:1fr 1fr}.timeline-wrap .time-row{flex-direction:column}}
.draft-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--green);margin-bottom:8px}.draft-heading strong{overflow-wrap:anywhere}.draft-heading button{font-size:12px;white-space:nowrap}.timeline-wrap>.timeline-labels{margin-top:12px}
.timeline-wrap .check{margin-top:12px}.timeline-wrap .draft-heading{margin-top:12px}
/* Practice workspace: independent library, pinned video, and scrolling track drawer. */
#library-toggle{display:none}
#clips{display:flex;flex-direction:column;flex-wrap:nowrap;gap:5px;overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:2px}
.clip-tab{display:grid;grid-template-columns:minmax(120px,32%) minmax(0,1fr);align-items:center;gap:14px;flex:none;min-height:48px;padding:6px 12px;width:100%;border-radius:7px}
.clip-row-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clip-row-name small{font-size:10px;margin-top:2px}
.clip-row-track{height:20px;position:relative;background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#cbd6c5 calc(25% - 1px),#cbd6c5 25%),#edf1e6;border-radius:4px;overflow:hidden}
.clip-row-interval{position:absolute;top:3px;height:14px;min-width:3px;background:#8fb175;border-radius:3px}.clip-tab.active .clip-row-interval{background:#286b51}
.track-scale{display:grid;grid-template-columns:32% 1fr;gap:14px;padding:0 12px;font-size:9px;color:var(--muted);margin-bottom:7px}.track-scale span:last-child{text-align:right}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
html,body{height:100%;overflow:hidden}header{height:62px;padding:9px 24px}.brand{font-size:25px}.logo{height:38px;width:38px;font-size:30px;line-height:34px}.brand-sub{font-size:8px}
main{height:calc(100dvh - 62px);max-width:none;padding:12px 20px 14px}.intro,footer,main>.help{display:none}.workspace{height:100%;grid-template-columns:250px minmax(0,1fr);gap:14px}
.library{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:14px}.library .section-title{margin-bottom:8px}.library label{margin-top:7px}.library .filter-row{margin:12px 0;padding-top:12px}.library-foot{display:none}.video-main img{max-height:125px;object-fit:cover}
.practice{height:100%;min-height:0;grid-template-rows:minmax(0,1fr) minmax(120px,23%);gap:10px}
.player-panel{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 14px;position:relative;scroll-padding-top:calc(25dvh + 20px)}
.player-panel>.section-title{margin-bottom:7px}.player-panel>.section-title .eyebrow{display:none}.player-panel h2{font-size:15px}
#player-shell{position:sticky;top:-10px;z-index:5;height:clamp(160px,25dvh,290px);min-height:160px;aspect-ratio:auto;border-radius:6px;box-shadow:0 8px 8px #fffefa}
.timeline-wrap{margin:10px 0 4px;padding:8px 12px 4px}.timeline{height:82px;margin:0 27px}.timeline #start-handle{top:0}.timeline #end-handle{top:38px}#seek-track{top:24px}.timeline button{width:53px;min-height:44px}.timeline-labels{font-size:9px}.timeline-wrap>.timeline-labels{margin-top:0}
.timeline-wrap .draft-heading{margin:5px 0;display:inline-flex;width:calc(44% - 10px);vertical-align:middle}.draft-heading strong{font-size:10px;max-width:60%}.draft-heading button{padding:6px 10px;font-size:11px}
.timeline-wrap>label[for=clip-name]{display:none}.timeline-wrap>#clip-name{display:inline-block;width:55%;margin-left:10px;min-height:40px;padding:8px;font-size:12px}
.timeline-wrap .time-fields{grid-template-columns:1fr 1fr;gap:12px;margin-top:0}.timeline-wrap .time-row{flex-direction:row}.timeline-wrap .time-fields label{font-size:10px;margin:3px 0}.timeline-wrap .time-row input{min-height:40px;padding:8px;font-size:12px}.timeline-wrap .time-row button{min-height:40px;font-size:10px;padding:6px 9px}
.timeline-wrap .check{display:inline-flex;font-size:11px;margin:8px 0 3px}.timeline-wrap .hint{display:inline;margin:0 0 0 12px;font-size:9px}
.chapter-nav{margin-top:4px;gap:6px}.chapter-nav button{min-height:36px;padding:5px 10px;font-size:10px}.chapter-nav span{font-size:10px}
.transport{margin-top:5px;gap:6px}.transport button{min-height:40px;padding:7px 11px;font-size:11px}.speed-label select{min-height:40px;padding:7px}.chapter-details{margin:0}.chapter-details summary{min-height:32px;padding:7px 0;font-size:10px}
.mode-row{margin-top:3px;font-size:10px}.mode-row button{min-height:36px;padding:5px 10px}.status{margin-top:3px;font-size:10px}
.clip-panel{min-height:0;display:flex;flex-direction:column;padding:10px 14px}.clip-panel .section-title{margin-bottom:6px}.clip-panel .eyebrow{display:none}.clip-panel h2{font-size:14px}.clip-panel .section-title button{min-height:38px;font-size:11px;padding:6px 10px}.clip-panel>.hint{display:none}.clip-panel .editor-actions{margin:0}.clip-panel #delete-clip{min-height:32px;padding:4px 10px;font-size:10px}.clip-panel .empty{margin:0;font-size:11px}.track-scale{margin-bottom:4px}.clip-tab{min-height:45px}
}
@media(min-width:700px) and (max-width:1050px) and (orientation:landscape){
#library-toggle{display:block}.workspace{grid-template-columns:minmax(0,1fr)}.library{display:none}.library-open .library{display:block;position:fixed;z-index:20;left:12px;top:66px;bottom:12px;height:auto;width:280px;box-shadow:0 8px 40px #0004}.brand-sub{display:none}
}
@media(max-width:899px) and (orientation:portrait){
#library-toggle{display:block}.workspace{display:flex;flex-direction:column}.library{display:none}.library-open .library{display:block;max-height:45dvh;overflow:auto}.intro{display:none}main{padding:12px 3%}.practice{width:100%}.player-panel{padding:12px}#player-shell{position:sticky;top:0;z-index:5;max-height:35dvh;min-height:160px;box-shadow:0 6px 8px #fffefa}.clip-panel #clips{max-height:240px}.timeline-wrap{padding:9px}.timeline-wrap .time-row{flex-direction:column}.brand-sub{display:none}.local-badge{display:none}.track-scale{grid-template-columns:40% 1fr}.clip-tab{grid-template-columns:40% 1fr}.chapter-nav span{order:3;width:100%}
}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
.transport{position:sticky;bottom:-10px;z-index:6;background:#fffefa;box-shadow:0 -8px 10px #fffefa;padding:6px 0;margin-bottom:0}
.transport .mode-row{width:100%;margin:0;min-height:16px}.transport .mode-row button{min-height:32px}
.player-panel{padding-bottom:0}.chapter-details{padding-bottom:4px}
.timeline-wrap .hint{display:none}.timeline{height:72px}.timeline #end-handle{top:28px}#seek-track{top:19px}.timeline #start-handle{top:-5px}
}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
.practice{grid-template-rows:minmax(0,1fr) minmax(170px,25%)}#clips{margin-bottom:3px}.clip-panel{padding:8px 12px}.clip-panel .section-title{margin-bottom:4px}.clip-panel .editor-actions{margin-top:0}
}
/* Thin range strip: detailed editing is deliberately on demand. */
.timeline-wrap{position:relative;padding:3px 12px!important;margin:5px 0!important;border-radius:8px}
.thin-range-heading{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);line-height:12px}
.timeline{height:32px!important;margin:0 12px!important}
#seek-track{top:0!important;height:32px;background:linear-gradient(transparent 12px,#cbd5c5 12px,#cbd5c5 18px,transparent 18px)}
#selected-range{top:12px;height:6px}#playhead{top:3px;height:24px}#chapter-marks span{top:11px;height:8px}
.timeline #start-handle,.timeline #end-handle{top:-6px!important;min-height:44px;height:44px;width:44px;padding:0;border:0!important;background:transparent!important;box-shadow:none;border-radius:50%;font-size:0}
.timeline button:after{content:'';position:absolute;left:15px;top:15px;width:14px;height:14px;border-radius:50%;background:#286b51;border:2px solid #f8fbed;box-shadow:0 0 0 1px #286b51}
.timeline #end-handle:after{background:#96b873}.timeline button:focus-visible{outline:2px solid #36734e;outline-offset:-8px;z-index:4}
.range-toolbar{display:flex;gap:5px;align-items:center;height:28px}.range-toolbar>button,.range-toolbar summary{min-height:28px;height:28px;padding:3px 9px;font-size:10px;background:transparent;border:0;cursor:pointer;color:var(--green)}
#range-options{margin-left:auto}#range-options summary{display:list-item;list-style-position:inside}
.range-popover{position:absolute;right:0;top:100%;z-index:30;width:min(520px,100%);padding:14px;background:#fffefa;border:1px solid #b9cbb0;box-shadow:0 10px 28px #12382d40;border-radius:10px}
.range-popover .draft-heading{display:flex!important;width:100%!important;margin:0 0 10px!important}.range-popover>label[for=clip-name]{display:block!important}.range-popover>#clip-name{width:100%!important;margin:0!important}
.range-popover .time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.range-popover .time-row{display:block!important}.range-popover .hint{display:block!important;font-size:10px!important;margin:8px 0 0!important}
.range-popover .check{margin-top:12px!important}.timeline-wrap>.timeline-labels{display:none}
#player-shell{aspect-ratio:16/9!important;min-height:0!important;height:auto!important;width:100%;margin-inline:auto;max-height:none!important}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
header{height:54px}main{height:calc(100dvh - 54px);padding-top:8px}.practice{grid-template-rows:minmax(0,1fr) 150px}
.player-panel{padding:8px 12px 0;scroll-padding-top:calc(42dvh + 12px)}
#player-shell{width:min(100%,calc(42dvh * 16 / 9));position:sticky;top:-8px;max-height:none!important;box-shadow:0 5px 5px #fffefa}
.player-panel>.section-title{margin-bottom:4px}.player-panel>.section-title h2{font-size:13px}
.transport{bottom:0;padding:3px 0;gap:5px;margin:2px 0}.transport .mode-row{width:auto;min-height:0;font-size:9px;order:3;margin-left:auto}.transport .mode-row button{min-height:32px;font-size:9px}
.transport button{min-height:36px;padding:5px 9px}.transport #clock{font-size:11px}.transport .speed-label{margin-left:auto;font-size:10px}.transport .speed-label select{min-height:36px}
.chapter-nav{margin-top:0}.chapter-nav button{min-height:28px;padding:3px 7px}.chapter-nav span{font-size:9px}.chapter-details summary{min-height:24px;padding:4px 0}
.status{font-size:9px;margin:0}.clip-panel{padding:6px 12px}.clip-panel .section-title button{min-height:34px}
}
@media(max-width:899px) and (orientation:portrait){
#player-shell{width:100%;position:sticky;top:0;z-index:5}.timeline-wrap{padding:3px 8px!important}.range-popover{width:100%}.range-toolbar>button,.range-toolbar summary{min-height:36px;height:36px}.range-toolbar{height:36px}.timeline{height:40px!important}#seek-track{top:4px!important}.timeline #start-handle,.timeline #end-handle{top:-2px!important}
}
.clip-row-track{overflow:visible;margin-inline:16px;height:28px}.clip-row-interval{top:7px;height:14px}
.row-dot{position:absolute;top:-8px;transform:translateX(-50%);width:44px;height:44px;min-height:44px;border:0!important;padding:0!important;border-radius:50%;background:transparent!important;touch-action:none;z-index:2;cursor:ew-resize}
.row-dot:after{content:'';position:absolute;left:17px;top:17px;width:10px;height:10px;border-radius:50%;background:#286b51;border:1px solid white;box-shadow:0 0 0 1px #286b51}
.row-dot-end:after{background:#91b575}.row-dot:focus-visible{outline:2px solid #7cad68;outline-offset:-9px;z-index:3}
.clip-tab{cursor:pointer;font-weight:600}.clip-tab:focus-visible{outline:2px solid #7cad68}.clip-tab.active{box-shadow:none}.clip-row-name small{font-weight:400}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
.practice{grid-template-rows:minmax(0,1fr) 190px}#player-shell{width:min(100%,calc(40dvh * 16 / 9))}
.player-panel{scroll-padding-top:calc(40dvh + 12px)}
.timeline-wrap{padding-block:2px!important}.thin-range-heading{display:none}.range-toolbar{height:25px}.range-toolbar>button,.range-toolbar summary{height:25px;min-height:25px}
}
html[data-theme=dark]{color-scheme:dark;--green:#9cd6b6;--muted:#96a79f;--line:#33453f;background:#111915;color:#e2ebe5}
html[data-theme=dark] body{background:#111915;color:#e2ebe5}
html[data-theme=dark] header{background:#14231d;border-bottom:1px solid #33453f}
html[data-theme=dark] .panel,html[data-theme=dark] .range-popover{background:#1a2520;border-color:#33453f;box-shadow:none}
html[data-theme=dark] button{background:#26382e;color:#e3ece6;border-color:#42554a}
html[data-theme=dark] button:hover{background:#334a3c}
html[data-theme=dark] button.primary{background:#90cda7;color:#10261a;border-color:#90cda7}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#121e17;color:#e3eee6;border-color:#3c5043}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8b9f92}
html[data-theme=dark] .timeline-wrap{background:#1b2b21;border-color:#344b3c}
html[data-theme=dark] #seek-track{background:linear-gradient(transparent 12px,#405348 12px,#405348 18px,transparent 18px)}
html[data-theme=dark] #selected-range{background:#7caf87}
html[data-theme=dark] .timeline button:after{background:#b1dfbd;border-color:#172b20;box-shadow:0 0 0 1px #b1dfbd}
html[data-theme=dark] .timeline #end-handle:after{background:#7bbd97}
html[data-theme=dark] #playhead,html[data-theme=dark] #playhead:before{background:#edf7ef}
html[data-theme=dark] .transport{background:#1a2520;box-shadow:0 -6px 8px #1a2520}
html[data-theme=dark] #player-shell{box-shadow:0 5px 5px #1a2520;background:#000}
html[data-theme=dark] .video-card,html[data-theme=dark] .video-main{background:#1c2b22;border-color:#364d3e}
html[data-theme=dark] .video-card.selected{border-color:#92c6a2;box-shadow:0 0 0 1px #92c6a2}
html[data-theme=dark] .pill{background:#2d4234;color:#bcd4c1}
html[data-theme=dark] .clip-tab{background:#1b2921;border-color:#33473a;color:#e0eee3}
html[data-theme=dark] .clip-tab:hover{background:#243b2c}
html[data-theme=dark] .clip-tab.active{background:#294432;border-color:#719a7c}
html[data-theme=dark] .clip-row-track{background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#45604c calc(25% - 1px),#45604c 25%),#253a2b}
html[data-theme=dark] .clip-row-interval{background:#64866a}
html[data-theme=dark] .clip-tab.active .clip-row-interval{background:#87b793}
html[data-theme=dark] .row-dot:after{background:#b1dfbd;border-color:#203925;box-shadow:0 0 0 1px #91bd9c}
html[data-theme=dark] .row-dot-end:after{background:#79b28a}
html[data-theme=dark] .range-popover{box-shadow:0 8px 30px #0009}
html[data-theme=dark] .danger{color:#ffaaa1}
.clip-row-name{border:0!important;background:transparent!important;text-align:left;padding:0!important;min-height:36px!important;font-size:12px;white-space:normal}
.range-popover{position:fixed!important;top:50%!important;left:50%!important;right:auto!important;transform:translate(-50%,-50%);width:min(520px,calc(100vw - 32px))!important;max-height:80dvh;overflow:auto;z-index:100!important}
#close-range{display:block;margin-left:auto;margin-bottom:10px;min-height:36px;font-size:11px}
.player-panel>.section-title{flex-wrap:wrap}.player-panel>.section-title .chapter-nav{margin:0 0 0 auto;gap:4px}.player-panel>.section-title .chapter-nav span{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}
@media(max-width:700px){.player-panel>.section-title .chapter-nav{order:3;width:100%;justify-content:space-between}.player-panel>.section-title .chapter-nav span{order:0;width:auto}.player-panel>.section-title .chapter-nav button{font-size:10px;min-height:36px;padding:5px}}
/* User-requested subtractive layout: native player controls and maximum video space. */
.practice{grid-template-rows:minmax(0,1fr)!important;gap:0!important}
.player-panel{padding:12px!important;scroll-padding-top:0!important}
#player-shell{width:100%!important;position:relative!important;top:auto!important;aspect-ratio:16/9!important;box-shadow:none!important}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
#player-shell{width:min(100%,calc((100dvh - 156px) * 16 / 9))!important}
.player-panel{display:flex;flex-direction:column;gap:6px}
.player-panel>.section-title{flex-shrink:0;margin-bottom:0}
#player-shell{flex-shrink:0}
.player-panel>.chapter-details{margin:0}
}
/* Unified player and checkbox-targeted clip drawer. */
.universal-transport{display:flex;align-items:center;gap:7px;padding:5px 0;flex-wrap:wrap}
.universal-transport button{min-height:38px;padding:7px 12px;font-size:12px}
.universal-speed{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;color:var(--muted)}
.universal-speed select{width:76px;min-height:38px;padding:7px}
.universal-transport #clock{font-size:12px;font-variant-numeric:tabular-nums;margin:0}
#target-label{font-size:11px;color:var(--muted);min-width:0;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#capture-clip{margin-left:auto;color:var(--green)}#capture-clip.capturing{background:#a94b3f;color:white;border-color:#b96559}
.clip-instruction{font-size:10px;color:var(--muted)}.clip-tab{grid-template-columns:32px minmax(110px,23%) minmax(0,1fr) 32px!important;gap:8px;min-height:44px;padding:1px 6px!important}
.clip-active{width:20px!important;height:20px!important;min-height:20px!important;margin:10px 6px;padding:0;accent-color:#96ceaa;cursor:pointer}
.clip-row-name{min-height:40px!important;font-size:11px}.clip-row-name small{font-size:9px}
.clip-row-track{height:24px;margin-inline:14px}.clip-row-interval{top:5px}.row-dot{top:-10px}
.clip-exact{width:32px;height:40px;min-height:40px;padding:0;font-size:20px;border:0;background:transparent}
.clip-tab.editing:not(.active){border-color:#597564}.clip-tab.active{border-color:#a2cfaa!important;background:#294832!important}
.track-scale{grid-template-columns:calc(32px + 23%) 1fr!important;padding:0 38px 0 6px}.clip-panel>.hint{display:none}.clip-panel #clip-form{display:none}
#exact-dialog{width:min(480px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:20px;background:#fffefa;color:#17312d}
#exact-dialog::backdrop{background:#0007}.exact-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.exact-heading button{font-size:20px}
.exact-actions{display:flex;justify-content:space-between;gap:12px;margin-top:16px}.exact-actions button{min-height:44px}
#exact-form .check{margin-top:16px}#exact-error{font-size:12px;color:#e69083}
html[data-theme=dark] #exact-dialog{background:#1a2520;color:#e2ebe5}
@media(min-width:900px),(min-width:700px) and (orientation:landscape){
.practice{grid-template-rows:minmax(0,1fr) 185px!important;gap:10px!important}
.player-panel{container-type:size;display:flex;flex-direction:column;gap:3px;padding:8px 12px!important;overflow:hidden}
#player-shell{width:min(100%,calc((100cqh - 110px) * 16 / 9))!important;flex-shrink:0;position:relative!important;margin:auto}
.universal-transport{flex-shrink:0;gap:6px;padding:2px 0}.universal-transport button{min-height:36px;padding:6px 10px;font-size:11px}
.universal-speed select{min-height:36px}
.player-panel>.chapter-details{position:relative;margin:0;font-size:10px}
.player-panel>.chapter-details[open]{position:fixed;z-index:50;inset:auto 28px 22px auto;width:min(500px,calc(100vw - 40px));padding:14px;background:#1a2520;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #0008}
.player-panel>.chapter-details summary{min-height:20px;padding:2px 0}
.player-panel>.status{font-size:9px;line-height:12px;margin:0}
.clip-panel{min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:8px 12px}
.clip-panel>.section-title{min-height:24px;flex-shrink:0}.clip-panel #clips{margin:0;gap:3px}.clip-panel h2{font-size:14px}
}
@media(max-width:899px) and (orientation:portrait){
.practice{display:flex;flex-direction:column;gap:12px!important}#player-shell{width:100%!important}
.clip-panel #clips{max-height:230px}.clip-tab{grid-template-columns:28px minmax(90px,25%) minmax(0,1fr) 28px!important;gap:5px}
.universal-transport{gap:5px}.universal-transport button{min-height:40px;padding:6px 9px;font-size:11px}
#target-label{max-width:120px}
}
.practice{display:grid!important;grid-template-rows:minmax(0,calc(var(--video-share,56%) - 8px)) 16px minmax(0,1fr)!important;gap:0!important}
#frame-splitter{display:flex;align-items:center;justify-content:center;cursor:ns-resize;touch-action:none;min-height:16px;outline:none}
#frame-splitter span{height:3px;width:58px;background:#658371;border-radius:3px}
#frame-splitter:hover span,#frame-splitter:focus-visible span{background:#b5e0c4;width:100px}
@media(max-width:899px) and (orientation:portrait){
html,body{height:100%;overflow:hidden}header{height:64px;padding:10px 16px}.brand{font-size:24px}.brand-sub{display:none}
main{height:calc(100dvh - 64px);padding:10px}.workspace{height:100%}.practice{height:100%;min-height:0}
.player-panel{container-type:size;display:flex;flex-direction:column;gap:3px;overflow:hidden;padding:10px!important}
#player-shell{width:min(100%,calc((100cqh - 145px) * 16 / 9))!important;position:relative!important;flex-shrink:0;margin:auto}
.player-panel>.section-title{flex-shrink:0}.player-panel>.section-title .chapter-nav{max-width:100%}
.clip-panel{min-height:0;display:flex;flex-direction:column;padding:8px 10px;overflow:hidden}.clip-panel #clips{max-height:none;min-height:0}
.library-open .library{position:fixed;z-index:40;left:10px;top:70px;bottom:10px;width:min(280px,calc(100vw - 20px));height:auto;max-height:none;overflow:auto;box-shadow:0 8px 30px #0007}
.universal-transport{flex-shrink:0}.player-panel>.status{font-size:9px;line-height:12px;margin:0}
.chapter-details{font-size:10px;margin:0}.chapter-details summary{min-height:22px;padding:3px}
.chapter-details[open]{position:fixed;z-index:50;inset:auto 15px 15px;width:calc(100vw - 30px);padding:12px;background:#1a2520;border:1px solid var(--line);border-radius:10px}
}
/* Two sibling frames: only #clips scrolls; video frame contains video + transport. */
.player-panel{overflow:hidden!important;scrollbar-width:none;min-height:0;border-radius:8px!important}
.clip-panel{overflow:hidden!important;min-height:0;border-radius:4px!important;box-shadow:none!important}
#clips{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;flex:1;min-height:0}
#player-shell{width:min(100%,calc((100cqh - 48px) * 16 / 9))!important;margin:auto!important}
.universal-transport{flex-shrink:0;width:100%}
.library-video-details{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}
.library-video-details .section-title{display:block}.library-video-details .eyebrow{font-size:9px}.library-video-details h2{font-size:12px;margin-bottom:8px}
.library-video-details .chapter-nav{display:flex;flex-wrap:wrap;gap:4px;margin:0}.library-video-details .chapter-nav button{font-size:9px;padding:5px;min-height:30px}.library-video-details .chapter-nav span{order:3;width:100%;font-size:9px;text-align:left}
.library-video-details #youtube-link{font-size:11px;display:inline-block;margin-top:8px}.library-video-details #youtube-link[hidden]{display:none}
.library-video-details .chapter-details{font-size:10px;position:static!important;inset:auto!important;width:auto!important;padding:0!important;box-shadow:none!important}
.library-video-details .chapter-details summary{font-size:10px;line-height:1.5;min-height:32px;padding:8px 0}
.library-video-details .status{font-size:9px;line-height:1.5}
:root{--green:#4d7fc8;--muted:#71829f;--line:#c5cfdf}
html[data-theme=dark]{color-scheme:dark;--green:#9cbffa;--muted:#93a5c3;--line:#2a3955;background:#080e1c;color:#e1e9f8}
html[data-theme=dark] body{background:#080e1c;color:#e1e9f8}
html[data-theme=dark] header{background:#0a1428;border-color:#273852}
html[data-theme=dark] .panel,html[data-theme=dark] #exact-dialog{background:#101b30;border-color:#293b59;color:#e1e9f8}
html[data-theme=dark] .logo{background:#9cbaf0;color:#111f3a}
html[data-theme=dark] button{background:#182941;color:#e1eafa;border-color:#304667}
html[data-theme=dark] button:hover{background:#223b5c}
html[data-theme=dark] button.primary{background:#9dbcf3;color:#101d35;border-color:#9dbcf3}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0a1426;color:#e1eafa;border-color:#314867}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#8ca0be}
html[data-theme=dark] .video-card,html[data-theme=dark] .video-main{background:#13223a;border-color:#304565}
html[data-theme=dark] .video-card.selected{border-color:#95b9f6;box-shadow:0 0 0 1px #95b9f6}
html[data-theme=dark] .pill{background:#1d3250;color:#b5caee}
html[data-theme=dark] .clip-tab{background:#111e33;border-color:#233956;color:#e1eafa}
html[data-theme=dark] .clip-tab:hover{background:#182d4a}
html[data-theme=dark] .clip-tab.active{background:#1e3657!important;border-color:#83aff2!important}
html[data-theme=dark] .clip-tab.editing:not(.active){border-color:#46648a}
html[data-theme=dark] .clip-row-track{background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#365173 calc(25% - 1px),#365173 25%),#172a44}
html[data-theme=dark] .clip-row-interval{background:#42668e}
html[data-theme=dark] .clip-tab.active .clip-row-interval{background:#769fd7}
html[data-theme=dark] .row-dot:after{background:#adcbfa;border-color:#14263f;box-shadow:0 0 0 1px #8db5ef}
html[data-theme=dark] .row-dot-end:after{background:#82afea}
html[data-theme=dark] #player-shell{background:#000;box-shadow:none}
html[data-theme=dark] .clip-active{accent-color:#91b8f6}
html[data-theme=dark] #frame-splitter span{background:#496b96}
html[data-theme=dark] #frame-splitter:hover span,html[data-theme=dark] #frame-splitter:focus-visible span{background:#9cbffa}
html[data-theme=dark] #welcome{background:radial-gradient(ellipse at top,#263f65,#0d192c 70%);color:#d6e3f9}
html[data-theme=dark] #welcome p,html[data-theme=dark] .eyebrow{color:#9bafd0}
html[data-theme=dark] .big-loop{color:#93b8f4}
html[data-theme=dark] #notice{background:#203c63;color:#eef4ff}
html[data-theme=dark] button:focus-visible,html[data-theme=dark] input:focus,html[data-theme=dark] select:focus{outline-color:#9dbdf4}
@media(max-width:899px) and (orientation:portrait){
#player-shell{width:min(100%,calc((100cqh - 92px) * 16 / 9))!important}
}
.logo{background:#a8c4f5;color:#14243c}.clip-active{accent-color:#699be5}.clip-tab.active{background:#dce8f9!important;border-color:#719ace!important}.clip-tab.editing:not(.active){border-color:#7895bc}
html[data-theme=dark] .clip-tab.active{background:#1e3657!important;border-color:#83aff2!important}
html[data-theme=dark] .chapter-details[open]{background:#101b30!important}
html[data-theme=dark] .filter-row button[aria-pressed=true]{background:#29466e}
html[data-theme=light] .row-dot:after{background:#6f9fdf;border-color:#edf3ff;box-shadow:0 0 0 1px #426ea7}
html[data-theme=light] .clip-row-interval{background:#7799c4}
html[data-theme=light] .clip-row-track{background:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),#a7bbd3 calc(25% - 1px),#a7bbd3 25%),#e4edf8}
html[data-theme=light] .chapter-details[open]{background:#f5f8ff!important}

#clips{overflow-y:scroll!important;scrollbar-gutter:stable;scrollbar-color:#496b96 #101b30}

/* Compact lanes with persistent endpoint readouts and actual-time playheads. */
.clip-panel #clips{gap:1px;padding-top:2px}
.clip-tab{min-height:38px;height:38px;border-radius:3px;gap:6px;padding:0 6px!important;border-bottom:1px solid #253650;cursor:default}
.clip-row-name{min-height:36px!important;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.clip-row-name small{display:none}
.clip-row-track{height:8px;margin-top:15px;margin-inline:15px;border-radius:2px}
.clip-row-interval{top:1px;height:6px;border-radius:2px}
.row-dot{top:-18px;height:38px;min-height:38px;width:44px;border-radius:4px}
.row-dot:after{top:18px;left:18px;width:8px;height:8px}
.endpoint-time{position:absolute;top:-15px;white-space:nowrap;font:10px/12px ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;color:#aabddc;pointer-events:none;z-index:4}
.clip-playhead{position:absolute;top:-2px;height:12px;width:2px;background:#f3cf7b;box-shadow:0 0 3px #0009;pointer-events:none;z-index:5;transform:translateX(-1px)}
.clip-playhead:before{content:'';position:absolute;top:-3px;left:-2px;border-top:4px solid #f3cf7b;border-left:3px solid transparent;border-right:3px solid transparent}
.clip-exact{height:32px;min-height:32px!important;padding:0!important;background:transparent!important;border-color:transparent!important}
.clip-active{width:17px!important;height:17px!important;min-height:17px!important;margin:9px 7px!important}
html[data-theme=dark] .clip-tab{background:transparent}
html[data-theme=light] .endpoint-time{color:#405978}
html[data-theme=light] .clip-playhead{background:#95591b}
@media(pointer:coarse){.clip-tab{height:42px;min-height:42px}.row-dot{height:42px;min-height:42px}}

/* Dense clip lines: half-height lanes, no visible section/status decorations. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.clip-panel #clips{gap:0;padding-top:1px}
.clip-tab{height:19px;min-height:19px;border-radius:0;grid-template-columns:25px minmax(110px,23%) minmax(0,1fr) 25px!important}
.clip-row-name{height:18px;min-height:18px!important;font-size:10px;line-height:18px}
.clip-row-track{height:4px;margin-top:10px}
.clip-row-interval{top:0;height:4px;min-width:1px}
.endpoint-time{top:-10px;font-size:9px;line-height:9px}
.row-dot{top:-11px;height:19px;min-height:19px;width:44px}
.row-dot:after{top:10px;left:19px;width:6px;height:6px}
.clip-playhead{top:-1px;height:6px;width:2px;box-shadow:none}
.clip-playhead:before{display:none}
.clip-exact{height:18px;min-height:18px!important;line-height:16px;font-size:13px}
.clip-active{width:12px!important;height:12px!important;min-height:12px!important;margin:2px 5px!important;padding:0!important}
@media(pointer:coarse){.clip-tab{height:21px;min-height:21px}.row-dot{height:21px;min-height:21px}}

/* Precise grips, readable timing and compact per-row actions. */
.clip-tab{grid-template-columns:20px 100px 20px minmax(0,1fr) 24px 57px!important;gap:3px}
.clip-row-name{display:block;min-width:0;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.clip-row-track{margin-inline:8px}
.endpoint-time{top:-11px;font-size:10px;line-height:10px;color:#dfebff;letter-spacing:0;text-shadow:0 1px #080e1c}
.row-dot:after{left:21px;top:9px;width:2px;height:9px;border:0!important;border-radius:0;box-shadow:none!important;background:#c5dcff!important}
.row-dot-end:after{background:#a6caff!important}
.clip-playhead{height:8px;top:-2px;width:3px;background:#ffd36a;box-shadow:0 0 0 1px #080e1c;z-index:7}
.row-play{height:18px;min-height:18px;padding:0;border:0;font-size:10px;background:transparent!important}
.row-speed{width:57px;height:18px;min-height:18px;padding:0 1px;font-size:10px;border-radius:3px}
#rename-menu{position:fixed;inset:auto;margin:0;width:270px;padding:8px;border:1px solid #496b96;border-radius:5px;background:#101b30;color:#e1eafa;box-shadow:0 5px 20px #0007}
#rename-form{display:flex;gap:5px}#rename-name{height:28px;min-height:28px;padding:4px;font-size:12px}
#rename-menu button{height:28px;min-height:28px;padding:3px 7px;font-size:11px}#rename-details{margin-top:5px}
@media(max-width:700px){.clip-tab{grid-template-columns:18px 72px 18px minmax(0,1fr) 22px 51px!important}.row-speed{width:51px}}

.clip-tab.unused{opacity:.42}.clip-tab.unused .clip-row-track{display:none}.clip-tab.unused .row-play,.clip-tab.unused .row-speed{visibility:hidden}.clip-tab.unused .clip-row-name{font-style:normal}.clip-tab.draft .clip-row-interval{opacity:.45}.clip-tab.draft{border-bottom-style:dashed}.clip-row-track[hidden]{display:none!important}

.clip-row-track{margin-inline:22px}.clip-exact{position:relative;z-index:8}

.clip-tab{grid-template-columns:20px 80px 16px minmax(0,1fr) 24px 57px!important;gap:2px}

.loop-control{display:flex;align-items:center;gap:4px;margin:0;font-size:11px}.loop-control input{width:14px;height:14px;min-height:14px;margin:0;padding:0}
.zoom-bar{display:flex;align-items:center;justify-content:flex-end;gap:5px;height:22px;flex-shrink:0}.zoom-bar input{width:95px;height:18px;min-height:18px;padding:0}.zoom-bar output{font-size:10px;min-width:30px}.zoom-bar button{height:20px;min-height:20px;font-size:10px;padding:0 5px}
#timeline-pan{height:14px;min-height:14px;overflow-x:scroll;overflow-y:hidden;margin-left:150px;margin-right:105px;scrollbar-color:#718fb7 #101b30}#pan-content{height:1px;width:100%}
.row-dot[hidden],.endpoint-time[hidden],.clip-playhead[hidden],.clip-row-interval[hidden]{display:none!important}

.clip-tab{grid-template-columns:18px 72px 14px minmax(0,1fr) 24px 57px!important;gap:1px}.clip-row-track{margin-inline:20px}
.add-clip{height:19px;min-height:19px;width:100%;text-align:left;padding:0 10px;border:0;border-radius:0;background:transparent!important;font-size:16px;line-height:18px;color:#a6caff}
.pending-draft{grid-template-columns:18px 72px 14px minmax(0,1fr)!important}.draft-capture{height:18px;min-height:18px;padding:0 6px;width:max-content;font-size:10px}
.loop-control{padding:3px 6px;border:1px solid #6986b2;border-radius:4px;font-weight:600}.loop-control span{font-size:12px}#capture-clip{height:28px;min-height:28px;padding:2px 7px;font-size:10px}

#delete-notice{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:90vw;padding:6px 10px;background:#1e3657;color:#e1eafa;border:1px solid #718fb7;border-radius:5px;z-index:60;font-size:12px}#delete-notice[hidden]{display:none}#delete-notice button{height:28px;min-height:28px;padding:3px 10px;font-size:12px}

/* Compact, independently scrolling saved-track list. */
.library,.library-open .library{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.library>.section-title,.library>#add-form,.library>.filter-row{flex-shrink:0}
#gallery{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:100px;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-gutter:stable}
#gallery .video-card{flex-shrink:0;margin:0;border-radius:6px;position:relative;min-height:72px}
#gallery .video-main{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;min-height:72px;align-items:start;background:transparent}
#gallery .video-main img{width:76px;height:70px;max-height:none;aspect-ratio:auto;object-fit:cover}
#gallery .video-main strong{padding:7px 5px 0 0;font-size:11px;line-height:15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#gallery .video-bottom{position:absolute;left:84px;right:3px;bottom:2px;padding:0;font-size:9px;pointer-events:none}
#gallery .video-bottom>div{display:flex;pointer-events:auto}#gallery .video-bottom button{min-height:26px;height:26px;padding:0 7px;font-size:13px}
.library-video-details{flex:0 1 auto;max-height:30%;overflow-y:auto;margin-top:10px;padding-top:8px}
.zoom-bar #delete-selected{margin-right:auto;font-size:10px;color:var(--muted);padding:0 6px}
@media(max-width:900px){.library{display:none}.library-open .library{display:flex}}

/* Give names, menus and draft capture distinct space. */
.clip-tab{grid-template-columns:18px 112px 28px minmax(0,1fr) 24px 57px!important;gap:4px}
.clip-exact{width:28px;max-width:28px;justify-self:center}
.pending-draft{grid-template-columns:18px 112px 28px minmax(0,1fr)!important}
.draft-capture{margin-left:12px;justify-self:start;white-space:nowrap}
.clip-playhead{height:12px;top:-4px;width:3px}
#timeline-pan{margin-left:194px}
@media(max-width:600px){.clip-tab{grid-template-columns:18px 88px 28px minmax(0,1fr) 22px 51px!important;gap:3px}.pending-draft{grid-template-columns:18px 88px 28px minmax(0,1fr)!important}#timeline-pan{margin-left:166px}}

.draft-capture,#capture-clip{display:inline-flex;align-items:center;justify-content:center;width:24px;height:20px;min-height:20px;padding:0;border:1px solid #86545c;border-radius:5px;color:#ff707e;background:#351c2a;font-size:14px;line-height:1;flex-shrink:0}
#capture-clip{width:28px;height:28px;min-height:28px}.draft-capture.capture-recording,#capture-clip.capture-recording{color:#fff;background:#9b3446;border-color:#ff8793}

:root{--clip-name-width:112px}
.clip-tab,.clip-tab.pending-draft{grid-template-columns:18px var(--clip-name-width) 26px 28px minmax(0,1fr) 24px 57px!important;gap:4px}
.capture-cell{display:flex;align-items:center;justify-content:center;min-width:0}
.draft-capture{margin:0;width:22px;height:18px;min-height:18px;font-size:12px}
.pending-draft .row-play,.pending-draft .row-speed{visibility:hidden}
.clip-row-name{width:100%;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.clip-row-track.capturing .clip-row-interval{background:#ff526c!important;opacity:1;min-width:3px}
.clip-row-track.capturing .endpoint-time{color:#ff899a}
.name-width-control{display:flex;align-items:center;gap:4px;margin:0;font-size:10px;color:var(--muted)}.zoom-bar .name-width-control input{width:65px}
#timeline-pan{margin-left:calc(var(--clip-name-width) + 112px)}
@media(max-width:600px){.clip-tab,.clip-tab.pending-draft{grid-template-columns:18px var(--clip-name-width) 24px 24px minmax(0,1fr) 22px 51px!important;gap:2px}.zoom-bar{flex-wrap:wrap;height:auto;min-height:22px}.clip-exact{width:24px}}

#add-inline{flex-shrink:0}#add-inline[hidden],#add-video-open[hidden]{display:none}
#add-video-open{width:28px;height:28px;min-height:28px;padding:0;font-size:20px;flex-shrink:0}.library>.section-title{gap:7px}.library>.section-title h2{margin-right:auto}
#add-video-dialog{width:min(420px,calc(100vw - 32px));padding:20px;background:var(--panel,#101b30);color:var(--text,#e1eafa);border:1px solid var(--line);border-radius:12px}#add-video-dialog::backdrop{background:#0008}#add-video-dialog .exact-heading{display:flex;align-items:center;justify-content:space-between}#add-video-dialog #add-form{margin-top:12px}#add-video-dialog label{margin-top:12px}

.brand .logo{width:40px;height:40px;border-radius:12px;background:transparent;display:block;flex-shrink:0}

