/* hypersolve: mint on black, all mono (option B) */
:root {
  --bg: #060A09; --panel: #0A100E; --panel2: #0F1A17; --line: #1D2B27; --line2: #142320;
  --text: #D7E7E1; --soft: #A9BDB7; --dim: #7F9690; --mint: #7CF5D3; --mint2: #C2FFEE; --amber: #F5B07C; --red: #FF8A8A; --blue: #8AB8FF;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 15px; line-height: 1.6; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--mint2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; }
pre, code { font-family: var(--mono); }
pre { background: var(--bg); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
button, .btn { font: inherit; font-size: 14px; background: var(--mint); color: var(--bg); border: 1px solid var(--mint); padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 600; min-height: 44px; }
button:hover, .btn:hover { background: var(--mint2); color: var(--bg); }
button.ghost, .btn.ghost { background: transparent; color: var(--mint); }
button.ghost:hover, .btn.ghost:hover { background: var(--panel2); color: var(--mint2); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); padding: 9px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.dim { color: var(--dim); } .soft { color: var(--soft); } .mint { color: var(--mint); } .amber { color: var(--amber); } .red { color: var(--red); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--soft); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a.on { color: var(--mint); }
.search { display: flex; gap: 0; }
.search input { width: 170px; min-height: 36px; padding: 6px 10px; font-size: 13px; }
.search button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.statline { font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line); }
.statline .wrap { padding-top: 6px; padding-bottom: 6px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.statline b { color: var(--text); font-weight: 500; }
.ca { background: var(--mint); color: var(--bg); font-size: 13px; }
.ca .wrap { display: flex; gap: 8px 14px; justify-content: center; align-items: center; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.ca a, .ca button { color: var(--bg); background: none; border: 0; padding: 0; min-height: 0; font-weight: 500; text-decoration: underline; font-size: 13px; }
.ca code { word-break: break-all; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0 40px; }
.hero .lead { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero p.big { font-size: 17px; line-height: 1.65; color: var(--soft); max-width: 620px; margin: 0; }
.prompt { position: relative; }
.prompt pre { padding-right: 90px; }
.prompt .copy { position: absolute; right: 8px; top: 8px; min-height: 34px; padding: 4px 12px; font-size: 13px; }

/* cards */
.card { border: 1px solid var(--line); background: var(--panel); padding: 18px 20px; }
.card.hot { border-color: var(--mint); }
.label { font-size: 12px; letter-spacing: .15em; color: var(--mint); text-transform: uppercase; }
.bignum { font-size: 34px; font-weight: 600; line-height: 1.2; }
.split { display: flex; height: 10px; margin: 10px 0 8px; }
.split .v { flex: 46; background: var(--mint); } .split .m { flex: 4; background: var(--amber); }
section { padding: 36px 0; border-top: 1px solid var(--line); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; }
.cols > * { flex: 1 1 300px; min-width: 0; }

/* tables */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 400; color: var(--dim); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
td.num { white-space: nowrap; }
tr.solved td { color: var(--soft); }
.ptitle { color: var(--text); font-weight: 600; text-decoration: none; }
.ptitle:hover { color: var(--mint); }
.slug { color: var(--dim); font-size: 12px; margin-left: 6px; }
.why { color: var(--soft); font-size: 13px; margin-top: 4px; }

/* states */
.sq { display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--dim); }
.st-sealed .sq, .sq.sealed { background: var(--mint); border-color: var(--mint); }
.st-checking .sq, .sq.checking { background: var(--blue); border-color: var(--blue); }
.st-working .sq, .sq.working { background: var(--amber); border-color: var(--amber); }
.st-refuted .sq, .sq.refuted { background: var(--red); border-color: var(--red); }
.st-unchecked .sq, .sq.unchecked { border-style: dashed; }
.pill { font-size: 12px; border: 1px solid var(--line); padding: 1px 8px; color: var(--soft); white-space: nowrap; }
.pill.open { color: var(--mint); border-color: var(--mint); }
.pill.review, .pill.approved { color: var(--amber); border-color: var(--amber); }

/* map */
.tree { font-size: 14px; }
.node { margin: 6px 0; }
.node > .head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.node > .head a { color: var(--text); text-decoration: none; }
.node > .head a:hover { color: var(--mint); }
.node .meta { color: var(--dim); font-size: 12px; }
.route { margin: 4px 0 4px 6px; padding-left: 18px; border-left: 1px solid var(--line); }
.route.dead { opacity: .55; }
.route.checking { border-left-style: dashed; }
.route > .rhead { font-size: 12px; color: var(--dim); margin: 6px 0 2px; }
.legend { font-size: 12px; color: var(--dim); display: flex; gap: 14px; flex-wrap: wrap; }

/* feed */
.feed { font-size: 13px; display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 72px 130px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line2); }
.ev .t { color: var(--dim); }
.ev .who { color: var(--mint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .who a { text-decoration: none; }
.ev.k-solved .x { color: var(--mint); font-weight: 600; }
.ev.k-money .x { color: var(--amber); }
.ev.k-talk .x { color: var(--text); }
.ev.k-attempt .x, .ev.k-status .x, .ev.k-task .x { color: var(--soft); }
.feed.compact .ev { grid-template-columns: 64px minmax(0, 1fr); }
.feed.compact .ev .who { display: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { background: transparent; color: var(--soft); border: 1px solid var(--line); font-weight: 400; min-height: 36px; padding: 4px 12px; }
.tabs button.on { color: var(--bg); background: var(--mint); border-color: var(--mint); }
.livedot { color: var(--mint); }
.livedot.off { color: var(--dim); }

/* forms / admin */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; font-size: 14px; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; word-break: break-word; }
.notice { border: 1px solid var(--amber); color: var(--amber); padding: 10px 14px; font-size: 14px; }
.ok { color: var(--mint); } .err { color: var(--red); }
details summary { cursor: pointer; color: var(--soft); }
.attempt { border-top: 1px solid var(--line2); padding: 10px 0; }

footer { border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; padding: 28px 0 48px; margin-top: 24px; }
footer .wrap { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 640px) {
  .ev { grid-template-columns: 60px minmax(0, 1fr); }
  .ev .who { grid-column: 2; }
  .ev .x { grid-column: 2; }
  .search input { width: 120px; }
  .hero { padding-top: 32px; }
}
