.sim-section { padding-top: clamp(54px, 6.5vw, 105px); background: var(--ivory); }
.sim-feature { position: relative; isolation: isolate; display: grid; grid-template-columns: .92fr 1.2fr; align-items: stretch; overflow: hidden; border-radius: 24px; background: #0b2137; color: var(--ivory); border: 1px solid #203a50; }
.sim-feature-copy { align-self: center; padding: clamp(30px, 4.1vw, 68px); }
.sim-feature h2 { margin-block: 17px 15px; font-size: clamp(53px, 5.25vw, 82px); }
.sim-feature h2 em { color: #e5cca1; }
.sim-feature-copy > p:not(.eyebrow) { max-width: 37ch; color: #d9e2e8; font-size: 15px; line-height: 1.7; }
.sim-feature .launch-sim { margin-top: 25px; gap: 12px; border: 0; cursor: pointer; }
.launch-sim { display: none; }
.enhanced .launch-sim { display: inline-flex; }
.play-icon { display: inline-block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.sim-note { display: block; margin-top: 12px; color: #c2cdd6; font-size: 11px; }
.sim-cover { overflow: hidden; min-width: 0; position: relative; background: #0b1c2c; }
.sim-cover img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
#view-anatomy .chapter-image img { object-position: 50% 5%; }
button { color: inherit; }
body.sim-open { overflow: hidden; }
.sim-dialog { width: min(1050px, calc(100% - 36px)); max-height: min(91dvh, 850px); padding: 0; overflow-y: auto; margin: auto; border: 1px solid #556574; border-radius: 21px; color: var(--ivory); background: #0c2136; box-shadow: 0 20px 100px #0006; overscroll-behavior: contain; }
.sim-dialog::backdrop { background: rgba(3,12,22,.76); backdrop-filter: blur(4px); }
.sim-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 24px; border-bottom: 1px solid #394c60; }
.sim-dialog-head p, .exercise-count { color: #e0c99b; font-size: 10px; line-height: 1.5; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.sim-dialog-head h2 { font-size: 34px; letter-spacing: -.025em; margin-top: 2px; }
.sim-close { cursor: pointer; border: 1px solid #71808b; border-radius: 50%; background: transparent; width: 42px; height: 42px; color: var(--ivory); line-height: 1; font-size: 29px; }
.sim-close:hover, .scope-tools button:hover, .landmarks button:hover { background: #2a4055; }
.sim-desk { display: grid; grid-template-columns: minmax(0,1.72fr) minmax(0,1fr); }
.scope-column { min-width: 0; padding: 19px; }
.scope-view { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: clamp(330px, 47vh, 455px); border-radius: 11px; border: 1px solid #495968; background: radial-gradient(ellipse at 48% 50%,#2b4152 0%,#142b3c 53%,#091a29 92%); }
.scope-view::before { content:''; position:absolute; pointer-events:none; inset:0; z-index:1; background: radial-gradient(circle at center,transparent 0,transparent 49%,rgba(0,0,0,.1) 74%,rgba(0,0,0,.2) 100%); }
.scope-view.aim-view::before { background: radial-gradient(circle closest-side at center,transparent 63%,rgba(3,12,21,.08) 82%,rgba(3,12,21,.68) 126%,rgba(3,12,21,.90) 165%); }
#scope-render { position: absolute; inset: 0; touch-action: none; cursor: grab; }
#scope-render:active { cursor: grabbing; }
#scope-render canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.scope-label { position: absolute; z-index:2; top: 12px; left: 14px; pointer-events:none; color: #e2dac6; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.scope-help { margin: 10px 2px 0; font-size: 12px; line-height: 1.5; color:#bfceda; }
.reticle, .target-ring { position:absolute; z-index:2; pointer-events:none; transform: translate(-50%, -50%); }
.reticle { left:50%; top:50%; width:36px; height:36px; }
.reticle::before, .reticle::after { content:''; position:absolute; background:#eff8fa; box-shadow: 0 0 1px #06111d; }
.reticle::before { width:36px; height:1px; left:0; top:50%; }
.reticle::after { width:1px; height:36px; top:0; left:50%; }
.target-ring { width:28px; height:28px; border:2px dashed #ffe3a3; border-radius:50%; box-shadow: 0 0 0 1px #3c301b; }
.scope-view.aligned .target-ring { border: 2px solid #a7e5c6; }
.scope-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.direction-tools, .zoom-tools { display: flex; border:1px solid #516375; border-radius:7px; overflow:hidden; }
.scope-tools button { min-width: 40px; min-height: 40px; color:#f5f2e9; background:transparent; border:0; cursor:pointer; line-height:1; }
.scope-tools button + button { border-left:1px solid #43566a; }
.scope-tools button:focus-visible { outline-offset:-3px; }
.scope-tools .reset-view { padding-inline:7px; color:#e6d5b4; text-decoration:underline; text-underline-offset:3px; font-size:12px; }
.sim-panel { padding: clamp(23px, 2.5vw, 35px); background: #122b43; display:flex; flex-direction:column; align-items:flex-start; }
.exercise-progress { display:flex; gap:5px; width:100%; margin:9px 0 22px; }
.exercise-progress i { flex:1; height:2px; background:#465a6e; }
.exercise-progress i.filled { background:#d6bc84; }
.sim-panel h3 { margin:0 0 12px; font-size:clamp(31px, 3.1vw, 42px); line-height:1; letter-spacing:-.03em; }
.sim-panel h3:focus { outline:0; }
#exercise-instruction, .sim-feedback { color:#d6e0e7; font-size:14px; line-height:1.6; }
.sim-feedback { margin-top:12px; color:#f3d5a4; }
.sim-feedback:empty { margin:0; }
.sim-feedback.correct { color:#bfe2cc; }
.landmarks { align-self:stretch; margin-top:17px; font-size:13px; }
.landmarks summary { min-height:42px; display:list-item; padding-block:9px; cursor:pointer; color:#eadbbb; }
.landmarks div { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:8px; }
.landmarks button { border:1px solid #71808e; border-radius:6px; color:#f2eee4; background:transparent; padding:6px 10px; min-height:39px; cursor:pointer; font-size:12px; }
.sim-panel .button { border:0; cursor:pointer; margin-top:12px; }
.sim-text-button { min-height:42px; border:0; background:transparent; color:#ead6ac; padding:7px 0; cursor:pointer; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.aim-actions, .sim-complete-actions { display:flex; flex-wrap:wrap; gap:5px 18px; align-items:baseline; }
.model-note { align-self:stretch; padding-top:18px; margin-top:auto; color:#bac9d5; font-size:10.5px; line-height:1.5; }
@media (max-width:800px) {
  .sim-section { padding-top:52px; }
  .sim-feature { grid-template-columns: .95fr 1fr; }
  .sim-feature-copy { padding:29px; }
  .sim-desk { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); }
  .scope-column { padding:12px; }
  .sim-panel { padding:20px; }
  .scope-tools { gap:5px; }
  .scope-tools button { min-width:34px; }
}
@media (max-width:680px) {
  .sim-feature { grid-template-columns:1fr; border-radius:16px; }
  .sim-cover { grid-row:1; aspect-ratio:1.72; }
  .sim-feature-copy { padding:26px 22px; }
  .sim-feature h2 { font-size:52px; margin-block:13px 10px; }
  .sim-feature .launch-sim { margin-top:18px; }
  .sim-dialog { width:calc(100% - 16px); max-height:94dvh; border-radius:14px; }
  .sim-dialog-head { padding:11px 15px; position:sticky; top:0; background:#0c2136; z-index:4; }
  .sim-dialog-head h2 { font-size:27px; }
  .sim-desk { display:flex; flex-direction:column; }
  .scope-column { padding:10px 12px 12px; }
  .scope-view { height:clamp(217px, 34dvh, 320px); }
  .scope-tools { gap:5px; margin-top:7px; }
  .scope-tools button { min-width:36px; min-height:39px; }
  .scope-help { margin-top:6px; font-size:11px; }
  .sim-panel { padding:17px; }
  .exercise-progress { margin:6px 0 12px; }
  .sim-panel h3 { font-size:31px; margin-bottom:7px; }
  .landmarks { margin-top:9px; }
  .model-note { padding-top:15px; }
}
@media (max-width:360px) { .scope-tools button { min-width:29px; } }
@media print { .sim-dialog, .launch-sim {display:none !important;} }

.sim-cover { background:#0c1820; }
.sim-cover img { object-fit:contain; }
.sim-cover figcaption { position:absolute; inset:auto 0 0; display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:26px 18px 12px; background:linear-gradient(transparent,#08141ef0); font-size:13px; color:#e3ded2; }
.sim-cover figcaption span, .scope-heading { font-size:10px; letter-spacing:.11em; text-transform:uppercase; color:#ccc6b6; }
.sim-dialog { background:#102234; }
.sim-dialog-head { background:#102234; }
.sim-panel { background:#172c40; }
.scope-view { background:radial-gradient(ellipse at 43% 46%,#202d31 0,#162329 46%,#0b161c 78%,#071119 100%); border-color:#465156; }
.scope-view.aim-view { background:radial-gradient(ellipse at 48% 48%,#2c3233 0,#222a2b 36%,#101c22 74%,#091118 100%); }
.scope-view.aim-view::before { background:radial-gradient(ellipse at center,transparent 34%,#100d0c0a 56%,#080c1166 83%,#060b11e0 105%); }
.scope-label, .scope-heading { position:absolute; z-index:2; top:13px; pointer-events:none; text-shadow:0 1px 3px #000; }
.scope-heading { right:14px; font-size:9px; }
.scope-label { color:#e6dfcf; }
.reticle { width:33px; height:33px; border-radius:50%; background:radial-gradient(circle,#f1ece1 1px,transparent 1.5px); filter:drop-shadow(0 1px 1px #171b1e); }
.reticle::before { width:33px; background:linear-gradient(to right,#ecefe9 27%,transparent 27% 73%,#ecefe9 73%); }
.reticle::after { height:33px; background:linear-gradient(to bottom,#ecefe9 27%,transparent 27% 73%,#ecefe9 73%); }
.reticle::before, .reticle::after { box-shadow:none; }
.target-ring { width:26px; height:26px; border:2px solid #f6dda3; box-shadow:0 0 0 1px #352c22,0 0 0 1px #50402c inset; }
.atlas-controls { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }
.angle-presets { display:inline-flex; padding:2px; border:1px solid #4b5b64; border-radius:8px; }
.atlas-controls button { border:0; background:transparent; color:#cdd7dc; font:500 12px/1.1 var(--sans,Inter,sans-serif); min-height:37px; padding:6px 13px; cursor:pointer; border-radius:5px; }
.angle-presets button[aria-pressed="true"] { color:#f4e5c8; background:#34454c; box-shadow:0 0 0 1px #647070 inset; }
.atlas-controls button:hover { background:#30424d; }
.atlas-controls { flex-wrap:wrap; }
.atlas-layers { display:flex; align-items:center; }
.atlas-layers button { display:inline-flex; align-items:center; gap:6px; padding-inline:6px; }
.structure-label { position:absolute; z-index:2; bottom:13px; left:13px; padding:4px 9px; border-radius:4px; color:#f0e8d3; background:#0d1822e6; border:1px solid #55616a; font-size:12px; pointer-events:none; }
.inspect-controls { display:flex; align-items:center; flex-wrap:wrap; gap:4px 9px; margin:8px 0; font-size:12px; color:#d9d6c9; }
.inspect-controls select { min-width:0; max-width:100%; min-height:36px; padding:3px 5px; border:1px solid #596975; border-radius:5px; font:inherit; background:#172b3b; color:#f0eadc; }
.sim-cover figcaption a { text-decoration:underline; text-underline-offset:2px; }
.layer-check { display:inline-grid; place-content:center; width:13px; height:13px; border-radius:3px; border:1px solid #85939a; }
.atlas-layers [aria-pressed="true"] .layer-check { background:#d6c293; border-color:#d6c293; }
.atlas-layers [aria-pressed="true"] .layer-check::after { content:''; width:7px; height:4px; border-left:1.5px solid #172831; border-bottom:1.5px solid #172831; transform:translateY(-1px) rotate(-45deg); }
.atlas-credit { margin-top:5px; }
.atlas-credit summary { cursor:pointer; width:fit-content; padding-block:4px; color:#ddcba7; }
.atlas-credit a { text-decoration:underline; text-underline-offset:2px; }
@media(max-width:680px) {
  .atlas-controls { margin-top:7px; }
  .atlas-controls button { min-height:34px; }
  .sim-cover { aspect-ratio:1.68; }
  .sim-cover figcaption { padding:14px 13px 8px; font-size:11px; }
  .sim-cover figcaption span { font-size:8px; }
}
