*{box-sizing:border-box}
html,body,#app{margin:0;height:100%;font:14px system-ui;background:var(--bg);color:var(--text)}
[hidden]{display:none!important}
.app-header{display:flex;align-items:center;border-bottom:1px solid var(--line);flex-shrink:0}
.app-header strong{margin-right:auto}
button,input,select,textarea{color:inherit}
button,a{cursor:pointer}
button{border:0;background:transparent;padding:8px 10px;color:inherit}
button:disabled{opacity:.4;cursor:default}
input,select{background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:7px}
a{color:var(--accent)}
h1{font-size:32px;font-weight:600}
.muted,.hint{color:var(--muted)}
.modal-shade{position:fixed;inset:0;background:#000a;z-index:20;display:grid;place-items:center}
.dialog{width:min(620px,94vw);max-height:85dvh;overflow:auto;background:var(--panel);padding:24px;border-radius:6px;border:1px solid var(--line)}
.dialog label{display:block;margin:12px 0}
.dialog label input,.dialog label select{display:block;margin-top:5px;width:100%}
.dialog h2{margin-top:0}
.close{float:right}
.dialog pre{white-space:pre-wrap;font-size:11px}
.dialog article{padding:16px 0;border-top:1px solid var(--line)}
.samples{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.samples canvas{width:100%;background:#000}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#blazor-error-ui{display:none}
table{width:100%;border-collapse:collapse;font-size:12px}
th,td{text-align:left;padding:7px;border-bottom:1px solid var(--line)}
details{margin:12px 0}
summary{cursor:pointer}
.results{width:min(800px,94vw);padding:0;max-height:88dvh}
.results-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 12px}
.results-header h2{margin:0;font-size:23px;letter-spacing:-.4px}
.results-header p{margin:7px 0 0;color:var(--muted);font-size:13px}
.icon-button{font-size:26px;line-height:24px;padding:4px 10px}
.results-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 26px 12px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}
.results-notice{margin:18px 26px;color:var(--muted);font-size:12px;line-height:1.6}
.results .model-card{padding:22px 26px;border-top:1px solid var(--line)}
.model-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.model-heading h3{font-size:17px;font-weight:600;margin:0 0 4px}
.model-subtitle{font-size:12px;color:var(--muted)}
.model-status{font-size:11px;padding:4px 9px;border-radius:4px;color:var(--muted);background:var(--line)}
.model-status.active{background:#4caa8222;color:var(--text);border:1px solid #4caa8266}
.model-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:22px 0 14px}
.model-metrics>div{display:flex;flex-direction:column;gap:6px}
.model-metrics span{font-size:11px;color:var(--muted)}
.model-metrics strong{font-size:21px;font-weight:600}
.model-metrics .metric-text{font-size:13px;line-height:25px;font-weight:500}
.model-note{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0}
.stage-summary{display:flex;flex-wrap:wrap;gap:16px;margin:12px 0 18px;font-size:11px;color:var(--muted)}
.stage-summary i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--muted);margin-right:6px}
.stage-summary i.ready{background:#49b38b}
.model-labels{border-block:1px solid var(--line);padding:12px 0;margin:14px 0}
.model-labels summary{display:flex;justify-content:space-between;font-size:12px;gap:12px}
.model-labels summary:before{content:'▸';margin-right:4px}
.model-labels[open] summary:before{content:'▾'}
.model-labels summary span{margin-left:auto;color:var(--muted)}
.model-labels p{font-size:11px}
.model-labels table{font-size:12px}
.model-labels th{font-weight:500;color:var(--muted)}
.evidence-status{font-size:11px;color:var(--muted)}
.model-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}
.model-actions button,.model-export{font-size:12px}
.model-export{padding:8px 10px;color:var(--text);text-decoration:none}
.model-export:hover{text-decoration:underline}
.evaluation-menu{position:relative;margin:0 0 0 auto;font-size:12px}
.evaluation-menu>summary{padding:8px;list-style:none}
.evaluation-menu>div{position:absolute;bottom:100%;right:0;min-width:170px;background:var(--panel);border:1px solid var(--line);padding:4px;box-shadow:0 4px 12px #0003}
.model-provenance{margin:18px 0 0;font-size:11px;color:var(--muted)}
.model-provenance pre{max-height:260px;overflow:auto;background:var(--bg);padding:12px}
.model-id{overflow-wrap:anywhere}
.model-feedback{font-size:12px;margin:12px 26px;color:var(--text)}
@media(max-width:560px){.results-header,.results .model-card{padding:18px}
.results-toolbar{padding-inline:18px}
.results-notice{margin-inline:18px}
.model-metrics{grid-template-columns:repeat(2,1fr);gap:14px}
.model-actions{gap:3px}}
.library-brand{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600}
.library-brand img{width:26px;height:26px}
.library-settings{display:flex;gap:8px;align-items:center}
.library-settings button{font-size:12px;color:var(--muted)}
.library-hero{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;margin-bottom:64px}
.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--muted);font-weight:600}
.library-hero h1{font-size:clamp(28px,3.5vw,42px);line-height:1.15;letter-spacing:-1.2px;font-weight:600;margin:14px 0}
.library-hero p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.review-list-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px;gap:20px}
.review-list-heading h2{font-size:17px;font-weight:600;margin:0}
.review-list-heading>span{font-size:12px;color:var(--muted)}
.review-row{width:100%;display:flex;align-items:center;gap:18px;padding:20px 8px;border-bottom:1px solid var(--line);border-radius:0;text-align:left;min-height:88px;background:transparent}
.review-row:hover{background:var(--line)}
.review-character{width:34px;height:34px;object-fit:contain}
.review-info{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.review-info strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.review-info>span{font-size:11px;color:var(--muted)}
.review-progress{width:132px;display:flex;flex-direction:column;gap:4px}
.review-count{font-size:10px;color:var(--muted)}
.review-progress-track{height:2px;background:var(--line);margin-top:3px;width:100%}
.review-progress-track>span{height:100%;display:block;background:var(--accent)}
.review-open{font-size:12px;color:var(--muted);width:82px;text-align:right}
.review-open>span{margin-left:8px}
.library-empty p{font-size:15px;color:var(--text)}
.library-empty span{font-size:12px}
.editor-header .library-back{margin-right:8px}
.editor-header strong{font-size:13px}
[data-theme=light] .review-status.complete{color:#267252}
@media(max-width:700px){#welcome.review-library{padding:22px 20px}
.library-heading{margin-bottom:32px}
.library-hero{grid-template-columns:1fr;gap:26px;margin-bottom:36px}
.upload-prompt{padding:22px}
.review-row{gap:10px}
.review-progress{width:94px}
.review-open{width:auto;font-size:0}
.review-open>span{font-size:16px}
.review-character{width:26px;height:26px}
.library-settings button{font-size:11px;padding:5px}
.review-info>span{font-size:10px}}
.box-review{min-height:26px;gap:4px;flex-wrap:wrap;border-top:1px solid #ff596b;align-items:flex-start;justify-content:space-between;background:transparent}
.box-review .box-label{flex:1;min-width:85px}
.box-review .picker{width:100%;max-width:100%}
.box-review .picker>input{height:26px;padding:3px 7px;font-size:11px;background:#171a1ed9;border:0;border-radius:0}
.box-quick{background:#171a1ed9;border-radius:0;flex-shrink:0;margin-left:auto}
.box-quick button{min-height:26px;padding:3px 6px;font-size:10px;font-weight:500}
.box-review .box-quick{border-top:0}
.box-review .picker>div{min-width:220px}
.saving .controls,.saving #box-canvas,.saving .box-review{pointer-events:none}
.saving .box-quick{opacity:.65}
.danger-action{color:#ff8c99;border-top:1px solid #ffffff20;border-radius:0;margin-top:4px}
.clip-interval{position:absolute;top:12px;height:3px;background:#8a949344;pointer-events:none}
.clip-interval.confirmed{background:#ef566455}
.model-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.model-inputs figure{margin:0}
.model-inputs img{width:100%;display:block;background:#000}
.model-inputs figcaption{font-size:10px;color:var(--muted);margin-top:4px}
.loading-content{display:flex;align-items:center;flex-direction:column;gap:14px}
.loading-content strong{font-size:17px;font-weight:500}
.loading-content>span:last-child{font-size:12px;color:var(--muted)}
.loading-spinner{width:32px;height:32px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:loading-spin .8s linear infinite;margin-bottom:6px}
@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none;border-color:var(--accent);border-style:dashed}}
.scan-summary{display:flex;gap:48px;border-block:1px solid var(--line);padding:20px 0;margin:20px 0}
.scan-summary>div{display:flex;flex-direction:column;gap:6px}
.scan-summary strong{font-size:26px;font-weight:600}
.scan-summary span{font-size:11px;color:var(--muted)}
.action-dialog{width:min(920px,94vw);padding:24px;display:flex;flex-direction:column;overflow:hidden;max-height:88dvh}
.action-picker-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.action-picker-header h2{margin:0;font-size:22px}
.action-picker-header p{margin:6px 0 18px;color:var(--muted);font-size:12px}
.action-query{width:100%;min-height:44px;flex-shrink:0;background:var(--bg);border-radius:4px}
.action-sections{overflow:auto;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:22px;padding:2px 4px 4px}
.action-section h3{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.action-choice{display:block;text-align:left;width:100%;padding:8px 10px;min-height:38px;font-size:13px;border-radius:3px}
.action-choice[aria-pressed=true]{color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.action-choice.keyboard-choice{outline:1px solid var(--accent);outline-offset:-1px}
.action-empty{grid-column:1/-1;color:var(--muted);padding:20px 0}
.action-picker-hint{margin:18px 0 0;font-size:11px;color:var(--muted)}
@media(max-width:740px){.action-sections{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.action-dialog{padding:18px}}
@media(max-width:480px){.action-sections{grid-template-columns:1fr}}
.box-review #move-search{cursor:pointer;caret-color:transparent;padding-right:20px;display:block;width:100%;height:30px;min-height:30px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 8px;font-size:12px;color:#fff;background:#14181eed;border:0;border-bottom:1px solid #ff596b;border-radius:2px 2px 0 0}
.box-review #move-search:hover{background:#252b33}
.notes-dialog{width:min(900px,94vw);padding:26px;overflow:auto}
.notes-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}
.notes-header h2{font-size:23px;font-weight:550;margin:5px 0}
.notes-header p{font-size:12px;color:var(--muted);margin:7px 0 0}
.notes-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:28px}
.note-composer label{font-size:12px;color:var(--muted);margin:0 0 14px}
.note-composer input,.note-composer select,.note-composer textarea{background:var(--bg);border:1px solid var(--line);font-size:14px;color:var(--text);width:100%;margin-top:6px;padding:10px;border-radius:4px}
.note-composer textarea{font:14px/1.6 system-ui;resize:vertical;min-height:150px;max-height:30vh}
.note-range-fields{display:flex;gap:12px}
.note-range-fields label{flex:1;min-width:0}
.note-target{font-size:12px;color:var(--muted);line-height:1.5}
.note-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.note-actions button{font-size:12px}
.notes-library{border-left:1px solid var(--line);padding-left:24px;max-height:55vh;overflow:auto}
.notes-library h3{font-size:13px;margin:0 0 14px;font-weight:550}
.notes-library h3 span{color:var(--muted);margin-left:6px}
.note-entry{border-top:1px solid var(--line);padding:12px 0!important}
.note-entry-title{display:block;width:100%;text-align:left;padding:0;min-height:24px;font-size:12px;font-weight:550;color:var(--text)}
.note-entry p{font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin:6px 0}
.note-edit{font-size:11px;color:var(--muted);min-height:26px;padding:3px 0}
.notes-empty{font-size:13px;line-height:1.6;color:var(--muted)}
#note-feedback{font-size:12px;line-height:1.5;color:var(--muted)}
.training-modal{z-index:65;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(5px)}
.training-dialog{width:min(460px,calc(100vw - 32px));padding:28px;max-height:90dvh;overflow:auto;text-align:center}
.training-dialog h2{font-size:25px;letter-spacing:-.5px;margin:4px 0 10px}
.training-art{display:block;width:min(300px,100%);height:170px;margin:12px auto 0;fill:var(--panel);stroke:var(--muted);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.training-bag{fill:color-mix(in srgb,var(--accent) 22%,var(--panel));stroke:var(--accent);transform-origin:254px 18px;animation:bag-swing 1.8s ease-in-out infinite}
.training-robot{stroke:var(--muted);fill:color-mix(in srgb,var(--muted) 12%,var(--panel))}
.robot-eyes{stroke:var(--accent)}
.training-punch{fill:var(--accent);stroke:var(--accent);animation:robot-punch 1.8s ease-in-out infinite}
.training-floor{opacity:.35}
.training-impact{stroke:var(--accent);animation:punch-impact 1.8s ease-in-out infinite}
.training-quip{font-size:13px;color:var(--muted);min-height:40px;line-height:1.5;margin:0 0 16px}
.training-progress{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;font-size:12px}
.training-progress strong{font-weight:550}
.training-progress span{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.training-dialog progress{display:block;width:100%;height:6px;margin:12px 0 18px;accent-color:var(--accent)}
#training-description{font-size:12px;line-height:1.65;text-align:left;color:var(--muted);margin:0}
.training-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);margin-top:22px;padding-top:16px}
.training-bottom span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.training-bottom button{min-height:36px;font-size:12px;padding:8px 12px;border:1px solid var(--line)}
@keyframes robot-punch{0%,20%,75%,100%{transform:translateX(0)}35%,45%{transform:translateX(15px)}}
@keyframes bag-swing{0%,25%,100%{transform:rotate(0)}45%{transform:rotate(-13deg)}65%{transform:rotate(5deg)}85%{transform:rotate(-2deg)}}
@keyframes punch-impact{0%,30%,60%,100%{opacity:0}36%,46%{opacity:1}}
@media(prefers-reduced-motion:reduce){.training-bag,.training-punch,.training-impact{animation:none}
.training-impact{display:none}}
@media(max-width:480px){.training-dialog{padding:22px}
.training-art{height:145px}}
.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;--rail-width:64px;padding-left:var(--rail-width)}
.app-shell.rail-expanded{--rail-width:176px}
.product-rail{position:fixed;inset:0 auto 0 0;width:var(--rail-width);z-index:15;display:flex;flex-direction:column;align-items:stretch;background:var(--panel);border-right:1px solid var(--line);padding:12px 8px;gap:20px}
.product-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);min-height:42px;padding:4px 8px}
.product-brand img{width:32px;height:32px;flex-shrink:0}
.product-brand>span{font-size:13px;font-weight:650;line-height:1.25;display:none}
.rail-expanded .product-brand>span,.rail-expanded .rail-label{display:block}
.rail-primary,.rail-secondary{display:flex;flex-direction:column;gap:6px}
.rail-secondary{margin-top:auto}
.product-rail button{display:flex;align-items:center;gap:14px;min-height:44px;padding:10px 12px;border-radius:7px;text-align:left;color:var(--muted)}
.product-rail button.active{background:var(--selection);color:var(--primary);box-shadow:inset 3px 0 var(--primary)}
.rail-label{display:none;font-size:13px}
.product-rail svg,[data-icon] svg{width:20px;height:20px;display:block;flex-shrink:0}
.rail-expanded #rail-expand svg{transform:rotate(180deg)}
.is-library .editor-header{display:none}
.editor-header{border-bottom:1px solid var(--line);height:56px;gap:12px;padding:8px 16px;min-width:0}
.editor-header #workspace-heading{font-size:18px;margin:0;white-space:nowrap}
.editor-header #header-recording-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;min-width:80px;max-width:30vw;color:var(--muted)}
.editor-header .review-context{margin:0;gap:10px}
.editor-header .workspace-subject b{font-size:12px}
.editor-header #project-save-state{white-space:nowrap;font-size:12px;margin-left:auto}
.editor-header #project-save-state.saved{color:var(--saved)}
.editor-header #project-save-state.dirty{color:var(--dirty)}
.analysis-header-tools,#workspace-header-actions{display:flex;gap:4px;align-items:center;flex-shrink:0}
.editor-header button{font-size:12px}
.editor-header .primary{color:white}
.editing-workspace~.analysis-header-tools{display:none}
.app-shell:has(.editing-workspace) .analysis-header-tools,.app-shell:has(.editing-workspace) .review-context{display:none}
.product-menu{position:relative;margin:0;display:inline-block}
.product-menu>summary{list-style:none;padding:8px 12px;border:1px solid var(--line);border-radius:6px;font-size:12px;min-height:32px;white-space:nowrap}
.product-menu>summary:after{content:'⌄';margin-left:8px;color:var(--muted)}
.product-menu>div{position:absolute;right:0;top:calc(100% + 6px);z-index:24;min-width:220px;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:4px}
.product-menu>div button{text-align:left;font-size:13px}
.product-menu:not([open])>div{display:none}
.product-menu .workspace-advanced{margin:0}
.product-menu .workspace-advanced>div{position:static;border:0;box-shadow:none}
.product-menu .workspace-advanced summary{padding:8px}
.product-menu label{font-size:13px}
.product-menu select{width:100%}
.coaching-settings{display:flex;flex-direction:column;align-items:flex-start!important;gap:10px!important;padding:8px 0}
.playback-options>div{top:auto;bottom:calc(100% + 8px)}
.editor-top{display:none!important}
.footer{background:var(--panel);font-size:12px;min-height:0;padding:4px 12px;gap:8px}
.footer:has(#status:empty):not(:has(#cancel-job:not([hidden]))){display:none}
#welcome.review-library{flex:1;min-height:0;overflow:visible;max-width:none;width:100%;margin:0;padding:28px;scrollbar-gutter:stable}
.is-library{height:auto;min-height:100dvh;overflow:visible}
.library-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.library-search{position:relative;display:flex;align-items:center;gap:10px;flex:1;min-width:220px;max-width:620px;background:var(--panel);border:1px solid var(--line);border-radius:7px;padding-left:12px}
.library-search input{border:0;background:transparent;min-height:40px;width:100%;font-size:14px;outline-offset:0}
.library-search svg{color:var(--muted);width:18px}
.library-toolbar select{min-height:40px;font-size:13px}
.library-view{display:flex;gap:3px;margin-left:auto}
.library-view button{border:1px solid var(--line);min-width:36px;min-height:36px}
.library-view [aria-pressed=true]{background:var(--selection);color:var(--primary);border-color:var(--primary)}
.library-results-heading{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:12px}
.library-layout{display:flex;align-items:flex-start;gap:24px;min-width:0}
#library-recordings{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px;flex:1;min-width:0}
.purpose-badge{padding:3px 7px;border-radius:4px;background:var(--surface);color:var(--muted)}
#library-recordings[data-view=list]{display:flex;flex-direction:column;gap:8px}
#library-recordings[data-view=list] .recording-card{display:flex;align-items:center}
#library-recordings[data-view=list] .recording-open{display:flex;align-items:center;flex:1}
#library-recordings[data-view=list] .recording-poster{width:150px;height:86px;flex:0 0 150px}
#library-recordings[data-view=list] .recording-info{padding:10px 16px}
#library-recordings[data-view=list] .recording-card-footer{padding:12px;flex-wrap:wrap;justify-content:flex-end}
#library-preview{position:sticky;top:24px;width:340px;flex:0 0 340px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}
#library-preview video{width:100%;aspect-ratio:16/9;background:black;border-radius:6px;margin:8px 0}
#library-preview h2{font-size:17px;overflow-wrap:anywhere;margin:12px 0}
#library-preview p{font-size:13px;line-height:1.5;color:var(--muted)}
#library-preview-content>button{display:block;width:100%;margin-top:8px}
.close-preview{float:right;font-size:22px}
.library-empty{padding:32px;color:var(--muted);grid-column:1/-1;min-height:220px;text-align:center;border:1px dashed var(--line);border-radius:8px}
.library-empty h2{font-size:20px;color:var(--text)}
@media(max-width:1400px){.editor-header .workspace-subject{display:none}
.editor-header #header-recording-name{max-width:24vw}
.library-layout{gap:16px}
#library-preview{width:300px;flex-basis:300px}}
@media(max-width:1100px){#library-preview{position:fixed;right:12px;top:76px;bottom:16px;z-index:25;overflow:auto;max-width:calc(100vw - 88px)}
.editor-header{flex-wrap:wrap;height:auto;min-height:56px;gap:6px}
.editor-header #header-recording-name{max-width:35vw}
.editor-header .analysis-header-tools{margin-left:auto}
.editor-header #remaining{display:none}}
@media(max-width:720px){.app-shell{height:auto;min-height:100dvh;overflow:visible}
.product-rail{width:64px}
.app-shell.rail-expanded{--rail-width:64px}
.rail-expanded .product-rail{width:176px}
.editor-header{padding:8px}
.editor-header #workspace-heading{font-size:16px}
.editor-header #header-recording-name{max-width:calc(100vw - 180px)}
.editor-header #project-save-state{font-size:11px}
.analysis-header-tools{width:100%;justify-content:flex-end}
.editor-header .review-context{display:none}
#welcome.review-library{padding:18px 12px}
.library-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
.library-heading h1{font-size:24px}
.library-heading p{font-size:12px}
.library-toolbar{gap:8px}
.library-search{min-width:100%;max-width:none}
.library-toolbar select{max-width:145px}
.library-view{margin-left:0}
#library-recordings{grid-template-columns:1fr}
#library-recordings[data-view=list] .recording-poster{width:84px;height:64px;flex-basis:84px}
#library-recordings[data-view=list] .recording-info{padding:8px;max-width:calc(100vw - 170px)}
#library-recordings[data-view=list] .recording-card{flex-wrap:wrap}
#library-recordings[data-view=list] .recording-card-footer{width:100%;padding:6px 10px}
.library-footnote{flex-direction:column}
.product-rail button,button:not(.marker):not(.review-range-marker):not(.help-tag):not(.help-tab):not(.help-faq-q):not(.help-back):not(.tour-control){min-height:44px}
.product-menu>summary{min-height:44px;display:flex;align-items:center}
#library-preview{right:8px;max-width:calc(100vw - 80px);width:340px}}
@media(prefers-reduced-motion:reduce){.recording-card{transition:none}}

.footer:has(#cancel-job:not([hidden])){position:sticky;bottom:0;z-index:16;background:var(--panel);border-top:1px solid var(--line)}.range-precision{margin:0}.range-precision>summary{font-size:12px;min-height:28px;padding:3px 9px}.range-precision>summary:after{display:none}.range-precision>div{top:auto;bottom:100%;right:0;text-align:left;width:220px}.range-precision input{width:100%;margin-top:4px}.range-precision button{white-space:normal}

.product-brand .brand-logo{display:block;position:relative;width:36px;height:36px;overflow:hidden;flex-shrink:0}.product-brand .brand-logo img{position:absolute;max-width:none;width:145px;height:58px;left:-9px;top:-13px}.rail-expanded .product-brand .brand-logo{width:150px;height:40px}.rail-expanded .product-brand .brand-logo img{width:166px;height:66px;left:-8px;top:-13px}

.product-brand{justify-content:center;min-height:54px;overflow:visible}
.product-brand .brand-logo.frame-stack,.rail-expanded .product-brand .brand-logo.frame-stack{display:block;width:42px;height:42px;position:relative;overflow:visible;perspective:180px}
.brand-frame{position:absolute;inset:0;display:block;transform-origin:70% 75%;transition:transform .38s cubic-bezier(.2,.8,.2,1),filter .38s;will-change:transform}
.brand-frame.front{background:url('../brand/frame-icon.png') center / 100% 100% no-repeat;transform:translate(3px,-2px) rotate(-10deg) rotateY(-18deg);filter:drop-shadow(0 2px 3px #0005)}
.brand-frame.back,.brand-frame.middle{inset:6px 4px 3px;border:3px solid #387cf5;border-radius:7px;background:var(--bg)}
.brand-frame.back{transform:translate(-4px,1px) rotate(-18deg);opacity:.8}
.brand-frame.middle{border-color:#a34df2;transform:translate(-1px,0) rotate(-13deg)}
.product-brand:hover .brand-frame.back,.product-brand:focus-visible .brand-frame.back{transform:translate(-9px,3px) rotate(-29deg)}
.product-brand:hover .brand-frame.middle,.product-brand:focus-visible .brand-frame.middle{transform:translate(-4px,0) rotate(-18deg)}
.product-brand:hover .brand-frame.front,.product-brand:focus-visible .brand-frame.front{transform:translate(5px,-4px) rotate(-5deg) rotateY(-12deg);filter:drop-shadow(0 3px 5px #0006)}
@media(prefers-reduced-motion:reduce){.brand-frame{transition:none}}
