/**
 * 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:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.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}*{box-sizing:border-box;margin:0;padding:0}:root{--bg-1: #0f1420;--bg-2: #1b2340;--bg-3: #2a1e4a;--panel: rgba(22, 28, 45, .82);--panel-solid: #161c2d;--border: rgba(255, 255, 255, .09);--text: #e4e9f4;--text-dim: #8b93ab;--accent: #5b8cff;--accent-2: #8a5bff;--danger: #ff5b6e;--ok: #3fd68f;--warn: #ffc24b;--taskbar-h: 46px;--radius: 10px}html,body,#root{height:100%;overflow:hidden}body{font-family:Segoe UI,system-ui,-apple-system,Roboto,sans-serif;font-size:14px;color:var(--text);background:var(--bg-1);-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;background:#ffffff12;border:1px solid var(--border);border-radius:7px;padding:5px 10px;cursor:pointer;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#ffffff24;border-color:#fff3}button:disabled{opacity:.45;cursor:default}input,textarea{font:inherit;color:var(--text);background:#0000004d;border:1px solid var(--border);border-radius:7px;padding:7px 10px;outline:none}input:focus,textarea:focus{border-color:var(--accent)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff24;border-radius:5px;border:2px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:#ffffff40;background-clip:content-box}.auth-screen{height:100%;height:100vh;height:100dvh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--bg-1) 0%,var(--bg-2) 55%,var(--bg-3) 100%)}.auth-card{display:flex;flex-direction:column;gap:14px;width:340px;max-width:calc(100vw - 32px);padding:34px 30px;background:var(--panel);border:1px solid var(--border);border-radius:14px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 20px 60px #00000080}.auth-card h1{font-size:22px;background:linear-gradient(90deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}.auth-card p{color:var(--text-dim)}.auth-card button[type=submit]{background:linear-gradient(90deg,var(--accent),var(--accent-2));border:none;padding:9px;font-weight:600}.auth-error{color:var(--danger)!important;font-size:13px}.desktop{height:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;background:linear-gradient(135deg,var(--bg-1) 0%,var(--bg-2) 55%,var(--bg-3) 100%)}.desktop-area{position:relative;flex:1;overflow:hidden}.desktop-icons{position:absolute;top:18px;left:18px;display:flex;flex-direction:column;gap:14px;z-index:1}.desktop-icon{width:92px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:6px;border-radius:var(--radius);cursor:pointer;border:1px solid transparent}.desktop-icon:hover{background:#ffffff12}.desktop-icon.selected{background:#5b8cff2e;border-color:#5b8cff66}.desktop-icon-glyph{font-size:34px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}.desktop-icon-label{font-size:12px;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.8)}.windows-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;pointer-events:none}.windows-layer>*{pointer-events:auto}.window-hidden{display:none}.window{width:100%;height:100%;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 14px 44px #0000008c;overflow:hidden}.window-maximized{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:0}.wm-titlebar{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 6px 0 12px;background:#ffffff0d;border-bottom:1px solid var(--border);cursor:grab;flex:none}.wm-titlebar:active{cursor:grabbing}.wm-title{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wm-title-icon{margin-right:2px}.wm-controls{display:flex;gap:4px;flex:none}.wm-btn{width:28px;height:24px;padding:0;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;font-size:13px;color:var(--text-dim)}.wm-btn:hover{background:#ffffff1f!important;color:var(--text)}.wm-btn-close:hover{background:var(--danger)!important;color:#fff!important}.window-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;-webkit-user-select:text;user-select:text}.taskbar{height:var(--taskbar-h);flex:none;display:flex;align-items:center;gap:10px;padding:0 10px;background:#0a0d16e0;border-top:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:10000}.taskbar-windows{flex:1;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.taskbar-windows::-webkit-scrollbar{display:none}.taskbar-item{display:flex;align-items:center;gap:6px;max-width:180px;padding:5px 12px;border-radius:8px;white-space:nowrap}.taskbar-item.minimized{opacity:.55}.taskbar-item-title{overflow:hidden;text-overflow:ellipsis;font-size:13px}.taskbar-right{display:flex;align-items:center;gap:12px;flex:none}.taskbar-jobs{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--warn);padding:3px 10px;background:#ffc24b1a;border:1px solid rgba(255,194,75,.25);border-radius:20px}.spinner{width:10px;height:10px;border:2px solid rgba(255,194,75,.3);border-top-color:var(--warn);border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.taskbar-clock{font-size:13px;color:var(--text-dim);font-variant-numeric:tabular-nums}.taskbar-logout{padding:4px 9px}.fm{display:flex;flex-direction:column;height:100%;min-height:0}.fm-toolbar{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--border);flex:none;flex-wrap:wrap}.fm-toolbar button{font-size:13px}.fm-ai-btn{background:linear-gradient(90deg,#5b8cff40,#8a5bff40);border-color:#5b8cff73}.fm-notice{font-size:12px;color:var(--ok);margin-left:4px}.fm-breadcrumbs{display:flex;align-items:center;gap:2px;padding:6px 10px;border-bottom:1px solid var(--border);flex:none;flex-wrap:wrap}.fm-crumb{background:transparent;border:none;padding:3px 7px;font-size:13px;color:var(--accent)}.fm-crumb-sep{color:var(--text-dim)}.fm-grid{flex:1;overflow-y:auto;position:relative;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;align-content:start}.fm-rubber{position:absolute;z-index:5;pointer-events:none;background:#5b8cff29;border:1px solid rgba(91,140,255,.65);border-radius:2px}.fm-sel-count{font-size:12px;color:var(--text-dim);white-space:nowrap}.fm-grid.os-drag-over{outline:2px dashed var(--accent);outline-offset:-6px;background:#5b8cff0f}.fm-status{grid-column:1 / -1;text-align:center;color:var(--text-dim);padding:30px 0}.fm-error{color:var(--danger)}.fm-item{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 6px 8px;border-radius:var(--radius);border:1px solid transparent;cursor:default;min-width:0}.fm-item:hover{background:#ffffff0f}.fm-item.selected{background:#5b8cff2e;border-color:#5b8cff73}.fm-item.drop-target{background:#3fd68f29;border-color:var(--ok);outline:2px dashed var(--ok);outline-offset:-2px}.fm-item-icon{font-size:36px;pointer-events:none}.fm-item-name{font-size:12px;text-align:center;word-break:break-word;max-height:2.6em;overflow:hidden;pointer-events:none}.fm-item-meta{font-size:10px;color:var(--text-dim);pointer-events:none}.fm-badge{position:absolute;top:5px;right:5px;width:20px;height:20px;padding:0;display:flex;align-items:center;justify-content:center;font-size:11px;border-radius:50%;background:var(--ok);color:#06281a;border:none;font-weight:700}.fm-menu{position:fixed;z-index:100000;display:flex;max-width:calc(100vw - 16px);flex-direction:column;min-width:170px;padding:5px;background:var(--panel-solid);border:1px solid var(--border);border-radius:9px;box-shadow:0 10px 30px #0009}.fm-menu button{background:transparent;border:none;text-align:left;padding:8px 12px;border-radius:6px;font-size:13px}.fm-menu button:hover{background:#5b8cff33}.chat{display:flex;flex-direction:column;height:100%;min-height:0}.chat-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);flex:none}.chat-status{font-size:12px}.chat-status.online{color:var(--ok)}.chat-status.offline{color:var(--warn)}.chat-reset{font-size:12px}.chat-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px}.chat-empty{text-align:center;color:var(--text-dim);margin-top:40px}.chat-msg{max-width:88%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.5;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}.chat-msg-user{align-self:flex-end;background:linear-gradient(135deg,#5b8cff59,#8a5bff59);border:1px solid rgba(91,140,255,.4)}.chat-msg-assistant{align-self:flex-start;background:#ffffff0f;border:1px solid var(--border)}.chat-msg-role{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-dim);margin-bottom:4px}.chat-cursor{animation:blink 1s steps(1) infinite;color:var(--accent)}@keyframes blink{50%{opacity:0}}.chat-typing{align-self:flex-start;font-size:12px;color:var(--text-dim);font-style:italic}.chat-tool{margin-top:8px;background:#00000047;border:1px solid var(--border);border-radius:8px;font-size:12px}.chat-tool summary{padding:6px 10px;cursor:pointer;color:var(--accent);list-style:none}.chat-tool summary::-webkit-details-marker{display:none}.tool-running{color:var(--warn)}.tool-done{color:var(--ok)}.chat-tool-body{padding:4px 10px 10px}.chat-tool-label{font-size:10px;color:var(--text-dim);text-transform:uppercase;margin:6px 0 3px}.chat-tool pre{background:#0006;border-radius:6px;padding:8px;overflow-x:auto;white-space:pre-wrap;word-break:break-word;font-size:11.5px;max-height:220px;overflow-y:auto}.chat-input{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--border);flex:none}.chat-input textarea{flex:1;resize:none;font-size:13.5px}.chat-input button{align-self:flex-end;background:linear-gradient(90deg,var(--accent),var(--accent-2));border:none;padding:8px 16px;font-weight:600}.notes{display:flex;height:100%;min-height:0}.notes-sidebar{width:230px;flex:none;display:flex;flex-direction:column;border-right:1px solid var(--border);min-height:0}.notes-sidebar-top{display:flex;gap:6px;padding:8px;border-bottom:1px solid var(--border)}.notes-search{flex:1;min-width:0;font-size:13px}.notes-new{flex:none;width:32px}.notes-list{flex:1;overflow-y:auto;padding:6px;display:flex;flex-direction:column;gap:3px}.notes-empty{color:var(--text-dim);text-align:center;padding:20px 6px;font-size:12.5px}.notes-list-item{display:flex;flex-direction:column;gap:3px;text-align:left;background:transparent;border:1px solid transparent;padding:8px 10px;border-radius:8px}.notes-list-item.active{background:#5b8cff2e;border-color:#5b8cff66}.notes-list-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-list-snippet{font-size:11px;color:var(--text-dim);overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notes-editor{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0}.notes-editor-top{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--border);flex:none}.notes-current{flex:1;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-save-state{font-size:11.5px;color:var(--text-dim);flex:none}.notes-toggle,.notes-delete{font-size:12.5px;flex:none}.notes-error{padding:6px 12px;color:var(--danger);font-size:12.5px;border-bottom:1px solid var(--border)}.notes-editor-body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.notes-editor-body>[class*=cm-theme]{flex:1;min-height:0}.notes-editor-body .cm-editor{height:100%;font-size:13.5px}.notes-editor-body .cm-scroller{font-family:Cascadia Code,Fira Code,Consolas,monospace}.notes-placeholder{flex:1;display:flex;align-items:center;justify-content:center;color:var(--text-dim);font-size:15px}.notes-preview{flex:1;overflow-y:auto;padding:16px 22px;font-size:14px;line-height:1.65;overflow-wrap:anywhere}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:.8em 0 .4em;line-height:1.3}.markdown-body p{margin:.5em 0}.markdown-body ul,.markdown-body ol{margin:.5em 0;padding-left:1.6em}.markdown-body code{background:#0006;border-radius:4px;padding:1px 5px;font-size:12.5px}.markdown-body pre{background:#0006;border-radius:8px;padding:12px;overflow-x:auto;margin:.6em 0}.markdown-body pre code{background:none;padding:0}.markdown-body blockquote{border-left:3px solid var(--accent);margin:.6em 0;padding:2px 14px;color:var(--text-dim)}.markdown-body a{color:var(--accent)}.markdown-body table{border-collapse:collapse;margin:.6em 0}.markdown-body th,.markdown-body td{border:1px solid var(--border);padding:5px 10px}.wiki-link{color:var(--accent-2)!important;text-decoration:none;border-bottom:1px dashed var(--accent-2);cursor:pointer}.review{display:flex;flex-direction:column;height:100%;min-height:0}.review-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid var(--border);flex:none}.review-title{font-weight:600;font-size:13.5px}.review-error{padding:8px 12px;color:var(--danger);font-size:13px}.review-list{flex:1;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:6px}.review-empty{color:var(--text-dim);text-align:center;padding:30px 10px}.review-job{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#ffffff0a;border:1px solid var(--border);border-radius:9px;font-size:13px}.review-job.clickable{cursor:pointer}.review-job.clickable:hover{border-color:#5b8cff80;background:#5b8cff1a}.review-status{flex:none;font-size:11.5px;padding:3px 9px;border-radius:20px;white-space:nowrap}.review-status-pending{background:#ffc24b26;color:var(--warn)}.review-status-running{background:#5b8cff2e;color:var(--accent)}.review-status-done{background:#3fd68f26;color:var(--ok)}.review-status-error{background:#ff5b6e26;color:var(--danger)}.review-status-skipped{background:#8b93ab26;color:var(--text-dim)}.review-path{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-err{font-size:11.5px;color:var(--danger);max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.review-time{flex:none;font-size:11px;color:var(--text-dim);font-variant-numeric:tabular-nums}@media(max-width:720px){.desktop-icons{flex-direction:row;top:10px;left:10px}.taskbar-item-title{display:none}}.mobile-shell{height:100%;height:100vh;height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(135deg,var(--bg-1) 0%,var(--bg-2) 55%,var(--bg-3) 100%)}.mobile-launcher{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;padding:24px;padding-top:calc(24px + env(safe-area-inset-top))}.mobile-launcher-title{font-size:26px;font-weight:700;background:linear-gradient(90deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}.mobile-launcher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%;max-width:320px}.mobile-launcher-icon{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 10px;background:#ffffff12;border:1px solid var(--border);border-radius:18px;font-size:13px}.mobile-launcher-icon:active{background:#5b8cff38;border-color:#5b8cff80}.mobile-launcher-glyph{font-size:42px;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}.mobile-launcher-footer{display:flex;align-items:center;gap:14px}.mobile-app-view{flex:1;min-height:0;display:flex;flex-direction:column}.mobile-topbar{flex:none;display:flex;align-items:center;gap:10px;padding:8px 12px;padding-top:calc(8px + env(safe-area-inset-top));background:#0a0d16e0;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.mobile-topbar-title{flex:1;font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-topbar-logout{padding:4px 10px;flex:none}.mobile-apps{flex:1;min-height:0;display:flex;flex-direction:column}.mobile-app-pane{flex:1;min-height:0;flex-direction:column}.mobile-app-pane>*{flex:1;min-height:0}.mobile-nav{flex:none;display:flex;background:#0a0d16f0;border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom)}.mobile-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 6px;background:transparent;border:none;border-radius:0;color:var(--text-dim)}.mobile-nav button.active{color:var(--accent)}.mobile-nav-glyph{font-size:19px;line-height:1.2}.mobile-nav-label{font-size:10px}@media(max-width:768px){html,body{overflow-x:hidden}input,textarea{font-size:16px}.fm-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:4px;padding:10px}.fm-item-icon{font-size:30px}.fm-toolbar{gap:6px;padding:8px}.fm-toolbar button{font-size:12px;padding:6px 8px}.notes-sidebar{width:100%;border-right:none}.notes .mobile-hidden{display:none!important}.review-job{flex-wrap:wrap;row-gap:4px}.review-path{flex-basis:100%;order:3}.review-err{max-width:100%}.chat-msg{max-width:94%}}.fm-item-menu-btn{position:absolute;top:5px;left:5px;width:26px;height:26px;padding:0;display:none;align-items:center;justify-content:center;border-radius:50%;background:#00000080;border:1px solid var(--border);font-size:14px;line-height:1}@media(max-width:768px){.fm-item-menu-btn{display:flex}}.notes-back{flex:none;padding:5px 10px;font-size:15px}.terminal-app{display:flex;flex-direction:column;height:100%;min-height:0;position:relative;background:var(--panel-solid)}.terminal-header{display:flex;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid var(--border);flex:none;position:relative;flex-wrap:wrap}.terminal-status{font-size:12px}.terminal-status-open{color:var(--ok)}.terminal-status-connecting{color:var(--warn)}.terminal-status-exit,.terminal-status-closed{color:var(--danger)}.terminal-restart{font-size:12px}.terminal-container{flex:1;min-height:0;padding:4px 0 4px 6px;overflow:hidden}.terminal-container .xterm{height:100%}.iv{display:flex;flex-direction:column;height:100%;min-height:0;background:#00000073}.iv-toolbar{display:flex;align-items:center;gap:6px;padding:6px 10px;border-bottom:1px solid var(--border);background:var(--panel);flex:none;flex-wrap:wrap}.iv-toolbar button,.iv-download{padding:5px 9px;font-size:13px}.iv-download{display:inline-flex;align-items:center;color:inherit;text-decoration:none;background:#ffffff12;border:1px solid var(--border);border-radius:7px;cursor:pointer}.iv-download:hover{background:#ffffff24}.iv-name{flex:1;min-width:60px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iv-counter{color:var(--text-dim);font-size:11.5px}.iv-zoom{font-size:11.5px;color:var(--text-dim);min-width:42px;text-align:center;font-variant-numeric:tabular-nums}.iv-close{color:var(--text-dim)}.iv-notice{padding:5px 12px;font-size:12px;color:var(--ok);border-bottom:1px solid var(--border);flex:none}.iv-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;touch-action:none}.iv-img{display:block;margin:auto;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.iv-img.iv-fit{max-width:100%;max-height:100%;object-fit:contain}.iv-error{color:var(--text-dim);padding:30px;text-align:center}.mobile-viewer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200000;background:#000000eb;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);display:flex;flex-direction:column}.mobile-viewer-overlay .iv{background:transparent}.mobile-viewer-overlay .iv-toolbar{background:#ffffff0f}.terminal-sessions-btn.active{background:#5b8cff40;border-color:#5b8cff80}.term-sessions-panel{position:absolute;top:100%;left:0;right:0;z-index:20;background:var(--panel-solid);border-bottom:1px solid var(--border);box-shadow:0 12px 30px #0000008c;max-height:60%;overflow-y:auto;display:flex;flex-direction:column}.term-sessions-top{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;border-bottom:1px solid var(--border);flex:none}.term-sessions-title{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-dim)}.term-sessions-note{padding:12px;font-size:12.5px;color:var(--text-dim);text-align:center}.term-sessions-error{padding:8px 12px;font-size:12.5px;color:var(--danger)}.term-session-row{display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:44px;cursor:pointer;border-bottom:1px solid rgba(255,255,255,.04);font-size:13px}.term-session-row:hover{background:#5b8cff1f}.term-session-row.current{background:#5b8cff14;cursor:default}.term-session-id{font-family:Cascadia Code,Fira Code,Consolas,monospace;font-size:12.5px}.term-session-badge{font-size:10.5px;padding:2px 8px;border-radius:20px;background:#3fd68f29;color:var(--ok);flex:none}.term-session-date{flex:1;color:var(--text-dim);font-size:12px;font-variant-numeric:tabular-nums}.term-session-clients{color:var(--text-dim);font-size:12px;flex:none}.term-session-close{flex:none;width:30px;height:30px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--text-dim)}.term-session-close:hover{background:var(--danger)!important;color:#fff!important}
