.rangier-track-exercise{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel);font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.rangier-track-exercise h2{margin:0 0 10px;font-size:21px;line-height:1.3}.rangier-track-exercise h3{margin:18px 0 10px;font-size:18px;line-height:1.4}
.rangier-track-exercise p{margin:10px 0}.track-intro,.track-context{color:var(--muted)}
.rangier-track-exercise label{display:block;margin:16px 0 6px;font-weight:650}.rangier-track-exercise select{width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #435972;border-radius:10px;background:#111c29;color:var(--text);font:inherit;font-size:16px}
.rangier-track-exercise summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer;font-weight:600}.rangier-track-exercise details{margin:10px 0}.rangier-track-exercise ul,.rangier-track-exercise ol{padding-left:23px}
.track-plan {
  margin:16px 0;
  padding:10px 12px 8px;
  border:1px solid #344752;
  border-radius:12px;
  background:#101d29;
  color:#e1ebef;
}
.track-plan svg {display:block;width:100%;height:auto;max-height:270px}
.track-plan text {font:600 19px system-ui,sans-serif;fill:#dde7ec}
.track-plan .track-front-label {font-size:18px;fill:#a4e0f1}
.track-plan-key {display:flex;align-items:center;gap:7px;padding:7px 2px 0;border-top:1px solid #2b3c48;color:#c2d1d9;font-size:12px}
.track-plan-key::before {content:"";width:22px;border-top:3px solid #efb7a2}
.track-plan path {fill:none;stroke-linejoin:round;stroke-linecap:round}
.track-plan .track-sleepers {stroke:#465d6d;stroke-width:14;stroke-dasharray:2 9;stroke-linecap:butt}
.track-plan .track-rail {stroke:#8498a7;stroke-width:9}
.track-plan .track-gauge {stroke:#1e2e3a;stroke-width:5}
.track-plan .track-path {stroke:#efb7a2;stroke-width:3}
.track-plan .track-direction {stroke:#ffd4c1;stroke-width:4}
.track-plan .track-buffer {stroke:#9aaebb;stroke-width:4}
.track-plan .track-location {stroke:#93a8b5;stroke-width:1.5;stroke-dasharray:3 4}
.track-plan .track-pointer {stroke:#8bb2c3;stroke-width:1.3}
.track-plan .track-link {stroke:#afbec4;stroke-width:3}
.track-plan .track-wagon {fill:#ba8f72;stroke:#d5ae90;stroke-width:1.5}
.track-plan .track-ribs {stroke:#594941;stroke-width:2}
.track-plan .track-loco {fill:#4a9eaa;stroke:#9ad4db;stroke-width:1.5}
.track-plan .track-cab {fill:#183c48}
.track-plan .track-front {fill:#a4e0f1;stroke:#172b37;stroke-width:2}
.track-plan .track-signal-head {fill:#172a36;stroke:#b3c6cd;stroke-width:2}
.track-plan .track-signal-mark {stroke:#b3c6cd;stroke-width:2}
.track-progress{color:var(--amber);font-size:12px;font-weight:700}.track-options{display:grid;gap:10px;margin:15px 0}.rangier-track-exercise button{min-height:46px;white-space:normal;overflow-wrap:anywhere;font:600 14px/1.5 system-ui,sans-serif;padding:11px 14px;cursor:pointer}
.track-option{display:block;width:100%;text-align:left;border:1px solid #465b70;border-radius:10px;background:#172a3a;color:var(--text)}.track-option:disabled{cursor:default;opacity:.72}.track-option[data-correct="true"]{border-color:#7bd6ac;background:#173b30;opacity:1}.track-option[data-correct="false"]{border-color:#d3a37d;background:#3d2d24}
.track-feedback{padding:14px;border:1px solid #bc9778;border-radius:10px;background:#2f2925}.track-feedback[data-correct="true"]{border-color:#4f8f75;background:#142d28}.track-feedback button{margin-top:5px}.track-save-note{color:#ffc991}.rangier-track-exercise .ref{font-size:11px;color:var(--muted)}
.rangier-track-exercise :is(button,select,summary):focus-visible{outline:3px solid var(--amber);outline-offset:3px}
@media(max-width:520px){.rangier-track-exercise{padding:14px}.rangier-track-exercise h2{font-size:19px}.rangier-track-exercise .track-plan{margin-left:-4px;margin-right:-4px}.rangier-track-exercise .track-options button{font-size:14px}}
