/* DI/DO Power Source 타입에만 적용한다. 기존 DI/DO Loop의 스타일은 유지한다. */
.dps-detail .lrn-scene{height:auto;display:flex;flex-direction:column;gap:10px}
.dps-detail .lrn-scene>svg{height:auto;max-height:none}
.dps-detail .lrn-status,.dps-detail .lrn-legend{position:static;width:auto;order:0}
.dps-detail .lrn-status{padding:10px 12px}
.dps-detail .lrn-status-big{display:inline-block;margin:5px 16px 5px 0}
.dps-detail .lrn-status-desc{display:inline-block;font-size:12px}
.dps-detail .lrn-legend{display:flex;flex-wrap:wrap;gap:4px 18px;padding:7px 10px}
.dps-detail .lrn-lower-panel,.dps-detail .lrn-lower-panel .lrn-panel-body{height:auto;min-height:0}
.dps-detail .lrn-info{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.dps-detail .lrn-info>div{margin-bottom:8px}
.dps-detail .lrn-info b{display:block;width:auto;color:#87b5d4}
.dps-actions{display:grid;gap:12px;padding:12px 0;font-size:12px}
.dps-actions button:focus-visible{outline:2px solid #31cfff;outline-offset:2px}
.dps-actions button{min-height:44px;border:1px solid #2d7eb0;border-radius:7px;background:#0c304b;color:#e2f4ff;font-weight:700}
.dps-actions label{display:flex;justify-content:flex-start;align-items:center;gap:9px;min-height:36px;margin:0;font-size:13px;cursor:pointer}
.dps-actions input{width:20px;height:20px;accent-color:#168dff;flex-shrink:0}
.dps-actions p,.dps-explanation{font-size:12px;line-height:1.7;color:#b6cbd9;overflow-wrap:anywhere}
.dps-explanation p{margin:8px 0}
.dps-diagram .dps-side-label{font-size:12px;font-weight:700}
.dps-side-class-field .dps-side-label{fill:#ffc076}
.dps-side-class-card .dps-side-label{fill:#8dc8ff}
.dps-diagram text{fill:#c4d9e7;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:18px}
.dps-diagram .dps-caption{font-size:20px;font-weight:700}
.dps-diagram .dps-small{font-size:16px}
.dps-supply{fill:#102b39;stroke:#ed9c45;stroke-width:2}
.dps-device{fill:#0b2133;stroke:#37617e;stroke-width:2}
.dps-diagram .is-highlight{stroke:#ffd371;stroke-width:4}
.dps-wire{fill:none;stroke:#8399a9;stroke-width:3}
.dps-wire.dps-feed{stroke:#ffb55b}
.dps-wire.dps-return{stroke:#72b4ef}
.dps-switch circle{fill:#d8e9f5;stroke:none}
.dps-contact,.dps-load-line{fill:none;stroke:#c5dbe8;stroke-width:3}
.dps-input{fill:#142d41;stroke:#88b9d6;stroke-width:2}
.dps-lamp{fill:#152b3a;stroke:#a4c1d4;stroke-width:2}
.dps-lamp.is-on{fill:#e7b844;stroke:#ffe6a1}
.dps-terminal{fill:#2b3a42;stroke:#9ab3c5;stroke-width:2}
.dps-terminal-hole{fill:#c5d8e4}
.dps-power-port{fill:#e4f1f8;stroke:#79a8c4;stroke-width:1.5}
.dps-diagram .dps-port-label{font-size:14px;font-weight:700;fill:#c7e0f1}
.dps-current{fill:none;stroke:#43eeab;stroke-width:3;stroke-dasharray:5 12;animation:dps-flow 1s linear infinite;pointer-events:none}
.dps-current-arrow{fill:none;stroke:#43eeab;stroke-width:4}
.dps-diagram .dps-state{fill:#43eeab;font-weight:700;font-size:20px}
.dps-diagram .dps-state.is-off{fill:#ff858d}
.dps-information-line{fill:none;stroke:#c893fa;stroke-width:2;stroke-dasharray:6 6}
.dps-information-arrow{fill:none;stroke:#c893fa;stroke-width:3}
.dps-information,.dps-diagram .dps-information{color:#d3a6ff;fill:#d3a6ff}
.dps-plus,.dps-diagram .dps-plus{color:#ffc076;fill:#ffc076}
.dps-zero,.dps-diagram .dps-zero{color:#8dc8ff;fill:#8dc8ff}
.dps-flow-key{color:#43eeab}
.dps-diagram.is-unpowered .dps-wire{stroke:#657785}
@keyframes dps-flow{to{stroke-dashoffset:-34}}
@media(prefers-reduced-motion:reduce){.dps-current{animation:none}}
@media(max-width:700px){
 .dps-diagram .dps-side-label{font-size:16px}
 .dps-diagram .dps-port-label{font-size:16px}
 .dps-detail .lrn-scene>.lrn-legend{display:flex;font-size:12px}
 .dps-detail .lrn-scene>[data-lrn-scene="mobile"]{max-width:460px}
}
