/* 실험별 자산만 사용하는 반응형 파동·광학 실험대 */
.bench { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.scene-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 0; font-size: 13px; color: var(--text-sub); }
.scene-head b { color: var(--physics); }
#scene { display: block; width: 100%; aspect-ratio: 760 / 440; background: #fff; }
#scene.draggable { touch-action: none; cursor: grab; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 0 16px 16px; }
.meter { padding: 10px 8px; border-radius: 12px; background: var(--surface); min-width: 0; }
.meter span { display: block; color: var(--text-sub); font-size: 12px; }
.meter b { display: block; font-size: clamp(13px, 2vw, 19px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.scene-note { padding: 0 16px 16px; font-size: 13px; color: var(--text-sub); min-height: 36px; }
.param { display: grid; grid-template-columns: minmax(100px,1fr) auto; gap: 2px 12px; margin-bottom: 14px; }
.param label { font-size: 14px; font-weight: 600; }
.param output { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.param input { grid-column: 1 / -1; width: 100%; min-width: 0; height: 32px; accent-color: var(--physics); }
.actions, .presets { display: flex; gap: 8px; flex-wrap: wrap; }
.actions { margin-top: 12px; }
.controls .btn, .work .btn { justify-content: center; cursor: pointer; font: inherit; font-size: 14px; padding: 0 15px; }
.presets .btn { height: auto; min-height: 44px; padding: 8px 12px; text-align: left; border-radius: 12px; }
.controls p, .work p { color: var(--text-sub); font-size: 14px; }
.controls .small-note { margin-top: 12px; font-size: 12px; }
.graph + .graph { margin-top: 20px; }
.formula b { font-size: clamp(18px, 3vw, 26px); overflow-wrap: anywhere; }
.formula span { display: block; margin-top: 8px; }
.confirm { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; padding: 12px; background: var(--surface); border-radius: 12px; }
.confirm input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--physics); }
.energy-bars { width: 100%; display: block; }
.energy-bars text { font-size: 12px; fill: #555; }
@media (max-width: 600px) {
  .scene-head { padding: 12px 12px 0; font-size: 12px; }
  .meters { padding: 0 10px 10px; gap: 4px; }
  .meter { padding: 8px 6px; }
  .meter span { font-size: 11px; }
  .scene-note { font-size: 12px; padding: 0 12px 12px; }
  .stepper { gap: 4px; }
  .stepper button { padding: 8px; gap: 6px; }
  .stepper .ico { width: 24px; height: 24px; }
  .stepper .label { font-size: 12px; }
  .step-nav .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 380px) {
  .site-header .container { padding: 0 12px; }
  .logo { gap: 5px; font-size: 16px; }
  .logo-mark { width: 22px; height: 22px; }
  .header-actions .nav a { padding: 7px 4px; font-size: 12px; }
}

.record-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

.swatches { display:flex; flex-wrap:wrap; gap:12px; font-size:13px; }
.swatches span { display:inline-flex; align-items:center; gap:6px; }
.swatches i { display:inline-block; width:24px; height:24px; border:1px solid #aaa; border-radius:6px; }
@media (max-width:380px) { .meters { grid-template-columns:1fr; } .meter { display:flex; align-items:center; justify-content:space-between; gap:8px; } .scene-head { flex-wrap:wrap; } .param { grid-template-columns:minmax(0,1fr) auto; } .btn { max-width:100%; white-space:normal; } }

.choice-row {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;}
.choice-row>b {width:100%;font-size:14px;}
#circuit {display:block;width:100%;aspect-ratio:760/440;}
#circuit text {font-size:20px;fill:#334155;}
.data {table-layout:fixed;} .data th,.data td {overflow-wrap:anywhere;font-size:12px;padding:6px 3px;}
.choice-row .toggle {height:auto;min-height:44px;max-width:100%;white-space:normal;}
