:root {
  color-scheme: dark;
  --bg-1: #0a0c0f;
  --bg-2: #0a0c0f;
  --panel: rgba(17, 20, 24, 0.98);
  --panel-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #92a0b3;
  --cyan: #8db0cf;
  --lime: #a3b88a;
  --amber: #bca178;
  --danger: #c67d74;
  --shadow: none;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background: var(--bg-1);
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.field span,
.inline-note,
.result-label,
.result-state,
.event-meta,
.status-label,
.agent-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.body-copy {
  color: var(--muted);
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: #0d1218;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
  outline: 0;
}

.field textarea,
.files-summary,
.agent-log,
.agent-final,
.event-body {
  font-family: var(--mono);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.field-large textarea {
  min-height: 220px;
  resize: vertical;
}

.action-button,
.ghost-button,
.trace-toggle {
  border-radius: 4px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.action-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #d5d9df;
  color: #11161d;
  font-weight: 700;
}

.ghost-button,
.trace-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141a21;
  color: var(--text);
}

.action-button:disabled,
.ghost-button:disabled,
.trace-toggle:disabled,
.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  opacity: 0.6;
  cursor: wait;
}

.files-summary,
.agent-card,
.event-row {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.files-summary {
  min-height: 48px;
  padding: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.event-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  line-height: 1.5;
}
