/* MEGA Requests. Same system as me.megahq.net (megaWeb/site/assets/mega.css): Plex for text, Plex Mono
   for every figure, Silkscreen for the wordmark only, brand gradient on the wordmark and header strip only. */
:root {
  --bg: #0d0e11; --bg-2: #121318; --card: #15171c; --card-2: #1b1e25;
  --line: #24272f; --line-2: #30343e;
  --text: #e6e7ea; --muted: #9097a3; --dim: #646a76;
  --aqua: #00d4ff;
  --good: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --brand: linear-gradient(90deg, #00d4ff, #7b2ff7);
  --radius: 6px;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased;
  font: 15px/1.55 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--aqua); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.015em; overflow-wrap: anywhere; }
h3 { font: 600 11px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.muted { color: var(--muted); }
code, .num, .kv dd, .figures .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 30px; padding-bottom: 64px; }
.section { margin-top: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

header.site { position: sticky; top: 0; z-index: 10; background: rgba(13, 14, 17, .94); border-bottom: 1px solid var(--line); }
header.site::before { content: ""; display: block; height: 3px; background: var(--brand); }
header.site .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.logo { font: 400 22px/1 "Silkscreen", var(--mono); letter-spacing: .02em; }
.logo span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.logo:hover { text-decoration: none; }
.section-name { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em;
  border-left: 1px solid var(--line-2); padding-left: 14px; }
nav.main { display: flex; gap: 2px; margin-left: auto; }
nav.main a { color: var(--muted); padding: 6px 10px; border-radius: 4px; font-weight: 500; }
nav.main a:hover { color: var(--text); background: var(--card); text-decoration: none; }
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .hide-sm { display: none; }
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 4px; background: var(--aqua); color: #04141a; }
.btn:hover { background: #33ddff; }
.btn:disabled { opacity: .5; cursor: default; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

.intro p { color: var(--muted); margin: 0 0 18px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }

label.field, legend.field { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 14px; padding: 0; }
form > label.field:first-child { margin-top: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 14px; cursor: pointer; }
.choice input { accent-color: var(--aqua); }
.hint { color: var(--dim); font-size: 13px; margin-top: 4px; }
input.text, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 4px; padding: 9px 11px; font: inherit; }
textarea { min-height: 100px; resize: vertical; }
input.text:focus, textarea:focus { outline: none; border-color: var(--aqua); }
.error { color: var(--bad); font-size: 13px; margin-top: 4px; }
.notice { padding: 11px 14px; margin-bottom: 18px; border-radius: 4px; background: var(--card); border: 1px solid var(--line-2); border-left: 3px solid var(--aqua); }
.notice.bad { border-left-color: var(--bad); }
.actions { margin-top: 18px; }
.cf-turnstile { margin-top: 18px; min-height: 65px; }

.body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.desc { color: var(--text); margin-top: 14px; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 12px; }
.figures > div { background: var(--card); padding: 13px 16px; }
.figures .l { color: var(--muted); font-size: 13px; }
.figures .v { font: 600 19px/1.3 var(--mono); letter-spacing: -.01em; }
.figures .v.small { font-size: 14px; font-weight: 500; padding-top: 4px; }
.status-v { display: flex; align-items: center; gap: 9px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 16px 0 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.who { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.who img { border-radius: 3px; image-rendering: pixelated; }
.live { font: 500 11px var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 6px; vertical-align: 1px; }
.live.stale::before { background: var(--warn); }

.questions { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.questions:empty { display: none; }
.question { padding: 16px 18px; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; }
.question .answer { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.question .answer-form { margin-top: 6px; max-width: 640px; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--dim); font-size: 13px; }
