[data-interactive="end-mill-anatomy"]{min-width:0;margin-block:1rem}.ema-live{font:1rem/1.45 var(--f-body)}.ema-work{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(15rem,.7fr);gap:1rem;align-items:start}.ema-stage,.ema-controls{min-width:0}.ema-canvas{height:32rem;max-height:65vh;background:var(--surface-2);border:1px solid var(--rule);border-radius:var(--radius-xs);overflow:hidden}.ema-webgl{display:block;width:100%;height:100%;touch-action:none}.ema-status{min-height:2.8em;margin:.45rem 0;color:var(--ink-soft)}.ema-controls label{display:block;font-weight:700}.ema-controls :is(select,button){width:100%;min-height:44px;margin:.2rem 0 .75rem;padding:.45rem .6rem;color:var(--ink);background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius-xs);font:inherit}.ema-controls :is(select,button):focus-visible,.ema-webgl:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.ema-actions{display:flex;flex-wrap:wrap;gap:.4rem}.ema-actions button{width:auto;flex:1 1 5rem}.ema-side{width:100%;height:auto;display:block;background:var(--paper);border:1px solid var(--rule);margin-block:.8rem}.ema-side text{fill:var(--ink);font:18px var(--f-display)}.ema-side .ema-small{font-size:15px}.ema-holder{fill:var(--surface-2);stroke:var(--ink);stroke-width:2}.ema-shank{fill:var(--surface);stroke:var(--ink);stroke-width:2}.ema-neck{fill:var(--surface-2);stroke:var(--ink);stroke-width:2}.ema-cut{fill:var(--paper);stroke:var(--ink);stroke-width:2}.ema-flute{fill:none;stroke:var(--accent);stroke-width:8}.ema-face{stroke:var(--flag);stroke-width:3}.ema-dim path{stroke:var(--ink);stroke-width:1.5;fill:none}.ema-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;margin-block:.7rem}.ema-readout span{padding:.5rem;border:1px solid var(--rule);background:var(--surface)}.ema-limit{padding:.65rem;background:var(--surface-2)}.ema-static-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.ema-static-grid>figure{margin:0;min-width:0}.ema-static-grid .ema-side{font-size:.85rem}@media(max-width:58rem){.ema-work,.ema-static-grid{grid-template-columns:1fr}.ema-canvas{height:25rem}}@media(max-width:34rem){.ema-readout{grid-template-columns:1fr 1fr}.ema-canvas{height:22rem}.xcard:has([data-interactive="end-mill-anatomy"]) .body{padding-inline:.5rem}}@media(prefers-reduced-motion:reduce){[data-interactive="end-mill-anatomy"] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{.ema-live{display:none!important}.ema-static-grid{grid-template-columns:1fr}.ema-static-grid>figure{break-inside:auto}.ema-side{break-inside:avoid;max-height:5.8in}.ema-readout{break-inside:avoid}}
.ema-live-ready>.ema-static{display:none}.ema-side :is(rect,path).is-highlight,.ema-dim.is-highlight path{stroke:var(--flag);stroke-width:4}.ema-dim.is-highlight text{fill:var(--flag);font-weight:700}.ema-readout .is-highlight{border-color:var(--flag);box-shadow:inset 4px 0 var(--flag)}
@media print{.xcard:has([data-interactive="end-mill-anatomy"]){break-before:page;page-break-before:always;break-inside:auto!important}[data-interactive="end-mill-anatomy"]{break-inside:auto!important}.ema-live-ready>.ema-static{display:block!important}.ema-static-grid{display:block}.ema-static-grid h3,.ema-static-grid h4{break-after:avoid}.ema-static-demo{break-inside:avoid;page-break-inside:avoid}.ema-static-demo .ema-side{max-height:3.5in}.ema-static-demo .ema-readout{grid-template-columns:repeat(4,minmax(0,1fr));font-size:.8rem}}

.ema-atlas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ema-atlas figure{margin:0;min-width:0}.ema-atlas img{object-fit:contain;max-height:28rem}.ema-definitions dt{font-weight:700;margin-top:.7rem}.ema-definitions dd{margin:.2rem 0 0}.ema-controls .ema-mount{display:flex;align-items:center;gap:.5rem;margin-top:.8rem}.ema-controls input[type="checkbox"]{width:1.2rem;height:1.2rem;flex:none}.ema-controls [data-ema-description]{min-height:4.5em}@media(max-width:48rem){.ema-atlas{grid-template-columns:1fr}.ema-atlas img{max-height:28rem}}@media print{.ema-atlas{display:block}.ema-atlas figure{break-inside:avoid}.ema-atlas img{max-height:5in}.ema-definitions dt{break-after:avoid}}

@media print{.ema-static-grid figure img{display:block;width:auto;max-width:100%;max-height:4in;object-fit:contain;margin-inline:auto}.ema-static-grid figure:has(img){break-inside:avoid;page-break-inside:avoid}.ema-static>p:first-child{break-after:avoid;page-break-after:avoid}}
