:root{--bg-color: #08090d;--bg-surface: #101116;--bg-elevated: #17181f;--bg-surface-hover: #20212a;--border-color: #292b35;--border-strong: #383b48;--text-primary: #f7f7fa;--text-secondary: #9295a3;--text-muted: #626572;--brand-pink: #d91b5c;--brand-purple: #a21caf;--brand-blue: #6366f1;--brand-gradient: linear-gradient(100deg, #d91b5c 0%, #a21caf 48%, #6366f1 100%);--status-green: #34d399;--status-red: #fb7185;--app-viewport-height: 100dvh;color-scheme:dark}html.light{--bg-color: #f5f6fa;--bg-surface: #ffffff;--bg-elevated: #f9f9fc;--bg-surface-hover: #eff0f6;--border-color: #dfe1e9;--border-strong: #c9ccd8;--text-primary: #171821;--text-secondary: #656979;--text-muted: #9296a5;color-scheme:light}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body,#root{width:100%;height:100%}html,body{overflow:hidden;background:var(--bg-color);color:var(--text-primary);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input{font:inherit}button{color:inherit}.login-container{position:relative;display:flex;min-height:100vh;min-height:100dvh;align-items:center;justify-content:center;overflow:auto;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:radial-gradient(circle at 15% 18%,rgba(217,27,92,.14),transparent 30%),radial-gradient(circle at 86% 78%,rgba(99,102,241,.14),transparent 34%),var(--bg-color)}.login-card-simple{width:min(100%,410px);padding:36px 32px 34px;border:1px solid var(--border-color);border-radius:22px;background:color-mix(in srgb,var(--bg-surface) 95%,transparent);box-shadow:0 28px 70px #00000059;text-align:center}.login-logo{display:flex;justify-content:center;margin-bottom:18px}.login-logo img{width:190px;height:66px;border-radius:10px;object-fit:contain}.login-title{margin-bottom:28px;color:var(--text-primary);font-size:27px;font-weight:750;letter-spacing:-.04em}.simple-login-form{display:flex;flex-direction:column;text-align:left}.floating-group{position:relative;width:100%;margin-bottom:17px}.floating-input{width:100%;min-height:54px;padding:17px 16px 13px;border:1px solid var(--border-color);border-radius:14px;outline:0;background:var(--bg-elevated);color:var(--text-primary);font-size:15px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.floating-input:hover{border-color:var(--border-strong)}.floating-input:focus{border-color:var(--brand-purple);box-shadow:0 0 0 3px #a21caf24}.password-group .floating-input{padding-right:50px}.floating-label{position:absolute;top:50%;left:13px;padding:0 5px;border-radius:5px;color:var(--text-secondary);background:transparent;font-size:14px;pointer-events:none;transform:translateY(-50%);transform-origin:left top;transition:all .16s ease}.floating-group:focus-within .floating-label,.floating-group.has-value .floating-label{top:0;color:var(--brand-purple);background:var(--bg-surface);font-size:12px;font-weight:650;transform:translateY(-50%)}.password-toggle-btn{position:absolute;top:50%;right:12px;display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);cursor:pointer;transform:translateY(-50%)}.password-toggle-btn:hover{background:var(--bg-surface-hover);color:var(--text-primary)}.btn-gradient-continue,.gradient-action-btn{border:0;background:var(--brand-gradient);color:#fff;box-shadow:0 10px 24px #a21caf38;cursor:pointer;font-weight:700;transition:transform .14s ease,filter .14s ease,opacity .14s ease}.btn-gradient-continue{width:100%;min-height:50px;margin-top:3px;padding:13px 20px;border-radius:14px;font-size:15px}.btn-gradient-continue:hover:not(:disabled),.gradient-action-btn:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.btn-gradient-continue:disabled,.gradient-action-btn:disabled{cursor:not-allowed;opacity:.55}.login-error-banner{margin-bottom:14px;padding:10px 13px;border:1px solid rgba(251,113,133,.45);border-radius:10px;background:#fb71851a;color:var(--status-red);font-size:13px;line-height:1.45}.theme-toggle-btn{position:fixed;z-index:20;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));display:grid;width:44px;height:44px;place-items:center;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-surface);color:var(--text-primary);box-shadow:0 10px 30px #0000002e;cursor:pointer}.app-shell{display:flex;width:100%;height:var(--app-viewport-height, 100dvh);min-height:0;flex-direction:column;overflow:hidden;background:var(--bg-color);padding-top:env(safe-area-inset-top,0px)}.app-header{z-index:30;display:grid;min-height:60px;flex:0 0 60px;grid-template-columns:minmax(250px,1fr) auto minmax(250px,1fr);align-items:center;gap:16px;padding:0 16px;border-bottom:1px solid var(--border-color);background:color-mix(in srgb,var(--bg-surface) 96%,transparent)}.header-left,.header-right,.header-center,.header-product,.status-pill,.workspace-card,.sidebar-user,.terminal-panel-title,.terminal-panel-meta,.workspace-breadcrumb{display:flex;align-items:center}.header-left{min-width:0;gap:12px}.header-logo{width:76px;height:30px;border-radius:5px;object-fit:contain}.header-product{min-width:0;flex-direction:column;align-items:flex-start;line-height:1.1}.header-product strong{font-size:14px;letter-spacing:-.02em}.header-product span{margin-top:3px;color:var(--text-muted);font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.header-center{justify-content:center;gap:4px;padding:4px;border:1px solid var(--border-color);border-radius:11px;background:var(--bg-color)}.workspace-view-tab,.workspace-session-count{padding:7px 14px;border-radius:8px;font-size:12px;font-weight:650}.workspace-view-tab{border:0;background:transparent;color:var(--text-muted);cursor:pointer}.workspace-view-tab:hover{color:var(--text-primary)}.workspace-view-tab-active{background:linear-gradient(110deg,#d91b5c2e,#6366f12e);color:var(--text-primary);box-shadow:inset 0 0 0 1px #a21caf47}.workspace-session-count{color:var(--text-muted)}.header-right{min-width:0;justify-content:flex-end;gap:8px}.status-pill{gap:7px;padding:7px 10px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-color);color:var(--text-secondary);font-size:11px;font-weight:650;white-space:nowrap}.theme-toggle-header-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-color);color:var(--text-secondary);font-size:11px;font-weight:650;white-space:nowrap;cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.theme-toggle-header-btn:hover{border-color:var(--brand-purple);color:var(--text-primary);background:var(--bg-surface)}.theme-toggle-header-icon{font-size:13px;line-height:1}@media(max-width:768px){.theme-toggle-header-btn{width:30px;height:30px;padding:0;justify-content:center;border-radius:50%}.theme-toggle-header-btn .theme-toggle-header-text{display:none}}.pill-indicator,.status-dot,.session-presence{display:inline-block;border-radius:50%}.pill-indicator{width:7px;height:7px}.ind-writer,.ind-readonly{background:var(--status-green);box-shadow:0 0 10px #34d399a6}.ind-reconnecting{background:var(--brand-purple);animation:pulse 1.4s ease-in-out infinite}.ind-disconnected{background:var(--status-red)}@keyframes pulse{50%{opacity:.3}}.header-icon-btn,.header-action-btn,.mobile-menu-btn,.session-add-btn{border:1px solid var(--border-color);background:var(--bg-elevated);cursor:pointer;transition:border-color .14s ease,background .14s ease,transform .14s ease}.header-icon-btn:hover,.header-action-btn:hover,.mobile-menu-btn:hover,.session-add-btn:hover{border-color:var(--border-strong);background:var(--bg-surface-hover)}.header-icon-btn{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:9px}.header-icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.header-action-btn{min-height:36px;padding:0 12px;border-radius:9px;color:var(--text-secondary);font-size:11px;font-weight:700}.header-logout-btn:hover{border-color:#fb718559;color:var(--status-red)}.sidebar-toggle-btn{display:flex;width:36px;height:36px;flex:0 0 36px;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:9px;border:1px solid var(--border-color);background:var(--bg-elevated);cursor:pointer;color:var(--text-primary);transition:border-color .14s ease,background .14s ease}.sidebar-toggle-btn:hover{border-color:var(--border-strong);background:var(--bg-surface-hover)}.sidebar-toggle-btn span{width:16px;height:1.5px;border-radius:999px;background:currentColor}.sidebar-collapsed .session-sidebar{display:none!important}@media(min-width:761px){.sidebar-collapsed .app-header{grid-template-columns:auto 1fr auto}}.workspace-body{position:relative;display:flex;min-width:0;min-height:0;flex:1;overflow:hidden}.session-sidebar{z-index:20;display:flex;width:260px;min-width:260px;min-height:0;flex-direction:column;border-right:1px solid var(--border-color);background:var(--bg-surface)}.sidebar-workspace{padding:20px 14px 14px}.sidebar-label,.modal-eyebrow{color:var(--text-muted);font-size:10px;font-weight:800;letter-spacing:.13em}.workspace-card{gap:11px;margin-top:9px;padding:12px;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-elevated)}.workspace-mark{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:9px;background:var(--brand-gradient);color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:800}.workspace-card-logo{width:32px;height:32px;border-radius:8px;object-fit:contain;flex-shrink:0}.workspace-card>div{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px}.workspace-card strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.workspace-state{font-size:9px;font-weight:800;letter-spacing:.08em}.state-running,.vm-running{color:var(--status-green)}.state-stopped,.vm-stopped{color:var(--status-red)}.sidebar-sessions{display:flex;min-height:0;flex:1;flex-direction:column;padding:10px 10px 14px}.sidebar-section-header{display:flex;align-items:center;justify-content:space-between;padding:0 4px 8px}.session-add-btn{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;color:var(--text-primary);font-size:18px;line-height:1}.session-list{display:flex;min-height:0;flex-direction:column;gap:5px;overflow-y:auto;scrollbar-color:var(--border-strong) transparent;scrollbar-width:thin}.session-item{display:flex;width:100%;min-width:0;align-items:center;gap:10px;padding:10px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--text-secondary);text-align:left;cursor:pointer}.session-item:hover{background:var(--bg-elevated);color:var(--text-primary)}.session-item-active{border-color:#a21caf61;background:linear-gradient(110deg,#d91b5c21,#6366f11a);color:var(--text-primary)}.session-index{color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}.session-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.session-copy strong,.session-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-copy strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.session-copy small{color:var(--text-muted);font-size:9px}.session-presence{width:7px;height:7px;flex:0 0 7px;background:var(--brand-blue);opacity:.45}.session-item-actions{display:flex;align-items:center;gap:6px}.session-action-btn,.terminal-rename-btn{display:grid;place-items:center;border:0;background:transparent;color:var(--text-muted);cursor:pointer;border-radius:6px;transition:color .14s ease,background .14s ease}.session-action-btn{width:22px;height:22px;opacity:.6}.session-item:hover .session-action-btn{opacity:1}.session-action-btn:hover,.terminal-rename-btn:hover{color:var(--text-primary);background:var(--bg-surface-hover)}.session-action-btn svg,.terminal-rename-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.terminal-rename-btn{width:24px;height:24px;margin-left:2px}.session-action-danger:hover{border-color:#fb718573!important;color:var(--status-red)!important;background:#fb71851f!important}.presence-active{background:var(--status-green);box-shadow:0 0 9px #34d3998c;opacity:1}.session-persistence-note{margin:13px 4px 0;color:var(--text-muted);font-size:10px;line-height:1.5}.sidebar-user-container{position:relative;padding:8px 12px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--border-color);background:var(--bg-surface)}.sidebar-user-btn{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;border-radius:12px;border:1px solid var(--border-color);background:var(--bg-surface-hover);cursor:pointer;text-align:left;transition:all .15s ease;color:var(--text-primary)}.sidebar-user-btn:hover,.sidebar-user-btn.sidebar-user-btn-active{background:var(--bg-hover);border-color:var(--border-strong)}.user-avatar-teal{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#00897b;color:#fff;font-size:14px;font-weight:700;box-shadow:0 1px 3px #0003}.sidebar-user-info{display:flex;flex-direction:column;gap:1px;overflow:hidden;flex:1;min-width:0}.sidebar-user-info strong{font-size:12px;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user-info small{font-size:10px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-menu-caret{font-size:8px;color:var(--text-secondary);opacity:.6;transition:transform .15s ease}.sidebar-user-btn-active .user-menu-caret{transform:rotate(180deg)}.sidebar-user-menu{position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;z-index:100;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:14px;box-shadow:0 10px 30px #00000038;padding:4px 0 0;display:flex;flex-direction:column;overflow:hidden;animation:fadeInUp .15s ease}.user-menu-header{padding:12px 16px 8px}.user-menu-email{font-size:13px;font-weight:500;color:var(--text-primary);word-break:break-all}.user-menu-divider{height:1px;background:var(--border-color);margin:4px 0}.user-menu-item{display:flex;align-items:center;gap:12px;padding:10px 16px;border:none;background:transparent;color:var(--text-primary);font-size:13px;font-weight:400;cursor:pointer;width:100%;text-align:left;transition:background .1s ease}.user-menu-item:hover{background:var(--bg-surface-hover)}.user-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;color:var(--text-secondary);font-size:14px}.user-menu-logout{color:#ef4444!important;background:#ef444414!important;border-top:1px solid rgba(239,68,68,.12);padding:11px 16px!important;margin-top:2px}.user-menu-logout:hover{background:#ef444424!important}.user-menu-logout .user-menu-icon{color:#ef4444!important}.sidebar-backdrop{display:none}.app-main{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;gap:12px;overflow:hidden;padding:12px;background:radial-gradient(circle at 80% 0%,rgba(99,102,241,.06),transparent 28%),var(--bg-color)}.workspace-toolbar{display:flex;min-height:38px;flex:0 0 38px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px}.workspace-toolbar-actions{display:flex;min-width:0;flex:0 0 auto;align-items:center;gap:7px}.workspace-breadcrumb{min-width:0;gap:8px;color:var(--text-muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.workspace-breadcrumb strong{overflow:hidden;color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap}.gradient-action-btn{display:inline-flex;min-height:34px;flex:0 0 auto;align-items:center;gap:7px;padding:0 13px;border-radius:9px;font-size:11px}.workspace-secondary-action{min-height:34px;padding:0 13px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-elevated);color:var(--text-secondary);font-size:11px;font-weight:700;cursor:pointer}.workspace-secondary-action:hover{border-color:var(--border-strong);color:var(--text-primary)}.gradient-action-btn span{font-size:16px;font-weight:500}.terminal-panel{position:relative;display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;overflow:hidden;border:1px solid var(--border-color);border-radius:14px;background:var(--bg-surface);box-shadow:0 18px 55px #00000038}.terminal-panel:before{display:none!important}.mac-terminal-titlebar{display:flex;align-items:center;min-height:32px;height:32px;flex:0 0 32px;padding:0 13px;border-top-left-radius:12px;border-top-right-radius:12px;border-bottom:1px solid var(--border-color);background:linear-gradient(180deg,#2a2b30,#202126);-webkit-user-select:none;user-select:none;box-shadow:0 1px 3px #00000040}html.light .mac-terminal-titlebar{background:linear-gradient(180deg,#ececef,#e1e1e4);border-bottom:1px solid #d1d1d6;box-shadow:0 1px 2px #0000000f}.mac-traffic-lights{display:flex;align-items:center;gap:8px}.mac-traffic-dot{position:relative;width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.16);padding:0;cursor:pointer;display:grid;place-items:center;outline:none;box-shadow:inset 0 1px #ffffff40;transition:filter .12s ease,transform .12s ease}.mac-traffic-dot:active{filter:brightness(.85);transform:scale(.94)}.mac-dot-close{background:#ff5f56;border-color:#e0443e}.mac-dot-minimize{background:#ffbd2e;border-color:#dea123}.mac-dot-maximize{background:#27c93f;border-color:#1aab29}.mac-traffic-icon{display:none;font-size:9px;font-weight:800;line-height:1;color:#000000a6}.mac-traffic-lights:hover .mac-traffic-icon{display:block}.mac-titlebar-center{display:flex;justify-content:center;align-items:center;min-width:0}.mac-titlebar-title-btn{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#e5e5e7;font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro,Segoe UI,sans-serif;font-size:12.5px;font-weight:600;letter-spacing:-.01em;cursor:pointer;padding:3px 8px;border-radius:6px;transition:background .14s ease,color .14s ease}html.light .mac-titlebar-title-btn{color:#333336}.mac-titlebar-title-btn:hover{background:#ffffff14}html.light .mac-titlebar-title-btn:hover{background:#0000000f}.mac-titlebar-separator{color:#8e8e93;font-weight:400;font-size:11px}.mac-titlebar-shell,.mac-titlebar-dims{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro,Segoe UI,sans-serif}.mac-titlebar-dims{color:#8e8e93;font-weight:500}html.light .mac-titlebar-dims{color:#636366}.mac-titlebar-meta{display:flex;align-items:center;gap:8px}.mac-rename-icon-btn{display:grid;place-items:center;width:24px;height:24px;border:0;background:transparent;color:#8e8e93;border-radius:5px;cursor:pointer}.mac-rename-icon-btn:hover{background:#ffffff14;color:var(--text-primary)}html.light .mac-rename-icon-btn:hover{background:#0000000f;color:var(--text-primary)}.mac-rename-icon-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.terminal-panel.terminal-maximized{position:fixed!important;z-index:900!important;top:0!important;left:0!important;right:0!important;bottom:0!important;border-radius:0!important;box-shadow:none!important}.terminal-panel-header{display:flex;min-height:43px;flex:0 0 43px;align-items:center;justify-content:space-between;gap:12px;padding:0 13px;border-bottom:1px solid var(--border-color);background:var(--bg-elevated)}.terminal-panel-title,.terminal-panel-meta{min-width:0;gap:10px}.terminal-panel-title strong{overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.terminal-window-mark{display:flex;gap:4px}.terminal-window-mark i{width:6px;height:6px;border-radius:50%;background:var(--brand-pink)}.terminal-window-mark i:nth-child(2){background:var(--brand-purple)}.terminal-window-mark i:nth-child(3){background:var(--brand-blue)}.background-chip,.vm-badge{padding:4px 7px;border:1px solid var(--border-color);border-radius:999px;background:var(--bg-color);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.background-chip{color:var(--text-muted)}.terminal-panel-body{display:flex;min-width:0;min-height:0;flex:1;overflow:hidden}.terminal-container{position:relative;display:flex;width:100%;min-width:0;min-height:0;flex:1;flex-direction:column;overflow:hidden;background:var(--bg-surface)}.terminal-status-banner{display:flex;min-height:28px;flex:0 0 28px;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border-bottom:1px solid var(--border-color);background:var(--bg-surface);color:var(--text-secondary);font-size:10px}.terminal-status-left{display:flex;align-items:center;gap:7px;min-width:0}.terminal-status-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}.terminal-ctrl-btn{display:inline-flex;align-items:center;height:20px;padding:0 8px;border:1px solid var(--border-color);border-radius:6px;background:var(--bg-elevated);color:var(--text-secondary);font-size:9px;font-weight:700;cursor:pointer}.terminal-ctrl-btn:hover:not(:disabled){border-color:var(--brand-purple);color:var(--text-primary)}.terminal-ctrl-btn:disabled{opacity:.4;cursor:not-allowed}.terminal-take-control-btn{background:var(--brand-purple);color:#fff;border-color:var(--brand-purple);cursor:pointer;transition:all .15s ease;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.terminal-take-control-btn:hover{filter:brightness(1.15);box-shadow:0 2px 8px #a21caf66}.terminal-in-control-btn{background:#22c55e26;color:var(--status-green);border-color:#22c55e59;cursor:pointer;transition:all .15s ease;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.terminal-in-control-btn:hover{background:#22c55e40;border-color:var(--status-green)}.terminal-zoom-group{display:inline-flex;align-items:center;height:20px;border:1px solid var(--border-color);border-radius:6px;background:var(--bg-elevated);overflow:hidden}.terminal-zoom-btn,.terminal-zoom-indicator{display:grid;place-items:center;height:100%;border:0;background:transparent;color:var(--text-secondary);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px;font-weight:700;cursor:pointer}.terminal-zoom-btn{width:18px;font-size:11px}.terminal-zoom-btn:hover:not(:disabled){background:var(--bg-surface-hover);color:var(--text-primary)}.terminal-zoom-indicator{padding:0 5px;border-left:1px solid var(--border-color);border-right:1px solid var(--border-color)}.terminal-context-menu{position:fixed;background:#1e1e24;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:5px;min-width:160px;box-shadow:0 8px 24px #00000080,0 2px 6px #0000004d;z-index:9999;-webkit-user-select:none;user-select:none;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}html.light .terminal-context-menu{background:#fff;border:1px solid rgba(0,0,0,.15);box-shadow:0 8px 24px #00000026,0 2px 6px #00000014}.terminal-context-menu-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 10px;background:transparent;border:none;border-radius:5px;color:#f4f4f5;font-size:13px;font-family:inherit;cursor:pointer;transition:background .12s ease,color .12s ease;text-align:left}html.light .terminal-context-menu-item{color:#18181b}.terminal-context-menu-item:hover:not(:disabled){background:#ffffff1a;color:#fff}html.light .terminal-context-menu-item:hover:not(:disabled){background:#0000000f;color:#000}.terminal-context-menu-item:disabled{opacity:.35;cursor:not-allowed}.terminal-context-menu-label{display:inline-flex;align-items:center;gap:8px}.terminal-context-menu-label svg{width:14px;height:14px;opacity:.8}.terminal-context-menu-shortcut{font-size:11px;color:#a1a1aa;margin-left:16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}html.light .terminal-context-menu-shortcut{color:#71717a}.status-dot{width:6px;height:6px;background:var(--status-red)}.status-connected .status-dot{background:var(--status-green);box-shadow:0 0 9px #34d39980}.xterm-viewport-wrapper{width:100%;min-width:0;min-height:0;flex:1;overflow-x:auto;overflow-y:hidden;padding:0!important;-webkit-user-select:text;user-select:text;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.xterm{padding:8px 12px 28px!important;box-sizing:border-box;height:100%}.xterm,.xterm-viewport,.xterm-screen,.xterm-rows,.xterm-cursor-layer,.xterm-helper-textarea{touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}.xterm,.xterm-viewport,.xterm-screen{background:#09090b!important}html.light .xterm,html.light .xterm-viewport,html.light .xterm-screen{background:#fff!important}.xterm-viewport{overflow-x:auto!important;overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:var(--border-strong) transparent!important;-webkit-overflow-scrolling:touch}.xterm-viewport::-webkit-scrollbar{width:8px!important}.xterm-viewport::-webkit-scrollbar-track{background:transparent!important}.xterm-viewport::-webkit-scrollbar-thumb{background:var(--border-strong)!important;border-radius:4px!important}.xterm-viewport::-webkit-scrollbar-thumb:hover{background:var(--brand-purple)!important}.xterm-helper-textarea{position:absolute!important;z-index:-10!important;top:-9999px!important;left:-9999px!important;width:0!important;height:0!important;overflow:hidden!important;border:0!important;outline:0!important;background:transparent!important;color:transparent!important;opacity:0!important;pointer-events:none!important;resize:none!important}.terminal-empty-state{display:flex;width:100%;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--text-muted);text-align:center}.terminal-empty-state>span{background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;color:transparent;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:30px;font-weight:800}.terminal-empty-state strong{color:var(--text-primary);font-size:14px}.terminal-empty-state p{font-size:11px}.mobile-toolbar{display:flex;min-width:0;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;overflow-x:auto;padding:7px 8px max(7px,env(safe-area-inset-bottom));border-top:1px solid var(--border-color);background:var(--bg-elevated);scrollbar-width:none}@media(min-width:769px){.mobile-toolbar{display:none!important}}.mobile-toolbar::-webkit-scrollbar,.toolbar-keys::-webkit-scrollbar{display:none}.toolbar-keys,.toolbar-actions{display:flex;flex:0 0 auto;align-items:center;gap:5px}.toolbar-keys{overflow-x:visible}.toolbar-btn,.toolbar-action-btn{min-height:34px;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-surface);color:var(--text-primary);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.xterm .xterm-helper-textarea{touch-action:manipulation!important}.toolbar-btn{min-width:36px;padding:0 9px}.toolbar-action-btn{padding:0 10px}.toolbar-btn:active,.toolbar-btn-active{border-color:var(--brand-purple);background:#a21caf2e}.toolbar-action-btn:disabled{cursor:not-allowed;opacity:.4}.action-interrupt{border-color:#fb718559;color:var(--status-red)}.action-disconnect{border-color:#a21caf66;color:#e879f9}.action-power{border-color:#6366f16b;color:#a5b4fc}.repo-workbench{position:relative;display:flex;min-width:0;min-height:0;flex:1;overflow:hidden;border:1px solid var(--border-color);border-radius:14px;background:var(--bg-surface);box-shadow:0 18px 55px #00000038}.repo-workbench:before{position:absolute;z-index:4;top:0;right:0;left:0;height:2px;background:var(--brand-gradient);content:""}.repo-editor-pane{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column}.repo-editor-header{display:flex;min-height:52px;flex:0 0 52px;align-items:center;gap:12px;padding:0 15px;border-bottom:1px solid var(--border-color);background:var(--bg-elevated)}.repo-editor-title{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}.repo-editor-title strong,.repo-editor-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.repo-editor-title strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.repo-editor-title span{color:var(--text-muted);font-size:9px}.repo-file-size{flex:0 0 auto;padding:4px 7px;border:1px solid var(--border-color);border-radius:999px;color:var(--text-muted);font-size:9px}.repo-editor-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.repo-unsaved-badge{padding:2px 7px;border-radius:6px;background:#f59e0b26;border:1px solid rgba(245,158,11,.35);color:#f59e0b;font-size:9px;font-weight:700}.repo-save-status{color:var(--status-green);font-size:10px;font-weight:650}.repo-action-btn,.repo-save-btn{min-height:28px;padding:0 11px;border-radius:7px;font-size:11px;font-weight:700;cursor:pointer;transition:all .14s ease}.repo-action-btn{border:1px solid var(--border-color);background:var(--bg-elevated);color:var(--text-secondary)}.repo-action-btn:hover{border-color:var(--border-strong);color:var(--text-primary)}.repo-action-btn-active{border-color:#a21caf66;background:#a21caf24;color:var(--text-primary)}.repo-lang-badge{padding:2px 7px;border-radius:6px;background:#6366f126;border:1px solid rgba(99,102,241,.35);color:var(--brand-blue);font-size:9px;font-weight:800;letter-spacing:.05em}.syn-keyword{color:#d946ef;font-weight:600}.syn-string{color:#34d399}.syn-number{color:#fb923c}.syn-comment{color:#71717a;font-style:italic}.syn-type{color:#22d3ee}.syn-function{color:#818cf8}.syn-variable{color:#f472b6}.syn-property{color:#60a5fa}html.light .syn-keyword{color:#a21caf;font-weight:600}html.light .syn-string{color:#059669}html.light .syn-number{color:#ea580c}html.light .syn-comment{color:#71717a;font-style:italic}html.light .syn-type{color:#0891b2}html.light .syn-function{color:#4f46e5}html.light .syn-variable{color:#db2777}html.light .syn-property{color:#2563eb}.repo-save-btn{border:0;background:var(--brand-gradient);color:#fff;box-shadow:0 4px 14px #a21caf38}.repo-save-btn:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}.repo-edit-container{display:flex;width:100%;min-width:0;min-height:0;flex:1;overflow:hidden;background:var(--bg-color)}.repo-edit-lines{display:flex;flex-direction:column;width:58px;min-width:58px;padding:10px 0;overflow:hidden;-webkit-user-select:none;user-select:none}.repo-code-textarea{flex:1;min-width:0;min-height:0;margin:0;padding:10px 14px;border:0;outline:0;background:transparent;color:var(--text-primary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:21px;white-space:pre;overflow:auto;resize:none;-moz-tab-size:2;tab-size:2}.repo-mobile-tree-button{display:none;min-height:32px;padding:0 10px;border:1px solid rgba(162,28,175,.4);border-radius:8px;background:#a21caf1f;color:var(--text-primary);font-size:10px;font-weight:700}.repo-editor-body{position:relative;display:flex;min-width:0;min-height:0;flex:1;overflow:hidden;background:var(--bg-color)}.repo-code-scroll{width:100%;min-width:0;min-height:0;overflow:auto;padding:10px 0 24px;scrollbar-color:var(--border-strong) transparent;scrollbar-width:thin}.repo-code-lines{width:max-content;min-width:100%}.repo-code-line{display:grid;min-height:21px;grid-template-columns:58px minmax(max-content,1fr);align-items:start;padding-right:24px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:21px}.repo-code-line:hover{background:#6366f10f}.repo-line-number{padding-right:15px;border-right:1px solid var(--border-color);color:var(--text-muted);text-align:right;-webkit-user-select:none;user-select:none}.repo-code-line code{min-width:0;padding-left:17px;color:var(--text-primary);white-space:pre}.repo-preview-limit{margin:14px 18px;padding:10px 12px;border:1px solid rgba(99,102,241,.3);border-radius:9px;color:var(--text-secondary);font-size:11px}.repo-state{display:flex;width:min(100%,520px);margin:auto;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:24px;color:var(--text-muted);font-size:11px;line-height:1.5;text-align:center}.repo-state strong{color:var(--text-primary);font-size:14px}.repo-state-error{color:var(--status-red)}.repo-empty-mark{background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;color:transparent;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:28px;font-weight:800}.repo-spinner{width:20px;height:20px;border:2px solid var(--border-strong);border-top-color:var(--brand-purple);border-radius:50%;animation:repo-spin .7s linear infinite}@keyframes repo-spin{to{transform:rotate(360deg)}}.repo-tree-pane{z-index:3;display:flex;width:320px;min-width:320px;min-height:0;flex-direction:column;border-left:1px solid var(--border-color);background:var(--bg-surface)}.repo-tree-header{display:flex;min-height:74px;flex:0 0 74px;align-items:center;justify-content:space-between;gap:10px;padding:14px}.repo-tree-header>div:first-child{display:flex;min-width:0;flex-direction:column;gap:5px}.repo-tree-header strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.repo-tree-actions{display:flex;flex:0 0 auto;gap:5px}.repo-tree-actions button{display:grid;width:30px;height:30px;place-items:center;border:1px solid var(--border-color);border-radius:8px;background:var(--bg-elevated);color:var(--text-secondary);cursor:pointer}.repo-tree-actions button:hover{border-color:var(--border-strong);color:var(--text-primary)}.repo-add-folder-btn{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;height:30px!important;padding:0 10px!important;border-radius:8px;background:var(--bg-elevated);border:1px solid var(--border-color);color:var(--text-primary);font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap;gap:4px}.repo-add-folder-btn:hover{border-color:var(--brand-purple);color:#fff;background:#a21caf2e}.repo-scope-bar{display:flex;flex-direction:column;gap:6px;padding:0 12px 10px;border-bottom:1px solid var(--border-color);margin-bottom:8px}.repo-scope-list{display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.repo-scope-list::-webkit-scrollbar{display:none}.repo-scope-chip,.repo-scope-chip-group{display:inline-flex;align-items:center;height:22px;border-radius:6px;border:1px solid var(--border-color);background:var(--bg-elevated);color:var(--text-secondary);font-size:10px;font-weight:700;white-space:nowrap}.repo-scope-chip{padding:0 8px;cursor:pointer}.repo-scope-chip:hover,.repo-scope-chip-group:hover{border-color:var(--border-strong);color:var(--text-primary)}.repo-scope-chip-active{border-color:var(--brand-purple);background:#a21caf29;color:var(--text-primary)}.repo-scope-chip-name{border:0;background:transparent;color:inherit;padding:0 6px 0 8px;font:inherit;cursor:pointer}.repo-scope-chip-remove{display:grid;place-items:center;width:16px;height:100%;border:0;border-left:1px solid var(--border-color);background:transparent;color:var(--text-muted);font-size:12px;cursor:pointer;padding:0}.repo-scope-chip-remove:hover{color:var(--status-red)}.repo-scope-current{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 8px;border-radius:6px;background:#6366f114;border:1px solid rgba(99,102,241,.22);font-size:9px;color:var(--text-secondary)}.repo-scope-current code{color:var(--brand-blue);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.repo-scope-reset-btn{border:0;background:transparent;color:var(--brand-purple);font-size:9px;font-weight:700;cursor:pointer;text-decoration:underline;padding:0}.repo-tree-node{list-style:none}.repo-tree-row-wrapper{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:7px;transition:background .14s ease}.repo-tree-row-wrapper:hover{background:var(--bg-elevated)}.repo-tree-row-active{background:linear-gradient(110deg,#d91b5c24,#6366f11a)!important}.repo-tree-row-wrapper .repo-tree-row{flex:1;min-width:0}.repo-row-actions{display:none;align-items:center;gap:3px;padding-right:6px;flex:0 0 auto}.repo-tree-row-wrapper:hover .repo-row-actions{display:flex}.repo-row-action-btn{display:grid;place-items:center;width:20px;height:20px;border:1px solid var(--border-color);border-radius:5px;background:var(--bg-surface);color:var(--text-muted);font-size:13px;cursor:pointer;line-height:1;padding:0}.repo-row-action-btn:hover{border-color:var(--brand-purple);color:var(--text-primary);background:var(--bg-surface-hover)}.repo-row-action-btn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}.modal-checkbox-label{display:flex;align-items:center;gap:9px;margin-bottom:16px;color:var(--text-secondary);font-size:12px;cursor:pointer;-webkit-user-select:none;user-select:none}.modal-checkbox-label input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand-purple);cursor:pointer}.repo-workspace-root-group{margin-bottom:6px}.repo-workspace-root-header{display:flex;align-items:center;justify-content:space-between;min-height:28px;padding:2px 8px 2px 6px;background:var(--bg-elevated);border-radius:6px;margin-bottom:2px}.repo-workspace-root-header:hover{background:var(--bg-surface-hover)}.repo-workspace-root-toggle{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:var(--text-primary);font-size:11px;font-weight:750;text-align:left;cursor:pointer;flex:1;min-width:0;padding:3px 0}.repo-root-folder-icon{display:grid;place-items:center;width:16px;height:16px;flex:0 0 16px;color:var(--brand-purple)}.repo-root-folder-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.repo-root-folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800;letter-spacing:.04em;color:var(--text-primary)}.repo-root-folder-path{color:var(--text-muted);font-size:9px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-left:2px}.repo-root-actions{display:none;align-items:center;gap:3px;flex:0 0 auto}.repo-workspace-root-header:hover .repo-root-actions{display:flex}.repo-root-action-btn{display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--border-color);border-radius:5px;background:var(--bg-surface);color:var(--text-muted);font-size:12px;cursor:pointer;line-height:1;padding:0}.repo-root-action-btn:hover{border-color:var(--border-strong);color:var(--text-primary);background:var(--bg-surface-hover)}.repo-root-action-btn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}.repo-root-action-remove{font-size:16px;color:var(--text-secondary)}.repo-root-action-remove:hover{border-color:#fb718566;color:var(--status-red);background:#fb71851f}.repo-tree-empty-workspace{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 16px;text-align:center;color:var(--text-muted);gap:8px}.repo-tree-empty-workspace strong{color:var(--text-primary);font-size:13px}.repo-tree-empty-workspace p{font-size:11px;margin-bottom:8px}.repo-toast-banner{margin:0 12px 8px;padding:7px 11px;border-radius:7px;background:#6366f11f;border:1px solid rgba(99,102,241,.28);color:var(--text-primary);font-size:11px;animation:fadeIn .15s ease}.repo-quick-suggestions{display:flex;align-items:center;gap:6px;margin-top:-6px;margin-bottom:14px;font-size:11px;color:var(--text-muted);flex-wrap:wrap}.repo-quick-suggestions button{padding:2px 7px;border:1px solid var(--border-color);border-radius:5px;background:var(--bg-color);color:var(--brand-blue);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:700;cursor:pointer}.repo-quick-suggestions button:hover{border-color:var(--brand-purple);color:#fff;background:#a21caf2e}.repo-remove-info-box{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:10px;background:#6366f114;border:1px solid rgba(99,102,241,.22);margin-bottom:18px;font-size:11px;line-height:1.5;color:var(--text-secondary)}.repo-remove-info-box svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:var(--brand-blue);stroke-width:2;margin-top:1px}.repo-tree-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.repo-tree-close{display:none!important;font-size:18px}.repo-filter{display:flex;min-height:38px;align-items:center;gap:8px;margin:0 12px 10px;padding:0 10px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-color)}.repo-filter:focus-within{border-color:var(--brand-purple);box-shadow:0 0 0 3px #a21caf1a}.repo-filter svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:var(--text-muted);stroke-linecap:round;stroke-width:1.8}.repo-filter input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text-primary);font-size:11px}.repo-filter input::placeholder{color:var(--text-muted)}.repo-tree-scroll{min-height:0;flex:1;overflow:auto;padding:0 7px 12px;scrollbar-color:var(--border-strong) transparent;scrollbar-width:thin}.repo-tree-root,.repo-tree-children{list-style:none}.repo-tree-row{display:flex;width:100%;min-width:0;min-height:32px;align-items:center;gap:6px;padding-top:4px;padding-right:8px;padding-bottom:4px;border:0;border-radius:7px;background:transparent;color:var(--text-secondary);text-align:left;cursor:pointer}.repo-tree-row:hover{background:var(--bg-elevated);color:var(--text-primary)}.repo-tree-row-active{background:linear-gradient(110deg,#d91b5c24,#6366f11a);color:var(--text-primary)}.repo-tree-chevron{width:12px;flex:0 0 12px;color:var(--text-muted);font-size:13px;text-align:center}.repo-tree-chevron-hidden{visibility:hidden}.repo-tree-icon{display:grid;width:16px;height:16px;flex:0 0 16px;place-items:center;color:var(--brand-blue)}.repo-tree-icon-directory{color:var(--brand-purple)}.repo-tree-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.repo-tree-name{overflow:hidden;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.repo-tree-empty,.repo-tree-message{color:var(--text-muted);font-size:10px;line-height:1.5}.repo-tree-empty{padding-top:5px;padding-bottom:7px}.repo-tree-message{padding:14px 10px}.repo-tree-backdrop{display:none}.modal-backdrop{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#030408c7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.modal-content{width:min(100%,440px);padding:23px;border:1px solid var(--border-color);border-radius:16px;background:var(--bg-surface);box-shadow:0 25px 80px #00000080}.modal-eyebrow{display:block;margin-bottom:8px;color:var(--brand-purple)}.modal-title{margin-bottom:8px;color:var(--text-primary);font-size:18px;letter-spacing:-.02em}.modal-desc{margin-bottom:18px;color:var(--text-secondary);font-size:12px;line-height:1.55}.modal-field-label{display:block;margin-bottom:7px;color:var(--text-secondary);font-size:11px;font-weight:650}.modal-input{width:100%;min-height:44px;margin-bottom:14px;padding:10px 12px;border:1px solid var(--border-color);border-radius:10px;outline:0;background:var(--bg-color);color:var(--text-primary);font-size:14px}.modal-input:focus{border-color:var(--brand-purple);box-shadow:0 0 0 3px #a21caf1f}.modal-feedback{margin-bottom:12px;color:var(--status-green);font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px}.btn{min-height:38px;padding:0 15px;border:0;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer}.btn:disabled{cursor:not-allowed;opacity:.55}.btn-secondary{border:1px solid var(--border-color);background:var(--bg-elevated);color:var(--text-primary)}.btn-primary{background:var(--brand-gradient);color:#fff}.btn-danger{background:var(--status-red);color:#19060a}.btn-success{background:var(--brand-gradient);color:#fff}@media(max-width:960px){.app-header{grid-template-columns:minmax(190px,1fr) auto}.header-center{display:none}}@media(max-width:760px){.app-header{min-height:56px;flex-basis:56px;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}.mobile-menu-btn{display:flex}.header-logo{width:60px;height:24px}.header-product span,.pill-text,.header-action-btn:not(.header-logout-btn){display:none}.header-product strong{font-size:13px}.header-left{gap:8px}.header-right{gap:6px}.status-pill{width:30px;height:30px;justify-content:center;padding:0}.header-icon-btn{width:34px;height:34px;flex-basis:34px}.header-logout-btn{min-height:34px;padding:0 9px;font-size:10px}.session-sidebar{position:absolute;top:0;bottom:0;left:0;width:min(84vw,320px);min-width:0;box-shadow:18px 0 60px #00000061;transform:translate(-105%);transition:transform .19s ease}.sidebar-open .session-sidebar{transform:translate(0)}.sidebar-backdrop{position:absolute;z-index:15;top:0;right:0;bottom:0;left:0;display:block;border:0;background:#03040899;opacity:0;pointer-events:none;transition:opacity .19s ease}.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}.app-main{gap:7px;padding:7px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))}.workspace-toolbar{min-height:36px;flex-basis:36px}.workspace-breadcrumb{gap:5px;font-size:10px}.gradient-action-btn{min-height:32px;padding:0 10px;font-size:10px}.workspace-secondary-action{min-height:32px;padding:0 9px;font-size:10px}.repo-workbench{border-radius:11px}.repo-mobile-tree-button{display:inline-flex;flex:0 0 auto;align-items:center}.repo-editor-header{min-height:46px;flex-basis:46px;gap:9px;padding:0 10px}.repo-tree-pane{position:absolute;z-index:7;top:0;right:0;bottom:0;width:min(88vw,340px);min-width:0;border-left:1px solid var(--border-strong);box-shadow:-18px 0 60px #0000006b;transform:translate(105%);transition:transform .19s ease}.repo-tree-open .repo-tree-pane{transform:translate(0)}.repo-tree-close{display:grid!important}.repo-tree-backdrop{position:absolute;z-index:6;top:0;right:0;bottom:0;left:0;display:block;border:0;background:#0304089e;opacity:0;pointer-events:none;transition:opacity .19s ease}.repo-tree-open .repo-tree-backdrop{opacity:1;pointer-events:auto}.repo-code-line{grid-template-columns:46px minmax(max-content,1fr);font-size:11px}.repo-line-number{padding-right:10px}.xterm{padding:6px 8px 24px!important;box-sizing:border-box}.repo-code-line code{padding-left:12px}.terminal-panel{border-radius:11px}.terminal-panel-header{min-height:39px;flex-basis:39px;padding:0 10px}.background-chip{display:none}.xterm-viewport-wrapper{padding:0!important}.mobile-toolbar{justify-content:flex-start;padding-left:max(7px,env(safe-area-inset-left));padding-right:max(7px,env(safe-area-inset-right))}.toolbar-btn,.toolbar-action-btn{min-height:38px;font-size:11px}.toolbar-btn{min-width:39px}}@media(max-width:480px){.login-card-simple{padding:30px 20px 25px;border-radius:18px}.login-logo img{width:164px;height:57px}.login-title{margin-bottom:24px;font-size:23px}.floating-input{font-size:16px}.theme-toggle-btn{top:max(11px,env(safe-area-inset-top));right:max(11px,env(safe-area-inset-right));width:40px;height:40px}.header-logo,.terminal-panel-meta .vm-badge{display:none}.workspace-breadcrumb>span{display:none}.workspace-toolbar-actions .gradient-action-btn{width:34px;justify-content:center;padding:0;font-size:0}.repo-file-size{display:none}.modal-content{padding:20px}}@media(hover:none)and (pointer:coarse){.toolbar-btn,.toolbar-action-btn,.header-icon-btn,.mobile-menu-btn,.session-add-btn,.repo-mobile-tree-button,.repo-tree-row,.repo-tree-actions button{touch-action:manipulation}}.editor-workbench-container{display:flex;flex-direction:column;flex:1;min-height:calc(100vh - 140px);background:var(--bg-surface);border:1px solid var(--border-color);border-radius:12px;overflow:hidden;box-shadow:0 10px 30px #00000026}.editor-top-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--bg-surface-hover);border-bottom:1px solid var(--border-color);gap:12px;flex-wrap:wrap}.editor-top-left{display:flex;align-items:center;gap:10px}.editor-status-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.editor-status-dot.dot-online{background:var(--status-green);box-shadow:0 0 8px #22c55e99}.editor-status-dot.dot-offline{background:var(--text-muted)}.editor-title-group{display:flex;flex-direction:column;gap:1px}.editor-title{font-size:13px;font-weight:600;color:var(--text-primary)}.editor-subtitle{font-size:11px;color:var(--text-secondary)}.editor-top-actions{display:flex;align-items:center;gap:8px}.editor-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .15s ease;border:1px solid transparent}.editor-btn-primary{background:#007acc;color:#fff}.editor-btn-primary:hover:not(:disabled){background:#06a}.editor-btn-secondary{background:var(--bg-surface);color:var(--text-primary);border-color:var(--border-color)}.editor-btn-secondary:hover{background:var(--bg-hover);border-color:var(--border-strong)}.editor-btn-danger{background:#ef44441a;color:#ef4444;border-color:#ef444433}.editor-btn-danger:hover:not(:disabled){background:#ef444433}.editor-btn-outline{background:transparent;color:var(--text-secondary);border-color:var(--border-color)}.editor-btn-outline:hover{color:var(--text-primary);background:var(--bg-surface)}.editor-body{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.editor-iframe{width:100%;height:calc(100vh - 180px);min-height:580px;border:none;background:#1e1e1e}.editor-loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:16px;color:var(--text-secondary);font-size:13px}.editor-spinner{width:32px;height:32px;border:3px solid var(--border-color);border-top-color:#007acc;border-radius:50%;animation:spin .8s linear infinite}.editor-spinner-inline{width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}.editor-error-banner{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:#ef44441f;color:#ef4444;font-size:12px;border-bottom:1px solid rgba(239,68,68,.2)}.editor-error-dismiss{background:none;border:none;color:#ef4444;font-size:16px;cursor:pointer;padding:0 4px}.editor-launcher-card{max-width:680px;margin:40px auto;padding:36px 32px;text-align:center;background:var(--bg-surface);border:1px solid var(--border-color);border-radius:16px;box-shadow:0 12px 36px #0000001f}.editor-launcher-icon{margin-bottom:16px}.editor-launcher-title{font-size:22px;font-weight:700;color:var(--text-primary);margin-bottom:6px}.editor-launcher-subtitle{font-size:13px;font-weight:600;color:#007acc;margin-bottom:16px}.editor-launcher-desc{font-size:13px;line-height:1.6;color:var(--text-secondary);margin-bottom:24px}.editor-launcher-desc code{background:var(--bg-surface-hover);padding:2px 6px;border-radius:4px;color:var(--text-primary);font-family:monospace}.editor-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:28px;text-align:left}.editor-feature-item{padding:14px;background:var(--bg-surface-hover);border:1px solid var(--border-color);border-radius:10px;display:flex;flex-direction:column;gap:6px}.editor-feature-item strong{font-size:12px;color:var(--text-primary)}.editor-feature-item span{font-size:11px;line-height:1.5;color:var(--text-secondary)}.editor-start-big-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 28px;background:#007acc;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px #007acc59;transition:all .2s ease}.editor-start-big-btn:hover:not(:disabled){background:#06a;transform:translateY(-1px);box-shadow:0 6px 18px #007acc73}.editor-terminal-hint{font-size:12px;color:var(--text-secondary);margin-top:20px;padding-top:16px;border-top:1px dashed var(--border-color)}.editor-terminal-hint code{background:var(--bg-surface-hover);padding:2px 6px;border-radius:4px;color:var(--text-primary);font-family:monospace}@media(max-width:640px){.editor-feature-grid{grid-template-columns:1fr}.editor-top-bar{padding:8px 12px}}.workspace-more-container{position:relative;display:inline-flex;align-items:center}.workspace-more-btn{width:28px;height:28px;border-radius:7px;border:none;background:transparent;color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease;padding:0}.workspace-more-btn:hover{background:#ffffff14;color:var(--text-primary)}.workspace-more-btn.workspace-more-btn-active{background:#ffffff24;color:var(--text-primary)}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99;background:transparent}.workspace-more-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:100;min-width:175px;background:#202124;border:1px solid #3c4043;border-radius:8px;box-shadow:0 4px 18px #00000073;padding:6px 0;display:flex;flex-direction:column}.more-menu-item{display:flex;align-items:center;gap:10px;padding:8px 16px;border:none;background:transparent;color:#e8eaed;font-size:13px;font-weight:400;cursor:pointer;width:100%;text-align:left;transition:background .1s ease}.more-menu-item:hover{background:#303134;color:#fff}.more-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;color:#9aa0a6}.more-menu-item:hover .more-menu-icon{color:#4285f4}.more-menu-item:disabled{opacity:.38!important;cursor:not-allowed!important;pointer-events:none!important}.more-menu-item:disabled:hover{background:transparent!important;color:#e8eaed!important}.more-menu-divider{height:1px;background:#3c4043;margin:5px 0}.desktop-terminal-tabs{display:flex;align-items:stretch;padding:0 8px;gap:4px;overflow-x:auto;scrollbar-width:none;height:36px;box-sizing:border-box;background:var(--bg-surface-hover);border-bottom:1px solid var(--border-color);border-top-left-radius:11px;border-top-right-radius:11px}.desktop-terminal-tabs .mac-traffic-lights{display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 6px;margin-right:4px;border-right:1px solid var(--border-color);flex-shrink:0}.desktop-terminal-tabs::-webkit-scrollbar{display:none}.desktop-terminal-tab{display:inline-flex;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-family:JetBrains Mono,Fira Code,Roboto Mono,Menlo,monospace;cursor:pointer;border-bottom:2px solid transparent;transition:all .15s ease;-webkit-user-select:none;user-select:none;white-space:nowrap;height:100%;box-sizing:border-box;margin-bottom:-1px;position:relative;z-index:1}.desktop-tab-title{white-space:nowrap}.desktop-tab-close{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:3px;border:none;background:transparent;font-size:11px;cursor:pointer;transition:all .1s ease;padding:0;line-height:1}.desktop-tab-add{display:inline-flex;align-items:center;gap:3px;padding:0 10px;border-radius:4px;border:none;background:transparent;cursor:pointer;transition:all .15s ease;height:26px;align-self:center}.desktop-add-icon{font-size:16px;font-weight:600;line-height:1}.desktop-add-caret{font-size:9px;opacity:.7;line-height:1}html.light .desktop-terminal-tabs,body.light .desktop-terminal-tabs,:root:not(.dark) .desktop-terminal-tabs{background:#e8eaed;border-bottom:1px solid #dadce0}html.light .desktop-terminal-tab,body.light .desktop-terminal-tab,:root:not(.dark) .desktop-terminal-tab{color:#5f6368}html.light .desktop-terminal-tab:hover,body.light .desktop-terminal-tab:hover,:root:not(.dark) .desktop-terminal-tab:hover{color:#202124;background:#0000000d}html.light .desktop-terminal-tab-active,body.light .desktop-terminal-tab-active,:root:not(.dark) .desktop-terminal-tab-active{color:#1a73e8!important;font-weight:500;border-bottom:2px solid #1a73e8!important;background:#fff;box-shadow:0 -1px 2px #00000008}html.light .desktop-tab-close,body.light .desktop-tab-close,:root:not(.dark) .desktop-tab-close{color:#80868b}html.light .desktop-tab-close:hover,body.light .desktop-tab-close:hover,:root:not(.dark) .desktop-tab-close:hover{background:#d930251f;color:#d93025}html.light .desktop-tab-add,body.light .desktop-tab-add,:root:not(.dark) .desktop-tab-add{color:#5f6368}html.light .desktop-tab-add:hover,body.light .desktop-tab-add:hover,:root:not(.dark) .desktop-tab-add:hover{color:#202124;background:#0000000f}html.dark .desktop-terminal-tabs,body.dark .desktop-terminal-tabs{background:#18191d;border-bottom:1px solid #282a30}html.dark .desktop-terminal-tab,body.dark .desktop-terminal-tab{color:#8b949e}html.dark .desktop-terminal-tab:hover,body.dark .desktop-terminal-tab:hover{color:#c9d1d9;background:#ffffff0a}html.dark .desktop-terminal-tab-active,body.dark .desktop-terminal-tab-active{color:#58a6ff!important;font-weight:500;border-bottom:2px solid #58a6ff!important;background:#101216}html.dark .desktop-tab-close,body.dark .desktop-tab-close{color:#8b949e}html.dark .desktop-tab-close:hover,body.dark .desktop-tab-close:hover{background:#ef444440;color:#ef4444}html.dark .desktop-tab-add,body.dark .desktop-tab-add{color:#8b949e}@media(max-width:768px){.desktop-terminal-tabs{display:flex!important;height:32px;min-height:32px;padding:0 12px;align-items:center;justify-content:flex-start;border-top-left-radius:11px;border-top-right-radius:11px}.desktop-terminal-tabs .mac-traffic-lights{display:inline-flex!important;gap:7px;border-right:none;padding:0;margin:0}.desktop-terminal-tabs .desktop-terminal-tab,.desktop-terminal-tabs .desktop-tab-add{display:none!important}}.modal-header-with-icon{display:flex;align-items:center;gap:10px;margin-bottom:8px}.modal-icon-brand{color:#4285f4}.modal-dropzone{border:2px dashed var(--border-strong);border-radius:10px;padding:24px 16px;text-align:center;background:var(--bg-surface-hover);cursor:pointer;transition:all .2s ease}.modal-dropzone:hover{border-color:#4285f4;background:#4285f40a}.modal-file-input{display:none}.modal-dropzone-label{display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer;font-size:13px;color:var(--text-primary)}.modal-dropzone-label svg{color:#4285f4;opacity:.9}.modal-file-meta{font-size:11px;color:var(--text-secondary);background:#ffffff14;padding:3px 10px;border-radius:12px}.modal-success-banner{padding:10px 14px;border-radius:6px;background:#22c55e26;border:1px solid rgba(34,197,94,.3);color:#22c55e;font-size:12px;margin-bottom:16px}/**
 * 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}
