/* Version 37 · scoped to integrated complex 500kV exam */
#diagramexam37{font-size:14px;line-height:1.5}
#diagramexam37 .e37-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#diagramexam37 .e37-kicker{font-size:12px;letter-spacing:.07em;color:#9bb5c5;font-weight:800}
#diagramexam37 .e37-title{font-size:21px;line-height:1.22;font-weight:850;margin:3px 0}
#diagramexam37 .e37-score{padding:7px 12px;border:1px solid #385c66;border-radius:12px;background:#112b35;font-weight:800;color:#acffdd}
#diagramexam37 .e37-panel{background:#102133;border:1px solid #395066;border-radius:13px;padding:12px;margin-bottom:11px;min-width:0}
#diagramexam37 .e37-panel h3{font-size:15px;margin:0 0 9px}
#diagramexam37 .e37-actions{display:flex;flex-wrap:wrap;gap:8px}
#diagramexam37 button{border:1px solid #416078;border-radius:10px;min-height:43px;padding:9px 11px;background:#172f44;color:#e5f4ff;font-size:13px;font-weight:700}
#diagramexam37 button.primary{background:#14604e;border-color:#39aa8f;color:white}
#diagramexam37 button.warn{background:#59333a;border-color:#91505c;color:#fff2f1}
#diagramexam37 button:disabled{opacity:.5}
#diagramexam37 select,#diagramexam37 textarea{background:#0a1928;border:1px solid #527088;border-radius:9px;color:#f3f7fc;font:inherit;padding:10px;width:100%;min-height:44px}
#diagramexam37 textarea{min-height:100px;resize:vertical}
#diagramexam37 label{display:block;font-weight:700;font-size:13px;margin:8px 0 5px}
#diagramexam37 .e37-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
#diagramexam37 .e37-fine{color:#b2c3d0;font-size:12px;margin:7px 0}
#diagramexam37 .e37-status{color:#b9d0da;font-size:13px}
#diagramexam37 .e37-diag{border-radius:11px;background:#091a28;border:1px solid #294254;overflow:auto;max-width:100%}
#diagramexam37 svg{display:block;width:100%;min-width:285px;max-height:490px}
#diagramexam37 svg .e37-wire{stroke:#789eb1;stroke-width:4;fill:none;stroke-linecap:round}
#diagramexam37 svg .e37-device{cursor:pointer;outline:0}
#diagramexam37 svg .e37-device:focus-visible rect{stroke:#fff;stroke-width:4}
#diagramexam37 svg text{fill:#eaf4fa;font-family:system-ui,sans-serif}
#diagramexam37 .e37-log{max-height:240px;overflow:auto;display:grid;gap:6px}
#diagramexam37 .e37-log div{padding:8px;background:#13283b;border-left:3px solid #69acc3;border-radius:5px;font-size:12px}
#diagramexam37 .e37-flag{color:#ffcf88;font-size:13px;font-weight:700}
#diagramexam37 .e37-good{color:#94f0c3}
#diagramexam37 .e37-bad{color:#ff9d9d}
#diagramexam37 .e37-review{border-left:3px solid #d7a96c;background:#1b2b38;padding:10px;margin:7px 0;border-radius:5px}
#diagramexam37 .e37-review strong{display:block;margin-bottom:4px}
#diagramexam37 .e37-review p{margin:4px 0;font-size:13px}
#diagramexam37 .e37-review a{color:#b2dbff}
#diagramexam37 .e37-progress{height:7px;background:#0b1a2b;border-radius:7px;overflow:hidden;margin:9px 0}
#diagramexam37 .e37-progress>div{height:100%;background:#47c1a0;transition:width .16s}
@media(max-width:670px){#diagramexam37 .e37-grid{grid-template-columns:1fr}#diagramexam37 .e37-title{font-size:18px}#diagramexam37 button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){#diagramexam37 .e37-progress>div{transition:none}}
/* 35 учебных режимов в один горизонтально прокручиваемый ряд на телефоне. */
#trainer .tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding-bottom:9px;-webkit-overflow-scrolling:touch}
#trainer .tabs .tab{flex:0 0 auto;scroll-snap-align:start;white-space:nowrap}
