* { box-sizing: border-box; }

:root {
  --bg: #050806;
  --panel: #09110c;
  --panel-2: #0c1710;
  --text: #a8ffb6;
  --bright: #d4ffda;
  --muted: #69a973;
  --line: #2e7d3d;
  --danger: #ff8c8c;
  --ok: #9cffaa;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
}

body {
  background-image:
    linear-gradient(rgba(100,255,130,.018) 1px, transparent 1px);
  background-size: 100% 4px;
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; color: var(--bright); font-size: clamp(26px, 4vw, 46px); }
h2 { font-size: 18px; color: var(--bright); margin-bottom: 16px; }
.eyebrow { color: var(--muted); margin-bottom: 6px; font-size: 12px; letter-spacing: .12em; }

.status {
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-width: 120px;
  text-align: center;
  color: var(--bright);
  background: #030604;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 18px;
  box-shadow: 0 0 24px rgba(90,255,120,.035) inset;
}

.instructions { margin-bottom: 16px; }
.instructions ol { margin: 0; padding-left: 24px; line-height: 1.55; }
.instructions li + li { margin-top: 6px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.grid + .card { margin-bottom: 16px; }

label {
  display: block;
  color: var(--bright);
  font-size: 13px;
  margin-bottom: 14px;
}

small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--bright);
  background: #020503;
  padding: 10px;
  outline: none;
  margin-top: 6px;
  border-radius: 0;
}

textarea {
  resize: vertical;
  line-height: 1.45;
  text-transform: uppercase;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--bright);
  box-shadow: 0 0 0 1px var(--bright);
}

fieldset {
  border: 1px solid var(--line);
  margin: 0 0 14px;
  padding: 12px;
}

legend {
  color: var(--muted);
  padding: 0 6px;
  font-size: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 4px 0 14px;
}

button {
  border: 1px solid var(--bright);
  background: var(--bright);
  color: #061008;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 0;
  font-weight: bold;
}

button:hover { filter: brightness(1.1); }
button.secondary { background: transparent; color: var(--bright); }
button.ghost { background: transparent; border-color: var(--line); color: var(--muted); }

code, pre {
  color: var(--bright);
  background: #020503;
  border: 1px solid rgba(46,125,61,.55);
}

code { padding: 1px 4px; }
pre {
  padding: 12px;
  overflow-x: auto;
  line-height: 1.45;
}

.note {
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
}

.output-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.test-result {
  margin-bottom: 0;
  color: var(--muted);
}

.test-result.pass { color: var(--ok); }
.test-result.fail { color: var(--danger); }

.guide p { line-height: 1.55; margin-bottom: 0; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  header { align-items: start; flex-direction: column; }
}
