:root{font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}/**
 * 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}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#333}.loading{display:flex;align-items:center;justify-content:center;height:100vh;font-size:1.2rem;color:#666}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh}.login-card{background:#fff;padding:3rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;text-align:center;max-width:400px}.login-card h1{margin-bottom:.5rem}.login-card p{margin-bottom:2rem;color:#666}.github-login-btn{background:#24292e;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:background .2s}.github-login-btn:hover{background:#444}.dashboard-header{background:#fff;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e0e0}.dashboard-header h1{font-size:1.25rem}.user-info{display:flex;align-items:center;gap:.75rem}.avatar{width:32px;height:32px;border-radius:50%}.logout-btn{background:none;border:1px solid #ddd;padding:.4rem .8rem;border-radius:4px;cursor:pointer;font-size:.85rem}.logout-btn:hover{background:#f0f0f0}.dashboard-main{max-width:1060px;margin:2rem auto;padding:0 1rem}.dashboard-main h2{margin-bottom:1rem}.dashboard-section{margin-bottom:2.5rem}.placeholder{color:#999;padding:2rem;text-align:center;background:#fff;border-radius:8px;border:1px dashed #ddd}.terminal-page{display:flex;flex-direction:column;height:100vh;background:#1a1b26}.terminal-header{display:flex;align-items:center;gap:1rem;padding:.5rem 1rem;background:#16161e;border-bottom:1px solid #2f3349;flex-shrink:0}.back-link{color:#7aa2f7;text-decoration:none;font-size:.85rem}.back-link:hover{text-decoration:underline}.terminal-agent-name{color:#a9b1d6;font-weight:600;font-size:.9rem}.connection-status{margin-left:auto;display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#565f89}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.status-connecting .status-dot{background:#e0af68}.status-connected .status-dot{background:#9ece6a}.status-disconnected .status-dot{background:#f7768e}.terminal-container{flex:1;padding:4px;overflow:hidden}.terminal-container .xterm{height:100%}.terminal-overlay{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#000000d9;color:#f7768e;padding:1rem 2rem;border-radius:8px;font-size:.95rem;border:1px solid #2f3349;z-index:10}.error-text{color:#ef4444;padding:.5rem 0}.mono{font-family:SF Mono,Monaco,Consolas,monospace;font-size:.85rem}.agent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}.agent-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1rem;display:flex;flex-direction:column;gap:.5rem}.agent-card-header{display:flex;align-items:center;gap:.5rem}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}.agent-name{font-weight:600;font-family:SF Mono,Monaco,Consolas,monospace;font-size:.9rem}.agent-type{margin-left:auto;font-size:.75rem;background:#e8e8e8;padding:.15rem .5rem;border-radius:4px;color:#666}.agent-card-details{display:flex;gap:1rem;font-size:.85rem;color:#666}.restart-count{color:#f59e0b}.attach-btn{display:inline-block;margin-top:.25rem;padding:.35rem .75rem;font-size:.8rem;border:1px solid #d0d0d0;border-radius:4px;color:#333;text-decoration:none;text-align:center;transition:background .15s}.attach-btn:hover{background:#f0f0f0}.work-items-table{width:100%;background:#fff;border-collapse:collapse;border-radius:8px;overflow:hidden;border:1px solid #e0e0e0}.work-items-table th{background:#fafafa;text-align:left;padding:.6rem 1rem;font-size:.8rem;text-transform:uppercase;color:#888;font-weight:600;border-bottom:1px solid #e0e0e0}.work-items-table td{padding:.6rem 1rem;border-bottom:1px solid #f0f0f0;font-size:.9rem}.work-items-table tr:last-child td{border-bottom:none}.status-badge{display:inline-block;padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.status-available{background:#dbeafe;color:#1d4ed8}.status-claimed{background:#fef3c7;color:#92400e}.status-done{background:#d1fae5;color:#065f46}.refinery-panel{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.refinery-panel h3{font-size:.95rem;margin-bottom:.5rem}.refinery-queue,.refinery-history{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1rem}.refinery-list{list-style:none}.refinery-entry{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;font-size:.9rem}.refinery-entry+.refinery-entry{border-top:1px solid #f0f0f0}.refinery-icon{font-size:1rem;width:1.2rem;text-align:center}.refinery-entry.passed .refinery-icon{color:#22c55e}.refinery-entry.failed .refinery-icon{color:#ef4444}.refinery-entry.pending .refinery-icon{color:#f59e0b}.refinery-time{margin-left:auto;color:#999;font-size:.8rem}.setup-page{display:flex;align-items:center;justify-content:center;min-height:100vh}.setup-card{background:#fff;padding:3rem;border-radius:8px;box-shadow:0 2px 8px #0000001a;max-width:480px;width:100%}.setup-card h1{margin-bottom:.5rem;font-size:1.4rem}.setup-card>p{color:#666;margin-bottom:1.5rem;line-height:1.5}.setup-form{display:flex;flex-direction:column;gap:.75rem}.setup-form label{font-weight:600;font-size:.9rem}.setup-input{padding:.6rem .75rem;border:1px solid #ddd;border-radius:6px;font-size:.95rem;font-family:SF Mono,Monaco,Consolas,monospace;width:100%}.setup-input:focus{outline:none;border-color:#333;box-shadow:0 0 0 2px #0000000d}.setup-submit-btn{background:#24292e;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:1rem;cursor:pointer;transition:background .2s;margin-top:.5rem}.setup-submit-btn:hover:not(:disabled){background:#444}.setup-submit-btn:disabled{opacity:.5;cursor:not-allowed}.setup-spinner{width:40px;height:40px;border:3px solid #e0e0e0;border-top-color:#333;border-radius:50%;animation:spin .8s linear infinite;margin:1.5rem auto}@keyframes spin{to{transform:rotate(360deg)}}.setup-status{text-align:center;color:#999;font-size:.9rem}.settings-main{max-width:640px;margin:2rem auto;padding:0 1rem}.settings-main>h2{margin-bottom:1.5rem}.settings-section{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1.25rem;margin-bottom:1rem}.settings-section h3{font-size:1rem;margin-bottom:.5rem}.settings-description{color:#666;font-size:.9rem;margin-bottom:.75rem;line-height:1.4}.settings-key-display{background:#fafafa;border:1px solid #e0e0e0;border-radius:4px;padding:.5rem .75rem;margin-bottom:.75rem}.settings-key-form{display:flex;gap:.5rem}.settings-key-form .setup-input{flex:1}.settings-btn{background:#24292e;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.85rem;cursor:pointer;transition:background .2s;white-space:nowrap}.settings-btn:hover:not(:disabled){background:#444}.settings-btn:disabled{opacity:.5;cursor:not-allowed}.settings-btn-secondary{background:#fff;color:#333;border:1px solid #ddd;margin-top:.75rem}.settings-btn-secondary:hover:not(:disabled){background:#f0f0f0}.settings-btn-danger{background:#fff;color:#ef4444;border:1px solid #fca5a5;margin-top:.75rem}.settings-btn-danger:hover:not(:disabled){background:#fef2f2}.settings-plan-info{display:flex;flex-direction:column;gap:.5rem}.settings-plan-row{display:flex;justify-content:space-between;align-items:center;padding:.25rem 0}.settings-label{color:#666;font-size:.9rem}.settings-value{font-weight:600;font-size:.9rem}.settings-danger{border-color:#fca5a5}.settings-danger h3{color:#ef4444}.settings-back-link{color:inherit;text-decoration:none}.settings-back-link:hover{opacity:.7}.status-running{background:#d1fae5;color:#065f46}.status-suspended{background:#fef3c7;color:#92400e}.status-provisioning{background:#dbeafe;color:#1d4ed8}
