:root {
  --bg: #0f172a;
  --card: #111827;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #22d3ee;
  --chip: #1f2937;
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header h1 { margin: 0 0 8px; }
header p { margin: 0 0 16px; color: var(--muted); }

section { background: var(--card); border-radius: 12px; padding: 16px; margin-top: 16px; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mode-selection {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  background: #0b1220;
  border-radius: 8px;
  border: 1px solid #334155;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  margin: 0;
}

input, select, button { border-radius: 8px; border: 1px solid #334155; background: #0b1220; color: var(--text); padding: 8px 10px; }
button { background: #0b2c3d; border-color: #14536e; cursor: pointer; }
button:hover { background: #0d364a; }

.list-controls { display: flex; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { background: var(--chip); border: 1px solid #334155; border-radius: 99px; padding: 6px 10px; display: inline-flex; gap: 6px; align-items: center; }
.chip button { background: transparent; border: none; color: var(--muted); cursor: pointer; }

.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.graph #graph-container { border: 1px dashed #334155; border-radius: 8px; padding: 8px; min-height: 320px; background: #0b1220; }
.details #textual { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background: #0b1220; padding: 8px; border-radius: 8px; border: 1px solid #334155; min-height: 320px; }

#summary { margin-bottom: 12px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #102235; color: var(--accent); border: 1px solid #1c3a50; margin-right: 6px; }
.good { color: var(--good); }
.warn { color: var(--warn); }
.bad { color: var(--bad); }

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