.codex-panel__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.codex-panel__region {
  min-width: 0;
}

.codex-panel__region--goal {
  grid-row: 1;
}

.codex-panel__region--message-stream {
  grid-row: 2;
  min-height: 0;
  overflow: hidden;
}

.codex-panel__region--composer {
  grid-row: 3;
}

.codex-panel__region--goal:empty {
  display: none;
}

.codex-panel__approval-details summary,
.codex-panel__output summary,
.codex-panel-diff-file summary,
.codex-panel__output-title {
  color: var(--text-muted);
  font-size: var(--font-ui-small);
}

.codex-panel__approval-details summary,
.codex-panel__output summary,
.codex-panel-diff-file summary {
  cursor: default;
}

.codex-panel__approval-details summary:hover,
.codex-panel__output summary:hover,
.codex-panel-diff-file summary:hover {
  color: var(--nav-item-color-hover, var(--text-normal));
}

.codex-panel__meta-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--codex-panel-control-gap) var(--codex-panel-section-gap);
  margin: var(--codex-panel-item-gap) 0;
  font-size: var(--font-ui-smaller);
  cursor: text;
  user-select: text;
}

.codex-panel__meta-grid dt {
  color: var(--text-faint);
  cursor: text;
  user-select: text;
}

.codex-panel__meta-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  cursor: text;
  user-select: text;
  white-space: pre-wrap;
}
