.oi-workbench {
  --oi-frame: #293537;
  --oi-muted: #b0bdb9;
  --oi-light: #f6f4ec;
  --oi-accent: #ffa36c;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 22%, 318px);
  width: 100%;
  height: clamp(470px, 41vw, 520px);
  color: var(--oi-light);
  background: #131a1b;
  border-block: 1px solid var(--oi-frame);
  font-family: inherit;
}
.oi-workbench *, .oi-workbench *::before, .oi-workbench *::after { box-sizing: border-box; }
.oi-viewer { position: relative; min-width: 0; min-height: 0; isolation: isolate; background: #121919; }
.oi-viewport, .oi-frame, .oi-layer, .oi-photo, .oi-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.oi-viewport { overflow: hidden; background: #111716; }
.oi-frame { isolation: isolate; overflow: hidden; }
.oi-frame.oi-arriving { z-index: 2; }
.oi-frame.oi-leaving { z-index: 1; pointer-events: none; }
.oi-layer { transform: scale(1); }
.oi-layer.oi-zoomed { transform: scale(1.42); }
.oi-photo { display: block; object-fit: cover; object-position: center; user-select: none; }
.oi-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #09111165, transparent 17%, transparent 88%, #0911112b);
}
.oi-marks { overflow: hidden; pointer-events: none; }
.oi-marks path, .oi-marks circle, .oi-marks ellipse {
  fill: none; stroke: #ffac72; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px #281807);
}
.oi-marks .oi-rim { stroke-width: 1.5; stroke-dasharray: 5 3; }
.oi-marks .oi-caliper, .oi-marks .oi-scratch { stroke-width: 1.65; }
.oi-marks .oi-scratch { stroke-dasharray: 6 4; }
.oi-marks .oi-outline { fill: #f5934112; stroke-width: 1.6; }
.oi-marks .oi-stop { fill: #202421; stroke-width: 1.5; }
.oi-marks .oi-burr-edge { stroke-width: 1.7; stroke-dasharray: 7 3; }
.oi-marks .oi-reference-edge { stroke: #bde5e0; stroke-width: 1.25; stroke-dasharray: 3 5; }
.oi-marks .oi-pore { stroke-width: 1.4; }
.oi-marks .oi-sample-band { stroke: #c6e8e3; stroke-width: 1.4; }
.oi-marks .oi-crest { stroke-width: 1.5; stroke-dasharray: 4 4; }
.oi-feature-label {
  position: absolute; transform: translate(-50%, -50%); padding: 4px 8px;
  color: #ffe0c2; background: #1c2321f0; border: 1px solid #ca8858;
  white-space: nowrap; font: 600 clamp(11px,.88vw,14px)/1.3 var(--mono, Consolas, monospace);
  pointer-events: none;
}
.oi-unmarked .oi-marks, .oi-unmarked .oi-feature-label { visibility: hidden; }
.oi-hotspot {
  position: absolute; display: grid; place-items: center; transform: translate(-50%,-50%);
  width: 44px; height: 44px; padding: 0; border: 0; background: none;
}
.oi-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.oi-leaders line { stroke: #ffbe8e; stroke-width: 1.2; filter: drop-shadow(0 1px 1px #1c1c16); }
.oi-leaders circle { fill: #ffbe8e; stroke: #402d1c; stroke-width: .65; }
.oi-hotspot span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #ffc39a; background: #262b26de; color: #ffe5cd;
  font: 650 12px/1 var(--mono, Consolas, monospace); box-shadow: 0 1px 5px #0008;
}
.oi-hotspot:hover span, .oi-hotspot:focus-visible span { background: #f7ad78; color: #201d16; }
.oi-hud, .oi-toolbar { position: absolute; z-index: 5; top: 14px; }
.oi-hud {
  left: 16px; padding: 5px 9px; color: #f0f3e9; background: #14201edb;
  border-left: 2px solid #e49a62; font-size: 12px; line-height: 1.4; letter-spacing: .06em;
  pointer-events: none;
}
.oi-toolbar { right: 14px; display: flex; align-items: center; gap: 5px; }
.oi-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 36px; padding: 0 10px; border: 1px solid #7a8885b0; border-radius: 2px;
  background: #15201fe8; color: #eff3ec;
  font-family: inherit; font-size: 12px; line-height: 1.3; font-weight: 550;
}
.oi-tool[hidden] { display:none; }
.oi-tool:hover, .oi-tool[aria-pressed="true"] { border-color: #f9ac78; color: #ffcca4; }
.oi-tool-sign { font: 16px/1 var(--mono, Consolas, monospace); }
.oi-locator {
  position: absolute; z-index: 4; right: 14px; bottom: 13px;
  width: clamp(84px,9vw,125px); aspect-ratio: 3 / 2;
  padding: 0; border: 1px solid #9ba9a3; border-radius: 1px; background: #131a19;
  box-shadow: 0 1px 8px #0005; cursor: zoom-out;
}
.oi-locator[hidden] { display: none; }
.oi-locator-photo { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .77; }
.oi-locator-box {
  position: absolute; width: 27%; height: 30%; transform: translate(-50%,-50%);
  border: 1px solid #ffc08e; box-shadow: 0 0 0 1px #3023198f;
}
.oi-locator-box::before, .oi-locator-box::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #ffd9b6;
}
.oi-locator-box::before { width: 7px; height: 1px; }
.oi-locator-box::after { width: 1px; height: 7px; }
.oi-locator.oi-tight .oi-locator-box { width: 19%; height: 21%; }
.oi-samples {
  position: absolute; z-index: 4; left: 14px; bottom: 13px; display: flex;
  padding: 3px; border: 1px solid #929b94; background: #111b19ee;
}
.oi-samples[hidden] { display: none; }
.oi-sample {
  min-height: 38px; padding: 0 12px; border: 0; font-size: 13px;
  background: transparent; color: #e5eae4; cursor: pointer;
}
.oi-sample[aria-pressed=true] { color: #261c14; background: #ffb57d; font-weight: 650; }
.oi-sample:hover:not([aria-pressed=true]) { background: #30403c; }
.oi-controls {
  display: flex; flex-direction: column; min-width: 0; padding: clamp(13px, 1.35vw, 20px);
  border-left: 1px solid var(--oi-frame); background: #172021;
}
.oi-heading { margin: 0 0 9px; color: #d2dcd8; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: .05em; }
.oi-choices { display: grid; }
.oi-choice {
  display: grid; grid-template-columns: clamp(38px,3.6vw,54px) 1fr auto; align-items: center; gap: 11px;
  width: 100%; min-height: 45px; padding: 4px 6px 4px 0;
  border: 0; border-block-start: 1px solid #35413f; border-radius: 0;
  background: none; color: #dbe3de; text-align: left; font: inherit;
}
.oi-choice:last-child { border-block-end: 1px solid #35413f; }
.oi-thumb { display: block; width: 100%; height: 31px; object-fit: cover; border: 1px solid #52635d; }
.oi-choice-name { font-size: clamp(13px,1.05vw,16px); font-weight: 580; line-height: 1.4; }
.oi-choice-arrow { color: #8f9f98; font-size: 15px; line-height: 1; }
.oi-choice:hover .oi-choice-name, .oi-choice[aria-pressed=true] .oi-choice-name, .oi-choice[aria-pressed=true] .oi-choice-arrow { color: var(--oi-accent); }
.oi-choice[aria-pressed=true] .oi-thumb { border-color: var(--oi-accent); }
.oi-note { margin: 12px 0 0; font-size: 13px; line-height: 1.7; color: #c9d5cf; }
.oi-legend { display: block; margin-top: auto; padding-top: 12px; color: #a6b5b0; font-size: 11px; line-height: 1.5; }
.oi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.oi-workbench button:focus-visible { outline: 2px solid #ffd5aa; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .oi-layer { transition: transform .48s cubic-bezier(.21,.67,.23,1); }
  .oi-frame.oi-arriving { animation: oi-refocus .46s cubic-bezier(.22,.65,.29,1) both; }
  .oi-frame.oi-leaving { animation: oi-leave .45s ease-in both; }
  .oi-frame.oi-leaving.oi-closer { animation-name: oi-to-feature; }
  .oi-choice-arrow { transition: transform .15s ease-out; }
  .oi-locator-box { transition: left .43s cubic-bezier(.21,.67,.23,1), top .43s cubic-bezier(.21,.67,.23,1), width .35s, height .35s; }
  .oi-choice:hover .oi-choice-arrow { transform: translate(1px,-1px); }
  @keyframes oi-refocus { from { opacity: 0; transform: translate(var(--oi-pan-x,0),var(--oi-pan-y,0)) scale(1.073); filter: blur(1.6px); } to { opacity: 1; transform: translate(0,0) scale(1); filter: blur(0); } }
  @keyframes oi-leave { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }
  @keyframes oi-to-feature { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.34); } }
}
@media (max-width: 760px) {
  .oi-workbench { grid-template-columns: minmax(0,1fr); height: auto; }
  .oi-viewer { width: 100%; max-width: 100%; aspect-ratio: 1.5; min-height: 222px; }
  .oi-controls { border-left: 0; border-top: 1px solid var(--oi-frame); padding: 13px 12px 16px; }
  .oi-heading { margin-bottom: 8px; font-size: 13px; }
  .oi-choices { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 13px; }
  .oi-choice { grid-template-columns: clamp(27px,7vw,42px) minmax(0,1fr) auto; gap: 6px; min-height: 48px; padding: 5px 2px 5px 0; }
  .oi-choice:last-child { grid-column: 1 / -1; }
  .oi-thumb { height: 28px; }
  .oi-choice-arrow { font-size: 12px; }
  .oi-choice-name { font-size: 13px; }
  .oi-note { margin-top: 9px; font-size: 12px; line-height: 1.55; }
  .oi-legend { margin-top: 3px; padding: 0; font-size: 10px; }
  .oi-hud { top: 8px; left: 8px; font-size: 10px; }
  .oi-toolbar { top: 4px; right: 5px; gap: 3px; }
  .oi-tool { min-height: 44px; min-width: 46px; gap: 2px; padding: 0 6px; }
  .oi-tool-sign { font-size: 13px; }
  .oi-feature-label { padding: 3px 5px; font-size: 10px; }
  .oi-locator { width: 66px; bottom: 7px; right: 7px; }
  .oi-samples { left: 7px; bottom: 7px; padding: 2px; }
  .oi-sample { min-height: 44px; padding: 0 9px; font-size: 12px; }
}
@media (max-width: 400px) {
  .oi-choice { grid-template-columns: 26px minmax(0,1fr); }
  .oi-choice-arrow { display: none; }
}
