:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #1b1a17;
  --text: #efeee8;
  --muted: #aaa49a;
  --line: #343029;
  --gold: #c7a45d;
  --red: #8f3f35;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--gold); text-decoration: none; }
a:focus, button:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #151410;
  position: sticky;
  top: 0;
}
.brand { color: var(--text); font-weight: 700; letter-spacing: .04em; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 32px 16px 64px; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: clamp(36px, 7vw, 72px); margin: 8px 0 12px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.panel, .form-card, article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 18px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid article { min-width: 0; }
.grid article h3 { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.facts div, .metrics span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}
dt { color: var(--muted); font-size: 13px; }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #151410;
  font-weight: 700;
  cursor: pointer;
}
.secondary, .button.secondary { background: transparent; color: var(--gold); }
.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.danger { border-color: var(--red); background: var(--red); color: var(--text); }
button:hover, .button:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: not-allowed; }
label { display: grid; gap: 6px; margin: 14px 0; color: var(--muted); }
input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #11110f;
  color: var(--text);
}
.error { color: #ffb4a8; }
.muted { color: var(--muted); }
.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.secret-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
code { background: #0c0c0b; padding: 8px; border-radius: 6px; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: 13px; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.actions-cell form { display: inline; }
.metrics { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.rules li { margin: 8px 0; }
@media (max-width: 720px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero { padding-top: 24px; }
}
