/* Crash Test Lab (shared: sim3d.css) */
.cl-setup { display: grid; gap: 12px; }
.cl-h { margin: 4px 0 0; font-size: 18px; display: flex; align-items: baseline; gap: 10px; }
.cl-h small { font-size: 14px; opacity: .85; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.cl-mis { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: inherit; font: 800 14px system-ui, sans-serif; cursor: pointer; min-height: 62px; }
.cl-mis b { grid-row: span 2; font-size: 20px; text-align: center; color: #facc15; }
.cl-mis small { font-weight: 600; opacity: .8; font-size: 12px; }
.cl-mis:hover:not(:disabled) { border-color: #facc15; }
.cl-mis:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.cl-mis.is-locked { opacity: .45; cursor: not-allowed; }
.cl-free { border-style: dashed; }
.cl-panel { position: absolute; left: 10px; top: 10px; width: min(360px, 60%); max-height: calc(100% - 20px); overflow: auto; background: rgba(8, 16, 28, .86); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 10px 12px; pointer-events: auto; font: 600 13px system-ui, sans-serif; display: grid; gap: 8px; }
.cl-goal { background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .4); border-radius: 10px; padding: 6px 8px; line-height: 1.35; }
.cl-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 8px; }
.cl-row input { width: 100%; accent-color: #facc15; }
.cl-row b { font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.cl-opts { grid-template-columns: 70px 1fr; }
.cl-opts span { align-self: start; padding-top: 6px; }
.cl-btns { display: flex; flex-wrap: wrap; gap: 5px; }

.cl-btns button { justify-self: start; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 9px; padding: 5px 9px; font: 700 12px system-ui, sans-serif; cursor: pointer; }
.cl-btns button.is-on { background: rgba(250, 204, 21, .25); border-color: #facc15; }
.cl-btns button.is-off { opacity: .8; }
.cl-btns button:disabled { cursor: not-allowed; opacity: .55; }
.cl-btns button:focus-visible, .cl-go:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.cl-go { justify-self: stretch; }
.cl-readout { position: absolute; right: 12px; top: 12px; font: 900 22px system-ui, sans-serif; text-shadow: 0 2px 4px #000; pointer-events: none; }
.cl-result .sim-result__card { max-height: 94%; overflow: auto; padding: 12px 16px; }
.cl-result .sim-result__card p { font-size: 14px; margin: 3px 0; }
.cl-result .sim-result__card h3 { font-size: 19px; margin-bottom: 2px; }
.cl-rate { font-size: 30px; letter-spacing: 3px; color: #facc15; margin: 2px 0; }
.cl-rate span { color: rgba(255, 255, 255, .2); }
.cl-lesson { max-width: 380px; margin: 6px auto; line-height: 1.4; }
@container (max-width: 560px) {
  .cl-panel { top: 92px; left: 8px; right: 8px; width: auto; max-height: calc(100% - 150px); }
  .cl-row { grid-template-columns: 60px 1fr auto; }
  .cl-opts { grid-template-columns: 60px 1fr; }
}
