.terminal-dialog.k3-dialog{width:min(1220px,96vw);max-width:1220px;height:auto;max-height:96dvh;padding:0;border:1px solid #314155;border-radius:20px;background:#0c1725;color:#e5eef6;overflow:auto;box-shadow:0 32px 110px #0009}.k3-shell{padding:20px 24px;box-sizing:border-box;font-family:Inter,'Segoe UI',sans-serif}.k3-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.k3-top h2{font-size:24px;letter-spacing:-.7px;margin:5px 0 0;color:#f5f9fd}.k3-top>div>span{font-size:12px;color:#86b5b4;letter-spacing:.8px}.k3-top-right{display:flex;align-items:center;gap:16px}.k3-replay-label{border:1px solid #324553;padding:7px 11px;border-radius:20px;color:#a3bacb;font-size:11px}.k3-close{border:0;background:#213040;color:#dbe7f1;font-size:24px;border-radius:10px;width:36px;height:36px;cursor:pointer}.k3-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;align-items:start}.k3-control{min-width:0;max-width:650px}.k3-lcd{aspect-ratio:1/1;background:#dae0d2;color:#263941;border:12px solid #283544;border-radius:16px;box-shadow:inset 0 0 30px #76816b40,0 5px 16px #0004;display:flex;flex-direction:column;overflow:hidden;font-family:'Consolas','Courier New',monospace}.k3-lcd-header{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:#e7cc59;gap:6px}.k3-lcd-header strong{font-size:19px;color:#9b302b;letter-spacing:-1px;white-space:nowrap}.k3-lcd-header small{font-size:12px;color:#293b3c;letter-spacing:0}.k3-lcd-header>span{font-size:11px;font-weight:700;border:1px solid #746a32;padding:3px 5px}.k3-paths{display:grid;grid-template-columns:1fr 1fr;background:#718197;color:#fff;padding:6px 8px;gap:10px;font-size:11px}.k3-lcd-content{flex:1;min-height:0;padding:14px 16px;display:flex;overflow:hidden}.k3-lcd-content>[role=tabpanel]{width:100%;min-width:0}.k3-lcd-footer{background:#c1c9b9;display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:7px 12px;border-top:1px solid #abb5a1}.k3-softkeys{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:8px}.k3-softkeys button{background:linear-gradient(#34414f,#24303d);border:1px solid #435365;border-bottom:3px solid #17202b;border-radius:6px;color:#cbd7e3;padding:12px 2px;font-size:10px;font-weight:700;cursor:pointer;letter-spacing:.5px}.k3-softkeys button[aria-selected=true]{background:#e8d27d;border-color:#ecd98f;color:#253338}.k3-softkeys button:focus-visible,.k3-shell button:focus-visible,.k3-shell select:focus-visible{outline:2px solid #59e0c2;outline-offset:3px}.k3-page-title{font-size:20px;letter-spacing:1px;border-bottom:2px solid #778d83;padding-bottom:9px;display:flex;justify-content:space-between;margin-bottom:12px}.k3-page-title span{font-size:11px;align-self:center}.k3-line{display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:center}.k3-line span{min-width:0}.k3-line small{grid-column:1/-1;font-size:10px;color:#5d6c63}.k3-counter-main{margin:24px 8px 22px}.k3-counter-main .k3-line{margin-bottom:13px;font-size:23px}.k3-counter-main b{font-size:38px;font-weight:500}.k3-counter-times{padding:12px 9px;background:#c8d1c0;border-radius:6px}.k3-counter-times .k3-line{font-size:13px;margin-bottom:9px}.k3-counter-times b{font-size:18px}.k3-lcd-note{margin-top:13px;font-size:10px;line-height:1.5;color:#5a6860}.k3-program-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;height:85%}.k3-program-grid article{border:1px solid #9aa992;overflow:hidden;min-width:0}.k3-program-grid header{background:#bdcbb5;padding:8px;display:flex;justify-content:space-between;font-size:12px}.k3-program-meta{background:#d1dbc9;padding:5px;font-size:10px}.k3-program-grid pre{font:12px/1.65 'Consolas',monospace;margin:8px;white-space:pre-wrap;word-break:break-word;overflow:hidden}.k3-spindle-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.k3-spindle-grid article{background:#cbd5c3;border:1px solid #abbca1;border-radius:6px;padding:10px}.k3-spindle-grid header{display:flex;align-items:baseline;gap:6px;font-size:15px}.k3-spindle-grid header small{font-size:9px;color:#60765f}.k3-spindle-grid header b{margin-left:auto}.k3-spindle-grid svg{width:100%;height:54px;display:block;margin:6px 0}.k3-chart-grid{stroke:#a9b69d;stroke-width:1;fill:none}.k3-chart-line{fill:none;stroke:#258469;stroke-width:2}.k3-gauge{height:4px;background:#a9b99b;border-radius:2px;overflow:hidden}.k3-gauge i{height:100%;display:block;background:#26826a}.k3-spindle-rpm{font-size:10px;display:flex;gap:12px;justify-content:center;padding:12px 0}.k3-servo-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:10px}.k3-servo-row>div{border-top:1px solid #a9b99b;padding-top:7px}.k3-servo-row p{margin:6px 0;display:flex;flex-wrap:wrap;gap:4px}.k3-servo-row b{font-size:10px;border:1px solid #b1bea6;padding:3px;font-weight:500}.k3-alarm-active{border-left:4px solid #b14838;background:#d6c0ad;padding:13px;display:flex;flex-direction:column;gap:5px;margin-bottom:9px;font-size:12px}.k3-alarm-active b{font-size:22px;color:#9a342c}.k3-alarm-clear{padding:18px;background:#c3d4b7;color:#386547;text-align:center}.k3-history-title{font-size:11px;margin:18px 0 8px;text-transform:uppercase}.k3-history article{display:grid;grid-template-columns:65px 1fr;gap:4px;font-size:10px;border-top:1px solid #acb89f;padding:9px 0}.k3-history small{grid-column:2;color:#607458}.k3-io-list{display:grid;gap:10px}.k3-io-list article{display:grid;grid-template-columns:1fr auto 15px;gap:6px 16px;background:#c7d3be;padding:13px 15px;align-items:center;border:1px solid #a5b596;border-radius:5px}.k3-io-list b{font-size:24px}.k3-io-list small{font-size:10px;grid-row:2;grid-column:1/3;color:#5b6e52}.k3-io-list i{grid-column:3;grid-row:1;width:12px;height:12px;background:#8f9c83;border-radius:50%}.k3-io-list [data-state=on] i{background:#209372;box-shadow:0 0 10px #25937670}.k3-io-commands{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px;font-size:12px}.k3-options .k3-line{border-bottom:1px solid #a9b99b;padding:10px 0;font-size:12px}.k3-options b{font-weight:500}.k3-empty-state{height:100%;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:0 20px}.k3-empty-state>span{font-size:10px;letter-spacing:2px;color:#67775e}.k3-empty-state h3{font-size:23px}.k3-empty-state p{font-size:12px;line-height:1.8}.k3-context{min-width:0;padding:7px 0}.k3-context-heading{display:flex;justify-content:space-between;align-items:center;color:#95adbd;font-size:13px;margin-bottom:15px}.k3-context-heading b{font-size:26px;color:#71d6bc;font-weight:500}.k3-count-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.k3-count-cards>div{background:#182a39;border:1px solid #2c414f;padding:12px 10px;border-radius:9px}.k3-count-cards span{font-size:11px;color:#8ca6b6;display:block}.k3-count-cards b{font-size:27px;display:block;margin-top:6px;font-weight:500}.k3-context progress{width:100%;height:5px;accent-color:#5bbfa5;display:block;margin-top:15px}.k3-provenance{font-size:10px;line-height:1.6;color:#839aaa;min-height:32px;margin:10px 0 20px}.k3-context-time .k3-line{font-size:11px;border-bottom:1px solid #27394a;padding:9px 0;gap:5px}.k3-context-time .k3-line b{font-size:12px;color:#cfdfeb}.k3-context-time .k3-line:nth-child(2){display:flex;align-items:start;flex-direction:column}.k3-pump{margin-top:19px}.k3-pump header{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.k3-pump h3{font-size:13px;margin:0;color:#c0d4df}.k3-pump header>span{color:#f99c88;font-size:10px}.k3-valves{display:grid;grid-template-columns:1fr 1fr;gap:7px}.k3-valves>div{background:#182735;padding:10px;border:1px solid #2e3d49;border-radius:7px;display:flex;align-items:center;gap:7px;font-size:11px;color:#98adbe}.k3-valves i{background:#556b78;width:6px;height:6px;border-radius:50%}.k3-valves b{margin-left:auto;font-size:11px}.k3-valves [data-state=on]{background:#19382f;border-color:#316551;color:#a0e2c8}.k3-valves [data-state=on] i{background:#55d5a0;box-shadow:0 0 8px #55d5a070}.k3-pump p{font-size:10px;color:#809bad}.k3-live-alarms{margin-top:14px;display:grid;gap:6px}.k3-live-alarms>span{border:1px solid #663f3a;background:#392b2b;border-radius:6px;padding:9px;font-size:10px;color:#efb2a6}.k3-live-alarms>span.k3-clear{color:#92b4a4;border-color:#2b493f;background:#142b25}.k3-context-foot{font-size:10px;color:#7790a0;margin-top:14px}.k3-replay-controls{margin-top:18px;background:#142232;border:1px solid #2b3d50;border-radius:10px;padding:12px 14px}.k3-replay-heading{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8da7ba;margin-bottom:8px}.k3-replay-heading b{color:#c6d7e5}.k3-timeline{width:100%;height:12px;accent-color:#72cdb7;cursor:pointer}.k3-player-row{display:flex;gap:15px;align-items:center;margin-top:8px;font-size:10px;color:#8aa1b4}.k3-player-row label{display:flex;gap:7px;align-items:center}.k3-player-row select{background:#1f3245;color:#c2d5e5;border:1px solid #3b5268;border-radius:5px;padding:6px;font:11px 'Segoe UI',sans-serif;max-width:100%;min-width:0}.k3-play{background:#d7e7eb;color:#213846;border:0;border-radius:6px;padding:8px 13px;font-size:11px;cursor:pointer;min-width:74px}.k3-event-picker{flex:1;min-width:0}.k3-event-picker select{flex:1;min-width:0}.k3-loop-label{white-space:nowrap}.k3-fleet-data{min-height:90px}.k3-fleet-data>p{font-size:11px}.k3-terminal-choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}
@media(min-width:800px) and (max-height:950px){.terminal-dialog.k3-dialog{width:min(1090px,96vw)}.k3-shell{padding:15px 20px}.k3-layout{grid-template-columns:minmax(0,1fr) 340px;gap:20px}.k3-control{max-width:min(560px,calc(92dvh - 208px))}.k3-lcd-content{padding:10px 12px}.k3-counter-main{margin:12px 5px}.k3-counter-main .k3-line{font-size:20px;margin-bottom:7px}.k3-counter-main b{font-size:32px}.k3-counter-times{padding:9px}.k3-counter-times b{font-size:16px}.k3-lcd-note{font-size:9px;margin-top:9px}.k3-spindle-grid article{padding:7px}.k3-spindle-grid svg{height:38px}.k3-io-list{gap:7px}.k3-io-list article{padding:8px 12px}.k3-options .k3-line{padding:7px 0;font-size:11px}.k3-provenance{margin-bottom:10px}.k3-context-time .k3-line{padding:7px 0}.k3-pump{margin-top:13px}.k3-context{padding:0}.k3-top{margin-bottom:12px}.k3-softkeys button{padding:10px 2px}}
@media(max-width:799px){.terminal-dialog.k3-dialog{width:96vw;max-height:96dvh}.k3-shell{padding:14px}.k3-top{gap:8px}.k3-top h2{font-size:20px}.k3-top-right{gap:8px}.k3-replay-label{display:none}.k3-layout{grid-template-columns:1fr;gap:15px}.k3-control{max-width:none}.k3-context{display:none}.k3-lcd{border-width:7px}.k3-lcd-header{padding:7px}.k3-lcd-header strong{font-size:16px}.k3-lcd-header small{font-size:9px}.k3-lcd-content{padding:9px}.k3-paths{font-size:9px}.k3-counter-main{margin:12px 6px}.k3-counter-main b{font-size:31px}.k3-counter-main .k3-line{font-size:19px;margin-bottom:7px}.k3-counter-times b{font-size:15px}.k3-counter-times{padding:7px}.k3-counter-times .k3-line{font-size:11px;margin-bottom:5px}.k3-lcd-note{font-size:8px;margin-top:7px}.k3-softkeys{gap:3px}.k3-softkeys button{font-size:8px;padding:10px 1px}.k3-replay-heading{flex-direction:column;gap:4px}.k3-player-row{flex-wrap:wrap;gap:10px}.k3-event-picker{flex-basis:100%;order:4}.k3-loop-label{margin-left:auto}.k3-spindle-grid{gap:6px}.k3-spindle-grid article{padding:6px}.k3-spindle-grid header{font-size:11px}.k3-spindle-grid header small{font-size:8px}.k3-spindle-grid svg{height:30px}.k3-spindle-rpm{font-size:8px;gap:5px;padding:8px 0}.k3-servo-row,.k3-servo-row b{font-size:8px}.k3-io-list{gap:6px}.k3-io-list article{padding:6px 10px}.k3-io-list b{font-size:20px}.k3-options .k3-line{padding:6px 0;font-size:10px}.k3-program-grid pre{font-size:9px;line-height:1.65;margin:5px}.k3-lcd-footer{font-size:9px;padding:6px}.k3-alarm-active{padding:9px;font-size:10px}.k3-alarm-active b{font-size:18px}.k3-history article{font-size:9px;padding:6px}.k3-history-title{margin-top:12px;font-size:10px}}
.k3-lcd p,.k3-lcd h3,.k3-lcd h4{color:#445747}.k3-lcd .k3-lcd-note{color:#52634e}.k3-lcd .k3-empty-state p{color:#596b55}
.k3-shell{line-height:1.35}.k3-lcd{line-height:1.2}.k3-counter-main b{line-height:1.1}.k3-counter-times .k3-line{line-height:1.2}.k3-lcd .k3-lcd-note{line-height:1.4}
.k3-context-heading{margin-bottom:10px}.k3-count-cards>div{padding:10px 9px}.k3-count-cards b{font-size:24px}.k3-provenance{min-height:0;margin:8px 0 12px;line-height:1.35}.k3-context-time .k3-line{padding:6px 0}.k3-context-foot{margin-top:10px}.k3-page-title{font-size:18px;padding-bottom:7px;margin-bottom:8px;line-height:1.1}.k3-counter-main b{font-size:28px}.k3-io-list{grid-template-columns:repeat(2,minmax(0,1fr))}.k3-io-list article{grid-template-columns:1fr 12px;padding:10px;font-size:13px}.k3-io-list b{grid-column:1;grid-row:2}.k3-io-list small{grid-row:3;grid-column:1/3}.k3-io-list i{grid-column:2;grid-row:1}.k3-alarm-active{padding:8px;gap:4px;font-size:10px}.k3-alarm-active b{font-size:18px}.k3-alarm-clear{padding:10px;font-size:12px}.k3-history-title{margin:12px 0 8px}.k3-history article{padding:7px 0;gap:3px}.k3-spindle-grid svg{height:25px;margin:4px 0}.k3-spindle-rpm{padding:7px 0}.k3-servo-row p{line-height:1.1;margin:4px 0;gap:3px}.k3-servo-row b{padding:2px}.k3-options .k3-line{padding:5px 0}
.k3-dialog[data-k3-alarm=true] .k3-lcd{border-color:#79453e;box-shadow:0 0 0 1px #cf695a,0 0 22px #d6614730}.k3-dialog[data-k3-alarm=true] .k3-lcd-header{background:#e79881}.k3-dialog[data-k3-alarm=true] [data-k3-status]{background:#af4036;border-color:#af4036;color:white}.k3-dialog[data-k3-alarm=true] .k3-page-title{color:#9b342d;border-bottom-color:#b16c5a}.k3-dialog[data-k3-alarm=true] .k3-top h2{color:#ffd0c2}
@media(min-width:800px) and (max-height:950px){.terminal-dialog.k3-dialog{width:min(1090px,calc(92dvh + 160px),96vw)}.k3-control{max-width:min(560px,calc(92dvh - 270px))}.k3-spindle-grid svg{height:30px}.k3-counter-main{margin:9px 4px}.k3-counter-times .k3-line{margin-bottom:6px}.k3-counter-main .k3-line{margin-bottom:5px}.k3-options .k3-line{padding:6px 0}}
@media(max-width:799px){.k3-control{width:100%;max-width:min(100%,calc(96dvh - 325px));margin-inline:auto}.k3-replay-controls{margin-top:12px}.k3-top{margin-bottom:12px}.k3-program-grid{height:83%}}
.k3-alarm-active{line-height:1.1}.k3-program-grid pre{white-space:pre}
.k3-alarm-active header{display:flex;align-items:center;justify-content:space-between;gap:7px}.k3-alarm-active small{font-size:9px;color:#8e4d37;white-space:nowrap}.k3-history-title{font-size:9px}
.terminal-dialog.k3-dialog{height:fit-content}.k3-lcd .k3-lcd-note{margin-bottom:0}
.k3-softkeys{grid-template-columns:repeat(7,minmax(0,1fr))}
.k3-operator{display:none;font-size:13px}.k3-dialog[data-k3-test=true] .k3-context>:not(.k3-operator){display:none}.k3-dialog[data-k3-test=true] .k3-operator{display:block}
.k3-operator header{display:grid;gap:5px;color:#8caabd;margin-bottom:12px}.k3-operator header b{color:#e7f4f4;font-size:17px}.k3-stop-form{display:grid;gap:9px}.k3-stop-form label{display:grid;gap:5px;color:#a3beca;font-size:12px}
.k3-stop-form select,.k3-stop-form textarea{width:100%;box-sizing:border-box;background:#1b2e3e;color:#e2f0f2;border:1px solid #3a5262;border-radius:7px;padding:9px;font:14px 'Segoe UI',sans-serif}.k3-stop-form textarea{resize:none}
.k3-stop-form button{min-height:44px;border:1px solid #4aa394;border-radius:8px;background:#205e54;color:#d4faf0;cursor:pointer;font:600 14px 'Segoe UI',sans-serif}.k3-stop-form :disabled{opacity:.5;cursor:not-allowed}
.k3-audit-status{font-size:11px;line-height:1.4;color:#82b9ac;min-height:16px;margin:8px 0}.k3-audit-status[data-error=true]{color:#f4ad95}.k3-control-lock{display:grid;gap:4px;border:1px solid #5e4b34;background:#29281f;color:#d7c393;border-radius:7px;padding:9px;font-size:11px;line-height:1.35}
.k3-operator h3{font-size:12px;font-weight:600;margin:13px 0 7px;color:#a6c4d1}.k3-model-audit{list-style:none;margin:0;padding:0;display:grid;gap:6px}.k3-model-audit li{display:grid;gap:3px;border-top:1px solid #294451;padding:6px 0;font-size:11px;color:#cad9df;line-height:1.25}.k3-model-audit time,.k3-model-audit small{font-size:10px;color:#7ea6ad}
@media(max-width:799px){.k3-dialog[data-k3-test=true] .k3-context{display:block}.k3-test-actions button{min-height:44px}.k3-softkeys button{min-height:44px}.k3-model-audit{grid-template-columns:1fr 1fr;gap:8px}}
@media(min-width:800px) and (max-height:800px){.k3-test-panel{gap:5px}.k3-test-panel .k3-page-title{font-size:14px}.k3-test-warning{font-size:12px!important}.k3-test-state{padding:6px;font-size:12px}.k3-test-state small{font-size:11px}.k3-test-counts span{font-size:11px}.k3-test-counts b{font-size:19px}.k3-test-actions button{font-size:12px;min-height:31px;padding:5px}.k3-test-source,.k3-test-last{font-size:11px;line-height:1.2}.k3-test-last{padding:5px}.k3-test-prepare{font-size:11px;min-height:25px}}
.k3-softkeys [data-k3-tab=test]{border-color:#698c9b;color:#c4edf2}
.k3-test-panel{display:flex;flex-direction:column;gap:8px;height:100%;font-family:'Segoe UI',sans-serif}
.k3-test-panel .k3-page-title{margin:0;font:700 17px 'Consolas',monospace}
.k3-test-warning{font-size:14px!important;margin:0;color:#6b4426!important}
.k3-test-state{display:grid;grid-template-columns:1fr auto;gap:3px;background:#becfbc;border:1px solid #8fa88e;border-radius:6px;padding:8px 10px;font-size:14px}
.k3-test-state small{grid-column:1/-1;font-size:13px}
.k3-test-state[data-state=ONE_CYCLE_STOP],.k3-test-state[data-state=HOLD]{background:#e0d0a6;border-color:#b79c62}
.k3-test-state[data-state=ALARM],.k3-test-state[data-state=GAP],.k3-test-state[data-state=BLOCKED]{background:#e3b7a8;border-color:#b47564}
.k3-test-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.k3-test-counts span{display:block;font-size:13px;color:#596951}.k3-test-counts b{font-size:23px;font-weight:600}
.k3-test-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.k3-test-actions button,.k3-test-prepare{font:600 14px 'Segoe UI',sans-serif;border:1px solid #6c8b79;border-radius:6px;background:#315f51;color:#fff;min-height:35px;padding:7px 8px;cursor:pointer}
.k3-test-actions button:disabled{background:#c0c7b6;color:#65705e;border-color:#9aa88e;cursor:not-allowed}
.k3-test-actions [data-k3-test-action=one-cycle-on]{background:#856929;border-color:#856929}
.k3-test-actions [data-k3-test-action=one-cycle-on]:disabled{background:#c0c7b6;border-color:#9aa88e}
.k3-test-source,.k3-test-last{font-size:13px;line-height:1.35}.k3-test-last{padding:7px 8px;background:#ccd4c2;border-radius:5px}
.k3-test-prepare{background:transparent;color:#365344;border-color:#899c80;min-height:30px;margin-top:auto;font-size:13px}
@media(max-width:799px){.k3-dialog[data-k3-test=true] .k3-control{max-width:none}.k3-dialog[data-k3-test=true] .k3-lcd{aspect-ratio:auto;min-height:420px}.k3-test-panel{gap:7px}.k3-test-panel .k3-page-title{font-size:16px}}
@media(min-width:800px) and (max-height:950px){.k3-spindle-grid svg{height:22px;margin:2px 0}}
@media(max-width:480px){.k3-counter-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}.k3-counter-main .k3-line{display:flex;flex-direction:column;align-items:flex-start;font-size:11px;gap:3px}.k3-counter-main b{font-size:25px}.k3-spindle-grid svg{height:18px;margin:2px 0}.k3-options .k3-line{padding:4px 0}.k3-history article{font-size:8px;line-height:1.1;padding:4px 0}.k3-history small{font-size:8px;line-height:1.1}.k3-alarm-active{padding:6px;gap:3px;font-size:9px}.k3-alarm-active b{font-size:16px}.k3-program-grid pre{font-size:8px;line-height:1.5}.k3-io-list article{padding:8px;font-size:11px}}
@media(max-width:480px){.k3-io-list article{grid-template-columns:1fr auto;gap:4px}.k3-io-list b{grid-row:1;grid-column:2;font-size:18px}.k3-io-list small{grid-row:2;font-size:8px}.k3-io-list i{display:none}.k3-servo-row,.k3-servo-row b{font-size:8px}.k3-alarm-clear{padding:6px}.k3-history-title{margin:10px 0 6px}.k3-options .k3-line{padding:3px 0}}
@media(max-width:480px){.k3-spindle-grid article{padding:4px}.k3-spindle-grid svg{height:10px;margin:1px 0}.k3-spindle-rpm{padding:4px 0}}
@media(min-width:800px) and (max-height:950px){.k3-live-alarms{margin-top:10px}.k3-context-foot{margin-top:6px}}
/* Keep the tablet landscape test within the same square terminal shell. These
   rules intentionally follow base rules so compact sizes are not overridden. */
.k3-test-warning{line-height:1.2!important}.k3-test-panel{min-height:0}.k3-operator{min-width:0}.k3-model-audit span{overflow-wrap:anywhere}
@media(min-width:800px) and (max-height:850px){
 .k3-dialog[data-k3-test=true] .k3-shell{padding:12px 16px}
 .k3-dialog[data-k3-test=true] .k3-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px}
 .k3-dialog[data-k3-test=true] .k3-top{margin-bottom:10px}.k3-dialog[data-k3-test=true] .k3-top h2{font-size:21px}
 .k3-test-panel{gap:5px}.k3-test-panel .k3-page-title{font-size:14px;padding-bottom:5px}.k3-test-warning{font-size:11px!important}
 .k3-test-state{padding:5px 7px;font-size:12px}.k3-test-state small{font-size:11px}.k3-test-counts span{font-size:11px}.k3-test-counts b{font-size:19px}
 .k3-test-actions button{font-size:12px;min-height:34px;padding:5px}.k3-test-source,.k3-test-last{font-size:10px;line-height:1.2}.k3-test-last{padding:5px}
 .k3-test-prepare{font-size:11px;min-height:25px;padding:5px}.k3-stop-form{gap:6px}.k3-operator header{margin-bottom:8px}.k3-operator header b{font-size:15px}
 .k3-stop-form select,.k3-stop-form textarea{padding:7px}.k3-control-lock{padding:7px;font-size:10px}.k3-model-audit li:nth-child(n+3){display:none}
 .k3-dialog[data-k3-test=true] .k3-replay-controls{margin-top:12px}
}
@media(pointer:coarse) and (min-width:800px){.k3-test-actions button{min-height:44px}.k3-softkeys button{min-height:44px}}
@media(max-width:799px){.k3-dialog[data-k3-test=true]{margin-block:2dvh}.k3-dialog[data-k3-test=true] .k3-lcd{min-height:430px}.k3-dialog[data-k3-test=true] .k3-top h2{font-size:19px}.k3-dialog[data-k3-test=true] .k3-layout{gap:10px}}
@media(min-width:680px) and (max-width:799px) and (min-height:850px){.k3-dialog[data-k3-test=true] .k3-layout{grid-template-columns:minmax(0,1fr) 270px;gap:14px}.k3-dialog[data-k3-test=true] .k3-lcd{min-height:470px}.k3-dialog[data-k3-test=true] .k3-test-panel{gap:5px}.k3-dialog[data-k3-test=true] .k3-model-audit{grid-template-columns:1fr}.k3-dialog[data-k3-test=true] .k3-test-state{font-size:12px}.k3-dialog[data-k3-test=true] .k3-page-title{font-size:13px}.k3-dialog[data-k3-test=true] .k3-test-warning,.k3-dialog[data-k3-test=true] .k3-test-source,.k3-dialog[data-k3-test=true] .k3-test-last{font-size:11px!important}.k3-dialog[data-k3-test=true] .k3-test-actions button{font-size:12px}}
@media(pointer:coarse) and (min-width:800px) and (max-height:850px){.k3-test-panel{gap:3px}.k3-test-last{display:none}.k3-test-prepare{min-height:44px}}
@media(max-width:799px) and (max-height:750px){.k3-counter-main{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}.k3-counter-main .k3-line{display:flex;flex-direction:column;align-items:flex-start;font-size:11px;gap:3px}.k3-counter-main b{font-size:25px}.k3-spindle-grid article{padding:4px}.k3-spindle-grid svg{height:10px;margin:1px 0}.k3-spindle-rpm{padding:4px 0}.k3-history article{font-size:8px;line-height:1.1;padding:4px 0}.k3-history small{font-size:8px;line-height:1.1}.k3-alarm-active{padding:6px;gap:3px;font-size:9px}.k3-alarm-active b{font-size:16px}.k3-history-title{margin:10px 0 6px}.k3-options .k3-line{padding:3px 0}}
.k3-barfeeder{margin-top:18px;border-top:1px solid #718175;padding-top:12px;font:12px/1.4 'Segoe UI',sans-serif}.k3-barfeeder>header{font-weight:800;letter-spacing:.08em;margin-bottom:7px}.k3-barfeeder>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.k3-barfeeder article{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px;background:#ffffff35;border:1px solid #819084;border-radius:5px;min-width:0}.k3-barfeeder article span{font-size:10px}.k3-barfeeder article b{font:700 13px monospace}.k3-barfeeder [data-state=on]{background:#c8e9b5}.k3-barfeeder [data-state=fault]{background:#ebc7b7;color:#772623}.k3-barfeeder [data-state=unknown]{opacity:.7}.k3-barfeeder p{margin:9px 0 0}.k3-barfeeder small{display:block;opacity:.8;font-size:10px}.k3-io-list [data-valve-last-on]{font-size:10px;line-height:1.35;white-space:normal}
