/* ═══════════ TOKENS ═══════════ */
:root {
  --bg: #060609;
  --bg-card: #0c0d14;
  --bg-card-2: #10111a;
  --bg-inset: #090a10;
  --border: #1d1f2e;
  --border-soft: #16182404;
  --text: #eef0f6;
  --text-dim: #9aa0b4;
  --text-faint: #5e6478;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --green: #22c55e;
  --amber: #f59e0b;
  --grad: linear-gradient(90deg, #2563eb 0%, #7c3aed 60%, #a855f7 100%);
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2 {
  font-weight: 700;
}

/* ═══════════ TOP BAR ═══════════ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  transition:
    color 0.15s,
    background 0.15s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--bg-card-2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-pill {
  border: 1px solid #24406e;
  color: #7fb0f5;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

.topbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.topbar-title {
  color: var(--text-dim);
  font-size: 13px;
}
.topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 6px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
}
.user-chip:hover {
  background: var(--bg-card-2);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-dim);
}
.avatar svg {
  width: 17px;
  height: 17px;
}
.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.user-meta strong {
  font-size: 13px;
}
.user-meta small {
  color: var(--text-faint);
  font-size: 11px;
}
.chevron {
  width: 15px;
  height: 15px;
  color: var(--text-faint);
}

/* ═══════════ LAYOUT ═══════════ */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-heading {
  font-size: 15px;
  margin-bottom: 18px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-title-row.no-margin {
  margin-bottom: 0;
}
.card-title-row.space-between {
  justify-content: space-between;
  align-items: flex-start;
}
.card-title-row h2 {
  font-size: 16px;
}
.card-subtitle {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 2px;
}

.mini-icon {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  display: grid;
  place-items: center;
  color: var(--violet);
}
.mini-icon svg {
  width: 18px;
  height: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.status-pill.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.status-pill.ok .dot {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.status-pill.warn {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-pill.warn .dot {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.ghost-btn:hover {
  color: var(--text);
  border-color: #2c2f45;
}
.ghost-btn svg {
  width: 14px;
  height: 14px;
}

/* ═══════════ HERO ═══════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.45));
}
.brand-word {
  display: flex;
  flex-direction: column;
}
.brand-kicker {
  letter-spacing: 0.55em;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.brand-name {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.1;
  background: linear-gradient(90deg, #e0e7ff, #ffffff 40%, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-tagline {
  letter-spacing: 0.3em;
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 600;
  margin-top: 4px;
}

.hero-brand h1 {
  font-size: 27px;
  margin-top: 26px;
}
.hero-sub {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 14px;
}
.hero-underline {
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  margin-top: 18px;
}

/* summary grid */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 18px;
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  display: grid;
  place-items: center;
  color: var(--violet);
}
.summary-icon svg {
  width: 19px;
  height: 19px;
}
.summary-item strong {
  display: block;
  font-size: 13px;
}
.summary-item small {
  font-size: 12px;
  color: #4ade80;
}
.summary-item small.neutral {
  color: var(--text-dim);
}

/* ═══════════ CONSOLA + RESULTADO ═══════════ */
.console-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

#question {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
}
#question::placeholder {
  color: var(--text-faint);
}
#question:focus {
  outline: none;
  border-color: #3f4470;
}

.char-counter {
  text-align: right;
  font-size: 11.5px;
  color: var(--text-faint);
  margin: 6px 2px 14px;
}

.run-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #2563eb, #7c3aed 55%, #a855f7);
  border: none;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.1s;
}
.run-btn:hover {
  filter: brightness(1.12);
}
.run-btn:active {
  transform: scale(0.99);
}
.run-btn:disabled {
  filter: grayscale(0.4) brightness(0.7);
  cursor: wait;
}
.run-btn svg {
  width: 17px;
  height: 17px;
}

.flow-label {
  margin-top: 20px;
}

.flow-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
}
.chip-arrow {
  color: var(--text-faint);
  font-size: 14px;
}

.result-bubble {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  padding: 18px 20px;
}
.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.g-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.result-author {
  color: var(--text-dim);
  font-size: 13px;
}
#result-text {
  font-size: 15px;
  line-height: 1.65;
}

/* ═══════════ INSPECTOR ═══════════ */
.pipeline {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pipe-step {
  flex: 1 1 0;
  min-width: 106px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pipe-node {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: radial-gradient(circle at 30% 25%, #1b1440, #0c0d14 70%);
  display: grid;
  place-items: center;
  color: #a78bfa;
  z-index: 1;
}
.pipe-step.inactive .pipe-node {
  border-color: #33364a;
  background: var(--bg-card-2);
  color: var(--text-faint);
}
.pipe-node svg {
  width: 22px;
  height: 22px;
}

.pipe-check {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-card);
  display: grid;
  place-items: center;
}
.pipe-check svg {
  width: 9px;
  height: 9px;
  stroke: #05240f;
  stroke-width: 3;
}

/* connector */
.pipe-step::after {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(50% + 29px);
  width: calc(100% - 58px);
  border-top: 2px solid #3f3470;
}
.pipe-step.to-inactive::after,
.pipe-step.inactive::after {
  border-top-style: dotted;
  border-top-color: #33364a;
}
.pipe-step:last-child::after {
  display: none;
}

.pipe-title {
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
}
.pipe-sub,
.pipe-sub2 {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
}
.pipe-sub2 {
  color: var(--text-faint);
}

/* ═══════════ BOTTOM ROW ═══════════ */
.bottom-row {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1.4fr;
  gap: 26px;
  align-items: start;
}

/* estado */
.state-list {
  list-style: none;
}
.state-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
}
.state-list li + li {
  border-top: 1px solid var(--border);
}
.state-list strong {
  display: block;
  font-size: 13px;
}
.state-list small {
  color: var(--text-faint);
  font-size: 11.5px;
}

/* providers */
.provider-box {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  min-width: 0;
}
.provider-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.provider-heading {
  min-width: 0;
  flex: 1 1 auto;
}
.provider-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  max-width: 100%;
  font-size: 13.5px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}
.provider-name > span,
.provider-slug,
.provider-name-subtitle {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
.provider-name > span,
.provider-slug {
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-name-subtitle,
.provider-row small {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}
.provider-slug {
  display: block;
  margin-top: 3px;
  white-space: nowrap;
}
.provider-row .status-pill {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: nowrap;
}
.provider-card-compact {
  padding: 14px 16px;
  gap: 0;
}
.provider-summary-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.provider-summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.provider-summary-item > span:first-child {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
}
.provider-summary-item strong {
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.provider-summary-item .status-pill {
  max-width: 100%;
  white-space: normal;
}
.provider-kv-grid {
  align-items: start;
}
.provider-kv-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}
.providers-card .field-label {
  margin-top: 18px;
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.model-chips .chip {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.provider-model-chips .chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.active-model {
  border-color: #3b5fa8;
  color: #93bbf7;
  background: rgba(59, 130, 246, 0.08);
}

/* logs */
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.log-table th {
  text-align: left;
  color: var(--text-faint);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--border);
}
.log-table .th-right,
.log-table td:last-child {
  text-align: right;
}
.log-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.log-table tr:last-child td {
  border-bottom: none;
}
.log-time {
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.log-engine {
  font-weight: 700;
  white-space: nowrap;
}
.log-msg {
  color: var(--text-dim);
}
.log-level {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #7fb0f5;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12.5px;
  text-align: center;
  padding: 22px;
  margin-top: 12px;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .hero,
  .console-row {
    grid-template-columns: 1fr;
  }
  .bottom-row {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 34px;
  }
  .user-meta,
  .topbar-title {
    display: none;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .pipeline {
    flex-wrap: nowrap;
  }
}

/* ═══════════ OBSERVABILIDAD COGNITIVA ═══════════ */
.observability-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}
.trace-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.trace-meta {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.trace-meta small {
  display: block;
  color: var(--text-faint);
  font-size: 11px;
  margin-bottom: 4px;
}
.trace-meta strong {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.trace-timeline {
  display: grid;
  gap: 10px;
}
.trace-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: 12px;
  padding: 11px 13px;
}
.trace-stage strong {
  display: block;
  font-size: 12.5px;
}
.trace-stage small {
  color: var(--text-faint);
  font-size: 11.5px;
}
.trace-duration {
  color: #93bbf7;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.execution-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.execution-list li {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.execution-list strong {
  display: block;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.execution-list small {
  color: var(--text-faint);
  font-size: 11.5px;
}
.engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.engine-tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 8px;
}
@media (max-width: 1024px) {
  .observability-grid {
    grid-template-columns: 1fr;
  }
  .trace-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════ GENESIS CONTROL CENTER v2 ═══════════ */
.control-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}
.sidebar {
  border-right: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(16, 17, 26, 0.96),
    rgba(6, 6, 9, 0.96)
  );
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: calc(100vh - 0px);
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.sidebar-brand strong {
  display: block;
  font-size: 13px;
}
.sidebar-brand small {
  color: var(--text-faint);
  font-size: 11px;
}
.sidebar-nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.nav-item:hover {
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--border);
}
.nav-item.active {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(37, 99, 235, 0.28),
    rgba(124, 58, 237, 0.22)
  );
  border-color: #2e3a70;
  box-shadow: inset 3px 0 0 var(--violet);
}
.page-heading {
  display: grid;
  gap: 8px;
}
.page-heading h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.page-heading p {
  color: var(--text-dim);
  max-width: 760px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.metric-card,
.engine-card,
.execution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.metric-card small {
  display: block;
  color: var(--text-faint);
  font-size: 11.5px;
  margin-bottom: 6px;
}
.metric-card strong {
  display: block;
  font-size: 20px;
}
.metric-card span {
  color: var(--text-dim);
  font-size: 12px;
}
.execution-grid,
.engine-grid,
.provider-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.execution-card {
  display: grid;
  gap: 12px;
}
.execution-card strong {
  overflow-wrap: anywhere;
}
.execution-card small,
.execution-card p {
  color: var(--text-dim);
}
.execution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.execution-meta span,
.kv-grid span,
.kv-grid strong {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 5px;
}
.execution-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--text-dim);
  font-size: 11.5px;
}
.engine-card {
  display: grid;
  gap: 12px;
}
.provider-card {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}
.kv-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) 1fr;
  gap: 8px 12px;
  font-size: 12px;
}
.kv-grid span {
  color: var(--text-faint);
}
.kv-grid strong {
  color: var(--text-dim);
  overflow-wrap: anywhere;
}
.log-controls {
  display: grid;
  grid-template-columns: 1fr 160px 180px 120px;
  gap: 10px;
  margin-bottom: 18px;
}
.log-controls input,
.log-controls select {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.empty-state {
  color: var(--text-faint);
  padding: 18px;
  text-align: center;
}
.metadata-block {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  overflow: auto;
  padding: 16px;
  max-height: 420px;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .control-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .control-shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 20;
    inset: 58px auto 0 0;
    width: 280px;
    height: auto;
  }
  .sidebar.open {
    display: block;
  }
  .metrics-grid,
  .execution-grid,
  .engine-grid,
  .provider-grid,
  .settings-grid,
  .log-controls {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 22px 16px 34px;
  }
}

.mode-select {
  width: 100%;
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-main);
}
