.vsb-spaces, .vsb-preview, .vsb-reception { display: grid; gap: 8px; }
.vsb-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vsb-spaces figure, .vsb-preview figure { margin: 0; min-width: 0; padding: 8px; border-radius: 7px; background: #1b2f37; color: #eef7f1; }
.vsb-spaces figcaption, .vsb-preview figcaption { margin-bottom: 5px; font-weight: 700; }
.vsb-spaces p { margin: 6px 0 0; font-size: .91rem; }
.vsb-grid { position: relative; min-height: 76px; aspect-ratio: 2 / 1; background: #354952; }
.vsb-grid span { position: absolute; top: var(--top); left: var(--left); }
.vsb-luma, .vsb-sample { transform: translate(-50%, -50%); }
.vsb-luma { width: 21px; height: 21px; background: #d6eef5; border-radius: 50%; }
.vsb-sample { width: 10px; height: 10px; rotate: 45deg; border: 1px solid #182b34; background: #ffce74; }
.vsb-group { border: 1px solid #8cabb1; }
.vsb-key { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 8px 0; font-size: .91rem; }
.vsb-key span:first-child { color: #17445c; }
.vsb-key span:nth-child(2) { color: #6e4b13; }
.vsb-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 9px; }
.vsb-controls label { display: grid; gap: 3px; font-weight: 650; min-width: 0; }
.vsb-controls select { min-height: 44px; max-width: 100%; font: inherit; padding: 4px 8px; color: #183933; background: #fff; border: 1px solid #a7bfb0; border-radius: 5px; }
.vsb-preview, .vsb-reception { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vsb-preview canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.vsb-result { padding: 9px 12px; border-left: 4px solid #417e60; background: #edf4ef; }
.vsb-segments { margin: 10px 0; padding: 10px; border-radius: 7px; color: #edf5f8; background: #1b2f37; }
.vsb-segments figcaption { font-weight: 700; }
.vsb-spectrum { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; padding: 9px 0; }
.vsb-spectrum span { display: grid; place-items: center; min-height: 46px; border-radius: 3px; border: 1px solid #add5f4; background: #87b8d8; color: #251909; }
.vsb-spectrum .vsb-one { background: #ffce74; border-color: #ffce74; font-weight: 800; }
.vsb-segments p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .92rem; }
.vsb-key-one::before, .vsb-key-main::before { content: ''; display: inline-block; width: .75em; height: .75em; margin-right: 4px; background: #ffce74; }
.vsb-key-main::before { background: #87b8d8; }
.vsb-segments[data-vsb-receiver="one"] .vsb-spectrum span:not(.vsb-one),
.vsb-segments[data-vsb-receiver="main"] .vsb-one { opacity: .30; }
.vsb-reception { margin: 8px 0; }
.vsb-reception div { padding: 8px; border: 1px solid #adc3b7; border-radius: 6px; }
.vsb-reception dt { font-weight: 700; }
.vsb-reception dd { margin: 2px 0 0; }
@media (max-width:640px) {
  .vsb-spaces { grid-template-columns: minmax(0, 1fr); }
  .vsb-grid { max-width: 245px; }
}

.vsb-exam { max-width: 850px; }
.vsb-exam .vsb-preview { max-width: 720px; }
.vsb-exam fieldset { min-width: 0; padding: 0; border: 0; margin: 18px 0 10px; }
.vsb-exam legend { padding: 0; font-weight: 700; }
.vsb-answers { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vsb-answers label, .vsb-exam button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 4px 12px; border-radius: 6px; cursor: pointer; font: inherit; }
.vsb-answers label { background: #e8f1eb; color: #183b31; }
.vsb-answers input { margin: 0; accent-color: #286046; }
.vsb-exam button { border: 1px solid #245539; background: #245539; color: white; font-weight: 700; }
.vsb-exam button:disabled { color: #535f57; background: #e9eeeb; border-color: #c3cfc8; cursor: default; }
.vsb-exam [data-vsb-verdict]:not(:empty) { border-left: 4px solid #417e60; padding: 8px 12px; background: #edf4ef; font-weight: 700; }
.vsb-answer-map { margin: 12px 0; max-width: 18rem; }
.vsb-answer-map figcaption { margin-bottom: 5px; font-weight: 700; }
.vsb-grid .vsb-sample { rotate: none; transform: translate(-50%, -50%) rotate(45deg); }
.vm-guide section { max-width: 880px; }
.vm-guide .vrs-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); }
.vm-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 10px; align-items: start; }
.vm-guide canvas { width: 100%; }
#mod-iq { cursor: crosshair; }
@media (max-width: 600px) { .vm-pair { grid-template-columns: minmax(0,1fr); } #mod-iq { max-width: 320px; margin: auto; } }
