.codex-panel__pending-request-block {
  display: flex;
  flex-direction: column;
  gap: var(--codex-panel-item-gap);
  margin-bottom: var(--codex-panel-edge-padding-x);
  background: transparent;
  font-family: var(--font-interface);
}

.codex-panel__pending-request-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--codex-panel-control-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.codex-panel__pending-request-card + .codex-panel__pending-request-card {
  padding-top: var(--codex-panel-item-gap);
  border-top: 1px solid var(--codex-panel-border-muted-color);
}

.codex-panel__pending-request-info {
  min-width: 0;
  margin-right: 0;
}

.codex-panel__pending-request-title {
  color: var(--text-normal);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
}

.codex-panel__pending-request-body {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.codex-panel__approval-details {
  margin-top: var(--codex-panel-control-gap);
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
}

.codex-panel__pending-request-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--codex-panel-control-gap);
}

.codex-panel__user-input.codex-panel__pending-request-card .codex-panel__pending-request-actions {
  margin-top: var(--codex-panel-section-gap);
}

.codex-panel__user-input-question {
  display: grid;
  gap: var(--codex-panel-control-gap);
  margin-top: var(--codex-panel-item-gap);
}

.codex-panel__user-input-header {
  color: var(--codex-panel-item-title-color);
  font-size: var(--codex-panel-item-title-size);
  font-weight: var(--codex-panel-item-title-weight);
}

.codex-panel__user-input-prompt {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
}

.codex-panel__user-input-answer {
  display: grid;
  gap: var(--codex-panel-control-gap);
  margin-top: calc(var(--codex-panel-section-gap) - var(--codex-panel-control-gap));
}

.codex-panel__user-input-option {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--codex-panel-control-gap) var(--codex-panel-item-gap);
  align-items: start;
  padding: 0 var(--codex-panel-control-gap);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
  cursor: default;
}

.codex-panel__user-input-option:hover {
  color: var(--nav-item-color-hover, var(--text-normal));
  background: var(--background-modifier-hover);
}

.codex-panel__user-input-radio {
  grid-column: 1;
  align-self: start;
  margin: var(--codex-panel-panel-gap) 0 0;
}

.codex-panel__user-input-option-description {
  grid-column: 2;
  color: var(--text-muted);
  font-size: var(--font-ui-smaller);
}

.codex-panel__user-input-text {
  width: 100%;
  min-height: var(--codex-panel-size-user-input-text-min-height);
  min-width: 0;
  font-size: var(--font-ui-small);
}

.codex-panel__user-input-other-text {
  grid-column: 2;
}

.codex-panel__mcp-elicitation.codex-panel__pending-request-card .codex-panel__pending-request-actions {
  margin-top: var(--codex-panel-section-gap);
}

.codex-panel__mcp-elicitation-url {
  display: inline-block;
  margin-top: var(--codex-panel-control-gap);
  overflow-wrap: anywhere;
  font-size: var(--font-ui-small);
}

.codex-panel__mcp-elicitation-fields {
  display: grid;
  gap: var(--codex-panel-item-gap);
  margin-top: var(--codex-panel-item-gap);
}

.codex-panel__mcp-elicitation-field {
  display: grid;
  gap: var(--codex-panel-control-gap);
}

.codex-panel__mcp-elicitation-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--codex-panel-item-gap);
  color: var(--codex-panel-item-title-color);
  font-size: var(--codex-panel-item-title-size);
  font-weight: var(--codex-panel-item-title-weight);
}

.codex-panel__mcp-elicitation-required {
  color: var(--text-faint);
  font-size: var(--font-ui-smaller);
  font-weight: var(--font-normal);
}

.codex-panel__mcp-elicitation-description {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
}

.codex-panel__mcp-elicitation-input {
  width: 100%;
  min-height: var(--codex-panel-size-user-input-text-min-height);
  min-width: 0;
  font-size: var(--font-ui-small);
}

.codex-panel__mcp-elicitation-options {
  display: grid;
  gap: var(--codex-panel-control-gap);
  min-inline-size: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.codex-panel__mcp-elicitation-option {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--codex-panel-control-gap) var(--codex-panel-item-gap);
  align-items: start;
  padding: 0 var(--codex-panel-control-gap);
  border-radius: var(--radius-s);
  color: var(--text-muted);
  font-size: var(--font-ui-small);
  line-height: var(--line-height-tight);
  cursor: default;
}

.codex-panel__mcp-elicitation-option:hover {
  color: var(--nav-item-color-hover, var(--text-normal));
  background: var(--background-modifier-hover);
}

.codex-panel__mcp-elicitation-radio,
.codex-panel__mcp-elicitation-checkbox {
  grid-column: 1;
  align-self: start;
  margin: var(--codex-panel-panel-gap) 0 0;
}
