:root {
  color-scheme: dark;
  --bg: #0d1117;
  --card: #151b23;
  --card2: #0f1620;
  --text: #e6edf3;
  --muted: #8b949e;
  --line: #30363d;
  --accent: #58a6ff;
  --danger: #ff6b6b;
  --ok: #3fb950;
  --warn: #d29922;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% 0%, #13213a 0, transparent 32rem), var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 18px 80px;
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }
h2 { margin: 0 0 14px; font-size: 19px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; margin: 0 0 8px; }
.muted { color: var(--muted); margin-top: 6px; }
.card {
  background: color-mix(in srgb, var(--card) 94%, white 6%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.compact { margin: 12px 0; gap: 8px; }
label { display: block; margin: 10px 0 6px; color: #c9d1d9; font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
}
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
button {
  border: 1px solid color-mix(in srgb, var(--accent) 72%, white 18%);
  background: var(--accent);
  color: #06111f;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
button.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
button:disabled { opacity: .6; cursor: not-allowed; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.row.slim { margin-top: 0; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: var(--text); }
.check input { width: auto; }
.badge {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 13px;
  white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.sectionHeader { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.list { display: grid; gap: 10px; }
.item {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.itemHead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.itemTitle { font-weight: 800; }
.itemMeta { color: var(--muted); font-size: 13px; }
.output {
  overflow: auto;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-height: 64px;
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  background: #1f2937;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
}

@media (max-width: 760px) {
  .hero, .sectionHeader { display: block; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .badge { display: inline-block; margin-top: 14px; }
}

.notice {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e0ff;
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}

.compactNotice {
  font-size: 13px;
  padding: 9px 11px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c9d1d9;
}
