/* Product visual system: quiet light surfaces, precise type, restrained blue accents.
   Presentation only. Media geometry, interaction targets and team colours remain owned
   by their feature styles. This sheet is the final common design layer. */
:root{
  --ui-ink:#18273e;
  --ui-secondary:#475a73;
  --ui-muted:#69798e;
  --ui-blue:#2864e8;
  --ui-blue-strong:#1b51ca;
  --ui-blue-soft:#edf3ff;
  --ui-line:#e2e8f0;
  --ui-line-strong:#cbd6e4;
  --ui-surface:#fff;
  --ui-canvas:#f5f7fa;
  --ui-shadow:0 2px 3px #152b4803,0 10px 32px #152b4805;
  --ui-popover-shadow:0 8px 24px #172a4512,0 24px 72px #172a451a;
  --bg:var(--ui-canvas);
  --surface:var(--ui-surface);
  --surface-2:#f1f4f9;
  --line:var(--ui-line);
  --text:var(--ui-ink);
  --muted:var(--ui-muted);
  --blue:var(--ui-blue);
  --mint:var(--ui-blue);
}
body{
  color:var(--ui-ink);
  background:radial-gradient(ellipse 800px 280px at 88% 0,#e8f0ff66,transparent 80%),linear-gradient(#fafbfd,var(--ui-canvas) 300px);
  font-family:"Segoe UI Variable","Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font-family:inherit}
button,summary,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,summary{transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease}
button:focus-visible,a:focus-visible,summary:focus-visible{
  outline:2px solid var(--ui-blue);outline-offset:3px;
}
button:disabled{cursor:default}
h1,h2,h3{color:var(--ui-ink)}
/* Navigation has one active accent; the utility area stays within the window. */
.sidebar{background:#fff;border-right:1px solid var(--ui-line);box-shadow:1px 0 0 #ffffff80;scrollbar-width:thin}
.brand{gap:11px;letter-spacing:-.6px;font-size:22px;font-weight:650;color:#182a45;padding-left:6px}
.brand .mint{color:var(--ui-blue)}
.brand-mark{
  width:39px;height:39px;min-width:39px;border-radius:11px;
  color:#fff;background:linear-gradient(150deg,#3579f0,#2154d5);
  box-shadow:inset 0 1px 0 #ffffff33,0 4px 10px #2459db16;
}
.brand-symbol{display:block;width:30px;height:30px}
.sidebar nav{gap:3px}
.nav-item{position:relative;font-size:17px;font-weight:500;color:#627087;border-radius:8px;min-height:44px;padding:10px 12px}
.nav-item svg{width:20px;height:20px;stroke-width:1.65}
.nav-item.active,.nav-item[aria-current=page]{background:#edf3ff;color:#245dd4;font-weight:600;box-shadow:none}
.nav-item.active::before{content:"";position:absolute;left:0;top:calc(50% - 8px);width:3px;height:16px;border-radius:2px;background:var(--ui-blue)}
.nav-item:hover:not(:disabled):not(.active){background:#f4f6f9;color:#354f71}
.nav-item b{border-radius:5px;background:#e4edff;color:#2d61c9;font-size:14px;min-width:22px;padding:1px 5px}
.library-heading{border-top-color:#edf0f5}
.library-launcher{border-radius:8px;color:#53667f;padding:9px 12px;font-size:16px}
.library-launcher:hover{background:#f4f7fb}
.library-launcher b{background:#f0f3f8;color:#63738b;font-size:14px}
.sidebar-bottom .engine-line{color:#738196;font-size:14px}
.sidebar-bottom .link-button{font-size:14px;color:#5a6c84}
#languageSwitcher{border-color:#e5eaf1;background:#f9fafc;border-radius:8px;padding:3px 7px}
#languageSelect{font-size:15px;background:transparent;color:#485b74;min-height:32px}
.sidebar .status-dot{width:6px;height:6px}
.topbar{margin-bottom:20px}
.topbar .breadcrumb{display:none}
.topbar h1{color:#1c2c43;font-size:26px;font-weight:600;letter-spacing:-.5px;margin:0;line-height:1.4}
.workspace-heading h2{color:#21334c;font-weight:600;font-size:22px;letter-spacing:-.3px}
.workspace-heading p{color:#6b7b8f;font-size:16px}
.main-footer{border-color:#e5eaf2;color:#7b8797;font-size:14px}
@media(min-width:961px){
  .sidebar{width:212px;padding:24px 14px 16px;overflow:hidden}
  .sidebar nav{margin-top:24px;min-height:0;flex:1 1 auto;align-content:start;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
  .sidebar .library-heading{flex:0 0 auto;margin-top:12px;padding-top:12px}
  .sidebar .sidebar-bottom{flex:0 0 auto;margin-top:12px;padding-top:0;gap:5px 4px}
  .sidebar .sidebar-bottom .engine-line{margin:0 0 2px}
  .sidebar .sidebar-bottom .link-button{min-height:30px;padding:3px 7px}
  .sidebar #languageSwitcher{margin-top:4px}
  body>main{margin-left:212px;padding:24px 28px 22px}
}
/* Surfaces and controls use the same quiet material across all workspaces. */
.card,.product-secondary-panel{border-color:var(--ui-line);border-radius:13px;background:#fff;box-shadow:var(--ui-shadow)}
.card-heading{border-color:#edf1f5}
.card-heading h2{font-size:21px;letter-spacing:-.3px;font-weight:600;color:#21334b}
.card-heading p,.card-footnote{color:#6b7b90}
.button,.product-tools>summary{border-radius:8px;font-size:16px;font-weight:500;box-shadow:none}
.button.primary{background:var(--ui-blue);border-color:var(--ui-blue);box-shadow:inset 0 1px 0 #ffffff18,0 3px 8px #2864e812}
.button.primary:hover:not(:disabled){background:var(--ui-blue-strong);border-color:var(--ui-blue-strong)}
.button.secondary,.product-tools>summary{background:#fff;color:#496079;border-color:#dde4ee}
.button.secondary:hover:not(:disabled),.product-tools>summary:hover{background:#f6f9ff;border-color:#b4c7e7;color:#2457b1}
.button:disabled{opacity:1;background:#f5f7fa;border-color:#e7ecf3;color:#94a0b0;box-shadow:none}
.icon-button{color:#60718a}
.icon-button:hover:not(:disabled){background:#edf3ff;color:#275bd0}
input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{
  border-color:#dbe3ed;background:#fff;color:#2a3e58;border-radius:8px;box-shadow:0 1px 2px #18273e03;
}
input:not([type=range]):not([type=checkbox]):focus,select:focus,textarea:focus{
  border-color:#7fa2ec;outline:3px solid #2864e811;box-shadow:none;
}
input::placeholder,textarea::placeholder{color:#8490a1}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--ui-blue)}
.product-tools-popover,.ur-tool-menu{border-color:#e1e7ef;box-shadow:var(--ui-popover-shadow);border-radius:11px}
dialog:not(.unified-annotation):not(.ur-calibration-editor){border-color:#e0e6ef;border-radius:16px;box-shadow:var(--ui-popover-shadow)}
dialog::backdrop{background:#12233e38}
.dialog-heading h2{color:#20344e;font-weight:600;letter-spacing:-.4px}
.segmented,.tactical-views{background:#eef2f7;border-color:#e5eaf2;border-radius:9px;box-shadow:none}
.segmented button,.tactical-views button{border-radius:6px;color:#5b6d84;font-weight:500}
.segmented button.active,.segmented button[aria-selected=true],.tactical-views button[aria-selected=true]{
  background:#fff;color:#245bc9;box-shadow:0 1px 4px #172a4510;font-weight:600;
}
table th{color:#617189;font-weight:500;border-color:#e7ecf2}
table td{border-color:#edf0f5}
.table-scroll{scrollbar-width:thin}
.players-card thead th,#researchActions th{background:#f6f8fb;color:#637187}
#playersTable tr[data-player-id]:hover{background:#f7faff}
#workspace[data-workspace-section=overview] .stat-grid{background:#fff;border-color:#dfe6f0;border-radius:12px;box-shadow:var(--ui-shadow)}
.stat-value{color:#20354f;letter-spacing:-.8px;font-weight:600}
.stat-top{color:#6a7a90}
.stat-card{border-color:#e9edf3}
.stat-card .stat-value small{color:#7d899b}
.stat-value,.profile-stat strong,.research-stat b,.tcg-clock,.tcg-split-at,#arTransportClock{font-variant-numeric:tabular-nums}
#researchCard .research-summary,#profileContent .profile-stats{background:#f7f9fc;border-color:#e0e6ee}
#researchCard .research-stat,#profileContent .profile-stat{border-color:#e3e9f1}
#researchCard .research-stat b,#profileContent .profile-stat strong{color:#284b7f;font-weight:600}
#profileContent .profile-avatar{border-radius:12px;box-shadow:inset 0 0 0 1px #cedcf3;background:#edf3ff}
#profileContent .profile-header{background:linear-gradient(110deg,#fff 55%,#f4f7fd);border-color:#e5eaf2}
#profileContent .profile-title h2{color:#21334d;font-weight:600}
#profileContent .profile-tab[aria-selected=true]{color:#245fd7;border-bottom-color:#2c65e3}
#profileContent .profile-panel h3,#profileContent .research-profile h3{color:#243b57;font-size:21px;font-weight:600}
#researchCard .research-pass-selection{background:#f7f9fc;border-color:#dfe7f1}
.roster-team-buttons>button[aria-pressed=true]{background:#f0f5ff;border-color:#b7cdf4;box-shadow:none}
.import-form-host .file-drop{background:#f7faff;border-color:#bbceec;border-radius:10px}
.import-export-links a{background:#f8fafd;border-color:#e0e7f1;color:#355d92}
.import-export-links a:hover{background:#edf4ff;border-color:#c1d3ef}
/* The review canvas is the primary surface. UI chrome stays outside its pixels. */
body:has(#workspace[data-workspace-section=review]) .topbar{margin-bottom:16px}
body:has(#workspace[data-workspace-section=review]) .topbar h1{font-size:26px;line-height:1.4;margin:0;font-weight:600}
#reviewWorkspace .ur-heading{min-height:42px;margin-bottom:10px;gap:12px}
#reviewWorkspace .ur-heading h2{font-size:21px;font-weight:600;letter-spacing:-.3px;color:#22364f}
#reviewWorkspace .ur-state{font-size:15px;color:#748297}
#reviewWorkspace .ur-shell{padding:10px;border:1px solid #dfe6ef;border-radius:13px;box-shadow:0 2px 4px #14263e03,0 10px 36px #14263e05;background:#fff}
#reviewWorkspace .ur-operator-deck{gap:12px}
#reviewWorkspace #arFrameFocus{background:#101d30;border:1px solid #15273d;border-radius:9px;box-shadow:inset 0 0 0 1px #ffffff04}
#reviewWorkspace .ur-operator-rail{border-right-color:#e9edf4}
#reviewWorkspace .ur-operator-rail>button,#reviewWorkspace .ur-operator-rail .ur-secondary-tools>summary{color:#62738c;border-color:transparent;border-radius:7px}
#reviewWorkspace .ur-operator-rail>button:hover:not(:disabled),#reviewWorkspace .ur-secondary-tools>summary:hover{background:#f3f6fb;border-color:transparent;color:#365c96}
#reviewWorkspace .ur-operator-rail>button[aria-pressed=true],#reviewWorkspace .ur-operator-rail>button[aria-expanded=true],#reviewWorkspace .ur-secondary-tools.is-active>summary{
  color:#245cd1;background:#edf3ff;border-color:#e3ecfc;box-shadow:inset 2px 0 0 #3c74ed;
}
#reviewWorkspace .ur-operator-badge{background:#3167df;box-shadow:0 0 0 2px #fff;font-size:12px}
#reviewWorkspace .ur-operator-icon{stroke-width:1.65}
#reviewWorkspace .ur-operator-panel{border-color:#e6ebf2}
#reviewWorkspace .ur-operator-panel-heading{border-color:#e9edf4}
#reviewWorkspace [data-ur-panel-title]{font-weight:600;color:#293f5b;font-size:19px}
#reviewWorkspace .ur-task{border-color:#edf0f5;border-radius:6px}
#reviewWorkspace .ur-task:hover{background:#f6f9fe}
#reviewWorkspace .ur-task strong{font-weight:500;color:#314b6c}
#reviewWorkspace .ur-task span{color:#718096}
#reviewWorkspace .ur-canvas-meta{padding:5px 10px;border-color:#edf1f6;background:#fff;min-height:36px}
#reviewWorkspace .ur-canvas-meta .ur-identity-legend{font-size:14px;color:#65768b;gap:12px}
#reviewWorkspace .ur-shortcut-help summary{font-size:14px;color:#66788f;font-weight:500}
#reviewWorkspace .ur-shortcut-help>div{border-color:#e0e7f1;box-shadow:var(--ui-popover-shadow)}
#reviewWorkspace #arTransport{gap:6px;padding-top:8px}
#reviewWorkspace #arTransport button{
  border:1px solid transparent;border-radius:7px;background:#f3f6fa;color:#516883;box-shadow:none;
}
#reviewWorkspace #arTransport button:hover:not(:disabled){background:#eaf1fd;color:#285dba;border-color:#dae6fa}
#reviewWorkspace #arTransport #arTransportPlay{background:#2864e8;color:#fff;border-color:#2864e8;padding-inline:14px;min-width:52px}
#reviewWorkspace #arTransport #arTransportPlay:hover:not(:disabled){background:#1e55cd}
#reviewWorkspace #arTransport #arToggleBoxes[aria-pressed=true]{background:#edf3ff;color:#2b61c7;border-color:#dce7fc}
#reviewWorkspace #arTransport button:disabled{background:#f8f9fb;border-color:transparent;color:#a2acba;opacity:1}
#reviewWorkspace #arTransportClock{font-size:14px;color:#67778d;letter-spacing:.15px}
#reviewWorkspace .ur-segment-nav{padding-top:8px;color:#768397}
#reviewWorkspace .ur-segment-nav button{background:transparent;border-color:transparent;border-radius:7px;color:#516883}
#reviewWorkspace .ur-segment-nav button:hover:not(:disabled){background:#edf3ff;border-color:transparent;color:#2a60c6}
#reviewWorkspace .ur-segment-nav button:disabled{color:#abb4c0;opacity:1}
#reviewWorkspace .ur-segment-nav [data-ur-segment-state]{font-size:14px;color:#7a8798}
#reviewWorkspace [data-ur-fullscreen]{border-color:#dde5ef;border-radius:8px;color:#526e92;background:#fff;min-height:40px}
#reviewWorkspace [data-ur-fullscreen]:hover{background:#f6f9ff}
#reviewWorkspace .ur-heading .ar-final .button{min-height:40px;border-radius:8px}
#reviewWorkspace .ur-selection-actions{
  padding:8px 10px;border:1px solid #dce5f0;border-radius:10px;background:#fff;
  box-shadow:0 4px 16px #0a20301c,0 0 0 1px #ffffff80;gap:10px;
}
#reviewWorkspace .ur-selection-actions>strong{color:#344d6d;font-size:15px;font-weight:600}
#reviewWorkspace .ur-selection-actions button{border-color:transparent;background:#f3f6fa;color:#506986;border-radius:6px}
#reviewWorkspace .ur-selection-actions [data-ur-context=identity]{background:#ebf2ff;color:#285fc8}
#reviewWorkspace .ur-selection-actions .ur-delete-action{background:#fff4f5;color:#b65462}
#reviewWorkspace .ur-selection-actions .ur-deselect{background:transparent;color:#76869a}
#reviewWorkspace .ur-selection-actions .ur-join-action{background:#2864e8;color:#fff}
#reviewWorkspace .ur-team-strip{border-color:#e2e8f0;background:#f8fafd;border-radius:8px}
/* Filmstrip evidence: the selected source frame stays visually dominant. */
#reviewWorkspace #arQuickIdentity.ar-track-gallery{border-color:#d9e2ee;border-radius:15px;box-shadow:0 12px 36px #0f254525,0 30px 100px #0f25452b,0 0 0 100vmax #12243c21}
#reviewWorkspace .ar-track-gallery .ar-quick-heading{border-color:#e8edf3}
#reviewWorkspace .ar-track-gallery #arQuickTitle{color:#243b58;font-size:19px;font-weight:600}
#reviewWorkspace .tcg-scene{background:#f2f5f9;border:1px solid #e7ecf3;border-radius:10px}
#reviewWorkspace .tcg-card{border-color:#d5dfeb;border-radius:7px;box-shadow:0 3px 9px #172c4610;background:#edf1f6}
#reviewWorkspace .tcg-card.tcg-current{border-color:#3677ee;box-shadow:0 3px 16px #2864e81a,0 0 0 2px #e1ebff}
#reviewWorkspace .tcg-card img{background:#edf1f6}
#reviewWorkspace .tcg-card span{background:#17283edb;color:#fff;border-radius:4px;font-size:13px;padding:4px 7px;font-variant-numeric:tabular-nums;letter-spacing:.2px}
#reviewWorkspace .tcg-modes{background:#eef2f8;border-radius:8px}
#reviewWorkspace .ar-track-gallery .tcg-modes button[aria-pressed=true]{background:#fff;color:#245fcf;box-shadow:0 1px 5px #10234114}
#reviewWorkspace .tcg-track-navigation button,#reviewWorkspace .tcg-controls button{background:#f2f5fa;border-color:transparent;color:#54739a;border-radius:7px}
#reviewWorkspace .ar-track-gallery #arQuickNumber{background:#f7f9fd;border-color:#cfdaea;color:#24446e;font-weight:600;font-variant-numeric:tabular-nums}
#reviewWorkspace .ar-track-gallery #arQuickForm,#reviewWorkspace .tcg-split-panel{border-color:#e6ecf4}
#reviewWorkspace .tcg-split-at{color:#2d64ce;font-weight:600}
#reviewWorkspace .tcg-split-range{background:#f3f6fa}
#reviewWorkspace .tcg-tail-range{background:#edf4ff}
#reviewWorkspace .tcg-split-panel button{background:#2864e8;border-color:#2864e8}
#reviewWorkspace .tcg-split-panel button:disabled{background:#f0f3f8;border-color:#e1e7ef;color:#96a3b4;opacity:1}
/* Quiet global entry point; the current workflow retains primary emphasis. */
.topbar #importButton{background:#edf3ff;border-color:#dbe6fb;color:#2a5fc4;box-shadow:none}
.topbar #importButton:hover{background:#e3edff;border-color:#cbdcfa;color:#204fab}
#reviewWorkspace .ar-track-gallery #arQuickRemaining,
#reviewWorkspace.ur-queue-open .ar-track-gallery #arQuickRemaining{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
/* Slim, legible time controls without platform-specific bevels. */
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:22px;border:0;box-shadow:none;cursor:pointer}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-webkit-slider-runnable-track{height:4px;background:#dce5f1;border-radius:3px}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:3px solid #2d68e2;border-radius:50%;background:#fff;box-shadow:0 1px 4px #2d68e225}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]:focus-visible{outline:2px solid #b5ccf8;outline-offset:3px;border-radius:5px}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-moz-range-track{height:4px;background:#dce5f1;border-radius:3px}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-moz-range-progress{height:4px;background:#b8cdf3}
:is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-moz-range-thumb{width:8px;height:8px;border:3px solid #2d68e2;border-radius:50%;background:#fff}
@media(min-width:961px){
  #reviewWorkspace:not(:fullscreen):not(.is-review-fullscreen-window){--ur-stage-height:clamp(330px,calc(100dvh - 310px),840px)}
}
@media(min-width:961px) and (max-height:850px){
  .sidebar{padding-top:22px}
  .sidebar nav{margin-top:20px;gap:2px}
  .sidebar .nav-item{min-height:42px;padding:8px 12px}
  .sidebar .library-heading{margin-top:10px;padding-top:10px}
  .sidebar .sidebar-bottom{margin-top:8px}
}
@media(max-width:960px){
  .topbar h1{font-size:24px}
  .brand{font-size:21px}
}
@media(max-width:760px){
  .sidebar .nav-item.active::before{display:none}
  .topbar h1{font-size:23px}
  #reviewWorkspace .ur-heading h2{font-size:20px}
  #reviewWorkspace .ur-canvas-meta{padding-inline:7px}
  #reviewWorkspace .ur-canvas-meta .ur-identity-legend{gap:8px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  button,summary{transition:none}
}
@media(forced-colors:active){
  .nav-item.active,#reviewWorkspace .tcg-current{outline:2px solid Highlight}
  :is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]{appearance:auto}
  :is(#reviewWorkspace,.workspace-timeline,.timeline) input[type=range]::-webkit-slider-thumb{background:ButtonFace;border-color:Highlight}
}
