:root {
  --bg: #050805;
  --panel: #0a110b;
  --line: #1a2e1d;
  --text: #b9e8c3;
  --dim: #6f9878;
  --hl: #39ff88;
  --warn: #ffb000;
  --err: #ff5c5c;
  --focus: #9dffc4;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(57, 255, 136, 0.025) 0 1px, transparent 1px 3px);
  color: var(--text);
  font: 15px/1.55 var(--mono);
  min-height: 100vh;
}
a { color: var(--hl); text-underline-offset: 3px; }
a:hover { color: var(--focus); }
code { color: var(--hl); }
b { color: #e4ffea; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.dim { color: var(--dim); font-weight: normal; }
.hl { color: var(--hl); }
.warn { color: var(--warn); }
[hidden] { display: none !important; }

/* header */
.top { border-bottom: 1px solid var(--line); background: rgba(5, 8, 5, 0.92); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: 0.5px; white-space: nowrap; }
.logo .prompt { color: var(--hl); }
.cursor { color: var(--hl); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
nav a { color: var(--dim); text-decoration: none; margin-left: 18px; font-size: 13px; }
nav a:hover { color: var(--hl); }

/* hero */
.hero { padding: 40px 0 20px; }
.hero h1 { font-size: clamp(22px, 4.4vw, 36px); line-height: 1.25; margin: 0 0 14px; color: #e4ffea; text-shadow: 0 0 18px rgba(57, 255, 136, 0.18); }
.sub { color: var(--dim); max-width: 760px; margin: 0; }

/* panels */
.panel { border: 1px solid var(--line); background: var(--panel); padding: 18px; margin: 18px 0; border-radius: 2px; position: relative; }
.panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border-left: 2px solid var(--hl); border-top: 2px solid var(--hl); }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; color: var(--hl); }
h2 .num { color: var(--bg); background: var(--hl); padding: 0 6px; margin-right: 6px; }
h3 { font-size: 14px; color: var(--hl); text-transform: uppercase; letter-spacing: 1.5px; margin: 20px 0 8px; }

.grid { display: grid; gap: 12px; }
.grid.loc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.loc, .grid.opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid.loc, .grid.opts { grid-template-columns: 1fr; } }

label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); text-transform: lowercase; }
input, select {
  font: 15px var(--mono); color: var(--text); background: #030503; border: 1px solid var(--line);
  padding: 9px 10px; border-radius: 2px; width: 100%; min-width: 0;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 1px solid var(--focus); outline-offset: 1px; border-color: var(--hl); }
input::placeholder { color: #3d5843; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--text); text-transform: none; }
label.check input { width: auto; accent-color: var(--hl); }
label.accept { margin: 14px 0; align-items: flex-start; line-height: 1.45; }
label.accept input { margin-top: 3px; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.spacer { flex: 1; }
button {
  font: 600 14px var(--mono); color: var(--bg); background: var(--hl); border: 1px solid var(--hl);
  padding: 9px 16px; border-radius: 2px; cursor: pointer; letter-spacing: 0.5px;
}
button:hover:not(:disabled) { background: var(--focus); }
button.ghost { background: transparent; color: var(--hl); }
button.ghost:hover:not(:disabled) { background: rgba(57, 255, 136, 0.08); }
button.small { padding: 5px 10px; font-size: 12px; }
button:disabled { opacity: 0.35; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--dim); margin: 12px 0 0; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); max-height: 60vh; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { position: sticky; top: 0; background: #0d1a10; color: var(--dim); font-weight: normal; text-align: left; padding: 7px 8px; text-transform: lowercase; white-space: nowrap; }
td { padding: 6px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
td.loc { white-space: normal; min-width: 120px; }
.r { text-align: right; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: rgba(57, 255, 136, 0.05); }
tbody tr.sel { background: rgba(57, 255, 136, 0.11); }
tbody tr.sel td:nth-child(2) { color: var(--hl); }
#radio-table tbody tr { cursor: default; }
td input[type="checkbox"] { accent-color: var(--hl); width: 16px; height: 16px; margin: 0; }

/* program */
.steps { margin: 16px 0 0; padding-left: 22px; color: var(--text); }
.steps li { margin: 3px 0; }
.alert { border: 1px solid var(--warn); color: var(--warn); padding: 10px 12px; margin-top: 14px; }
.alert b { color: var(--warn); }
.buttons { margin-top: 4px; }
.progress { height: 6px; border: 1px solid var(--line); margin-top: 14px; background: #030503; }
.progress .bar { height: 100%; width: 0; background: var(--hl); box-shadow: 0 0 10px var(--hl); transition: width 0.15s linear; }
.console {
  margin: 14px 0 0; padding: 12px; min-height: 90px; max-height: 320px; overflow: auto; background: #020302;
  border: 1px solid var(--line); color: var(--text); font: 13px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word;
}
.console:empty::before { content: "$ waiting for input_"; color: var(--dim); }
.console .ok { color: var(--hl); }
.console .warn { color: var(--warn); }
.console .err { color: var(--err); }
.console .dim { color: var(--dim); }

ul.plain { margin: 0; padding-left: 20px; }
ul.plain li { margin: 6px 0; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 40px; font-size: 12px; }
.foot p { margin: 6px 0; }

/* terms page */
.doc { max-width: 760px; }
.doc h1 { font-size: 24px; color: #e4ffea; margin: 34px 0 6px; }
.doc h2 { margin-top: 26px; }
.doc p, .doc li { color: var(--text); }
label.warn-box { color: var(--warn); border: 1px solid var(--warn); padding: 10px 12px; }
label.accept, label.warn-box { display: block; text-transform: none; font-size: 14px; }
label.accept input, label.warn-box input { width: auto; margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--hl); }
@media (max-width: 520px) {
  nav a[href="#how"] { display: none; }
  .logo { font-size: 15px; }
  .panel { padding: 14px; }
}
.small-hero { padding: 28px 0 6px; }
td.hl { color: var(--hl); }
.ad-slot { margin: 18px 0; min-height: 100px; text-align: center; }
.ad-slot::before { content: "advertisement"; display: block; font-size: 10px; color: var(--dim); letter-spacing: 2px; margin-bottom: 4px; }
ins.adsbygoogle { display: block; }
@media (max-width: 520px) { nav a.wide-only { display: none; } }
@media (max-width: 520px) {
  #rpt-table th:nth-child(5), #rpt-table td:nth-child(5) { display: none; }
  #rpt-table th, #rpt-table td, #ch-table th, #ch-table td { padding: 6px 5px; }
  td.loc { min-width: 84px; }
}
@media (max-width: 520px) { #rpt-table, #ch-table { font-size: 12px; } }
