/* Generated from legacy styles.css: canvas, panes, tabs, and workbench layouts. */

@property --pane-drop-preview-sheen-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

@property --pane-drop-preview-sheen-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}



.window-shell.is-maximized .app-shell,
.window-shell.is-maximized .canvas {
  border-radius: 0;
}

.sidebar-toggle-button.is-top-menu,
.session-tab,
.canvas-top-menu-button {
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: rgba(255, 255, 255, 0.9);
  color: #4a5d70;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-action,
.sidebar-toggle-button.is-sidebar,
.sidebar-toggle-button.is-top-menu,
.top-menu-view-button,
.canvas-top-menu-button,
.sidebar-settings,
.row-action {
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.top-menu-view-button:hover,
.top-menu-view-button:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.session-tab.is-active,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible,
.canvas-top-menu-button.is-active {
  color: #1d2a35;
}

.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible {
  background: #ffffff;
  border-color: rgba(111, 153, 194, 0.72);
  box-shadow: 0 8px 18px rgba(53, 79, 106, 0.08);
}

.session-tab.is-active,
.canvas-top-menu-button.is-active {
  background: #e7f2fb;
  border-color: rgba(95, 146, 194, 0.7);
  color: #1a3d5e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sidebar-action:hover,
.sidebar-toggle-button.is-sidebar:focus-visible,
.sidebar-toggle-button.is-sidebar:hover,
.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.top-menu-view-button:hover,
.top-menu-view-button:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible,
.sidebar-settings:hover,
.row-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.sidebar-action:disabled,
.top-menu-view-button:disabled,
.session-tab:disabled,
.canvas-top-menu-button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.row-action:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.global-skills-canvas {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.global-skills-toolbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.global-skills-toolbar-spacer {
  min-height: 1px;
}

.global-skills-toolbar-message {
  margin: 0;
  min-width: 0;
  padding: 8px 10px;
}

.global-skills-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.global-skills-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--seg-panel-muted);
}

.global-skills-mode-button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-2);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.global-skills-mode-button:hover,
.global-skills-mode-button:focus-visible,
.global-skills-mode-button.is-active {
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: 0 1px 2px rgba(24, 37, 50, 0.08);
}

.global-skills-mode-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.global-skills-editor-shell {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid rgba(166, 186, 208, 0.28);
  background: #ffffff;
  cursor: text;
  overflow: hidden;
  -webkit-app-region: no-drag;
  user-select: text;
}

.global-skills-editor-shell.is-preview {
  cursor: default;
}

.global-skills-editor {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  padding: 18px;
  background: transparent;
  color: #203142;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: none;
  outline: none;
  cursor: text;
  pointer-events: auto;
  -webkit-app-region: no-drag;
  user-select: text;
}

.global-skills-markdown-preview {
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-width: none;
  overflow: auto;
  padding: 24px 28px;
  background: #ffffff;
  color: var(--seg-text-1);
  font-size: 14px;
  line-height: 1.65;
}

.global-skills-metadata-panel {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel-muted);
  display: grid;
  gap: 12px;
}

.global-skills-metadata-summary {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.global-skills-metadata-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.global-skills-metadata-copy strong {
  color: var(--seg-text-1);
  font-size: 16px;
  line-height: 1.25;
}

.global-skills-metadata-copy p {
  margin: 0;
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.global-skills-metadata-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(166, 186, 208, 0.6);
  border-radius: 999px;
  background: #ffffff;
  color: var(--seg-text-2);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.global-skills-metadata-tools {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.global-skills-metadata-tools > span {
  color: var(--seg-text-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.global-skills-metadata-tools > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.global-skills-metadata-tools code {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid rgba(166, 186, 208, 0.52);
  border-radius: 6px;
  background: #ffffff;
  color: var(--seg-text-1);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.global-skills-metadata-details {
  color: var(--seg-text-2);
  font-size: 12px;
}

.global-skills-metadata-details summary {
  cursor: pointer;
  color: var(--seg-text-2);
  font-weight: 650;
}

.global-skills-metadata-details dl {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.global-skills-metadata-details div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 10px;
}

.global-skills-metadata-details dt {
  color: var(--seg-text-3);
  font-weight: 700;
}

.global-skills-metadata-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.global-skills-empty-state {
  min-height: 0;
  padding: 24px;
  border: 1px dashed rgba(166, 186, 208, 0.5);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.global-skills-editor-empty-state {
  height: 100%;
  border: 0;
}

.global-skills-empty-state h3,
.global-skills-empty-state p {
  margin: 0;
}

.global-skills-empty-state h3 {
  color: #1f2f3d;
}

.global-skills-empty-state p {
  color: #5f7488;
  line-height: 1.5;
}

.session-tab {
  min-height: var(--section-toolbar-pill-height);
  padding: 0 6px 0 10px;
  gap: 6px;
  cursor: default;
  text-align: left;
  justify-content: space-between;
}

.session-tab-trigger {
  min-width: 0;
  flex: 1 1 auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  text-align: left;
  cursor: default;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.session-tab-trigger:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.session-tab-close {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7d90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.session-tab-close:hover,
.session-tab-close:focus-visible {
  background: transparent;
  color: #22303d;
  outline: none;
}

.session-tab-close svg {
  width: var(--section-toolbar-aux-icon-size);
  height: var(--section-toolbar-aux-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.session-tab-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas {
  --canvas-inline-padding: 26px;
  grid-column: 4;
  min-height: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 0 var(--canvas-inline-padding) 20px;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  animation: rise-in 520ms ease;
}

.canvas.is-workbench {
  --canvas-inline-padding: 0px;
  padding: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.canvas.is-full-surface {
  grid-column: 2 / -1;
  background: var(--seg-shell);
}

.prompt-presets-page,
.mcp-servers-page {
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-shell);
}

.global-skills-page {
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--seg-shell);
}

.prompt-presets-top-menu-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--seg-text-1);
  font-size: 13px;
  font-weight: 650;
}

.prompt-presets-top-menu-label svg {
  width: var(--section-toolbar-icon-size);
  height: var(--section-toolbar-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.prompt-presets-top-menu-window-controls {
  align-self: stretch;
  justify-self: end;
  align-items: center;
}

.prompt-presets-page-main,
.mcp-servers-page-main,
.connectors-page-main {
  min-height: 0;
}

.settings-page-main.global-skills-page-main {
  min-height: 0;
  height: 100%;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.settings-services-layout.global-skills-page-layout {
  min-height: 0;
  grid-template-columns: 340px minmax(0, 1fr);
  height: 100%;
  align-items: stretch;
}

.settings-services-layout.mcp-servers-page-layout {
  grid-template-columns: 340px minmax(0, 1fr);
}

.settings-services-layout.global-skills-page-layout.is-sidebar-hosted,
.settings-services-layout.mcp-servers-page-layout.is-sidebar-hosted {
  grid-template-columns: minmax(0, 1fr);
}

.settings-service-list-panel.mcp-servers-list-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.settings-service-list-panel.global-skills-library-panel {
  grid-template-rows: minmax(0, 1fr);
}

.settings-service-detail-panel.global-skills-detail-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  padding-right: 0;
}

.settings-service-detail-panel.global-skills-detail-panel > .global-skills-canvas {
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.global-skills-navigator {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.global-skills-section-bar {
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}

.global-skills-section-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.global-skills-install-button,
.global-skills-open-folder-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-skills-install-menu-shell {
  position: relative;
  display: inline-flex;
}

.global-skills-install-button svg,
.global-skills-open-folder-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.global-skills-install-button.is-open {
  border-color: var(--seg-accent);
  background: var(--mix-ui-accent-strong-14-transparent-86);
  color: var(--ui-accent-strong);
}

.global-skills-install-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 176px;
  padding: 6px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.14);
  display: grid;
  gap: 2px;
}

.global-skills-install-menu.skill-tree-row-menu {
  left: auto;
  right: 0;
}

.global-skills-install-menu-item {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--seg-text-1);
  font: inherit;
  font-size: 13px;
  text-align: left;
  display: flex;
  align-items: center;
}

.global-skills-install-menu-item:hover,
.global-skills-install-menu-item:focus-visible {
  background: var(--semantic-sidebar-tree-row-surface-hover);
  color: var(--semantic-sidebar-tree-row-text-hover);
  outline: none;
}

.global-skills-new-button {
  justify-self: start;
  width: calc(100% - 32px);
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--semantic-sidebar-tree-row-text);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.global-skills-new-menu-shell {
  position: relative;
  justify-self: start;
  width: 100%;
  min-width: 0;
  display: grid;
}

.global-skills-new-button:hover,
.global-skills-new-button:focus-visible,
.global-skills-new-button.is-open {
  transform: none;
  background: var(--semantic-sidebar-tree-row-surface-hover);
  border: 0;
  color: var(--semantic-sidebar-tree-row-text-hover);
  box-shadow: none;
  outline: none;
}

.global-skills-new-menu {
  left: 0;
  bottom: calc(100% + 6px);
  top: auto;
}

.global-skills-new-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.global-skills-git-install-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 38, 0.32);
}

.global-skills-git-install-modal {
  width: min(100%, 620px);
  max-height: min(100%, 680px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 22px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-panel);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.2);
  display: grid;
  gap: 18px;
}

.global-skills-git-install-modal.is-compact {
  width: min(100%, 420px);
}

.global-skills-git-install-header,
.global-skills-git-install-footer,
.global-skills-git-install-actions {
  display: flex;
  align-items: center;
}

.global-skills-git-install-header {
  justify-content: space-between;
  gap: 16px;
}

.global-skills-git-install-header h3,
.global-skills-git-install-header p,
.global-skills-git-install-message {
  margin: 0;
}

.global-skills-git-install-header h3 {
  color: var(--seg-text-1);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.global-skills-git-install-header p,
.global-skills-git-install-help,
.global-skills-git-install-preview-meta,
.global-skills-git-install-skill span,
.global-skills-git-install-skill em {
  color: var(--seg-text-3);
  font-size: 12px;
  line-height: 1.45;
}

.global-skills-git-install-close svg {
  width: 16px;
  height: 16px;
}

.global-skills-git-install-form {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.global-skills-git-install-label {
  color: var(--seg-text-2);
  font-size: 12px;
  font-weight: 650;
}

.global-skills-git-install-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--seg-accent);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  font-size: 14px;
  outline: none;
}

.global-skills-target-select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: var(--seg-panel);
  color: var(--seg-text-1);
  font-size: 13px;
  outline: none;
}

.global-skills-git-install-input:focus,
.global-skills-target-select:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.global-skills-git-install-help,
.global-skills-git-install-preview,
.global-skills-git-install-skill-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.global-skills-git-install-help code,
.global-skills-git-install-preview-meta code,
.global-skills-git-install-skill code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--seg-text-2);
  font-size: 12px;
}

.global-skills-git-install-actions,
.global-skills-git-install-footer {
  justify-content: flex-end;
  gap: 10px;
}

.global-skills-git-install-message {
  padding: 10px 12px;
  border-radius: var(--seg-radius-xs);
  font-size: 13px;
}

.global-skills-git-install-message.is-error {
  border: 1px solid rgba(185, 28, 28, 0.24);
  background: rgba(254, 242, 242, 0.9);
  color: #991b1b;
}

.global-skills-git-install-message.is-success {
  border: 1px solid rgba(21, 128, 61, 0.24);
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.global-skills-git-install-preview-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-skills-git-install-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.global-skills-git-install-skill {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: rgba(255, 255, 255, 0.62);
}

.global-skills-git-install-skill.is-disabled {
  opacity: 0.68;
}

.global-skills-git-install-skill input {
  margin-top: 2px;
}

.global-skills-git-install-skill strong {
  color: var(--seg-text-1);
  font-size: 13px;
  line-height: 1.3;
}

.global-skills-git-install-skill em {
  color: #991b1b;
  font-style: normal;
}

@media (max-width: 1280px) {
  .settings-services-layout.mcp-servers-page-layout,
  .settings-services-layout.global-skills-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.canvas-top-stack {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.workbench-panes {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.workbench-split {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
}

.workbench-split.is-horizontal {
  flex-direction: row;
}

.workbench-split.is-vertical {
  flex-direction: column;
}

.workbench-pane {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.workbench-pane.is-focused {
  border-color: transparent;
  box-shadow: none;
}

.workbench-pane-stage {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  --pane-drop-preview-motion-duration: 220ms;
  --pane-drop-preview-fade-duration: 180ms;
  --pane-drop-preview-motion-curve: cubic-bezier(0.22, 1, 0.36, 1);
  --pane-drop-preview-sheen-x: 50%;
  --pane-drop-preview-sheen-y: 50%;
}

.workbench-pane-live-region {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
  --pane-content-max-width: 880px;
  --pane-content-gutter: clamp(16px, 2.4vw, 32px);
  --pane-terminal-gutter: clamp(12px, 1.8vw, 18px);
  transition:
    top var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    left var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    width var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    height var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    border-radius var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    box-shadow var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    background var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    transform var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve);
}

.workbench-pane-resizer {
  position: relative;
  touch-action: none;
}

.workbench-pane-resizer.is-horizontal {
  flex: 0 0 10px;
  cursor: col-resize;
}

.workbench-pane-resizer.is-vertical {
  flex: 0 0 10px;
  cursor: row-resize;
}

.workbench-pane-resizer::before {
  content: "";
  position: absolute;
  background: rgba(138, 164, 189, 0.5);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.workbench-pane-resizer.is-horizontal::before {
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.workbench-pane-resizer.is-vertical::before {
  left: 18px;
  right: 18px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.workbench-pane-resizer:hover::before,
.workbench-pane-resizer:focus-visible::before,
body.is-resizing-workbench-pane .workbench-pane-resizer::before {
  background: var(--seg-accent);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-14-transparent-86);
}

.session-tab.is-dragging {
  opacity: 0.45;
}

.pane-drop-targets {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr) 144px;
  grid-template-rows: 10px minmax(0, 1fr) 108px;
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  pointer-events: none;
}

.pane-drop-targets.is-top-row {
  grid-template-areas:
    "top top top"
    "left center right"
    ". bottom .";
}

.pane-drop-target {
  pointer-events: auto;
  background: transparent;
}

.pane-drop-target.is-top {
  grid-area: top;
}

.pane-drop-target.is-left,
.pane-drop-target.is-right {
}

.pane-drop-target.is-left {
  grid-area: left;
}

.pane-drop-target.is-center {
  grid-area: center;
}

.pane-drop-target.is-right {
  grid-area: right;
}

.pane-drop-target.is-bottom {
  grid-area: bottom;
}

.pane-drop-target.is-active {
}

.pane-drop-target.is-top.is-active,
.pane-drop-target.is-bottom.is-active,
.pane-drop-target.is-left.is-active,
.pane-drop-target.is-right.is-active {
}

.pane-drop-preview {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.pane-drop-preview.is-left {
  --pane-drop-preview-sheen-x: 18%;
  --pane-drop-preview-sheen-y: 50%;
}

.pane-drop-preview.is-right {
  --pane-drop-preview-sheen-x: 82%;
  --pane-drop-preview-sheen-y: 50%;
}

.pane-drop-preview.is-top {
  --pane-drop-preview-sheen-x: 50%;
  --pane-drop-preview-sheen-y: 18%;
}

.pane-drop-preview.is-bottom {
  --pane-drop-preview-sheen-x: 50%;
  --pane-drop-preview-sheen-y: 82%;
}

.pane-drop-preview-current,
.pane-drop-preview-incoming {
  position: absolute;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 8px;
  transition:
    top var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    left var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    width var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    height var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    opacity var(--pane-drop-preview-fade-duration) var(--pane-drop-preview-motion-curve),
    transform var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    box-shadow var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve),
    background var(--pane-drop-preview-motion-duration) var(--pane-drop-preview-motion-curve);
}

.pane-drop-preview-current {
  background: rgba(248, 251, 255, 0.82);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px rgba(168, 194, 210, 0.42);
}

.pane-drop-preview-incoming {
  background: rgba(221, 236, 245, 0.94);
  box-shadow:
    0 16px 36px rgba(135, 167, 186, 0.18),
    inset 0 0 0 1px rgba(157, 187, 204, 0.58);
}

.workbench-panes.has-multiple .session-canvas-top-menu {
  padding-left: 12px;
  padding-right: 12px;
}

.canvas-region-top-menu {
  --canvas-region-tab-border: var(--seg-border);
  --canvas-region-tab-divider: rgba(32, 41, 54, 0.08);
  --canvas-region-tab-active-bg: var(--seg-panel);
  --canvas-region-tab-inactive-bg: var(--mix-seg-shell-82-eef2f7-18);
  --canvas-region-tab-hover: var(--mix-seg-shell-62-ffffff-38);
  --canvas-region-tab-focus: var(--mix-seg-shell-56-ffffff-44);
  --canvas-region-tab-cap-radius: 8px;
  --canvas-region-tab-height: 32px;
  position: relative;
  padding-right: var(--window-controls-canvas-clearance);
  padding-bottom: 0;
  background: var(--seg-shell);
  border-bottom: 1px solid var(--seg-border);
}

.canvas-region-top-menu-tabs-shell,
.canvas-region-top-menu-tabs {
  display: flex;
  align-items: center;
  min-width: 0;
}

.canvas-region-top-menu-leading {
  justify-content: flex-start;
  align-self: center;
  gap: 10px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.canvas-region-top-menu-trailing {
  justify-content: flex-end;
  justify-self: end;
  align-self: center;
  gap: 12px;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.canvas-region-top-menu-trailing.is-right-sidebar-expanded {
  margin-right: calc(-1 * var(--canvas-inline-padding));
}

.canvas-region-top-menu-trailing.is-right-sidebar-collapsed {
  margin-right: 8px;
}

.canvas-region-top-menu-tabs-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  position: relative;
  z-index: 1;
}

.canvas-region-top-menu-tabs {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 0;
  scrollbar-width: thin;
  justify-self: stretch;
}

.canvas-region-top-menu-tabs::-webkit-scrollbar {
  height: 6px;
}

.canvas-region-top-menu-tabs::-webkit-scrollbar-thumb {
  background: rgba(121, 145, 168, 0.34);
}

.canvas-region-top-menu-empty {
  color: var(--seg-text-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.canvas-region-top-menu .session-tab {
  flex: 0 0 auto;
  position: relative;
  align-self: end;
  max-width: min(220px, 28vw);
  min-height: var(--canvas-region-tab-height);
  margin-bottom: -1px;
  margin-top: 6px;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: var(--canvas-region-tab-cap-radius) var(--canvas-region-tab-cap-radius) 0 0;
  background: var(--canvas-region-tab-inactive-bg);
  box-shadow: none;
  color: var(--seg-text-2);
  cursor: default;
  gap: 6px;
  transform: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.canvas-region-top-menu .session-tab::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: var(--canvas-region-tab-divider);
  transition: opacity 160ms ease;
}

.canvas-region-top-menu .session-tab:hover {
  transform: none;
  background: var(--canvas-region-tab-hover);
  border-color: transparent;
  color: var(--seg-text-1);
  box-shadow: none;
}

.canvas-region-top-menu .session-tab:focus-within {
  transform: none;
  background: var(--canvas-region-tab-focus);
  border-color: transparent;
  color: var(--seg-text-1);
  box-shadow: none;
}

.canvas-region-top-menu .session-tab:hover::after,
.canvas-region-top-menu .session-tab:focus-within::after,
.canvas-region-top-menu .session-tab.is-active::after {
  opacity: 0;
}

.canvas-region-top-menu .session-tab.is-active {
  min-height: calc(var(--canvas-region-tab-height) + 4px);
  margin-top: 2px;
  background: var(--canvas-region-tab-active-bg);
  border: 1px solid var(--canvas-region-tab-border);
  border-bottom-color: var(--canvas-region-tab-active-bg);
  color: var(--seg-text-1);
  z-index: 2;
  box-shadow: none;
}

.canvas-region-top-menu .session-tab.is-active:hover,
.canvas-region-top-menu .session-tab.is-active:focus-within {
  background: var(--canvas-region-tab-active-bg);
  border-color: var(--canvas-region-tab-border);
  border-bottom-color: var(--canvas-region-tab-active-bg);
  color: var(--seg-text-1);
}

.canvas-region-top-menu .session-tab.is-active::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -1px;
  height: 2px;
  background: var(--canvas-region-tab-active-bg);
}

.canvas-region-top-menu .session-tab.is-create-tab {
  max-width: 168px;
}

.canvas-region-top-menu .session-tab-trigger {
  min-height: calc(var(--canvas-region-tab-height) - 1px);
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: inherit;
  cursor: default;
}

.canvas-region-top-menu .session-tab-title {
  letter-spacing: -0.01em;
}

.canvas-region-top-menu .session-tab.is-active .session-tab-trigger {
  font-weight: 500;
}

.canvas-region-top-menu .session-tab-close {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  color: var(--seg-text-3);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    background 160ms ease,
    color 160ms ease;
}

.canvas-region-top-menu .session-tab:hover .session-tab-close,
.canvas-region-top-menu .session-tab:focus-within .session-tab-close,
.canvas-region-top-menu .session-tab.is-active .session-tab-close {
  opacity: 1;
  pointer-events: auto;
}

.canvas-region-top-menu .session-tab-close:hover,
.canvas-region-top-menu .session-tab-close:focus-visible {
  background: rgba(84, 96, 109, 0.08);
  color: var(--seg-text-1);
}

.canvas-region-top-menu .session-tab-close svg {
  width: var(--section-toolbar-aux-icon-size);
  height: var(--section-toolbar-aux-icon-size);
  stroke-width: 2;
}

.session-canvas-top-menu {
  min-height: var(--section-toolbar-height);
  padding-left: 12px;
  padding-right: 12px;
  padding-right: calc(var(--window-controls-canvas-clearance) + 8px);
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border-bottom: 0;
}

.session-canvas-top-menu .shell-top-menu-content,
.session-canvas-top-menu .shell-top-menu-trailing {
  min-width: 0;
}

.session-canvas-top-menu-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.session-canvas-top-menu-copy-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.session-canvas-top-menu-copy .label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-primary);
}

.session-canvas-top-menu-copy-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.session-canvas-top-menu-actions {
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

.canvas-region-top-menu .sidebar-toggle-button.is-top-menu,
.canvas-region-top-menu-add-button {
  align-self: center;
  margin-bottom: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  color: var(--seg-text-3);
}

.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:hover,
.canvas-region-top-menu-add-button:hover {
  transform: none;
  background: rgba(84, 96, 109, 0.08);
  border-color: rgba(32, 41, 54, 0.08);
  box-shadow: none;
  color: var(--seg-text-1);
}

.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:focus-visible,
.canvas-region-top-menu-add-button:focus-visible {
  transform: none;
  background: rgba(84, 96, 109, 0.08);
  border-color: rgba(32, 41, 54, 0.08);
  box-shadow: none;
  color: var(--seg-text-1);
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.canvas-region-top-menu-add-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.canvas-region-top-menu-add-glyph {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  transform: none;
}

.canvas-top-menu-quick-anchor {
  position: relative;
  display: inline-flex;
}

.canvas-top-menu-selector-anchor {
  position: relative;
  display: inline-flex;
  max-width: 100%;
}

.canvas-terminal-toggle-anchor {
  position: absolute;
  left: var(--pane-terminal-gutter);
  bottom: 14px;
  z-index: 3;
}

.canvas-top-menu-button {
  min-height: var(--section-toolbar-pill-height);
  padding: 0 10px;
  cursor: pointer;
}

.session-canvas-top-menu .canvas-top-menu-button {
  min-height: var(--section-toolbar-pill-height);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--seg-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: none;
  white-space: nowrap;
}

.session-canvas-top-menu .canvas-top-menu-button:hover,
.session-canvas-top-menu .canvas-top-menu-button.is-active {
  background: rgba(84, 96, 109, 0.08);
  border-color: rgba(32, 41, 54, 0.08);
  box-shadow: none;
  color: var(--seg-text-1);
}

.session-canvas-top-menu .canvas-top-menu-button:focus-visible {
  background: rgba(84, 96, 109, 0.08);
  border-color: rgba(32, 41, 54, 0.08);
  box-shadow: none;
  color: var(--seg-text-1);
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.external-editor-split-button-anchor {
  max-width: none;
}

.session-canvas-top-menu .external-editor-split-button {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.session-canvas-top-menu .canvas-top-menu-editor-launch-button,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.session-canvas-top-menu .canvas-top-menu-editor-launch-button {
  width: 30px;
  min-width: 30px;
  border-radius: 8px 0 0 8px;
}

.session-canvas-top-menu .canvas-top-menu-editor-menu-button {
  position: relative;
  width: 20px;
  min-width: 20px;
  border-radius: 0 8px 8px 0;
}

.session-canvas-top-menu .canvas-top-menu-editor-menu-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: rgba(84, 96, 109, 0.16);
}

.session-canvas-top-menu .canvas-top-menu-editor-menu-button.is-active::before,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:hover::before,
.session-canvas-top-menu .canvas-top-menu-editor-menu-button:focus-visible::before {
  background: rgba(84, 96, 109, 0.24);
}

.external-editor-toolbar-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.external-editor-toolbar-icon-image,
.external-editor-toolbar-icon-fallback {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.external-editor-toolbar-icon-image {
  object-fit: contain;
}

.external-editor-toolbar-icon-fallback {
  background: #eef3f8;
  color: #35506a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.canvas-top-menu-git-trigger {
  gap: 6px;
}

.canvas-top-menu-permission-trigger,
.canvas-top-menu-mcp-trigger,
.canvas-top-menu-skill-trigger {
  gap: 4px;
  max-width: min(128px, 22vw);
}

.canvas-top-menu-permission-trigger span,
.canvas-top-menu-mcp-trigger span,
.canvas-top-menu-skill-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-top-menu-git-trigger svg {
  width: var(--section-toolbar-aux-icon-size);
  height: var(--section-toolbar-aux-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.canvas-top-menu-quick-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  display: grid;
  gap: 12px;
  background: var(--seg-dropdown-menu-surface);
  border: 1px solid rgba(147, 171, 195, 0.52);
  border-radius: var(--semantic-dropdown-menu-radius, var(--seg-radius-md));
  box-shadow: 0 18px 36px rgba(36, 59, 82, 0.14);
}

.canvas-top-menu-selector-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  min-width: 260px;
  max-width: min(360px, calc(100vw - 64px));
  max-height: min(320px, calc(100dvh - 180px));
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  border-radius: var(--semantic-dropdown-menu-radius, var(--seg-radius-md));
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 14px 34px rgba(46, 81, 118, 0.12);
  -webkit-app-region: no-drag;
}

.canvas-top-menu-action-selector-panel {
  padding: 10px 6px;
  gap: 2px;
}

.canvas-top-menu-context-panel {
  --context-menu-surface: var(--semantic-dropdown-menu-surface, var(--seg-dropdown-menu-surface, var(--surface-elevated, #ffffff)));
  --context-menu-border: var(--seg-border, var(--border-default, rgba(17, 24, 39, 0.12)));
  --context-menu-text: var(--seg-text-1, var(--text-primary, #1f2937));
  --context-menu-muted: var(--seg-text-2, var(--text-secondary, #6b7280));
  --context-menu-hover: var(--semantic-sidebar-tree-row-surface-hover, rgba(17, 24, 39, 0.06));
  --context-menu-hover-text: var(--semantic-sidebar-tree-row-text-hover, var(--context-menu-text));
  --context-menu-radius: var(--semantic-dropdown-menu-radius, var(--seg-radius-md, calc(var(--seg-radius-xs, 6px) + 2px)));
  --context-menu-focus: var(--focus-outline-color, rgba(212, 107, 99, 0.32));
  --context-menu-shadow: var(--ui-shadow-md, var(--shadow-md, 0 14px 34px rgba(17, 24, 39, 0.14)));

  min-width: 184px;
  max-width: min(320px, calc(100vw - 64px));
  overflow: hidden;
  padding: 6px;
  gap: 2px;
  border-color: var(--context-menu-border);
  border-radius: var(--context-menu-radius);
  background: var(--context-menu-surface);
  color: var(--context-menu-text);
  box-shadow: var(--context-menu-shadow);
}

.canvas-top-menu-permission-panel,
.canvas-top-menu-mcp-panel {
  max-width: min(260px, calc(100vw - 64px));
}

.canvas-top-menu-fit-panel {
  width: max-content;
  min-width: 0;
  max-width: min(240px, calc(100vw - 64px));
}

.canvas-top-menu-fit-panel .canvas-top-menu-context-option {
  width: 100%;
  max-width: calc(100vw - 76px);
  grid-template-columns: minmax(0, 1fr);
}

.canvas-top-menu-context-option {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: max(4px, calc(var(--context-menu-radius) - 2px));
  background: transparent;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

.canvas-top-menu-context-option:hover,
.canvas-top-menu-context-option:focus-visible,
.canvas-top-menu-context-option.is-selected,
.canvas-top-menu-context-option[aria-selected="true"],
.canvas-top-menu-context-option[aria-checked="true"] {
  background: var(--context-menu-hover);
  color: var(--context-menu-hover-text);
  outline: none;
  box-shadow: none;
}

.canvas-top-menu-context-option:focus-visible {
  box-shadow: inset 0 0 0 1px var(--context-menu-focus);
}

.canvas-top-menu-context-option:disabled,
.canvas-top-menu-context-option[aria-disabled="true"] {
  opacity: 0.48;
  cursor: default;
}

.canvas-top-menu-context-option:disabled:hover,
.canvas-top-menu-context-option:disabled:focus-visible,
.canvas-top-menu-context-option[aria-disabled="true"]:hover,
.canvas-top-menu-context-option[aria-disabled="true"]:focus-visible {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.canvas-top-menu-context-option-label,
.canvas-top-menu-permission-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-top-menu-context-option-status,
.canvas-top-menu-permission-option-status {
  justify-self: end;
  color: var(--context-menu-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.canvas-top-menu-context-option:hover .canvas-top-menu-context-option-status,
.canvas-top-menu-context-option:focus-visible .canvas-top-menu-context-option-status,
.canvas-top-menu-context-option.is-selected .canvas-top-menu-context-option-status,
.canvas-top-menu-context-option[aria-selected="true"] .canvas-top-menu-context-option-status,
.canvas-top-menu-context-option[aria-checked="true"] .canvas-top-menu-context-option-status {
  color: currentColor;
}

.canvas-top-menu-segmented-option {
  border: 0 !important;
  border-radius: var(--seg-radius-sm);
  background: transparent;
  box-shadow: none !important;
}

.canvas-top-menu-segmented-option:hover,
.canvas-top-menu-segmented-option:focus-visible,
.canvas-top-menu-segmented-option.is-selected {
  background: var(--context-menu-hover, var(--semantic-sidebar-tree-row-surface-hover, rgba(17, 24, 39, 0.06)));
  border-color: transparent;
  color: var(--context-menu-hover-text, var(--semantic-sidebar-tree-row-text-hover, #1f2937));
  box-shadow: none;
}

.canvas-top-menu-skill-selector-panel {
  min-width: 220px;
  max-width: min(280px, calc(100vw - 64px));
  padding: 8px;
  gap: 4px;
}

.canvas-top-menu-searchable-panel {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.canvas-top-menu-searchable-panel .composer-menu-search {
  position: relative;
  z-index: 1;
  padding: 0 0 6px;
  background: var(--context-menu-surface);
}

.canvas-top-menu-searchable-panel .composer-menu-search-input {
  min-height: 32px;
  border-color: var(--context-menu-border);
  border-radius: max(4px, calc(var(--context-menu-radius) - 2px));
  background: transparent;
  color: var(--context-menu-text);
  font-family: var(--font-sans);
  font-size: 13px;
  box-shadow: none;
}

.canvas-top-menu-searchable-panel .composer-menu-search-input:focus {
  border-color: var(--context-menu-border);
  box-shadow: inset 0 0 0 1px var(--context-menu-focus);
}

.canvas-top-menu-searchable-panel .composer-menu-options {
  min-height: 0;
  display: grid;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.canvas-top-menu-searchable-panel .composer-menu-options::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.canvas-top-menu-skill-option {
  grid-template-columns: minmax(0, 1fr);
}

.canvas-top-menu-skill-option .canvas-top-menu-context-option-label {
  justify-self: start;
}

.canvas-top-menu-quick-field {
  display: grid;
  gap: 6px;
}

.canvas-top-menu-quick-field span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7387;
}

.canvas-top-menu-quick-field input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.canvas-top-menu-quick-field input::placeholder {
  color: #8da0b4;
}

.canvas-top-menu-quick-actions {
  display: flex;
  gap: 10px;
}

.canvas-top-menu-quick-actions .primary-button,
.canvas-top-menu-quick-actions .secondary-button {
  flex: 1 1 0;
  min-height: 38px;
}

.canvas-top-menu-quick-status {
  min-height: 18px;
  margin: 0;
  color: #617589;
  font-size: 12px;
  line-height: 1.5;
}

.canvas-top-menu-quick-status.is-success {
  color: #1f6b3d;
}

.canvas-top-menu-quick-status.is-error {
  color: #b13a3a;
}

.git-quick-menu-panel {
  width: min(360px, calc(100vw - 32px));
}

.git-quick-menu-options,
.git-quick-menu-form {
  display: grid;
  gap: 6px;
}

.git-quick-menu-options {
  gap: 2px;
}

.git-quick-menu-option {
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.git-quick-menu-option:disabled {
  background: #f3f6f8;
  color: #94a3b2;
  cursor: not-allowed;
}

.create-session-shell {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.create-session-card {
  width: min(100%, 360px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: rise-in 260ms ease;
}

.create-session-logo {
  --create-session-logo-image: url("/黑色.svg");

  display: block;
  width: min(200px, 48vw);
  aspect-ratio: 1888 / 1884;
  background-image: var(--create-session-logo-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: none;
}

:root[data-theme="dark"] .create-session-logo {
  --create-session-logo-image: url("/白色.svg");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .create-session-logo {
    --create-session-logo-image: url("/白色.svg");
  }
}

.create-session-native-select {
  min-width: min(100%, 320px);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #182532;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  appearance: none;
  cursor: pointer;
}

.create-session-native-select:hover,
.create-session-native-select:focus-visible {
  color: #123a5a;
  outline: none;
}

.session-row-copy,
.session-tab-copy {
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.session-canvas-top-menu-copy .side-chat-badge {
  min-height: 20px;
  padding: 0 8px;
  font-size: 11px;
}

.canvas-top-menu-button svg {
  width: var(--section-toolbar-icon-size);
  height: var(--section-toolbar-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.canvas-region-top-menu,
.session-canvas-top-menu {
  padding-left: 12px;
  padding-right: 12px;
}

/* Canvas integration pass: make the center region part of the shell, not a floating page */

.canvas.is-workbench {
  background: var(--seg-shell);
}

.workbench-pane.is-focused .workbench-pane-live-region {
  border-color: transparent;
}

/* Sage / Teal & Slate theme overrides */

.session-tab,
.sidebar-toggle-button.is-top-menu,
.canvas-top-menu-button {
  border: 1px solid var(--seg-border);
  background: var(--mix-seg-panel-92-transparent-8);
  color: var(--seg-text-2);
  box-shadow: none;
}

.sidebar-toggle-button.is-top-menu:hover,
.sidebar-toggle-button.is-top-menu:focus-visible,
.top-menu-view-button:hover,
.top-menu-view-button:focus-visible,
.session-tab:hover,
.session-tab:focus-visible,
.session-tab.is-active,
.canvas-top-menu-button:hover,
.canvas-top-menu-button:focus-visible {
  background: var(--seg-panel);
  border-color: var(--seg-border);
  color: var(--seg-text-1);
  box-shadow: none;
}

.top-menu-view-button {
  color: var(--seg-text-2);
}

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

.top-menu-view-button.is-active,
.top-menu-view-button.is-active:hover,
.top-menu-view-button.is-active:focus-visible {
  background: var(--mix-brand-accent-active-12-transparent-88);
  border-color: var(--mix-brand-accent-active-20-transparent-80);
  color: var(--brand-accent-active);
}

.canvas-region-top-menu {
  --canvas-region-tab-border: var(--seg-border);
  --canvas-region-tab-divider: var(--seg-divider);
  --canvas-region-tab-inactive-bg: var(--mix-seg-shell-84-seg-panel-muted-16);
  --canvas-region-tab-hover: var(--mix-seg-panel-66-seg-panel-muted-34);
  --canvas-region-tab-focus: var(--mix-seg-accent-soft-74-seg-panel-26);
}

.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:hover,
.canvas-region-top-menu-add-button:hover,
.canvas-region-top-menu .sidebar-toggle-button.is-top-menu:focus-visible,
.canvas-region-top-menu-add-button:focus-visible,
.canvas-region-top-menu .session-tab-close:hover,
.canvas-region-top-menu .session-tab-close:focus-visible {
  background: var(--seg-accent-soft);
  border-color: var(--seg-accent);
  color: var(--seg-accent-strong);
  box-shadow: none;
}

.pane-drop-preview-current {
  background: var(--mix-seg-panel-88-white-12);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    inset 0 0 0 1px var(--mix-seg-border-74-transparent-26);
}

.pane-drop-preview-incoming {
  background: var(--mix-brand-accent-active-12-seg-panel-88);
  box-shadow:
    0 16px 36px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px var(--mix-brand-accent-active-26-seg-border-74);
}

.create-session-native-select {
  color: var(--seg-text-1);
}

.create-session-native-select:hover,
.create-session-native-select:focus-visible {
  color: var(--seg-accent-strong);
  outline: none;
}

.window-control {
  color: var(--seg-text-2);
}

.window-control:hover,
.window-control:focus-visible {
  background: var(--mix-seg-text-2-12-transparent-88);
  color: var(--seg-text-1);
  transform: none;
}
