.codex-panel__threads {
  display: flex;
  flex-direction: column;
  gap: var(--nav-item-margin-bottom, var(--codex-panel-panel-gap));
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
}

.codex-panel__thread-row--renaming {
  grid-template-columns: minmax(0, 1fr) auto;
}

.codex-panel__thread-row--archive-confirming {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.codex-panel__thread-rename {
  box-sizing: border-box;
  min-height: var(--codex-panel-size-nav-item);
  cursor: text;
}

.codex-panel__thread-rename-field {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: visible;
  font-size: var(--codex-panel-toolbar-text-size);
  line-height: var(--codex-panel-toolbar-line-height);
}

.codex-panel__thread-rename-input {
  width: 100%;
}

.codex-panel__thread {
  min-height: var(--codex-panel-size-nav-item);
  margin: 0;
  box-shadow: none;
}

.codex-panel__thread-action {
  visibility: hidden;
  opacity: 0;
}

.codex-panel__thread-row:hover .codex-panel__thread-action,
.codex-panel__thread-row:focus-within .codex-panel__thread-action,
.codex-panel__thread-action:focus-visible {
  visibility: visible;
  opacity: 1;
}

.codex-panel__thread-action:disabled {
  visibility: visible;
  opacity: 0.4;
}

.codex-panel__thread-row--archive-confirming .codex-panel__thread-action {
  visibility: visible;
  opacity: 1;
}

.codex-panel__thread--empty {
  color: var(--text-faint);
  pointer-events: none;
}
