:root {
  --hth-green: #128205;
  --hth-teal: #127760;
  --hth-blue: #a8c3dc;
  --bg: #0e1512;
  --bg-card: #16211c;
  --bg-card2: #1d2b24;
  --line: #274034;
  --text: #e8f2ec;
  --muted: #8fae9e;
  --danger: #d9534f;
  --ok: #3fc26b;
  --warn: #e0a800;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16302400, #0e1512), var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--hth-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

header.site {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  background: #0c120fcc; position: sticky; top: 0; backdrop-filter: blur(6px); z-index: 10;
}
header.site .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
header.site .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--hth-green); box-shadow: 0 0 12px var(--hth-green); }
header.site nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
header.site nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 500;
}
header.site nav a.active, header.site nav a:hover { background: var(--bg-card2); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 28px; margin: 8px 0 4px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
.sub { color: var(--muted); margin: 0 0 20px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: linear-gradient(180deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.stat .label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat .value small { font-size: 14px; color: var(--muted); font-weight: 400; }

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-top: 18px;
}

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #123a24; color: var(--ok); }
.badge.bad { background: #3a1717; color: var(--danger); }
.badge.warn { background: #3a3117; color: var(--warn); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.mono, .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.table-wrap { overflow-x: auto; }

input, textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #0f1713; color: var(--text); font-size: 14px;
}
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 14px; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

button, .btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 18px; border-radius: 8px; border: 0; font-weight: 600; font-size: 14px;
  background: var(--hth-green); color: #fff;
}
button:hover, .btn:hover { background: var(--hth-teal); text-decoration: none; }
button.ghost, .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }

pre.out {
  background: #0a0f0c; border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; font-size: 13px; white-space: pre; position: relative;
}
.copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; }

ol.steps { padding-left: 20px; }
ol.steps li { margin: 14px 0; }
.muted { color: var(--muted); }
.warnbox { border-left: 3px solid var(--warn); background: #1c1a10; padding: 12px 16px; border-radius: 6px; margin: 16px 0; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); padding: 24px; text-align: center; font-size: 13px; }
