.dockview-workbench-panes {
  min-width: 0;
  min-height: 0;
  background: var(--seg-shell);
}

.dockview-theme-anybox {
  width: 100%;
  height: 100%;
  --dv-tabs-and-actions-container-height: 40px;
  --dv-tabs-and-actions-container-font-size: 13px;
  --dv-background-color: var(--seg-shell);
  --dv-group-view-background-color: var(--seg-shell);
  --dv-tabs-and-actions-container-background-color: var(--seg-pane-tab-bar-surface);
  --dv-activegroup-visiblepanel-tab-background-color: var(--seg-shell);
  --dv-activegroup-visiblepanel-tab-color: var(--seg-text);
  --dv-inactivegroup-visiblepanel-tab-background-color: var(--seg-pane-tab-bar-surface);
  --dv-inactivegroup-visiblepanel-tab-color: var(--seg-text-muted);
  --dv-tab-divider-color: var(--seg-divider);
  --dv-separator-border: var(--seg-border);
  --dv-paneview-active-outline-color: var(--seg-accent);
  --dv-drag-over-background-color: var(--seg-accent-soft);
  --dv-drag-over-border-color: var(--seg-accent);
  --dv-active-sash-color: var(--seg-accent);
  --dv-tab-margin: 0;
  color: var(--seg-text);
  font: inherit;
}

.dockview-theme-anybox .dv-view,
.dockview-theme-anybox .dv-groupview,
.dockview-theme-anybox .dv-content-container {
  min-width: 0;
  min-height: 0;
}

.dockview-theme-anybox .dv-content-container,
.dockview-theme-anybox .workbench-pane,
.dockview-theme-anybox .workbench-pane-stage,
.dockview-theme-anybox .workbench-pane-live-region {
  -webkit-app-region: no-drag;
}

.dockview-theme-anybox .workbench-pane button,
.dockview-theme-anybox .workbench-pane input,
.dockview-theme-anybox .workbench-pane textarea,
.dockview-theme-anybox .workbench-pane select,
.dockview-theme-anybox .workbench-pane a,
.dockview-theme-anybox .workbench-pane [role="button"],
.dockview-theme-anybox .workbench-pane [contenteditable="true"] {
  -webkit-app-region: no-drag;
}

.dockview-theme-anybox .dv-tabs-and-actions-container {
  --dockview-tab-bar-bg: var(--seg-pane-tab-bar-surface);
  --dockview-tab-border: var(--seg-border);
  --dockview-tab-divider: var(--seg-divider);
  --dockview-tab-radius: 6px;
  --dockview-tab-active-bg: var(--seg-shell);
  --dockview-tab-hover-bg: var(--mix-seg-panel-66-seg-panel-muted-34);
  --dockview-tab-icon-color: var(--semantic-accent-icon);
  --dockview-tab-icon-hover-color: var(--semantic-accent-icon-hover);
  position: relative;
  min-height: var(--dv-tabs-and-actions-container-height);
  padding: 0 12px 0 0;
  background: var(--dockview-tab-bar-bg);
  border-bottom: 0;
  color: var(--seg-text-2);
  -webkit-app-region: no-drag;
  user-select: none;
  isolation: isolate;
}

.dockview-theme-anybox .dv-tabs-and-actions-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--dockview-tab-border);
  pointer-events: none;
  z-index: 1;
}

.dockview-theme-anybox .dv-tabs-container {
  align-items: stretch;
  overflow: auto hidden;
  scrollbar-width: none;
  -webkit-app-region: no-drag;
}

.dockview-theme-anybox .dv-tabs-container::-webkit-scrollbar {
  display: none;
}

.dockview-theme-anybox .dv-tabs-and-actions-container .dv-void-container {
  min-height: 100%;
}

.dockview-theme-anybox .dv-tabs-and-actions-container .dv-void-container.dv-draggable {
  cursor: default;
  -webkit-app-region: drag;
}

.dockview-theme-anybox .dv-tab {
  min-width: 0;
  max-width: min(240px, 30vw);
  display: flex;
  align-items: stretch;
  padding: 0;
  margin: 0 0 -1px;
  border-radius: var(--dockview-tab-radius) var(--dockview-tab-radius) 0 0;
  background: transparent;
  color: var(--seg-text-2);
  font: inherit;
  overflow: hidden;
  cursor: default;
  -webkit-app-region: no-drag;
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.dockview-theme-anybox .dv-tabs-container.dv-horizontal .dv-tab::before {
  display: none;
}

.dockview-theme-anybox .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab,
.dockview-theme-anybox .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-active-tab {
  position: relative;
  z-index: 2;
  background: var(--dockview-tab-active-bg);
  color: var(--seg-text-1);
  box-shadow:
    inset 0 1px 0 var(--dockview-tab-border),
    inset 1px 0 0 var(--dockview-tab-border),
    inset -1px 0 0 var(--dockview-tab-border);
}

.dockview-theme-anybox .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab,
.dockview-theme-anybox .dv-groupview.dv-inactive-group > .dv-tabs-and-actions-container .dv-tabs-container > .dv-tab.dv-inactive-tab {
  background: transparent;
  color: var(--seg-text-2);
}

.dockview-theme-anybox .dv-tabs-container > .dv-tab.dv-inactive-tab:hover,
.dockview-theme-anybox .dv-tabs-container > .dv-tab.dv-inactive-tab:focus-within {
  background: var(--dockview-tab-hover-bg);
  color: var(--seg-text-1);
}

.dockview-theme-anybox .dv-tab:not(:first-child) {
  box-shadow: inset 1px 0 0 var(--dockview-tab-divider);
}

.dockview-theme-anybox .dv-tab.dv-active-tab,
.dockview-theme-anybox .dv-tab:hover,
.dockview-theme-anybox .dv-tab:focus-within {
  box-shadow: none;
}

.dockview-theme-anybox .dockview-workbench-tab-content,
.dockview-theme-anybox .dockview-workbench-tab-trigger,
.dockview-theme-anybox .dockview-workbench-tab-close,
.dockview-theme-anybox .dockview-workbench-header-actions,
.dockview-theme-anybox .dockview-workbench-header-actions button {
  -webkit-app-region: no-drag;
}

.dockview-theme-anybox .dockview-workbench-tab-content {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 12px;
}

.dockview-theme-anybox .dockview-workbench-tab-trigger {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 6px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.dockview-theme-anybox .dv-tab.dv-active-tab .dockview-workbench-tab-trigger {
  font-weight: 500;
}

.dockview-theme-anybox .dockview-workbench-tab-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dockview-theme-anybox .dockview-workbench-tab-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dockview-theme-anybox .dockview-workbench-tab-close {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 5px;
  color: var(--dockview-tab-icon-color);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.dockview-theme-anybox .dockview-workbench-tab-close svg {
  width: var(--section-toolbar-aux-icon-size);
  height: var(--section-toolbar-aux-icon-size);
  stroke-width: 2;
}

.dockview-theme-anybox .dv-tab:hover .dockview-workbench-tab-close,
.dockview-theme-anybox .dv-tab:focus-within .dockview-workbench-tab-close,
.dockview-theme-anybox .dv-tab.dv-active-tab .dockview-workbench-tab-close {
  opacity: 1;
  pointer-events: auto;
}

.dockview-theme-anybox .dockview-workbench-tab-close:hover,
.dockview-theme-anybox .dockview-workbench-tab-close:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--dockview-tab-icon-hover-color);
}

.dockview-theme-anybox .dockview-workbench-header-actions {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
}

.dockview-theme-anybox .dockview-workbench-header-actions .sidebar-toggle-button.is-top-menu,
.dockview-theme-anybox .dockview-workbench-header-actions .canvas-region-top-menu-add-button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--dockview-tab-icon-color);
  flex: 0 0 auto;
}

.dockview-theme-anybox .dockview-workbench-header-actions .dockview-workbench-dock-back-button {
  width: auto;
  min-width: 92px;
  padding: 0 12px;
  white-space: nowrap;
}

.dockview-theme-anybox .dockview-workbench-header-actions .sidebar-toggle-button.is-top-menu:hover,
.dockview-theme-anybox .dockview-workbench-header-actions .sidebar-toggle-button.is-top-menu:focus-visible,
.dockview-theme-anybox .dockview-workbench-header-actions .canvas-region-top-menu-add-button:hover,
.dockview-theme-anybox .dockview-workbench-header-actions .canvas-region-top-menu-add-button:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--dockview-tab-icon-hover-color);
}

.dockview-theme-anybox .dockview-workbench-header-actions .window-controls {
  align-self: center;
}

.dockview-theme-anybox .workbench-pane {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}

.dockview-theme-anybox .workbench-pane-stage,
.dockview-theme-anybox .workbench-pane-live-region {
  border-radius: 0;
}

.dockview-theme-anybox .workbench-pane-live-region.is-dockview-managed {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.dockview-workbench-missing-panel {
  min-height: 100%;
}
