/* HARLI's self-contained, local 3D anatomy viewer. */
.anatomy-viewer{margin:38px 0 0;font-family:var(--f-display,sans-serif);color:#233d37}
.anatomy-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid #d9ded5;border-radius:7px;overflow:hidden;background:#f4f4ed}
.anatomy-stage{position:relative;isolation:isolate;min-width:0;min-height:540px;overflow:hidden;background:#09151a;color:#e4eee7}
.anatomy-stage canvas,.anatomy-fallback{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain}
.anatomy-stage canvas{touch-action:pan-y;cursor:grab;outline-offset:-5px}
.anatomy-stage canvas:active{cursor:grabbing}
.anatomy-stage canvas:focus-visible{outline:3px solid #b9e8c9}
.anatomy-stage canvas.is-touch-active{touch-action:none}
.anatomy-stage [hidden],.anatomy-viewer [hidden]{display:none!important}
.anatomy-stage-heading{position:absolute;z-index:1;inset:22px 24px auto;display:flex;align-items:center;gap:9px;pointer-events:none;font-size:10px;font-weight:500;letter-spacing:.035em}
.anatomy-stage-heading>span:last-child{margin-left:auto;font:9px var(--f-mono,monospace);color:#a8bdb3;letter-spacing:.04em}
.anatomy-status-dot{display:block;width:5px;height:5px;border-radius:50%;background:#b6c1ba}
.anatomy-viewer[data-state=ready] .anatomy-status-dot{background:#a8e1bc;box-shadow:0 0 0 4px #a8e1bc10}
.anatomy-loading{position:absolute;z-index:2;left:18px;right:18px;bottom:18px;padding:11px 16px;background:#09151aee;border:1px solid #b7cbc52a;border-radius:4px;text-align:center}
.anatomy-loading p{font-size:11px;line-height:1.6;margin:0;color:#d2ded6}
.anatomy-loading button{margin-top:9px;min-height:40px;padding:5px 14px;background:#a8e1bc;color:#173d34;border:0;border-radius:3px;cursor:pointer;font-size:11px}
.anatomy-stage-footer{position:absolute;z-index:2;bottom:19px;left:24px;right:24px;display:flex;align-items:center;gap:12px;pointer-events:none}
.anatomy-stage-footer p{font-size:10px;color:#bfcec5;margin:0;line-height:1.5;text-shadow:0 1px 5px #09151a}
.anatomy-zoom{display:flex;gap:7px;margin-left:auto;pointer-events:auto}
.anatomy-zoom button{display:grid;place-items:center;width:40px;min-height:40px;font-size:22px;font-weight:300;line-height:1;color:#e4eee7;background:#16342dcc;border:1px solid #9ab6aa50;border-radius:3px;cursor:pointer}
.anatomy-zoom button:hover{background:#284e41}
.anatomy-mobile-help{display:none}
.anatomy-stage-footer #anatomy-touch{display:none;pointer-events:auto;min-height:42px;padding:7px 11px;background:#16342de8;border:1px solid #9ab6aa70;border-radius:3px;color:#d8e9df;font-size:10px;cursor:pointer}
.anatomy-panel{padding:26px 25px 21px;min-width:0}
.anatomy-overline{font:9px var(--f-mono,monospace);letter-spacing:.10em;text-transform:uppercase;color:#58685f}
.anatomy-panel h3{font-size:23px;line-height:1.2;font-weight:500;letter-spacing:-.035em;margin:12px 0 12px;max-width:17ch}
.anatomy-panel-heading>p{font-size:11px;line-height:1.8;margin:0 0 22px;color:#596c60}
.anatomy-settings{padding:0;margin:0;border:0;min-width:0;transition:opacity .15s}
.anatomy-settings:disabled{opacity:.5}
.anatomy-presets{display:flex;gap:5px;padding:4px;background:#e7ebe2;border-radius:4px;margin-bottom:17px}
.anatomy-presets button{flex:1;min-height:36px;border:1px solid transparent;border-radius:3px;background:transparent;color:#425c4e;font-size:11px;cursor:pointer}
.anatomy-presets button[aria-pressed=true]{border-color:#d2dacd;background:#fffef9;color:#173e33;box-shadow:0 1px 3px #163e3608}
.anatomy-presets button:hover{background:#ffffffa8}
.anatomy-layers{border-top:1px solid #d9dfd2;border-bottom:1px solid #d9dfd2;padding:9px 0}
.anatomy-layers label{display:flex;align-items:center;gap:10px;min-height:36px;font-size:11px;cursor:pointer}
.anatomy-layers input,.anatomy-panel-bottom input{width:15px;height:15px;margin:0;accent-color:#245345;cursor:pointer;flex:none}
.anatomy-swatch{width:8px;height:8px;display:inline-block;border-radius:50%;box-shadow:inset 0 0 0 1px #233d372b}
.anatomy-swatch-liver{background:#eceef5}.anatomy-swatch-tumour{background:#ffc828}.anatomy-swatch-tumor2{background:#ffaa3c}.anatomy-swatch-vena{background:#4678ff}
.anatomy-transparency{padding:18px 0 14px}
.anatomy-transparency>label{display:flex;justify-content:space-between;font-size:11px;align-items:baseline}
.anatomy-transparency output{font:10px var(--f-mono,monospace);color:#596c60}
.anatomy-transparency input{display:block;width:100%;height:24px;margin:10px 0 2px;padding:0;cursor:ew-resize;accent-color:#245345;background:transparent}
.anatomy-transparency input::-webkit-slider-runnable-track{height:3px;background:#c2cfc0;border-radius:2px}
.anatomy-transparency input::-webkit-slider-thumb{margin-top:-6px;width:15px;height:15px;background:#245345;border:2px solid #f4f4ed;border-radius:50%;box-shadow:0 0 0 1px #245345}
.anatomy-transparency input::-moz-range-track{height:3px;background:#c2cfc0;border-radius:2px}
.anatomy-transparency input::-moz-range-thumb{width:12px;height:12px;background:#245345;border:2px solid #f4f4ed;border-radius:50%;box-shadow:0 0 0 1px #245345}
.anatomy-transparency>div{display:flex;justify-content:space-between;font-size:9px;color:#58685f}
.anatomy-panel-bottom{display:flex;align-items:center;justify-content:space-between;padding:11px 0 0;border-top:1px solid #d9dfd2;gap:8px}
.anatomy-panel-bottom label{display:flex;align-items:center;gap:7px;font-size:10px;cursor:pointer}
.anatomy-panel-bottom button{min-height:36px;font-size:10px;color:#254d3d;background:transparent;border:0;padding:4px 0 4px 9px;cursor:pointer}
.anatomy-panel-bottom button span{font-size:17px;padding-left:7px}
.anatomy-keyboard{margin-top:14px;color:#58685f}
.anatomy-keyboard summary{font-size:10px;cursor:pointer;width:fit-content}
.anatomy-keyboard p{font-size:10px;line-height:1.75;margin:8px 0 0}
.anatomy-caption{font-size:10px;color:#58685f;line-height:1.75;padding-top:14px;max-width:105ch}
.anatomy-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.anatomy-viewer button:disabled{cursor:default}
.anatomy-has-touch .anatomy-stage-footer #anatomy-touch{display:block}
.anatomy-has-touch .anatomy-desktop-help{display:none}
.anatomy-has-touch .anatomy-mobile-help{display:inline}
.anatomy-has-touch .anatomy-stage-footer{flex-wrap:wrap;gap:8px}
.anatomy-has-touch .anatomy-stage-footer>p{width:100%}
@media(max-width:900px){
  .anatomy-workspace{grid-template-columns:minmax(0,1fr) 265px}
  .anatomy-panel{padding:25px 20px 20px}
  .anatomy-stage{min-height:540px}
  .anatomy-stage-heading{inset:20px 20px auto}
  .anatomy-stage-footer{left:20px;right:20px}
}
@media(max-width:700px){
  .anatomy-workspace{grid-template-columns:1fr}
  .anatomy-stage{min-height:0;height:390px}
  .anatomy-panel{padding:23px}
  .anatomy-panel h3{font-size:24px;max-width:none}
  .anatomy-panel-heading>p{max-width:50ch;margin-bottom:18px}
  .anatomy-layers{display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
  .anatomy-presets button{min-height:40px}
  .anatomy-panel-bottom{padding-top:12px}
  .anatomy-panel-bottom label,.anatomy-panel-bottom button{font-size:11px}
  .anatomy-keyboard{margin-top:12px}
}
@media(max-width:380px){.anatomy-stage{height:350px}.anatomy-panel{padding:20px}.anatomy-stage-heading{font-size:9px}}
