* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #101414; --panel: #161c1b; --line: #36403d; --text: #eff5ef;
  --muted: #a8b8b0; --accent: #bafa79; --red: #ff9c91; --amber: #ffd079;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--line); }
.bar, nav, .brand, .actions, .report-actions { display: flex; align-items: center; gap: 18px; }
.bar { min-height: 66px; justify-content: space-between; }
nav { font-size: .875rem; flex-wrap: wrap; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
.brand { gap: 10px; font-weight: 800; text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 33px; background: var(--accent); color: var(--bg); font: 800 15px var(--mono); }
.hero { padding: clamp(44px, 8vw, 96px) 0 28px; }
.eyebrow, label, .meta, .mono, .score span, #status { font-family: var(--mono); }
.eyebrow { color: var(--accent); letter-spacing: .09em; font-size: .78rem; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: .35em; }
h1 { margin: 0; font-size: clamp(2.75rem, 8.2vw, 6.4rem); line-height: .99; letter-spacing: -.07em; }
h2, h3, p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); margin: 22px 0 0; max-width: 600px; }
.terminal, .report, .product { background: var(--panel); border: 1px solid var(--line); padding: clamp(16px, 3vw, 28px); }
form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, .35fr) auto; align-items: end; gap: 12px; }
.input-group { display: grid; gap: 6px; min-width: 0; }
label { font-size: .78rem; color: var(--muted); }
input, select, button, .button { font: inherit; border-radius: 0; min-height: 44px; }
input, select { width: 100%; border: 1px solid #52605a; background: var(--bg); color: var(--text); padding: 8px 12px; }
input { font-family: var(--mono); }
button, .button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { border: 1px solid var(--accent); padding: 8px 18px; color: var(--bg); background: var(--accent); font-weight: 800; }
.primary:hover { background: #d4ffa6; }
.presets, .actions, .report-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.presets { margin-top: 15px; font: .79rem var(--mono); color: var(--muted); }
.presets button, .candidate { border: 1px solid var(--line); background: var(--bg); color: var(--text); min-height: 36px; padding: 4px 10px; }
.presets button:hover, .candidate:hover { border-color: var(--accent); }
#status { color: var(--muted); font-size: .83rem; margin: 16px 0 0; }
#candidates { display: grid; gap: 8px; margin-top: 12px; }
.candidate { text-align: left; overflow-wrap: anywhere; }
.report { margin-top: 12px; }
.report-head, .flags-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-head > div:first-child { min-width: 0; }
.report-head h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.mono, code { overflow-wrap: anywhere; }
.score { border-left: 2px solid currentColor; padding: 0 14px; display: grid; }
.score strong { font: 700 2.5rem/1.2 var(--mono); }
.score span, .meta { font-size: .77rem; }
.meta { color: var(--muted); }
.market { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 16px 0 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric { padding: 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.metric span { display: block; }
.flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0 22px; padding: 0; margin: 0 0 16px; list-style: none; }
.flags li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; font-size: .85rem; }
.flags strong { font-family: var(--mono); text-align: right; }
.red { color: var(--red); } .amber { color: var(--amber); } .green { color: var(--accent); } .unknown { color: var(--muted); }
.button { display: inline-flex; align-items: center; border: 1px solid #52605a; background: transparent; color: var(--text); padding: 7px 11px; text-decoration: none; font-size: .85rem; }
.button:hover { color: var(--accent); border-color: var(--accent); }
.products { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 34px; }
.product { min-width: 0; }
.product h2 { font-size: 1.3rem; line-height: 1.15; }
.product p { color: var(--muted); }
.product > .button + p { margin-top: 10px; }
details { border-top: 1px solid var(--line); margin: 12px 0; padding-top: 12px; }
summary { cursor: pointer; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
summary span { float: right; white-space: nowrap; }
details code { display: block; margin-bottom: 12px; }
.footer { color: var(--muted); font-size: .83rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 26px; }
@media(max-width: 800px) { .products { grid-template-columns: 1fr 1fr; } .product:first-child { grid-column: 1 / -1; } }
@media(max-width: 575px) {
  .wrap { width: calc(100% - 28px); }
  nav { gap: 9px; font-size: .76rem; }
  form, .products { grid-template-columns: 1fr; }
  .flags { grid-template-columns: minmax(0, 1fr); }
}
