/* OpenGateway B300 글 전용 인터랙티브 그림. figure.ix 안에서만 적용된다.
 * 그림마다 겉모양이 다르다: flow(떠 있는 무대), hol(오실로스코프 화면), affinity(타일 보드), step(계기판). */
figure.ix {
  --ix-ink: #0e1b2c;
  --ix-ink2: #4b5a6b;
  --ix-ink3: #8494a5;
  --ix-line: #c3cad3;
  --ix-teal: #0f8a7e;
  --ix-teal-tint: #d6ebe8;
  --ix-warn: #d4561c;
  --ix-mono: "Geist Mono", ui-monospace, Menlo, monospace;
  margin: 1.8em 0 0;
}
figure.ix .ix-fallback { margin: 0 auto; }
figure.ix.ix-live .ix-fallback { display: none; }
figure.ix figcaption {
  margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ix-ink3); text-align: left; word-break: keep-all;
}
figure.ix figcaption b { color: var(--ix-ink2); font-weight: 650; }

.ix-root { position: relative; color: var(--ix-ink); font-family: var(--ix-mono); }
.ix-canvas { position: relative; }
.ix-canvas canvas { display: block; width: 100%; touch-action: pan-y; }
.ix-overlay { position: absolute; inset: 0; pointer-events: none; }
/* 캔버스 위 투명 조작점: 키보드 포커스와 스크린리더용. 포커스 표시는 캔버스가 그린다 */
.ix-hot {
  position: absolute; pointer-events: none; background: transparent; border: 0; padding: 0; margin: 0;
  color: transparent; outline: none; -webkit-tap-highlight-color: transparent;
}
.ix-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* flow: 종이 위에 떠 있는 무대 */
.ix-v-flow .ix-canvas { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(14,27,44,.04), 0 10px 30px -18px rgba(14,27,44,.35); }

/* hol: 오실로스코프. 밝은 화면과 얇은 베젤 */
.ix-v-hol { padding: 10px; border-radius: 16px; background: linear-gradient(#eef1f3, #e2e6ea); box-shadow: inset 0 1px 0 #fff, 0 8px 24px -16px rgba(14,27,44,.45); }
.ix-v-hol .ix-canvas { border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(14,27,44,.12); }

/* affinity: 타일 보드 + 하드웨어 스위치 하나 */
.ix-v-affinity .ix-canvas { border-radius: 4px; overflow: hidden; border: 1px solid #dfe3e8; }
.ix-switch {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font: 600 12px/1 var(--ix-mono); color: var(--ix-ink); background: none; border: 0; padding: 4px 2px;
}
.ix-switch .ix-track {
  position: relative; width: 46px; height: 24px; border-radius: 12px; background: #cfd5dc;
  box-shadow: inset 0 1px 3px rgba(14,27,44,.3); transition: background-color .25s cubic-bezier(.4,0,.2,1);
}
.ix-switch .ix-knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(#fff, #e9edf0); box-shadow: 0 1px 3px rgba(14,27,44,.35);
  transition: transform .32s cubic-bezier(.34,1.3,.5,1);
}
.ix-switch[aria-checked="true"] .ix-track { background: var(--ix-teal); }
.ix-switch[aria-checked="true"] .ix-knob { transform: translateX(22px); }
.ix-switch:focus-visible { outline: 2px solid var(--ix-teal); outline-offset: 3px; border-radius: 6px; }

/* step: 계기판. 브러시드 알루미늄 판과 페이더 */
.ix-v-step { border-radius: 12px; background: linear-gradient(#fafbfc, #eceff2); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(14,27,44,.08), 0 10px 26px -18px rgba(14,27,44,.5); padding-bottom: 12px; }
.ix-fader { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 0 18px; font-size: 11px; color: var(--ix-ink2); }
.ix-fader label { white-space: nowrap; letter-spacing: .02em; }
.ix-fader output { font-weight: 600; color: var(--ix-ink); min-width: 4.5em; text-align: right; font-variant-numeric: tabular-nums; }
.ix-fader input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0;
}
.ix-fader input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: linear-gradient(#c9cfd6, #dde1e6); box-shadow: inset 0 1px 2px rgba(14,27,44,.35);
}
.ix-fader input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #d3d8de; }
.ix-fader input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 18px; margin-top: -6px; border-radius: 3px; cursor: grab;
  background: linear-gradient(#fdfdfe, #d9dee3); border: 1px solid #aeb6bf; box-shadow: 0 2px 4px rgba(14,27,44,.3), inset 0 -2px 0 rgba(14,27,44,.08);
}
.ix-fader input[type="range"]::-moz-range-thumb { width: 26px; height: 18px; border-radius: 3px; background: #eef1f3; border: 1px solid #aeb6bf; }
.ix-fader input[type="range"]:focus-visible { outline: 2px solid var(--ix-teal); outline-offset: 2px; border-radius: 4px; }
.ix-fader .ix-detents { grid-column: 2; display: flex; justify-content: space-between; padding: 0 13px; margin-top: -4px; font-size: 9.5px; color: var(--ix-ink3); font-variant-numeric: tabular-nums; }
.ix-fader .ix-detents span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.ix-tasks { display: flex; align-items: center; gap: 6px; padding: 8px 18px 0; font-size: 11px; color: var(--ix-ink2); }
.ix-tasks span { margin-right: 8px; letter-spacing: .02em; }
.ix-tasks button {
  font: 600 11px/1 var(--ix-mono); color: var(--ix-ink2); cursor: pointer; padding: 6px 10px; border-radius: 4px;
  background: linear-gradient(#fdfdfe, #e4e8ec); border: 1px solid #c3cad2; box-shadow: 0 1px 2px rgba(14,27,44,.15);
}
.ix-tasks button[aria-checked="true"] { color: #fff; background: var(--ix-teal); border-color: var(--ix-teal); box-shadow: inset 0 1px 2px rgba(14,27,44,.3); }
.ix-tasks button:focus-visible { outline: 2px solid var(--ix-teal); outline-offset: 2px; }

@media (max-width: 560px) {
  .ix-v-hol { padding: 6px; border-radius: 12px; }
  .ix-fader { grid-template-columns: 1fr auto; padding: 0 12px; }
  .ix-fader input[type="range"] { grid-column: 1 / -1; }
  .ix-fader .ix-detents { grid-column: 1 / -1; font-size: 8.5px; }
  .ix-tasks { padding: 8px 12px 0; }
}
