.mechanics-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 24px; margin-top: 24px; }
.mechanics-main { min-width: 0; }
.mech-question { font-size: 20px; font-weight: 650; margin-bottom: 15px; }
.mech-stage { border: 1px solid #344c72; border-radius: 14px; overflow: hidden; background: #0b1630; }
#mech-scene { display: block; width: 100%; height: auto; user-select: none; }
#mech-scene.has-drag { touch-action: none; }
.mech-scene-label { fill: #244361; font-size: 19px; }
.mech-scene-title { fill: #244361; font-size: 24px; font-weight: 650; }
.mech-draggable { cursor: grab; touch-action: none; outline: none; }
.mech-draggable:focus-visible { outline: 3px solid #0062eb; outline-offset: 5px; }
.mech-hint { padding: 16px 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mech-playback { display: flex; gap: 10px; padding: 0 20px; align-items: center; flex-wrap: wrap; }
.mech-playback label { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.mech-playback select { border: 1px solid #53698a; background: #152542; border-radius: 8px; padding: 11px; color: var(--text); min-height: 46px; }
.mech-time-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; font-size: 13px; color: var(--muted); }
.mech-settings { border: 1px solid #31466e; border-radius: 14px; background: #131f38; padding: 22px; align-self: start; }
.mech-settings h3 { font-size: 18px; }
.mech-settings .spring-control label { flex-wrap: wrap; gap: 5px; }
.mech-presets { display: flex; flex-direction: column; gap: 9px; margin-top: 17px; }
.mech-presets .button { font-size: 13px; padding: 11px; justify-content: flex-start; }
.mech-settings-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.mech-result { border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 18px; color: #e4efda; background: #172a26; font-size: 15px; line-height: 1.65; min-height: 82px; }
.ready-experiments { margin-bottom: 36px; padding: 24px; border: 1px solid #2d4671; border-radius: 16px; background: #0d1a34; }
.ready-experiments h2 { font-size: 20px; }
.ready-experiments p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ready-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ready-links a { border: 1px solid #46628c; border-radius: 9px; padding: 12px 16px; font-size: 14px; min-height: 46px; }
.ready-links a:hover { border-color: var(--accent); background: #1a3051; }
@media(max-width: 850px) {
  .mechanics-workspace { grid-template-columns: minmax(0, 1fr); }
  .mech-settings { grid-row: 2; }
  .mech-presets { flex-direction: row; flex-wrap: wrap; }
  .mech-settings .spring-control label { justify-content: space-between; }
}
@media(max-width: 480px) {
  .mech-question { font-size: 18px; }
  .mechanics-workspace { gap: 15px; margin-top: 20px; }
  .mech-playback { padding: 0 12px; gap: 8px; }
  .mech-playback .button { font-size: 13px; padding: 11px; }
  .mech-playback label { margin-left: 0; width: 100%; }
  .mech-hint { padding: 13px 12px; font-size: 13px; }
  .mech-time-row { padding: 14px 12px; }
  .mech-settings { padding: 18px 16px; }
  .mech-result { font-size: 14px; padding: 13px; }
  .ready-experiments { padding: 20px; }
  .ready-links a { flex: 1 0 45%; font-size: 13px; padding: 11px; }
}

.mech-legend { display: flex; flex-wrap: wrap; gap: 8px 15px; padding: 10px 16px; color: #244361; background: #edf4ff; font-size: 12px; border-top: 1px solid #d2e0ee; }
.mech-legend span { display: flex; gap: 5px; align-items: center; }
.mech-legend[hidden], .mech-settings label[hidden] { display: none; }
