:root {
  --bg: #0f1412;
  --panel: #1a2420;
  --line: #2c3b34;
  --text: #e7efe9;
  --muted: #8fa396;
  --accent: #3dcf7a;
  --danger: #e85d5d;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, #1c3a2a 0%, transparent 55%),
    var(--bg);
}
a { color: var(--accent); }
.shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.shell.wide { max-width: 720px; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}
.brand {
  margin: 0;
  font-family: var(--display);
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}
h1 {
  font-family: var(--display);
  font-weight: 550;
  font-size: 1.6rem;
  margin: 0.35rem 0 0.5rem;
}
h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.lede, .muted { color: var(--muted); }
.lede { margin: 0 0 1.25rem; }
.tiny { font-size: 0.8rem; }
.error { color: #ff8f8f; }
.stack { display: flex; flex-direction: column; gap: 0.85rem; }
label { display: block; font-size: 0.9rem; color: var(--muted); }
input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1210;
  color: var(--text);
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--accent);
  color: #062012;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font: inherit;
}
button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.action {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.action.risk-high { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c1210;
}
.result.ok { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.result.bad { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
}
code { font-size: 0.85em; }
@media (max-width: 640px) {
  .action { flex-direction: column; align-items: stretch; }
  .action button { width: 100%; }
}
