/* Accessibility foundations. Load after feature styles. Original Q/icon geometry is unchanged. */
:root{
  --a11y-text:#e5ebeb;
  --a11y-muted:#b8c7d0;
  --a11y-control-edge:#8fa9b8;
  --a11y-focus:#d3ffae;
  --a11y-input-bg:#10171c;
  --a11y-placeholder:#aabdc9;
  --a11y-selected-bg:#33432c;
}
html{font-size:100%;scroll-padding-block:20px 100px}
body{font-size:1rem;line-height:1.5;color:var(--a11y-text)}
body :is(button,input,select,textarea,summary,[tabindex]){scroll-margin-block:24px 110px}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--a11y-focus);outline-offset:3px;box-shadow:0 0 0 1px #0d1114}
body :is(.ew-queue-item,.study-card,.rail-link,.coverage-results):focus-visible{outline-offset:-3px}
.skip-link{min-height:44px;min-width:44px;font-size:1rem;z-index:1000}
.skip-link:focus{top:10px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
a:not(.btn),.legal-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
a:hover,.legal-link:hover{text-decoration-thickness:2px}
body :is(.btn,.icon-btn,.tool-button,.filter,.plane-tab,.orientation-buttons button,.window-presets button,.entry-auth-modes button,.research-tabs button,.ew-tabs button,.learn-card button,.legal-link){min-height:40px;min-width:40px;height:auto;font-size:.875rem;line-height:1.4}
body :is(.icon-btn,.tool-button){min-height:44px;min-width:44px}
body :is(.filter,.window-presets button){min-height:36px;min-width:36px}
body summary{min-height:44px;align-content:center;line-height:1.5}
body input:not([type=checkbox]):not([type=radio]):not([type=range]),body select,body textarea{font-size:.9375rem;line-height:1.5;border-color:var(--a11y-control-edge);background:var(--a11y-input-bg);color:var(--a11y-text)}
body input::placeholder,body textarea::placeholder{color:var(--a11y-placeholder);opacity:1}
body input:is([type=checkbox],[type=radio]){width:24px;height:24px;min-width:24px;min-height:24px;padding:0;margin-block:0;accent-color:#bcf881;flex-shrink:0}
body input[type=range]{min-height:32px;height:32px;accent-color:#bcf881}
body input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:4px;background:var(--a11y-control-edge)}
body input[type=range]::-webkit-slider-thumb{margin-top:-5px}
body input[type=range]::-moz-range-track{height:6px;border-radius:4px;background:var(--a11y-control-edge)}
body :is(.btn.ghost,.filter,.window-presets button,.entry-auth-modes){border-color:var(--a11y-control-edge)}
body :is(.btn,.filter,.window-presets button):disabled{opacity:1;color:#b8c7d0;background:#253039;border-color:#738895;border-style:dashed;cursor:not-allowed}
body :is(.workspace,.entry,dialog) :is(.muted,.field-note,.compact-note,.eyebrow,.label,.settings-label,.study-facts dt,.viewer-footer,.bottom-status,.scan-heading p,.scan-overlay,.orientation,.volume-help,.volume-toolbar .tools-hint,.volume-bottom,.point-coordinates,.layer-volume,.layer-opacity output,.slice-heading small,.linked-slice header small,.linked-slice footer output,.link-note,.parameter-notice,.ew-footer,.coverage-evidence small,.coverage-evidence span,.demo-pass-section small,.demo-pass-dates dt,.demo-access-footer,.demo-pass-card-heading p,.demo-pass-list-heading p,.demo-pass-closed){color:var(--a11y-muted)}
body :is(.workspace,.entry,dialog) :is(p,.checklist,.ew-check,.ew-field,.ew-field input,.ew-field select,.ew-field textarea,.layer-line,.toggle-row,.control-label,.provenance-row,.review-status,.coverage-lineage p,.demo-pass-section strong,.demo-pass-permissions legend,.product-notice-body){font-size:.875rem;line-height:1.65}
body :is(.workspace,.entry,dialog) :is(small,.tag,.eyebrow,.pill,.field-note,.compact-note,.settings-label,.scan-heading p,.study-card p,.study-card-bottom,.study-bottom,.study-facts div,.viewer-footer,.bottom-status,.chart-labels,.keys kbd,.metric small,.tissue-legend,.layer-volume,.layer-opacity output,.slice-heading small,.linked-slice header small,.linked-slice footer output,.point-coordinates,.volume-watermark,.volume-axis-key,.volume-badge,.volume-help,.parameter-notice,.field-metrics span,.simulation-playbar label,.simulation-playbar output,.intensity-legend,.source-display,.model-point,.research-subtle-link,.evidence-item a,.ew-count,.ew-status,.ew-item-top small,.ew-item-bottom span:last-child,.ew-save-state,.ew-timeline small,.coverage-card .tag,.coverage-evidence span,.coverage-evidence small,.coverage-toolbar label,.demo-pass-section small,.demo-pass-approved span,.demo-pass-dates dt,.demo-pass-dates dd,.demo-pass-status,.demo-pass-form-heading p,.demo-pass-permissions legend>span,.third-party-license pre){font-size:.75rem;line-height:1.6}
body :is(.workspace,.entry,dialog) :is(.field-note,.compact-note,.ew-note,.ew-footer,.ew-filterbar label,.ew-item-subject,.coverage-card p,.coverage-lineage,.product-legal,.demo-access-footer,.demo-pass-secret p,.demo-pass-revoke-confirm p){font-size:.8125rem}
body :is(.workspace,.entry,dialog) :is(h3,.ew-section-label,.coverage-card h3,.coverage-lineage h3,.ew-item-top strong,.demo-pass-card h4){font-size:1rem;line-height:1.5}
body :is(.workspace,.entry,dialog) :is(table,th,td,.diagnosis-table td,.diagnosis-table th){font-size:.8125rem;line-height:1.6}
body :is(.workspace,.entry,dialog) :is(th,td small,.diagnosis-table td small){color:var(--a11y-muted)}
body :is(.entry-legal,.entry-local,.entry-foot,.entry-step,.brand small,.user-chip small,.topbar .pill){font-size:.75rem;color:var(--a11y-muted);line-height:1.6}
body .user-chip strong{font-size:.875rem}
.entry-auth-modes,.ew-tabs{gap:8px}
.rail-link{color:var(--a11y-muted);width:60px;min-width:60px;min-height:60px;height:auto;padding:8px 3px}
.rail-link span{font-size:.75rem;line-height:1.4;letter-spacing:0}
.rail-link,.rail-link:hover{text-decoration:none}
.rail-nav{gap:6px}
.rail-link.active{color:#d3ffae;background:var(--a11y-selected-bg)}
body .journey-step{min-height:40px;padding:7px 4px;font-size:.8125rem;color:var(--a11y-muted)}
body .journey-step.active{color:#daf3c6}
body .journey-step .number{min-width:24px;min-height:24px;font-size:.75rem}
.journey{flex-wrap:wrap}
.study-card,.ew-queue-item{min-height:44px}
.study-card.active,.ew-queue-item[aria-pressed=true]{border-color:#b9da97}
body .plane-tab,body .orientation-buttons button{color:var(--a11y-muted)}
body .plane-tab.active,body .orientation-buttons button.active{color:#d3ffae}
.scan-toolbar,.volume-toolbar,.orientation-buttons,.research-footer-actions,.under-viewer,.section-head,.welcome-actions,.volume-card-head,.slice-heading{flex-wrap:wrap}
.view-plane-tabs{gap:16px;flex-wrap:wrap}
.tool-button.active{border-color:#b9da97}
.scan-overlay{font-size:.75rem;background:#0d1114cc;padding:3px 5px;border-radius:3px}
.scan-overlay strong{color:#e5ebeb}
.volume-watermark{background:#0d1114cc;padding:3px 5px;border-radius:3px;max-width:65%}
.volume-help,.volume-axis-key{background:#0d1114cc;padding:3px 5px;border-radius:3px}
.layer-line{flex-wrap:wrap}.layer-line label{min-height:32px;align-items:center;min-width:0}.layer-opacity output{min-width:4ch;width:auto}
.toggle-row,.ew-check,.checklist label{min-height:32px;gap:12px}
.research-checklist label{min-height:44px;gap:12px}
.linked-slice footer output{min-width:7ch}.linked-slice header{gap:8px;flex-wrap:wrap}
.volume-bottom,.provenance-row,.study-facts div,.ew-ledger div{overflow-wrap:anywhere}
.diagnosis-table{min-width:0}.table-scroll{max-width:100%}
.table-scroll:focus-visible{outline-offset:-3px}
body .plane-tab span{font-size:.75rem;color:var(--a11y-muted)}
body :is(.entry-privacy,.info-callout,.learn-count,.journey-label,.journey-end,.series-card strong,.welcome-path span,.ew-notice,.ew-metric span,.ew-callout,.ew-ledger div,.ew-timeline li,.ew-timeline li>strong){font-size:.8125rem;line-height:1.65}
.ew-tabs button{color:var(--a11y-muted)}
.ew-detail-title h2:focus{outline:3px solid var(--a11y-focus);outline-offset:4px}
.session-notice{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:16px 24px;background:#293321;border-bottom:2px solid #b9da97;color:var(--a11y-text)}
.session-notice[hidden]{display:none}.session-notice p{margin:0;flex:1 1 240px;font-size:.9375rem;line-height:1.6}
.session-notice button{min-height:44px;flex-shrink:0}
.viewer-access-tools{padding:14px 16px;border-top:1px solid #536772;background:#141e24;font-size:.875rem}
.viewer-access-tools summary{cursor:pointer;font-size:.9375rem;color:var(--a11y-text)}
.viewer-access-tools p{color:var(--a11y-muted);line-height:1.7;margin:10px 0}
.viewer-access-tools fieldset{border:1px solid var(--a11y-control-edge);border-radius:7px;padding:12px;min-width:0;margin:18px 0 12px}
.viewer-access-tools legend{padding:0 6px;font-size:.875rem}
.pan-controls{display:flex;flex-wrap:wrap;gap:8px}.pan-controls button{min-height:44px}
.measurement-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.measurement-fields label{display:grid;gap:6px;font-size:.875rem;min-width:0}
#measurement-result{display:block;overflow-wrap:anywhere;min-height:24px;color:var(--a11y-text)}
.slice-control input{min-width:48px;max-width:100%}
.enterprise-workspace{--ew-muted:var(--a11y-muted)}
.ew-header h2{line-height:1.35}.ew-save-state{min-height:24px}
.ew-tabs button{min-height:44px;min-width:44px;font-size:.875rem}
.ew-queue-item{scroll-margin:12px}.ew-queue{padding:7px}
.ew-panel-body[tabindex="-1"]:focus,.ew-error[tabindex="-1"]:focus{outline:3px solid var(--a11y-focus);outline-offset:-3px}
.ew-status{white-space:normal}.ew-item-top small{white-space:normal;overflow-wrap:anywhere}
.ew-item-top,.ew-item-bottom{flex-wrap:wrap}.ew-item-bottom .ew-badges{flex-wrap:wrap}
.ew-filterbar label,.ew-field{min-width:0}.ew-field small{color:var(--a11y-muted)}
.ew-check small{color:var(--a11y-muted)}.ew-timeline small{color:var(--a11y-muted)}
.ew-money-wrap span{top:13px}.ew-search svg{top:15px}
.coverage-results{scrollbar-color:#8fa9b8 #141e24;scrollbar-width:auto}
.coverage-toolbar label{min-width:min(170px,100%)}
.coverage-evidence h4{font-size:.875rem;line-height:1.5}
.coverage-evidence a{min-height:44px;text-decoration:underline;text-underline-offset:.2em;white-space:normal}
.coverage-evidence>div{min-width:0;overflow-wrap:anywhere}.coverage-groups{align-items:start}
.platform-coverage>details>summary{padding-block:8px}.coverage-lineage summary{padding-block:8px}
.demo-pass-section{gap:12px;min-height:44px}.demo-pass-card-actions .btn{min-height:40px;font-size:.8125rem}
.demo-pass-section-grid{min-width:0}.demo-pass-card-actions{justify-content:flex-start}
.demo-pass-secret-actions .btn{min-height:44px;font-size:.875rem}
.third-party-license summary{font-size:.875rem}
/* Equivalent controls and textual context for the spatial workspaces. */
.reconstruction-controls{display:flex;flex-wrap:wrap;gap:14px;padding:16px;background:#141e24;border-top:1px solid #536772}
.reconstruction-control-group{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #718894;border-radius:7px;padding:12px;min-width:0;flex:1 1 210px;margin:0}
.reconstruction-control-group legend{padding-inline:6px;color:var(--a11y-text);font-size:.875rem}
.reconstruction-controls button,.slice-step-controls button,.therapy-frame-controls button{min-height:44px;min-width:44px;font-size:.875rem}
.reconstruction-instructions,.reconstruction-text-summary{padding:14px 16px;color:var(--a11y-muted);font-size:.875rem;line-height:1.7;overflow-wrap:anywhere}
.reconstruction-instructions p:last-child,.reconstruction-text-summary p:last-child{margin-bottom:0}
.reconstruction-text-summary{border-top:1px solid #536772;background:#142028}
.coordinate-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:end;min-width:0}
.coordinate-controls label{display:grid;gap:6px;flex:1 1 100px;min-width:0;font-size:.875rem}
.coordinate-controls input{width:100%;min-width:0}.coordinate-controls button{min-height:44px}
.slice-step-controls,.therapy-frame-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px}
.reconstruction-control-group button,.slice-step-controls button,.therapy-frame-controls button{border-color:var(--a11y-control-edge)}
@media(max-width:940px){.right-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.right-stack .note-card{grid-column:1/-1}}
@media(max-width:680px){
  .shell{grid-template-rows:minmax(72px,auto) 1fr}
  .topbar{padding:10px 14px;gap:8px;flex-wrap:wrap;min-width:0}.topbar-actions{margin-left:auto;gap:6px;flex-wrap:wrap}
  .top-brand{flex-wrap:wrap}.top-brand>span:last-child{font-size:.75rem}
  .rail{height:76px;padding:4px 6px}.rail-link{flex:0 0 64px;width:64px;min-height:64px;height:auto}
  .rail-link span{font-size:.75rem}.rail-nav{gap:5px;padding-block:3px}
  .workspace{padding-bottom:96px}.toast{bottom:90px;font-size:.875rem}
  .page-heading-actions{flex-wrap:wrap;max-width:100%;width:auto;margin-top:0}
  .page-heading-actions .btn{font-size:.8125rem;width:auto;min-width:44px;min-height:44px;white-space:normal}
  .page-heading p{max-width:none}.page-heading{flex-wrap:wrap}
  .journey{gap:8px}.journey-step{flex:1 1 120px;justify-content:flex-start}.journey-line{display:none}
  .entry-world,.entry-form-side{padding-inline:20px}.entry-top{flex-wrap:wrap;gap:14px}
  .welcome-path{grid-template-columns:1fr}.welcome-actions{gap:12px}.welcome-actions .btn{flex:1 1 150px}
  .volume-card-head{gap:12px}.volume-card-head h2{font-size:1.125rem}
  .research-tabs{flex-wrap:wrap}.research-tabs button{min-height:44px;flex:1 1 110px}
  .research-tabs button span{font-size:.75rem}.orientation-buttons{flex-wrap:wrap}
  .viewer-footer,.bottom-status{flex-wrap:wrap}.slice-control{flex-wrap:wrap;gap:8px}
  .simulation-playbar{flex-wrap:wrap}.simulation-playbar input{min-width:120px}
}
@media(max-width:480px){
  .right-stack,.linked-slices,.research-side,.field-metrics,.coverage-groups{grid-template-columns:minmax(0,1fr)}
  .right-stack .note-card{grid-column:auto}.scan-toolbar{gap:8px}
  .ew-filterbar,.ew-metrics{grid-template-columns:minmax(0,1fr)}.ew-search{grid-column:auto}
  .ew-metric{padding:12px 15px}.ew-metric strong{font-size:1.5rem}
  .ew-tabs{flex-wrap:wrap}.ew-tabs button{flex:1 1 140px}
  .ew-ledger div{flex-wrap:wrap;gap:5px}.ew-ledger dd{text-align:left}
  .volume-watermark{max-width:calc(100% - 24px)}
  .volume-badge{top:auto;bottom:86px;left:12px;right:auto}
  .volume-help{bottom:48px;left:12px;right:12px}.volume-axis-key{bottom:12px}
  .diagnosis-table th,.diagnosis-table td{padding:10px 6px;overflow-wrap:anywhere}
  .reconstruction-controls{padding:12px}.coordinate-controls label{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media(forced-colors:active){
  body{color:CanvasText;background:Canvas}
  button,input,select,textarea,summary,.btn,.tag,.ew-status,.coverage-results,.reconstruction-control-group{border:1px solid CanvasText}
  a:not(.btn),.legal-link{color:LinkText}
  button[aria-pressed=true],button[aria-selected=true],.rail-link.active,.study-card.active{color:HighlightText;background:Highlight;border:2px solid Highlight}
  body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid Highlight;box-shadow:none}
  .scan-overlay,.volume-watermark,.volume-help,.volume-axis-key{color:CanvasText;background:Canvas}
  .scan-overlay strong{color:CanvasText}
  body input:is([type=checkbox],[type=radio],[type=range]){accent-color:auto}
  body input[type=range]::-webkit-slider-runnable-track{background:CanvasText}
  body input[type=range]::-moz-range-track{background:CanvasText}
  .readiness-bar,.learn-progress{border:1px solid CanvasText}
}
