:root {
  color-scheme: dark;
  --bg: #0e1116;
  --panel: #171b22;
  --panel-2: #1f242d;
  --line: #2a313c;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #5b9cff;
  --ok: #3fb950;
  --created: #58c2c2;
  --warn: #d29922;
  --err: #f85149;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 120% at 50% 0%, #1b2330 0%, var(--bg) 60%);
}
.hero h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin: 0.4rem 0 0; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: grid;
  gap: 1.25rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
}
.card h2 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.muted { color: var(--muted); margin: 0.25rem 0 1rem; font-size: 0.92rem; }

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.controls label { display: grid; gap: 0.3rem; font-size: 0.82rem; color: var(--muted); }

select, input, button {
  font: inherit;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 0.55rem 0.7rem;
}
input { min-width: 0; }
.controls input[type="text"] { flex: 1 1 14rem; font-family: var(--mono); }
input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button { cursor: pointer; transition: border-color .15s, background .15s; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #06122b; font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }

.guid-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.guid-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.4rem 0.5rem 0.4rem 0.7rem;
}
.guid-list code { font-family: var(--mono); font-size: 0.86rem; flex: 1; overflow-wrap: anywhere; }
.guid-list .tag {
  font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.05rem 0.5rem;
}
.guid-list button { padding: 0.3rem 0.55rem; font-size: 0.8rem; }

.console { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; max-height: 22rem; overflow: auto; }
.console:empty::after { content: "Nothing yet. The universe holds its breath."; color: var(--muted); font-size: 0.9rem; }
.console li {
  border-left: 3px solid var(--line);
  background: var(--panel-2);
  border-radius: 0 9px 9px 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}
.console .status { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.console .ref { font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; color: var(--muted); }
.console li.ok { border-left-color: var(--ok); }
.console li.created { border-left-color: var(--created); }
.console li.warn { border-left-color: var(--warn); }
.console li.err { border-left-color: var(--err); }

footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 0 1rem 2.5rem; }

.copied { border-color: var(--ok) !important; }

.links { margin-top: 0.6rem; }
.links a, footer a { color: var(--accent); text-decoration: none; }
.links a:hover, footer a:hover { text-decoration: underline; }

.hint { color: var(--muted); font-weight: 400; }

.notice {
  margin: 0.25rem 0 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(91, 156, 255, 0.08);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.notice strong { color: var(--accent); }
