:root {
  --bg: #09111a;
  --panel: #0f1a26;
  --panel-2: #132234;
  --text: #e6eef8;
  --muted: #8ea1b5;
  --accent: #7dd3fc;
  --good: #34d399;
  --bad: #fb7185;
  --line: #223247;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.16), transparent 28rem),
    linear-gradient(180deg, #081018 0%, #0b1420 100%);
  color: var(--text);
}
main { max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; }
h1, h2 { margin: 0 0 14px; font-weight: 700; }
p { color: var(--muted); line-height: 1.5; }
.hero, .panel {
  background: rgba(15, 26, 38, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}
.hero { padding: 24px; margin-bottom: 18px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.status-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 10rem),
    rgba(19, 34, 52, 0.72);
}
.status-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel { padding: 18px; }
.stat { font-size: 28px; font-weight: 700; margin-top: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.token {
  width: min(420px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
}
.candidate, .json-block {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}
.json-block {
  white-space: pre-wrap;
  overflow-x: auto;
}
button {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #052235;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.running { background: rgba(52, 211, 153, 0.18); color: var(--good); }
.stopped, .failed { background: rgba(251, 113, 133, 0.16); color: var(--bad); }
.ok { background: rgba(52, 211, 153, 0.18); color: var(--good); }
.warn { background: rgba(252, 211, 77, 0.16); color: #fcd34d; }
.info { background: rgba(125, 211, 252, 0.16); color: var(--accent); }
.muted { color: var(--muted); }
.links a { color: var(--accent); text-decoration: none; }
.config-builder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.config-group {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.06), transparent 60%),
    rgba(19, 34, 52, 0.68);
}
.group-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.field span {
  font-size: 13px;
  color: var(--muted);
}
.field-input {
  width: 100%;
}
.toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--text);
}
.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.callout {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  color: var(--muted);
}
.workflow-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.workflow-step {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 34, 52, 0.88);
  color: var(--text);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.plan-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), transparent 60%),
    rgba(19, 34, 52, 0.72);
}
.advanced-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.target-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.advanced-section.hidden {
  display: none;
}
.process-row-selected {
  background: rgba(125, 211, 252, 0.08);
}
.process-detail-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.1), transparent 14rem),
    rgba(19, 34, 52, 0.56);
}
.process-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.warning-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #fcd34d;
}
.warning-list:empty {
  display: none;
}
@media (max-width: 640px) {
  main {
    padding: 24px 14px 36px;
  }
  .stat {
    font-size: 24px;
  }
}
