:root{color-scheme:dark;--orange:#ff6600;--text:#f2f0ea;--muted:#b0b8bf;--line:#2d343b;--green:#58de82;font-family:'Poppins',system-ui,sans-serif;background:#080b0e;color:var(--text)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select{font-size:14px;color:var(--text);background:#171e25;border:1px solid var(--line);border-radius:8px;padding:9px 10px}button{cursor:pointer}button:hover{background:#29323a}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button.active,button[aria-pressed=true]{border-color:var(--orange);background:#3b2315}.accent{background:var(--orange);color:#100900;font-weight:650}.accent:hover{background:#ff8534}header{min-height:76px;padding:16px 24px;display:flex;align-items:center;gap:24px;border-bottom:1px solid var(--line)}.brand{font-size:21px;font-weight:750;letter-spacing:-.7px}.brand span{color:var(--orange)}header p{font-size:14px;color:var(--muted);flex:1;margin:0}main{display:grid;grid-template-columns:260px minmax(300px,1fr) 340px;height:calc(100dvh - 77px)}aside{padding:20px;overflow:auto;background:#10151a}.choices{border-right:1px solid var(--line)}.reading{border-left:1px solid var(--line)}.eyebrow{color:var(--orange);text-transform:uppercase;font-size:12px;font-weight:700;letter-spacing:1.3px;margin:6px 0 14px}.choices>.eyebrow:not(:first-child){margin-top:26px}.choices label{display:block;font-size:14px;margin:12px 0 8px}.choices select{width:100%;max-width:100%;white-space:normal}.stack{display:flex;flex-direction:column;gap:6px;margin:12px 0}.stack button{text-align:left;display:flex;align-items:center;gap:8px}.swatch{width:9px;height:9px;border-radius:50%;flex-shrink:0}.check{display:flex!important;gap:8px;align-items:flex-start;line-height:1.5}.check input{accent-color:var(--orange);margin-top:5px}input[type=range]{width:100%;accent-color:var(--orange)}.range output{float:right;color:var(--muted)}.pills{display:flex;gap:6px;flex-wrap:wrap}.pills button{font-size:13px;padding:7px 9px}#tourBtn{width:100%;margin-top:18px}.viewer{position:relative;min-height:500px;overflow:hidden}three-d-stage{display:block;width:100%;height:100%;--stage-bg:#080b0e}three-d-stage::part(toolbar){display:none}.viewStatus{position:absolute;top:16px;left:16px;right:16px;pointer-events:none;display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}#representation{color:var(--green);font-weight:600}.viewTools{position:absolute;bottom:0;left:0;right:0;padding:34px 16px 12px;background:linear-gradient(transparent,#080b0e 35%)}.cut{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}.cut label{font-size:13px}.viewTools p{font-size:12px;color:var(--muted);margin:10px 0 0}.badge{display:inline-block;font-size:12px;color:var(--green);background:#163222;padding:5px 8px;border-radius:5px}.reading h1{font-size:24px;line-height:1.3;letter-spacing:-.4px;margin:15px 0}.reading p,dialog p,dialog li{font-size:16px;line-height:1.65;font-weight:400}.reading h2,.reading h3{font-size:15px;margin:22px 0 6px}.reading a,dialog a{color:#92cfff;text-underline-offset:3px}.reading .muted{font-size:13px;color:var(--muted)}.legendEntry{display:flex;align-items:center;gap:8px;font-size:13px;margin:8px 0}.legendEntry i{width:12px;height:12px;background:var(--c);display:block}#legend{padding-top:10px}#selection{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}#selection p{font-size:14px}#labels3d{position:absolute;inset:0;pointer-events:none}.label3d{position:absolute;font-size:12px;color:#e1e7eb;background:#080b0edb;border:1px solid #69727a55;border-radius:5px;padding:3px 6px;white-space:nowrap;transform:translate(-50%,-50%)}dialog{background:#121a21;color:var(--text);border:1px solid #4a5158;border-radius:16px;max-width:710px;width:calc(100% - 32px);max-height:85dvh;padding:30px;overflow:auto}dialog::backdrop{background:#000b}dialog h2{font-size:26px;line-height:1.3;margin-top:8px}.close{position:absolute;right:12px;top:12px;border:0;background:none;font-size:24px}.exercise{background:#213126;padding:14px;border-radius:8px}.muted{color:var(--muted)}#loadError{position:absolute;top:90px;left:20px;right:20px;background:#401f1c;padding:18px;border:1px solid #ec8d73;border-radius:10px;z-index:10}button:disabled{opacity:.45;cursor:wait}[hidden]{display:none!important}
@media(min-width:1600px){main{grid-template-columns:280px minmax(400px,1fr) 390px}}@media(max-width:1100px){main{grid-template-columns:230px minmax(300px,1fr);height:auto}.viewer{height:calc(100dvh - 77px)}.choices{max-height:calc(100dvh - 77px)}.reading{grid-column:1/-1;border-top:1px solid var(--line);padding:24px;max-width:none}header p{display:none}}@media(max-width:650px){header{padding:14px;gap:10px;flex-wrap:wrap}.brand{font-size:19px}header button{margin-left:auto;font-size:12px}main{display:flex;flex-direction:column;height:auto}.viewer{order:0;height:65dvh;min-height:470px}.choices{order:1;max-height:none;border-top:1px solid var(--line)}.reading{order:2}.choices select{padding:12px}.stack{display:grid;grid-template-columns:1fr 1fr}.viewTools{padding:22px 10px 10px}.viewTools .pills button{font-size:12px}.cut{gap:5px}.cut select{font-size:12px}.viewStatus{font-size:11px}.label3d{font-size:11px}}

.studyToggle{padding:12px;background:#203029;border:1px solid #42664f;border-radius:8px;font-weight:600}.modeHint{font-size:13px;color:var(--muted);line-height:1.5;margin:8px 0 16px}.anatomySources{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.anatomySources summary{cursor:pointer;font-size:14px;color:#92cfff}.anatomySources p{font-size:13px}.label3d:is(button){pointer-events:auto;cursor:pointer;font-family:inherit;line-height:1.3}.label3d:is(button):hover{background:#3b2315;border-color:var(--orange)}#returnStudy{margin-bottom:14px;width:100%;font-size:13px}.reading .badge{line-height:1.5}

/* Lectura progresiva dentro del panel, sin cubrir el modelo 3D. */
.plainGuide{border-left:3px solid #ff6600;padding-left:12px;margin:12px 0 18px}.learning{border:1px solid #343d45;border-radius:8px;padding:10px 12px;margin:12px 0}.learning summary{cursor:pointer;font-weight:600;line-height:1.45;color:#e8edef}.learning[open] summary{margin-bottom:12px}.learning h3{font-size:1em;line-height:1.45;margin:16px 0 6px}.learning p{line-height:1.65}

/* Optional, non-modal usage guide: underlying controls remain interactive. */
#tourHighlight{position:fixed;z-index:30;border:3px solid #ff8534;border-radius:10px;box-shadow:0 0 0 4px #ff660025;pointer-events:none}
#usageTour{position:fixed;z-index:40;background:#152029;color:#f2f0ea;border:1px solid #ff8534;border-radius:14px;padding:16px;box-shadow:0 8px 32px #0008;max-height:calc(100dvh - 24px);overflow:auto}
#usageTour h2{font-size:18px;line-height:1.35;margin:12px 0 8px}#usageTour p{font-size:14px;line-height:1.55;margin:8px 0}.tourTop{display:flex;gap:8px;align-items:center;justify-content:space-between}.tourTop span{font-size:11px;color:#ffb17e}.tourTop button{font-size:12px;white-space:nowrap;padding:6px}.tourHint{color:#b0b8bf;font-size:12px!important}.tourActions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}
@media(max-width:650px){#usageTour{padding:12px}#usageTour h2{font-size:16px;margin:8px 0 6px}#usageTour p{font-size:13px}.tourHint{display:none}}

#consultor{max-width:760px}#consultor p{font-size:14px}#consultorForm{margin-top:20px}#consultorQuestion{display:block;width:100%;margin:8px 0 12px;padding:12px;font:inherit;color:var(--text);background:#080b0e;border:1px solid #69727a;border-radius:8px;resize:vertical}.consultorQuestion{padding:12px;background:#3b2315;border-radius:8px}.consultorAnswer{padding:12px;border:1px solid var(--line);border-radius:8px}.consultorAnswer details{padding:12px 0;border-top:1px solid var(--line)}.consultorAnswer summary{cursor:pointer;color:#ffb17e;font-weight:600}.consultorAnswer h3{font-size:14px}.consultorAnswer a{display:block;font-size:13px;margin:8px 0}#consultorStatus{font-size:12px;color:var(--muted)}@media(max-width:650px){#consultor{padding:24px 16px}header{flex-wrap:wrap}header #consultorOpen{margin-left:0}}

#consultorClose{position:sticky;top:0;float:right;z-index:2;background:#121a21;border:1px solid var(--line);width:36px;height:36px;padding:0}

/* Published, prerecorded video library */
#videoLibrary{width:min(960px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:16px;background:#111820;color:var(--text)}
#videoLibrary::backdrop{background:#000b}.video-library-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.video-library-heading h2{margin:4px 0 12px}.video-library-heading .eyebrow{margin:0}#videosClose{position:sticky;top:0;background:#202a34;z-index:1}#videoLibrary>p{color:var(--muted);line-height:1.5}#studyVideo{display:block;width:100%;aspect-ratio:16/9;background:#080b0e;border-radius:10px}#videoNow{margin:14px 0 8px}#videoPlaybackStatus:empty{display:none}.video-library-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.video-card{padding:16px;border:1px solid var(--line);border-radius:10px}.video-card h3{margin:0 0 8px}.video-card p{font-size:13px;line-height:1.5;color:var(--muted)}.video-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.video-actions button{background:#ff6600;color:#090d11;font-weight:700}.video-actions a{color:#f5c29d;font-size:13px}.video-actions a span{white-space:nowrap}.video-source{font-size:12px;border-top:1px solid var(--line);padding-top:16px}.video-source a{color:#f5c29d}@media(max-width:600px){#videoLibrary{padding:16px}.video-library-grid{grid-template-columns:1fr}}
#videoLibrary .video-library-heading{position:sticky;top:-24px;z-index:2;background:#111820;padding:12px 0}#studyVideo{scroll-margin-top:90px}@media(max-width:600px){#videoLibrary .video-library-heading{top:-16px}}
/* Exploración editorial: paneles reversibles y lienzo protagonista. */
:root{--line:#28323a;--muted:#a8b4bd;background:#080b0e}body{height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}header{min-height:70px;padding:14px 22px;gap:18px;background:#0d1217}header p{font-size:12px;max-width:430px;margin-right:auto}header button{font-size:12px;background:transparent;border-color:#333c44;padding:9px 13px;border-radius:99px}header button:hover{border-color:#ff6600}.brand{letter-spacing:-1px;font-size:23px}main{height:auto;min-height:0;grid-template-columns:265px minmax(280px,1fr) 340px;gap:0}aside{background:#10171d;padding:22px 18px}.choices,.reading{min-height:0;max-height:none}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.panel-heading .eyebrow{margin:0;font-size:10px}.panel-heading button{font-size:21px;background:transparent;padding:0;width:28px;height:28px;border:0;color:var(--muted)}.choices label{font-size:12px}.choices select{font-size:12px;padding:10px}.stack{gap:7px}.stack button{font-size:13px;border-radius:10px;padding:11px 12px}.reading h1{font-size:23px;line-height:1.32}.reading p{font-size:14px;line-height:1.7}.reading h2{font-size:14px}.viewer{height:100%;min-height:0;background:radial-gradient(ellipse at 50% 45%,#14202a 0%,#080b0e 65%)}.canvas-actions{position:absolute;z-index:5;top:14px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px;flex-wrap:wrap}.canvas-actions>div{display:flex;gap:5px}.canvas-actions button{font-size:11px;padding:8px 10px;background:#111a22e8;backdrop-filter:blur(10px);border-radius:99px}.canvas-actions button[aria-pressed=true],.canvas-actions button[aria-expanded=true]{border-color:#576470;background:#1c2831}.canvas-actions #focusMode{border-color:#9a4e1c;color:#ffc39a}.viewStatus{top:65px;font-size:10px;left:20px;right:20px;gap:5px}.viewTools{padding:24px 18px 12px}.viewTools .pills button{font-size:11px;padding:6px 8px}.viewTools p{font-size:10px}.cut label,.cut select,.cut button{font-size:11px}.cut select,.cut button{padding:6px 8px}.hide-choices main{grid-template-columns:minmax(280px,1fr) 340px}.hide-reading main{grid-template-columns:265px minmax(280px,1fr)}.hide-choices.hide-reading main{grid-template-columns:minmax(0,1fr)}.focus-mode .viewTools{left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:100%;border-radius:20px 20px 0 0}.focus-mode .viewTools p{text-align:center}.site-footer{display:flex;gap:20px;align-items:center;padding:10px 22px;border-top:1px solid var(--line);background:#0d1217;z-index:6}.site-footer img{display:block;width:105px;height:32px;object-fit:contain}.site-footer p{margin:0;flex:1;font-size:10px;line-height:1.5;color:var(--muted)}.site-footer strong{color:#e9e6df;font-weight:500}.site-footer span{display:block}.site-footer button{background:none;border:0;color:#c9a88d;font-size:10px;padding:6px}.site-footer a:focus-visible{outline:2px solid var(--orange)}#explodeControls{position:absolute;z-index:4;top:102px;left:18px;background:#111a22ee;border:1px solid #36444f;border-radius:12px;padding:12px;width:240px;max-width:calc(100% - 36px)}#explodeControls label{font-size:12px;display:flex;justify-content:space-between}#explodeControls p{font-size:10px;line-height:1.5;color:#a8b4bd;margin:5px 0 0}#explodedLabels{position:absolute;inset:0;pointer-events:none;z-index:3}.exploded-label{position:absolute;transform:translate(-50%,-50%);font-size:10px;padding:4px 7px;white-space:nowrap;background:#0c141de8;border-color:#4f6474;pointer-events:auto}.exploded-label:hover{border-color:#ff6600}#studyTools[inert]{opacity:.4}button:disabled{cursor:not-allowed}
@media(min-width:1600px){main{grid-template-columns:280px minmax(400px,1fr) 360px}.hide-choices main{grid-template-columns:minmax(400px,1fr) 360px}.hide-reading main{grid-template-columns:280px minmax(400px,1fr)}}
@media(max-width:1100px){main{grid-template-columns:230px minmax(280px,1fr) 280px}.reading{grid-column:auto;padding:18px}.choices{max-height:none}.viewer{height:100%;min-height:0}.hide-choices main{grid-template-columns:minmax(280px,1fr) 280px}.hide-reading main{grid-template-columns:230px minmax(280px,1fr)}.canvas-actions{gap:5px}.viewStatus{top:100px}#explodeControls{top:136px;width:210px}}
@media(max-width:850px){header{padding:10px 14px;min-height:60px;gap:8px;flex-wrap:wrap}.brand{font-size:19px;margin-right:auto}header button{font-size:10px;padding:7px 9px;margin-left:0!important}main,.hide-choices main,.hide-reading main{display:block;position:relative;overflow:hidden}.viewer{height:100%;min-height:0}.choices,.reading{position:absolute;top:0;bottom:0;z-index:8;width:min(310px,85vw);max-height:none;box-shadow:0 12px 40px #0008;overflow:auto}.choices{left:0}.reading{right:0}.site-footer{padding:8px 12px;gap:10px}.site-footer img{width:76px;height:26px}.site-footer p{font-size:9px}.site-footer span{display:none}.site-footer button{font-size:9px;max-width:95px}.canvas-actions{left:10px;right:10px}.viewStatus{top:94px;font-size:10px}.viewTools{padding:20px 10px 10px}.focus-mode .viewTools{width:100%}.cut{gap:5px}.viewTools .pills{gap:4px}.viewTools p{font-size:9px}#explodeControls{top:132px;width:205px}.label3d{font-size:10px}.stack{display:flex}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.site-footer img{object-fit:cover}.site-footer p{font-size:11px}.site-footer strong{font-weight:600}@media(max-width:850px){.site-footer p{font-size:9px}}

/* Contextual controls and reading card keep the canvas expanded. */
#quickLabels,#quickStudies{display:none}.hide-choices #quickLabels,.hide-choices #quickStudies{display:inline-block}.canvas-actions>div{flex-wrap:wrap}
.floating-reading main{position:relative;grid-template-columns:minmax(0,1fr)}.floating-reading .reading{position:absolute;z-index:9;right:18px;top:72px;bottom:18px;width:min(350px,calc(100% - 36px));border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 55px #0009}.floating-reading .panel-heading{position:sticky;top:-18px;background:#10171d;padding:12px 0;z-index:1}
@media(max-width:850px){.canvas-actions .model-actions{justify-content:flex-end}.floating-reading .reading{top:110px;right:10px;bottom:10px;width:calc(100% - 20px)}}

/* Primary entry to the guided experience, outside scrolling panels. */
header #tourBtn{width:auto;margin:0;flex-shrink:0;background:var(--orange);color:#100900;border-color:var(--orange);font-weight:650;white-space:nowrap}header #tourBtn:hover{background:#ff8534}header{flex-wrap:wrap}header .brand{flex-shrink:0}
@media(max-width:850px){header #tourBtn{font-size:11px;padding:8px 11px}header .brand{margin-right:0}header p{display:none}}

.mode-switch{display:flex;gap:2px;padding:3px;background:#080b0e;border:1px solid #3b4a55;border-radius:99px}.canvas-actions .mode-switch button{border:0;padding:5px 10px}.canvas-actions .mode-switch button[aria-pressed=true]{background:#ff6600;color:#100900;font-weight:650}.canvas-actions .panel-toggles{align-items:center}.viewStatus{top:76px}@media(max-width:1100px){.viewStatus{top:115px}#explodeControls{top:155px}}

.hide-choices #quickStudies{display:none}

#bothSides{width:100%;margin-top:16px}#bothSidesHint{font-size:12px}.canvas-actions .model-actions{max-width:100%}#explodeControls label{flex-wrap:wrap;gap:4px}

.viewStatus{top:var(--status-top,76px)}#explodeControls{top:var(--separation-top,130px)}#selectedParts:empty{display:none}#selectedParts{font-size:12px;line-height:1.6;color:#ffc39a;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.exploded-label[aria-pressed=true]{border-color:#ff6600;background:#3b2315}

.label-leader{position:absolute;height:1px;background:#91a5b880;transform-origin:0 50%;pointer-events:none}.exploded-label{z-index:1}.exploded-label[aria-pressed=true]{border-color:#ff6600}

three-d-stage,#labels3d,#explodedLabels{touch-action:none;overscroll-behavior:contain}.zoom-controls{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px}.zoom-controls button{min-width:44px;min-height:44px;font-size:22px;touch-action:manipulation}.zoom-controls #zoomFit{font-size:12px}.zoom-controls output{font-size:12px;min-width:48px;text-align:center}.viewTools{pointer-events:none}.viewTools button,.viewTools select,.viewTools input{pointer-events:auto}.canvas-actions{pointer-events:none}.canvas-actions button{pointer-events:auto}

/* Peripheral controls leave the brain at the center. */
.viewTools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;background:linear-gradient(transparent,#080b0ee6 35%)}
.viewTools>.pills{grid-column:1;grid-row:1}.viewTools>.cut{grid-column:1;grid-row:2;margin-top:0}.viewTools>.zoom-controls{grid-column:2;grid-row:1 / span 2;margin:0;gap:5px;flex-wrap:wrap;max-width:180px}.viewTools>p{grid-column:1 / -1;margin:0;max-width:430px}
.focus-mode .viewTools{left:14px;right:auto;bottom:12px;transform:none;width:min(420px,calc(100% - 28px));padding:12px;background:#0d151cdb;border:1px solid var(--line);border-radius:14px;display:block}.focus-mode .viewTools .cut{margin-top:9px}.focus-mode .viewTools p{text-align:left;margin-top:9px}
.viewer>.zoom-controls{position:absolute;z-index:6;right:16px;top:var(--status-top,76px);margin:0;padding:6px;gap:5px;border:1px solid var(--line);border-radius:14px;background:#0d151ceb;pointer-events:auto}.viewer>.zoom-controls button{padding:6px;min-height:44px}.viewer>.zoom-controls output{min-width:42px}
@media(max-width:850px){.viewTools{grid-template-columns:minmax(0,1fr) auto;padding:10px}.viewTools>.zoom-controls{max-width:100px;gap:3px}.viewTools>.zoom-controls output{order:3}.viewTools>.zoom-controls #zoomFit{order:4}.focus-mode .viewTools{width:min(320px,calc(100% - 20px));left:10px;bottom:8px;padding:9px}.focus-mode .viewTools p{display:none}.viewer>.zoom-controls{right:10px;max-width:110px;flex-wrap:wrap}.viewer>.zoom-controls output{order:3}.viewer>.zoom-controls #zoomFit{order:4}.focus-mode .viewStatus{right:130px}}

/* Minimal controls on the black canvas. */
.focus-mode .viewTools{left:18px;bottom:14px;width:auto;max-width:calc(100% - 290px);padding:0;background:none;border:0;border-radius:0;box-shadow:none}.focus-mode .viewTools .pills{gap:4px}.focus-mode .viewTools .pills button,.focus-mode .viewTools .cut button,.focus-mode .viewTools .cut select{background:#10161bb3;border-color:#ffffff12;font-size:10px;padding:5px 7px;border-radius:7px;color:#bdc6cd}.focus-mode .viewTools .cut{margin-top:7px;gap:7px}.focus-mode .viewTools .cut label{font-size:10px;color:#8d9aa4}.focus-mode .viewTools p{display:none}
.viewer>.zoom-controls{top:auto;bottom:14px;right:18px;background:none;border:0;border-radius:0;padding:0;gap:5px}.viewer>.zoom-controls button{background:#10161bb3;border-color:#ffffff12;color:#bdc6cd;border-radius:7px;min-width:40px;min-height:40px}.viewer>.zoom-controls output{font-size:10px;color:#8d9aa4}.viewer>.zoom-controls #zoomFit{font-size:10px}
@media(max-width:850px){.focus-mode .viewTools{left:10px;bottom:10px;width:auto;max-width:calc(100% - 126px);padding:0}.focus-mode .viewTools .pills{gap:3px}.focus-mode .viewTools .pills button,.focus-mode .viewTools .cut button,.focus-mode .viewTools .cut select{font-size:9px;padding:5px}.focus-mode .viewTools .cut{gap:4px;flex-wrap:wrap}.viewer>.zoom-controls{top:auto;right:10px;bottom:10px;max-width:110px}.viewer>.zoom-controls button{min-width:44px;min-height:44px}.focus-mode .viewStatus{right:20px}}

.quick-opacity{display:none}.focus-mode .quick-opacity{display:block;width:145px;margin-right:12px;pointer-events:auto}.quick-opacity label{display:flex;justify-content:space-between;gap:8px;color:#a8b4bd;font-size:10px;white-space:nowrap}.quick-opacity input{display:block;width:100%;height:22px;margin:1px 0 0;accent-color:#ff6600;touch-action:none}.quick-opacity output{min-width:0!important;font-size:10px!important}.viewer>.zoom-controls{align-items:center}
@media(max-width:850px){.focus-mode .quick-opacity{width:110px;margin:0 0 4px;flex:0 0 100%;order:-1}.quick-opacity label{font-size:9px}.quick-opacity input{height:28px}}

.floating-reading .reading{top:var(--reading-top,90px);bottom:var(--reading-bottom,120px);min-height:0;overflow:auto;overscroll-behavior:contain}.floating-reading .reading .panel-heading{top:-18px}.floating-reading .reading{scrollbar-gutter:stable}
@media(max-width:850px){.floating-reading .reading{top:var(--reading-top,120px);bottom:var(--reading-bottom,170px);width:min(310px,calc(100% - 20px))}}

/* Purple tour is visually separate from orange anatomy actions. */
#tourHighlight{border-color:#c4a2ff;box-shadow:0 0 0 4px #a970ff40,0 0 22px #a970ff55;background:#a970ff0c}#usageTour{background:#191322;border-color:#a970ff;box-shadow:0 8px 32px #0009}.tourTop span{color:#d5bcff}#usageTour .accent{background:#c4a2ff;border-color:#c4a2ff;color:#20112e}#usageTour button:focus-visible{outline-color:#d5bcff}
@media(max-width:850px){
 header button{min-height:40px}header #tourBtn{min-height:44px}
 .canvas-actions{display:flex;flex-direction:column;flex-wrap:nowrap;gap:6px;right:10px;left:10px}.canvas-actions>.panel-toggles,.canvas-actions>.model-actions{width:100%;max-width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;justify-content:flex-start;pointer-events:auto}.canvas-actions button{min-height:44px;flex-shrink:0;font-size:11px;padding:7px 10px}.mode-switch{flex-shrink:0}.canvas-actions .mode-switch button{min-height:38px}
 .focus-mode .viewTools{max-width:calc(100% - 140px)}.focus-mode .viewTools .pills{flex-wrap:nowrap;overflow-x:auto;pointer-events:auto;scrollbar-width:thin}.focus-mode .viewTools .pills button{min-height:44px;flex-shrink:0;font-size:10px}.focus-mode .viewTools .cut button,.focus-mode .viewTools .cut select{min-height:44px;font-size:10px}.focus-mode .viewTools .cut label{display:none}.viewer>.zoom-controls{max-width:120px}.focus-mode .quick-opacity{width:120px}.quick-opacity input{min-height:36px}
 .floating-reading .reading{z-index:9;right:10px;top:var(--reading-top);bottom:var(--reading-bottom);width:calc(100% - 20px);padding:12px}.panel-heading button{min-width:44px;min-height:44px}.floating-reading .reading .panel-heading{top:-12px;padding:0}.reading h1{font-size:20px}
 body.tour-open{grid-template-rows:auto minmax(0,1fr) auto auto}body.tour-open>header{grid-row:1}body.tour-open>main{grid-row:2}body.tour-open>.site-footer{grid-row:4}body.tour-open>#usageTour{position:relative;grid-row:3;left:auto!important;top:auto!important;width:auto!important;margin:6px 10px;max-height:30dvh;padding:10px 12px;z-index:40}#usageTour button{min-height:44px}.tourActions{position:sticky;bottom:-10px;background:#191322;padding:6px 0;margin-top:5px}#usageTour h2{font-size:15px}#usageTour p{font-size:12px;line-height:1.45}.tourHint{display:none}body.tour-open #tourHighlight{box-shadow:0 0 0 4px #a970ff40,0 0 18px #a970ff66}
}


#tourHighlight{background:transparent}

/* Guided tour entry shares the purple accent of the tour itself. */
header #tourBtn{background:#c4a2ff;border-color:#c4a2ff;color:#20112e;box-shadow:0 0 0 1px #c4a2ff18,0 3px 14px #a970ff22}header #tourBtn:hover{background:#d5bcff;border-color:#d5bcff}header #tourBtn:focus-visible{outline:2px solid #e6d6ff;outline-offset:4px}

#consultorScope{display:block;width:100%;min-height:44px;margin:8px 0 16px;border:1px solid #69727a;border-radius:8px;background:#080b0e;color:var(--text);font:inherit;padding:10px;box-sizing:border-box}#consultorQuestion{box-sizing:border-box}#consultorClose{width:44px;height:44px}#consultor .consultorSuggestions button{min-height:44px;white-space:normal}#consultor .consultorAnswer summary{min-height:44px;display:flex;align-items:center}#consultor .consultorAnswer p{white-space:pre-line;overflow-wrap:anywhere}#consultor .consultorAnswer a{overflow-wrap:anywhere}#consultor .consultorKind{color:#c9addf;font-size:12px}#consultor .consultorAnswer button{min-height:44px;white-space:normal;max-width:100%}

#consultorForm button{min-height:44px}
