.command-page .topbar{height:54px}
.command-page .content{padding:16px 28px 40px}
.command-page .page-heading{align-items:center;margin-bottom:11px}
.command-page .page-heading h1{font-size:22px;margin:0}
.command-device{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin-bottom:9px}
.command-device h2{margin:0 0 2px;font-size:16px;color:#1a2d4a}
.command-device p{margin:0;color:#8593a5;font-size:11px}
.device-picker{display:flex;align-items:end;gap:7px}
.device-picker label,.command-form label{display:flex;flex-direction:column;gap:3px;color:#53647a;font-size:11px;font-weight:700}
.device-picker select,.command-form select,.command-form input{height:34px;min-height:34px;border:1px solid #dbe5f0;border-radius:8px;background:#fff;padding:5px 9px;color:#213551}
.device-picker select{width:215px;max-width:36vw}
.device-picker .outline-btn{min-height:34px;padding:0 12px}
.command-status{display:flex;align-items:center;gap:10px;padding:7px 12px;background:#fff7f0;border:1px solid #f7ddc3;border-radius:10px;margin-bottom:11px}
.command-status.ready{background:#effcf5;border-color:#b8ebcb}
.command-status p{margin:0;color:#7d6a58;font-size:11px;line-height:1.4}
.command-status.ready p{color:#4b8567}
.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.command-panel{padding-bottom:14px}
.command-panel .panel-head{padding:12px 16px 6px;margin:0}
.command-panel .panel-head h2{font-size:16px;margin:1px 0 0}
.command-panel .eyebrow{font-size:10px}
.command-help{font-size:11px;color:#8a98a9;line-height:1.4;margin:0 16px 8px}
.command-form{display:flex;align-items:end;justify-content:flex-start;gap:8px;padding:0 16px;margin-top:7px}
.command-form label:not(.write-confirm){flex:none}
.command-form select{width:260px;max-width:100%}
.command-form input[name="address"]{width:110px}
.command-form input[name="percent"]{width:110px}
.command-form button{white-space:nowrap;min-height:34px;padding:0 12px}
.raw-read{border-top:1px solid #edf1f6;padding-top:10px;margin-top:12px}
.operation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,90px));gap:6px;padding:0 16px;max-width:412px}
.operation-button{border:1px solid #cbdcf7;background:#f3f7ff;color:#2453a2;border-radius:8px;padding:7px 8px;font-weight:700;font-size:12px;cursor:pointer}
.operation-button.stop{border-color:#f0d6ce;color:#a84d35;background:#fff7f4}
.operation-button:hover:not(:disabled){filter:brightness(.97)}
.write-confirm{grid-column:1/-1;display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;color:#66788e;font-size:11px;font-weight:600;margin:0 0 2px}
.write-confirm input{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0;accent-color:#2d70ed}
.command-panel h3{font-size:13px;color:#213551;margin:9px 16px 3px}
.command-divider{border-top:1px solid #edf1f6;margin:12px 16px 0}
.frequency-form{display:grid;grid-template-columns:max-content max-content;justify-content:start;align-items:end;gap:5px 9px}
.frequency-form .write-confirm{grid-column:1/-1}
.command-reference{margin-top:12px;padding-bottom:0}
.command-reference summary{cursor:pointer;padding:11px 16px;color:#365c97;font-size:12px;font-weight:700}
.command-reference[open] summary{border-bottom:1px solid #edf1f6}
.register-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px 16px;padding:8px 16px 16px}
.register-grid>div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #edf1f6;font-size:11px;color:#586a80}
.register-grid code{color:#255cae;font-weight:700}
.command-panel button:disabled,.command-form button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:1050px){.command-grid{grid-template-columns:1fr}.register-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.command-page .content{padding:14px 17px 36px}.command-page .topbar{height:50px}}
@media(max-width:700px){.command-device{align-items:stretch;flex-direction:column}.device-picker{align-items:end}.device-picker select{max-width:65vw}.command-status{align-items:flex-start;flex-direction:column;gap:4px}.register-grid{grid-template-columns:1fr}}
@media(max-width:430px){.command-form{flex-wrap:wrap}.command-form select{width:min(260px,calc(100vw - 75px))}.frequency-form{display:grid;grid-template-columns:1fr auto}.command-panel .frequency-form label:not(.write-confirm){width:110px}}
.live-strip{margin-bottom:14px;padding:12px 16px}
.live-strip-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:12px;color:#53647a}
.live-strip-row>strong{font-size:14px;color:#213551}
.live-strip-row #live-note{color:#8795a5;font-size:11px}
.live-strip-row button{min-height:30px;padding:0 11px}
