.terminal-panel{display:flex;flex-direction:column;height:100%;background:var(--terminal-bg);overflow:hidden}.terminal-layout{background:var(--terminal-bg)}.terminal-cell,.terminal-layout,.terminal-split{flex:1;display:flex;min-width:0;min-height:0}.terminal-split{gap:1px;background:var(--terminal-border)}.terminal-split--row{flex-direction:row}.terminal-split--col{flex-direction:column}.terminal-pane{flex:1;display:flex;min-width:0;min-height:0;background:var(--terminal-bg);border:1px solid transparent;box-sizing:border-box}.terminal-pane.is-active{border-color:var(--terminal-accent)}.terminal-toolbar{display:flex;justify-content:space-between;align-items:center;padding:4px 8px;background:var(--terminal-surface);border-bottom:1px solid var(--terminal-border);min-height:28px}.terminal-toolbar-left{display:flex;align-items:center;gap:6px}.terminal-toolbar-right{display:flex;align-items:center;gap:4px}.terminal-status{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--terminal-muted);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,sans-serif}.terminal-status:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--terminal-muted)}.terminal-status.connected:before{background:var(--terminal-success)}.terminal-status.connecting:before{background:var(--terminal-warning);animation:pulse 1s infinite}.terminal-status.error:before{background:var(--terminal-error)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.terminal-btn{background:transparent;border:none;border-radius:4px;color:var(--terminal-muted);cursor:pointer;padding:4px 6px;font-size:14px;line-height:1;transition:color .15s,background .15s}.terminal-btn:disabled{opacity:.4;cursor:not-allowed}.terminal-btn:hover{background:var(--terminal-btn-hover);color:var(--terminal-text)}.terminal-btn:active{background:var(--terminal-btn-active)}.terminal-view{flex:1;min-width:0;min-height:0;overflow:hidden}.terminal-view .xterm{height:100%;padding:4px 8px}.terminal-view .xterm-viewport{overflow-y:auto!important}.terminal-view .xterm-viewport::-webkit-scrollbar{width:8px}.terminal-view .xterm-viewport::-webkit-scrollbar-track{background:transparent}.terminal-view .xterm-viewport::-webkit-scrollbar-thumb{background:var(--terminal-scrollbar);border-radius:4px}.terminal-view .xterm-viewport::-webkit-scrollbar-thumb:hover{background:var(--terminal-scrollbar-hover)}.terminal-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--terminal-muted);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,sans-serif;text-align:center;padding:20px;background:var(--terminal-bg)}.terminal-error p{margin:6px 0}.terminal-error p:first-child{font-size:16px;color:var(--terminal-error)}