/* Same steel cabinet, ivory keycaps and pictograms as the existing right panel. */
.rc-workspace{--rc-bg:#333e47;--rc-text:#e3e9eb;--rc-muted:#bdc9cd;--rc-line:#6c797e;box-sizing:border-box;background:var(--rc-bg);color:var(--rc-text);font:12px/1.35 'Segoe UI',Arial,sans-serif;padding:14px;container-type:inline-size;min-width:0;text-align:left;color-scheme:dark}
.rc-workspace *{box-sizing:border-box}.rc-workspace [hidden]{display:none!important}
.rc-workspace :is(h2,h3,h4,p){color:inherit;margin:0}.rc-workspace :is(button,input,textarea,select){font:inherit;letter-spacing:normal}.rc-workspace button{cursor:pointer}.rc-workspace button:disabled{cursor:not-allowed}.rc-workspace :is(button,input,select,textarea):focus-visible{outline:2px solid #f1d448;outline-offset:3px}
.rc-workspace svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.rc-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:9px;border-bottom:1px solid #7a888c;margin-bottom:9px}.rc-header h2{font:700 14px/1.3 Consolas,monospace;letter-spacing:.3px}.rc-header h2 small{font-size:10px;font-weight:400;margin-left:5px;color:#bcc7ca}.rc-mode-badge{font:9px Consolas,monospace;border:1px solid #9f9976;background:#494b40;color:#f1e4a4;padding:3px 5px;white-space:nowrap}.rc-eyebrow{font-size:10px;letter-spacing:.6px;color:#aebbba}
.rc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}.rc-tabs button,.rc-head-key,.rc-button{border:1px solid #939e9f;border-radius:3px;background:#d8dbcc;color:#36434a;box-shadow:inset 0 2px 1px #fff8,0 2px 0 #1a252d;padding:7px 4px;font-weight:650;font-size:10px;min-height:32px}.rc-tabs button[aria-pressed=true]{background:#e7cf58;border-color:#f1df91;color:#24302b}.rc-tabs button:active,.rc-head-key:active,.rc-button:active{transform:translateY(1px);box-shadow:inset 0 1px 4px #0004}
.rc-feedback{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#e1e6d6;border:2px solid #182128;box-shadow:inset 0 1px 4px #788375;padding:7px 10px;color:#34483c;font-family:Consolas,monospace;margin-bottom:12px}.rc-feedback>div{display:flex;justify-content:space-between;gap:4px}.rc-feedback span{font-size:10px}.rc-feedback b{font-size:11px;font-weight:700}.rc-feedback [data-state=RUN]{color:#196432}
.rc-target{display:flex;align-items:center;gap:6px;margin-bottom:12px;font-size:9px;letter-spacing:.4px}.rc-target>span{margin-right:5px}.rc-head-key{min-height:27px;padding:4px 8px;font-size:9px}.rc-head-key[aria-pressed=true]{background:#d8dfc3;box-shadow:inset 0 2px 1px #fff8,0 2px 0 #1a252d;border-top:3px solid #99d455}.rc-preview-toggle{display:flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap;font-size:10px;color:#c1cccf}.rc-preview-toggle input{accent-color:#e1cd59;width:13px;height:13px;margin:0}
.rc-panel-label{font-size:10px;display:flex;align-items:center;gap:8px;margin-bottom:8px;letter-spacing:.7px;color:#d3dde1}.rc-panel-label:after{content:'';height:1px;background:#76848e;flex:1}
.rc-command-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;padding:3px 3px 10px}
.rc-workspace .rc-panel-key{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;height:91px;padding:14px 4px 8px;border:1px solid #939e9f;border-radius:6px;background:#d8dbcc;color:#36434a;box-shadow:inset 0 2px 1px #fff8,0 3px 0 #1a252d;transition:transform .09s,box-shadow .09s,background .15s;font:inherit}
.rc-workspace .rc-panel-key>svg{width:34px;height:34px}.rc-workspace .rc-panel-key>strong{font:32px/34px Arial,sans-serif;font-weight:400}.rc-workspace .rc-panel-key>span{font-size:10px;line-height:1.2;font-weight:650;text-align:center}.rc-workspace .rc-panel-key>i{position:absolute;left:8px;top:7px;width:7px;height:7px;border-radius:50%;background:#4e5b53}.rc-workspace .rc-panel-key>i[data-on=true]{background:#9bff22;box-shadow:0 0 7px 2px #87ff4690}.rc-workspace .rc-panel-key[data-rc-action=start]:has(>i[data-on=true]){background:#b3d4ae;box-shadow:inset 0 2px 1px #fff8,0 3px 0 #1a252d,0 0 12px #62ba5350}.rc-panel-key:hover:not(:disabled){filter:brightness(1.06)}.rc-panel-key:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 4px #0004,0 1px 0 #1a252d}.rc-panel-key:disabled{background:#bfc5bd;color:#59645f}.rc-panel-key>i[data-unavailable]{background:#aeb2a6;outline:1px dashed #52636a}.rc-panel-key small{font-size:7px;letter-spacing:.3px;color:#5e685f}
.rc-emergency-key{border:1px solid #6d777c;border-radius:5px;background:#303b43;color:#d6e0e2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;height:91px;padding:3px}.rc-emergency-key>i{display:grid;place-items:center;width:54px;height:54px;border:7px solid #e0c23e;box-shadow:inset 0 2px 2px #ee6d61,0 3px 0 #18232a;border-radius:50%;background:#b84038;color:#fff;font:700 12px Arial,sans-serif}.rc-emergency-key>span{font-size:8px;font-weight:650}.rc-emergency-key small{font-size:7px;color:#b7c3c7}
.rc-preview-end{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:7px 0 9px;font-size:9px;color:#bfcacf}.rc-preview-end button{font:8px Consolas,monospace;padding:5px 7px;border:1px solid #7c888c;background:#45515a;color:#e0e6e7;border-radius:2px;min-height:26px}.rc-preview-end button:disabled{color:#879397;border-color:#606d74}.rc-status-line{background:#d9decf;color:#3e5144!important;border:1px solid #929f93;font:10px/1.5 Consolas,monospace;padding:6px 8px;min-height:29px}.rc-activity{margin-top:10px;color:#bdc9cb;font-size:10px}.rc-activity summary{cursor:pointer}.rc-activity ol{list-style:none;margin:7px 0 0;padding:0}.rc-activity li{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #55666c;padding:6px 0}.rc-activity small{font-size:9px;color:#9cafb4}
/* Program preparation is a compact NC screen, not a separate website/card dashboard. */
.rc-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 0 10px}.rc-section-head h3{font:700 12px Consolas,monospace}.rc-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 8px;font-size:10px!important}.rc-button svg{width:15px;height:15px}.rc-button:disabled{color:#89908a;background:#afb9b1}.rc-primary{background:#e3d16a;border-color:#ecde99}.rc-program-actions{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.rc-program-actions>.rc-button{flex:1;white-space:nowrap}
.rc-program-layout{display:flex;flex-direction:column;gap:12px}.rc-program-document{min-width:0}.rc-program-setup{margin-bottom:10px;border-top:1px solid #748185;border-bottom:1px solid #748185;padding:7px 0}.rc-program-setup summary{cursor:pointer;font:10px Consolas,monospace}.rc-program-setup summary span{float:right;font-size:9px;color:#bbc9b9}.rc-program-setup[open] summary{margin-bottom:10px}.rc-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.rc-workspace label:has([data-field]){display:grid;gap:4px;color:#c9d4d7;font-size:10px;font-weight:500}.rc-workspace [data-field]{background:#e7e9da;color:#2f403b;border:1px solid #8a9791;border-radius:2px;min-height:31px;padding:5px 7px;min-width:0;width:100%;font:11px Consolas,monospace;color-scheme:light}.rc-workspace input::placeholder,.rc-workspace textarea::placeholder{color:#7c897e;opacity:1}.rc-notes-label{margin-top:10px}.rc-notes-label textarea{resize:vertical}
.rc-editor-heading{display:flex;align-items:center;gap:5px;background:#d0d8c7;color:#354438;border:1px solid #a6b1a0;padding:5px 7px;font-family:Consolas,monospace}.rc-editor-heading strong{font-size:11px}.rc-editor-heading>span{font-size:8px;margin-left:auto}.rc-editor-heading button{border:1px solid #909b8c;background:#e5e8d6;color:#354438;border-radius:2px;min-width:26px;min-height:24px;box-shadow:0 1px 0 #657260;font:12px Consolas,monospace}.rc-editor-wrap{display:flex;height:240px;border:1px solid #a6b1a0;border-top:0;background:#f4f1de;overflow:hidden}.rc-editor-wrap>pre{width:36px;flex-shrink:0;padding:10px 7px 10px 3px;margin:0;text-align:right;overflow:hidden;font:12px/22px Consolas,monospace;white-space:pre;background:#e3e6d5;color:#8b9889;border-right:1px solid #c5cbb9}.rc-editor-wrap>textarea{flex:1;width:100%;min-width:0;resize:none;background:transparent;color:#304f3d;border:0;border-radius:0;box-shadow:none;padding:10px;font:12px/22px Consolas,'Courier New',monospace;tab-size:2;white-space:pre;outline-offset:-2px!important;overflow:auto;color-scheme:light}.rc-editor-footer{display:flex;justify-content:space-between;gap:5px;border:1px solid #a6b1a0;border-top:0;padding:5px 7px;font:9px Consolas,monospace;background:#d9dfce;color:#536a51}.rc-date-row{display:flex;flex-wrap:wrap;gap:6px 15px;margin-top:8px;font-size:9px;color:#9badaf}.rc-date-row b{font-weight:400;color:#c1cccb;margin-left:4px}
.rc-program-side{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #6c797e;padding-top:10px}.rc-transfer-card>button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;border:1px solid #7b8584;background:#a6afa7;color:#515e55;border-radius:2px;min-height:32px;font-size:10px;margin-top:6px}.rc-transfer-card p{font-size:9px!important;color:#aebcbb!important;margin-top:7px}.rc-format-card>button{width:100%}.rc-format-card ul{padding-left:13px;margin:9px 0;font-size:9px;color:#b7c5c3}.rc-format-card li{padding-bottom:5px}.rc-check-error{color:#f0d59c}.rc-program-message{border-top:1px solid #64747a;border-bottom:1px solid #64747a;color:#c5d4cd;padding:8px 0;font:10px/1.5 Consolas,monospace;margin:12px 0}.rc-library header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.rc-library h4{font-size:11px}.rc-library header>span{font-size:10px;color:#acbdbd}.rc-library [data-program-library]>p{font-size:10px;color:#acbdbd}.rc-library [data-program-library]>button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #69797b;background:#2a3840;color:#d5ded9;padding:9px;margin-top:6px;border-radius:2px}.rc-file-icon{border:1px solid #899984;color:#bdd0b9;padding:7px 4px;font:10px Consolas,monospace}.rc-library b{font-size:10px}.rc-library small{display:block;font-size:9px;color:#a1b4ad;margin-top:3px}.rc-revision-meta{margin-left:auto;white-space:nowrap;text-align:right;font-size:10px}.rc-draft-tag{font-size:8px;color:#d0c98f;border:1px solid #8b8762;padding:2px 4px}
.rc-confirm{width:min(370px,92vw);border:2px solid #8b969a;border-radius:4px;background:#333e47;color:#e0e8e9;padding:20px;box-shadow:0 15px 60px #0009;font:13px/1.5 'Segoe UI',sans-serif}.rc-confirm::backdrop{background:#091017b3}.rc-confirm h3{font-size:20px;color:#e9ebde!important;margin:8px 0}.rc-confirm p{color:#c4d0d0!important;font-size:12px}.rc-confirm footer{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.rc-confirm{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #4d6476;border-radius:12px;background:linear-gradient(145deg,#173044,#0e202e);padding:24px;box-shadow:0 24px 80px #0009}.rc-confirm-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #456075}.rc-confirm-brand img{width:148px;max-width:50%;height:auto;object-fit:contain}.rc-confirm-brand span{font-size:8px;color:#a5bdcb;letter-spacing:.7px}.rc-confirm h3{font-size:19px!important;font-weight:500;line-height:1.5;margin:18px 0 10px!important}.rc-confirm footer{gap:10px}.rc-confirm footer .rc-button{min-height:44px;min-width:100px;font-size:14px!important;border-radius:5px;box-shadow:none}.rc-confirm footer .rc-primary{background:#92d4e9;border-color:#a7dfef;color:#163746}.rc-panel-key[data-available=false]{color:#647069;background:#c1c8bf}.rc-emergency-key[data-available=false]{opacity:.7}.rc-head-key[aria-pressed=true]{box-shadow:inset 0 2px 1px #fff8,0 2px 0 #1a252d,0 0 6px #99d45555}.rc-command-grid>.rc-emergency-key{grid-column:3;grid-row:2}.rc-panel-key[data-rc-action=one-cycle-toggle]{grid-column:1/3;grid-row:2}
/* Orange is selection emphasis, never an independent command acknowledgment. */
.k3-dialog .kp-key[data-panel-key=onecycle][data-led=on],.k3-dialog[data-remote-onecycle-preview=true] .kp-key[data-panel-key=onecycle]{outline:2px solid #f69b38;outline-offset:3px;animation:k3OneCycleEmphasis 1.8s ease-in-out infinite}
@keyframes k3OneCycleEmphasis{0%,100%{outline-color:#dc8733;box-shadow:inset 0 2px 1px #fff8,0 3px 0 #1a252d,0 0 4px #ff933533}50%{outline-color:#ffbd65;box-shadow:inset 0 2px 1px #fff8,0 3px 0 #1a252d,0 0 14px #ff933599}}
/* Remote work uses a readable vertical layout on phones; cabinet continues below. */
@media(max-width:700px){.terminal-dialog.k3-dialog:has(.rc-workspace){height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);overflow:auto}.k3-dialog:has(.rc-workspace) .k3-shell{height:auto;min-height:100%;overflow:visible}.k3-dialog:has(.rc-workspace) .k3-layout{display:grid;grid-template-columns:1fr;overflow:visible;flex:none;gap:18px}.k3-dialog:has(.rc-workspace) .k3-control{overflow:visible}.k3-dialog:has(.rc-workspace) .k3-lcd{min-height:500px;overflow:visible}.k3-dialog:has(.rc-workspace) .k3-lcd-content{max-height:none;overflow:visible}.k3-dialog:has(.rc-workspace) .k3-lcd-content>[role=tabpanel]{height:auto;overflow:visible}.k3-dialog:has(.rc-workspace) .k3-softkeys{grid-template-columns:repeat(4,1fr)}.k3-dialog:has(.rc-workspace) .k3-softkeys button{font-size:10px;min-height:40px;height:auto}.k3-lcd-content .rc-workspace{padding:14px}.rc-workspace .rc-panel-key>span{font-size:11px!important}.rc-workspace .rc-panel-key{height:98px!important}.rc-workspace .rc-emergency-key{height:98px}.rc-workspace .rc-emergency-key>span{font-size:9px}.rc-workspace .rc-tabs button{font-size:10px;min-height:40px}.rc-workspace .rc-head-key{min-height:40px;font-size:11px}.rc-workspace .rc-preview-toggle{font-size:11px}.rc-workspace [data-field]{min-height:40px;font-size:14px}.rc-workspace label:has([data-field]){font-size:12px}.rc-workspace .rc-program-actions{display:grid;grid-template-columns:repeat(2,1fr)}.rc-workspace .rc-program-actions>.rc-button{min-height:40px;font-size:11px!important}.rc-workspace .rc-editor-wrap>textarea{font-size:14px}.rc-workspace .rc-program-side{grid-template-columns:1fr}}
@media(min-width:1700px){.terminal-dialog.k3-dialog:has(.rc-workspace){width:min(1920px,94vw);height:min(1280px,94dvh);max-width:94vw}.k3-dialog:has(.rc-workspace) .rc-workspace{padding:clamp(20px,1.2vw,38px);font-size:18px}.rc-workspace .rc-header h2{font-size:clamp(16px,1vw,26px)}.rc-workspace .rc-mode-badge{font-size:12px}.rc-workspace .rc-tabs button{font-size:15px;min-height:48px}.rc-workspace .rc-feedback b{font-size:19px}.rc-workspace .rc-feedback span{font-size:14px}.rc-workspace .rc-head-key{font-size:14px;min-height:46px}.rc-workspace .rc-panel-key{height:clamp(125px,8vw,190px)}.rc-workspace .rc-panel-key>span{font-size:clamp(15px,1vw,22px)}.rc-workspace .rc-panel-key>svg{width:52px;height:52px}.rc-workspace .rc-panel-key>i{width:11px;height:11px}.rc-workspace .rc-emergency-key{height:clamp(125px,8vw,190px)}.rc-workspace .rc-emergency-key>i{width:85px;height:85px;font-size:19px}.rc-workspace .rc-emergency-key>span{font-size:14px}.rc-workspace .rc-emergency-key small,.rc-workspace .rc-panel-key small{font-size:11px}.rc-workspace .rc-status-line{font-size:15px}.rc-workspace .rc-target{font-size:14px}.rc-workspace .rc-preview-toggle{font-size:14px}.rc-workspace .rc-program-setup summary{font-size:16px}.rc-workspace .rc-program-setup summary span{font-size:13px}.rc-workspace [data-field]{font-size:16px;min-height:44px}.rc-workspace label:has([data-field]){font-size:14px}.rc-workspace .rc-button{font-size:14px!important;min-height:44px}.rc-workspace .rc-editor-wrap{height:400px}.rc-workspace .rc-editor-wrap>textarea,.rc-workspace .rc-editor-wrap>pre{font-size:18px;line-height:28px}.rc-workspace .rc-editor-footer{font-size:13px}.rc-workspace .rc-section-head h3{font-size:18px}.rc-workspace .rc-preview-end{font-size:13px}.rc-workspace .rc-preview-end button{font-size:12px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.k3-dialog .kp-key[data-panel-key=onecycle][data-led=on],.k3-dialog[data-remote-onecycle-preview=true] .kp-key[data-panel-key=onecycle]{animation:none!important;outline:2px solid #f69b38}}
@media(max-width:700px){.k3-dialog:has(.rc-workspace) .kp-upper{min-height:440px;grid-template-columns:1fr 85px;gap:8px}.k3-dialog:has(.rc-workspace) .kp-group h3{font-size:9px}.k3-dialog:has(.rc-workspace) .kp-key span{font-size:8px}.k3-dialog:has(.rc-workspace) .kp-key svg{width:27px;height:27px}.k3-dialog:has(.rc-workspace) .kp-lower{height:300px;overflow:visible;grid-template-columns:1fr}.k3-dialog:has(.rc-workspace) .kp-actions{grid-template-columns:65px 1fr 75px}.k3-dialog:has(.rc-workspace) .kp-switch span,.k3-dialog:has(.rc-workspace) .kp-override span{font-size:9px}.k3-dialog:has(.rc-workspace) .kp-switch b,.k3-dialog:has(.rc-workspace) .kp-override b{font-size:9px}}
/* Keep the original terminal cabinet and right-hand panel untouched. */
.k3-lcd-content:has([data-remote-host]){padding:0!important;background:#333e47}.k3-lcd-content:has([data-remote-host])>[role=tabpanel]{height:100%;overflow:auto}.k3-lcd-content .rc-workspace{padding:12px;min-height:100%;font-family:'Segoe UI',Arial,sans-serif}.k3-lcd .rc-workspace :is(h2,h3,h4,p){color:var(--rc-text)}
@container(max-width:420px){.rc-header h2{font-size:12px}.rc-header h2 small{display:none}.rc-mode-badge{font-size:8px}.rc-tabs{gap:4px;margin-bottom:10px}.rc-tabs button{font-size:9px;padding:5px 2px;min-height:29px}.rc-feedback{padding:6px;gap:8px}.rc-feedback>div{flex-direction:column;gap:1px}.rc-feedback span{font-size:8px}.rc-feedback b{font-size:11px}.rc-command-grid{gap:11px 9px}.rc-workspace .rc-panel-key{height:82px}.rc-workspace .rc-panel-key>span{font-size:8px}.rc-workspace .rc-panel-key>svg{width:29px;height:29px}.rc-workspace .rc-panel-key>strong{font-size:28px;line-height:29px}.rc-emergency-key{height:82px}.rc-emergency-key>i{width:48px;height:48px;font-size:10px;border-width:6px}.rc-emergency-key>span{font-size:7px}.rc-emergency-key small{font-size:6px}.rc-target{gap:4px;font-size:8px}.rc-head-key{font-size:8px;padding:4px 7px}.rc-preview-toggle{font-size:9px}.rc-status-line{font-size:9px}.rc-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.rc-program-actions>.rc-button{font-size:9px!important}.rc-workspace [data-field]{font-size:10px}.rc-program-side{gap:9px}.rc-editor-wrap{height:225px}.rc-library [data-program-library]>button{flex-wrap:wrap}.rc-revision-meta{margin-left:auto}.rc-draft-tag{display:none}}
@media(prefers-reduced-motion:reduce){.rc-workspace *{transition:none!important;animation:none!important}}
/* Isolated local test surface; the delivered UI remains inside the existing terminal. */
.rc-preview-page{margin:0;min-height:100dvh;background:#1f2931;color:#d7e1e4;font-family:'Segoe UI',sans-serif;padding:25px 16px}.rc-preview-brand{max-width:600px;margin:0 auto 14px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a0b2bc}.rc-preview-brand>b{font-size:17px;letter-spacing:-.3px}.rc-preview-brand>a{color:#bac8cb;text-decoration:none;font-size:11px}.rc-preview-frame{max-width:600px;margin:auto;padding:10px;background:#27313a;border:1px solid #718087;border-radius:7px;box-shadow:inset 0 0 0 4px #36434c,0 8px 30px #0004}.rc-preview-frame>.rc-workspace{border:1px solid #6c797e;border-radius:3px;padding:18px}.rc-preview-caption{max-width:600px;margin:12px auto 0;font-size:10px;color:#93a7b0;display:flex;justify-content:space-between;gap:15px}
.rc-confirm{box-sizing:border-box}
@media(max-width:700px){.rc-workspace .rc-panel-key{height:98px!important}.rc-workspace .rc-panel-key>span{font-size:10px!important}.rc-feedback span{font-size:11px!important}.rc-feedback b{font-size:14px!important}.rc-target,.rc-preview-toggle{font-size:11px!important}.rc-head-key{font-size:11px!important;min-height:44px;min-width:60px}.rc-tabs button{font-size:11px!important;min-height:40px!important}.rc-status-line{font-size:12px!important}.rc-workspace [data-field]{font-size:14px!important;min-height:40px}.rc-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* One panel key opens Program; editor, setup and files are separate sections below it. */
.rc-workspace{overflow-x:hidden}
.rc-command-grid>.rc-emergency-key,.rc-command-grid>.rc-panel-key[data-rc-action=one-cycle-toggle]{grid-column:auto;grid-row:auto}
.rc-program-key{grid-column:auto;grid-row:auto}
.rc-connection{margin:7px 0 9px;font-size:10px;color:#bfcacf}
.rc-section-head h3 small{display:block;margin-top:2px;font:400 9px Consolas,monospace;color:#b6c9cb}
.rc-program-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.rc-program-tabs button{min-height:40px;border:1px solid #939e9f;border-radius:3px;background:#d8dbcc;color:#36434a;box-shadow:inset 0 2px 1px #fff8,0 2px 0 #1a252d;font-size:11px;font-weight:650}
.rc-program-tabs button[aria-pressed=true]{background:#e7cf58;border-color:#f1df91;color:#24302b}
.rc-program-pane{min-width:0}
.rc-program-pane[data-program-pane=files] .rc-transfer-card,.rc-program-pane[data-program-pane=files] .rc-library{border-top:1px solid #6c797e;margin-top:12px;padding-top:12px}
.rc-nc-keypad{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:10px}
.rc-nc-keypad button{min-height:40px;border:1px solid #8d9a99;border-radius:3px;background:#dbe0d1;color:#34463c;box-shadow:inset 0 1px 1px #fff8,0 2px 0 #17252c;font:600 13px Consolas,monospace}
.rc-nc-keypad button:active{transform:translateY(1px)}
@media(max-width:700px){.rc-workspace .rc-program-tabs button{min-height:44px;font-size:12px}.rc-workspace .rc-nc-keypad button{min-height:44px;font-size:16px}.rc-workspace .rc-program-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-workspace .rc-program-actions>.rc-button{white-space:normal}}
@media(min-width:1700px){.rc-workspace .rc-program-tabs button{min-height:52px;font-size:16px}.rc-workspace .rc-nc-keypad button{min-height:52px;font-size:20px}}
@media(max-width:700px){
  .k3-dialog:has(.rc-workspace) .k3-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-items:start}
  .k3-dialog:has(.rc-workspace) .k3-control,
  .k3-dialog:has(.rc-workspace) .kp-upper,
  .k3-dialog:has(.rc-workspace) .k3-layout>.kp-lower{grid-column:1;grid-row:auto;min-width:0}
  .k3-dialog:has(.rc-workspace) .k3-control{max-width:none}
  .k3-dialog:has(.rc-workspace) .k3-lcd{aspect-ratio:auto;min-height:570px}
  .k3-dialog:has(.rc-workspace) .k3-layout>.kp-lower{height:auto;min-height:205px}
}
/* Switching a terminal tab must never resize the terminal itself. */
@media(min-width:1700px){
  .terminal-dialog.k3-dialog:has(.rc-workspace){width:min(1220px,96vw);max-width:1220px;height:min(870px,96dvh);max-height:96dvh}
  .k3-dialog:has(.rc-workspace) .rc-workspace{padding:12px;font-size:12px}
  .k3-dialog:has(.rc-workspace) .rc-panel-key,.k3-dialog:has(.rc-workspace) .rc-emergency-key{height:91px}
}
@media(max-width:700px){
  .terminal-dialog.k3-dialog:has(.rc-workspace){height:auto;max-height:96dvh}
}
/* Match the physical key layout while keeping command feedback available to screen readers. */
.rc-command-grid>.rc-panel-key[data-rc-action=one-cycle-toggle]{grid-column:1;grid-row:2}
.rc-command-grid>.rc-program-key{grid-column:2;grid-row:2}
.rc-command-grid>.rc-emergency-key{grid-column:2;grid-row:3}
.rc-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rc-workspace .rc-back-key{min-height:44px;padding:8px 12px;background:#e7cf58;border-color:#f1df91;color:#24302b;font-weight:800;box-shadow:inset 0 2px 1px #fff8,0 2px 0 #1a252d}
.rc-workspace .rc-back-key:hover{background:#f2db73}
.rc-back-key [aria-hidden=true]{font-size:19px;line-height:1}
.rc-program-message:empty{display:none}
.rc-workspace .rc-emergency-key{height:91px;border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
.k3-dialog .rc-emergency-key>i{width:64px;height:64px;border-width:7px;font-size:12px}
.rc-workspace .rc-emergency-key>span{font-size:9px}
.rc-nc-keypad{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin-top:6px}
.rc-keyboard-mode{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.rc-keyboard-mode button{min-height:30px;border:1px solid #8d9a99;border-radius:3px;background:#dbe0d1;color:#34463c;font:700 10px Consolas,monospace}
.rc-keyboard-mode button[aria-pressed=true]{background:#e7cf58;border-color:#f1df91;color:#24302b}
.rc-nc-key-group{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px;min-width:0}
.rc-workspace .rc-nc-key-group button{min-width:0;min-height:36px;font-size:13px}
.rc-workspace .rc-nc-key-group .rc-enter-key{grid-column:span 2;font-size:11px}
.rc-nc-key-group button[data-program-insert=" "]{font-size:9px}
.rc-workspace .rc-header{margin-bottom:5px}
.rc-workspace .rc-section-head{margin:2px 0 6px}
.rc-workspace .rc-program-tabs{margin-bottom:8px}
.k3-dialog .rc-editor-wrap{height:clamp(95px,15dvh,150px)}
@media(min-width:900px) and (min-height:760px){.k3-dialog .rc-editor-wrap{height:clamp(150px,calc(15dvh + 50px),200px)}}
@media(min-width:1200px) and (min-height:850px){.k3-dialog .rc-editor-wrap{height:clamp(175px,calc(15dvh + 75px),225px)}}
@media(max-width:700px){
  .rc-nc-key-group{grid-template-columns:repeat(6,minmax(0,1fr))}
  .rc-workspace .rc-back-key{min-width:122px}
  .rc-workspace .rc-emergency-key{height:98px}
  .rc-workspace .rc-nc-key-group button,.rc-workspace .rc-keyboard-mode button{min-height:44px}
  .k3-dialog .rc-editor-wrap{height:245px}
}
.rc-workspace .rc-command-progress{display:flex;align-items:center;justify-content:center;gap:8px;min-height:24px;font-size:12px;color:#dce9e9;overflow-wrap:anywhere}
.rc-workspace .rc-command-progress[hidden]{display:none}
.rc-workspace .rc-command-progress:before{content:"";width:13px;height:13px;border:2px solid #6b858b;border-top-color:#e6f2f1;border-radius:50%;animation:rc-sending 1s linear infinite}
.rc-workspace .rc-panel-key[aria-busy="true"]{outline:2px solid #8eafb6;outline-offset:3px}
.rc-workspace:has(.rc-command-progress:not([hidden])) [data-rc-action]:disabled{opacity:1;cursor:progress}
@keyframes rc-sending{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.rc-workspace .rc-command-progress:before{animation:none}}
