.interactive-panel {
  margin-block: 34px 46px;
  padding: clamp(20px, 4vw, 36px);
  background: #eeeee5;
  border: 1px solid #d4d8cf;
  border-radius: 3px;
  min-width: 0;
}
.interactive-panel *, .interactive-panel *::before, .interactive-panel *::after { box-sizing: border-box; }
.interactive-heading { max-width: 760px; }
.interactive-heading h3 { font-family: Georgia, serif; font-size: clamp(25px, 3.6vw, 34px); font-weight: 400; line-height: 1.2; margin: 9px 0 12px; color: #172b32; }
.interactive-heading > p { color: #546166; line-height: 1.7; font-size: 15px; }
.interactive-stage { margin-top: 20px; background: #f7f5ef; border: 1px solid #dce0d5; overflow: hidden; }
.interactive-stage svg { display: block; width: 100%; height: auto; max-height: 370px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.interactive-stage svg text { fill: #546166; font-size: 13px; }
.interactive-stage svg .demo-math-label { font-family: Georgia, serif; font-size: 21px; fill: #172b32; }
.interactive-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 18px 28px; margin-top: 23px; }
.interactive-control { display: block; min-width: 0; font-size: 12px; font-weight: 600; color: #172b32; }
.interactive-control > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.interactive-control output { font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.interactive-panel input[type="range"] { display: block; width: 100%; margin: 0; height: 30px; accent-color: #2f665c; cursor: pointer; }
.interactive-panel select { width: 100%; min-height: 42px; padding: 8px 10px; color: #172b32; border: 1px solid #adb9ac; background: #f7f5ef; font-size: 13px; }
.interactive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.interactive-actions button { padding: 10px 15px; min-height: 44px; background: #f7f5ef; color: #234d45; border: 1px solid #a6b8a8; border-radius: 2px; font-size: 12px; line-height: 1.3; font-weight: 600; }
.interactive-actions button:hover { background: #dfe8dd; border-color: #2f665c; }
.interactive-actions button[aria-pressed="true"] { background: #2f665c; border-color: #2f665c; color: #fff; }
.interactive-actions button:focus-visible, .interactive-panel input:focus-visible, .interactive-panel select:focus-visible, .interactive-panel summary:focus-visible { outline: 3px solid #a15639; outline-offset: 4px; }
.interactive-readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 12px 22px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #ccd3c7; }
.interactive-readout { min-width: 0; }
.interactive-readout > span { display: block; color: #546166; font-size: 11px; letter-spacing: .04em; line-height: 1.4; }
.interactive-readout output { display: block; margin-top: 5px; font-family: Georgia, serif; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.3; color: #172b32; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.interactive-readout.wide { grid-column: 1 / -1; }
.interactive-readout.wide output { font-family: inherit; font-size: 13px; }
.interactive-formula { margin-top: 22px; font-family: Georgia, serif; color: #172b32; font-size: 18px; line-height: 1.65; overflow-wrap: anywhere; }
.interactive-takeaway { margin-top: 16px; font-size: 14px; line-height: 1.75; color: #234d45; }
.interactive-boundary { margin-top: 14px; font-size: 12px; line-height: 1.7; color: #546166; }
.interactive-boundary strong { color: #172b32; font-weight: 600; }
.interactive-motion-note { margin-top: 15px; font-size: 12px; color: #546166; }
.interactive-fusion { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ccd3c7; }
.interactive-fusion summary { cursor: pointer; color: #234d45; font-size: 13px; font-weight: 600; }
.interactive-fusion p { margin-top: 12px; color: #546166; font-size: 13px; line-height: 1.75; }
.fusion-cartoon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.fusion-cartoon .anyon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #172b32; color: #fff; font-family: Georgia, serif; font-size: 22px; }
.fusion-cartoon .anyon.one { background: #a15639; }
.fusion-cartoon .anyon.psi { background: #2f665c; }
.fusion-cartoon .fusion-symbol { font-size: 22px; color: #546166; }
.interactive-panel .demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.interactive-panel noscript p { padding: 15px; border: 1px solid #a6b8a8; font-size: 13px; }
.interactive-panel:not(.interactive-ready) .interactive-controls, .interactive-panel:not(.interactive-ready) .interactive-actions { display: none; }
@media (max-width: 500px) {
  .interactive-panel { padding: 19px 14px; margin-block: 25px 32px; }
  .interactive-heading h3 { font-size: 26px; }
  .interactive-heading > p { font-size: 14px; }
  .interactive-stage { margin-inline: -5px; }
  .interactive-stage svg { min-height: 170px; }
  .interactive-stage svg text { font-size: 20px; }
  .interactive-controls { grid-template-columns: 1fr; gap: 14px; }
  .interactive-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .interactive-readout output { font-size: 19px; }
  .interactive-actions { gap: 8px; }
  .interactive-actions button { flex: 1 1 auto; padding-inline: 11px; }
  .interactive-formula { font-size: 16px; }
  .interactive-fusion .fusion-cartoon { gap: 8px; }
  .fusion-cartoon .anyon { width: 37px; height: 37px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .interactive-panel *, .interactive-panel *::before, .interactive-panel *::after { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
@media print {
  .interactive-panel { break-inside: avoid; background: white; }
  .interactive-controls, .interactive-actions, .interactive-motion-note { display: none !important; }
}
