/* Getein Nexus: brand layer over the existing service workspace. */
:root{--canvas:#f6f8f7;--sidebar:#eef3f0;--ink:#183d32;--body:#354c43;--muted:#5c7066;--line:#dce5df;--accent:#286b55;--accent-hover:#1d5342;--accent-soft:#e5eee8}
.wordmark{display:inline-flex;flex-direction:row;align-items:baseline;gap:6px;line-height:1.2;text-decoration:none;letter-spacing:-.025em}
.wordmark .brand-parent,.wordmark .brand-product{font-size:23px;font-weight:600;letter-spacing:-.025em;line-height:1.2}
.brand-area{padding:3px 12px 26px}.brand-area p{font-size:10px;letter-spacing:0;line-height:1.5;margin-top:12px;color:var(--muted)}
.sidebar{border-color:var(--line);padding-bottom:12px}.sidebar-footer{border-color:var(--line)}
#nav .nav-item[aria-current="page"],#nav .subnav a[aria-current="page"]{background:var(--accent);color:#fff;font-weight:600}
#nav .nav-item[aria-current="page"] .nav-count{color:#fff;background:transparent}
#nav .subnav a{border-radius:6px;margin-block:2px}.nav-label{font-size:10px;letter-spacing:.09em}
.topbar{background:#fff;border-bottom-color:var(--line)}.page-heading{padding-bottom:23px;border-bottom:1px solid var(--line);margin-bottom:26px}.page-heading h1{font-size:30px;font-weight:550;letter-spacing:-.03em}.page-heading p{margin-top:9px}
.home-attention{border-top:1px solid var(--line)}.home-attention .section-heading{background:#f0f5f2}.section-heading h2,.section-header h2{font-weight:550}.task-launchers a:hover{background:var(--accent-soft)}
.app-footer,.app-footer a,.app-footer .text-button,.sidebar-footer>span{color:var(--muted)}
.login-view{background:#fff}.login-header{height:112px;padding:24px 5vw;border-bottom:1px solid var(--line);flex-shrink:0}.login-header .wordmark{flex-direction:row;align-items:baseline;gap:9px}.login-header .brand-parent,.login-header .brand-product{font-size:28px}.language{color:var(--muted);font-size:12px}
.login-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);align-items:stretch;padding:0;overflow:visible;min-height:610px;gap:0}
.nexus-introduction{background:#eaf1ec;padding:clamp(48px,7vw,110px) 6vw;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--line)}
.nexus-introduction h2{font-size:clamp(48px,5.4vw,80px);line-height:1.06;font-weight:450;letter-spacing:-.04em;color:var(--ink);margin:0}.nexus-introduction h2 span{color:var(--accent)}
.nexus-introduction>p{font-size:16px;line-height:1.8;color:#4b6557;margin:30px 0 0;max-width:38ch}.nexus-service-line{display:flex;flex-wrap:wrap;gap:0;margin-top:66px;padding-top:22px;border-top:1px solid #bfcec3;font-size:12px;color:#4b6557}.nexus-service-line span+span{border-left:1px solid #bfcec3;margin-left:22px;padding-left:22px}
.login-form{align-self:center;justify-self:center;width:calc(100% - 96px);max-width:390px;margin:48px 0}.login-form h1{font-size:30px;font-weight:550;letter-spacing:-.025em}.login-intro{margin:12px 0 32px}.login-form input{background:#fafcfb;border-color:#cbd8cf;min-height:48px}.login-submit{min-height:48px}.login-preview-note{line-height:1.6;color:var(--muted)}.login-footer{padding:22px 5vw;min-height:86px;background:#fff;color:var(--muted)}.corporate span{color:var(--muted)}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}*{scrollbar-color:#a0b7a8 transparent}::selection{background:#cde2d4;color:#183d32}
@media(min-width:1450px){.page-heading{padding-bottom:28px}}
@media(max-width:1000px){.login-main{grid-template-columns:1fr 1fr;min-height:570px}.nexus-introduction{padding:56px 36px}.nexus-introduction h2{font-size:52px}.login-form{width:calc(100% - 56px)}.nexus-service-line span+span{margin-left:14px;padding-left:14px}}
@media(max-width:700px){.brand-area .wordmark .brand-parent,.brand-area .wordmark .brand-product{font-size:22px}.brand-area .nav-close{top:0}.page-heading h1{font-size:26px}.page-heading{padding-bottom:20px}.login-header{height:82px;padding:20px 24px}.login-header .brand-parent,.login-header .brand-product{font-size:23px}.login-main{display:flex;flex-direction:column;min-height:0;padding:0}.nexus-introduction{padding:30px 24px;border-right:0;border-bottom:1px solid var(--line)}.nexus-introduction h2{font-size:40px;line-height:1.12}.nexus-introduction h2 br{display:none}.nexus-introduction h2 span{display:block}.nexus-introduction>p{font-size:14px;line-height:1.65;margin-top:18px}.nexus-service-line{display:none}.login-form{width:calc(100% - 48px);max-width:420px;margin:32px 24px;align-self:center}.login-form h1{font-size:26px}.login-intro{margin-bottom:26px}.login-footer{padding:20px 24px;gap:16px}.login-footer>span{font-size:11px}.login-preview-note{font-size:12px}}

.mobile-brand{display:none}
@media(max-width:700px){.topbar{display:grid;grid-template-columns:1fr auto;gap:12px}.mobile-brand{display:inline-flex;align-items:baseline;gap:6px;font-size:19px;font-weight:600;letter-spacing:-.025em;color:var(--ink)}.topbar .breadcrumb{justify-self:end}.topbar-actions{grid-column:1/-1;width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:10px}.role-switch{display:flex;align-items:center;gap:10px;font-size:11px}.role-switch select{width:185px}}

/* Wide workspaces use parallel work areas; narrow screens retain reading order. */
@media(min-width:1280px){
 .main-content:has(.home-attention){display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:24px;align-content:start;align-items:start;max-width:none;width:100%}
 .main-content:has(.home-attention)>.page-heading,.main-content:has(.home-attention)>.platform-note{grid-column:1/-1;margin:0}
 .main-content:has(.home-attention)>.home-attention{grid-column:1;grid-row:span 2;margin:0;min-width:0}
 .main-content:has(.home-attention)>.home-services,.main-content:has(.home-attention)>.home-outputs{grid-column:2;margin:0;min-width:0}
 .home-attention .task-table{min-width:0;display:block}.home-attention .task-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .home-attention .task-table tbody{display:block}.home-attention .task-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;padding:22px;border-bottom:1px solid var(--line)}.home-attention .task-table tr:last-child{border-bottom:0}
 .home-attention .task-table td{display:block;border:0;padding:0;min-width:0;white-space:normal}.home-attention .task-table td:first-child{grid-column:1/-1;padding-bottom:4px}.home-attention .task-table td:nth-child(2){font-size:12px;color:var(--muted)}.home-attention .task-table td:nth-child(3){grid-column:2;grid-row:2}.home-attention .task-table td:nth-child(4){align-self:center;font-size:12px}.home-attention .task-table td:nth-child(4)::before{content:'Next owner: ';color:var(--muted)}.home-attention .task-table td:last-child{grid-column:2;grid-row:3}.home-attention .task-table .button{white-space:normal;max-width:220px;min-height:40px;text-align:center}
 .home-services .task-launchers{grid-template-columns:1fr}.home-services .task-launchers a{border-right:0;border-top:1px solid var(--line);padding:18px;min-height:80px}.home-services .task-launchers a:first-child{border-top:0}
 .home-outputs .output-row{flex-wrap:wrap}.home-outputs .output-row>span:first-child{flex-basis:100%}
}
@media(min-width:1840px){
 .main-content:has(.home-attention){grid-template-columns:minmax(440px,1.4fr) minmax(320px,1fr) minmax(280px,.85fr);gap:28px}
 .main-content:has(.home-attention)>.home-attention{grid-row:auto}
 .main-content:has(.home-attention)>.home-outputs{grid-column:3}
}

/* Taste / Impeccable review: clearer task grouping and restrained empty states. */
@media(min-width:1280px){
 .home-attention .task-table tr{padding:18px 22px;gap:9px 16px}
 .home-attention .task-table td:first-child{grid-column:1;grid-row:1}
 .home-attention .task-table td:nth-child(2){grid-column:1;grid-row:2}
 .home-attention .task-table td:nth-child(3){grid-column:2;grid-row:1;align-self:start}
 .home-attention .task-table td:nth-child(4){grid-column:1;grid-row:3}
 .home-services .task-launchers:has(>a:nth-child(4):last-child){grid-template-columns:1fr}
 .home-services .task-launchers:has(>a:nth-child(4):last-child)>a{border-right:0}
 .home-outputs>.panel:has(.empty-state){background:transparent;border:0;border-radius:0}
 .home-outputs .empty-state{padding:14px 0;border-top:1px solid var(--line)}
}
@media(min-width:1840px){.main-content:has(.home-attention){grid-template-columns:minmax(440px,1.5fr) minmax(320px,1fr) minmax(260px,.7fr)}}
@media(max-width:700px){
 .nexus-introduction{padding:22px 24px}.nexus-introduction h2{font-size:29px;letter-spacing:-.035em;line-height:1.2}.nexus-introduction h2 span{display:inline;margin-left:.2em}
 .nexus-introduction>p{font-size:13px;margin-top:12px;line-height:1.55}
 .login-form{margin-top:26px}
}
.avatar,.nav-count{color:#365e4b}
#nav .nav-item{color:var(--body)}
.password-toggle{min-width:44px;min-height:44px;top:2px;right:5px}
@media(max-width:700px){
 .user-button{min-width:44px;min-height:44px;justify-content:center}
 .login-help .text-button,.home-attention .section-heading>.text-button{min-height:44px;display:inline-flex;align-items:center}
 .home-attention .task-table .cell-link{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:700px){.login-main{justify-content:flex-start}}

/* Progressive tasks: keep inputs and their next step in adjacent work areas. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.progress-workspace{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}
.progress-workspace>*,.print-setup{min-width:0}
#batch-query fieldset{border:0;padding:0;margin:0;min-width:0}
#batch-query fieldset:disabled{opacity:.65}
.result-placeholder p{font-size:14px;line-height:1.7;color:var(--muted);margin:14px 0;max-width:60ch}
.result-placeholder small{font-size:12px;color:var(--muted)}
.query-completion{padding:14px 20px;margin:0;border-bottom:1px solid var(--line);color:var(--body);background:var(--accent-soft);font-size:13px;line-height:1.7}
.result-stage .platform-note{margin:14px 20px}
.result-stage [tabindex="-1"]{scroll-margin-top:24px}
.result-stage[aria-busy="true"]{border-style:dashed}
.panel:has(>#curve-editor) .version-placeholder{padding:24px 0;border-top:1px solid var(--line)}
@media(min-width:1100px){
 .main-content:has(.progress-workspace),.main-content:has(#curve-editor){max-width:none;width:100%}
 .progress-workspace{grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr)}
 .qc-workspace .query-inputs{grid-template-columns:1fr;gap:0}.qc-workspace .query-inputs textarea{min-height:180px}
 .qc-workspace .form-actions{justify-content:flex-start}.qc-workspace .field:last-child{margin-bottom:0}
 .result-placeholder{min-height:250px}
 .panel:has(>#curve-editor){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
 .panel:has(>#curve-editor)>.section-heading,.panel:has(>#curve-editor)>.platform-note{grid-column:1/-1;margin:0}
 #curve-editor{min-width:0}.panel:has(>#curve-editor)>.version-diff,.panel:has(>#curve-editor)>.version-placeholder{margin:0;padding:0 0 0 24px;border-top:0;border-left:1px solid var(--line);min-width:0}
 .version-diff>div:not(.platform-note):not(.form-actions){grid-template-columns:80px minmax(0,1fr) minmax(0,1fr)}
 .print-workspace .portal-options{grid-template-columns:1fr 1fr}.print-workspace .portal-options button{padding:16px}
}
@media(prefers-reduced-motion:no-preference){.result-stage:not([aria-busy="true"]){animation:result-arrive .18s ease-out}@keyframes result-arrive{from{opacity:.7}to{opacity:1}}}
@media(min-width:1100px){.qc-workspace .query-inputs>div>.field:last-child{margin-bottom:18px}}
.skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden;white-space:nowrap}
.skip:focus{clip-path:none;width:auto;height:auto;top:8px}

/* QC is a working surface: one header, direct inputs, adjacent results. */
.qc-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.qc-header h1{font-size:26px;letter-spacing:-.025em;font-weight:550;white-space:nowrap;padding-bottom:14px}
.qc-header .page-tabs{margin:0;border:0;gap:22px}.qc-header .page-tab{padding-top:10px;padding-bottom:18px}
.qc-input{padding:0;min-width:0}.qc-input .field{margin-bottom:16px}.qc-input .form-actions{margin-top:18px;padding-top:0;border:0}
.qc-workspace .result-placeholder{background:transparent;border:0;border-left:1px solid var(--line);border-radius:0;min-height:210px;padding:8px 24px}
.qc-workspace .result-placeholder h2{font-size:16px;font-weight:550}.qc-workspace .result-placeholder p{margin:12px 0;font-size:13px}
@media(min-width:1100px){.qc-workspace{grid-template-columns:300px minmax(0,1fr);gap:26px}.qc-workspace .query-inputs textarea{min-height:140px}.qc-workspace .query-inputs>div>.field:last-child{margin-bottom:16px}}
@media(min-width:1600px){.qc-workspace{grid-template-columns:340px minmax(0,1fr)}}
@media(max-width:1099px){.qc-header{align-items:flex-start;flex-direction:column;gap:0}.qc-header h1{padding-bottom:8px}.qc-header .page-tabs{gap:18px}.qc-header .page-tab{padding-bottom:12px}.qc-workspace .result-placeholder{border-left:0;border-top:1px solid var(--line);padding:20px 0;min-height:0}}

/* Compact dashboard and independent navigation groups. */
.page-heading{min-height:0;padding-bottom:0;border:0;margin-bottom:18px}.page-heading h1{font-size:24px;line-height:1.25}.main-content{padding-top:20px}
.sidebar nav{min-height:0;overflow-anchor:none}.sidebar-footer{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-top:10px;padding:8px 4px 0;position:relative}
.sidebar-footer>img{width:58px;height:auto;flex-shrink:0}.sidebar-footer .user-menu-wrap{flex:1;min-width:0;position:relative}.sidebar-footer .user-button{width:auto;max-width:100%;margin-left:auto;gap:0;min-height:36px;padding:6px 4px;text-align:right;border-radius:5px}.sidebar-footer .avatar{width:26px;height:26px;flex-shrink:0;font-size:10px}.sidebar-footer .user-name{display:block;font-size:12px;min-width:0}.sidebar-footer .user-name small{font-size:10px}.sidebar-footer .user-button>.chevron{display:none}.sidebar-footer .user-menu{top:auto;bottom:calc(100% + 12px);left:auto;right:0;width:210px;max-height:65dvh;overflow-y:auto}.sidebar-footer .role-switch{display:block;padding:12px;border-top:1px solid var(--line)}.sidebar-footer .role-switch select{display:block;width:100%;max-width:100%;margin-top:6px;min-height:40px}
.main-content .home-attention{border:0;background:transparent;margin:0}.home-attention .section-heading{padding:0 0 12px;background:transparent;border:0}.home-attention .section-heading h2{font-size:16px}.status-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px}
.status-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px;min-width:0}.status-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted);flex-wrap:wrap}.status-card h3{font-size:16px;margin-top:14px;line-height:1.4;overflow-wrap:anywhere}.status-reference{font-size:11px;font-family:ui-monospace,monospace;color:var(--muted);margin-top:5px}.status-context{font-size:12px;color:var(--muted);margin:10px 0 16px;overflow-wrap:anywhere}.status-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:14px;flex-wrap:wrap}.status-card footer>span{font-size:12px;color:var(--muted)}.status-card .button{white-space:normal;text-align:center}
@media(min-width:1100px){.main-content:has(.home-attention){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:20px;align-items:start;align-content:start;max-width:none;width:100%}.main-content:has(.home-attention)>.page-heading{grid-column:1/-1;margin:0;padding:0}.main-content:has(.home-attention)>.home-attention{grid-column:1;grid-row:span 2}.main-content:has(.home-attention)>.home-services,.main-content:has(.home-attention)>.home-outputs{grid-column:2;margin:0;min-width:0}.home-services .task-launchers,.home-services .task-launchers:has(>a:nth-child(4):last-child){grid-template-columns:1fr}.home-services .task-launchers>a{border-right:0!important;border-top:1px solid var(--line);padding:16px;min-height:72px}.home-services .task-launchers>a:first-child{border-top:0}}
@media(min-width:1840px){.main-content:has(.home-attention){grid-template-columns:minmax(580px,1.8fr) minmax(300px,1fr) minmax(250px,.7fr)}.main-content:has(.home-attention)>.home-attention{grid-row:auto}.main-content:has(.home-attention)>.home-outputs{grid-column:3}}
@media(max-width:700px){.topbar{grid-template-columns:1fr auto;min-height:66px}.page-heading h1{font-size:23px}.sidebar-footer .user-menu{position:absolute}.sidebar-footer .role-switch select{font-size:14px}.status-card .button{min-height:44px}}

/* One page title, a compact view switch, and separated dashboard regions. */
.workspace-menu{display:none}.main-shell{position:relative}.main-content{padding-top:26px}
.workspace-switch{display:flex;gap:4px;padding:4px;background:#e1eae4;border-radius:8px;margin-bottom:22px}
.workspace-switch .nav-item{flex:1;justify-content:center;padding:9px 4px;font-size:12px;white-space:nowrap;border-radius:5px;gap:5px}
.workspace-switch .nav-count{font-size:10px;margin-left:0}
.business-navigation{border-top:1px solid var(--line);padding-top:18px}
.sidebar .business-navigation summary{font-size:13px;font-weight:550;padding-block:12px}
.sidebar-footer>img{width:96px}.sidebar-footer .user-name{font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.sidebar-footer .user-button{justify-content:flex-end}
.home-attention .section-heading,.home-services .section-header,.home-outputs .section-header{padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:16px}
.home-attention .section-heading{background:transparent}.status-cards{margin-top:0}
@media(min-width:1100px){.home-services,.home-outputs{padding-left:20px;border-left:1px solid var(--line)}}
@media(max-width:700px){.sidebar-footer .user-button{min-height:44px}.workspace-menu{display:block;position:absolute;right:16px;top:16px;min-height:40px;z-index:2}.main-content{padding-top:22px}.page-heading,.qc-header{padding-right:66px}.sidebar-footer .user-name{font-size:12px}}
.live-video-library{grid-template-columns:minmax(300px,.75fr) minmax(0,1.5fr)}
.live-video-library #video-list{max-height:60dvh;overflow-y:auto;margin-top:14px;padding-right:6px}.video-catalog-count{font-size:12px;color:var(--muted)}
.video-player{display:block;width:100%;aspect-ratio:16/9;border:0;background:#eef3f0;border-radius:8px}
.video-source-note{margin-top:24px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:900px){.live-video-library{grid-template-columns:1fr}.live-video-library #video-list{max-height:300px}}

/* Video library: source-style multi-select filters and flat record selection. */
.video-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 0 16px;border-bottom:1px solid var(--line)}
.video-filters>.search-input{flex:1 1 210px;min-width:160px;width:auto;max-width:360px;min-height:36px;padding:8px 12px}
.video-filter-menu{position:relative}
.video-filter-menu summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:36px;padding:7px 11px;background:white;border:1px solid var(--line);border-radius:5px;font-size:12px}
.video-filter-menu summary::-webkit-details-marker{display:none}
.video-filter-menu[open] summary{border-color:#8aa99a;background:#eef4f0}
.video-filter-menu [data-filter-count]:not(:empty){color:#286b55;font-weight:650}
.video-filter-popover{position:fixed;z-index:12;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;width:280px;padding:12px;border:1px solid var(--line);border-radius:8px;background:white;box-shadow:0 8px 28px #173e321f}
.video-filter-popover>.search-input,.video-filter-popover>.text-button{flex-shrink:0}
.video-filter-popover>.search-input{width:100%;font-size:12px;min-height:36px}
.video-filter-options{min-height:0;max-height:260px;overflow:auto;overscroll-behavior:contain;margin:10px -4px;padding:2px 4px}
.video-filter-options label{display:flex;align-items:center;gap:9px;min-height:38px;font-size:12px;padding:6px;border-radius:4px;cursor:pointer}
.video-filter-options label:hover{background:#f0f5f2}.video-filter-options label span{flex:1}.video-filter-options small{color:var(--muted)}
.video-filter-options input{accent-color:#286b55;width:15px;height:15px;flex:none}
.video-sort-label{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
#video-filter-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0 18px}
#video-filter-chips:empty{margin:0 0 20px}
.video-filter-chip{display:inline-flex;align-items:center;gap:6px;background:#edf3ef;color:#214c3b;border:0;border-radius:4px;padding:6px 9px;font-size:12px;max-width:100%;overflow-wrap:anywhere;text-align:left}
.video-filter-chip>span:first-child{color:#526c5e}.video-filter-chip>span:last-child{font-size:17px}
.live-video-library{align-items:start;grid-template-columns:minmax(290px,.85fr) minmax(0,1.5fr);gap:24px}
.video-records{overflow:hidden;border-radius:7px}
.video-records .video-catalog-count{padding:13px 16px;margin:0;border-bottom:1px solid var(--line);font-size:12px;background:#f8faf9}
.live-video-library #video-list{max-height:65dvh;overflow-y:auto;margin:0;padding:0}
.live-video-library .library-item{display:flex;align-items:center;gap:12px;padding:15px 16px;border:0;border-bottom:1px solid #e9efeb;border-radius:0;margin:0;text-align:left;width:100%;background:white;box-shadow:none}
.live-video-library .library-item strong{display:block;font-size:14px;font-weight:600;line-height:1.5;color:#20382d}
.live-video-library .library-item small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:#64746b}
.live-video-library .library-item[aria-pressed="true"]{background:#e8f0eb;box-shadow:none;border-color:#e1eae4}
.live-video-library .library-item:hover{background:#f1f5f2}
.live-video-library .library-item:focus-visible{outline-offset:-3px}
.video-record-copy{flex:1;min-width:0}.video-selection-mark{width:16px;flex:none;font-size:18px;color:#286b55}.library-item[aria-pressed="false"] .video-selection-mark{color:#8c9a92}
.video-type-tag{display:inline-block;margin-top:8px;padding:2px 6px;background:#f0f2f4;color:#536070;font-size:10px;border-radius:3px;line-height:1.5}
.video-detail{min-width:0}
.video-detail .video-title{margin:18px 0 7px;font-size:23px;font-weight:650;line-height:1.35;color:#183d2f;letter-spacing:-.4px;overflow-wrap:anywhere}
.video-detail .section-description{font-size:12px;line-height:1.6;margin-bottom:16px}
.video-poster{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:7px;background:#eaf1ed}
.video-poster>img{display:block;width:100%;height:100%;object-fit:cover}
.video-poster>div{position:absolute;inset:66% 12px 5%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#173e32;font-size:13px}
.video-poster strong{font-size:20px}
.video-detail .form-actions{justify-content:flex-start;align-items:center;flex-wrap:wrap;padding-top:16px}
@media(min-width:901px){.video-detail{position:sticky;top:24px}}
@media(max-width:900px){.live-video-library{grid-template-columns:1fr}.live-video-library #video-list{max-height:300px}.video-detail .video-title{font-size:22px}.video-sort-label{margin-left:0}}
@media(max-width:600px){.video-filters>.search-input{flex-basis:100%;max-width:none}.video-filter-menu summary{min-height:44px}.video-filter-chip{min-height:36px}.video-poster{aspect-ratio:4/3}.video-poster>div{inset:60% 8px 4%}.video-poster>img{object-fit:contain;object-position:center top}.video-poster strong{font-size:18px}}

/* QC JSON integration keeps input and matched source results side by side. */
.qcg-layout{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.25fr);gap:24px;align-items:start}
.qcg-layout .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.qcg-layout .field{min-width:0}.qcg-layout input,.qcg-layout select{min-width:0}
.qcg-state{padding:18px 0;min-height:180px}.qcg-state p{color:var(--muted);margin:12px 0 20px;line-height:1.7}
.qcg-review{margin-top:16px;align-items:flex-start;font-size:12px;line-height:1.6}.qcg-review input{margin-top:4px;flex:none}
.qcg-provenance{margin-top:20px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}.qcg-provenance summary{cursor:pointer;min-height:32px}.qcg-provenance p{overflow-wrap:anywhere;margin-top:10px}.qcg-provenance pre{max-height:280px;overflow:auto;background:#f3f6f4;padding:12px;font-size:11px}
#qcg-result .table-wrap{margin-top:18px}#qcg-result .platform-table th,#qcg-result .platform-table td{padding:10px}
@media(max-width:1000px){.qcg-layout{grid-template-columns:1fr}.qcg-layout .form-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.qcg-layout .form-row{grid-template-columns:1fr}.qc-header .page-tabs{flex-wrap:wrap}}
.qcg-layout .form-row{align-items:end}
#qcg-result .platform-table{min-width:0;width:100%;table-layout:auto}
#qcg-result .platform-table td:last-child{white-space:nowrap}

.qc-photo-launch{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.qc-photo-dialog{width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:10px;padding:0;color:var(--body)}
.qc-photo-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;border-bottom:1px solid var(--line)}
.qc-photo-body{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:22px}
.qc-photo-image{min-height:260px;background:#f1f5f2;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:12px}
.qc-photo-image img,.qc-photo-image video{max-width:100%;max-height:480px;object-fit:contain}.qc-photo-image p{color:var(--muted);text-align:center;font-size:13px}
.qc-photo-controls{min-width:0}.qc-photo-actions{display:flex;gap:8px;flex-wrap:wrap}#qc-photo-status{font-size:13px;line-height:1.6;margin:16px 0;color:#285840}
#qc-photo-review textarea{min-height:70px}.qc-photo-controls pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;background:#f3f6f4;padding:12px;font-size:12px}#qc-photo-options{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}#qc-photo-options>p{flex-basis:100%;font-size:12px}
@media(max-width:700px){.qc-photo-body{grid-template-columns:1fr;padding:16px;gap:16px}.qc-photo-image{min-height:140px}.qc-photo-image img,.qc-photo-image video{max-height:230px}.qc-photo-dialog .button{min-height:40px}}

/* Source-driven QC: paired lots on the left, original document on the right. */
.ql-workspace{display:grid;grid-template-columns:minmax(270px,.65fr) minmax(0,1.6fr);gap:28px;align-items:start}
.ql-setup{min-width:0}.ql-setup fieldset{border:0;margin:0;padding:0;min-width:0}.ql-setup .form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ql-setup .field{min-width:0;margin-bottom:12px;font-size:12px}.ql-setup input,.ql-setup select{min-width:0;padding:9px;font-size:12px}
#ql-input-rows{max-height:52dvh;overflow:auto;padding:0 2px}
.ql-input-row{border-top:1px solid var(--line);padding:8px 0}.ql-lot-head,.ql-lot-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;gap:8px;align-items:center}.ql-lot-head{font-size:11px;font-weight:600;color:var(--muted);padding:0 2px 6px}.ql-setup .ql-lot-fields .field{margin:0}.ql-setup .ql-lot-fields input{min-height:40px;padding:8px 6px}.ql-lot-fields .ql-remove{height:40px}.ql-input-row .ql-row-footer{margin-top:4px;padding-right:40px;font-size:10px;line-height:1.5}.ql-row-heading,.ql-row-footer,.ql-add{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.ql-row-heading{font-weight:600;color:#244e3b;margin-bottom:12px}.ql-row-footer{color:var(--muted);font-size:11px}.ql-row-footer>div{display:flex;gap:14px}.ql-add{padding:12px 0;border-top:1px solid var(--line)}
.ql-setup .form-actions{justify-content:flex-start}.ql-setup .form-actions .primary{flex:1}#ql-progress{font-size:12px;color:#286b55;margin-top:14px;line-height:1.5}
.ql-results{min-width:0;border-left:1px solid var(--line);padding-left:24px}
.ql-demo-entry{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line);font-size:12px}.ql-demo-entry strong{font-weight:650}.ql-demo-entry p{color:var(--muted);line-height:1.6;margin:6px 0 10px}.ql-demo-badge{color:var(--accent);background:var(--interaction-surface)}
.ql-result-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto}.ql-result-actions>.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:var(--ql-action-width,88px);min-width:var(--ql-action-width,88px);max-width:var(--ql-action-width,88px);height:40px;min-height:40px;flex:none;font-size:12px;padding:8px 12px;white-space:nowrap}.ql-result-actions>[data-ql="download"]{--ql-action-width:108px}.ql-result-actions>[data-ql="print"]{--ql-action-width:80px}.ql-action-icon{width:16px;height:16px;flex:none}
.ql-batch-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.ql-batch-toolbar label{display:flex;gap:10px;align-items:center;min-width:0;flex:1 1 180px;font-size:12px;font-weight:600}.ql-batch-toolbar select{min-width:0;max-width:100%;width:100%;border:1px solid var(--line);background:white;border-radius:5px;padding:8px;font-weight:400}.ql-batch-controls{display:flex;flex:1 1 408px;min-width:0;align-items:center;flex-wrap:wrap;gap:12px}.ql-step{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}.ql-step>.button{padding:8px;min-width:32px;min-height:40px}
.ql-print-status{font-size:12px;line-height:1.5;color:var(--muted);margin-top:12px}.ql-print-status:empty{display:none}.ql-print-frame{position:fixed;left:-10000px;top:0;width:800px;height:600px;border:0;pointer-events:none}
.ql-document-heading{display:flex;align-items:center;gap:12px;margin:12px 0;max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.ql-document-meta{display:flex;align-items:baseline;gap:12px;flex:1 0 auto}.ql-document-heading h2{font-size:19px;margin:0;flex:none}.ql-document-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.5}.ql-document-heading .badge{flex:none;margin-left:auto}
.ql-pdf-toolbar{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#eaf0ec;border:1px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;font-size:12px}.ql-pdf-toolbar button{min-width:24px;min-height:28px}#ql-render-status{margin-left:auto;color:var(--muted);font-size:11px}
.ql-pdf-surface{background:#e8eeea;border:1px solid var(--line);padding:12px;min-height:280px;max-height:65dvh;overflow:auto}.ql-pdf-surface canvas{display:block;background:white;max-width:100%;box-shadow:0 2px 8px #14382316}
.ql-document-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.ql-document-actions>.text-button{margin-left:auto}.ql-source-details{font-size:11px;color:var(--muted);margin-top:18px}.ql-source-details summary{cursor:pointer;min-height:28px}.ql-source-details p{overflow-wrap:anywhere;margin-top:7px}
.ql-empty{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px;background:#f0f4f1;margin-top:18px;border-radius:7px}.ql-empty>img{width:40px;height:40px;opacity:.55;margin-bottom:20px}.ql-empty h2{font-size:20px}.ql-empty p{font-size:13px;color:var(--muted);line-height:1.7;max-width:42ch;margin:12px 0}.ql-empty .button{margin-top:14px}
@media(min-width:1100px){.ql-results{position:sticky;top:20px}}
@media(max-width:1000px){.ql-workspace{grid-template-columns:1fr}.ql-results{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:20px}.ql-empty{min-height:260px}#ql-input-rows{max-height:360px}}
@media(max-width:700px){.ql-result-actions{gap:6px}.ql-workspace .ql-result-actions>.button{width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:10px}.ql-result-actions .ql-action-label{display:none}.ql-action-icon{width:18px;height:18px}.ql-batch-controls{gap:8px}.ql-step{gap:4px}}
@media(max-width:500px){.ql-batch-toolbar{gap:8px;flex-wrap:wrap}.ql-batch-toolbar label{flex-basis:100%}.ql-pdf-surface{padding:6px;min-height:180px}.ql-pdf-toolbar{gap:8px}.ql-document-actions>.text-button{margin-left:0}.ql-workspace .button{min-height:40px}}
.ql-pdf-surface canvas{max-width:none}
#ql-zoom{margin-left:auto;border:1px solid var(--line);border-radius:4px;background:white;font-size:11px;padding:5px;max-width:100px}
#ql-render-status:empty{display:none}

/* QC intake and export: compact controls around the existing document workspace. */
.ql-intake{padding:12px 0;margin-bottom:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.ql-intake .qc-photo-actions{margin:0;gap:8px;flex-wrap:wrap}.ql-intake p{font-size:11px;line-height:1.5;color:var(--muted);margin-top:8px}.ql-intake #ql-photo-resume{min-height:32px}.ql-lot-fields .ql-remove:disabled{opacity:.35}@media(max-width:700px){.ql-lot-head,.ql-lot-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.ql-lot-fields .ql-remove{width:44px;height:44px}.ql-setup .ql-lot-fields input{min-height:44px}.ql-input-row .ql-row-footer{padding-right:52px}}
.qc-camera-stage{position:relative;width:100%;height:340px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.qc-camera-stage img,.qc-camera-stage video{width:100%;height:100%;object-fit:contain}
#qc-photo-frame{position:absolute;inset:32% 6%;border:2px solid #286b55;border-radius:5px;box-shadow:0 0 0 500px #10291b33;pointer-events:none}
#qc-photo-frame span{position:absolute;top:-24px;left:0;background:#286b55;color:white;padding:2px 8px;font-size:11px;border-radius:3px}
#qc-photo-frame[hidden]{display:none}
.qc-photo-count{font-size:12px;color:var(--muted);margin-bottom:8px}
.qc-photo-tabs{display:flex;gap:6px;overflow:auto;padding:0 0 12px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.qc-photo-tabs button{flex:none;padding:7px 10px;border-radius:4px;color:#334c40;border:1px solid transparent}
.qc-photo-tabs button[aria-pressed="true"]{background:#e8f1eb;border-color:#adc5b5;color:#174b32;font-weight:650}
.qc-photo-controls button:focus-visible,.qc-export-dialog button:focus-visible{outline:2px solid #286b55;outline-offset:3px}
.qc-export-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:10px;color:var(--body)}
.qc-export-dialog>header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
.qc-export-dialog h2{font-size:22px;margin:0}.qc-export-dialog header span{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.qc-export-body{padding:20px 24px}.qc-export-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}.qc-export-toolbar>span{font-size:12px;color:#286b55}.qc-export-toolbar .field{margin:0}
.qc-export-list{max-height:45dvh;overflow:auto}.qc-export-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(140px,.8fr) minmax(0,1fr);gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:16px 0}
.qce-pair{display:flex;align-items:center;gap:10px;min-width:0}.qce-pair strong{display:block;font-size:14px;overflow-wrap:anywhere}.qce-pair input{width:16px;height:16px;flex:none;accent-color:#286b55}
.qc-export-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;line-height:1.5}.qc-export-row .field{margin:0;font-size:11px;min-width:0}.qc-export-row .field input{width:100%;min-width:0;padding:8px;font-size:12px}
.qce-row-status{font-size:12px;color:#285840;overflow-wrap:anywhere}.qce-row-status .text-button{margin-top:5px}
#qce-message{font-size:13px;line-height:1.6;margin:16px 0;color:#285840}.qce-reviewed{font-size:12px;line-height:1.6;align-items:flex-start}.qc-export-dialog .form-actions{justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:700px){.qc-camera-stage{height:220px}.qc-export-dialog>header,.qc-export-body{padding:16px}.qc-export-row{grid-template-columns:minmax(0,1fr) minmax(135px,1fr);gap:10px}.qce-row-status{grid-column:1/-1}.qc-export-toolbar{flex-wrap:wrap}.qc-export-dialog .form-actions .button{flex:1;min-height:40px}}

/* Shared form focus: a finer ring across every workspace and dialog. */
:root :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="button"], [type="submit"], [type="reset"]), select, textarea):focus-visible {
  outline-width: 1px;
  outline-offset: 1px;
}
