:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--colour-text);background:var(--colour-page);font-synthesis:none;--navy:var(--colour-surface-dark);--teal:var(--colour-accent);--muted:var(--colour-text-muted);--border:var(--colour-border);--shadow:var(--shadow-card)}
/* Design tokens (P4 shared contract, section 1): neutral placeholders until the Mertex brand decision (DN4), which may change
   these values but never their names. New chrome CSS uses these, never literal colours. */
:root{--colour-text:#203442;--colour-text-strong:#132c3c;--colour-text-muted:#4f6470;--colour-text-on-dark:#dde9ec;--colour-on-accent:#ffffff}
:root{--colour-page:#f3f5f6;--colour-surface:#ffffff;--colour-surface-sunken:#f6f8f9;--colour-surface-hover:#eef4f6;--colour-surface-dark:#132c3c}
:root{--colour-stage-light:#f4f7f8;--colour-stage-dark:#122531;--surface-stage-dark:radial-gradient(ellipse at 50% 30%,#1f4a5c 0%,#132c3c 70%)}
:root{--colour-border:#e1e8eb;--colour-border-control:#c9d6db;--colour-border-field:#7d909a}
:root{--colour-accent:#127b77;--colour-accent-strong:#0d6865;--colour-accent-tint:#e1f0ee}
:root{--colour-danger:#b3261e;--colour-danger-tint:#fdecea;--colour-danger-border:#efc2bd}
:root{--colour-warning:#8a5300;--colour-warning-accent:#b26a00;--colour-warning-tint:#fff8e6;--colour-warning-border:#e6cf9a}
:root{--colour-info:#2f6f8f;--colour-info-tint:#f2f7fa;--colour-info-border:#c5d6e0}
:root{--colour-success:#1e8e5a}
:root{--brand-mark:#2e7d32;--brand-ink:#132c3c}
:root{--colour-focus:#005fb8;--colour-focus-on-dark:#9fd8ff;--focus-ring-colour:var(--colour-focus);--focus-ring-width:2px;--focus-ring-offset:2px}
:root{--radius-small:4px;--radius-control:6px;--radius-surface:12px}
:root{--shadow-raised:0 24px 64px #0f2a3a3d,0 2px 8px #0f2a3a1f;--shadow-floating:0 8px 28px #0f2a3a33;--shadow-card:0 3px 14px #19334605}
:root{--colour-backdrop:#0f2a3a73;--colour-scrim-light:#f3f5f6d9}
/* Host-content tokens (P5, DN3 option B, plain current Windows): the colours of everything Mertex draws and of the frame REA draws
   round it inside the Mertex screen. The names are fixed; the values may change once SBClient's own look has been captured (NE-P5a,
   L20) and when DN3 is signed off. Edges are a shade darker than Windows' #adadad, so that every edge reaches 3:1 on the window and
   face colours (WCAG 1.4.11). test/host-content-look.test.mts checks each value's contrast. */
:root{--host-window:#ffffff;--host-face:#f0f0f0;--host-button-face:#e1e1e1;--host-face-hover:#e5f1fb;--host-face-pressed:#cce4f7}
:root{--host-edge:#8a8a8a;--host-edge-hover:#0078d7}
:root{--host-text:#000000;--host-text-muted:#6d6d6d;--host-caption:#ffffff;--host-caption-text:#000000;--host-close-hover:#c42b1c}
:root{--host-text-screen:#ffffff;--host-text-screen-text:#000080}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.42}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
a{color:inherit}
button{color:inherit}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1{font-size:27px;letter-spacing:-1px;font-weight:650}
h2{font-size:22px;letter-spacing:-.65px;font-weight:600}
h3{font-size:14px;font-weight:650}
p{line-height:1.65}
.app-shell{display:flex;min-height:100dvh}
.sidebar{width:222px;position:fixed;inset:0 auto 0 0;z-index:5;display:flex;flex-direction:column;padding:32px 18px 22px;background:var(--navy);color:#c4d3dc}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:white;font-size:15px;font-weight:650;letter-spacing:-.3px;padding:0 7px}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid #63908f;border-radius:10px;background:#274755;color:#b3e5de;font-size:23px;letter-spacing:-3px;padding-right:3px;font-weight:600}
.brand small{display:block;font-size:12px;font-weight:500;letter-spacing:0;color:#aabecb;margin-top:4px}
.nav-heading{font-size:12px;letter-spacing:1px;color:#aabecb;margin:48px 14px 13px}
.nav-list{display:grid;gap:7px}
.nav-item{border:0;background:none;text-align:left;padding:14px 15px;border-radius:8px;color:#aabecb;font-size:13px;display:flex;align-items:center;gap:13px;transition:background .15s,color .15s}
.nav-item>span{width:16px;font-size:19px;line-height:14px}
.nav-item:hover{background:#203b4b;color:#f0f7fa}
.nav-item.active{background:#294958;color:#e4f7f3}
.nav-item.active>span{color:#8bd5c8}
.sidebar-foot{margin-top:auto;padding:32px 12px 0;font-size:12px;border-top:1px solid #28414f}
.preview-icon{font-size:22px;color:#8bd5c8;display:block;margin-bottom:10px}
.sidebar-foot strong{font-size:12px;color:#c4d3dc;font-weight:500}
.sidebar-foot p{font-size:12px;color:#aabecb;margin-top:7px;line-height:1.7}
.sidebar-foot #app-version{display:block;color:#aabecb;font-size:12px;margin-top:26px}
.main-shell{margin-left:222px;min-width:0;flex:1;padding:0 36px}
.topbar{height:113px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);gap:20px}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.8px;color:var(--colour-text-muted);margin-bottom:9px}
.topbar-actions{display:flex;align-items:center;gap:24px}
.service-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}
.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#acb8bf;flex-shrink:0}
.status-dot.online,.service-status.online .status-dot{background:#41a98c;box-shadow:0 0 0 3px #41a98c12}
.status-dot.error{background:#c57769}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:var(--radius-control);padding:11px 16px;font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap;min-height:38px}
.button.primary{background:var(--teal);color:white;box-shadow:0 2px 4px #16483810}
.button.primary:hover{background:var(--colour-accent-strong)}
.button.secondary{background:white;border-color:#dce5e6;color:#46606f}
.button.subtle{background:#f4f8f8;border-color:#e3eceb;color:#41706f}
.button.small{font-size:12px;padding:7px 11px;min-height:31px}
.intro-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:31px 0 24px}
.intro-row p{font-size:12px;color:var(--muted);margin-top:7px}
.preview-pill{background:#e9efef;color:var(--colour-text-muted);border:1px solid #dfe8e8;font-size:12px;white-space:nowrap;border-radius:5px;padding:7px 9px}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 266px;gap:21px}
.session-column,.context-column{min-width:0;display:flex;flex-direction:column;gap:17px}
.card,.session-panel{background:white;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}
.card{padding:20px}
.card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}
.card-heading h3{line-height:1.6}
.card-heading p{font-size:12px;color:var(--muted);margin-top:4px}
.session-tabs{min-height:47px;display:flex;gap:3px;padding:7px 9px 0;background:#f8fafb;border-bottom:1px solid var(--border);overflow-x:auto;scrollbar-width:thin}
.tabs-placeholder{font-size:12px;color:var(--colour-text-muted);padding:10px 12px}
.session-tab{max-width:220px;flex-shrink:0;background:none;border:1px solid transparent;border-bottom:0;padding:9px 13px 11px;display:flex;gap:8px;align-items:center;border-radius:6px 6px 0 0;font-size:12px;color:var(--colour-text-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.session-tab.active{background:white;border-color:#e0e8eb;color:#26504f;font-weight:600;box-shadow:0 1px 0 white}
/* The session toolbar (developer console, P9): the session's name and state, the tools, then an end group (More and the power
   button) that never scrolls, shrinks or clips. The tools never wrap: where they do not fit they scroll sideways inside a part
   of fixed height, with 4 px of room on every side for a focused tool's ring. Whether the name takes a line of its own follows
   the bar's own width (the @container rule below), never what the bar holds, so Host output or Reports appearing never
   changes the bar's height and never moves the Mertex screen. */
.terminal-toolbar{container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto) auto;align-items:center;column-gap:8px;row-gap:4px;min-height:54px;padding:7px 17px}
.terminal-identity{display:flex;gap:8px;align-items:center;min-width:0;white-space:nowrap}
.terminal-identity strong{min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.terminal-identity .muted{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px;margin-left:2px}
.muted{color:var(--muted);font-size:12px}
.terminal-tools{display:flex;flex-wrap:nowrap;gap:6px;align-items:center;min-width:0;height:40px;padding:4px;scroll-padding-inline:4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.toolbar-end{display:flex;flex:none;gap:6px;align-items:center;min-width:max-content}
.icon-button{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:5px;background:none;color:var(--colour-text-muted);font-size:18px}
.icon-button:hover{background:#eef4f4}
.danger-text{color:var(--colour-danger)}
.terminal-stage{position:relative;background:#122531;margin:0 12px;border:1px solid #233c49;border-radius:6px;overflow:hidden;height:378px}
.terminal-empty{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;color:#dde9ec;background:radial-gradient(ellipse at 50% 35%,#203d48 0%,#122531 70%)}
.empty-symbol{font-family:monospace;font-size:31px;color:#78b7ae;border:1px solid #3a5d66;border-radius:12px;width:60px;height:60px;display:grid;place-items:center;margin-bottom:23px;background:#25465255}
.terminal-empty h3{font-size:17px;font-weight:500;letter-spacing:-.3px}
.terminal-empty p{color:#9ab2bf;font-size:12px;margin:12px 0 21px}
.terminal-empty small{font-size:12px;color:#a4bdc5;margin-top:13px}
#terminal{height:100%;width:100%;padding:15px 9px 10px 14px}
.xterm{height:100%}
.xterm-viewport{scrollbar-width:thin;scrollbar-color:#3a5767 #122531}
.key-controls{padding:13px 12px 10px;display:flex;gap:9px;justify-content:space-between;flex-wrap:wrap}
.function-keys,.navigation-keys{display:flex;gap:4px;flex-wrap:wrap}
.key-controls button{height:27px;min-width:29px;padding:0 7px;font-size:12px;font-weight:500;border:1px solid #dfe7ea;background:#f8fafb;border-radius:4px;color:#5b7380;box-shadow:0 1px 0 #dfe7ea}
.key-controls button:hover{background:#eaf3f2;color:var(--teal)}
.key-controls button:active{transform:translateY(1px);box-shadow:none}
.key-controls .enter-key{background:#edf5f3;color:var(--teal);border-color:#d1e7e0}
.terminal-footer{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid #edf1f3;color:var(--colour-text-muted);font-size:12px}
.count,.tiny-label{font-size:12px;color:var(--colour-text-muted);background:#f0f5f5;border:1px solid #e4ecec;padding:3px 6px;border-radius:4px}
.tiny-label{letter-spacing:1px;border:0;background:none;color:var(--colour-accent-strong);padding:4px 0}
.detail-card dl{display:grid;gap:15px;margin:0}
.detail-card dl>div{display:flex;gap:12px;justify-content:space-between;font-size:12px;line-height:1.5}
.detail-card dt{color:var(--colour-text-muted);flex-shrink:0}
.detail-card dd{color:#425b69;text-align:right;margin:0;max-width:150px;overflow-wrap:anywhere}
.detail-card dd.good{color:var(--colour-accent-strong)}
.context-note{display:flex;align-items:flex-start;gap:9px;border-top:1px solid #edf1f2;margin-top:19px;padding-top:15px}
.context-note>span{color:var(--colour-accent);font-size:15px}
.context-note p{font-size:12px;color:var(--colour-text-muted);line-height:1.7}
.file-list{display:grid;gap:10px}
.empty-copy{font-size:12px;color:var(--colour-text-muted);line-height:1.8;padding:4px 0}
.file-row{display:flex;align-items:center;gap:9px;padding:8px 0;text-decoration:none}
.file-icon{display:grid;place-items:center;font-size:16px;background:#edf5f3;width:32px;height:36px;border-radius:6px;color:var(--teal);flex-shrink:0}
.file-name{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.file-meta{font-size:12px;color:var(--colour-text-muted);margin-top:4px}
.file-row>span:last-child{margin-left:auto;color:var(--colour-accent-strong)}
.event-list{list-style:none;margin:0;padding:0;max-height:290px;overflow:auto}
.event-item{position:relative;padding:0 0 18px 17px;border-left:1px solid #e8eeee;margin-left:4px}
.event-item:last-child{padding-bottom:0;border:0}
.event-item::before{content:"";width:5px;height:5px;position:absolute;border-radius:50%;top:4px;left:-3px;background:#82b3a7;box-shadow:0 0 0 3px white}
.event-title{font-size:12px;color:#56707c;line-height:1.6;overflow-wrap:anywhere}
.event-time{font-size:12px;color:var(--colour-text-muted);margin-top:3px}
.honest-note{padding:3px 10px 0;display:flex;gap:10px;color:var(--colour-text-muted)}
.honest-note>span{font-size:19px;color:var(--colour-accent)}
.honest-note p{font-size:12px;line-height:1.8}
.text-button{display:block;padding:4px 0 0;border:0;background:none;font:inherit;color:var(--colour-accent-strong);text-align:left}
.macro-card{padding:18px 20px}
.macro-list{display:flex;gap:8px;flex-wrap:wrap}
.macro-item{display:inline-flex;align-items:center;border:1px solid #dfe9e8;border-radius:6px;overflow:hidden;background:#fbfcfc}
.macro-send{border:0;background:none;padding:8px 11px;font-size:12px;color:#47706e}
.macro-delete{border:0;border-left:1px solid #e5eded;background:none;color:var(--colour-text-muted);padding:8px 7px;font-size:12px}
.macro-delete:hover{color:var(--colour-danger);background:#fbf2ef}
.micro-note{color:var(--colour-text-muted);font-size:12px;margin-top:13px;line-height:1.7}
.macro-list .empty-copy{font-size:12px}
.page-footer{display:flex;justify-content:space-between;font-size:12px;color:var(--colour-text-muted);padding:26px 0 22px;margin-top:4px}
.page-footer>span:first-child{font-weight:600;color:var(--colour-text)}
.notice{margin:20px 0 0;display:flex;justify-content:space-between;align-items:center;gap:15px}
.notice>#notice-close{background:none;border:0;color:inherit;font-size:19px}
.screen-panel .muted{margin:-5px 0 18px}
.tag{font-size:12px;padding:5px 8px;border-radius:5px;background:#f1f4f6;color:var(--colour-text-muted);white-space:nowrap}
.tag.teal{background:#eaf5f0;color:var(--colour-accent-strong)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.field-group{min-width:0}
.screen-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
label{display:block;font-size:12px;font-weight:600;color:#506773;margin:0 0 7px}
input,select,textarea{width:100%;border:1px solid var(--colour-border-field);border-radius:6px;padding:10px 11px;color:#355260;background:var(--colour-surface);font-size:12px;min-height:39px}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{color:var(--colour-text-muted)}
.field-help{font-size:12px;color:var(--colour-text-muted);line-height:1.7;margin:9px 0 18px}
.form-error{font-size:12px;color:var(--colour-danger);background:#fff1eb;padding:10px;border-radius:5px;margin-top:15px}
.dialog label:not(:first-child){margin-top:17px}
.dialog .checkbox-label{display:flex;align-items:center;gap:8px;font-weight:400}
.checkbox-label input{width:15px;min-height:15px;height:15px;accent-color:var(--teal)}
/* Connections: each card keeps its own height, and its buttons are as wide as their labels (UI-D07). */
.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.profile-card{display:flex;flex-direction:column;align-items:flex-start;padding:25px}
.profile-icon{display:grid;place-items:center;width:43px;height:43px;border:1px solid #dbe9e4;background:#eef6f3;color:#528b81;border-radius:10px;font-size:22px;margin-bottom:22px}
.profile-card h3{font-size:17px;font-weight:600;margin-bottom:10px}
.profile-card p{font-size:12px;color:var(--colour-text-muted)}
.profile-card .profile-meta{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}
.info-card{margin-top:24px;max-width:850px;background:#f8fafb}
.info-card p{font-size:12px;color:var(--colour-text-muted);margin-top:10px}
.compatibility-intro{display:flex;gap:22px;align-items:center;margin-bottom:23px;background:#edf5f2;border-color:#dceae4;padding:25px}
.compatibility-intro p{font-size:12px;color:var(--colour-text-muted);margin-top:7px;max-width:800px}
.compatibility-symbol{font-size:38px;color:var(--colour-accent-strong)}
.feature-card{padding-bottom:7px}
.feature-row{display:grid;grid-template-columns:minmax(140px,1fr) 110px minmax(0,2fr);gap:22px;border-top:1px solid #eaf0f1;padding:19px 0;align-items:start}
.feature-name{font-size:12px;font-weight:600}
.feature-description{font-size:12px;color:var(--colour-text-muted);line-height:1.8}
/* Status badges keep their tints; their words reach 4.5:1 on them. */
.feature-status{font-size:12px;letter-spacing:.2px;border-radius:4px;padding:5px 8px;background:#f0f3f5;color:var(--colour-text-muted);justify-self:start;text-transform:capitalize}
.feature-status.implemented,.feature-status.supported,.feature-status.verified{background:#e8f5ec;color:#2d6a4a}
.feature-status.partial,.feature-status.experimental,.feature-status.simulator{background:#fcf3e3;color:var(--colour-warning)}
.feature-status.unverified,.feature-status.unimplemented,.feature-status.unsupported,.feature-status.planned{background:#f4eeed;color:#80574d}
.feature-status.blocked{background:var(--colour-danger-tint);color:var(--colour-danger)}
.feature-evidence{margin-top:8px;font-size:12px;overflow-wrap:anywhere}
.feature-evidence summary{cursor:pointer;color:var(--colour-accent-strong)}
.feature-evidence pre{white-space:pre-wrap;color:var(--colour-text-muted);font:inherit}
.api-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.endpoint{padding:18px 0;border-top:1px solid #edf1f3}
.endpoint code{font-size:12px;overflow-wrap:anywhere}
.endpoint p{font-size:12px;color:var(--colour-text-muted);margin:9px 0 0 74px}
.method{display:inline-block;min-width:64px;margin-right:10px;font-size:12px;font-weight:700;border-radius:4px;padding:5px 4px;text-align:center}
.method.get{background:#ebf5ee;color:#2d6a4a}
.method.post{background:#eff1fc;color:#4f5795}
.method.delete{background:#faeeec;color:var(--colour-danger)}
.api-example{background:#132c3c;color:#c6e0dc;padding:20px;font-size:12px;line-height:1.9;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Foundation (P4): the one look every view shares (P4 shared contract, sections 2 to 5). Its colours, radii and shadows come
   from the tokens above, never literal colours. Rules for the customer view alone sit at the end of the file. */
/* Focus: one ring. A dark surface sets the on-dark colour; a light surface inside it sets the light one again. */
.terminal-stage:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
.sidebar,.terminal-stage{--focus-ring-colour:var(--colour-focus-on-dark)}
.terminal-stage:is(.gui-main-window-active,.gui-login-active),.terminal-stage.gui-starting,.terminal-stage.text-screen-active,.gui-dialog-card,.gui-calendar-card,.gui-blocked-panel,.end-user .empty-card,.notice-card{--focus-ring-colour:var(--colour-focus)}
/* A notice card floats over the dark Mertex screen, where the ring outside it would show at about 2.5:1, so a card that has focus
   (Alt+Shift+M) draws the ring inside its edge, on its own light surface. Each card's ring rule takes the offset token. */
.notice-card:focus{--focus-ring-offset:calc(-1 * var(--focus-ring-width))}
/* Dialog (native <dialog class="dialog">): a fixed heading, a body that alone scrolls, and actions always in view, except in a
   very short window (below). */
.dialog{--dialog-width:480px;--space-dialog:24px;box-sizing:border-box;width:min(var(--dialog-width),calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--colour-border);border-radius:var(--radius-surface);background:var(--colour-surface);color:var(--colour-text);box-shadow:var(--shadow-raised);font-size:14px;line-height:1.5}
.dialog[open]{display:flex;flex-direction:column}
.dialog>form{display:contents}
.dialog::backdrop{background:var(--colour-backdrop)}
/* The dialog itself can take focus: Edge and Chrome focus it on a click on its text, and in a very short window, where it scrolls,
   Shift+Tab past its first control stops on it. A key then makes it :focus-visible, so it draws the one ring, inside its edge,
   because outside it lies the backdrop (the navy stage for the sign-in card), never the browser's own. */
.dialog:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
/* So can its body where it scrolls: Edge and Chrome stop on it while it holds no control (Sessions with only ended sessions), and
   Firefox stops on any part of the page that scrolls. It draws the one ring inside its edge too, because the dialog clips it. */
.dialog-body:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
.dialog--narrow{--dialog-width:400px}
.dialog--wide{--dialog-width:560px}
.dialog-heading{flex:none;padding:var(--space-dialog) var(--space-dialog) 12px}
.dialog-heading h2{margin:0;font-size:20px;line-height:1.3;font-weight:650;color:var(--colour-text-strong)}
.dialog-heading p{margin:6px 0 0;font-size:14px;color:var(--colour-text-muted)}
/* A focused control the body scrolls into view brings its ring with it (scroll-padding). */
.dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px var(--space-dialog) 20px;scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
.dialog-actions{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;padding:14px var(--space-dialog);border-top:1px solid var(--colour-border);background:var(--colour-surface-sunken)}
.dialog-actions .button{min-height:38px;padding:8px 18px;font-size:14px}
.dialog-actions--inline{padding:0 var(--space-dialog) var(--space-dialog);border-top:0;background:none}
/* A status line inside a dialog: it keeps its line, shows the small spinner beside progress, and turns red for an error. */
.dialog-status{display:flex;align-items:center;gap:8px;min-height:1.5em;margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--colour-text-muted)}
.dialog-status[data-tone="error"]{color:var(--colour-danger)}
/* The file chooser and upload: the native file input stays the real, visible control. */
.file-dialog input[type=file]{min-height:48px;padding:6px;border:1px dashed var(--colour-border-field);border-radius:var(--radius-control);background:var(--colour-surface-sunken);color:var(--colour-text);font-size:14px;cursor:pointer}
.file-dialog input[type=file]::file-selector-button{margin-right:12px;padding:8px 16px;border:1px solid var(--colour-border-control);border-radius:var(--radius-control);background:var(--colour-surface);color:var(--colour-text);font:inherit;font-weight:600;cursor:pointer}
.file-dialog input[type=file]:enabled::file-selector-button:hover{background:var(--colour-surface-hover)}
/* Mertex's e-mail card (P8 E2): under Other ways each field to copy keeps its Copy button beside it. Layout only. */
.mail-card-group{margin-top:12px}
.mail-card-field{display:flex;align-items:flex-start;gap:8px}
.mail-card-field>:is(input,textarea){flex:1 1 auto;min-width:0}
.mail-card-field>.button{flex:none}
.mail-card :is(#mail-card-summary,.mail-card-attachments li){overflow-wrap:anywhere}
/* While the file is being prepared or sent the control does nothing, so it looks and points as a disabled button does. */
.file-dialog input[type=file]:disabled{cursor:not-allowed;opacity:.42}
.file-dialog input[type=file]:disabled::file-selector-button{cursor:not-allowed}
.file-dialog-switch{margin-top:12px}
/* The one spinner, always beside its words in a status line; the report pane's loading mark shares it. */
.spinner,.report-window .report-preview-message.loading::before{--spinner-size:28px;--spinner-stroke:3px;content:"";display:inline-block;flex:none;box-sizing:border-box;width:var(--spinner-size);height:var(--spinner-size);border:var(--spinner-stroke) solid var(--colour-border-control);border-top-color:var(--colour-accent);border-radius:50%;animation:spinner-turn .8s linear infinite;vertical-align:middle}
.spinner--small{--spinner-size:16px;--spinner-stroke:2px}
@keyframes spinner-turn{
to{transform:rotate(360deg)}
}
/* Notice cards in the notice layer: information, warning or error, by data-tone. A refusal and an error share the error tone. */
.notice-card{box-sizing:border-box;padding:10px 12px;border:1px solid var(--colour-info-border);border-left:3px solid var(--colour-info);border-radius:var(--radius-surface);background:var(--colour-info-tint);color:var(--colour-text);font-size:13px;line-height:1.5;overflow-wrap:anywhere;box-shadow:var(--shadow-floating)}
.notice-card[data-tone="warning"]{border-color:var(--colour-warning-border);border-left-color:var(--colour-warning-accent);background:var(--colour-warning-tint)}
.notice-card[data-tone="error"],.notice.error,.notice[data-kind="refusal"]{border-color:var(--colour-danger-border);border-left-color:var(--colour-danger);background:var(--colour-danger-tint)}
.notice-card-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px}
.notice-card-title{margin:0;font-size:13px;font-weight:600}
.notice-card-actions{display:flex;flex-wrap:wrap;gap:8px}
/* A card's paragraphs keep its 13 px/1.5, not the 1.65 of the page's own paragraphs, so stacked cards are spaced alike. */
.notice-card p{line-height:inherit}
/* .notice-card-details shows when its hidden attribute goes (the [hidden] rule above). */
@media(pointer:coarse){
.dialog-actions .button{min-height:44px}
}
/* Dialog spacing narrows at 740 px and again at 480 px; the narrower rule comes later, so it wins where both apply. */
@media(max-width:740px){
.dialog{--space-dialog:20px}
}
@media(max-width:480px){
.dialog{--space-dialog:18px}
.dialog-actions .button{flex:1 1 auto}
}
/* A very short window (400 px high or lower: 1280 x 720 at 200% and beyond, or a phone on its side) leaves a dialog's body little
   or no room between its fixed heading and footer: Help's take 273 px at 320 px wide. There the whole dialog scrolls instead,
   heading, body and footer together, the one exception to the buttons always in view, so every field and button is reached by
   Tab or the wheel, and Tab brings a control's whole ring into view with it. A dialog that scrolls is a Tab stop of its own in
   Edge and Chrome (Shift+Tab past its first control), where its arrow keys, Page Up and Home scroll it; it draws the one ring
   inside its edge, as any focused dialog does (above). Help's copy box is never taller
   than the dialog's view less that scroll-padding (the window less 32 px, the dialog's 2 px of border and 6 px each side), so it
   comes into view whole with its ring: its seven rows did not fit at 320 x 180. */
@media(max-height:400px){
.dialog{overflow:auto;overscroll-behavior:contain;scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
.dialog-body{flex:none;overflow:visible}
.dialog .copy-details-text{max-height:calc(100dvh - 34px - 2 * (var(--focus-ring-width) + var(--focus-ring-offset) + 2px))}
}
/* The line-height floor follows the browser's minimum font size. When the fixed header and footer
   leave less than this floor, the dialog scrolls its entire contents as one surface. */
#support-dialog,#mertex-login-dialog{overflow:auto;scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
#support-dialog .dialog-body{min-height:calc(3lh + 4px + 20px)}
#mertex-login-dialog .dialog-body{min-height:calc(5lh + 4px + 20px)}
.dialog[data-scroll-whole] .dialog-body{flex:none;overflow:visible}
@media(prefers-reduced-motion:reduce){
.spinner,.report-window .report-preview-message.loading::before{animation:none}
}
@media(forced-colors:active){
:root{color-scheme:light dark}
.dialog{border-color:CanvasText}
.dialog-actions{border-top-color:CanvasText}
.spinner,.report-window .report-preview-message.loading::before{border-color:GrayText;border-top-color:CanvasText}
}

@media(min-width:1600px){
.main-shell{padding:0 48px}
.workspace-grid{grid-template-columns:minmax(0,1fr) 310px;gap:26px}
.terminal-stage{height:460px}
.card{padding:24px}
.terminal-toolbar{min-height:61px}
.key-controls{padding:15px}
.key-controls button{height:31px;min-width:34px}
.sidebar{width:242px;padding-top:35px}
.main-shell{margin-left:242px}
.brand{font-size:16px}
.topbar{height:124px}
}
@media(max-width:1200px){
.sidebar{width:190px;padding-left:12px;padding-right:12px}
.brand{font-size:13px;gap:9px}
.brand-mark{width:32px;height:32px}
.main-shell{margin-left:190px;padding:0 24px}
.workspace-grid{grid-template-columns:minmax(0,1fr) 235px;gap:16px}
.card{padding:17px}
.topbar-actions{gap:15px}
.terminal-identity .muted{display:none}
.terminal-toolbar{padding:7px 14px}
.profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1020px){
.sidebar{width:170px}
.main-shell{margin-left:170px;padding:0 22px}
.brand{font-size:12px;padding-left:2px;gap:7px}
.brand-mark{width:29px;height:31px;font-size:20px}
.nav-item{font-size:12px;padding:13px 11px;gap:10px}
.nav-heading{margin-left:9px;letter-spacing:.6px}
.workspace-grid{grid-template-columns:minmax(0,1fr)}
.context-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.honest-note{grid-column:1/-1}
.context-column .card{height:100%}
.detail-card dl>div{flex-direction:column;gap:3px}
.detail-card dd{text-align:left}
.context-note{display:none}
.card-heading h3{font-size:12px}
.terminal-stage{height:400px}
.api-grid{grid-template-columns:1fr}
.service-status{max-width:120px}
.feature-row{grid-template-columns:minmax(130px,1fr) 90px minmax(0,2fr);gap:16px}
}
@media(max-width:740px){
.app-shell{display:block}
.sidebar{position:relative;width:100%;padding:15px 19px 0;display:flex;gap:0}
.brand{font-size:15px;padding:0;margin-bottom:17px;gap:10px}
.brand-mark{width:32px;height:32px;font-size:22px}
.nav-heading,.sidebar-foot{display:none}
.nav-list{display:flex;gap:6px;justify-content:space-between;overflow-x:auto}
.nav-item{font-size:12px;padding:11px 12px 14px;gap:6px;border-radius:5px 5px 0 0;flex:1;justify-content:center;white-space:nowrap}
.nav-item>span{font-size:15px;width:14px}
.nav-item.active{box-shadow:inset 0 -2px 0 #93c8bc}
.main-shell{margin-left:0;padding:0 18px}
.topbar{height:86px;gap:12px}
.topbar .eyebrow{letter-spacing:1.4px;margin-bottom:7px}
h1{font-size:24px}
.topbar-actions{gap:10px}
.service-status{display:none}
.topbar .button{padding:10px 12px;font-size:12px}
.intro-row{margin:25px 0 20px;align-items:flex-start;gap:10px}
h2{font-size:18px}
.preview-pill{padding:6px;margin-top:3px}
.workspace-grid{gap:17px}
.context-column{grid-template-columns:1fr 1fr;gap:14px}
.context-column .events-card{grid-column:1/-1}
.context-column .card-heading h3{font-size:12px}
.event-list{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-height:190px}
.event-item{padding-bottom:0}
.terminal-stage{height:370px;margin:0 9px}
#terminal{padding:12px 6px 8px 9px}
.function-keys{display:grid;grid-template-columns:repeat(12,1fr);width:100%;gap:4px}
.key-controls{gap:10px;padding:13px 10px}
.key-controls button{height:34px;font-size:12px;min-width:0;padding:0 5px}
/* The navigation keys stay one row in page order (Esc, Tab, Backspace, the four arrows, Enter), each as wide as its label, so
   the arrows always sit together; where the row does not fit it scrolls sideways (the developer rule below), as the customer's
   keys do (UI-D11, UI-C22). */
.navigation-keys{width:100%;display:flex;flex-wrap:nowrap;gap:6px}
.navigation-keys button{flex:none;min-width:36px}
.terminal-empty h3{font-size:16px}
.macro-card{padding:17px}
.macro-card .card-heading{gap:8px}
.button.small{padding:7px 9px}
.macro-send,.macro-delete{padding-top:10px;padding-bottom:10px}
.page-footer{gap:12px}
.profile-grid{grid-template-columns:1fr}
.profile-card{padding:23px}
.profile-card .profile-icon{margin-bottom:16px}
.feature-row{grid-template-columns:1fr 100px;gap:12px}
.feature-description{grid-column:1/-1}
.feature-status{justify-self:end}
.compatibility-intro{padding:20px;gap:16px;align-items:flex-start}
.compatibility-symbol{font-size:30px}
.api-grid{gap:15px}
.api-grid .card{padding:20px}
.view#view-api>.intro-row{flex-direction:column;gap:15px}
.form-grid{grid-template-columns:1fr}
.context-note{display:flex}
.detail-card dl>div{flex-direction:row}
.detail-card dd{max-width:100px;text-align:right}
}
@media(max-width:430px){
.main-shell{padding:0 12px}
.sidebar{padding:14px 12px 0}
.nav-item{padding-left:8px;padding-right:8px}
.intro-row .preview-pill{display:none}
.context-column{grid-template-columns:1fr}
.context-column .events-card{grid-column:auto}
.event-list{grid-template-columns:1fr}
.context-column .card{padding:19px}
.detail-card dd{max-width:190px}
.terminal-stage{height:355px}
.terminal-empty{padding:17px}
.terminal-empty h3{font-size:15px}
.function-keys{grid-template-columns:repeat(6,1fr);gap:5px}
.key-controls button{height:35px}
.macro-card .card-heading{flex-wrap:wrap}
.page-footer>span:last-child{max-width:190px;text-align:right}
/* With 12 px text, New session's icon and the view's name (Compatibility is the longest), the top bar's title and its actions
   do not always fit on one line here: the actions take a second line instead of pushing the page sideways (P9, WCAG 1.4.10). */
.topbar{height:auto;min-height:86px;flex-wrap:wrap;align-content:center;padding-block:10px}
}
/* The developer view's navigation keys scroll sideways in their own box where the row does not fit, with 4 px of room on every
   side so a focused key's ring is never cut, and 1 px more at the end, which the browser's whole-pixel scroll range can lose. The
   customer's whole key row scrolls instead (its own rules), so this one rule leaves the customer view alone. */
@media(max-width:740px){
body:not(.end-user) .navigation-keys{width:calc(100% + 8px);margin:-4px;padding:4px 5px 4px 4px;overflow-x:auto;overflow-y:hidden;scroll-padding-inline:4px;scrollbar-width:thin}
}
/* Twelve function keys of 12 px text need about 440 px of row, so below 470 px they take two rows of six (the customer's keys are
   one scrolling row, which ignores these columns). */
@media(max-width:470px){
.function-keys{grid-template-columns:repeat(6,1fr)}
}
.saved-login-section{width:100%;border-top:1px solid var(--border);margin-top:20px;padding-top:17px;display:grid;gap:12px}
.saved-login-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.saved-login-heading h4{font-size:12px;font-weight:650;margin:0}
.profile-card .saved-login-description{font-size:12px;line-height:1.7;flex:initial;overflow-wrap:anywhere}
.saved-login-actions{display:flex;gap:8px;flex-wrap:wrap}
.profile-card .saved-login-actions .button{flex:1 1 125px;width:auto;white-space:normal;min-height:36px}
.saved-login-section>.button{justify-self:start;white-space:normal;text-align:center}
.saved-login-group{border:1px solid var(--border);border-radius:8px;margin:18px 0 0;padding:15px 16px 18px;min-width:0}
.saved-login-group legend{padding:0 6px;font-size:12px;font-weight:650;color:var(--colour-accent-strong)}
.saved-login-group label:first-of-type{margin-top:0}
.saved-login-dialog .dialog-actions .button{white-space:normal}
.connect-saved-row{border-top:1px solid var(--border);margin-top:18px;padding-top:4px}
.topbar-actions #sign-out{white-space:nowrap}
@media(max-width:740px){
.topbar-actions{gap:7px}
.topbar-actions #sign-out{padding:8px;font-size:12px}
.saved-login-group{padding:12px 13px 15px}
}
@media(prefers-reduced-motion:reduce){
*{scroll-behavior:auto!important;transition:none!important}
}
.terminal-stage.legacy-grid{overflow:auto;scrollbar-width:thin;scrollbar-color:#3a5767 #122531}
.legacy-grid #terminal{min-width:100%;min-height:100%;flex-shrink:0}
/* The text screen (P5, contract 2.5): white with navy text, as SBClient's own terminal is, while a character session's screen shows
   (app.js renderTerminalPresentation sets text-screen-active). The stage takes a light edge and light scroll bars, its own and the
   Wyse 60 fixed grid's, and its ring is the light-surface one (the reset list at the top of the Foundation rules). The welcome card,
   the ended card and the start-up panel keep their navy: the class is off while they show. */
.terminal-stage.text-screen-active{background:var(--host-text-screen);border-color:var(--host-edge);color:var(--host-text-screen-text)}
.terminal-stage.text-screen-active .xterm-viewport{scrollbar-color:var(--host-edge) var(--host-text-screen)}
.terminal-stage.legacy-grid.text-screen-active{scrollbar-color:var(--host-edge) var(--host-text-screen)}
#terminal:has(.wyse-terminal-lines){position:relative}
.wyse-terminal-lines{position:absolute;overflow:hidden;white-space:pre;font-family:Consolas,"Cascadia Mono","Courier New",monospace;background:var(--host-text-screen);color:var(--host-text-screen-text)}
/* Under Windows High Contrast the text screen keeps its own colours, as the lookup does (native GDI keeps explicit colours there):
   forced colours would paint the selection Ctrl+Shift+C copies in the screen's own colour (CHR-08) and drop the bar cursor, which
   xterm draws as a shadow. Its own white goes behind it, as the customer view's viewport is see-through. A dark High Contrast
   theme therefore shows a white text screen inside the dark stage. */
@media(forced-colors:active){
.terminal-stage.text-screen-active #terminal{forced-color-adjust:none;background:var(--host-text-screen)}
}

.saved-login-terminal{display:grid;gap:6px;margin:0;font-size:12px;font-weight:600}
.saved-login-terminal select{width:100%;min-width:0;margin:0}
.connect-saved-row select{margin-bottom:12px}
/* The host status line is a fixed one-line slot while the GUI++ screen shows (app.js
   renderHostStatus): longer or wrapped text ends in an ellipsis, so the slot never
   grows and the stage never moves; its tooltip and the live region keep the full text.
   The slot is always there, so it is as short as a native status bar: 24 px in all. Since P5 it is drawn as one (contract 2.8):
   flat and square, in the face colour, with one line along its top; the other three sides of its 1 px border are transparent, so
   no box inside it moves. Its label is for screen readers alone (sr-only in index.html). Under the expanded stage, which is flush
   with the window's edges, the line is flush too. */
.host-status{display:flex;align-items:center;gap:12px;height:24px;margin:0 12px;padding:0 11px;border:1px solid transparent;border-top-color:var(--host-edge);background:var(--host-face);color:var(--host-text);font-size:12px;line-height:22px;overflow:hidden}
.workspace-expanded .host-status{margin:0}
.host-status[hidden]{display:none}
/* The dashboard can use the full customer workspace while the native status bar has nothing
   to show. Keep its live region and sibling field keys mounted; a host update restores the bar. */
@media screen and (forced-colors: none){
  :root[data-ui="modern"] .end-user .terminal-stage:not(.text-screen-forward):has(> #gui-virtual-desktop:not([hidden],[inert]) > #gui-main-window:not([hidden],[inert]) > #gui-form:not([hidden],[inert]) > iframe[data-fit-dashboard="true"]:not([inert])):not(:has(.gui-auxiliary-form:not([hidden],[inert])))
  + #host-status:has(> #host-status-text:empty):not([data-status-help],[data-clipped]):not(:has(> progress,> .host-status-transfer[data-active="true"],> #host-status-more:not([hidden]))){display:none}
}
.host-status-label{flex-shrink:0;font-size:10px;font-weight:600;color:var(--host-text-muted)}
.host-status #host-status-text{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* MOD-06 (backlog wave 14): status-line help in view is drawn as SBClient's help area: Mertex's own background behind the
   text with a text colour that reads on it (browser/gui-help-window.ts sets both), inside a lowered edge, as the area's
   rectangle is. The line keeps its one row and its height (UI-C07): the edge is drawn inside the text's own box. In mode 5
   the text takes the keyboard, so it shows where the keyboard is. */
.host-status[data-status-help] #host-status-text{background:var(--status-help-background,transparent);color:var(--status-help-colour,inherit);box-shadow:inset 1px 1px 0 var(--host-edge),inset -1px -1px 0 var(--host-window)}
.host-status[data-status-help-keyboard]{height:44px;overflow:auto}
.host-status[data-status-help-keyboard] #host-status-text{display:none}
.status-help-terminal{flex:1 0 auto;min-width:720px;height:40px}
.status-help-terminal[hidden]{display:none}
@media (forced-colors:active){.host-status[data-status-help] #host-status-text{background:Canvas;color:CanvasText;box-shadow:none;outline:1px solid CanvasText;outline-offset:-1px;forced-color-adjust:auto}}
.host-status:has(>.host-status-transfer[data-active="true"])>#host-status-text{flex:1 1 0}
/* P7 contract C4.8: a file transfer holding the keyboard is said in this slot, at its end, beside Mertex's own status text, which
   gives way first: while a transfer shows, that text takes only the room the line and Show all leave (flex-basis 0, the rule
   above), so the line is cut only once Mertex's text has none (wave 2b's second review: a share of the shrink had cut the
   line's sizes by a fraction of a pixel beside hundreds of pixels of Mertex's text). With no transfer the slot is as before.
   Until then the line is empty and out of the row, so Mertex's text keeps the whole slot; it stays in the page, so a screen
   reader hears it once when it starts. Once Mertex's text has gone, the line gives way too, so Show all (flex:none) stays
   inside the slot at any width and font size, and the clipped words are in its panel (wave 2b's review). Within the line the
   words give way before the sizes, the only progress figures: the words end in an ellipsis, down to nothing, while the sizes
   keep their room (flex:none), so fonts wider than the ones we test with lose words, not figures (CI's Firefox on Ubuntu 26.04
   had cut the sizes off whole at 320 px). Only where the sizes alone are wider than the room beside Show all (320 px with a
   24 px minimum font size) are they cut too, with an ellipsis of their own. A flex row draws no space between its boxes, so the
   sizes begin with a no-break space of their own; the space between them in the markup stays, for the line's text in Show
   all's panel. */
.host-status-transfer{display:flex;flex:0 1 auto;max-width:100%;min-width:0;margin-left:auto;overflow:hidden;white-space:nowrap;font-weight:600}
.host-status-transfer:not([data-active="true"]){position:absolute}
.host-status-transfer-words{min-width:0;overflow:hidden;text-overflow:ellipsis}
.host-status-transfer-size{flex:none;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.host-status-transfer-size:not(:empty)::before{content:"\a0"}
.host-status>progress{flex:none}
.terminal-stage.gui-preparing{overflow:auto}
.gui-startup-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;padding:28px 20px;text-align:center;color:#dde9ec;overflow-wrap:anywhere}
.gui-startup-placeholder h3{font-size:17px;line-height:1.5;max-width:34em}
.gui-startup-placeholder p{font-size:12px;color:#b8cbd3;max-width:34em;margin:14px 0}
.gui-startup-placeholder small{font-size:12px;color:#a4bdc5;line-height:1.6}
.terminal-stage.gui-login-active{overflow:auto;background:#f1f7f6;border-color:#d2e4e0;min-height:355px}
.gui-login-panel{display:flex;justify-content:center;align-items:center;min-height:100%;padding:25px 18px}
.gui-login-form{width:100%;max-width:380px;color:#29414e}
.gui-login-form h3{font-size:21px;line-height:1.4}
.gui-login-form>p:first-of-type{font-size:12px;color:var(--colour-text-muted);margin:10px 0 22px}
.gui-login-form input{font-size:16px;min-height:44px}
.gui-login-status{min-height:20px;font-size:12px;color:#4b6d70;margin-top:12px}
.gui-login-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:14px}
.gui-login-actions .button{min-height:44px}
.gui-login-waiting{max-width:380px;text-align:center;color:#29414e}
.gui-login-waiting h3{font-size:19px;line-height:1.5}
.gui-login-waiting p{margin-top:14px;font-size:12px;color:var(--colour-text-muted)}
.terminal-stage.gui-virtual-desktop{position:relative;overflow:auto;border:0;padding:0;cursor:var(--gui-cursor,default);scrollbar-width:auto;scrollbar-color:auto}
.gui-virtual-desktop-surface{display:contents}
.gui-virtual-desktop .gui-virtual-desktop-surface{display:block;position:relative;flex-shrink:0;overflow-x:clip;overflow-y:visible;box-sizing:border-box;margin:0;padding:0;border:0;min-width:100%;min-height:100%}
/* Only the main web dashboard can reflow to the stage. A visible native child window needs the desktop's full scroll range. */
:root[data-ui="modern"] .gui-virtual-desktop-surface:has(#gui-form > iframe[data-fit-dashboard="true"]:not([inert])):not(:has(.gui-auxiliary-form:not([hidden]):not([inert]))){max-width:100%;overflow:clip}
/* The host verifies the native form's rectangle. The customer dashboard can paint into its
   native inset; the modern dashboard also fills the remaining workspace. */
.gui-virtual-desktop-surface:not(:has(.gui-auxiliary-form:not([hidden]):not([inert]))) #gui-form:not([inert]):has(> iframe[data-fit-dashboard="true"]:not([inert])){overflow:visible}
/* The customer dashboard occupies the empty dock. Its measured buttons have no visible face
   or input target while the foreground menu uses their space. */
#gui-main-window:has(> #gui-form:not([inert]) > iframe[data-reclaims-toolbar]:not([inert])) [data-empty-top-toolbar]{visibility:hidden;pointer-events:none}
.gui-virtual-desktop #gui-main-window{position:absolute;overflow:visible}
.gui-virtual-desktop .gui-main-window-client{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
.gui-virtual-desktop #gui-main-window{box-sizing:border-box;min-height:0;min-width:0;max-width:none;flex-shrink:0;cursor:var(--gui-cursor,default);font-family:"Segoe UI",sans-serif;font-size:14px;font-weight:normal;font-style:normal;line-height:var(--gui-variable-line-height,21px)}
.gui-virtual-desktop #gui-main-window-content{box-sizing:border-box;min-height:0;min-width:0;width:100%;height:100%;padding:0;overflow:visible}
.gui-virtual-desktop .gui-fixed-font,.gui-virtual-desktop #gui-main-window pre,.gui-virtual-desktop #gui-main-window code{font-family:"Courier New",monospace;font-size:14px;font-weight:normal;font-style:normal;line-height:var(--gui-fixed-line-height,21px)}
/* Text selected in any Mertex window, the main one and every window over it, takes the measured system highlight (P5, UI-H12). */
.gui-virtual-desktop :is(#gui-main-window,#gui-auxiliary-forms) ::selection{background:var(--gui-highlight,Highlight);color:HighlightText}
/* Mertex text with no colour of its own (a label, field, menu item or line with no foreground) takes Windows' default window text,
   as native's COLOR_WINDOWTEXT, BTNTEXT and MENUTEXT defaults do (server/protocol/sb-native-colours.mts), not REA's slate. Colours
   Mertex sends are inline and still win; REA's 'Opening Mertex…' card, outside #gui-form, keeps its own (P5, DN3 B). */
.gui-virtual-desktop :is(#gui-form,#gui-auxiliary-forms){color:var(--host-text)}
.terminal-stage.gui-main-window-active{overflow:auto;background:#f4f7f8;border-color:#dbe5e8;min-height:355px}
/* Backlog wave 33 (33A, term-trip): Mertex's text brought the text screen forward (app.js renderTerminalPresentation). It lies over
   the part of the stage that shows, and the GUI++ screen stays laid out beneath it, so its scroll positions, values and embedded
   pages come back as they were; meanwhile it is not shown and takes no click, key or focus, whatever a control's own style says,
   and the stage keeps its box and stops scrolling. */
.terminal-stage.text-screen-forward{overflow:hidden}
.terminal-stage.text-screen-forward>#gui-virtual-desktop,.terminal-stage.text-screen-forward>#gui-virtual-desktop *{visibility:hidden!important}
.terminal-stage.text-screen-forward>#terminal{position:absolute;z-index:4;top:var(--text-screen-top,0);left:var(--text-screen-left,0);width:100%;height:100%;overflow:auto}
.gui-lfk-bar:has(+ .terminal-stage.text-screen-forward){visibility:hidden}
.gui-main-window{min-height:100%;display:flex;flex-direction:column;color:#29414e}
.gui-main-window-content{display:flex;flex:1;min-height:355px;padding:24px 18px}
.gui-main-window-pending{margin:auto;max-width:380px;text-align:center}
.gui-main-window-pending h3{font-size:19px;line-height:1.5}
.gui-main-window-pending p{margin-top:12px;font-size:12px;color:var(--colour-text-muted)}
.gui-window-symbol{display:inline-grid;place-items:center;width:48px;height:48px;margin-bottom:18px;border-radius:10px;background:#e3efed;color:#52867d;font-size:26px}

.terminal-stage{cursor:var(--gui-cursor,default)}
/* Mertex's toolbar (P5): the face colour with an edge along its foot, and square buttons whose 1 px border stays, because
   buttonBitmapProof draws each icon inside it. A button's label keeps its own darker colour, and an unavailable one its muted
   one (test/toolbar-icons.test.mts); a button with an icon keeps the face colour its icon's transparent pixels show. */
#gui-toolbar{position:absolute;z-index:2;box-sizing:border-box;overflow:hidden;background:var(--host-face);border-bottom:1px solid var(--host-edge)}
.gui-toolbar-slot{position:absolute;box-sizing:border-box;pointer-events:none}
.gui-toolbar-button{position:absolute;box-sizing:border-box;margin:0;padding:0;border:1px solid var(--host-edge);border-radius:0;background:var(--host-button-face);color:#3b5262;font:600 12px system-ui;opacity:1}
.gui-toolbar-button[data-button-bitmap]{background:var(--host-face)}
/* Not clickable yet (aria-disabled keeps the help text as a tooltip): muted, like
   a disabled native button. The filter changes only the painted icon, never the
   canvas pixels that buttonBitmapProof reads back. */
.gui-toolbar-button:disabled,.gui-toolbar-button[aria-disabled="true"]{cursor:default;color:#8a9aa5;border-color:var(--host-edge);background:var(--host-face)}
.gui-toolbar-button:is(:disabled,[aria-disabled="true"])>canvas{filter:grayscale(1);opacity:.5}
@media (forced-colors:active){
.gui-toolbar-button{border-color:ButtonBorder}
.gui-toolbar-button:is(:disabled,[aria-disabled="true"]){color:GrayText;border-color:GrayText}
}
/* FORM-15 (backlog wave 7A): a native scroll bar (gui-scrollbar.ts) in the Windows look: a track in the face colour, arrows on
   the button face and a thumb in the edge colour, the thumb proportional to Mertex's page when the bar says so. Its geometry
   (each part placed along the bar) is set by the module itself, inside the box the host gives it. It takes a press only while
   Mertex waits for input (aria-disabled otherwise). */
.gui-form-scrollbar{background:var(--gui-scrollbar-track,var(--host-face));color:var(--host-text-muted);cursor:default;user-select:none;touch-action:none}
.gui-scrollbar-arrow{background:var(--host-button-face)}
.gui-scrollbar-track{background:var(--gui-scrollbar-track,var(--host-face))}
.gui-scrollbar-thumb{background:var(--host-edge)}
.gui-form-scrollbar:not([aria-disabled="true"]) .gui-scrollbar-thumb:hover{background:var(--host-text-muted)}
.gui-form-scrollbar.gui-scrollbar-pressed .gui-scrollbar-thumb{background:var(--host-text)}
.gui-form-scrollbar[aria-disabled="true"] .gui-scrollbar-arrow{opacity:.5}
.gui-form-scrollbar:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
@media (forced-colors:active){
.gui-form-scrollbar,.gui-scrollbar-track{background:Canvas;color:ButtonText}
.gui-scrollbar-arrow{background:ButtonFace}
.gui-scrollbar-thumb{background:ButtonText;forced-color-adjust:none}
}
/* FORM-16 (backlog wave 7A): SB+'s LFK window (gui-lfk-bar.ts): a strip of push buttons on the button face just above the GUI++
   screen, left to right with 2 px between them, as SBLFKCLA lays them out, and a line along its foot. */
.gui-lfk-bar{display:flex;flex-wrap:wrap;gap:2px;margin:0 12px;padding:2px;box-sizing:border-box;background:var(--host-face);border-bottom:1px solid var(--host-edge)}
.gui-lfk-bar[hidden]{display:none}
.gui-lfk-button{margin:0;padding:2px 8px;box-sizing:border-box;border:1px solid var(--host-edge);border-radius:0;background:var(--host-button-face);color:var(--host-text);font-family:"Segoe UI",Tahoma,sans-serif;font-size:12px;cursor:default;white-space:nowrap}
.gui-lfk-button:not([aria-disabled="true"]):hover{background:var(--host-face-hover);border-color:var(--host-edge-hover)}
.gui-lfk-button:not([aria-disabled="true"]):active{background:var(--host-face-pressed)}
.gui-lfk-button[aria-disabled="true"]{color:var(--host-text-muted);background:var(--host-face)}
@media (forced-colors:active){
.gui-lfk-button{border-color:ButtonBorder}
.gui-lfk-button[aria-disabled="true"]{color:GrayText;border-color:GrayText}
}
#gui-form{position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;overflow:hidden;z-index:1}
.gui-form-control{position:absolute;box-sizing:border-box;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;line-height:normal}
.gui-form-toggle input[data-native-cross]{appearance:none;box-sizing:border-box;background:var(--toggle-face);border:var(--toggle-frame) inset ButtonFace;border-radius:0;opacity:1}
.gui-form-toggle input[data-native-cross]:checked{background-image:linear-gradient(45deg,transparent 41%,var(--toggle-ink) 42% 58%,transparent 59%),linear-gradient(-45deg,transparent 41%,var(--toggle-ink) 42% 58%,transparent 59%);background-origin:content-box;background-repeat:no-repeat}
@media(forced-colors:active){.gui-form-toggle input[data-native-cross]{appearance:auto}}
.gui-form-text{appearance:none;outline:none}
/* FORM-20 (backlog wave 9): an editable list's drop-down button, inside its field's right edge (app.js places it after the layout),
   and its own list, a popover in the top layer so that no window clips it, as a Windows combobox's list is drawn over everything.
   The list takes the host-content look: the window colour with a grey edge, and the highlighted item in the pressed blue, as REA's
   own SB+ lists mark their current row; the item under the pointer is the highlighted one, as in a dropped Windows list. The
   button draws a chevron in the field's own text colour (app.js copies it), with the hover blue under the pointer and while open.
   An empty item takes a whole row, as in a Windows list box: a zero-width space gives it a line, its text staying empty. */
.gui-form-combo-button{position:absolute;box-sizing:border-box;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--host-text);cursor:default;z-index:2}
.gui-form-combo-button::before{content:"";position:absolute;left:50%;top:50%;box-sizing:border-box;width:6px;height:6px;margin:-5px 0 0 -3px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}
.gui-form-combo-button:hover,.gui-form-combo-button[aria-expanded="true"]{background:var(--host-face-hover)}
.gui-form-combo-list{position:fixed;inset:auto;box-sizing:border-box;margin:0;padding:0;overflow-x:hidden;overflow-y:auto;border:1px solid var(--host-edge);border-radius:0;background:var(--host-window);color:var(--host-text);line-height:normal;cursor:default;user-select:none}
.gui-form-combo-list[hidden]{display:none}
.gui-form-combo-list>[role="option"]{padding:1px 3px;white-space:pre;overflow:hidden}
.gui-form-combo-list>[role="option"]:empty::before{content:"\200b"}
.gui-form-combo-list>[role="option"][aria-selected="true"]{background:var(--host-face-pressed);color:var(--host-text)}
@media(forced-colors:active){
.gui-form-combo-list{border-color:CanvasText}
.gui-form-combo-list>[role="option"][aria-selected="true"]{forced-color-adjust:none;background:Highlight;color:HighlightText}
.gui-form-combo-button::before{border-color:ButtonText}
}

#gui-auxiliary-forms{display:contents}
.gui-auxiliary-form{position:absolute;box-sizing:border-box;min-width:0;min-height:0;margin:0;padding:0;border:0;overflow:hidden;z-index:3}
/* Mertex's windows (P5, contract 2.2 d): square captions in the caption colours, a thin grey outline round a window behind the front
   one, and round the front one a 2 px outline in the hover blue, which its caption carries on round its three outer sides (shadows
   outside its box, so nothing in the window is covered or moved). The front window is the one data-window-active="true" marks
   (app.js renderGuiForm); behind it a caption's text is muted, so the front one is marked by more than colour. A caption behind the
   front one carries the window's 1 px grey outline round its three outer sides in the same way, so its sides meet the outline with
   no step; in forced colours, which drop shadows, it keeps a border of its own. While a Mertex message or the calendar shows,
   renderGuiDialog makes #gui-virtual-desktop inert, and the front window under it takes the look of one behind the front one, as
   Windows makes a modal box's owner inactive. Owned O/formclass windows are left as they are: their clip-path would cut a 2 px
   outline. */
[data-window-modal="true"]{outline:1px solid var(--host-edge);filter:drop-shadow(0 8px 16px #0004);margin-bottom:16px}
[data-window-modal="true"][data-window-active="true"]{outline:2px solid var(--host-edge-hover)}
.gui-form-window-title{position:absolute;left:0;right:0;top:-32px;height:32px;display:flex;align-items:center;justify-content:space-between;padding-left:10px;border:1px solid var(--host-edge);border-bottom:0;border-radius:0;background:var(--host-caption);color:var(--host-caption-text);font:14px/1.2 "Segoe UI",sans-serif;overflow:hidden}
.gui-form-window-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gui-form-window-title{cursor:move;touch-action:none;user-select:none}
.gui-form-window-title.is-dragging{cursor:grabbing}
.gui-form-window-title>button{height:31px;width:38px;padding:0;border:0;background:transparent;color:inherit;font:23px/1 Arial,sans-serif}
.gui-form-window-title>button:hover:enabled{background:var(--host-close-hover);color:var(--colour-on-accent)}
[data-window-modal="true"][data-window-active="true"]>.gui-form-window-title{border-color:transparent;box-shadow:-2px 0 0 var(--host-edge-hover),2px 0 0 var(--host-edge-hover),0 -2px 0 var(--host-edge-hover),-2px -2px 0 var(--host-edge-hover),2px -2px 0 var(--host-edge-hover)}
[data-window-active="false"]>.gui-form-window-title{color:var(--host-text-muted)}
[data-window-modal="true"]:not([data-window-active="true"])>.gui-form-window-title{border-color:transparent;box-shadow:-1px 0 0 var(--host-edge),1px 0 0 var(--host-edge),0 -1px 0 var(--host-edge),-1px -1px 0 var(--host-edge),1px -1px 0 var(--host-edge)}
#gui-virtual-desktop[inert] [data-window-modal="true"][data-window-active="true"]{outline:1px solid var(--host-edge)}
#gui-virtual-desktop[inert] [data-window-modal="true"][data-window-active="true"]>.gui-form-window-title{box-shadow:-1px 0 0 var(--host-edge),1px 0 0 var(--host-edge),0 -1px 0 var(--host-edge),-1px -1px 0 var(--host-edge),1px -1px 0 var(--host-edge);color:var(--host-text-muted)}
/* An O/formclass window's frame and caption bar: not draggable (it keeps its host position), and its × is not available. */
.gui-owned-window{outline:1px solid var(--host-edge)}
.gui-form-window-title.gui-owned-window-title{cursor:default;touch-action:auto}
.gui-owned-window-title>button:disabled{color:var(--host-text-muted)}
/* Mertex's help window (help_form_2) is a window of its own, which the person moves by its caption bar (backlog wave 34,
   gui-help-window.ts): only its caption takes the move cursor and a touch drag, above the fixed owned-window rule; its × keeps
   the arrow. Every other owned window's caption stays fixed. */
[data-help-window]>.gui-form-window-title.gui-owned-window-title{cursor:move;touch-action:none;user-select:none}
[data-help-window]>.gui-form-window-title.gui-owned-window-title.is-dragging{cursor:grabbing}
[data-help-window]>.gui-form-window-title.gui-owned-window-title>button{cursor:default}
@media (forced-colors:active){
.gui-owned-window-title>button:disabled{color:GrayText}
[data-window-active="false"]>.gui-form-window-title{color:GrayText}
[data-window-modal="true"][data-window-active="true"]{outline-color:Highlight}
[data-window-modal="true"]:not([data-window-active="true"])>.gui-form-window-title{border-color:CanvasText}
#gui-virtual-desktop[inert] [data-window-modal="true"][data-window-active="true"]{outline-color:CanvasText}
#gui-virtual-desktop[inert] [data-window-modal="true"][data-window-active="true"]>.gui-form-window-title{border-color:CanvasText;color:GrayText}
}
/* A visible focus indicator on host fields and grid editors. An outline never
   changes the measured control geometry; it overrides the editors' inline
   outline:none only while they have keyboard focus. */
.gui-form-control:is(input,textarea,select,button):focus-visible,.gui-form-control :is(input,textarea,select,button):focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour)!important;outline-offset:0!important}
/* The focused host control is drawn above its neighbours inside its own window, so a later control placed against it (P5's push
   button face fills its box) cannot cover one side of the ring above. Nothing moves or resizes. Each window's own stacking context
   (#gui-form, .gui-auxiliary-form) keeps the control below the toolbar and other windows, and the window's own browsers stay above
   it (gui-browser.js, GUI_BROWSER_LAYER), as natively. Where two controls overlap, the focused one is drawn, and takes the click,
   on top while it has focus. A recorded exception to contract G1 (z-index). */
.gui-form-control:is(input,textarea,select,button):focus-visible{z-index:1}
.gui-form-control:is(input[type="text"],textarea){caret-color:currentColor;cursor:text}
.gui-form-menu{display:flex;flex-wrap:wrap;gap:4px 12px;box-sizing:border-box;min-height:44px;padding:4px 0 8px;border-bottom:1px solid var(--host-edge);font:14px/1.4 system-ui,sans-serif;color:var(--host-text)}
.gui-form-menu details{min-width:0}
.gui-form-menu summary{padding:8px;cursor:pointer;overflow-wrap:anywhere}
.gui-form-menu button{display:block;max-width:100%;margin:3px 0;padding:8px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.gui-browser-control{position:absolute;box-sizing:border-box;display:block;border:0;margin:0;padding:0;background:white}
/* P7 contract C8.4: a page that cannot be shown keeps its frame's box (the same place and size, set by gui-browser.js) with a calm,
   fixed message. The words wrap, and at 200% zoom stay inside the box, clipped at its edge rather than spilling over the screen. */
.gui-browser-unavailable{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin:0;padding:8px;overflow:hidden;
  border:1px solid var(--host-edge);background:var(--host-face);color:var(--host-text);font:13px/1.4 system-ui,sans-serif;text-align:center;
  white-space:normal;overflow-wrap:anywhere}
.gui-browser-unavailable:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
@media(forced-colors:active){
.gui-browser-unavailable{border-color:CanvasText;background:Canvas;color:CanvasText}
}
/* The on-screen keys for Mertex's fields, in every view the customer's compact strip (UI-C20, UI-D04): one right-aligned row of
   keys as wide as their names, Enter filled as the main key, 32 px high with a mouse and 44 px on touch, so the strip is 40 px
   (52 px on touch). At 400 px and below each key shows only its key name, the word staying in its accessible name, and is at
   least 48 px wide, so all four fit a 305 px layout (a 320 px window with a classic scroll bar) with no key or ring cut by the
   session panel. The customer rules at the end of the file give the same values, except that 48 px, which is the developer
   view's alone. */
.gui-field-keys{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:6px;padding:4px 12px}
.gui-field-keys button{flex:0 0 auto;min-width:64px;min-height:32px;padding:4px 12px;border:1px solid #cbdcde;border-radius:5px;background:#f4f9f8;color:#225952;font-size:13px}
.gui-field-keys button[data-gui-field-key="Enter"]{border-color:var(--colour-accent);background:var(--colour-accent);color:var(--colour-on-accent)}
@media(pointer:coarse){
.gui-field-keys button{min-width:56px;min-height:44px}
}
@media(max-width:400px){
.gui-field-keys .key-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gui-field-keys button{min-width:48px}
}
/* A Mertex form whose canvas does not validate falls back to this responsive layout (gui-form-layout.js), so its tabs and menu take
   the host-content colours and square corners too (P5), with the current page in the pressed colour as well as bold. */
.gui-form-tabs{display:flex;flex-wrap:wrap;gap:6px;min-height:44px;margin:0;padding:4px 0 8px;border-bottom:1px solid var(--host-edge);font:14px/1.4 system-ui,sans-serif;color:var(--host-text)}
.gui-form-tabs button{display:block;border:0;background:transparent;font:inherit;max-width:100%;padding:8px 12px;border-radius:0;overflow-wrap:anywhere;box-sizing:border-box}
.gui-form-tabs button:disabled{opacity:1;cursor:default}
.gui-form-tabs [aria-current="page"]{background:var(--host-face-pressed);color:var(--host-text);font-weight:600}
.terminal-stage.gui-responsive-active{overflow:clip}
.gui-responsive-active .gui-virtual-desktop-surface{overflow:visible}
/* Native comparison keeps received cell colors, compact strips and positions.
   The auxiliary viewport scrolls; neither the canvas nor fields are scaled. */
/* Native-layout tabs: a strip in the face colour, the current page a square tab in
   the window colour edged on its three outer sides, marked by colour and edge
   rather than weight, so no tab changes width when it is chosen (P5). The
   tab report tells the host where the page starts, so the strip and every tab
   keep the earlier footprint exactly: no gaps or strip padding, the same font,
   the same padding and the same 1px border (transparent but on the current tab,
   no bottom border). The current tab is open to its page, as a Windows tab is: a
   shadow in the window colour paints over the strip's foot line under its inside
   only, leaving its corners joined, and moves nothing.
   It stays a real border because the browser rounds borders, not padding, to
   whole device pixels under display scaling and zoom, so the strip wraps at
   the same widths and to the same heights at every scale. */
[data-gui-comparison="true"]>.gui-form-tabs{gap:0;min-height:28px;padding:0;border-bottom:1px solid var(--host-edge);background:var(--host-face);font:13px/1.3 Tahoma,Arial,sans-serif;flex-wrap:wrap}
[data-gui-comparison="true"]>.gui-form-tabs button{flex:none;padding:4px 10px;border:1px solid transparent;border-bottom:0;border-radius:0;background:transparent;color:var(--host-text);white-space:nowrap;overflow-wrap:normal}
[data-gui-comparison="true"]>.gui-form-tabs button:not(:disabled):hover{background:var(--host-face-hover);color:var(--host-text)}
[data-gui-comparison="true"]>.gui-form-tabs [aria-current="page"]{background:var(--host-window);border-color:var(--host-edge);color:var(--host-text);font-weight:400;box-shadow:0 2px 0 -1px var(--host-window)}
/* SB+'s ordinary push buttons in the native layout (app.js marks them
   data-native-face): a square Windows push button face that fills the native
   box (P5; it was a rounded key 2 pixels inside it). The face is a pseudo-element
   behind the caption, so the box, its content area and the host's caption font
   are all unchanged. A key greys only once it has stayed unavailable for a
   moment, so the keys do not flicker while Mertex works on the last one. In
   forced colours the current tab is outlined, which takes no layout space. */
.gui-form-button[data-native-face="true"]{isolation:isolate;border-radius:0;background:transparent;color:var(--host-text);cursor:pointer}
.gui-form-button[data-native-face="true"]::before{content:"";position:absolute;inset:0;z-index:-1;box-sizing:border-box;border:1px solid var(--host-edge);border-radius:0;background:var(--host-button-face);transition:background-color .15s,border-color .15s}
.gui-form-button[data-native-face="true"]:not(:disabled):hover::before{background-color:var(--host-face-hover);border-color:var(--host-edge-hover)}
.gui-form-button[data-native-face="true"]:not(:disabled):active::before{background-color:var(--host-face-pressed)}
.gui-form-button[data-native-face="true"]:disabled{opacity:1;cursor:default;animation:gui-key-unavailable-text .15s ease-out .35s both}
.gui-form-button[data-native-face="true"]:disabled::before{animation:gui-key-unavailable .15s ease-out .35s both}
@keyframes gui-key-unavailable-text{
to{color:var(--host-text-muted)}
}
@keyframes gui-key-unavailable{
to{background-color:var(--host-face);border-color:var(--host-edge)}
}
@media(prefers-reduced-motion:reduce){
.gui-form-button[data-native-face="true"]::before{transition:none}
.gui-form-button[data-native-face="true"]:disabled,.gui-form-button[data-native-face="true"]:disabled::before{animation-duration:0s}
}
@media(forced-colors:active){
.gui-form-button[data-native-face="true"]::before{border-color:ButtonBorder}
.gui-form-button[data-native-face="true"]:disabled{color:GrayText}
[data-gui-comparison="true"]>.gui-form-tabs [aria-current="page"]{outline:2px solid Highlight;outline-offset:-2px;color:Highlight}
/* NEW-A11Y-1 (backlog wave 10B): a tab that cannot be chosen while Mertex is busy is not greyed (.gui-form-tabs button:disabled
   above), and forced colours would draw it in GrayText each time Mertex works: it keeps the colours of a tab that can be chosen. */
.gui-form-tabs button:disabled{color:ButtonText;border-color:ButtonBorder}
}
[data-gui-comparison="true"]>.gui-form-menu{min-height:26px;gap:0 8px;padding:0;background:var(--host-window);font:13px/1.3 Tahoma,Arial,sans-serif}
[data-gui-comparison="true"]>.gui-form-menu :is(summary,button:not(:disabled)):hover{background:var(--host-face-hover)}
[data-gui-comparison="true"]>.gui-form-menu summary{padding:3px 6px;white-space:nowrap;overflow-wrap:normal;list-style:none}
[data-gui-comparison="true"]>.gui-form-menu summary::-webkit-details-marker{display:none}
[data-gui-comparison="true"]>.gui-form-menu>button{margin:0;padding:3px 6px;border:0;border-radius:0;background:transparent;white-space:nowrap;font:inherit;color:inherit}
/* NEW-MENU-1 (backlog wave 9): a drop-down item's accelerator text (the text after the TAB in its caption, a label only) sits apart
   from the caption, right-aligned in its own column, as Windows draws it; the caption's mnemonic letter is underlined (app.js).
   The items of an open drop-down share its width, so the accelerators line up at its right edge. */
.gui-form-menu details>button{width:100%}
.gui-form-menu-accelerator{float:right;margin-left:24px;white-space:pre}
/* LKP-02 / NE8 (backlog wave 12, stream 12B): the main window's menu bar, drawn inside REA's own bar (renderGuiMainMenu in app.js;
   beside the form menus' rules, as the end of this file is the customer block two tests pin): in the customer bar after the
   system's name, or in the developer toolbar's name cell. SBClient's main window always has its menu row, so the client area never
   moves; REA's bar is never a row of its own either, so the Mertex screen keeps its size and place whether or not a menu shows,
   and gui_default_data does not change (the wave 12 review). The bar is one line, centred on its bar's own line and taking no
   height there (its host is 0 px high), so neither bar's height changes, on one line or two. A drop-down lies over the screen below
   its item, above the screen's windows (the host's own z-index; the toolbar is not a stacking context). In the customer bar at
   640 px and below, where the connection is its dot (UI-C22), the system's name keeps the dot whole, and the bar's items give way
   instead, each caption ending in an ellipsis (the wave 12 second review; a drop-down item already shrinks, as the form menus'
   details have no minimum width, and a bar button has none once it clips); the nav itself is never clipped, as that would clip
   the drop-downs. An item only waiting for Mertex keeps its colours (it is disabled until Mertex's input names it), in forced
   colours too (as NEW-A11Y-1 keeps a tab's), an item Mertex greyed (disabled_set) is grey, and a checked one (checked_set) shows
   its mark. */
.gui-main-menu-host{position:relative;z-index:25;display:flex;align-items:center;flex:0 0 auto;height:0;min-width:0;align-self:center;margin:0}
.gui-main-menu-host[hidden]{display:none}
.customer-bar>.gui-main-menu-host{margin-right:auto}
@media(max-width:640px){.end-user .customer-bar-identity{flex-shrink:0}}
.customer-bar>.gui-main-menu-host{flex:0 1 auto;min-width:0}
.customer-bar>.gui-main-menu-host>.gui-main-menu{min-width:0;max-width:100%}
.customer-bar .gui-main-menu>details>summary,.customer-bar .gui-main-menu>button{overflow:hidden;text-overflow:ellipsis}
.terminal-identity>.gui-main-menu-host{margin-left:4px}
.gui-main-menu{flex-wrap:nowrap;align-items:center;box-sizing:border-box;height:26px;min-height:0;gap:0 2px;padding:0;border:0;background:transparent;font:13px/1.3 Tahoma,Arial,sans-serif;color:inherit}
.gui-main-menu details{position:relative}
.gui-main-menu summary{padding:3px 6px;white-space:nowrap;overflow-wrap:normal;list-style:none;cursor:default}
.gui-main-menu summary::-webkit-details-marker{display:none}
.gui-main-menu>button{margin:0;padding:3px 6px;border:0;border-radius:0;background:transparent;white-space:nowrap;font:inherit;color:inherit}
.gui-main-menu-drop{box-sizing:border-box;max-height:calc(100dvh - var(--menu-top,0px));overflow-y:auto;overscroll-behavior:contain;position:absolute;left:0;top:100%;z-index:20;min-width:12em;padding:2px 0;border:1px solid var(--host-edge);background:var(--host-window);color:var(--host-text);box-shadow:2px 2px 4px rgba(0,0,0,.25)}
.gui-main-menu-drop>button{display:block;width:100%;margin:0;padding:3px 18px 3px 6px;border:0;border-radius:0;background:transparent;text-align:left;white-space:nowrap;font:inherit;color:inherit}
.gui-main-menu-drop .gui-main-menu-drop{position:static;margin-left:.8em;min-width:0;max-height:none;overflow:visible;border:0;border-left:1px solid var(--host-edge);box-shadow:none}
.gui-main-menu-drop summary::after{content:"\203a";float:right;margin-left:1em}
.gui-main-menu-drop details[open]>summary::after{content:"\2304"}
.gui-main-menu-drop>hr{margin:3px 1px;border:0;border-top:1px solid var(--host-edge)}
.gui-main-menu :is(summary,button:not(:disabled)):hover,.gui-main-menu :is(summary,button):focus-visible{background:var(--host-face-hover)}
.gui-main-menu button:disabled:not([data-grayed="true"]){opacity:1;color:inherit;cursor:default}
.gui-main-menu [data-grayed="true"]{color:#6d6d6d}
.gui-main-menu-check{display:inline-block;width:1.2em}
@media (forced-colors:active){.gui-main-menu button:not([data-grayed="true"]){color:ButtonText}.gui-main-menu [data-grayed="true"]{color:GrayText}.gui-main-menu button:disabled:not([data-grayed="true"]){color:ButtonText}}
[data-gui-comparison="true"]>.gui-form-control:disabled{opacity:1}
/* Native SBPLUSLI.B26 selection list: flat bands of clipped, unwrapped labels
   with no gridlines, striping or bold; every box is placed inline from the
   native layout. Buttons are classic raised push buttons. */
.gui-selection-list,.gui-selection-status{position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;overflow:hidden;user-select:none;cursor:default}
.gui-selection-row,.gui-selection-cell,.gui-selection-separator,.gui-selection-label{position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;overflow:hidden}
.gui-selection-cell,.gui-selection-label{white-space:pre;overflow-wrap:normal;font:inherit;line-height:inherit;text-overflow:clip}
[data-selection-button="true"]{box-shadow:inset -1px -1px 0 0 #000,inset 1px 1px 0 0 #fff,inset -2px -2px 0 0 #c0c0c0,inset 2px 2px 0 0 #e3e3e3;line-height:normal;white-space:nowrap;cursor:default}
[data-selection-button="true"]:active:enabled{box-shadow:inset 1px 1px 0 0 #000,inset -1px -1px 0 0 #fff,inset 2px 2px 0 0 #c0c0c0,inset -2px -2px 0 0 #e3e3e3}
[data-selection-button="true"]:focus-visible{outline:1px dotted #000;outline-offset:-4px}
/* The host-field focus ring would cover the raised bevel; the selection list's
   push buttons keep the native dotted focus rectangle inside it. */
button.gui-form-control[data-selection-button="true"]:focus-visible{outline:1px dotted #000!important;outline-offset:-4px!important}
button[data-selection-button="true"]:disabled{opacity:1;cursor:default}
/* The current row (P5, contract 2.4): a dotted rectangle just inside its edge, as Windows lists draw, in the row's own text colour,
   so the row Enter will pick shows even where Mertex's style gives the cursor no colour of its own. A deliberate departure from
   B26, which changes only the text colour; an outline takes no room, so no cell moves. */
.gui-selection-row[data-current="true"]{outline:1px dotted currentColor;outline-offset:-1px}
/* Native GDI keeps these explicit colours under Windows High Contrast. Forced
   colours would drop the cursor and tag colours and every bevel, leaving the
   current and tagged rows indistinguishable and the buttons edgeless. */
@media (forced-colors:active){
.gui-selection-list,.gui-selection-status,[data-selection-button="true"]{forced-color-adjust:none}
}
/* SBGRID numbers its fixed gutter by physical row. A host insert renumbers it without editing the following cells. */
.gui-form-mvgrid table{counter-reset:mv-grid-row}
.gui-form-mvgrid .gui-grid-number{counter-increment:mv-grid-row}
.gui-form-mvgrid .gui-grid-number::before{content:counter(mv-grid-row);content:counter(mv-grid-row) / counter(mv-grid-row)}
.gui-form-mvgrid .gui-grid-divider::after{content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--host-edge);pointer-events:none}
/* NEW-A11Y-1 (backlog wave 10B): an SBMV grid keeps its own colours under Windows High Contrast, as the lookup does, so a row or
   cell Mertex colours keeps the colour that carries its meaning, and the grid looks as it does without forced colours. It must:
   the grid's proof (gui-mv-grid.ts measureMvGridAlignment) reads each coloured cell's computed colours, which forced colours
   would repaint, so a coloured grid ended the session with "This window could not show a field". The current cell's editor,
   where the person types, takes the theme's field colours again; the selected cell of a read-only grid is drawn in the theme's
   selection colours (its dotted edge follows its text), as Windows draws a selected cell. */
@media (forced-colors:active){
.gui-form-mvgrid{forced-color-adjust:none;color:var(--host-text)}
.gui-form-mvgrid :is(input,textarea,select){forced-color-adjust:auto;background-color:Field!important;color:FieldText!important}
.gui-form-mvgrid :is(input,textarea,select):disabled{color:GrayText!important}
.gui-form-mvgrid button[role="gridcell"]{background-color:var(--gui-grid-selection-face,Highlight)!important;color:var(--gui-grid-selection-ink,HighlightText)!important}
}
/* Host message dialogs (public/gui-dialog.js): a card with the kind's icon in a
   badge beside the heading, the text under it, and the choices in a footer bar.
   The default choice is the primary button. Everything stays inside the card,
   which prove() measures before any choice is sent. A visible screen shorter
   than the card scrolls the card itself, and below 360 px of screen the margin
   narrows (.gui-dialog-compact, set by GuiDialogView.position()).
   Since P5 (contract 2.10) the card is a Windows message box by colour alone:
   square, the window colour with a footer band in the face colour, a 1 px edge
   of its own (the first shadow, since nothing dims the screen behind it now and
   the card has no border), the kind's icon a white glyph on a disc of its ink, as
   Windows draws message icons (no pastel tint), and square push buttons, the
   default one edged in the hover blue. */
.gui-dialog-layer{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:transparent;overflow:auto;box-sizing:border-box}
.gui-dialog-layer[hidden]{display:none}
.gui-dialog-layer.gui-dialog-compact{padding:8px}
.gui-dialog-card{position:relative;box-sizing:border-box;width:min(100%,480px);max-height:100%;min-height:0;display:flex;flex-direction:column;overflow:auto;padding:22px 24px 0;background:var(--host-window);color:var(--host-text);border:0;border-radius:0;box-shadow:0 0 0 1px var(--host-edge),0 24px 64px #0f2a3a3d,0 2px 8px #0f2a3a1f;font:14.5px/1.55 "Segoe UI",Inter,system-ui,sans-serif;text-align:left}
.gui-dialog-title{flex-shrink:0;margin:0;font-size:17px;line-height:1.35;font-weight:650;letter-spacing:-.1px;color:var(--host-text);white-space:pre-wrap;overflow-wrap:anywhere}
.gui-dialog-message{min-height:1.5em;margin:8px 0 0;overflow:auto;color:var(--host-text);white-space:pre-wrap;overflow-wrap:anywhere}
.gui-dialog-has-icon :is(.gui-dialog-title,.gui-dialog-message){margin-left:56px}
.gui-dialog-has-icon .gui-dialog-title{display:flex;align-items:center;min-height:40px}
.gui-dialog-closable .gui-dialog-title{padding-right:36px}
.gui-dialog-icon{position:absolute;left:24px;top:22px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--dialog-ink,var(--host-text));color:var(--colour-on-accent);font:700 20px/1 "Segoe UI",system-ui,sans-serif}
.gui-dialog-error{--dialog-ink:var(--colour-danger)}
.gui-dialog-warning{--dialog-ink:var(--colour-warning)}
.gui-dialog-question{--dialog-ink:var(--colour-info)}
.gui-dialog-information{--dialog-ink:var(--colour-accent-strong)}
.gui-dialog-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--host-text);font-size:22px;line-height:1}
.gui-dialog-close:hover:not(:disabled){background:var(--host-close-hover);color:var(--colour-on-accent)}
.gui-dialog-buttons{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:22px -24px 0;padding:14px 24px;background:var(--host-face);border-top:1px solid var(--host-edge)}
.gui-dialog-buttons button{min-height:38px;min-width:96px;max-width:100%;padding:7px 18px;border-radius:0;font-size:14px;line-height:1.3;font-weight:600;white-space:normal;overflow-wrap:anywhere}
.gui-dialog-buttons .button.secondary{background:var(--host-button-face);border-color:var(--host-edge);color:var(--host-text)}
.gui-dialog-buttons .button.secondary:hover:not(:disabled){background:var(--host-face-hover);border-color:var(--host-edge-hover)}
.gui-dialog-buttons .button.primary{background:var(--host-button-face);border-color:var(--host-edge-hover);color:var(--host-text);box-shadow:none}
.gui-dialog-buttons .button.primary:hover:not(:disabled){background:var(--host-face-hover)}
.gui-dialog-buttons button:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
@media(pointer:coarse){
.gui-dialog-buttons button{min-height:44px}
}
@media(forced-colors:active){
.gui-dialog-card{border:1px solid CanvasText}
.gui-dialog-icon{border:2px solid CanvasText}
.gui-dialog-buttons{border-top-color:CanvasText}
}
@media(max-width:480px){
.gui-dialog-layer{padding:12px}
.gui-dialog-card{padding:18px 18px 0}
.gui-dialog-icon{left:18px;top:18px}
.gui-dialog-buttons{margin:18px -18px 0;padding:12px 18px}
.gui-dialog-buttons button{flex:1 1 120px}
}

/* The stage owns scrolling. The unscaled desktop fills it. Across, it keeps the
   reported width, like the native screen: a narrower window scrolls to that edge
   and whatever lies past it is clipped. Below, only Mertex's own windows and
   forms scroll it, so an owned form may reach past its main window (the
   dashboard footer). */
/* Every control on the session toolbar is one line, 32 px high, and as wide as its label; none wraps or shrinks (UI-D03). */
.workspace-expand{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;box-sizing:border-box;height:32px;border:1px solid #cadcdb;border-radius:5px;background:#f0f7f6;color:#285e5b;padding:0 10px;font-size:12px;line-height:1;white-space:nowrap;text-decoration:none}
#session-window-fallback{display:inline-flex;align-items:center;flex:none;height:32px;padding:0 4px;font-size:12px;white-space:nowrap}
.workspace-expanded .sidebar,.workspace-expanded .topbar,.workspace-expanded .intro-row,.workspace-expanded .context-column,.workspace-expanded .macro-card,.workspace-expanded .page-footer,.workspace-expanded #screen-panel{display:none}
.workspace-expanded .main-shell{margin-left:0;padding:0;min-width:0;width:100%}
.workspace-expanded .workspace-grid{display:block;min-width:0}
.workspace-expanded .session-panel{position:fixed;inset:0;z-index:20;display:flex;flex-direction:column;width:100%;height:100dvh;max-width:100vw;border:0;border-radius:0;overflow:hidden}
.workspace-expanded .session-panel>.terminal-stage{flex:1 1 0;min-width:0;min-height:0;height:auto;margin:0;border-radius:0}
.workspace-expanded .session-panel>:not(.terminal-stage){flex-shrink:0}
.window-only{display:none}
.empty-card{display:contents}
.session-reports{width:min(1100px,94vw);height:85vh;max-height:90vh;background:#fff;color:#111;padding:18px;border:1px solid #9ca3af;border-radius:6px}
.session-reports h2{display:inline-block;margin:0 24px 12px 0}
.session-reports>button{float:right}
.session-reports>div>div{display:flex;gap:18px;align-items:center;margin:6px 0}
.session-reports pre{white-space:pre;overflow:auto;max-height:60vh;font:13px monospace}
.session-reports iframe{width:100%;height:60vh;border:1px solid #ccc}
.session-window .window-only{display:inline-flex}
.host-output{width:min(900px,94vw);max-height:90vh;overflow:auto;padding:18px;border:1px solid #9ca3af;border-radius:6px;background:#fff;color:#111}
.host-output h2{display:inline-block;margin:0 24px 12px 0}
.host-output>button{float:right}
.host-output>p{margin:0 0 12px;font-size:13px}
.host-output>div{padding:10px;background:#122531;overflow:auto}
.session-window #session-tabs,.session-window #expand-workspace,.session-window #terminal-font,.session-window #download-transcript,.session-window #reconnect-session,.session-window .terminal-footer,.session-window #terminal-empty #start-demo,.session-window #terminal-empty small{display:none}
/* A session window's bar: its title takes all the room left of the buttons, ending in an ellipsis only where it must (its tooltip
   holds the whole title), and every control is 32 px high on one line (UI-D10). */
.session-window .terminal-toolbar{min-height:40px;padding:0 10px;background:#f0f0f0;border-bottom:1px solid #c7c7c7;color:#111;font-family:"Segoe UI",sans-serif}
.session-window .terminal-identity{min-width:0;min-height:32px}
.session-window #session-title{flex:0 1 auto;min-width:0;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.session-window #session-state{font-size:12px}
/* Notices by or over the Mertex screen (NoticeLayer in browser/session-lifecycle.ts): in the workspace view, in every
   shell, the layer is fixed at most 360 px wide, 12 px in from a bottom right corner: the browser window's, beside the
   stage, where a column at least 240 px wide is free there (the restored developer workspace), else that of the
   stage's visible part. It sits above the stage's windows, dialogs, the expanded panel and the modeless report window,
   so a notice never moves or resizes the stage and never covers the toolbar, bar, status line or keys around it, except
   that a stage under 120 px tall (320 x 180) has its cards rise from the window's foot, over the status line and keys.
   Elsewhere it stays in the page. The layer scrolls when its cards outgrow the window, so it clips what is drawn outside
   it: it reaches 12 px (the gap NoticeLayer leaves) past its cards on every side, through a padding its negative margin
   cancels, so the cards stay exactly where NoticeLayer puts them while their shadow is drawn in full (a card's own focus ring
   is drawn inside its edge, by the Foundation's focus rules). The
   layer itself takes no pointer events, so that reach never catches a click meant for what lies under it. */
.notice-layer.notice-overlay{position:fixed;z-index:120;right:var(--notice-right,12px);bottom:var(--notice-bottom,12px);width:calc(var(--notice-width,min(360px,calc(100vw - 24px))) + 24px);max-height:100dvh;margin:-12px;padding:12px;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;overflow:auto;pointer-events:none}
.notice-layer.notice-overlay>*{pointer-events:auto;flex:none}
.notice-layer.notice-overlay .notice{margin:0}
/* Mertex may be waiting (SessionWaitNotice): it stays until the host moves on, the session ends or it is dismissed. */
.gui-wait-notice p{margin:0}
.gui-wait-notice .gui-wait-notice-reference{margin-top:6px;font-size:12px;color:#5c4718;font-family:Consolas,"Courier New",monospace}
.gui-wait-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gui-wait-notice:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
/* A step Mertex asked of this PC that the browser cannot do (DroppedCallNotices): information, dismissed by the person. */
.dropped-call-notice p{margin:0}
.dropped-call-notice .dropped-call-reference{margin-top:6px;font-size:12px;color:#3f5864;font-family:Consolas,"Courier New",monospace}
.dropped-call-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.dropped-call-notice:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
/* What the person is told about the screen itself (backlog wave 3, stream 3B, SessionWaitNotice): the display has stopped
   (CHR-03, a warning card) and Mertex has not answered yet (AZ-13, an information card in one compact row with Details, as the
   waiting notice). Each stays until what it says no longer holds or the person dismisses it. */
.tell-notice p{margin:0}
.tell-notice>.notice-card-title{margin-bottom:4px}
.tell-notice .tell-notice-reference{margin-top:6px;font-size:12px;color:#3f5864;font-family:Consolas,"Courier New",monospace}
.tell-notice[data-tone="warning"] .tell-notice-reference{color:#5c4718}
.tell-notice-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tell-notice .notice-card-details{margin-top:8px}
.tell-notice:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
/* Over a stopped screen the open dropped-call notices are this one line in the panel, so nothing covers its warnings. */
.gui-blocked-panel .gui-blocked-dropped{border-left:3px solid #2f6f8f;padding:2px 0 2px 12px;color:#1f3a4a}
.session-reports-modeless{position:fixed;inset:7vh 0 auto;margin:0 auto;z-index:110;box-shadow:0 18px 70px #102b3b66}
.session-window #gui-field-keys,.session-window label[for="terminal-font"]{display:none}

/* The stopped panel (UI-C04) is a white card on the ended card's navy, in its neutral text colours. */
.terminal-stage.gui-blocked{overflow:auto;background:var(--surface-stage-dark);color:var(--colour-text)}
.gui-blocked-panel{box-sizing:border-box;width:calc(100% - 32px);max-width:44rem;margin:24px auto;padding:28px 26px;overflow-wrap:anywhere;line-height:1.6;background:var(--colour-surface);color:var(--colour-text);border-radius:var(--radius-surface);box-shadow:0 30px 100px #071d3435}
.gui-blocked-panel[hidden]{display:none}
.gui-blocked-panel h3{font-size:20px;line-height:1.4;margin:0 0 16px;color:var(--colour-text-strong)}
.gui-blocked-panel p{font-size:14px;margin:12px 0}
.gui-blocked-panel .gui-blocked-help{font-size:12px;color:#4f6470;border-top:1px solid #e3e9eb;padding-top:16px}

.gui-ceo-editor{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;background:var(--host-face)}
.gui-ceo-editor-screen{grid-area:3/2;min-width:0;min-height:0;overflow:hidden}
.gui-ceo-editor-menu{grid-area:1/1/2/4;display:flex;align-items:center;z-index:1}
.gui-ceo-editor-menu details{position:relative}
.gui-ceo-editor-menu details>div{position:absolute;display:grid;background:var(--host-face);border:1px solid var(--host-edge)}
.gui-ceo-editor-menu button,.gui-ceo-editor-menu summary{white-space:nowrap}
.gui-ceo-editor-horizontal,.gui-ceo-editor-vertical{margin:0;overflow:hidden;background:#c0c0c0;color:#444444;font-family:'Courier New',monospace;font-size:14px}
.gui-ceo-editor-horizontal{grid-area:2/2}.gui-ceo-editor-vertical{grid-area:3/1;display:grid;text-align:right}
.gui-ceo-editor-scroll-horizontal{grid-area:4/2;width:100%;margin:0}
.gui-ceo-editor-scroll-vertical{grid-area:3/3;height:100%;width:18px;margin:0;writing-mode:vertical-lr}
.gui-ceo-editor-buttons{grid-area:5/1/6/4;display:flex;overflow-x:auto;align-items:center}
.gui-ceo-editor-buttons button{white-space:nowrap;min-width:64px}
.gui-ceo-report-screen{height:calc(100% - 40px);min-height:0;overflow:hidden}
/* A report window's button row and Mertex's calendar take the host-content colours (P5): push buttons as everywhere else, and the
   calendar with no dark layer behind it, its chosen day in the pressed colour edged in the hover blue. The calendar's two dotted
   focus rectangles keep their native look and colour (P4). */
.gui-ceo-report-buttons{display:flex;gap:6px;height:40px;padding:5px 0;background:var(--host-face)}
.gui-ceo-report-buttons button{min-width:95px;padding:3px 12px;border:1px solid var(--host-edge);border-radius:0;background:var(--host-button-face);color:var(--host-text);font:14px Arial,sans-serif}

.gui-calendar-layer{padding:0;background:transparent;display:block}
/* LKP-04: SB+'s asynchronous calendar is no modal. Its layer over the GUI++ screen lets presses through to the screen behind (which takes
   none while Mertex waits on the calendar); only the calendar's own window takes them. Above the help window (30). */
.gui-calendar-async{position:absolute;z-index:31;pointer-events:none}
.gui-calendar-async[hidden]{display:none}
.gui-calendar-async>.gui-calendar-card{pointer-events:auto}
.gui-calendar-period{font:inherit;padding:0 3px}
.gui-calendar-async .gui-calendar-header:has(.gui-calendar-period){display:grid;grid-template-columns:repeat(4,1fr)}
.gui-calendar-async .gui-calendar-grid{grid-template-rows:repeat(6,minmax(0,1fr))}
.gui-calendar-async [data-highlight="1"]{background:blue;color:white}
.gui-calendar-async [data-highlight="2"]{background:lime;color:black}
.gui-calendar-async [data-highlight="3"]{background:aqua;color:black}
.gui-calendar-card{position:absolute;box-sizing:border-box;border:1px solid var(--host-edge);background:var(--host-window);color:var(--host-text);font:12px/1.2 Arial,sans-serif;box-shadow:0 8px 28px #0005;overflow:hidden;display:flex;flex-direction:column}
.gui-calendar-title{flex:0 0 24px;height:24px;box-sizing:border-box;padding:4px 24px 4px 6px;background:var(--host-face);white-space:nowrap;overflow:hidden}
.gui-calendar-close{position:absolute;right:1px;top:1px;width:22px;height:22px;padding:0;border:0;background:transparent;color:var(--host-text);font-size:18px}
.gui-calendar-heading{flex:1 1 0;min-width:0;min-height:0;box-sizing:border-box;padding:2px 0;text-align:left;font-weight:bold;white-space:nowrap;overflow:hidden}
.gui-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:3px;flex:0 0 24px;min-height:0;padding:0 2px;box-sizing:border-box}
.gui-calendar-header select{box-sizing:border-box;min-width:0;min-height:0;height:20px;margin:0;padding:0 1px;border:1px solid var(--host-edge);border-radius:0;box-shadow:none;background:var(--host-window);color:var(--host-text);font:12px Arial,sans-serif}
.gui-calendar-header select:focus{outline:1px dotted #111;outline-offset:-2px;box-shadow:none}
.gui-calendar-month{flex:1 1 0;overflow:hidden;white-space:nowrap}
.gui-calendar-year{flex:0 1 64px}
.gui-calendar-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(7,minmax(0,1fr));gap:0;padding:1px;box-sizing:border-box}
.gui-calendar-weekday{font-size:11px;text-align:center;align-self:center}
.gui-calendar-day{box-sizing:border-box;min-width:0;min-height:0;width:100%;height:100%;padding:0;border:1px solid transparent;background:var(--host-window);color:var(--host-text);font:12px Arial,sans-serif;cursor:pointer}
.gui-calendar-day.outside-month{color:var(--host-text-muted)}
.gui-calendar-day[aria-selected="true"]{background:var(--host-face-pressed);border-color:var(--host-edge-hover)}
/* Forced colours would edge every day alike, so the chosen day could not be told apart once focus is on the month or year list:
   there only the chosen day keeps a visible edge, in the theme's Highlight. Colours alone; every day keeps its box. */
@media(forced-colors:active){
.gui-calendar-day{border-color:Canvas}
.gui-calendar-day[aria-selected="true"]{border-color:Highlight}
}
.gui-calendar-day:focus{outline:1px dotted #111;outline-offset:-3px}
.gui-calendar-day:hover:not(:disabled){background:var(--host-face-hover)}
.gui-calendar-card button:disabled{cursor:default;color:var(--host-text-muted)}

/* Reconnect overlay: both views share the session panel. A white card, left-aligned and with no countdown, on a light scrim
   over the stage (UI-C06), shown once an automatic reconnect's quiet time is over. The idle warning is a card in the notice
   layer (UI-C07). The card is centred when there is room. Its text can scroll separately from its actions in a short stage. */
.session-reconnect{position:absolute;inset:0;z-index:40;display:flex;padding:20px;background:var(--colour-scrim-light);color:var(--colour-text);overflow:auto}
.session-reconnect[hidden],.idle-warning[hidden]{display:none}
.session-reconnect-card{box-sizing:border-box;display:flex;flex-direction:column;max-height:100%;width:100%;max-width:30rem;margin:auto;padding:22px 20px;border:1px solid var(--colour-border);border-radius:var(--radius-surface);background:var(--colour-surface);box-shadow:var(--shadow-floating);text-align:left;overflow-wrap:anywhere;line-height:1.5}
.session-reconnect-card h3{font-size:17px;font-weight:600;margin:0 0 10px;color:var(--colour-text-strong)}
.session-reconnect-card p{font-size:13px;color:var(--colour-text-muted);margin:0 0 16px}
.session-reconnect-copy,.idle-warning-copy{min-height:0;overflow:auto}
.session-reconnect-actions{flex:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
.session-reconnect-actions .button,.idle-warning .button{flex:0 1 auto;width:auto}
/* Keep each decision on screen when the warning text needs more room than the stage.
   The notice layer still scrolls between cards. Each card can scroll its full wording. */
.notice-overlay>.idle-warning:not([hidden]){display:flex;flex-direction:column;max-height:var(--notice-height)}
.idle-warning .notice-card-row{min-height:0;flex-direction:column;flex-wrap:nowrap;align-items:flex-start}
.idle-warning .notice-card-actions{flex:none}
.session-reconnect-copy:focus-visible,.idle-warning-copy:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
@media(max-height:400px){
.session-reconnect{padding:6px}
.session-reconnect-card{padding:6px 12px}
.session-reconnect-copy p:last-child{margin-bottom:0}
.session-reconnect-card h3{margin-bottom:4px}
.session-reconnect-card p{margin-bottom:6px}
}
/* The notice-card family gives the idle warning its look; its clock keeps figures of one width beside Stay connected. */
.idle-warning-clock{align-self:center;font-weight:600;font-variant-numeric:tabular-nums}

/* Until the service says which shell this is, the page stays blank; without
   scripts it appears after three seconds anyway. */
.shell-pending .app-shell{visibility:hidden;animation:shell-reveal 0s 3s forwards}
@keyframes shell-reveal{
to{visibility:visible}
}
/* Own sessions, support information and the stopped-screen way out. */
/* The list grows with its rows: only the dialog's body scrolls. */
.sessions-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sessions-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sessions-row strong{display:block;font-size:13px;color:var(--colour-text)}
.sessions-row span{color:var(--colour-text-muted)}
.sessions-row .button{flex-shrink:0}
.support-details{display:grid;gap:10px;margin:0;font-size:13px}
.support-details div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);padding-bottom:8px}
.support-details dt{color:var(--colour-text-muted)}
.support-details dd{margin:0;font-family:Consolas,"Courier New",monospace;overflow-wrap:anywhere;text-align:right}
.connect-saved-setup{margin-top:12px}
.gui-blocked-reference{font-size:12px;color:var(--colour-text-muted)}
.gui-blocked-actions{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px}
/* Copy details falls back to this read-only box, selected, where the clipboard is refused (CopyDetails). Its sunken #f8fafb is
   close to, but not, --colour-surface-sunken, so it stays a literal. */
.copy-details-text{display:block;box-sizing:border-box;width:100%;min-height:0;margin-top:10px;padding:8px 10px;font:12px/1.5 Consolas,"Courier New",monospace;color:var(--colour-text);background:#f8fafb;border:1px solid var(--colour-border-control);border-radius:6px;resize:none}
.terminal-empty .ended-reference{font-size:12px}
.terminal-empty .ended-copy{align-self:flex-start}
.end-user .terminal-tools #sign-out{min-height:34px}
.end-user .gui-startup-placeholder p,.end-user .terminal-empty p{font-size:13px}
/* The report window (session-reports.ts): a header naming the report or the
   list, with its actions, above either the list of received files or the report
   on a grey desk. Only the report window uses .session-reports now (the file
   chooser and upload are the shared .dialog), and everything here is scoped to
   .report-window. Icons are CSS masks, drawn in the text colour. */
.session-reports.report-window{display:none;flex-direction:column;box-sizing:border-box;width:min(1240px,calc(100vw - 32px));height:calc(100dvh - 64px);max-height:none;padding:0;border:1px solid var(--colour-border-control);border-radius:var(--radius-surface);background:var(--colour-surface);color:var(--colour-text);font-family:"Segoe UI",Inter,ui-sans-serif,sans-serif;font-size:14px}
.session-reports.report-window[open]{display:flex}
.session-reports-modeless.report-window{inset:52px 0 auto;box-shadow:var(--shadow-raised)}
.report-window .report-window-header{display:flex;flex:none;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px 12px 18px;border-bottom:1px solid var(--colour-border)}
.report-window .report-window-heading{flex:1 1 220px;min-width:0}
.report-window .report-window-title{display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px;line-height:1.3;font-weight:650;letter-spacing:-.2px;color:#17303f}
/* The line under the name wraps rather than lose its end (the time the report arrived) to an ellipsis at 150%; the name keeps
   one line, its tooltip holding the whole name (session-reports.ts). */
.report-window .report-window-meta{margin:2px 0 0;overflow-wrap:anywhere;font-size:12.5px;line-height:1.4;color:var(--colour-text-muted)}
.report-window .report-window-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}
.report-window .report-action-status{font-size:12.5px;color:var(--colour-text-muted)}
/* An empty status stays in the accessibility tree, so its next message is announced, but takes no room. */
.report-window .report-action-status:empty,.report-window .report-focus-end{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* The report window's own buttons and list rows take the surface and edge tokens; the dark text #1f3b4a, #17303f and #2b4553, the
   hover and pressed tints, the shadows, the grey desk #e6ebee, the report paper and ink and the file badge stay literals: none has
   a token of its value, and a printed page stays white whatever the brand decision (DN4) does to surfaces. */
.report-window .report-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;height:34px;padding:0 12px;border:1px solid var(--colour-border-control);border-radius:6px;background:var(--colour-surface);color:#1f3b4a;font-size:13px;line-height:1;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer}
.report-window .report-button:hover{background:#eef4f6;border-color:#b5c7ce}
.report-window .report-button:active{background:#e2ecef}
.report-window .report-window-actions .report-download{background:var(--colour-accent);border-color:var(--colour-accent);color:var(--colour-on-accent)}
.report-window .report-window-actions .report-download:hover{background:var(--colour-accent-strong);border-color:var(--colour-accent-strong)}
.report-window .report-close{margin-left:4px}
.report-window .report-back{flex:none;padding:0 12px 0 8px}
.report-window :is(.report-back,.report-download,.report-print-button,.report-open-tab,.report-close,.report-tool-previous,.report-tool-next,.report-tool-zoom-out,.report-tool-zoom-in)::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.report-window .report-back{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")}
.report-window .report-download{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E")}
.report-window .report-print-button{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E")}
.report-window .report-open-tab{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E")}
.report-window .report-close{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.report-window .report-tool-previous{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E")}
.report-window .report-tool-next{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.report-window .report-tool-zoom-out{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E")}
.report-window .report-tool-zoom-in{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
/* A small document badge whose colour says what kind of file it is. Its colours and white letters are its own, never the accent's
   (the badge never sits on the accent, whose colour and on-colour DN4 may change). */
.report-window .report-file-badge{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;min-width:36px;width:auto;height:44px;padding:9px 4px 0;border-radius:var(--radius-small);background:linear-gradient(225deg,#ffffff70 0 9px,transparent 9px),var(--badge,#56707e);color:#ffffff;font-size:12px;line-height:1;font-weight:700;letter-spacing:0}
.report-window .report-file-badge[data-kind="pdf"]{--badge:#c4362c}
.report-window .report-file-badge[data-kind="html"]{--badge:#b85412}
.report-window .report-file-badge[data-kind="txt"]{--badge:#3c6e91}
/* The list of received files, newest first. */
.report-window .report-list{flex:1 1 auto;min-height:0;margin:0;padding:14px 18px 18px;overflow:auto;list-style:none}
.report-window .report-list-row{display:flex;align-items:center;gap:12px;margin:0 0 8px;padding:10px 12px;border:1px solid var(--colour-border);border-radius:8px;background:var(--colour-surface)}
.report-window .report-list-row:hover{background:#f6f9fa;border-color:#d3dee2}
.report-window .report-list-open{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;align-items:center;flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
.report-window .report-list-open:disabled{opacity:1;cursor:default}
.report-window .report-list-open .report-file-badge{grid-row:1/3}
.report-window .report-list-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;color:#17303f}
.report-window .report-list-open:not(:disabled):hover .report-list-name{color:var(--colour-accent-strong);text-decoration:underline}
.report-window .report-list-meta{overflow-wrap:anywhere;font-size:12.5px;color:var(--colour-text-muted)}
/* The report pane: pages on a grey desk, below a toolbar that stays in view. */
.report-window .report-preview{position:relative;flex:1 1 auto;min-height:240px;overflow:auto;scrollbar-gutter:stable;background:#e6ebee}
.report-window .report-preview:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
.report-window .report-pdf-controls{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 10px;margin:0;padding:10px 12px 4px;background:#e6ebee}
.report-window .report-tool-group{display:inline-flex;align-items:center;gap:2px;margin:0;padding:2px;border:1px solid #d3dde1;border-radius:8px;background:#fff;box-shadow:0 1px 2px #0f2a3a14}
.report-window .report-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:32px;height:32px;padding:0 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#1f3b4a;font-size:13px;line-height:1;font-weight:600;white-space:nowrap}
.report-window .report-tool[class*="report-tool-"]{padding:0}
.report-window .report-tool:hover:not(:disabled){background:#e4ecef}
.report-window .report-tool[aria-pressed="true"]{background:var(--colour-accent-tint);border-color:var(--colour-accent);color:var(--colour-accent-strong)}
.report-window .report-page-label,.report-window .report-zoom-label{display:inline-block;text-align:center;font-size:13px;color:#2b4553;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-window .report-page-label{min-width:96px}
.report-window .report-zoom-label{min-width:48px}
.report-window .report-pdf-pages{display:block;margin:0;padding:16px}
.report-pdf-page{margin:0 auto 12px;background:#fff;box-shadow:0 1px 4px #0004}
.report-text-layer ::selection{background:#2563eb55}
.report-window .report-pdf-page{margin:0 auto 16px;box-shadow:0 1px 2px #0f2a3a2e,0 4px 16px #0f2a3a1c}
.report-window .report-pdf-page:last-child{margin-bottom:0}
.report-window .report-text-page{box-sizing:border-box;width:max-content;min-width:min(100%,680px);max-width:none;max-height:none;margin:16px auto;padding:28px 32px;overflow:visible;background:#fff;color:#111;box-shadow:0 1px 2px #0f2a3a2e,0 4px 16px #0f2a3a1c;font:13px/1.45 Consolas,"Courier New",monospace;white-space:pre}
.report-window .report-html-page{display:block;box-sizing:border-box;width:calc(100% - 32px);height:calc(100% - 32px);min-height:320px;margin:16px auto;border:0;background:#fff;box-shadow:0 1px 2px #0f2a3a2e,0 4px 16px #0f2a3a1c}
/* Opening and failure messages in the report pane. */
.report-window .report-preview-message{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;min-height:100%;margin:0;padding:40px 24px;text-align:center;font-size:14px;line-height:1.5;color:#2b4553}
.report-window .report-preview-message.error::before{content:"";width:32px;height:32px;background:var(--colour-danger);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") center/contain no-repeat}
/* Windows high contrast keeps the mask icons, in the button text colour, and shows the chosen fit as selected. */
@media(forced-colors:active){
.report-window :is(.report-back,.report-download,.report-print-button,.report-open-tab,.report-close,.report-tool-previous,.report-tool-next,.report-tool-zoom-out,.report-tool-zoom-in)::before{background:ButtonText;forced-color-adjust:none}
.report-window .report-file-badge{forced-color-adjust:none}
.report-window .report-tool[aria-pressed="true"]{forced-color-adjust:none;background:SelectedItem;border-color:SelectedItem;color:SelectedItemText}
}
/* Narrow windows keep every action: Print and Open in new tab become icons, named by their labels. */
@media(max-width:760px){
.session-reports.report-window{width:calc(100vw - 16px);height:calc(100dvh - 56px)}
.session-reports-modeless.report-window{inset:48px 0 auto}
.report-window .report-window-header{padding:10px 12px}
.report-window :is(.report-print-button,.report-open-tab){width:34px;padding:0;gap:0;font-size:0}
.report-window .report-pdf-controls{gap:4px 10px}
.report-window .report-list{padding:10px 12px 14px}
}
.report-print{display:none}
/* Printing: each PDF page prints edge to edge on paper of its own size
   (session-reports.ts adds a named @page per size, sizes each page to it and
   sets data-page-fit); text prints with the browser's margins at the rule
   below, unless its pages or lines would not fit a sheet there: then
   report-text.ts sizes it to fit and adds, with its pages, a style element
   holding its own named @page (rea-text-fit) with a 10 mm margin, which its
   pages (data-text-fit) print on, so a new tab's copy carries it too. */
@media print{
body[data-report-printing]>:not(.report-print){display:none!important}
body[data-report-printing]>.report-print{display:block}
.report-print .report-page{break-after:page}
.report-print .report-page:last-child{break-after:auto}
.report-print img,.report-print canvas{display:block;width:100%;height:auto}
.report-print[data-page-fit] .report-page{overflow:hidden}
.report-print[data-page-fit] :is(img,canvas){height:100%;object-fit:contain}
.report-print .report-image-page img{width:auto;max-width:100%;max-height:100vh;margin:0 auto;object-fit:contain}
.report-print pre{margin:0;white-space:pre-wrap;font:10pt/1.35 Consolas,"Courier New",monospace;overflow-wrap:anywhere}
}
/* Backlog wave 4 (stream 4C), kept after the report window's earlier rules, whose colours developer-console-css.test.mts pins.
   A picture's badge (PC-05) has its own colour, as each kind does. */
.report-window .report-file-badge:is([data-kind="png"],[data-kind="jpg"],[data-kind="jpeg"],[data-kind="jpe"],[data-kind="jfif"],[data-kind="gif"],[data-kind="bmp"],[data-kind="dib"],[data-kind="webp"]){--badge:#6b4fa0}
/* A PDF's Find box (report-pdf.ts, NEW-PDF-FIND): its own row under the toolbar's groups, the field, the count, the previous and
   next match and its own close; then the matches marked over the page image in the transparent text layer, the current one
   stronger and outlined. */
.report-window .report-find{display:flex;flex:1 0 100%;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px;margin:0}
.report-window .report-find[hidden]{display:none}
.report-window .report-find-input{box-sizing:border-box;width:min(320px,100%);height:32px;margin:0;padding:0 10px;border:1px solid var(--colour-border-control);border-radius:6px;background:var(--colour-surface);color:#17303f;font:inherit;font-size:13px}
.report-window .report-find-status{display:inline-block;min-width:96px;font-size:13px;color:#2b4553;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-window .report-tool-find-close::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.report-window .report-tool-find-close{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.report-text-layer .report-find-match{padding:0;border-radius:1px;background:#ffd5408c;color:transparent}
.report-text-layer .report-find-current{background:#ff8a1fb3;outline:1px solid #a64b00}
.report-text-layer .report-find-current:focus{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:0}
/* A picture (PC-05) on the grey desk, centred while it is smaller than the pane and scrolled when larger. */
.report-window .report-image-sheet{box-sizing:border-box;width:max-content;min-width:100%;margin:0;padding:16px;text-align:center}
.report-window .report-image{display:inline-block;max-width:none;vertical-align:top;background:#fff;box-shadow:0 1px 2px #0f2a3a2e,0 4px 16px #0f2a3a1c}
/* Windows high contrast: the close icon in the button text colour, the matches in the system's mark and highlight colours. */
@media(forced-colors:active){
.report-window .report-tool-find-close::before{background:ButtonText;forced-color-adjust:none}
.report-text-layer .report-find-match{background:Mark}
.report-text-layer .report-find-current{background:Highlight;outline-color:CanvasText}
}
.terminal-stage.key-busy{cursor:progress;outline:2px solid #d9a400;outline-offset:-2px}
/* SBClient's hourglass (SBHANDLE hour_cursor), which the gateway's SBCURSOR model shows half a second after an action until
   Mertex's next input (sb-cursor.mjs; app.js renderGuiEnvironment), is shown over the forms' controls too: under --gui-cursor
   alone they keep their own cursor, a text field's caret or a box's arrow (register FORM-22). A window's title bar, which can
   still be dragged, keeps its own. */
.terminal-stage.gui-hourglass :is(#gui-form,.gui-auxiliary-form),
.terminal-stage.gui-hourglass :is(#gui-form,.gui-auxiliary-form) :not(.gui-form-window-title,.gui-form-window-title *){cursor:wait}
/* Session windows: another window, the start-up host terminal choice and, on
   touch screens, the on-screen key bar for application fields. */
.gui-startup-placeholder #gui-startup-terminal{margin-top:16px}
@media(any-pointer:coarse){
.session-window #gui-field-keys{display:flex}
}
/* Sessions: its Open and Recently ended groups, the badge on this window's session, and the session the confirmation names. */
.sessions-group h3{margin:16px 0 8px;font-size:14px}
.sessions-row .sessions-here{display:inline-block;margin-left:6px;padding:0 6px;border-radius:var(--radius-small);background:var(--colour-accent-tint);color:var(--colour-accent-strong);font-size:12px;font-weight:600;line-height:1.6;vertical-align:1px}
.end-session-which{margin:10px 0 0;font-weight:600;color:var(--colour-text-strong);overflow-wrap:anywhere}
/* The persistent cards (the update offer, the text-screen note, the environment notice and the idle warning) show only over the Mertex screen, in the workspace view. */
.notice-layer:not(.notice-overlay)>:is(#idle-warning,#build-update,#text-screen-note,#gui-environment-notice){display:none}
/* Over the screen the cards rise no higher than NoticeLayer's --notice-height (plus the layer's 12 px padding at each end), and a taller stack scrolls, so in a short window no card is out of reach above it or over the bar. NoticeLayer scrolls the layer itself to keep the most urgent card in view (reveal), and the others are reached by scrolling it. */
.notice-layer.notice-overlay{max-height:calc(var(--notice-height,calc(100dvh - 24px)) + 24px);justify-content:flex-start}
/* Alt+Shift+M takes focus to the update offer, the text-screen note and a held page notice as it does to the other notices, with the same ring. */
.build-update:focus-visible,.text-screen-note:focus-visible,.notice-layer>.notice:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
/* The status line's Show all (UI-C29): a link-style button at the line's end, its ring drawn inside because the line clips, and
   the panel with the whole line, floating just above it (placed by app.js) so the Mertex screen never moves. */
.host-status-more{flex:none;min-width:24px;height:22px;margin-left:auto;padding:0 4px;border:0;border-radius:var(--radius-small);background:none;color:var(--colour-accent-strong);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.host-status-more:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
.host-status-full{box-sizing:border-box;max-height:min(40vh,240px);inset:auto;margin:0;padding:8px 12px;overflow:auto;border:1px solid var(--colour-border);border-radius:var(--radius-surface);background:var(--colour-surface);color:var(--colour-text);box-shadow:var(--shadow-floating);font-size:13px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
/* A panel too long for its height scrolls, and Tab can reach it to scroll by keyboard: it takes the one ring (P4 contract 2). */
.host-status-full:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
/* The one spinner above the start-up panel's words and above Waiting for Mertex… (UI-C26). */
.gui-startup-placeholder>.spinner,.gui-login-waiting>.spinner{margin-bottom:16px}
/* In a short stage the start-up panel scrolls on its own, as a card does, so the 20 s offer's Show the text screen can be reached
   by the wheel, by touch and by Tab, the focused button with its whole ring, while the stage itself keeps still (stage 3
   integration fix round 1). A panel that fits stays centred; one that does not starts at its top. */
.gui-startup-placeholder{height:100%;overflow:auto;justify-content:safe center;scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
/* An automatic reconnect's quiet time (UI-C06): the stage keeps its light desktop, its status slot and its size, and a small
   spinner shows after 300 ms, through the shell's own visibility keyframes, so nothing moves. Light surfaces reset the ring. */
.session-reconnect-quiet{position:absolute;inset:0;z-index:40;display:grid;place-items:center;pointer-events:none;visibility:hidden;animation:shell-reveal 0s .3s forwards}
.terminal-stage.gui-reconnecting{background:var(--colour-stage-light);border-color:var(--colour-border)}
.terminal-stage.gui-reconnecting,.session-reconnect{--focus-ring-colour:var(--colour-focus)}
/* The reconnect card scrolls in a short window (320 x 256): a button focused there comes into view with its whole ring, as in a
   dialog (app.js dialogScroller does the same where Firefox does not; stage 3 integration fix round 1). */
.session-reconnect{scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
/* Once the start-up panel or the reconnect card scrolls, Firefox makes it a Tab stop of its own before its first button, and Edge
   and Chrome do the same while it holds no button. A key then makes it :focus-visible, so it draws the one ring on its outer 2 px,
   as a dialog does, never the browser's own (stage 3 integration). */
.gui-startup-placeholder:focus-visible,.session-reconnect:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
/* The busy cue on a light stage (the GUI++ screen and its sign-in, and a reconnect's quiet time) takes the darker warning accent,
   3.9:1 on the light stage, where the amber drawn for the dark stage is 2.1:1 (stage 3 integration fix round 1). The dark stage
   keeps its amber. */
.terminal-stage.key-busy:is(.gui-main-window-active,.gui-login-active,.gui-reconnecting){outline-color:var(--colour-warning-accent)}
/* And on the white text screen (P5), where the amber is 2.3:1 and the darker accent 4.2:1; a rule of its own, so the one above keeps
   its selector. */
.terminal-stage.key-busy.text-screen-active{outline-color:var(--colour-warning-accent)}
/* The waiting notice's details (UI-C17), under its one compact row. */
.gui-wait-notice .notice-card-details{margin-top:8px}
/* The page start's own card (SES-11): until the service says which view this is, a route other than the developer's holds the
   shell out of sight and shows this light card instead, saying Opening Mertex… after the shell's three seconds, and, when the
   service cannot be reached, so in plain words, with Try again. Never anything from the developer view. The card is centred by
   its auto margins, so one taller than the window (320 x 180) starts at its top and scrolls, where grid centring overflowed it
   above the scroll origin. */
.startup-held .app-shell{visibility:hidden;animation:none}
.startup-card{position:fixed;inset:0;z-index:1;display:grid;box-sizing:border-box;padding:16px;overflow:auto;background:var(--colour-page);color:var(--colour-text)}
.startup-card[data-state="waiting"]{visibility:hidden;animation:shell-reveal 0s 3s forwards}
.startup-card-inner{box-sizing:border-box;width:min(400px,100%);margin:auto;display:flex;flex-direction:column;gap:12px;padding:28px;border:1px solid var(--colour-border);border-radius:var(--radius-surface);background:var(--colour-surface);box-shadow:var(--shadow-raised);overflow-wrap:anywhere}
.startup-card .startup-card-inner>.mertex-wordmark{display:flex;align-items:center;margin-bottom:4px;font-size:30px;font-weight:700;letter-spacing:-.5px;line-height:1;color:var(--brand-ink)}
.startup-card .startup-card-inner>.mertex-wordmark::before{content:"";display:inline-block;width:.55em;height:.55em;margin-right:.18em;border-radius:0 60%;background:var(--brand-mark)}
.startup-waiting{display:flex;align-items:center;gap:12px;font-size:15px;color:var(--colour-text-strong)}
.startup-failed{display:flex;flex-direction:column;gap:10px}
/* The heading and Try again take the sign-in card's and the start card's, the cards Try again leads to. */
.startup-failed h1{font-size:20px;line-height:1.3;letter-spacing:-.65px;font-weight:650;color:var(--colour-text-strong)}
.startup-failed>p:not(.dialog-status){font-size:14px;color:var(--colour-text-muted)}
.startup-failed .dialog-status{margin:0}
.startup-failed .dialog-status[data-tone="error"]{color:var(--colour-danger)}
.startup-failed .button{min-height:44px;padding:8px 18px;font-size:14px}
/* Developer console (P9). The start-up panel and the stage behind it are light in the developer view too, so the first change of
   colour is the Mertex screen itself, with the spinner above the heading in the text colours; Show host terminal is still offered
   at once (H1, UI-C08). Its ring reset is in the one list at the top of the Foundation rules. The busy cue takes the darker
   warning accent, as on the other light stages. */
.terminal-stage.gui-starting{background:var(--colour-stage-light);border-color:var(--colour-border)}
.terminal-stage.gui-starting .gui-startup-placeholder h3{color:var(--colour-text-strong)}
.terminal-stage.gui-starting .gui-startup-placeholder :is(p,small){color:var(--colour-text-muted)}
.terminal-stage.key-busy.gui-starting{outline-color:var(--colour-warning-accent)}
/* The terminal footer is not shown while the GUI++ status line keeps its slot: live, stopped, or the same session's dropped stream
   (app.js renderHostStatus). renderGuiEnvironment sets that slot just before it measures the stage, so the footer is gone before
   the desktop is measured and never comes back around the stage during the session (UI-D04). */
.session-panel:has(>#host-status:not([hidden]))>.terminal-footer{display:none}
/* Where the bar is narrower than the widest set of tools (New host output, Reports (99), Sessions, Support, Restore workspace,
   New window, More and the power button) needs with about 160 px for the session's name, the name takes a line of its own and the
   tools and the end group share the second. Measured (P9 stream C): the tools part and the end group need 710 px in Edge and
   Chrome on Windows, 706 in Firefox and 716 in Chromium and Edge on Linux, so one line needs 886, 882 and 892 px of bar. The width
   is the bar's own, so nothing the bar holds changes its layout. On the second line the tools part keeps 12 px under its tools
   for a classic sideways scroll bar (10 px in Chromium), so the bar is the same height whether or not the tools scroll, and 1 px
   more at its end: the browser's scroll range is whole pixels, so without it a fraction of the last tool's ring could stay out of
   reach (0.4 to 0.6 px measured at 1280 x 720 and at 200%). The one-line layout never scrolls, so its width is unchanged. This is
   the dashboard's rule: a developer session window, whose tools are fewer, has its own threshold below. */
@container (max-width:892px){
body:not(.session-window) .terminal-identity{grid-column:1/-1;grid-row:1}
body:not(.session-window) .terminal-tools{grid-column:1/3;grid-row:2;height:52px;align-items:flex-start;padding-inline-end:5px}
body:not(.session-window) .toolbar-end{grid-column:3;grid-row:2;align-self:start;margin-top:4px}
}
/* A developer session window's bar holds fewer tools (no Restore workspace; New Mertex window for New window). Measured in Edge on
   Windows, its widest set (New host output, Reports (99), Sessions, Support, New Mertex window) and its end group need 513 and
   110 px, so one line needs about 800 px with 160 px for the name; 813 leaves room for the other browsers. Below it, the same two
   lines as the dashboard's. Under the dashboard's 892 px it would take two lines, and 48 px from the desktop Mertex is told, in
   any session window 834 to 912 px wide. */
@container (max-width:813px){
.session-window .terminal-identity{grid-column:1/-1;grid-row:1}
.session-window .terminal-tools{grid-column:1/3;grid-row:2;height:52px;align-items:flex-start;padding-inline-end:5px}
.session-window .toolbar-end{grid-column:3;grid-row:2;align-self:start;margin-top:4px}
}
/* The restored developer workspace always shows the page's vertical scroll bar. A page that starts to scroll (the Session files card
   growing as reports arrive) then never narrows the bar, so the @container rule above never moves it to two lines under the Mertex
   screen. overflow-y:scroll, not scrollbar-gutter:stable: with a gutter but no scroll bar, Edge reports documentElement.clientWidth
   as the full width while fixed boxes lose the gutter, so More's menu (app.js) and the notice cards (session-lifecycle.ts) would
   sit 15 px out. The expanded workspace, the session window and the customer view are untouched, and so is every page before its
   view is decided (shell-pending, and startup-held while the light start-up card shows), which a customer may see. */
:root:not(.shell-pending,.startup-held):has(>body:not(.end-user,.session-window) .app-shell:not(.workspace-expanded) #view-workspace:not([hidden])){overflow-y:scroll}
/* More (UI-D03): a menu under its button, or above it where more of it fits there, placed by app.js through --menu-top, --menu-room
   and --menu-right. It shows only while open (a display set on the closed menu would beat the browser's own hiding), scrolls inside
   the room it has where the window is short, and has an edge of its own, which forced colours keep where they drop the shadow.
   Text screen size sits on one row with its select. */
.toolbar-more[aria-expanded="true"]{border-color:var(--colour-accent);background:var(--colour-accent-tint)}
.toolbar-more-menu{position:fixed;inset:auto;top:var(--menu-top,0);right:var(--menu-right,0);box-sizing:border-box;min-width:220px;max-width:calc(100vw - 16px);max-height:var(--menu-room,calc(100dvh - var(--menu-top,0px) - 8px));margin:0;padding:6px;overflow:auto;border:1px solid var(--colour-border-control);border-radius:var(--radius-control);background:var(--colour-surface);color:var(--colour-text);box-shadow:var(--shadow-floating);font-size:13px}
.toolbar-more-menu:popover-open{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px}
.toolbar-menu-item{grid-column:1/-1;display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-height:36px;margin:0;padding:0 10px;border:0;border-radius:var(--radius-small);background:none;color:var(--colour-text);font:inherit;text-align:left;text-decoration:none;white-space:nowrap}
.toolbar-menu-item:hover:not(:disabled){background:var(--colour-surface-hover)}
.toolbar-menu-label{display:flex;align-items:center;min-height:36px;margin:0;padding:0 10px;font-size:13px;font-weight:400;color:var(--colour-text);white-space:nowrap}
#terminal-font{width:auto;min-width:0;height:32px;min-height:32px;margin:0 4px 0 0;padding:0 8px;font-size:13px}
/* Firefox stops on a row or menu that scrolls, before its controls: it draws the one ring inside its edge, as the dialog body does,
   never the browser's own. Chromium never stops there (they hold controls), and the customer's key row keeps its own rules. */
.terminal-tools:focus-visible,body:not(.end-user) .navigation-keys:focus-visible,.toolbar-more-menu:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
@media(forced-colors:active){
.toolbar-more-menu{border-color:CanvasText}
}
/* One icon set (UI-D09): CSS masks drawn in the text colour, as the report window's are, each from one --icon. Every icon is
   aria-hidden, and a control that shows only an icon keeps a name of its own. Windows high contrast keeps them, in the button or
   link text colour. */
.icon{display:inline-block;flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat;vertical-align:-3px}
[data-icon="workspace"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M9 9v11'/%3E%3C/svg%3E")}
[data-icon="connections"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14M15 4l3 3-3 3M20 17H6M9 14l-3 3 3 3'/%3E%3C/svg%3E")}
[data-icon="compatibility"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6z'/%3E%3Cpath d='m9 11.5 2 2 4-4'/%3E%3C/svg%3E")}
[data-icon="api"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 8-4 4 4 4M16 8l4 4-4 4M14 5l-4 14'/%3E%3C/svg%3E")}
[data-icon="screens"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E")}
[data-icon="add"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
[data-icon="external"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E")}
[data-icon="download"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E")}
[data-icon="reconnect"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.6-6.4L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E")}
[data-icon="power"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v9'/%3E%3Cpath d='M18.4 6.6a9 9 0 1 1-12.8 0'/%3E%3C/svg%3E")}
[data-icon="more"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h.01M12 12h.01M19 12h.01'/%3E%3C/svg%3E")}
[data-icon="close"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
[data-icon="arrow-right"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}
[data-icon="terminal"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 17 6-6-6-6M12 19h8'/%3E%3C/svg%3E")}
[data-icon="file"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3C/svg%3E")}
/* An icon in one of the console's marks fills it as the glyph it replaces did. */
.empty-symbol .icon{width:28px;height:28px}
.profile-icon .icon{width:22px;height:22px}
.file-icon .icon{width:18px;height:18px}
.compatibility-symbol .icon{width:36px;height:36px}
@media(forced-colors:active){
.icon{background:ButtonText;forced-color-adjust:none}
a .icon{background:LinkText}
}
/* Backlog wave 12, stream 12A (STOP-03, TBAR-03, UI-C31): printing the Mertex window. When Mertex asks for Print current window
   (ESC _ pV), app.js printMertexWindow marks the page and opens the browser's print, and the sheet holds the stage alone, as the
   workbook's Print Sheet holds only its sheet: every box that neither holds the stage nor lies inside it is left out, the boxes
   around it give up their own frames, and the stage prints whole, at its content's size scaled down to fit the page (its
   --mertex-print-* properties), in its own colours, without its frame or the busy outline. A report's or the workbook's print
   keeps its own sheet should one start while the mark is still on. It sits before the customer block, which
   developer-console-css.test.mts pins byte for byte from its first rule to the end of the file.
   The wave 12 review: Mertex's own LFK window (above the stage) and its status line (below it) are parts of the Mertex window, as
   SBClient's main window holds them, so they print with it while they show, at the stage's width and scale (the --mertex-print-*
   properties are set on a box holding all three); the status line's Show all button does not print. */
@media print{
body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) :not(:has(.terminal-stage)):not(.terminal-stage):not(.terminal-stage *):not(#gui-lfk-bar):not(#gui-lfk-bar *):not(#host-status):not(#host-status *){display:none!important}
body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) :is(#gui-lfk-bar,#host-status)[hidden],body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) #host-status-more{display:none!important}
body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) :is(#gui-lfk-bar,#host-status){box-sizing:border-box;width:var(--mertex-print-width,auto)!important;max-width:none!important;margin:0!important;zoom:var(--mertex-print-scale,1);print-color-adjust:exact;-webkit-print-color-adjust:exact;break-inside:avoid}
body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) :has(.terminal-stage){display:contents!important}
body[data-mertex-window-printing]:not([data-report-printing]):not([data-workbook-printing]) .terminal-stage{box-sizing:border-box;width:var(--mertex-print-width,auto)!important;height:var(--mertex-print-height,auto)!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;overflow:visible!important;zoom:var(--mertex-print-scale,1);print-color-adjust:exact;-webkit-print-color-adjust:exact;break-inside:avoid}
}
/* End-user shell: text at least 12 px, with a contrast of at least 4.5:1 on its
   background, and a focus ring of at least 3:1 on light and dark surfaces. */
body.end-user{--muted:#4f6470}
.end-user :is(.eyebrow,.field-help,.form-error,label,.button.small,.workspace-expand,.tabs-placeholder,.session-tab,.host-status-label,
  .terminal-identity .muted,#session-state,.key-controls button,.gui-startup-placeholder small,.terminal-empty small){font-size:12px}
.end-user :is(.eyebrow,.field-help,.dialog-heading p,.tabs-placeholder,.muted,#session-state,.gui-main-window-pending p,.gui-login-form>p:first-of-type,.gui-login-waiting p){color:var(--colour-text-muted)}
.end-user .session-tab:not(.active){color:var(--colour-text-muted)}
.end-user .form-error{color:var(--colour-danger)}
.end-user .host-status-label{color:#2f5f58}
.end-user .key-controls button{color:#3f5864}
.end-user .terminal-empty p{color:var(--colour-text-muted)}
/* Customer workspace: only the Mertex screen under a slim 40 px bar, a branded
   sign-in card and a connect card. The wordmark is styled text in product
   colours, not host artwork. */
.end-user .terminal-toolbar{display:none}
.end-user .customer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;height:40px;padding:0 12px;background:var(--colour-surface);border-bottom:1px solid #d5dee2;color:var(--colour-text);white-space:nowrap;font-family:"Segoe UI",Inter,ui-sans-serif,sans-serif}
.end-user .customer-bar-identity{display:flex;align-items:center;gap:12px;min-width:0}
.end-user .customer-system{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}
.end-user .customer-status{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;color:#3f5864}
.end-user .customer-status .status-dot{width:9px;height:9px;box-shadow:none}
.end-user .customer-status.online .status-dot{background:var(--colour-success)}
.end-user .customer-status.pending .status-dot{background:var(--colour-warning-accent)}
.end-user .customer-status.offline .status-dot{background:#6b7c86}
.end-user .customer-bar-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.end-user .customer-bar-button{min-height:30px;padding:4px 10px;border:1px solid var(--colour-border-control);border-radius:6px;background:var(--colour-surface);color:#1f3b4a;font-size:13px;line-height:1.2}
.end-user .customer-bar-button:hover{background:var(--colour-surface-hover)}
/* A dialog's first focus (Copy details in Help, Stay signed in) is always drawn: browsers do not count an Alt+Shift shortcut as keyboard use. */
.end-user dialog[open] [autofocus]:focus{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
.end-user .mertex-wordmark{display:inline-flex;align-items:center;font-size:20px;font-weight:700;letter-spacing:-.5px;line-height:1;color:var(--brand-ink)}
.end-user .mertex-wordmark::before{content:"";display:inline-block;width:.55em;height:.55em;margin-right:.18em;border-radius:0 60%;background:var(--brand-mark)}
.end-user #auth-dialog::backdrop{background:var(--surface-stage-dark)}
.end-user #auth-dialog{--space-dialog:28px}
.end-user #auth-dialog .mertex-wordmark,.end-user .empty-card .mertex-wordmark{display:flex;margin-bottom:16px;font-size:30px}
.end-user #auth-dialog .dialog-heading h2{color:var(--colour-text-strong)}
.end-user #auth-dialog .button.primary{width:100%}
.end-user .terminal-empty{padding:16px;background:var(--surface-stage-dark)}
/* The start card's area scrolls where the card is taller than the stage (320 x 256 and 320 x 180), its top reachable rather than
   cut off above the stage, and a button focused there comes into view with its whole ring, as on the start-up panel; once it
   scrolls, Firefox makes it a Tab stop, where it draws the one ring on its outer 2 px. */
.end-user .terminal-empty{overflow:auto;justify-content:safe center;scroll-padding-block:calc(var(--focus-ring-width) + var(--focus-ring-offset) + 2px)}
.end-user .terminal-empty:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:calc(-1 * var(--focus-ring-width))}
.end-user .empty-card{display:flex;flex-direction:column;align-items:stretch;gap:12px;box-sizing:border-box;width:min(400px,100%);padding:28px;border-radius:var(--radius-surface);background:var(--colour-surface);color:var(--colour-text);text-align:left;box-shadow:0 30px 100px #071d3435}
/* The start card takes the place of the sign-in card, so it takes that card's heading (a dialog's h2) and its 44 px main button;
   Copy details stays small. */
.end-user .empty-card h3{margin:0;font-size:20px;line-height:1.3;font-weight:650;letter-spacing:-.65px;color:var(--colour-text-strong)}
.end-user .empty-card>.button:not(.small){min-height:44px;font-size:14px}
.end-user .empty-card p{margin:0}
/* The start-up card and the start card are spaced as the sign-in card is: inside 28 px of padding, the wordmark 16 px above the
   heading (with the cards' 12 px gap) and, in a very short window, a 22 px wordmark 8 px above it inside 18 px of padding. */
.end-user .empty-card .mertex-wordmark{margin-bottom:4px}
@media(max-height:400px){
.startup-card-inner,.end-user .empty-card{gap:8px;padding:18px}
.startup-card .startup-card-inner>.mertex-wordmark,.end-user .empty-card .mertex-wordmark{margin-bottom:0;font-size:22px}
}
.end-user .customer-card-system{font-size:14px;font-weight:600;color:var(--colour-text)}
.end-user .customer-system-picker label{margin:0 0 6px}
.end-user .customer-system-picker select{width:100%}
.end-user .customer-connect-status{min-height:1.5em;font-size:13px;color:var(--colour-text-muted)}
.end-user .support-extra{margin-top:18px}
.end-user .support-extra h3{font-size:14px;margin:0 0 6px;color:var(--colour-text)}
.end-user .support-extra p{font-size:13px;color:var(--colour-text-muted)}
.end-user .support-extra .checkbox-label{margin-top:12px;font-size:13px;color:var(--colour-text)}
.end-user .support-extra .field-help{margin:6px 0 0}
.end-user .support-settings{min-width:0;margin-inline:0;padding:0;border:0}
.end-user .support-settings legend{padding:0;margin:0 0 6px;font-size:14px;font-weight:600;color:var(--colour-text)}
.end-user .support-settings .checkbox-label{margin-top:0}
/* Help's Settings check boxes start at the section's edge, under the legend, as the help lines do: the browser's own margin moved
   them 4 px in. */
.end-user .support-settings .checkbox-label input{margin:0}
/* Help's keyboard shortcuts: each key in a column of its own, so a description that wraps hangs beside its key rather than running
   back under it. Every key is as wide as the longest, Ctrl+Shift+C, twelve characters (12ch, padding apart) of the font it is
   drawn in, and its column as wide as the key: ch follows the font and the browser's minimum font size, where px and em do not, so
   the descriptions of a column start at one edge in any monospace font (Consolas on Windows, wider ones elsewhere) and at any text
   size. A longer key would push only its own description. A second column of shortcuts comes only where each row has 240 px and
   32 characters of its own text, so a minimum font size that draws the keys larger (16 px or more) leaves one column with whole
   words rather than two with words broken; no row is ever wider than the list. */
.end-user .support-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(240px,32ch)),1fr));gap:6px 16px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--colour-text)}
.end-user .support-shortcuts li{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:8px;align-items:baseline;overflow-wrap:anywhere}
.end-user .support-shortcuts kbd{display:inline-block;justify-self:start;box-sizing:content-box;min-width:12ch;white-space:nowrap;padding:1px 6px;border:1px solid #8ea3ad;border-radius:4px;background:#f3f6f8;color:var(--colour-text);font:600 12px ui-monospace,Consolas,"SFMono-Regular",monospace}
@media(max-width:640px){
.end-user .customer-system{display:none}
.end-user .customer-bar{padding:0 8px;gap:8px}
.end-user .customer-bar-actions{gap:4px}
.end-user .customer-bar-button{padding:4px 8px}
}
/* On-screen keys: on touch screens, or when chosen under Help (Show on-screen keys). */
.end-user:not(.show-keys) :is(#gui-field-keys,.key-controls){display:none}
@media(pointer:coarse),(hover:none){
.end-user:not(.show-keys) :is(#gui-field-keys,.key-controls){display:flex}
}
.end-user.show-keys :is(#gui-field-keys,.key-controls){display:flex}
/* Mertex's own text sign-in (no saved login): a note card in the notice layer (UI-C07), the
   fixed 80 x 24 grid centred, and the stage colour under it instead of xterm's
   black viewport. */
.end-user .text-screen-note strong{font-weight:600}
.end-user #terminal .xterm-viewport{background-color:transparent}
.end-user .terminal-stage.legacy-grid #terminal{min-width:0;margin-inline:auto}
/* Help's Saved login: its button beside its sentence; in a narrow window under it, its words wrapping inside Help rather than
   running past its edge where a minimum font size draws them large (22 px or more at 320 px wide). */
.end-user #customer-saved-login-section{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center}
.end-user #customer-saved-login-section h3{grid-column:1/-1;margin:0}
@media(max-width:520px){
.end-user #customer-saved-login-section{grid-template-columns:minmax(0,1fr)}
.end-user #customer-saved-login-section .button{justify-self:start;max-width:100%;white-space:normal}
}
/* The bar's and the Mertex status strip's heights, for anything that sits between them. */
.end-user{--customer-bar-height:40px;--status-strip-height:24px}
/* The sign-in card keeps two lines for its error, laid out even while hidden (the global [hidden] rule is !important), so the
   field and the button never move when it shows; the button is 44 px high. */
.end-user #auth-dialog .form-error{min-height:3em;margin-top:12px;padding:0;background:none;font-size:13px;line-height:1.5}
.end-user #auth-dialog .form-error[hidden]{display:block!important;visibility:hidden}
.end-user #auth-dialog .button.primary{min-height:44px}
/* In a very short window, where the whole dialog scrolls (the Foundation's dialog rules), the card's spacing and wordmark tighten,
   and so do the gaps around the help line, so the field and a three-line message under it (the expiry message at 320 px wide)
   fit the dialog's view together, the field's ring included: at 320 x 180 they took 146 px of the 134 the view shows inside its
   scroll-padding, and now take 131. */
@media(max-height:400px){
.end-user #auth-dialog{--space-dialog:18px}
.end-user #auth-dialog .mertex-wordmark{margin-bottom:8px;font-size:22px}
.end-user #auth-dialog .field-help{margin:6px 0}
.end-user #auth-dialog .form-error{margin-top:6px}
}
/* Log in to Mertex (P2) keeps two lines for its error in the same way, so its fields and buttons never move when a refusal
   shows, and its wordmark sits above its heading. While the request is on its way Log in and Use the text screen are greyed out
   as a disabled button is, with focus kept where it was (aria-disabled, never disabled). In a very short window its spacing
   tightens as the sign-in card's does. */
.end-user #mertex-login-dialog .mertex-wordmark{display:flex;margin-bottom:12px}
.end-user #mertex-login-dialog .form-error{min-height:3em;margin-top:12px;padding:0;background:none;font-size:13px;line-height:1.5}
.end-user #mertex-login-dialog .form-error[hidden]{display:block!important;visibility:hidden}
.end-user #mertex-login-dialog #mertex-login-sb{margin-top:17px}
.end-user #mertex-login-dialog .button[aria-disabled="true"]{cursor:not-allowed;opacity:.42}
@media(max-height:400px){
.end-user #mertex-login-dialog{--space-dialog:18px}
.end-user #mertex-login-dialog .mertex-wordmark{margin-bottom:8px}
.end-user #mertex-login-dialog .form-error{margin-top:6px}
}
/* The report window sits between the bar and what is under the Mertex screen, 8 px from each, so the status stays readable:
   the status strip and, when shown, the on-screen keys. session-reports.ts measures that space as --report-window-foot,
   because the keys' height changes with the window and the device; at least the strip's 24 px is kept clear. In a window too
   low for both, the report keeps 160 px (or the height it has beside the strip alone, if less). It comes after the 760 px
   rules and is more specific, so it holds at every width. */
.end-user .session-reports-modeless.report-window{--report-window-room:calc(100dvh - var(--customer-bar-height) - 16px);top:calc(var(--customer-bar-height) + 8px);height:max(min(160px,calc(var(--report-window-room) - var(--status-strip-height))),calc(var(--report-window-room) - max(var(--status-strip-height),var(--report-window-foot,0px))))}
/* Check again's status line: its spinner spaced from its words, and a failed check in the error colour. */
.end-user .customer-connect-status{display:flex;align-items:center;gap:8px}
.end-user .customer-connect-status[data-tone="error"]{color:var(--colour-danger)}
/* The text-screen note quotes the prompt and the keys as Help's shortcut keys are drawn (UI-C09). */
.end-user .text-screen-note :is(kbd,samp){padding:0 4px;border:1px solid var(--colour-border-field);border-radius:var(--radius-small);background:var(--colour-surface-sunken);color:var(--colour-text);font:600 12px ui-monospace,Consolas,"SFMono-Regular",monospace;white-space:nowrap}
/* Help's Settings: each setting under the one before, its help beneath it, and the refusal line at the foot. */
.end-user .support-setting{margin-top:14px}
.end-user .support-setting label[for="customer-text-size"]{margin:0 0 6px;font-size:13px;font-weight:400;color:var(--colour-text)}
.end-user #customer-text-size{width:auto;min-width:12rem}
/* Its refusal line keeps the dialog status line's own size and colours, red for a refusal, over Help's grey paragraph text. */
.end-user .support-extra .dialog-status{font-size:14px;color:var(--colour-text-muted)}
.end-user .support-extra .dialog-status[data-tone="error"]{color:var(--colour-danger)}
/* The status line opens its Show all panel from anywhere on it while its text is cut off (UI-C29). */
.end-user .host-status[data-clipped]{cursor:pointer}
/* The on-screen keys (UI-C20): one compact right-aligned row of keys as wide as their names, Enter filled as the main key;
   32 px high with a mouse and 44 px on touch, so the strip is 40 px (52 px on touch). */
.end-user .gui-field-keys{flex-wrap:nowrap;justify-content:flex-end;gap:6px;padding:4px 12px}
.end-user .gui-field-keys button{flex:0 0 auto;min-width:64px;min-height:32px;padding:4px 12px;font-size:13px}
.end-user .gui-field-keys button[data-gui-field-key="Enter"]{border-color:var(--colour-accent);background:var(--colour-accent);color:var(--colour-on-accent)}
@media(pointer:coarse){
.end-user .gui-field-keys button{min-width:56px;min-height:44px}
}
/* Narrow windows (UI-C22): the connection text ends in an ellipsis rather than run under the buttons. At 640 px and below the
   connection is its dot (the words stay for screen readers and in its tooltip) and New window goes (Alt+Shift+N still works);
   at 400 px and below the wordmark goes and the keys show only their key names, keeping the words in their accessible names.
   The text screen's keys stay one row that scrolls sideways. Where the row cannot hold all 20 keys (760 px and below), app.js
   moves Esc, Tab, Backspace, the arrows and Enter first in the page (orderTextScreenKeys), so the keys a phone's own keyboard
   lacks start in view, and the function keys follow, the first of them showing at the edge; at 400 px and below those eight
   keys are narrower, to fit 320 px. */
.end-user .customer-bar-identity{overflow:hidden}
.end-user .customer-status{min-width:0;flex-shrink:1}
.end-user #customer-status-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
@media(max-width:640px){
.end-user #customer-new-window{display:none}
.end-user #customer-status-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media(max-width:400px){
.end-user .customer-bar-identity>.mertex-wordmark{display:none}
.end-user .gui-field-keys .key-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
.end-user .key-controls{flex-wrap:nowrap;overflow-x:auto}
.end-user :is(.function-keys,.navigation-keys){display:flex;flex:none;flex-wrap:nowrap;width:auto}
.end-user .key-controls button{flex:none}
@media(max-width:400px){
.end-user .key-controls{gap:8px;padding-inline:8px}
.end-user .navigation-keys{gap:4px}
.end-user .navigation-keys button{min-width:28px}
}
/* Start-up (UI-C08): the panel and the stage behind it are light from the confirmed stream through measuring, so the first change
   of colour is the Mertex screen itself, with the spinner above Opening Mertex… in the text colours; a light surface resets the ring. */
.end-user .terminal-stage.gui-starting{background:var(--colour-stage-light);border-color:var(--colour-border);--focus-ring-colour:var(--colour-focus)}
.end-user .gui-startup-placeholder h3{color:var(--colour-text-strong)}
.end-user .gui-startup-placeholder :is(p,small){color:var(--colour-text-muted)}
/* The busy cue on the light start-up stage, as on the other light stages (stage 3 integration fix round 1). */
.end-user .terminal-stage.key-busy.gui-starting{outline-color:var(--colour-warning-accent)}
/* Help's Mertex is still opening: its button under its sentence, spaced as Saved login's is, so its ring clears the words, and
   kept clear of the support details below. */
.end-user #customer-text-screen-section{display:grid;gap:6px;margin:0 0 18px}
.end-user #customer-text-screen-section h3{margin:0}
.end-user #customer-text-screen-section .button{justify-self:start}
/* While the stream is down its button waits for the connection: greyed out as a disabled button is, with focus kept on it, and the
   line under it says when it works again. */
.end-user #customer-text-screen[aria-disabled="true"]{cursor:not-allowed;opacity:.42}
.end-user #customer-text-screen-section .customer-text-screen-wait{margin:0}
/* A button the Ctrl+F6 route focuses (data-key-focus) draws the one ring, because Chromium does not count a modifier shortcut
   as keyboard use for :focus-visible. It takes the offset token, so a notice card keeps its ring inside its edge; Show all, in a
   status line that clips, sets the token inside too, as its own ring is. */
.end-user [data-key-focus]:focus{outline:var(--focus-ring-width) solid var(--focus-ring-colour);outline-offset:var(--focus-ring-offset)}
.end-user .host-status-more{--focus-ring-offset:calc(-1 * var(--focus-ring-width))}
/* Full screen (KEY-03): a 30 x 30 icon toggle in the bar, its corner brackets drawn in the button's own colour and turned inward
   while it is pressed, on the accent tint the report window's pressed tools use. */
.end-user .customer-bar-icon{display:inline-grid;place-items:center;box-sizing:border-box;width:30px;height:30px;min-height:30px;padding:0}
.end-user .customer-bar-icon[aria-pressed="true"]{border-color:var(--colour-accent);background:var(--colour-accent-tint);color:var(--colour-accent-strong)}
.end-user .customer-bar-icon[aria-pressed="true"] .customer-bar-icon-enter,.end-user .customer-bar-icon:not([aria-pressed="true"]) .customer-bar-icon-leave{display:none}
