/* PLC Data Engine V5 · Analog IO */
.plc-editor-analog-card{
    margin-top:16px;
    border:1px solid #36556a;
    border-radius:14px;
    overflow:hidden;
    background:#0d171f;
    box-shadow:0 12px 28px rgba(0,0,0,.16);
}
.plc-editor-analog-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    padding:14px 16px;
    border-bottom:1px solid #294354;
    background:#12212c;
}
.plc-editor-analog-head span{
    display:block;
    margin-bottom:4px;
    color:#38bdf8;
    font-size:11px;
    font-weight:900;
    letter-spacing:.09em;
}
.plc-editor-analog-head strong{font-size:18px;color:#eef8ff}
.plc-editor-analog-head small{max-width:520px;color:#93a9b8;font-size:11px;line-height:1.5;text-align:right}
.plc-editor-analog-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(180px,1fr));
    gap:10px;
    padding:12px;
}
.analog-channel{
    min-width:0;
    padding:12px;
    border:1px solid #294656;
    border-radius:10px;
    background:#101d25;
}
.analog-channel.ai{border-color:#285d78;background:#0e202b}
.analog-channel.ao{border-color:#63588d;background:#19172a}
.analog-channel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.analog-channel-head strong{font:900 16px Consolas,monospace;color:#e9f7ff}
.analog-channel-head span{color:#8199a8;font-size:10px;font-weight:800;text-transform:uppercase}
.analog-channel-value{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:9px}
.analog-channel-value b{font:900 18px Consolas,monospace;color:#7dd3fc}
.analog-channel.ao .analog-channel-value b{color:#c4b5fd}
.analog-channel-value code{color:#91a6b3;font-size:11px}
.analog-channel input[type="range"]{width:100%;margin-top:10px;accent-color:#38bdf8;cursor:pointer}
.analog-output-bar{height:8px;margin-top:12px;border-radius:999px;overflow:hidden;background:#29273d}
.analog-output-bar i{display:block;width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#8b5cf6,#c4b5fd);transition:width .12s linear}
.lad-element.is-scale{min-width:245px;border-color:#0ea5a8!important;background:#102b2b!important}
.lad-element.is-scale.is-active{box-shadow:0 0 16px rgba(20,184,166,.22)}
#scaleInMinWrap,#scaleInMaxWrap,#scaleOutMinWrap,#scaleOutMaxWrap{border-left:2px solid #0f766e;padding-left:8px}
.plc-editor-reference code.analog{color:#5eead4}
@media(max-width:1200px){.plc-editor-analog-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:760px){.plc-editor-analog-grid{grid-template-columns:1fr}.plc-editor-analog-head{flex-direction:column}.plc-editor-analog-head small{text-align:left}}
