/* Generated from legacy styles.css: terminal panel and tabs. */



.terminal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(138, 164, 189, 0.28);
  background: #f5f7fa;
  box-shadow: none;
  overflow: hidden;
  contain: layout paint;
  overflow-anchor: none;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.terminal-panel.is-fill {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-rows: auto minmax(0, 1fr);
  border-top: 0;
}

.terminal-panel.is-resizing {
  will-change: height;
}

.terminal-panel-resizer {
  position: relative;
  height: 10px;
  cursor: row-resize;
  box-sizing: border-box;
  border-bottom: 1px solid var(--mix-seg-border-82-transparent-18);
  background: var(--seg-shell);
}

.terminal-panel-resizer::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 64px;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(116, 143, 169, 0.34);
}

.terminal-panel-resizer.is-active::after,
.terminal-panel-resizer:hover::after {
  background: var(--seg-accent);
}

.terminal-panel.is-fill .terminal-panel-resizer {
  display: none;
}

.terminal-tabs,
.terminal-tabs-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-tabs {
  min-height: 42px;
  padding: 0 14px;
  justify-content: flex-start;
  background: var(--seg-pane-tab-bar-surface);
  border-bottom: 1px solid var(--seg-border);
}

.terminal-tabs-list {
  min-width: 0;
  flex: 1 1 auto;
  overflow: auto;
  scrollbar-width: thin;
}

.terminal-tabs-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.terminal-shell-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--seg-text-2);
  font-size: 12px;
}

.terminal-shell-picker-label {
  white-space: nowrap;
}

.terminal-shell-picker-select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--seg-panel);
  color: var(--seg-text-1);
  font-size: 12px;
}

.terminal-shell-picker-select:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.terminal-shell-picker-select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.terminal-panel-toggle-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  gap: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #5a6e81;
  flex-shrink: 0;
}

.terminal-panel-toggle-button:hover,
.terminal-panel-toggle-button:focus-visible,
.terminal-panel-toggle-button.is-active {
  border: 0;
  background: var(--mix-seg-accent-soft-72-transparent-28);
  box-shadow: none;
}

.activity-rail-bottom .terminal-panel-toggle-button {
  width: var(--section-toolbar-control-size);
  min-width: var(--section-toolbar-control-size);
  height: var(--section-toolbar-control-size);
  min-height: var(--section-toolbar-control-size);
  border-radius: 8px;
  color: #5a6e81;
}

.activity-rail-bottom .terminal-panel-toggle-button:hover,
.activity-rail-bottom .terminal-panel-toggle-button:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button.is-active {
  background: rgba(84, 96, 109, 0.14);
  color: #22303d;
}

.activity-rail-bottom .terminal-panel-toggle-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.terminal-tab {
  min-width: 0;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #55697d;
}

.terminal-tab.is-active {
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.terminal-tab-trigger {
  min-width: 0;
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.terminal-tab-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.terminal-tab-close,
.terminal-panel-create {
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #5a6e81;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.terminal-panel-create {
  margin-left: 2px;
}

.terminal-tab-close:hover,
.terminal-tab-close:focus-visible,
.terminal-panel-create:hover,
.terminal-panel-create:focus-visible {
  color: #1d2a35;
  background: var(--mix-seg-accent-soft-72-transparent-28);
}

.terminal-panel-create:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.terminal-tab-close svg,
.terminal-panel-create svg,
.terminal-panel-toggle-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terminal-view-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--seg-terminal-surface);
}

.terminal-view-error {
  margin: 0;
  color: #b13a3a;
  line-height: 1.5;
}

.terminal-surface {
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  background: var(--seg-terminal-surface);
  overflow: hidden;
  box-shadow: none;
  contain: layout paint;
  overflow-anchor: none;
}

.terminal-xterm,
.terminal-xterm .xterm {
  height: 100%;
}

.terminal-xterm {
  min-height: 0;
  padding: 10px 12px 12px;
  background: var(--seg-terminal-surface);
}

.terminal-xterm .xterm-viewport {
  overflow-y: auto !important;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  overflow-anchor: none;
}

.terminal-empty-state {
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  color: #55697d;
}

.terminal-empty-state p {
  margin: 0;
}

.terminal-empty-error {
  max-width: min(680px, 100%);
  color: var(--seg-danger);
  text-align: center;
  overflow-wrap: anywhere;
}

.terminal-tabs-list::-webkit-scrollbar {
  height: 6px;
}

.terminal-tabs-list::-webkit-scrollbar-thumb {
  background: rgba(121, 145, 168, 0.34);
}

.sidebar-resizer::before,
.workbench-pane-resizer::before,
.terminal-panel-resizer::after {
  background: var(--seg-border);
  box-shadow: none;
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
.sidebar-resizer.is-active::before,
.workbench-pane-resizer:hover::before,
.workbench-pane-resizer:focus-visible::before,
body.is-resizing-workbench-pane .workbench-pane-resizer::before,
.terminal-panel-resizer.is-active::after,
.terminal-panel-resizer:hover::after {
  background: var(--seg-accent);
  box-shadow: none;
}

.sidebar-toggle-button,
.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-settings,
.row-action,
.top-menu-view-button,
.terminal-panel-toggle-button,
.terminal-tab-close,
.terminal-panel-create {
  color: var(--ui-text-2);
}

.sidebar-toggle-button.is-rail,
.activity-rail-bottom .terminal-panel-toggle-button,
.top-menu-view-button,
.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-settings,
.row-action {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.sidebar-toggle-button.is-rail:hover,
.sidebar-toggle-button.is-rail:focus-visible,
.sidebar-toggle-button.is-rail.is-active,
.top-menu-view-button:hover,
.top-menu-view-button:focus-visible,
.sidebar-action:hover,
.sidebar-toggle-button.is-sidebar:hover,
.sidebar-toggle-button.is-sidebar:focus-visible,
.sidebar-toggle-button.is-sidebar.is-active,
.sidebar-settings:hover,
.row-action:hover,
.activity-rail-bottom .terminal-panel-toggle-button:hover,
.activity-rail-bottom .terminal-panel-toggle-button:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button.is-active {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ui-text-1);
  box-shadow:
    inset 0 0 0 1px rgba(29, 41, 57, 0.06),
    0 8px 16px rgba(24, 34, 48, 0.06);
}

.composer-utility-chip,
.composer-utility-git-branch-button,
.composer-selector-button,
.composer-attachment-chip,
.composer-menu-option,
.terminal-tab {
  border-radius: var(--ui-radius-pill);
}

.sidebar-toggle-button.is-rail:hover,
.sidebar-toggle-button.is-rail:focus-visible,
.sidebar-toggle-button.is-rail.is-active,
.top-menu-view-button:hover,
.top-menu-view-button:focus-visible,
.sidebar-action:hover,
.sidebar-toggle-button.is-sidebar:hover,
.sidebar-toggle-button.is-sidebar:focus-visible,
.sidebar-toggle-button.is-sidebar.is-active,
.sidebar-settings:hover,
.row-action:hover,
.terminal-panel-toggle-button:hover,
.terminal-panel-toggle-button:focus-visible,
.terminal-panel-toggle-button.is-active,
.terminal-tab-close:hover,
.terminal-tab-close:focus-visible,
.terminal-panel-create:hover,
.terminal-panel-create:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button:hover,
.activity-rail-bottom .terminal-panel-toggle-button:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button.is-active {
  border-color: var(--seg-border);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: none;
}

.top-menu-view-button:hover,
.top-menu-view-button:focus-visible {
  border-color: var(--mix-ui-accent-strong-18-transparent-82);
  background: var(--mix-ui-accent-strong-14-transparent-86);
  color: var(--ui-accent-strong);
  box-shadow: none;
}

/* Sage / Teal & Slate theme overrides */

.terminal-panel {
  border-top-color: var(--mix-seg-border-82-transparent-18);
  background: var(--mix-seg-shell-92-seg-panel-8);
}

.terminal-panel-resizer::after {
  background: var(--mix-seg-text-3-34-transparent-66);
}

.terminal-tabs {
  background: var(--seg-pane-tab-bar-surface);
}

.terminal-panel-toggle-button,
.terminal-tab-close,
.terminal-panel-create,
.activity-rail-bottom .terminal-panel-toggle-button {
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
}

.terminal-panel-toggle-button:hover,
.terminal-panel-toggle-button:focus-visible,
.terminal-panel-toggle-button.is-active,
.terminal-tab-close:hover,
.terminal-tab-close:focus-visible,
.terminal-panel-create:hover,
.terminal-panel-create:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button:hover,
.activity-rail-bottom .terminal-panel-toggle-button:focus-visible,
.activity-rail-bottom .terminal-panel-toggle-button.is-active {
  background: var(--mix-seg-accent-soft-72-seg-panel-28);
  color: var(--seg-accent-strong);
  border-color: transparent;
  box-shadow: none;
}

.terminal-tab {
  background: transparent;
  color: var(--seg-text-2);
}

.terminal-tab.is-active {
  background: var(--mix-surface-code-16-seg-panel-84);
  color: var(--seg-text-1);
}

.terminal-view-error {
  color: var(--seg-danger);
}

.terminal-surface,
.terminal-xterm {
  background: var(--seg-terminal-surface);
}

.terminal-surface {
  border: 0;
  box-shadow: none;
}

.terminal-tabs-list::-webkit-scrollbar-thumb {
  background: var(--mix-brand-accent-active-28-rgba-148-163-184-0-28-72);
}

.right-sidebar-main-stack .terminal-panel {
  flex: 0 0 auto;
  margin: 0;
  border-top: 1px solid var(--mix-seg-border-82-transparent-18);
}

.right-sidebar-view-host.is-terminal .terminal-panel {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border-top: 0;
}

.right-sidebar-main-stack .terminal-tabs {
  min-height: 40px;
  padding: 0 10px;
}

.right-sidebar-top-menu .terminal-panel-toggle-button {
  align-self: center;
  width: var(--section-toolbar-control-size);
  min-width: var(--section-toolbar-control-size);
  height: var(--section-toolbar-control-size);
  min-height: var(--section-toolbar-control-size);
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--semantic-accent-icon);
  box-shadow: none;
  transform: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.right-sidebar-top-menu .terminal-panel-toggle-button:hover,
.right-sidebar-top-menu .terminal-panel-toggle-button:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--semantic-accent-icon-hover);
  box-shadow: none;
  transform: none;
}

.right-sidebar-top-menu .terminal-panel-toggle-button.is-active,
.right-sidebar-top-menu .terminal-panel-toggle-button.is-active:hover,
.right-sidebar-top-menu .terminal-panel-toggle-button.is-active:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--semantic-accent-icon-active);
  box-shadow: none;
  transform: none;
}
