/* Shared compact product layout; typography stays readable on large displays. */
:root{--shell-header:48px;--shell-offset:0px;--shell-panel-width:228px;--shell-sidebar:190px}
.app-header{height:48px;grid-template-columns:190px minmax(0,1fr) 190px}
.shell-brand{display:flex;align-items:center;gap:3px;padding-left:10px;min-width:0}
.app-logo{height:48px;padding:0 6px;font-size:19px;line-height:24px;gap:7px}.app-logo svg{width:27px;height:27px}
.shell-toggle{display:grid;place-items:center;flex:none;width:30px;height:30px;min-height:30px;padding:5px;border:0;border-radius:7px;background:transparent;color:#5d7592;cursor:pointer}.shell-toggle:hover{background:#eaf1fb}.shell-toggle svg{width:20px;height:20px}.shell-toggle:focus-visible,.shell-resizer:focus-visible{outline:2px solid #4083ed;outline-offset:-2px}
.app-main-nav{height:48px;gap:26px}.app-main-nav a{font-size:16px;line-height:22px;border-bottom-width:2px}.app-header-state{font-size:13px}.app-header-state .live{font-size:13px}
aside.module-sidebar{inset:48px auto 0 0;width:var(--shell-panel-width);height:calc(100dvh - 48px);padding:12px 10px;visibility:hidden;transform:translateX(-100%);overflow:auto;transition:transform .16s ease,visibility .16s;z-index:95}
body.sidebar-open aside.module-sidebar{visibility:visible;transform:none}.module-sidebar .module-label,.module-sidebar .sidebar-bottom>small,.module-sidebar .engine-line{display:none!important}
.module-sidebar nav{gap:4px}.module-sidebar nav>a,.module-sidebar nav>button,.module-sidebar nav>.nav-item{min-height:38px;height:38px;padding:7px 12px!important;font-size:16px!important;line-height:24px!important;overflow:hidden;text-overflow:ellipsis}.module-sidebar .library-heading{margin-top:14px}.module-sidebar .sidebar-current-match{margin-top:10px}.module-sidebar .sidebar-bottom{padding-top:12px}.module-sidebar .sidebar-current-match small{display:none}
.shell-resizer{position:fixed;left:calc(var(--shell-offset) - 3px);top:48px;bottom:0;width:7px;z-index:110;cursor:col-resize;touch-action:none;background:transparent;outline:0}.shell-resizer:hover,.shell-resizer:focus-visible{background:#4386e843}.sidebar-resizing,.sidebar-resizing *{cursor:col-resize!important;user-select:none!important}.sidebar-resizing aside.module-sidebar{transition:none}
body[data-module=workbench]>main.page-content,body[data-module=data]>main.page-content,body[data-module=annotation]>.annotation-shell{width:calc(100% - var(--shell-offset));max-width:none;margin:48px 0 0 var(--shell-offset);padding:12px 18px 16px;box-sizing:border-box}
body[data-module=profile]>main{width:calc(100% - var(--shell-offset));margin:48px 0 0 var(--shell-offset)!important;box-sizing:border-box}
body[data-module=profile]>main>.topbar{top:48px;height:48px;min-height:48px;padding:0 18px!important;gap:12px}body[data-module=profile] .topbar h1{font-size:18px!important;line-height:24px!important;max-width:54vw}body[data-module=profile] #workspace{padding:12px 18px 18px}
body[data-module] :is(button,.button){line-height:22px}body[data-module] :is(.actions,.topbar-actions,.panel-heading,.card-heading)>:is(button,.button){min-height:32px;padding:4px 10px;font-size:15px;border-radius:7px}
body[data-module] :is(input:not([type=checkbox]):not([type=range]):not([type=radio]),select){min-height:34px;padding-top:5px;padding-bottom:5px;font-size:15px}body[data-module] :is(.panel,.card){border-radius:12px}body[data-module] :is(.panel-heading,.card-heading){margin-bottom:10px;gap:10px}body[data-module] :is(.panel-heading,.card-heading) h2{font-size:19px;line-height:26px}body[data-module] :is(.panel-heading,.card-heading) p{margin:3px 0;font-size:14px}.page-footer,.eyebrow{display:none!important}
/* Archive and task detail scroll within their own workspace. */
body[data-module=data] .content-toolbar{min-height:34px;margin:0 0 10px}body[data-module=data] .content-toolbar h1{font-size:20px;line-height:26px}body[data-module=data] .stats{margin-bottom:12px;gap:10px}body[data-module=data] .stats>div{padding:10px 14px}body[data-module=data] .stats strong{font-size:23px;line-height:30px}body[data-module=data] .stats span{font-size:14px}
body[data-module=data] .library-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:12px;align-items:start}body[data-module=data] .panel{padding:16px}body[data-module=data] :is(.match-panel,#match-detail){height:calc(100dvh - 184px);min-height:330px;overflow:auto}body[data-module=data] .match-panel{display:flex;flex-direction:column}body[data-module=data] .match-panel .match-list{flex:1;min-height:0;overflow:auto}body[data-module=data] .spaced{margin-top:12px}body[data-module=data] :is(.detail-actions,.actions){gap:8px}
body[data-module=workbench] .product-spotlight{min-height:140px;height:clamp(140px,19vh,196px);margin-bottom:12px;border-radius:14px}body[data-module=workbench] .product-spotlight>div{padding:20px 26px}body[data-module=workbench] .product-spotlight h2{font-size:clamp(24px,2vw,32px);line-height:1.25;margin:0 0 8px}body[data-module=workbench] .product-spotlight p,body[data-module=workbench] .result-pill{display:none}body[data-module=workbench] .spotlight-action{font-size:15px;padding:7px 12px;margin:0}body[data-module=workbench] .modules{gap:10px;margin:0 0 12px}body[data-module=workbench] .module{padding:12px 16px;min-height:0}body[data-module=workbench] .module>span{display:none}body[data-module=workbench] .module h2{font-size:20px;line-height:26px;margin:0}body[data-module=workbench] .module p{margin:5px 0 0;font-size:14px}body[data-module=workbench] .budgets{margin:0 0 12px}body[data-module=workbench] .budget{padding:9px 14px}body[data-module=workbench] .section-heading{margin:12px 0 8px}body[data-module=workbench] .section-heading p{display:none}body[data-module=workbench] .workspace{gap:12px;grid-template-columns:300px minmax(0,1fr)}body[data-module=workbench] .workspace>.panel{padding:14px;min-height:260px;max-height:calc(100dvh - 410px);overflow:auto}body[data-module=workbench] .leases{padding:14px;margin-top:12px}body[data-module=workbench] .leases .hint{display:none}
/* Annotation: video and secondary inspector use all remaining height. */
body[data-module=annotation] .library-bar{margin-bottom:8px;padding:8px 12px;min-height:40px}body[data-module=annotation] .library-bar h2{font-size:18px;line-height:24px;margin:0}body[data-module=annotation] .library-bar p,body[data-module=annotation] .library-bar .eyebrow{display:none}.review-display-controls{min-height:32px;margin-bottom:8px;gap:14px}.review-display-controls button,.review-display-controls #openAnalysisScope,.review-display-controls #openVisualCalibration{min-height:32px;padding:4px 10px;font-size:15px}.review-display-controls output{font-size:14px}
#reviewWorkspace{--ur-stage-height:calc(100dvh - 226px);--ur-panel-width:300px;--ur-rail-width:56px}#reviewWorkspace .ur-shell{padding:6px}#reviewWorkspace .ur-operator-deck{gap:6px}#reviewWorkspace .ur-operator-rail{padding:3px;gap:2px}#reviewWorkspace .ur-operator-rail button,#reviewWorkspace .ur-operator-rail summary{min-height:36px;padding:4px 2px;font-size:14px;line-height:20px}#reviewWorkspace .ur-operator-label{font-size:14px}#reviewWorkspace .ur-operator-panel{max-height:calc(100dvh - 184px);overflow:auto}#reviewWorkspace .ur-operator-panel-title{font-size:17px;line-height:24px}#reviewWorkspace .ur-task{padding:8px 10px}#reviewWorkspace .ur-task strong{font-size:16px;line-height:23px}#reviewWorkspace .ur-task-camera,#reviewWorkspace .ur-task-badge,#reviewWorkspace .ur-identity-legend,#reviewWorkspace .ar-caption{display:none}#reviewWorkspace .ar-transport{padding:5px 8px;gap:6px}#reviewWorkspace .ar-transport button{min-height:30px;padding:3px 9px}#reviewWorkspace #arFrameFocus{min-height:220px}#reviewWorkspace #arQuickIdentity.ar-track-gallery{top:calc(50% + 24px)!important;max-height:calc(100dvh - 68px)!important;height:min(640px,calc(100dvh - 68px))!important}#analysisSettings .settings-panel{padding:12px 16px;margin-bottom:8px}#analysisSettings .settings-panel summary{font-size:17px;line-height:24px}.form-grid{gap:12px}
/* Profile is an analysis product; editing and import belong to other modules. */
body[data-module=profile] :is([data-section=import],[data-section=review],[data-section=quality],[data-panel=import],[data-panel=review],[data-panel=quality],#importButton,#welcomeImport,#sidebarImport,#libraryImportButton,#importDialog,#demoButton,#datasetButton,#sidebarDatasets,#demoBanner,#dataQualityButton,#showSystem,#languageSwitcher){display:none!important}
body[data-module=profile] .welcome .onboarding,body[data-module=profile] .welcome-copy>small{display:none}body[data-module=profile] .profile-analysis-status:not([data-pending=true]){display:none}body[data-module=profile] #mobileMatchSelect{display:block;max-width:240px}body[data-module=profile] .topbar-actions{gap:8px}body[data-module=profile] #matchStatus{display:none}body[data-module=profile] :is(.card-heading,.section-heading){margin-bottom:10px}body[data-module=profile] .card{padding:16px}body[data-module=profile] .metric-grid{gap:10px}body[data-module=profile] .section-heading h2{font-size:20px;line-height:28px}body[data-module=profile] #productTools{font-size:15px}body[data-module=profile] .card-heading p{display:none}
/* All 3D chrome remains inside the stage and shares the 48px header. */
body[data-module=reconstruction] .scene-caption{top:60px;padding:5px 12px}body[data-module=reconstruction] .scene-caption h1{font-size:17px;line-height:24px}body[data-module=reconstruction] .scene-actions{top:58px;right:16px;gap:6px}body[data-module=reconstruction] .scene-actions button{font-size:15px;line-height:22px;min-height:32px;padding:4px 9px}body[data-module=reconstruction] .view-switcher{top:58px;left:16px}body[data-module=reconstruction] .source-panel{top:104px;right:16px}body[data-module=reconstruction] .scene-top{top:104px;left:16px}body[data-module=reconstruction] .app-logo{padding-left:16px}body[data-module=reconstruction] .transport{padding:12px 16px}
@media(min-width:1800px){.app-main-nav a{font-size:17px}.module-sidebar nav>.nav-item{font-size:17px!important}#reviewWorkspace{--ur-panel-width:332px}body[data-module=profile] .topbar h1{font-size:20px!important}}
@media(max-width:900px){.app-header{grid-template-columns:180px minmax(0,1fr)}.app-header-state{display:none}.app-main-nav{gap:18px;justify-content:flex-start}.app-logo{font-size:18px}body[data-module=data] .library-layout{grid-template-columns:230px minmax(0,1fr)}body[data-module=profile] .topbar h1{max-width:42vw}#reviewWorkspace{--ur-panel-width:270px}}
@media(max-width:760px){.app-header{grid-template-columns:166px minmax(0,1fr)}.shell-brand{padding-left:6px}.app-logo svg{width:24px;height:24px}.app-logo{font-size:17px;padding:0}.app-main-nav{gap:15px}.app-main-nav a{font-size:14px}.module-sidebar nav{display:grid!important;width:100%}.module-sidebar nav>a,.module-sidebar nav>button{width:100%}.module-sidebar .library-heading,.module-sidebar .sidebar-current-match{display:block}.module-sidebar .sidebar-bottom{display:block}body[data-module=workbench]>main.page-content,body[data-module=data]>main.page-content,body[data-module=annotation]>.annotation-shell{margin-left:0;width:100%;padding:10px 12px}body[data-module=profile]>main{margin-left:0!important;width:100%}body.sidebar-open aside.module-sidebar{box-shadow:10px 0 35px #16315020}body[data-module=profile]>main>.topbar{top:48px;padding:8px 12px!important;height:auto}body[data-module=data] .library-layout,body[data-module=workbench] .workspace{grid-template-columns:1fr}body[data-module=data] :is(.match-panel,#match-detail){height:auto;max-height:70dvh;min-height:200px}.review-display-controls{gap:8px;flex-wrap:wrap}#reviewWorkspace{--ur-stage-height:calc(100dvh - 280px)}body[data-module=profile] #mobileMatchSelect{max-width:150px}}
@media(prefers-reduced-motion:reduce){aside.module-sidebar{transition:none}}
body[data-module=annotation] .match-toolbar{margin-bottom:8px;gap:10px}body[data-module=annotation] .match-toolbar :is(select,button){height:36px;min-height:36px;padding:5px 10px}.match-toolbar>label{gap:0}
#reviewWorkspace{--ur-stage-height:calc(100dvh - 274px)}#reviewWorkspace #annotationReviewDialog{position:relative}#reviewWorkspace .ur-shortcut-help{position:absolute;top:10px;right:10px;z-index:8;margin:0;background:#ffffffdd;border-radius:6px;font-size:13px}#reviewWorkspace .ur-shortcut-help summary{padding:3px 7px;min-height:24px;line-height:18px}#reviewWorkspace .ar-transport button{height:32px;min-height:32px;padding:4px 8px}#reviewWorkspace .ar-transport :is(select,input[type=range]){height:32px;min-height:32px}#reviewWorkspace .ur-segment-nav{margin-top:6px;padding-top:0;min-height:34px}#reviewWorkspace .ur-segment-nav button{height:30px;min-height:30px;padding:3px 9px;font-size:14px}#reviewWorkspace .ur-operator-panel{max-height:calc(100dvh - 170px)}
body[data-module=profile] .main-footer{display:none}body[data-module=profile] .workspace-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;min-height:34px;gap:12px}body[data-module=profile] .workspace-heading h2{font-size:20px;line-height:26px;margin:0}body[data-module=profile] .yqzx-analysis-status{width:auto;margin:0;padding:0;min-height:32px;gap:10px;border:0;background:none}body[data-module=profile] .yqzx-analysis-status button{height:32px;min-height:32px;padding:4px 10px;font-size:15px}body[data-module=profile] .yqzx-analysis-status:not([data-pending=true]) #profileAnalysisMessage{display:none}body[data-module=profile] .card .card-heading{padding:0;min-height:34px;height:auto;margin:0 0 10px}body[data-module=profile] .card .card-heading button{height:32px;min-height:32px;padding:4px 10px}body[data-module=profile] .analysis-grid{gap:12px}body[data-module=profile] .pitch-card{padding:14px!important;display:flex;flex-direction:column}body[data-module=profile] .pitch-stage{height:clamp(240px,calc(100dvh - 342px),600px);min-height:0;aspect-ratio:auto;margin:0;padding:0;flex:none}body[data-module=profile] #pitchCanvas{width:100%;height:100%;min-height:0;max-height:100%;aspect-ratio:auto}body[data-module=profile] .pitch-legend{padding:5px 0;margin:6px 0;min-height:0;gap:8px;font-size:14px;line-height:22px}body[data-module=profile] .pitch-legend .viz-legend{gap:8px;font-size:14px;line-height:22px}body[data-module=profile] .viz-pitch-controls{padding:0;margin:0;min-height:34px;font-size:14px}body[data-module=profile] .video-card{padding:14px!important}body[data-module=profile] .video-stage{height:clamp(220px,calc(100dvh - 376px),520px);min-height:0;aspect-ratio:auto}body[data-module=profile] #matchVideo{width:100%;height:100%;object-fit:contain}body[data-module=profile] .video-card .timeline{padding:6px 0;margin:0;min-height:32px}body[data-module=profile] .summary-stats .stat-card{padding:10px 12px;min-height:72px}body[data-module=profile] .summary-stats .stat-value{font-size:25px;line-height:32px}body[data-module=profile] .pipeline-progress{width:auto;min-width:170px;max-width:240px}body[data-module=profile] .pipeline-progress>summary{min-height:30px;padding:4px 10px;font-size:14px}body[data-module=profile] #mobileMatchSelect{display:none!important}
body[data-module=profile] #summaryStats .stat-card{padding:8px 12px!important;min-height:64px}body[data-module=profile] #summaryStats .stat-value{font-size:25px;line-height:32px;margin:0}body[data-module=profile] #summaryStats .stat-label{font-size:14px;line-height:20px}body[data-module=profile] .video-stage{height:clamp(210px,calc(100dvh - 490px),520px)}body[data-module=profile] .pitch-stage{height:clamp(240px,calc(100dvh - 374px),600px)}
body[data-module=data] .stats>*{padding:8px 14px!important;min-height:58px}body[data-module=data] .stats :is(strong,b){font-size:23px!important;line-height:28px!important}body[data-module=data] .stats :is(span,small){font-size:14px!important;line-height:20px}body[data-module=data] :is(.match-panel,#match-detail){height:calc(100dvh - 220px)}body[data-module=data] #match-list>button{height:auto;min-height:64px;padding:10px 12px;font-size:15px;line-height:22px;overflow:visible}body[data-module=data] #match-list>button small{font-size:13px;line-height:20px}body[data-module=data] .results-list{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-module=profile] .tactical-views{padding:3px;margin:0 0 10px;gap:4px}body[data-module=profile] .tactical-views button{min-height:34px;height:34px;padding:5px 14px;font-size:16px}body[data-module=profile] #workspace .tactics-card>.card-heading{padding:0 0 8px;margin:0;min-height:34px}body[data-module=profile] #workspace .tactics-card .workspace-timeline{padding:6px 0;gap:10px;margin:0;min-height:34px}body[data-module=profile] #workspace .tactics-layout{padding:10px 0 0;gap:14px}body[data-module=profile] #workspace .tactics-sidebar{padding-left:14px}body[data-module=profile] #tacticsCanvas{max-width:100%;height:clamp(230px,calc(100dvh - 350px),600px);aspect-ratio:auto}body[data-module=profile] #tacticsFacts .tactics-fact{padding:4px 0;gap:2px;font-size:14px;line-height:20px}body[data-module=profile] #tacticsFacts .tactics-fact strong{font-size:17px;line-height:23px}body[data-module=profile] #workspace .tactics-sidebar .quality-note{display:none}body[data-module=profile] #workspace .tactics-sidebar .viz-shape-panel{margin:10px 0 0;padding:10px 0 0}body[data-module=profile] #workspace .tactics-sidebar .viz-shape-panel h3{font-size:17px;line-height:24px;margin-bottom:6px}body[data-module=profile] #workspace .tactics-sidebar .viz-shape-controls{gap:8px;margin-bottom:6px}body[data-module=profile] #workspace .tactics-sidebar .viz-shape-controls select{height:32px;min-height:32px;padding:4px 8px}body[data-module=profile] #workspace .tactics-sidebar #shapeChart{height:clamp(140px,21vh,230px)}body[data-module=profile] #workspace .shape-chart-hint{display:none}body[data-module=profile] .tactics-pitch-pane .viz-legend{font-size:13px;line-height:20px;gap:5px 10px;margin:6px 0}body[data-module=profile] .tactics-method>summary{font-size:14px;min-height:24px}body[data-module=profile] #researchCard .research-summary{margin:8px 0 12px}body[data-module=profile] #researchCard .research-stat{padding:8px 12px}body[data-module=profile] #researchCard .research-stat b{font-size:24px}body[data-module=profile] #workspace #researchCard .research-layout{gap:14px}body[data-module=profile] #researchActions{max-height:calc(100dvh - 370px)}body[data-module=profile] #workspace .players-card .table-scroll{max-height:calc(100dvh - 310px);min-height:200px}body[data-module=profile] #playersTable td{height:48px;padding:7px 12px}body[data-module=profile] .roster-filters{padding:0 0 10px}body[data-module=profile] .roster-team-buttons>button{min-height:32px;padding:4px 9px}body[data-module=profile] #profileContent .profile-header{padding:12px 18px}body[data-module=profile] #profileContent .profile-content{padding:12px 18px}body[data-module=profile] #profileContent .profile-tabs{gap:18px;padding:4px 0}body[data-module=profile] #profileContent .profile-tabs button{font-size:15px;min-height:34px;padding:5px 0}
@media(max-width:760px){body[data-module=profile] #workspace .tactics-layout{grid-template-columns:1fr}body[data-module=profile] #workspace .tactics-sidebar{padding:0;border:0}body[data-module=profile] .video-stage{height:auto;aspect-ratio:16/9}body[data-module=profile] #tacticsCanvas{height:auto;aspect-ratio:105/68}body[data-module=profile] .pitch-stage{height:auto;aspect-ratio:105/68}body[data-module=profile] .workspace-heading{flex-wrap:wrap}body[data-module=profile] .topbar-actions{width:auto}body[data-module=profile] .pipeline-progress{display:none}}
/* Prioritize full media surfaces; only genuine long lists scroll. */
#reviewWorkspace .ur-canvas-meta{display:contents!important}#reviewWorkspace #arTransport{padding:4px 0 0!important;min-height:36px}#reviewWorkspace #arTransport :is(button,select,input[type=range]){height:32px!important;min-height:32px!important;padding-top:3px!important;padding-bottom:3px!important}#reviewWorkspace .ur-task-badge{display:none}
body[data-module=data] .content-toolbar{display:flex;align-items:center;gap:18px;min-height:38px;margin:0 0 12px}body[data-module=data] .content-toolbar #stats{display:flex;align-items:center;gap:18px;margin:0 auto 0 0}body[data-module=data] .content-toolbar #stats>*{display:flex;align-items:center;gap:8px;min-height:0;padding:0!important;border:0;background:none;box-shadow:none}body[data-module=data] .content-toolbar #stats>:nth-child(2),body[data-module=data] .content-toolbar #stats>:nth-child(4){display:none}body[data-module=data] .content-toolbar #stats :is(strong,b){font-size:18px!important;line-height:24px!important}body[data-module=data] #match-detail{height:auto;min-height:0;max-height:none;overflow:visible}body[data-module=data] .match-panel{height:calc(100dvh - 124px)}body[data-module=data] .result-links{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1000px){body[data-module=profile] #workspace[data-workspace-section=overview] .analysis-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;gap:12px;align-items:start}body[data-module=profile] .overview-media-column{display:contents}body[data-module=profile] #summaryStats{grid-column:1/-1;grid-row:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:0!important}body[data-module=profile] #summaryStats .stat-card{padding:8px 16px!important;border-bottom:0!important;min-height:64px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}body[data-module=profile] #summaryStats .stat-card .stat-top{font-size:14px;margin:0}body[data-module=profile] #summaryStats .stat-card .stat-value{margin:0;font-size:25px;line-height:32px}body[data-module=profile] #summaryStats .workspace-stat-action{position:static;margin-left:auto;width:28px;height:28px;min-height:28px}body[data-module=profile] .video-card{grid-row:2;grid-column:1}body[data-module=profile] .pitch-card{grid-row:2;grid-column:2}body[data-module=profile] .video-stage,body[data-module=profile] .pitch-stage{height:clamp(250px,calc(100dvh - 366px),720px)}body[data-module=profile] .video-stage{margin:0!important}body[data-module=profile] .pitch-legend{flex-wrap:wrap;gap:5px 8px;font-size:13px;line-height:20px}body[data-module=profile] #pitchMarkerLegend{gap:5px 8px;font-size:13px;line-height:20px}body[data-module=profile] #workspace .players-card .table-scroll{max-height:calc(100dvh - 285px)}}
@media(max-width:760px){body[data-module=data] .content-toolbar{gap:10px;flex-wrap:wrap}body[data-module=data] .content-toolbar #stats{gap:10px}body[data-module=data] .content-toolbar #stats span{display:none}body[data-module=data] .match-panel{height:auto;max-height:50dvh}}
/* Secondary information shares rows; the main workspace is never a scroll box. */
body[data-module=workbench] .product-spotlight{height:112px;min-height:112px;margin-bottom:10px}
body[data-module=workbench] .product-spotlight>div{padding:12px 22px;display:flex;align-items:center;gap:24px}
body[data-module=workbench] .product-spotlight h2{font-size:24px;margin:0;max-width:350px}
body[data-module=workbench] .modules{margin-bottom:10px;gap:10px}
body[data-module=workbench] .module{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px}
body[data-module=workbench] .module h2{font-size:18px;line-height:24px;white-space:nowrap}
body[data-module=workbench] .module p{font-size:13px;margin:0;color:#6c819a}
body[data-module=workbench] .budgets{gap:10px;margin:0 0 10px}
body[data-module=workbench] .budget{display:flex;align-items:center;gap:10px;padding:8px 12px;min-width:0}
body[data-module=workbench] .budget p{font-size:14px;line-height:22px;white-space:nowrap}
body[data-module=workbench] .budget strong{font-size:20px;line-height:24px;margin:0;white-space:nowrap}
body[data-module=workbench] .budget progress{width:60px;min-width:20px;flex:1}
body[data-module=workbench] .section-heading{margin:10px 0 8px;flex-direction:row;align-items:center}
body[data-module=workbench] .section-heading h2{font-size:20px;line-height:28px}
body[data-module=workbench] .workspace{align-items:start;min-height:0}
body[data-module=workbench] .workspace>.panel{height:auto;max-height:none;min-height:0;overflow:visible}
body[data-module=workbench] .workspace>.task-list{display:flex;flex-direction:column;height:calc(100dvh - 360px);min-height:320px}
body[data-module=workbench] #task-list{flex:1;min-height:0;overflow:auto}
body[data-module=workbench] .task-row{padding:9px 10px;margin-bottom:4px}
body[data-module=workbench] .task-row strong{margin:0 0 5px;font-size:15px;line-height:22px}
body[data-module=workbench] .task-row .row-footer{font-size:11px}
body[data-module=workbench] .task-heading{gap:12px;align-items:center;margin-bottom:8px}
body[data-module=workbench] .task-heading h2{font-size:18px;line-height:26px;flex:1;min-width:0}
body[data-module=workbench] .task-heading .actions{flex:none;align-items:center}
body[data-module=workbench] .stages{gap:0;margin:0}
body[data-module=workbench] .stage{border:0;border-bottom:1px solid #e8edf4;border-radius:0;padding:0;margin:0}
body[data-module=workbench] .stage-heading{position:relative;display:grid;grid-template-columns:minmax(190px,1fr) minmax(0,1.25fr) 70px 44px 12px;gap:10px;min-height:48px;padding:10px 2px;cursor:pointer;list-style:none}
body[data-module=workbench] .stage-heading::-webkit-details-marker{display:none}
body[data-module=workbench] .stage-heading:after{content:'⌄';font-size:16px;color:#8295b0;transition:transform .12s}
body[data-module=workbench] .stage[open]>.stage-heading:after{transform:rotate(180deg)}
body[data-module=workbench] .stage-heading h3{font-size:15px;line-height:24px;font-weight:500;display:flex;align-items:center;gap:10px;white-space:nowrap}
body[data-module=workbench] .stage-number{width:24px;color:#8295af;font-variant-numeric:tabular-nums}
body[data-module=workbench] .stage-message{min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:14px;line-height:22px;color:#6d8099}
body[data-module=workbench] .stage-percent{font-size:13px;text-align:right;color:#6082aa;font-variant-numeric:tabular-nums}
body[data-module=workbench] .stage .status{font-size:12px;text-align:center;padding:2px 6px}
body[data-module=workbench] .stage progress{position:absolute;bottom:0;left:0;height:2px;opacity:.65}
body[data-module=workbench] .stage-diagnostics{padding:6px 12px 12px}
body[data-module=workbench] .stage-meta{font-size:13px;margin:0;flex-wrap:wrap}
body[data-module=workbench] .stage pre{font-size:13px;line-height:20px;max-height:none;overflow:visible}
body[data-module=workbench] .leases{padding:10px 14px;margin-top:10px}
body[data-module=workbench] .leases>summary{font-size:15px;line-height:24px;cursor:pointer;color:#577293}
body[data-module=workbench] .empty{min-height:260px}
body[data-module=data] .published-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-module=data] .published-result{min-height:44px;padding:10px 12px;font-size:15px}
body[data-module=data] .divider{margin:16px 0}
#reviewWorkspace .ur-operator-deck{position:relative}
#reviewWorkspace .review-panel-resizer{display:none;position:absolute;top:0;bottom:0;right:calc(var(--ur-panel-width) + 5px);width:8px;z-index:15;cursor:col-resize;touch-action:none}
#reviewWorkspace.ur-panel-open .review-panel-resizer{display:block}
#reviewWorkspace .review-panel-resizer:hover,#reviewWorkspace .review-panel-resizer:focus-visible{background:#4386e843;outline:2px solid #6aa1eb}
@media(max-width:1200px){body[data-module=workbench] .module p{display:none}body[data-module=workbench] .budget progress{display:none}body[data-module=workbench] .budget{gap:8px}body[data-module=workbench] .stage-heading{grid-template-columns:minmax(160px,1fr) minmax(0,1fr) 65px 40px 12px;gap:6px}}
@media(max-width:760px){body[data-module=workbench] .product-spotlight>div{display:block;padding:12px}body[data-module=workbench] .product-spotlight h2{font-size:19px;margin-bottom:8px}body[data-module=workbench] .stage-heading{grid-template-columns:1fr 65px 40px 12px}body[data-module=workbench] .stage-message{display:none}body[data-module=workbench] .section-heading{flex-wrap:wrap}body[data-module=workbench] .workspace>.task-list{height:auto;max-height:420px}body[data-module=workbench] .task-heading{flex-wrap:wrap}body[data-module=data] .published-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){body[data-module=profile] .video-stage,body[data-module=profile] .pitch-stage{height:clamp(240px,calc(100dvh - 402px),720px)}body[data-module=profile] .pitch-card{position:relative}body[data-module=profile] .pitch-card>.viz-pitch-controls{position:absolute;top:14px;right:145px;width:auto;gap:6px}body[data-module=profile] .viz-pitch-controls label{font-size:0}body[data-module=profile] .viz-pitch-controls select{width:160px;min-width:0;height:32px;min-height:32px}body[data-module=profile] #summaryStats .stat-card{min-height:52px;padding:6px 16px!important}}
@media(max-width:760px){.module-sidebar nav{grid-template-columns:1fr!important;grid-auto-flow:row!important}.module-sidebar nav>.nav-item{min-width:0;max-width:100%}}
body[data-module=workbench] .workspace>.task-list{height:calc(100dvh - 414px)}
body[data-module=workbench] .stage-heading{min-height:42px;padding:8px 2px}
#reviewWorkspace .ur-operator-panel-heading{padding:0 0 7px;margin-bottom:8px;gap:6px;min-height:34px}
#reviewWorkspace .ur-operator-panel-heading h3{font-size:18px;line-height:24px;margin-right:auto}
#reviewWorkspace .ur-history-controls{gap:4px;padding:0;margin:0}
#reviewWorkspace .ur-history-controls button{width:28px;height:28px;min-height:28px;padding:3px;font-size:0;gap:0}
#reviewWorkspace [data-ur-panel-close]{height:28px;width:28px;min-height:28px;padding:3px}
#reviewWorkspace[data-ur-panel=continuity] .ur-history-controls{display:none}
#reviewWorkspace .review-queue-tools{display:flex;align-items:start;gap:6px;margin:0 0 8px}
#reviewWorkspace .review-queue-tools .ur-kind-tabs{flex:0 0 112px;margin:0;padding:2px;gap:2px}
#reviewWorkspace .review-queue-tools .ur-kind-tabs button{min-height:30px;height:30px;padding:3px 8px;font-size:15px;line-height:24px}
#reviewWorkspace .review-queue-tools .ur-queue-filter{flex:1;min-width:0;margin:0}
#reviewWorkspace .ur-queue-filter>summary{min-height:34px;padding:4px 8px;font-size:15px;line-height:24px}
#reviewWorkspace .ur-search{margin:0 0 6px;gap:6px}
#reviewWorkspace .ur-search :is(input,button){min-height:32px;height:32px;padding:4px 8px;font-size:15px}
#reviewWorkspace .ur-queue-count{font-size:14px;line-height:22px;margin:2px 0 6px}
#reviewWorkspace .ur-pagination{margin:6px 0;gap:6px}
#reviewWorkspace .ur-pagination button{min-height:30px;padding:3px 8px;font-size:14px}
#reviewWorkspace :is(.ur-batch,.ur-queue-options)>summary{padding:7px 0;min-height:32px;font-size:15px;line-height:22px}
#reviewWorkspace .review-queue-tools:has(.ur-queue-filter[open]){flex-wrap:wrap}
#reviewWorkspace .review-queue-tools .ur-queue-filter[open]{flex:1 0 100%;padding-bottom:8px;border-bottom:1px solid #e4ebf3}
#reviewWorkspace .ur-queue-filter[open] .ur-tabs{position:static;display:flex;flex-wrap:wrap;gap:4px;border:0;box-shadow:none;padding:6px 0;margin:0}
#reviewWorkspace .ur-queue-filter[open] .ur-tabs button{flex:1;width:auto;min-height:30px;padding:4px 6px;font-size:14px;white-space:nowrap}
#reviewWorkspace .ur-filter-checks{display:flex;flex-wrap:wrap;gap:6px 12px;min-width:0;border:0;padding:6px 0;margin:0}
#reviewWorkspace .ur-filter-checks label{display:inline-flex;align-items:center;gap:5px;min-height:26px;font-size:14px;line-height:20px;margin:0;white-space:nowrap}
#reviewWorkspace .ur-filter-checks input{width:16px;height:16px;min-height:0;margin:0;padding:0}
#reviewWorkspace .ur-filter-hint{display:none}
#reviewWorkspace .ur-filter-actions{display:flex;justify-content:flex-end;gap:6px;padding-top:6px}
#reviewWorkspace .ur-filter-actions button{min-height:30px;padding:3px 8px;font-size:14px;line-height:22px}
body[data-module]:not([data-module=reconstruction]){display:flow-root;min-height:100dvh}
body[data-module=data] .content-toolbar #stats>*{flex-direction:row}
body[data-module=profile] :is(#libraryImportMatch,#datasetFromImport){display:none!important}
body[data-module=profile] #workspace{overflow-anchor:none}
body[data-module=profile] #researchCard>.research-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 8px}
body[data-module=profile] #researchCard>.research-controls>select{min-width:150px;flex:1 1 150px;max-width:230px;height:34px}
body[data-module=profile] #researchCard>.research-controls>.research-tools{width:auto;margin:0 0 0 auto;flex:none}
body[data-module=profile] #researchCard .research-tools>summary{min-height:30px;padding:4px 10px;font-size:15px;line-height:22px}
body[data-module=profile] #researchCard .research-summary{display:grid;margin:8px 0 10px;min-height:48px}
body[data-module=profile] #researchCard .research-stat{display:flex;align-items:center;gap:10px;padding:6px 12px}
body[data-module=profile] #researchCard .research-stat b{font-size:23px;line-height:30px;white-space:nowrap}
body[data-module=profile] #researchCard .research-stat span{font-size:14px;line-height:22px}
body[data-module=profile] #researchCard .research-layout{display:grid}
body[data-module=profile] #researchCard .research-layout h3{font-size:18px;line-height:26px;margin-bottom:8px}
body[data-module=profile] #researchCard .research-layout>div>.research-note{display:none}
body[data-module=profile] #researchPitch{height:clamp(240px,calc(100dvh - 430px),740px);width:100%;display:block}
body[data-module=profile] #researchPlotLegend{font-size:13px;line-height:20px;gap:6px;margin:6px 0}
body[data-module=profile] #researchCard .research-calculation>summary,body[data-module=profile] #researchCard>.reading-details>summary{font-size:14px;line-height:22px;padding:4px 0}
body[data-module=profile] #researchCard>details:last-child{margin-top:8px;padding-top:8px}
body[data-module=profile] #researchCard .research-layout .research-controls{margin:8px 0;align-items:center}
@media(max-width:1000px){body[data-module=profile] #researchCard .research-stat{flex-wrap:wrap;gap:4px}body[data-module=profile] #researchPitch{height:auto;aspect-ratio:105/68}}
html:has(body[data-module=profile]){overflow-anchor:none}
body[data-module=profile] #workspace #researchCard{padding:12px 16px}
body[data-module=profile] #workspace #researchCard .research-summary{min-height:48px}
body[data-module=profile] #workspace #researchCard .research-stat{min-height:48px;padding:6px 12px}
body[data-module=profile] #workspace #researchPitch{height:clamp(220px,calc(100dvh - 490px),740px)}
body[data-module=profile] .control-candidates>.card-heading{margin-bottom:8px}
body[data-module=profile] #controlCandidatesContent>p:first-child{display:none}
body[data-module=profile] .control-candidates :is(p,li,summary){font-size:16px;line-height:24px}
body[data-module=profile] #controlCandidatesContent>.cc-bar{height:26px;margin-top:12px}
body[data-module=profile] .control-candidates .cc-key{margin:10px 0;align-items:center}
body[data-module=profile] .control-candidates .cc-note{font-size:14px;margin:4px 0}
body[data-module=profile] .control-candidates details{margin-top:12px;padding-top:10px}
body[data-module=profile] .cc-timeline>.cc-minutes{display:flex;flex-direction:column;gap:0;margin:8px 0;max-height:calc(100dvh - 440px);overflow:auto}
body[data-module=profile] .cc-timeline .cc-minute{display:grid;grid-template-columns:110px minmax(0,1fr);gap:16px;align-items:center;padding:10px 6px;min-height:48px;border:0;border-bottom:1px solid #e5edf6;border-radius:0;background:none;font-size:15px}
body[data-module=profile] .cc-timeline .cc-minute .cc-bar{margin:0;height:22px}
body[data-module=profile] .workspace-heading>.button{height:32px!important;min-height:32px!important;padding:4px 10px!important;font-size:15px}
body[data-module=profile] #workspace #researchCard .research-stat{padding:6px 12px!important}
body[data-module=profile] #researchCard>.research-controls :is(select,button){height:32px!important;min-height:32px!important;padding:4px 10px!important;font-size:15px}
body[data-module=profile] #researchCard>details:last-child>summary{font-size:15px;line-height:22px;padding:4px 0;margin:0;min-height:30px}
#reviewWorkspace .ur-filter-checks label{flex-direction:row}
#reviewWorkspace[data-ur-panel=queue] .ur-operator-panel{height:calc(100dvh - 180px);max-height:none;display:flex;flex-direction:column;overflow:visible}
#reviewWorkspace[data-ur-panel=queue] .ur-operator-panel-heading{flex:none}
#reviewWorkspace[data-ur-panel=queue] .ur-operator-panel-body,#reviewWorkspace[data-ur-panel=queue] [data-ur-panel-view=queue]{display:flex;flex-direction:column;flex:1;min-height:0}
#reviewWorkspace[data-ur-panel=queue] .ur-queue{display:flex;flex-direction:column;flex:1;min-height:0}
#reviewWorkspace[data-ur-panel=queue] .ur-queue>:not(.ur-task-list){flex:none}
#reviewWorkspace[data-ur-panel=queue] .ur-task-list{flex:1;min-height:100px;max-height:none;overflow:auto}
/* Fill the workspace with the actual video/pitch, not enlarged control cards. */
@media(min-width:1000px){
  body[data-module=profile]:has(#workspace[data-workspace-section=overview])>main{height:calc(100dvh - 48px);display:flex;flex-direction:column}
  body[data-module=profile]>main>.topbar{flex:none}
  body[data-module=profile] #workspace[data-workspace-section=overview]{display:flex;flex-direction:column;flex:1;min-height:0}
  body[data-module=profile] #workspace[data-workspace-section=overview]>.workspace-heading{flex:none}
  body[data-module=profile] #workspace[data-workspace-section=overview] .analysis-grid{flex:1;min-height:0;grid-template-rows:auto minmax(0,1fr);align-items:stretch}
  body[data-module=profile] .analysis-grid .video-card,body[data-module=profile] .analysis-grid .pitch-card{display:flex;flex-direction:column;min-height:0;height:100%}
  body[data-module=profile] .analysis-grid :is(.card-heading,.timeline,.pitch-legend){flex:none}
  body[data-module=profile] .analysis-grid :is(.video-stage,.pitch-stage){flex:1;min-height:220px;height:auto;max-height:none}
}
body[data-module=data] .match-panel{height:calc(100dvh - 122px)}
body[data-module=data] #match-detail:not(:has(.empty)){display:flex;flex-direction:column;min-height:calc(100dvh - 122px)}
body[data-module=data] #match-detail>.sources{flex:1;display:flex;flex-direction:column;margin:4px 0 0;min-height:0}
body[data-module=data] .sources>.source{flex:1;min-height:170px;padding:14px;gap:18px}
body[data-module=data] .source-icon{width:clamp(220px,28vw,440px);min-width:0;height:auto;min-height:150px;aspect-ratio:16/9}
body[data-module=data] .source-icon img{width:100%;height:100%;object-fit:contain}
#reviewWorkspace{--ur-stage-height:calc(100dvh - 258px)}
body[data-module=reconstruction] .playback{padding:10px 14px;bottom:16px}
body[data-module=reconstruction] .timeline-labels{font-size:13px;line-height:20px;margin:0 0 2px}
body[data-module=reconstruction] .timeline-wrap{height:22px;margin:0}
body[data-module=reconstruction] .transport{padding:4px 0 0;gap:10px;min-height:44px}
body[data-module=reconstruction] .transport :is(button,select){min-height:32px;height:32px;padding:4px 9px;font-size:15px;line-height:22px}
body[data-module=reconstruction] .transport .play{width:38px;height:38px;min-height:38px;padding:4px}
@media(max-width:1000px){body[data-module=data] .source-icon{width:100%;max-width:420px;min-height:120px}body[data-module=data] .sources>.source{flex-wrap:wrap}body[data-module=data] #match-detail:not(:has(.empty)){min-height:0}body[data-module=data] .match-panel{height:auto;max-height:calc(100dvh - 122px)}}
@media(min-width:1000px){
  body[data-module=profile]:has(#workspace[data-workspace-section=tactics][data-tactical-view=spatial])>main{height:calc(100dvh - 48px);display:flex;flex-direction:column}
  body[data-module=profile] #workspace[data-workspace-section=tactics][data-tactical-view=spatial]{display:flex;flex-direction:column;flex:1;min-height:0}
  body[data-module=profile] #workspace[data-tactical-view=spatial]>.tactics-card{display:flex;flex-direction:column;flex:1;min-height:0}
  body[data-module=profile] #workspace[data-tactical-view=spatial] .tactics-layout{flex:1;min-height:0;align-items:stretch}
  body[data-module=profile] #workspace[data-tactical-view=spatial] .tactics-pitch-pane{display:flex;flex-direction:column;min-height:0}
  body[data-module=profile] #workspace[data-tactical-view=spatial] #tacticsCanvas{height:0;min-height:220px;flex:1;max-height:none}
  body[data-module=profile] #workspace[data-tactical-view=spatial] .tactics-sidebar{display:flex;flex-direction:column;min-height:0}
  body[data-module=profile] #workspace[data-tactical-view=spatial] .viz-shape-panel{display:flex;flex-direction:column;flex:1;min-height:0}
  body[data-module=profile] #workspace[data-tactical-view=spatial] #shapeChart{height:0;min-height:140px;flex:1}
  body[data-module=profile] #workspace[data-tactical-view=spatial] :is(.workspace-heading,.tactical-views,.card-heading,.workspace-timeline,.viz-legend,.tactics-method,.viz-shape-controls,#shapeChartLegend){flex:none}
}
/* Settings use one tab row and an open form; empty accordions do not consume the page. */
body[data-module=annotation][data-annotation-view=settings] .review-display-controls{display:none}
#analysisSettings .analysis-settings-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #dfe7f1}
#analysisSettings .analysis-settings-tabs button{min-height:34px;padding:5px 14px;font-size:16px;line-height:24px;background:transparent;color:#506078;border-color:transparent}
#analysisSettings .analysis-settings-tabs button[aria-selected=true]{background:#e7f0ff;border-color:#c1d8fa;color:#155cb9}
#analysisSettings .settings-panel[role=tabpanel]{padding:16px 20px;margin:0}
#analysisSettings .settings-panel[hidden]{display:none!important}
#analysisSettings .settings-panel[role=tabpanel]>summary{display:none}
#analysisSettings .form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 22px}
#analysisSettings .form-grid label{font-size:16px;line-height:24px;gap:6px}
#analysisSettings .form-grid :is(input,select){height:38px;min-height:38px;padding:6px 10px;font-size:16px}
#analysisSettings :is(.muted,.hint){font-size:15px;line-height:24px;margin:0 0 14px}
#analysisSettings :is(.summary,.output){max-height:none;font-size:14px;line-height:22px}
#analysisSettings .output:empty{display:none}
#analysisSettings .actions{margin-top:20px}
#analysisSettings .actions button{min-height:36px;padding:6px 14px;font-size:16px}
@media(max-width:1000px){#analysisSettings .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#analysisSettings .form-grid{grid-template-columns:1fr}#analysisSettings .analysis-settings-tabs button{font-size:14px;padding:4px 8px}}
