/**
 * 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-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{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{--color-bg: #0f172a;--color-surface: #1e293b;--color-surface-hover: #334155;--color-border: #334155;--color-text: #f1f5f9;--color-text-muted: #94a3b8;--color-primary: #38bdf8;--color-primary-hover: #0ea5e9;--color-danger: #f87171;--color-danger-hover: #ef4444;--color-success: #4ade80;--color-warning: #fbbf24;--color-error: #f87171;--radius: 8px;--radius-sm: 4px;--font-mono: "SF Mono", "Cascadia Code", "Fira Code", monospace}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-font-smoothing:antialiased}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--color-bg);color:var(--color-text);line-height:1.6;min-height:100vh}.app-layout{min-height:100vh;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;gap:1.5rem;padding:.625rem 1.5rem;background:linear-gradient(180deg,var(--color-surface) 0%,rgba(30,41,59,.95) 100%);border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.app-logo{font-weight:700;font-size:1.125rem;color:var(--color-primary);text-decoration:none;letter-spacing:-.02em;display:flex;align-items:center;gap:.5rem}.app-nav{display:flex;gap:1rem;flex:1}.app-nav a{color:var(--color-text-muted);text-decoration:none;padding:.25rem .5rem;border-radius:var(--radius-sm);font-size:.875rem;transition:color .15s}.app-nav a:hover{color:var(--color-text)}.app-nav a.active{color:var(--color-primary)}.app-user{display:flex;align-items:center;gap:.75rem;margin-left:auto}.app-user-email{font-size:.875rem;color:var(--color-text-muted)}.app-main{flex:1;padding:2rem 1.5rem;max-width:1200px;width:100%;margin:0 auto}.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);color:var(--color-text);font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s;text-decoration:none;white-space:nowrap}.btn:hover:not(:disabled){background:var(--color-surface-hover)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--color-primary);color:var(--color-bg);border-color:var(--color-primary)}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.btn-danger{background:transparent;color:var(--color-danger);border-color:var(--color-danger)}.btn-danger:hover:not(:disabled){background:var(--color-danger);color:#fff}.btn-sm{padding:.25rem .625rem;font-size:.8125rem}.btn-icon{background:none;border:none;color:var(--color-text-muted);font-size:1.5rem;cursor:pointer;padding:0;line-height:1}.btn-icon:hover{color:var(--color-text)}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.login-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:2.5rem;max-width:400px;width:100%;text-align:center}.login-logo h1{font-size:1.75rem;color:var(--color-primary);letter-spacing:-.03em;margin-bottom:.25rem}.login-logo-img{height:48px;margin-bottom:.5rem}.login-subtitle{color:var(--color-text-muted);font-size:.875rem;margin-bottom:2rem}.login-buttons{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1.5rem}.btn-github{background:#24292e;color:#fff;border-color:#24292e}.btn-github:hover:not(:disabled){background:#1b1f23}.btn-google{background:#fff;color:#3c4043;border-color:#dadce0}.btn-google:hover:not(:disabled){background:#f8f9fa}.login-footer{font-size:.8125rem;color:var(--color-text-muted)}.login-discover{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--color-border);display:flex;flex-direction:column;gap:.625rem;align-items:center}.login-discover-label{font-size:.8125rem;color:var(--color-text-muted);letter-spacing:.01em}.login-discover-links{display:flex;flex-direction:column;gap:.375rem;width:100%}.login-discover-link{display:block;text-align:center;padding:.5rem .75rem;font-size:.875rem;color:var(--color-primary, #4f8cff);background:transparent;border:1px solid var(--color-border);border-radius:var(--radius-sm);text-decoration:none;transition:background .12s ease,border-color .12s ease}.login-discover-link:hover{background:var(--color-surface);border-color:var(--color-primary, #4f8cff)}.dashboard-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.dashboard-header h1{font-size:1.5rem}.pod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:1rem}.empty-state{text-align:center;padding:4rem 2rem;color:var(--color-text-muted)}.empty-state h2{color:var(--color-text);margin-bottom:.5rem}.empty-state p{margin-bottom:1.5rem}.pod-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1.25rem}.pod-card--running{border-color:var(--color-success);border-left:3px solid var(--color-success)}.pod-card--starting,.pod-card--pending{border-color:var(--color-warning);border-left:3px solid var(--color-warning)}.pod-card--error{border-color:var(--color-error);border-left:3px solid var(--color-error)}.pod-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.pod-card-name{font-size:1.0625rem;font-weight:600}.pod-card-meta{display:flex;gap:1rem;font-size:.8125rem;color:var(--color-text-muted);margin-bottom:.75rem}.pod-card-tier{text-transform:capitalize}.pod-card-ssh{display:flex;align-items:center;gap:.5rem;background:var(--color-bg);border-radius:var(--radius-sm);padding:.5rem .75rem;margin-bottom:.75rem;overflow-x:auto}.pod-card-ssh code{font-family:var(--font-mono);font-size:.8125rem;flex:1;white-space:nowrap}.pod-card-ssh-section{margin-bottom:.75rem}.pod-card-ssh-section .pod-card-ssh{margin-bottom:.25rem}.pod-card-ssh-setup-toggle{font-size:.75rem;opacity:.7;margin-bottom:.5rem}.pod-card-ssh-setup{background:var(--color-bg);border-radius:var(--radius-sm);padding:.75rem;font-size:.8125rem}.pod-card-ssh-setup p{margin:.25rem 0}.pod-card-ssh-setup pre{background:var(--color-surface);padding:.5rem;border-radius:var(--radius-sm);font-size:.75rem;margin:.5rem 0;overflow-x:auto}.pod-card-actions{display:flex;gap:.5rem;flex-wrap:wrap}.pod-card-logs{margin-top:.75rem;background:var(--color-bg);border-radius:var(--radius-sm);padding:.75rem;font-family:var(--font-mono);font-size:.75rem;max-height:200px;overflow-y:auto;white-space:pre-wrap;word-break:break-all;color:var(--color-text-muted)}.status-badge{display:inline-flex;align-items:center;gap:.375rem;font-size:.75rem;font-weight:600;padding:.125rem .5rem;border-radius:999px;text-transform:uppercase;letter-spacing:.04em}.status-badge:before{content:"";width:6px;height:6px;border-radius:50%}.status-running{background:#4ade8026;color:var(--color-success)}.status-running:before{background:var(--color-success)}.status-starting,.status-pending{background:#fbbf2426;color:var(--color-warning)}.status-starting:before,.status-pending:before{background:var(--color-warning);animation:pulse 1.5s infinite}.status-stopped{background:#94a3b826;color:var(--color-text-muted)}.status-stopped:before{background:var(--color-text-muted)}.status-error{background:#f8717126;color:var(--color-error)}.status-error:before{background:var(--color-error)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1.5rem;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.modal-header h2{font-size:1.25rem}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.5rem}.form-group{margin-bottom:1rem}.form-group label,.form-group legend{display:block;font-size:.8125rem;font-weight:500;color:var(--color-text-muted);margin-bottom:.375rem}fieldset.form-group{border:1px solid var(--color-border);border-radius:var(--radius);padding:1rem}fieldset.form-group legend{padding:0 .5rem}input[type=text],input[type=url],select,textarea{width:100%;padding:.5rem .75rem;background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text);font-size:.875rem;font-family:inherit;transition:border-color .15s}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--color-primary)}textarea{resize:vertical;font-family:var(--font-mono);font-size:.8125rem}.settings h1{font-size:1.75rem;font-weight:700;margin-bottom:2rem;letter-spacing:-.02em}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.settings-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1.5rem;border-left:3px solid var(--color-border)}.settings-card:nth-child(1){border-left-color:var(--color-primary)}.settings-card:nth-child(2){border-left-color:#818cf8}.settings-card:nth-child(3){border-left-color:#a78bfa}.settings-card:nth-child(4){border-left-color:var(--color-success)}.settings-card:nth-child(5){border-left-color:var(--color-warning)}.settings-card h2{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-muted);margin-bottom:1rem}.settings-dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.25rem;font-size:.875rem}.settings-dl dt{color:var(--color-text-muted)}.settings-dl dd{font-weight:500}.capitalize{text-transform:capitalize}.ssh-key-list{list-style:none;margin-bottom:1rem}.ssh-key-item{display:flex;align-items:center;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid var(--color-border);gap:.5rem}.ssh-key-fingerprint{display:block;font-family:var(--font-mono);font-size:.75rem;color:var(--color-text-muted)}.ssh-key-form{margin-top:.5rem}.usage-meters{display:flex;flex-direction:column;gap:1.25rem}.usage-meter-header{display:flex;justify-content:space-between;align-items:baseline;font-size:.8125rem;margin-bottom:.5rem}.usage-meter-header span:first-child{font-weight:500}.usage-meter-header span:last-child{font-family:var(--font-mono);font-size:.8125rem;color:var(--color-text-muted)}.progress-bar{height:10px;background:var(--color-bg);border-radius:5px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,var(--color-primary),#818cf8);border-radius:5px;transition:width .3s}.usage-note{font-size:.75rem;color:var(--color-text-muted);margin-top:.375rem}.error-banner{background:#f8717126;color:var(--color-error);border:1px solid var(--color-error);border-radius:var(--radius-sm);padding:.5rem .75rem;font-size:.875rem;margin-bottom:1rem}.page-loading{display:flex;align-items:center;justify-content:center;min-height:50vh;color:var(--color-text-muted)}@media (max-width: 900px){.settings-grid{grid-template-columns:1fr}}@media (max-width: 640px){.app-header{flex-wrap:wrap;gap:.75rem}.app-main{padding:1rem}.pod-grid{grid-template-columns:1fr}.modal{margin:.5rem}}.billing-plans{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1rem 0}.billing-plan{background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius);padding:1rem}.billing-plan h3{font-size:1rem;font-weight:600;margin-bottom:.375rem;color:var(--color-primary)}.billing-plan p{font-size:.8125rem;color:var(--color-text-muted);margin-bottom:.75rem;line-height:1.4}.billing-current-plan{font-size:.9375rem;margin-bottom:1rem}.billing-current-plan strong{color:var(--color-primary)}.form-group{margin-bottom:.75rem}.form-group label{display:block;font-size:.8125rem;color:var(--color-text-muted);margin-bottom:.25rem;font-weight:500}.form-group input,.form-group textarea{width:100%;padding:.5rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-bg);color:var(--color-text);font-size:.875rem;font-family:inherit;transition:border-color .15s}.form-group input:focus,.form-group textarea:focus{outline:none;border-color:var(--color-primary)}.pod-card-export-modal{background:var(--color-surface);border-radius:var(--radius-sm);padding:1rem;margin-top:.75rem}.pod-card-export-modal h4{margin:0 0 .75rem}.pod-card-export-actions{display:flex;gap:.5rem;margin-top:.75rem}.pod-card-export-status{color:var(--color-success, #4ade80);font-size:.875rem;margin-top:.5rem}.form-hint{font-size:.75rem;color:var(--color-text-muted);margin-top:.25rem}.form-hint a{color:var(--color-primary)}.admin-cluster-status{display:flex;gap:1.5rem;margin-bottom:1.5rem;padding:1rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);border-left:3px solid var(--color-primary)}.admin-cluster-item{display:flex;flex-direction:column;gap:.25rem}.admin-cluster-label{font-size:.6875rem;text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-muted)}.admin-cluster-value{font-size:1.125rem;font-weight:600;font-family:var(--font-mono)}.admin-search{display:flex;gap:.5rem;margin-bottom:1.5rem}.admin-search input{flex:1;padding:.5rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-bg);color:var(--color-text);font-size:.875rem}.admin-table-wrapper{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.875rem}.admin-table th,.admin-table td{padding:.75rem;text-align:left;border-bottom:1px solid var(--color-border)}.admin-table th{color:var(--color-text-muted);font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.admin-table tr:hover{background:var(--color-surface)}.admin-pods-list{padding:.5rem 0}.admin-pod-item{display:flex;align-items:center;gap:1rem;padding:.375rem 0;font-size:.8125rem;border-bottom:1px solid var(--color-border)}.admin-pod-item:last-child{border-bottom:none}.admin-quota-cell{cursor:pointer}.admin-quota-value{border-bottom:1px dashed var(--color-text-muted)}.admin-quota-input{width:120px;padding:.25rem .5rem;border:1px solid var(--color-primary);border-radius:var(--radius-sm);background:var(--color-bg);color:var(--color-text);font-size:.875rem}.template-selector{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.template-option{display:flex;align-items:center;gap:.5rem;padding:.75rem;border:2px solid var(--color-border);border-radius:var(--radius);cursor:pointer;transition:border-color .15s,background .15s}.template-option:hover{border-color:var(--color-text-muted)}.template-option--active{border-color:var(--color-primary);background:#38bdf80f}.template-option input[type=radio]{display:none}.template-option-content{display:flex;flex-direction:column;gap:.125rem}.template-option-content strong{font-size:.875rem}.template-option-content span{font-size:.75rem;color:var(--color-text-muted)}.idle-pod-item{margin-bottom:.5rem}.idle-pod-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}.idle-pod-name{font-size:.8125rem;font-weight:500}.idle-pod-time{font-size:.75rem;color:var(--color-text-muted)}.advanced-toggle{margin-top:.25rem;font-size:.8125rem;color:var(--color-text-muted)}.form-group--advanced{border-color:var(--color-border);margin-top:.5rem}.pod-card-template{font-size:.75rem;padding:.125rem .5rem;border-radius:9999px;background:#38bdf81f;color:var(--color-primary)}.docs{max-width:1040px;margin:0 auto;padding:2rem 1rem}.docs h1{margin-bottom:1.5rem}.docs-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:2.5rem;align-items:start}.docs-toc{position:sticky;top:1.5rem;max-height:calc(100vh - 3rem);overflow-y:auto;padding-right:.5rem}.docs-toc nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.125rem}.docs-toc nav a{display:block;padding:.375rem .75rem;border-radius:var(--radius-sm);font-size:.875rem;color:var(--color-text-muted, #94a1b2);text-decoration:none;border-left:2px solid transparent;line-height:1.4}.docs-toc nav a:hover{color:var(--color-text, #e6e6e6);background:var(--color-surface)}.docs-toc nav a.docs-toc-active{color:var(--color-text, #e6e6e6);border-left-color:var(--color-primary, #4f8cff);background:var(--color-surface)}.docs-content{min-width:0;max-width:740px}.docs-section{margin-bottom:2rem;scroll-margin-top:1rem}@media (max-width: 800px){.docs-layout{grid-template-columns:1fr;gap:1rem}.docs-toc{position:static;max-height:none;overflow-y:visible;padding-right:0;border-bottom:1px solid var(--color-border);padding-bottom:1rem;margin-bottom:.5rem}.docs-toc nav ul{flex-direction:row;flex-wrap:wrap;gap:.25rem .5rem}.docs-toc nav a{border-left:none;border-bottom:2px solid transparent;padding:.25rem .5rem}.docs-toc nav a.docs-toc-active{border-left:none;border-bottom-color:var(--color-primary, #4f8cff)}}.docs-section h2{font-size:1.25rem;margin-bottom:.75rem;padding-bottom:.375rem;border-bottom:1px solid var(--color-border)}.docs-section h3{font-size:1rem;margin:1rem 0 .5rem}.docs-section p{line-height:1.6;margin-bottom:.5rem}.docs-section ol,.docs-section ul{padding-left:1.5rem;margin-bottom:.75rem;line-height:1.6}.docs-section li{margin-bottom:.375rem}.docs-section code{background:var(--color-surface);padding:.125rem .375rem;border-radius:var(--radius-sm);font-size:.8125rem}.docs-code{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:.75rem 1rem;margin:.5rem 0 1rem;overflow-x:auto;font-size:.8125rem;line-height:1.5}.terminal-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;flex-direction:column;background:#0a0a14}.terminal-topbar{display:flex;align-items:center;justify-content:space-between;height:38px;padding:0 12px;background:#16162a;border-bottom:1px solid #2a2a44;flex-shrink:0;-webkit-app-region:drag}.terminal-topbar-left{display:flex;align-items:center;gap:6px}.terminal-topbar-dot{width:10px;height:10px;border-radius:50%}.terminal-topbar-dot--red{background:#f87171}.terminal-topbar-dot--yellow{background:#fbbf24}.terminal-topbar-dot--green{background:#4ade80}.terminal-topbar-pod{margin-left:10px;font-size:.8125rem;font-weight:600;color:var(--color-text)}.terminal-topbar-title{font-size:.75rem;color:var(--color-text-muted);font-family:JetBrains Mono,Fira Code,monospace}.terminal-topbar-right{display:flex;align-items:center;gap:10px}.terminal-topbar-hint{font-size:.6875rem;color:var(--color-text-muted);background:#ffffff0f;padding:2px 8px;border-radius:4px;border:1px solid rgba(255,255,255,.08)}.terminal-close-btn{background:none;border:none;color:var(--color-text-muted);font-size:1.25rem;cursor:pointer;padding:0 4px;line-height:1;-webkit-app-region:no-drag}.terminal-close-btn:hover{color:var(--color-text)}.terminal-body{flex:1;padding:4px;overflow:hidden}.terminal-body .xterm{height:100%}.terminal-body .xterm-viewport{border-radius:0}.sessions-page{max-width:1200px;margin:0 auto;padding:2rem 1rem}.sessions-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.sessions-header h1{margin:0 0 .25rem}.sessions-header-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.sessions-scope-select{display:flex;align-items:center;gap:.5rem}.sessions-scope-select select{padding:.375rem .5rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-text);font-size:.875rem;max-width:240px}.empty-state{padding:3rem 1rem;text-align:center;border:1px dashed var(--color-border);border-radius:var(--radius);background:var(--color-surface)}.sessions-table{width:100%;border-collapse:collapse;font-size:.875rem}.sessions-table thead th{text-align:left;padding:.5rem .75rem;border-bottom:1px solid var(--color-border);font-weight:600;font-size:.75rem;letter-spacing:.05em;text-transform:uppercase;color:var(--color-text-muted, #94a1b2)}.sessions-table thead th.num,.sessions-table tbody td.num{text-align:right;font-variant-numeric:tabular-nums}.sessions-table tbody td{padding:.625rem .75rem;border-bottom:1px solid var(--color-border);vertical-align:middle}.sessions-row:hover{background:var(--color-surface)}.session-title{color:var(--color-text);text-decoration:none;font-weight:500}.session-title:hover{text-decoration:underline}.model-cell{max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;color:var(--color-text-muted)}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding-top:.75rem;border-top:1px solid var(--color-border)}.pagination-buttons{display:flex;gap:.5rem}.session-detail-page{max-width:1040px;margin:0 auto;padding:2rem 1rem}.session-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.5rem}.session-detail-header h1{margin:.25rem 0 .5rem;font-size:1.5rem;word-break:break-word}.back-link{font-size:.875rem;color:var(--color-text-muted);text-decoration:none}.back-link:hover{color:var(--color-text)}.session-detail-meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.8125rem;color:var(--color-text-muted)}.session-detail-meta code{background:var(--color-surface);padding:.0625rem .25rem;border-radius:var(--radius-sm);font-size:.75rem}.session-viewer{display:flex;flex-direction:column;gap:.75rem}.session-msg{border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);padding:.75rem 1rem}.session-msg-user{border-left:3px solid var(--color-primary, #4f8cff)}.session-msg-assistant{border-left:3px solid #b69dff}.session-msg-system{border-left:3px solid var(--color-text-muted);opacity:.85}.session-msg-header{display:flex;align-items:center;gap:.625rem;font-size:.75rem;color:var(--color-text-muted);margin-bottom:.5rem}.session-role-badge{font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:.0625rem .375rem;border-radius:var(--radius-sm);background:#7f7f7f26;font-size:.6875rem}.session-role-user{color:var(--color-primary, #4f8cff)}.session-role-assistant{color:#b69dff}.session-msg-time{font-variant-numeric:tabular-nums}.session-msg-index{margin-left:auto;opacity:.6}.session-msg-body{display:flex;flex-direction:column;gap:.5rem}.session-text{white-space:pre-wrap;word-wrap:break-word;line-height:1.55;font-size:.9375rem}.session-tool{border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-bg, transparent);font-size:.8125rem}.session-tool-header{display:flex;align-items:center;gap:.5rem;width:100%;background:none;border:none;text-align:left;padding:.4rem .625rem;color:inherit;cursor:pointer;font-family:var(--font-mono, ui-monospace, monospace);font-size:.8125rem}.session-tool-header:hover{background:var(--color-surface)}.session-tool-toggle{width:1ch;color:var(--color-text-muted)}.session-tool-name{word-break:break-all}.session-tool-body{border-top:1px solid var(--color-border);padding:.5rem .625rem;display:flex;flex-direction:column;gap:.5rem}.session-tool-section{display:flex;flex-direction:column;gap:.25rem}.session-tool-label{font-size:.6875rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted)}.session-tool-content{margin:0;background:var(--color-surface);padding:.5rem .625rem;border-radius:var(--radius-sm);font-size:.8125rem;line-height:1.5;overflow-x:auto;max-height:400px;overflow-y:auto}
