/* ЭнергоТренажёр 40: учебная модель панели по мотивам ЭКРА БЭ2704 */
.ek40-wrap{display:grid;gap:12px;padding:5px 3px 10px}
.ek40-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ek40-bar label{display:grid;gap:5px;flex:1 1 180px;font-size:12px;color:#c2d4e3}
.ek40-bar select{min-width:0;width:100%;background:#193347;border:1px solid #47667c;border-radius:9px;color:#fff;min-height:44px;padding:9px;font:inherit;font-size:14px}
.ek40-case-note{padding:10px;border-radius:10px;border:1px solid #38566e;color:#d3e6f4;background:#142f43;font-size:12px;line-height:1.5}
.ek40-chassis{background:linear-gradient(150deg,#b6c6cc,#8faab4);border:4px solid #718f9a;border-radius:14px;padding:10px;color:#152d36;box-shadow:inset 0 2px 4px #fff8,0 7px 20px #0004}
.ek40-platehead{display:flex;justify-content:space-between;align-items:center;margin:0 2px 8px;gap:5px;font-weight:900}
.ek40-platehead .ek40-logo{font-size:22px;letter-spacing:-1.1px;color:#164d60}
.ek40-platehead small{font-size:11px;color:#335560;letter-spacing:.2px}
.ek40-topgrid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;min-width:0}
.ek40-ledgrid{display:grid;grid-template-columns:1fr 1fr;gap:4px 7px;min-width:0}
.ek40-ledline{display:flex;gap:4px;align-items:center;min-width:0;font-size:9px;line-height:1.15;color:#21404b;background:#cad9db99;padding:3px 4px;border-radius:3px}
.ek40-lamp{width:9px;height:9px;flex-shrink:0;border:1px solid #4f6670;border-radius:50%;background:#59707a;box-shadow:inset 0 1px 2px #1f343e}
.ek40-lamp.red{background:#ed5560;box-shadow:0 0 7px #dc394b99}.ek40-lamp.green{background:#44d39e;box-shadow:0 0 6px #19ad7f77}.ek40-lamp.yellow{background:#ffce61;box-shadow:0 0 6px #dfac30aa}
.ek40-keys{display:grid;grid-template-columns:repeat(2,28px);gap:5px;align-content:start}
.ek40-microkey{min-height:27px;min-width:27px;background:#386d85;color:#f9ffff;border:2px solid #567e8d;border-radius:4px;font-weight:800;font-size:11px;padding:0}
.ek40-display{margin-top:12px;border:6px solid #354b54;border-radius:8px;background:#aecfda;color:#122d37;min-height:222px;overflow:hidden;box-shadow:inset 0 0 5px #103944a8;display:flex;flex-direction:column}
.ek40-screenbar{display:flex;justify-content:space-between;gap:6px;padding:5px 8px;background:#35677a;color:#e7f8ff;font-size:11px;font-weight:800}
.ek40-screen{padding:9px 10px 8px;min-height:150px;flex:1;font:12px/1.42 ui-monospace,Consolas,monospace;white-space:pre-line;overflow-wrap:anywhere}
.ek40-screen strong{font-size:13px;display:block;margin-bottom:7px;color:#0d4052}
.ek40-screen .sel{background:#235f70;color:#fff;padding:3px 5px;margin:1px -5px}
.ek40-screen .ln{padding:3px 5px;margin:1px -5px;display:block}
.ek40-screenfooter{font-size:10px;border-top:1px solid #61919f;padding:4px 8px;display:flex;justify-content:space-between;color:#234956}
.ek40-under{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin-top:10px}
.ek40-statusled{font-size:9px;display:flex;flex-wrap:wrap;gap:9px;font-weight:900}
.ek40-statusled span{display:inline-flex;gap:4px;align-items:center}
.ek40-pad{display:grid;grid-template-columns:repeat(3,44px);gap:5px}
.ek40-pad button{background:#28617a;border:2px solid #577c8c;border-radius:7px;color:#fff;font-size:15px;font-weight:900;min-height:43px;padding:0}
.ek40-pad button[data-nav="down"]{grid-column:2}.ek40-pad button[data-nav="enter"]{grid-column:3;grid-row:1/3;background:#1b657e;font-size:12px}
.ek40-pad button[data-nav="back"]{grid-column:1;grid-row:2;font-size:11px}
.ek40-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ek40-signals>div{border:1px solid #344f60;background:#162b3b;padding:8px;border-radius:9px;font-size:11px;color:#bdd4e6}
.ek40-signals b{display:block;color:#fff;font-size:13px;margin-top:4px}
.ek40-options{display:grid;grid-template-columns:1fr auto;gap:8px}
.ek40-options select{min-width:0;background:#1a3549;border:1px solid #4a6b7c;border-radius:9px;color:#fff;font:inherit;padding:10px;font-size:14px;min-height:44px}
.ek40-options button,.ek40-actions button{border-radius:9px;color:#f2fdff;background:#1d554f;border:1px solid #4d9784;font:inherit;font-weight:750;padding:9px 11px;min-height:44px}
.ek40-actions{display:flex;gap:8px;flex-wrap:wrap}.ek40-actions button{flex:1 1 130px;background:#1e3b50;border-color:#476579}
.ek40-log{background:#102536;border:1px solid #38536a;border-radius:9px;padding:8px;max-height:160px;overflow:auto;font-size:11px;line-height:1.6;color:#cbdde9}
.ek40-result{border-radius:11px;padding:12px;border:1px solid #386b6b;background:#173e40;font-size:12px;line-height:1.6;color:#ebfaf6}
.ek40-result.bad{background:#412a36;border-color:#905062;color:#ffdee1}
.ek40-info{font-size:11px;color:#acbfce;line-height:1.6}
.ek40-info a{color:#a3d5fc}
.ek40-wave{width:100%;max-height:135px!important;background:#17303d;border-radius:6px}
@media(max-width:390px){.ek40-chassis{padding:8px;border-width:3px}.ek40-keys{grid-template-columns:repeat(2,24px);gap:3px}.ek40-microkey{min-width:24px;min-height:26px}.ek40-ledgrid{gap:2px 3px}.ek40-ledline{font-size:8px;padding:3px 2px}.ek40-pad{grid-template-columns:repeat(3,39px);gap:3px}.ek40-pad button{min-height:41px}.ek40-screen{font-size:11px}.ek40-platehead .ek40-logo{font-size:19px}}
