:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #1a2030;
  --muted: #5d6a81;
  --line: #d8dfec;
  --brand: #1264a3;
  --brand-dark: #0d4f81;
  --accent: #ef6d39;
  --ok: #0f7a73;
  --warn: #9a6d00;
  --err: #b42318;
  --radius: 16px;
  --shadow: 0 16px 42px rgba(28, 38, 61, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: linear-gradient(155deg, #f8f9fe 0%, #edf3fb 35%, #f8f9fe 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-aurora {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.bg-aurora-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(18, 100, 163, 0.22), rgba(18, 100, 163, 0));
  top: -120px;
  right: -110px;
}

.bg-aurora-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(239, 109, 57, 0.18), rgba(239, 109, 57, 0));
  bottom: -130px;
  left: -100px;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(27, 33, 48, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 33, 48, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  margin: 24px auto 44px;
}

.hero {
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e7f6f5;
  color: #126b65;
  border: 1px solid #c6e7e5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  letter-spacing: -0.01em;
}

.subtitle {
  margin-top: 8px;
  color: var(--muted);
  max-width: 860px;
}

.quick-goals {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-goal {
  border: 1px solid #cad7eb;
  border-radius: 999px;
  background: #f7faff;
  color: #1f3456;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.chip-goal:hover {
  border-color: #9cb8e5;
  background: #edf4ff;
}

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

.controls {
  padding: 18px;
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.two-col {
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd8e8;
  background: #fcfdff;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: #81a7dd;
  box-shadow: 0 0 0 3px rgba(18, 100, 163, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

    padding: 10px 15px;
    font-weight: 800;
  border-radius: 10px;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
    background: linear-gradient(135deg, #1264a3 0%, #0d4f81 100%);

    box-shadow: 0 8px 18px rgba(18, 100, 163, 0.28);
#executeBtn {
  background: var(--brand);
  color: #fff;
    background: #eef3fb;
    color: #23324b;
#healthBtn {
  background: #f0f3fa;
  color: #1e2a41;
}

.status {
  margin: 12px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  .status.loading { color: var(--warn); }
  .status.success { color: var(--ok); }
  .status.error { color: var(--err); }

  .metrics {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-card {
    border: 1px solid #d7dfec;
    border-radius: 12px;
    background: #f9fbff;
    padding: 9px 11px;
  }

  .metric-label {
    margin: 0;
    font-size: 0.76rem;
    color: var(--muted);
    font-weight: 700;
  }

  .metric-value {
    margin: 4px 0 0;
    font-size: 1.1rem;
    font-weight: 800;
  }

  .metric-value.small {
    font-size: 0.92rem;
    text-transform: capitalize;
.status.loading { color: #9a6d00; }
.status.success { color: #0f7a73; }
.status.error { color: #b42318; }
    padding: 18px;
.grid {
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

    font-size: 1.01rem;
  margin: 0 0 8px;
  font-size: 1.03rem;
}

.mini-card,
.list-box,
.raw {
  border: 1px solid #d5deed;
  border-radius: 10px;
  background: #fbfcff;
  padding: 11px;
}

.list-box {
  min-height: 140px;
}

.raw {
  min-height: 220px;
  max-height: 340px;
  overflow: auto;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.item {
  border-bottom: 1px dashed #d8e0ef;
  padding: 8px 0;
}

.item:last-child {
  border-bottom: 0;
}

.item-title {
  margin: 0;
  font-weight: 800;
}

.item-sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  animation: rise 0.45s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
