:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f2937, #020617 55%);
}

.app-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.panel {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  color: #0f172a;
  background: #e5e7eb;
}

button.primary {
  color: white;
  background: #2563eb;
}

button.ghost {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 16px;
  color: #cbd5e1;
}

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

.status-grid > div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.label {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 800;
}

.hidden { display: none; }

textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  line-height: 1.5;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.7);
}

pre {
  overflow-x: auto;
  min-height: 110px;
  max-height: 220px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
  color: #cbd5e1;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .status-grid { grid-template-columns: 1fr; }
}
