.miter-sim { grid-column: 1 / -1; padding: 28px 30px; border: 1px solid #dde0e3; border-radius: 6px; background: #fff; }
.miter-sim-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; margin-top: 22px; }
.miter-sim .miter-intro { max-width: 780px; }
.miter-sim h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -.025em; }
.miter-open { color: #b72b1e; font-weight: 700; margin-bottom: 18px; text-decoration: underline; text-underline-offset: 3px; }
.miter-sim .miter-intro { font-size: 14px; margin-bottom: 18px; }
.miter-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.miter-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.miter-controls .miter-wide { grid-column: 1 / -1; }
.miter-controls input, .miter-controls select { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; min-height: 44px; border: 1px solid #a6b3bc; border-radius: 4px; color: #263b48; background: #fff; font: inherit; font-size: 15px; }
.miter-controls input:disabled { background: #eef1f3; color: #727d85; }
.miter-controls [aria-invalid="true"] { border-color: #bd2b1b; }
.miter-sim button { min-height: 40px; padding: 7px 11px; border: 1px solid #b7c2c9; border-radius: 4px; background: #fff; color: #344d5e; font: inherit; font-size: 12px; cursor: pointer; }
.miter-sim button:hover, .miter-sim button[aria-pressed="true"] { background: #e7edf1; border-color: #5c7586; }
.miter-sim :focus-visible { outline: 3px solid #24789c; outline-offset: 3px; }
.miter-presets, .miter-toolbar { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.miter-stage { border: 1px solid #dae2e7; border-radius: 7px; overflow: hidden; background: radial-gradient(ellipse at 45% 40%, #fff, #e9eef1); }
.miter-stage svg { display: block; width: 100%; height: auto; cursor: grab; touch-action: pan-y; }
.miter-stage svg:active { cursor: grabbing; }
.miter-stage-header { padding: 14px 14px 0; font-size: 12px; color: #536b7c; }
.miter-stage .miter-legend { display: flex; justify-content: space-between; gap: 10px; padding: 0 14px 14px; font-size: 13px; font-weight: 700; }
.miter-legend span:first-child { color: #ba3526; }
.miter-legend span:last-child { color: #146b8e; }
.miter-sim .miter-explanation, .miter-sim .miter-note { font-size: 13px; line-height: 1.65; }
.miter-sim .miter-note { margin-top: 12px; padding-left: 12px; border-left: 2px solid #b5c3cc; }
.miter-sim .miter-error { font-size: 13px; color: #b72b1e; margin: 0 0 12px; }
.miter-error:empty { display: none; }
.miter-toolbar button[data-miter-play] { margin-left: auto; background: #263f50; color: #fff; }
.miter-toolbar button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px) { .miter-sim-layout { grid-template-columns: 1fr; gap: 6px; } .miter-sim { padding: 24px; } }
@media (max-width: 380px) { .miter-controls { grid-template-columns: 1fr; } .miter-toolbar button[data-miter-play] { margin-left: 0; } }
