/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{--abb-red: #e00000;--abb-red-deep: #b30000;--ink-strong: #1f1f1f;--ink: #333333;--ink-soft: #5f5f5f;--line: #d7d7d7;--line-strong: #bdbdbd;--surface: #ffffff;--surface-subtle: #f3f3f3;--surface-muted: #ebebeb;--surface-raised: #fafafa;--success: #2f7d32;--success-bg: #eaf5ea;--warning: #996100;--warning-bg: #fff2d8;--danger: #9f1c1c;--danger-bg: #fdeaea;--shadow-soft: 0 18px 48px rgba(31, 31, 31, .08);--content-width: 1240px;color:var(--ink);background:linear-gradient(180deg,#e000000d 0,#e0000000 11rem),linear-gradient(180deg,#f7f7f7,#ececec);font-family:Segoe UI,Arial,Helvetica Neue,sans-serif;line-height:1.5}html,body,#root{min-height:100%}*{box-sizing:border-box}body{margin:0;color:var(--ink)}body:before{content:"";position:fixed;inset:0 0 auto;height:6px;background:var(--abb-red);z-index:10}button,input,select{font:inherit}button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.58;transform:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(224,0,0,.18);outline-offset:2px}a{color:inherit}p,ul{margin:0}ul{padding-left:1.2rem}.app-shell{padding:28px clamp(16px,2.6vw,32px) 32px}.app-content,.details-layout{width:min(100%,var(--content-width));margin:0 auto}.topbar,.panel-header,.details-header,.topbar-actions,.checkbox-row,.status-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar{width:min(100%,var(--content-width));margin:0 auto 28px;padding:0 0 20px;border-bottom:1px solid var(--line)}.brand-column{display:grid;gap:14px}.brand-lockup{display:grid;justify-items:start;gap:10px}.brand-signature{display:flex;align-items:flex-start;gap:14px}.signin-brand-panel{display:grid;align-content:center;gap:18px}.brand-mark{color:var(--abb-red);font-size:clamp(2.6rem,5vw,3.4rem);font-weight:800;letter-spacing:-.1em;line-height:.84;flex-shrink:0}.brand-division{color:var(--ink-strong);font-size:.92rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1;padding-top:.35rem}.brand-copy,.signin-brand-panel>div:last-child{display:grid;gap:8px}.topbar h1,.panel-header h2,.panel-header h3,.signin-card h1{margin:0;color:var(--ink-strong)}.topbar h1{font-size:clamp(2.2rem,3.8vw,3.1rem);font-weight:600;letter-spacing:-.04em}.topbar-summary,.panel-intro,.signin-lead,.serial-viewer-note,.overview-card p,.empty-state p,label,.tool-unavailable{color:var(--ink-soft)}.topbar-summary{max-width:44rem}.eyebrow{margin:0;color:var(--abb-red);font-size:.76rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.identity-chip,.state-pill,.ghost-button,.primary-button,.danger-button,input,select,.panel,.signin-card,.overview-card,.session-overview,.terminal-shell,.screen-shell{border-radius:14px}.identity-chip{padding:.75rem .95rem;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft)}.ghost-button,.primary-button,.danger-button{min-height:44px;padding:.72rem 1rem;border:1px solid transparent;font-weight:600;cursor:pointer}.ghost-button{color:var(--ink-strong);background:var(--surface);border-color:var(--line)}.ghost-button:hover:not(:disabled){background:var(--surface-subtle);border-color:var(--line-strong)}.primary-button{color:#fff;background:var(--abb-red);box-shadow:0 8px 24px #e000002e}.primary-button:hover:not(:disabled){background:var(--abb-red-deep)}.danger-button{color:#fff;background:#6f1a1a}.danger-button:hover:not(:disabled){background:#581313}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:24px;background:#1f1f1f6b}.confirmation-modal{width:min(100%,30rem);display:grid;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--abb-red);border-radius:14px;box-shadow:0 28px 72px #1f1f1f3d}.confirmation-modal-body{display:grid;gap:12px;padding:24px 24px 18px}.confirmation-modal-body h2{margin:0;color:var(--ink-strong);font-size:1.55rem;font-weight:600;letter-spacing:-.02em}.confirmation-modal-body p:not(.eyebrow){color:var(--ink-soft)}.modal-session-id{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-subtle)}.modal-session-id span{color:var(--ink-soft);font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.modal-session-id strong{color:var(--ink-strong);overflow-wrap:anywhere}.confirmation-modal-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;padding:0 24px 24px}.dashboard-layout{display:grid;gap:24px}.overview-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.overview-card{display:grid;gap:8px;padding:20px;background:linear-gradient(180deg,#fff,#f6f6f6);border:1px solid var(--line);border-top:4px solid var(--abb-red);box-shadow:var(--shadow-soft)}.overview-label{color:var(--ink-soft);font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.overview-value{color:var(--ink-strong);font-size:clamp(1.8rem,3vw,2.4rem);font-weight:600;line-height:1}.page-grid{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:20px}.panel{display:grid;gap:16px;padding:22px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}.panel-header{align-items:flex-start}.panel-header>div:first-child{display:grid;gap:8px}.panel-header h2{font-size:clamp(1.45rem,2vw,1.9rem);font-weight:600;letter-spacing:-.03em}.panel-header h3{font-size:1.2rem;font-weight:600;letter-spacing:-.02em}.create-panel{align-content:start}.create-panel .primary-button{justify-self:start;min-width:11rem}label{display:grid;gap:8px;font-size:.95rem;font-weight:500}input{width:100%;padding:.9rem 1rem;border:1px solid var(--line);background:var(--surface-raised);color:var(--ink-strong)}select{width:100%;padding:.9rem 2.75rem .9rem 1rem;border:1px solid var(--line);background:linear-gradient(45deg,transparent 50%,var(--abb-red) 50%),linear-gradient(135deg,var(--abb-red) 50%,transparent 50%),linear-gradient(180deg,#fff,#f8f8f8);background-position:calc(100% - 20px) calc(50% - 3px),calc(100% - 14px) calc(50% - 3px),0 0;background-size:6px 6px,6px 6px,100% 100%;background-repeat:no-repeat;color:var(--ink-strong);-webkit-appearance:none;-moz-appearance:none;appearance:none}input::placeholder{color:#8a8a8a}.field-support-text{color:var(--ink-soft);font-size:.9rem}.checkbox-row{justify-content:flex-start;gap:10px}.checkbox-row input{width:18px;height:18px;margin:0}.table-panel{gap:18px;align-content:start}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}table{width:100%;border-collapse:collapse}th,td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--line)}th{color:var(--ink-soft);font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;background:var(--surface-subtle)}tbody tr{cursor:pointer;transition:background-color .14s ease}tbody tr:hover{background:#e000000a}tbody tr:last-child td{border-bottom:0}td:first-child,.status-value,.serial-viewer-note{overflow-wrap:anywhere}.state-pill{display:inline-flex;align-items:center;min-height:32px;padding:.34rem .72rem;border:1px solid #d6d6d6;background:#f3f3f3;color:var(--ink-strong);font-size:.86rem;font-weight:600;white-space:normal}.state-running{color:var(--success);background:var(--success-bg);border-color:#b7d7b9}.state-failed,.state-expired,.state-cancelled{color:var(--danger);background:var(--danger-bg);border-color:#f1b6b6}.state-pending,.state-creating,.state-provisioning,.state-terminating,.state-updating{color:var(--warning);background:var(--warning-bg);border-color:#f0d095}.details-layout,.session-workspace{display:grid;gap:16px}.details-page-header{display:grid;gap:10px}.details-header{align-items:flex-start}.details-header-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px}.status-label,.status-meta{color:var(--ink-soft);font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.session-workspace{grid-template-columns:minmax(320px,360px) minmax(0,1fr);grid-template-areas:"status primary" "secondary primary";grid-template-rows:auto minmax(0,1fr);align-items:stretch;min-height:0}.status-panel{grid-area:status;align-content:start}.workspace-slot-primary{grid-area:primary}.workspace-slot-secondary{grid-area:secondary}.workspace-slot-primary,.workspace-slot-secondary,.ssh-panel,.screen-panel{min-height:0}.status-table{display:grid}.status-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line)}.status-row:last-child{border-bottom:0}.status-value{color:var(--ink-strong);text-align:right;font-size:1rem;line-height:1.45}.status-footer{flex-wrap:wrap}.status-banner{padding:14px 16px;border:1px solid #f0d095;border-radius:12px}.status-banner-warning{color:#7b4b00;background:var(--warning-bg)}.ssh-panel,.screen-panel,.serial-viewer-panel{grid-template-rows:auto 1fr}.terminal-shell{width:100%;min-height:0;height:100%;padding:10px;overflow:hidden;border:1px solid #363636;background:#111;box-shadow:inset 0 0 0 1px #ffffff08}.terminal-surface{width:100%;height:100%;min-height:0;overflow:hidden;border-radius:10px;background:#141414}.terminal-shell .xterm,.terminal-shell .xterm-screen,.terminal-shell .xterm-viewport{height:100%!important}.terminal-shell .xterm-viewport{scrollbar-width:none;-ms-overflow-style:none}.terminal-shell .xterm-viewport::-webkit-scrollbar{width:0;height:0}.serial-viewer-shell{min-height:min(76dvh,52rem)}.serial-viewer-shell .terminal-surface{min-height:calc(min(76dvh,52rem) - 22px)}.screen-stage{display:grid;place-items:center;min-height:0;height:100%;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fffc,#f0f0f0f2),repeating-linear-gradient(135deg,#e0000008 0,#e0000008 10px,#fff0 10px,#fff0 22px);overflow:hidden;container-type:size}.screen-shell{width:min(100cqw,56.25cqh);max-width:100%;height:auto;max-height:100%;aspect-ratio:9 / 16;border:1px solid #2f2f2f;overflow:hidden;background:#111;box-shadow:0 22px 40px #1f1f1f2e,inset 0 0 0 1px #ffffff0a}.screen-frame{width:100%;height:100%;display:block;border:0;background:#111}.screen-stage-unavailable{min-height:0}.tool-unavailable{max-width:24rem;text-align:center}.error-text{color:var(--danger);font-weight:600}.error-block{margin-top:8px;padding:16px;border:1px solid #efb1b1;border-radius:12px;background:var(--danger-bg);color:#5c1b1b;overflow:auto}.empty-state{display:grid;gap:10px;align-content:center;min-height:12rem;padding:24px;border:1px dashed var(--line-strong);border-radius:12px;background:var(--surface-subtle)}.signin-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.signin-card{width:min(100%,880px);display:grid;grid-template-columns:minmax(0,.95fr) auto minmax(0,1.05fr);gap:24px;padding:clamp(24px,3vw,40px);background:linear-gradient(180deg,#fff,#f7f7f7);border:1px solid var(--line);box-shadow:0 28px 72px #1f1f1f1a}.signin-lead{max-width:28rem}.signin-brand-lockup{display:grid;justify-items:start;gap:14px}.product-lockup{display:grid;gap:2px}.product-lockup h1{font-size:clamp(2.2rem,4vw,3rem);line-height:.95}.product-subtitle{color:var(--ink-strong);font-size:clamp(1.6rem,2.8vw,2.2rem);font-weight:600;letter-spacing:-.03em}.signin-divider{width:1px;background:linear-gradient(180deg,#e0000014,#bdbdbde6,#e0000014)}.signin-content{display:grid;align-content:start;gap:18px}.signin-feature-list{display:grid;gap:10px;color:var(--ink)}.signin-feature-list li::marker{color:var(--abb-red)}@media(min-width:1081px){.app-shell-session-fit{min-height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;overflow:hidden}.app-shell-session-fit .topbar{margin-bottom:0}.app-shell-session-fit .app-content{min-height:0;overflow:hidden}.app-shell-session-fit .session-details-layout{height:100%;min-height:0;grid-template-rows:auto auto minmax(0,1fr)}.app-shell-session-fit .session-workspace{min-height:0;overflow:hidden}.app-shell-session-fit .workspace-slot-secondary,.app-shell-session-fit .workspace-slot-primary,.app-shell-session-fit .ssh-panel,.app-shell-session-fit .screen-panel,.app-shell-session-fit .screen-stage{min-height:0}}@media(max-width:1080px){.overview-band,.page-grid,.session-workspace,.signin-card{grid-template-columns:1fr}.session-workspace{grid-template-areas:"status" "screen" "ssh";grid-template-rows:auto}.signin-card{grid-template-columns:1fr}.signin-divider{width:100%;height:1px}.app-content,.details-layout{width:100%}.status-footer,.topbar,.details-header{flex-direction:column;align-items:flex-start}.topbar-actions,.details-header-actions{width:100%;justify-content:space-between}.workspace-swap-button{display:none}.screen-stage,.screen-stage-unavailable{min-height:22rem}.screen-shell,.workspace-slot-primary.screen-panel .screen-shell,.workspace-slot-secondary.screen-panel .screen-shell{width:min(100%,calc(min(64dvh,38rem)*.5625));max-width:100%}}@media(max-width:720px){.app-shell{padding:20px 14px 24px}.panel,.signin-card{padding:18px}.brand-lockup,.signin-brand-panel{gap:12px}.topbar-actions,.details-header-actions{flex-direction:column;align-items:stretch}.topbar-actions>*,.details-header-actions>*{width:100%}.status-row{flex-direction:column}.status-value{text-align:left}th,td{padding:12px}.modal-backdrop{padding:14px}.confirmation-modal-footer{flex-direction:column}.confirmation-modal-footer>button{width:100%}}
