@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #020403;
  --ink: #e7ffe4;
  --muted: #7d9a78;
  --line: rgba(157, 255, 106, 0.28);
  --panel: rgba(6, 14, 8, 0.86);
  --ph: #b6ff4a;
  --warn: #ffb020;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(182, 255, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 74, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto;
  font: 16px/1.5 "IBM Plex Sans", sans-serif;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
a { color: var(--ph); }
button, input, select { font: inherit; color: inherit; }
button, a.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ph);
  background: rgba(182, 255, 74, 0.06);
  color: var(--ph);
  font: 500 0.74rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
button:hover, a.button:hover { background: var(--ph); color: #041004; }
button.secondary, button.quiet { color: var(--ink); border-color: var(--line); background: transparent; }
button:disabled { opacity: 0.35; cursor: not-allowed; }
button:focus, a:focus, input:focus, select:focus { outline: 1px solid var(--ph); outline-offset: 3px; }
input, select {
  width: min(100%, 28rem);
  padding: 0.65rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
}
.shell { position: relative; max-width: 78rem; margin: 0 auto; padding: 0.8rem 1.2rem 4.5rem; }
.hud-status, .top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.12em;
}
.hud-status { color: var(--ph); padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.top { margin: 0.8rem 0 1.2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.mark {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: var(--ph);
  border: 1px solid var(--ph);
  box-shadow: inset 0 0 0 5px #020403, inset 0 0 0 6px var(--ph);
  font: 500 0.62rem/1 "IBM Plex Mono", monospace;
}
.wordmark { display: block; font: 500 0.95rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.2em; }
.tagline { display: block; margin-top: 0.28rem; color: var(--muted); letter-spacing: 0.08em; font-size: 0.66rem; }
nav { display: flex; gap: 0.7rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.35rem 0.45rem;
}
nav a[aria-current="page"] { color: var(--ph); border-color: var(--line); }
.banner, .panel, .card {
  position: relative;
  margin-bottom: 0.8rem;
  padding: 1.2rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.banner::before, .panel::before, .card::before,
.banner::after, .panel::after, .card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--ph);
  border-style: solid;
  pointer-events: none;
}
.banner::before, .panel::before, .card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.banner::after, .panel::after, .card::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.grid { display: grid; gap: 0.8rem; }
.grid.two { grid-template-columns: 1.4fr 0.8fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid > * { margin: 0; }
h1, h2, h3 { margin: 0 0 0.55rem; font-weight: 500; }
h1 {
  max-width: 11ch;
  margin-bottom: 1.4rem;
  font: 500 clamp(2.5rem, 6vw, 5rem)/0.9 "IBM Plex Mono", monospace;
  letter-spacing: -0.05em;
}
.page-title {
  max-width: none;
  margin-bottom: 1rem;
  font: 500 0.95rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
h2 { font: 500 0.74rem/1.3 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ph); }
p { margin: 0.4rem 0; }
.muted { color: var(--muted); overflow-wrap: anywhere; }
.warn { color: var(--warn); }
.ok, .kicker { color: var(--ph); }
.kicker { font: 500 0.7rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.amount { font: 500 clamp(1.8rem, 4vw, 3rem)/1 "IBM Plex Mono", monospace; color: var(--ph); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.75rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 500 0.66rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.pill, .marker { font: 500 0.68rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.pill { display: inline-flex; padding: 0.16rem 0.42rem; border: 1px solid var(--line); color: #d7e7d4; }
.pill.ready { color: #9dff57; border-color: #9dff57; }
.pill.missing { color: #ff5d73; border-color: #ff5d73; }
.pill.pending { color: #ffd166; border-color: #ffd166; }
.step { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.7rem; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.marker { color: var(--muted); }
.marker.done, .marker.current { color: var(--ph); }
label { display: grid; gap: 0.3rem; margin: 0.9rem 0; font: 500 0.7rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.actions { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font: 500 0.72rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
pre { overflow: auto; padding: 0.8rem; border: 1px solid var(--line); background: #010201; font: 0.75rem/1.45 "IBM Plex Mono", monospace; }
[role="alert"] { color: var(--warn); }
@media (max-width: 800px) {
  .grid.two, .grid.three, .top, .hud-status { display: grid; }
  .grid.two { grid-template-columns: 1fr; }
  .tagline { display: none; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
  td { border: 0; padding: 0.12rem 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font: 500 0.64rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
}

