/* Generated from legacy styles.css: composer, utility bar, and branch/model menus. */



.assistant-shell,
.composer,
.empty-state {
  border: 1px solid rgba(166, 186, 208, 0.42);
  box-shadow: 0 14px 34px rgba(46, 81, 118, 0.06);
}

.workbench-panes.has-multiple .thread-column,
.workbench-panes.has-multiple .composer,
.workbench-panes.has-multiple .composer-utility-bar {
  width: 100%;
}

.brand-line,
.workspace-group-header,
.session-card-top,
.turn-meta,
.assistant-header,
.section-header,
.composer-toolbar,
.mode-switch,
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.thread-shell,
.thread-column,
.composer-selectors,
.composer-actions,
.trace-item-header {
  display: flex;
  gap: 12px;
}

.git-quick-menu-option:disabled .composer-menu-option-copy small,
.git-quick-menu-option:disabled .composer-menu-option-check {
  color: #94a3b2;
}

.prompt-input-shell {
  border-radius: 28px;
  border-radius: var(--seg-radius-sm);
}

.composer-stack {
  display: grid;
  gap: 4px;
  padding: 0 var(--pane-content-gutter) 12px;
}

.composer-task-progress {
  width: 100%;
  max-width: var(--pane-content-max-width);
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-md);
  background: var(--mix-seg-panel-muted-88-seg-panel-12);
  color: var(--seg-text-2);
}

.composer-task-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.composer-task-progress-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--seg-text-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-task-progress-active {
  flex: 0 0 auto;
  max-width: 140px;
  overflow: hidden;
  color: var(--seg-text-3);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-task-progress-list {
  max-height: 104px;
  margin: 7px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.composer-task-progress-row {
  min-height: 22px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--seg-text-2);
  font-size: 13px;
  line-height: 1.35;
  list-style: none;
}

.composer-task-progress-marker {
  width: 7px;
  height: 7px;
  justify-self: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--seg-text-3);
}

.composer-task-progress-copy {
  min-width: 0;
  display: flex;
  gap: 5px;
}

.composer-task-progress-index {
  flex: 0 0 auto;
  color: var(--seg-text-3);
}

.composer-task-progress-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-task-progress-status {
  flex: 0 0 auto;
  color: var(--seg-text-3);
  font-size: 11px;
}

.composer-task-progress-row.is-running {
  color: var(--seg-text-1);
  font-weight: 650;
}

.composer-task-progress-row.is-running .composer-task-progress-marker {
  color: var(--brand-accent-active);
  background: currentColor;
}

.composer-task-progress-row.is-completed {
  color: var(--seg-text-3);
}

.composer-task-progress-row.is-completed .composer-task-progress-marker {
  color: var(--seg-success-text);
  background: currentColor;
}

.composer-task-progress-row.is-completed .composer-task-progress-title {
  text-decoration: line-through;
}

.composer-task-progress-row.is-blocked .composer-task-progress-marker {
  color: var(--seg-warning-text);
  background: var(--seg-warning-surface);
}

.composer-pending-steer-drawer {
  width: 100%;
  max-width: var(--pane-content-max-width);
  margin: 0 auto;
  display: grid;
  justify-items: end;
  gap: 6px;
  pointer-events: none;
}

.composer-pending-steer-card {
  max-width: min(100%, 380px);
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(190, 154, 143, 0.52);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-composer-surface);
  color: var(--seg-text-1);
  box-shadow: 0 8px 18px rgba(73, 49, 43, 0.06);
  pointer-events: auto;
}

.composer-pending-steer-text {
  color: var(--seg-text-1);
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.composer-pending-steer-note {
  margin-top: 8px;
  display: grid;
  gap: 2px;
  color: #b48072;
  font-size: 13px;
  line-height: 1.45;
}

.composer-utility-chip {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: rgba(245, 248, 251, 0.94);
  color: #5f7384;
}

.composer-utility-git-branch-anchor,
.composer-utility-permission-anchor {
  position: relative;
}

.composer-utility-git-branch-button,
.composer-utility-permission-toggle {
  width: auto;
  max-width: min(280px, calc(100vw - 64px));
  padding: 0 10px 0 12px;
  gap: 8px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.composer-utility-git-branch-button:hover,
.composer-utility-git-branch-button:focus-visible,
.composer-utility-git-branch-button.is-active,
.composer-utility-permission-toggle:hover,
.composer-utility-permission-toggle:focus-visible,
.composer-utility-permission-toggle.is-active {
  background: var(--seg-composer-button-surface);
  border-color: var(--mix-seg-accent-28-seg-border-72);
  color: var(--seg-composer-button-text);
  box-shadow: 0 10px 20px var(--mix-seg-accent-12-transparent-88);
  outline: none;
}

.composer-utility-git-branch-button svg,
.composer-utility-permission-toggle svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-utility-git-branch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.composer-utility-permission-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.composer-utility-git-branch-panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 8;
  width: min(320px, calc(100vw - 32px));
  max-height: min(380px, calc(100dvh - 220px));
  padding: 8px 8px 10px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(147, 171, 195, 0.52);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 18px 36px rgba(36, 59, 82, 0.14);
}

.composer-utility-git-branch-list {
  max-height: min(240px, calc(100dvh - 320px));
  overflow: auto;
  scrollbar-gutter: stable;
  display: grid;
  gap: 4px;
}

.composer-utility-git-branch-option {
  min-height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.composer-utility-git-branch-option:disabled {
  background: #f3f6f8;
  color: #94a3b2;
  cursor: not-allowed;
}

.composer-utility-git-branch-option:disabled .composer-menu-option-copy small,
.composer-utility-git-branch-option:disabled .composer-menu-option-check {
  color: #94a3b2;
}

.composer-utility-git-branch-meta {
  align-items: flex-start;
}

.composer-utility-git-branch-footer {
  position: sticky;
  bottom: 0;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 24px);
}

.composer-utility-git-branch-create-button {
  width: 100%;
  justify-content: center;
}

.composer-utility-git-branch-status,
.git-branch-create-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #607488;
}

.composer-utility-git-branch-status.is-error,
.git-branch-create-error {
  color: #a33d2f;
}

.git-branch-badge {
  min-height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: #f4f8fc;
  color: #4b6074;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.composer-utility-git-branch-option .composer-menu-option-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.context-pressure-indicator.is-low {
  color: #2a8357;
}

.context-pressure-indicator.is-medium {
  color: #9a6a18;
}

.context-pressure-indicator.is-high {
  color: #b14537;
}

.composer-utility-permission-panel {
  min-width: 180px;
  max-height: none;
}

.composer-utility-chip.context-pressure-indicator {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.context-pressure-ring {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.context-pressure-ring-track,
.context-pressure-ring-progress,
.context-pressure-ring-core {
  fill: none;
}

.context-pressure-ring-track,
.context-pressure-ring-progress {
  stroke-width: 2.5;
}

.context-pressure-ring-track {
  stroke: rgba(116, 143, 169, 0.22);
}

.context-pressure-ring-progress {
  stroke: currentColor;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 14px 14px;
  transition: stroke-dashoffset 180ms ease, stroke 180ms ease;
}

.context-pressure-ring-core {
  fill: currentColor;
  opacity: 0.88;
}

.git-branch-create-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 35, 47, 0.18);
}

.git-branch-create-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 20px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(147, 171, 195, 0.52);
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(36, 59, 82, 0.16);
}

.git-branch-create-field {
  display: grid;
  gap: 6px;
}

.git-branch-create-field span {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5f7387;
}

.git-branch-create-field input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  background: var(--seg-panel);
  color: var(--seg-text-1);
}

.git-branch-create-field input::placeholder {
  color: #8da0b4;
}

.git-branch-create-field input:focus-visible {
  border-color: var(--mix-seg-accent-42-seg-border-58);
  box-shadow: 0 0 0 3px var(--mix-seg-accent-12-transparent-88);
}

.git-branch-create-actions {
  display: flex;
  gap: 10px;
}

.git-branch-create-actions .primary-button,
.git-branch-create-actions .secondary-button {
  flex: 1 1 0;
}

.composer-editor-input {
  width: 100%;
  min-height: var(--composer-editor-min-height);
  padding: 0;
  display: block;
  position: relative;
  z-index: 1;
  color: var(--seg-text-1);
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  caret-color: var(--seg-accent);
}

.composer-editor-shell {
  position: relative;
  min-height: var(--composer-editor-min-height);
}

.composer-editor-placeholder {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  color: var(--seg-text-3);
  font-size: 16px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  pointer-events: none;
}

.composer-toolbar {
  margin-top: 4px;
}

.composer-attachment-strip {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.composer-attachment-chip {
  min-height: 32px;
  padding: 0 4px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: #f5f8fb;
  color: #314353;
}

.composer-attachment-chip.is-invalid {
  border-color: rgba(187, 63, 63, 0.32);
  background: #fff4f4;
  color: #7d1f1f;
}

.composer-inline-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--mix-seg-accent-24-seg-border-76);
  background: var(--mix-seg-accent-soft-72-seg-panel-28);
  color: var(--seg-accent-strong);
  box-sizing: border-box;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  line-height: 1;
  vertical-align: text-bottom;
}

.composer-inline-tag.is-file {
  border-color: var(--mix-seg-accent-28-seg-border-72);
  background: var(--mix-seg-accent-soft-78-seg-panel-22);
}

.composer-inline-tag.is-comment {
  border-color: rgba(201, 132, 24, 0.3);
  background: #fff7e5;
  color: #7c4a00;
}

.composer-inline-tag.is-skill {
  border-color: rgba(67, 140, 107, 0.28);
  background: #eef8f1;
  color: #1e5d3e;
}

.composer-inline-tag.is-mcp {
  border-color: rgba(113, 104, 209, 0.24);
  background: #f2f0ff;
  color: #403a96;
}

.composer-attachment-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
}

.composer-attachment-remove {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #5f7387;
  cursor: pointer;
}

.composer-attachment-remove:hover,
.composer-attachment-remove:focus-visible {
  background: var(--mix-seg-accent-soft-72-transparent-28);
  color: var(--seg-accent-strong);
}

.composer-attachment-remove svg,
.composer-selector-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.composer-selectors {
  align-items: flex-start;
  flex-wrap: wrap;
}

.composer-menu-anchor {
  position: relative;
}

.composer-selector-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--seg-radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--seg-text-2);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.composer-selector-button.is-icon-only,
.composer-actions .primary-button.is-icon-only,
.composer-actions .secondary-button.is-icon-only {
  width: 34px;
  min-width: 34px;
  padding: 0;
  justify-content: center;
}

.composer-selector-button:hover,
.composer-selector-button:focus-visible {
  background: var(--seg-composer-button-surface);
  border-color: transparent;
  color: var(--seg-composer-button-text);
}

.composer-selector-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.composer-attachment-note {
  margin: 12px 0 0;
  color: #9b2c2c;
  font-size: 13px;
  line-height: 1.5;
}

.composer-menu-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 3;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 64px));
  max-height: min(320px, calc(100dvh - 180px));
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(166, 186, 208, 0.42);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: 0 14px 34px rgba(46, 81, 118, 0.12);
  scrollbar-color: var(--mix-seg-text-3-54-transparent-46) var(--seg-dropdown-menu-surface);
}

.composer-menu-panel:not(.is-scrollbar-hidden)::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.composer-menu-panel:not(.is-scrollbar-hidden)::-webkit-scrollbar-track {
  background: var(--seg-dropdown-menu-surface);
}

.composer-menu-panel:not(.is-scrollbar-hidden)::-webkit-scrollbar-thumb {
  border: 3px solid var(--seg-dropdown-menu-surface);
  border-radius: 999px;
  background: var(--mix-seg-text-3-54-transparent-46);
}

.composer-menu-panel.is-scrollbar-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.composer-menu-panel.is-scrollbar-hidden::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.composer-menu-search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0 0 4px;
  background: inherit;
}

.composer-model-menu-panel {
  width: min(560px, calc(100vw - 64px));
  max-width: min(560px, calc(100vw - 64px));
  height: min(360px, calc(100dvh - 180px));
  max-height: 360px;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.composer-model-menu-panel .composer-menu-search {
  position: relative;
  top: auto;
  z-index: 2;
  margin: -8px -8px 0;
  padding: 8px 8px 6px;
  border-bottom: 1px solid rgba(166, 186, 208, 0.28);
  background: var(--seg-dropdown-menu-surface);
}

.composer-model-menu-options {
  min-height: 0;
  overflow: auto;
  align-content: start;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-top: 0;
  scrollbar-color: var(--mix-seg-text-3-54-transparent-46) var(--seg-dropdown-menu-surface);
}

.composer-model-menu-options::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.composer-model-menu-options::-webkit-scrollbar-track {
  background: var(--seg-dropdown-menu-surface);
}

.composer-model-menu-options::-webkit-scrollbar-thumb {
  border: 3px solid var(--seg-dropdown-menu-surface);
  border-radius: 999px;
  background: var(--mix-seg-text-3-54-transparent-46);
}

.composer-model-picker-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 1fr);
  gap: 8px;
}

.composer-model-provider-list,
.composer-model-menu-options {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  display: grid;
  align-content: start;
  gap: 4px;
}

.composer-model-provider-list {
  scrollbar-color: var(--mix-seg-text-3-54-transparent-46) var(--seg-dropdown-menu-surface);
}

.composer-model-provider-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.composer-model-provider-list::-webkit-scrollbar-track {
  background: var(--seg-dropdown-menu-surface);
}

.composer-model-provider-list::-webkit-scrollbar-thumb {
  border: 3px solid var(--seg-dropdown-menu-surface);
  border-radius: 999px;
  background: var(--mix-seg-text-3-54-transparent-46);
}

.composer-model-provider-option {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--seg-radius-xs);
  background: transparent;
  color: #314353;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.composer-model-provider-option:hover,
.composer-model-provider-option:focus-visible,
.composer-model-provider-option.is-active {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
}

.composer-model-provider-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.composer-menu-search-input {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-xs);
  background: #ffffff;
  color: var(--seg-text-1);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.composer-menu-search-input::placeholder {
  color: var(--seg-text-3);
}

.composer-menu-search-input:focus {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  box-shadow: inset 0 0 0 1px var(--mix-seg-accent-16-transparent-84);
}

.composer-menu-options {
  display: grid;
  gap: 4px;
}

.composer-command-menu {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  min-width: 0;
  max-width: none;
  max-height: min(360px, calc(100dvh - 220px));
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 10px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(156, 179, 204, 0.48);
  border-radius: calc(var(--seg-radius-sm) + 4px);
  background: rgba(251, 252, 253, 0.98);
  box-shadow: 0 22px 48px rgba(31, 48, 66, 0.18);
  backdrop-filter: blur(18px);
  animation: rise-in 180ms ease;
}

.composer-command-option {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 0;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #314353;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.composer-command-option:hover,
.composer-command-option:focus-visible,
.composer-command-option.is-active {
  background: #eef4fa;
  border-color: rgba(125, 154, 184, 0.28);
  color: #123a5a;
}

.composer-command-option:disabled {
  opacity: 0.58;
  cursor: default;
}

.composer-command-option-copy {
  min-width: 0;
  display: block;
}

.composer-command-option-copy.is-file {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.composer-command-option-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.composer-command-option-copy.is-file strong {
  flex: 0 1 auto;
  min-width: 0;
}

.composer-command-option-meta {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
  color: #607488;
  font-size: 12px;
  line-height: 1.4;
}

.composer-command-empty {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(238, 244, 250, 0.72);
  color: #607488;
  font-size: 13px;
  line-height: 1.5;
}

.composer-menu-divider {
  height: 1px;
  margin: 6px 2px;
  background: rgba(166, 186, 208, 0.42);
}

.composer-menu-section-label {
  margin: 2px 10px 4px;
  color: #607488;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.composer-menu-option {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: transparent;
  color: #314353;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.composer-menu-option:hover,
.composer-menu-option:focus-visible,
.composer-menu-option.is-selected {
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
}

.composer-menu-empty {
  margin: 0;
  padding: 6px 10px;
  color: #607488;
  font-size: 13px;
  line-height: 1.5;
}

.composer-menu-option-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.external-editor-menu-option {
  min-height: 34px;
  padding: 0 12px;
  justify-content: flex-start;
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  border-radius: var(--seg-radius-sm);
  background: transparent;
  box-shadow: none !important;
}

.external-editor-menu-option-main {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.external-editor-menu-option .composer-menu-option-copy {
  display: block;
}

.external-editor-menu-option-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.external-editor-menu-option-icon-image,
.external-editor-menu-option-icon-fallback {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

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

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

.external-editor-menu-option-icon-fallback[data-editor-kind="vscode"],
.external-editor-toolbar-icon-fallback[data-editor-kind="vscode"] {
  background: #e8f3ff;
  color: #1d70f5;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="visualstudio"],
.external-editor-toolbar-icon-fallback[data-editor-kind="visualstudio"] {
  background: #f1e9ff;
  color: #6d3ed1;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="cursor"],
.external-editor-toolbar-icon-fallback[data-editor-kind="cursor"] {
  background: #eef1f4;
  color: #1b2430;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="windsurf"],
.external-editor-toolbar-icon-fallback[data-editor-kind="windsurf"] {
  background: #e8f7f5;
  color: #12746a;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="githubDesktop"],
.external-editor-toolbar-icon-fallback[data-editor-kind="githubDesktop"] {
  background: #f4ecff;
  color: #7f4cc9;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="explorer"],
.external-editor-toolbar-icon-fallback[data-editor-kind="explorer"] {
  background: #fff3da;
  color: #9f6a00;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="terminal"],
.external-editor-toolbar-icon-fallback[data-editor-kind="terminal"] {
  background: #eaedf1;
  color: #2c3848;
}

.external-editor-menu-option-icon-fallback[data-editor-kind="wsl"],
.external-editor-toolbar-icon-fallback[data-editor-kind="wsl"] {
  background: #e8f4ff;
  color: #2263b5;
}

.external-editor-menu-option .composer-menu-option-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.external-editor-menu-panel {
  width: max-content;
  min-width: 0;
  max-width: min(220px, calc(100vw - 64px));
  padding: 6px;
  gap: 2px;
}

.composer-menu-option-copy strong {
  color: currentColor;
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-menu-option-copy small,
.composer-menu-option-check {
  color: #607488;
  font-size: 12px;
  line-height: 1.4;
}

.composer-menu-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-model-option-copy {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.composer-model-option-copy strong {
  min-width: 0;
}

.composer-model-option-copy small {
  flex: 0 1 auto;
  min-width: 0;
}

.composer-menu-option-check {
  flex: 0 0 auto;
}

.composer-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.composer-editor-input[contenteditable="true"]:empty::before {
  content: "";
}

.composer-utility-chip,
.composer-utility-git-branch-button,
.composer-selector-button,
.composer-attachment-chip {
  background: var(--seg-panel-muted);
}

.composer-utility-git-branch-button:hover,
.composer-utility-git-branch-button:focus-visible,
.composer-utility-git-branch-button.is-active,
.composer-utility-permission-toggle:hover,
.composer-utility-permission-toggle:focus-visible,
.composer-utility-permission-toggle.is-active,
.composer-selector-button:hover,
.composer-selector-button:focus-visible,
.composer-menu-option:hover,
.composer-menu-option:focus-visible,
.composer-menu-option.is-selected {
  background: var(--seg-composer-button-surface);
  border-color: var(--seg-border);
  color: var(--seg-composer-button-text);
}

.external-editor-menu-panel .external-editor-menu-option:hover,
.external-editor-menu-panel .external-editor-menu-option:focus-visible,
.external-editor-menu-panel .external-editor-menu-option.is-selected {
  background: var(--context-menu-hover);
  border-color: transparent;
  color: var(--context-menu-hover-text);
  box-shadow: none;
}

.composer-menu-panel,
.composer-utility-git-branch-panel {
  border-color: var(--seg-border);
  background: var(--seg-dropdown-menu-surface);
}

.git-branch-create-dialog {
  border-color: var(--seg-border);
  background: #fbfcfd;
}

.composer-actions .primary-button.is-icon-only,
.composer-actions .secondary-button.is-icon-only,
.composer-selector-button.is-icon-only {
  border-radius: var(--seg-radius-xs);
}

.composer-utility-bar {
  width: 100%;
  max-width: var(--pane-content-max-width);
  margin: 0 auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.composer {
  --composer-editor-min-height: 72px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--pane-content-max-width);
  margin: 0 auto 8px;
  padding: 10px 16px 14px;
  border: 1px solid var(--seg-border);
  border-radius: var(--seg-radius-sm);
  background: var(--seg-composer-surface);
  box-shadow: 0 10px 24px rgba(46, 81, 118, 0.05);
  animation: rise-in 560ms ease;
}

.composer-stack .composer {
  margin-bottom: 0;
}

.composer-plan-mode-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--pane-content-max-width);
  min-width: 0;
  min-height: 28px;
  margin: 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(180, 92, 32, 0.18);
  border-radius: var(--seg-radius-xs);
  background: rgba(180, 92, 32, 0.08);
  color: #8f4711;
  font-size: 12px;
  line-height: 1.35;
}

.composer-plan-mode-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b45c20;
  box-shadow: 0 0 0 3px rgba(180, 92, 32, 0.12);
}

.composer-plan-mode-label {
  flex: 0 0 auto;
  font-weight: 700;
}

.composer-plan-mode-detail {
  min-width: 0;
  color: rgba(143, 71, 17, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-branch-parent-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--pane-content-max-width);
  min-width: 0;
  min-height: 28px;
  margin: 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(46, 81, 118, 0.16);
  border-radius: var(--seg-radius-xs);
  background: rgba(46, 81, 118, 0.07);
  color: var(--seg-text-2, #475569);
  font-size: 12px;
  line-height: 1.35;
}

.composer-branch-parent-label {
  flex: 0 0 auto;
  font-weight: 700;
}

.composer-branch-parent-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-branch-parent-clear {
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--seg-accent-strong, #174b76);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.composer-branch-parent-clear:focus-visible {
  border-radius: var(--seg-radius-xs);
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.inline-side-chat-thread .composer {
  --composer-editor-min-height: 76px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--seg-border);
  border-radius: 8px;
  background: var(--seg-composer-surface);
  box-shadow: none;
}

/* Sage / Teal & Slate theme overrides */

.composer {
  border-color: var(--seg-border);
  background: var(--seg-composer-surface);
  box-shadow: none;
}

.inline-side-chat-thread .composer {
  background: var(--seg-composer-surface);
  box-shadow: none;
}

.composer-utility-chip,
.composer-utility-git-branch-button,
.composer-utility-permission-toggle,
.composer-selector-button,
.composer-attachment-chip {
  border: 1px solid var(--mix-seg-border-96-transparent-4);
  background: var(--mix-seg-panel-muted-88-seg-panel-12);
  color: var(--seg-text-2);
  box-shadow: none;
}

.composer-utility-chip:hover,
.composer-utility-chip:focus-visible,
.composer-utility-chip.is-active,
.composer-utility-git-branch-button:hover,
.composer-utility-git-branch-button:focus-visible,
.composer-utility-git-branch-button.is-active,
.composer-utility-permission-toggle:hover,
.composer-utility-permission-toggle:focus-visible,
.composer-utility-permission-toggle.is-active,
.composer-selector-button:hover,
.composer-selector-button:focus-visible,
.composer-attachment-chip:hover,
.composer-attachment-chip:focus-visible,
.composer-menu-option:hover,
.composer-menu-option:focus-visible,
.composer-menu-option.is-selected {
  border-color: var(--mix-seg-accent-34-seg-border-66);
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
  box-shadow: none;
}

.composer-menu-panel,
.composer-utility-git-branch-panel {
  border: 1px solid var(--seg-border);
  background: var(--seg-dropdown-menu-surface);
  box-shadow: var(--shadow-sm);
}

.git-branch-create-dialog {
  border: 1px solid var(--seg-border);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.composer-editor-input {
  color: var(--seg-text-1);
  caret-color: var(--brand-accent-active);
}

.composer-editor-placeholder {
  color: var(--seg-text-3);
}

.composer-inline-tag {
  border: 1px solid var(--mix-seg-accent-24-seg-border-76);
  background: var(--mix-seg-accent-soft-78-seg-panel-22);
  color: var(--seg-accent-strong);
}

.composer-inline-tag.is-file {
  border-color: var(--mix-seg-accent-28-seg-border-72);
  background: var(--mix-seg-accent-soft-78-seg-panel-22);
  color: var(--seg-accent-strong);
}

.composer-inline-tag.is-comment {
  border-color: var(--seg-warning-border);
  background: var(--seg-warning-surface);
  color: var(--seg-warning-text);
}

.composer-inline-tag.is-skill {
  border-color: var(--seg-success-border);
  background: var(--seg-success-surface);
  color: var(--seg-success-text);
}

.composer-inline-tag.is-mcp {
  border-color: var(--seg-info-border);
  background: var(--seg-info-surface);
  color: var(--seg-info-text);
}

.composer-attachment-chip.is-invalid {
  border-color: var(--seg-danger-border);
  background: var(--seg-danger-surface);
  color: var(--seg-danger-text);
}

.composer .composer-selector-button,
.composer .composer-actions .primary-button,
.composer .composer-actions .secondary-button,
.composer .composer-menu-option {
  border-color: transparent;
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
}

.composer .composer-selector-button:not(:disabled):hover,
.composer .composer-selector-button:not(:disabled):focus-visible,
.composer .composer-actions .primary-button:not(:disabled):hover,
.composer .composer-actions .primary-button:not(:disabled):focus-visible,
.composer .composer-actions .secondary-button:not(:disabled):hover,
.composer .composer-actions .secondary-button:not(:disabled):focus-visible,
.composer .composer-menu-option:not(:disabled):hover,
.composer .composer-menu-option:not(:disabled):focus-visible {
  border-color: transparent;
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
  box-shadow: none;
}

.composer .composer-menu-option.is-selected {
  border-color: transparent;
  background: var(--seg-composer-button-surface-strong);
  color: var(--seg-composer-button-text-strong);
}

.composer .composer-model-provider-option {
  border-color: transparent;
  background: transparent;
  color: var(--seg-text-2);
}

.composer .composer-model-provider-option:hover,
.composer .composer-model-provider-option:focus-visible,
.composer .composer-model-provider-option.is-active {
  border-color: transparent;
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
}

.composer-utility-bar .composer-utility-git-branch-button,
.composer-utility-bar .composer-utility-permission-toggle {
  border-color: transparent;
  background: transparent;
  color: var(--seg-text-2);
  box-shadow: none;
}

.composer-utility-bar .composer-utility-permission-toggle.is-full-access {
  color: var(--seg-composer-button-text-strong);
}

.composer-utility-bar .composer-utility-git-branch-button:not(:disabled):hover,
.composer-utility-bar .composer-utility-git-branch-button:not(:disabled):focus-visible,
.composer-utility-bar .composer-utility-git-branch-button.is-active,
.composer-utility-bar .composer-utility-permission-toggle:not(:disabled):hover,
.composer-utility-bar .composer-utility-permission-toggle:not(:disabled):focus-visible,
.composer-utility-bar .composer-utility-permission-toggle.is-active {
  border-color: transparent;
  background: var(--seg-composer-button-surface);
  color: var(--seg-composer-button-text);
  box-shadow: none;
  outline: none;
}
