:root {
  color-scheme: dark;
  --bg: #050810;
  --card: #0b1220cc;
  --line: #ffffff14;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --cyan: #45cefc;
  --blue: #0d7ae3;
  --violet: #6c44dd;
  --mag: #b6229c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 420px at 8% -10%, #45cefc22, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #b6229c22, transparent 50%),
    radial-gradient(600px 400px at 70% 110%, #6c44dd18, transparent 45%);
}
.wrap { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 0 .85rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; }
.brand img { width: 2.15rem; height: 2.15rem; display: block; }
.brand b { letter-spacing: .12em; font-size: .82rem; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.who { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .8rem; }
.who canvas { border-radius: 6px; }
.who code { color: var(--text); font-size: .75rem; }
nav.bar {
  display: flex; flex-wrap: wrap; gap: .35rem;
  border-bottom: 1px solid var(--line); padding: 0 0 .85rem;
}
nav.bar a, nav.bar span {
  font: 600 12px system-ui; letter-spacing: .04em; text-transform: uppercase;
  padding: .4rem .7rem; border-radius: 7px; text-decoration: none;
  color: var(--muted); border: 1px solid transparent;
}
nav.bar a:hover { color: var(--text); border-color: #ffffff22; }
nav.bar a.on { color: var(--text); background: #45cefc14; border-color: #45cefc44; }
nav.bar span.off { opacity: .45; cursor: not-allowed; }
hero, .hero { padding: 1.6rem 0 1.2rem; }
h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 650; letter-spacing: -.03em;
  margin: 0 0 .6rem; line-height: 1.15;
}
.lead { max-width: 38rem; color: var(--muted); margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }
#gate { margin: 1.4rem 0 0; min-height: 42px; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 840px) {
  .grid { grid-template-columns: 22rem 1fr; align-items: start; }
  .grid.push { grid-template-columns: 1fr 22rem; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.25rem;
  backdrop-filter: blur(16px);
}
.card h2 { margin: 0 0 .35rem; font-size: 1rem; }
.hint { color: var(--muted); font-size: .82rem; margin: 0 0 1rem; }
label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .7rem 0 .3rem; }
input, textarea, select {
  width: 100%; background: #070b12; color: var(--text);
  border: 1px solid #ffffff1a; border-radius: 8px;
  padding: .62rem .7rem; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 1px solid #45cefc66; border-color: #45cefc55; }
textarea { min-height: 5.2rem; font: 13px/1.4 ui-monospace, SFMono-Regular, monospace; resize: vertical; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; margin: 0 0 1rem; }
.filters .f { flex: 1 1 8rem; min-width: 7rem; }
.filters .f.grow { flex: 2 1 14rem; }
.go {
  margin-top: 1rem; width: 100%;
  background: linear-gradient(105deg, var(--cyan), var(--blue) 40%, var(--violet) 72%, var(--mag));
  color: #fff; border: 0; border-radius: 9px;
  padding: .7rem 1rem; font: 650 14px system-ui; cursor: pointer;
}
.go:disabled { opacity: .55; cursor: wait; }
.err { color: #ff8a8a; font-size: .85rem; margin-top: .65rem; }
.app { margin-bottom: 0; }
.app + .app { margin-top: 1rem; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.id { font: 12px/1.4 ui-monospace, monospace; color: var(--muted); word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .55rem 0 .8rem; }
.chip {
  font: 11px ui-monospace, monospace; color: var(--cyan);
  border: 1px solid #45cefc33; background: #45cefc0d;
  padding: .2rem .45rem; border-radius: 999px;
}
pre {
  margin: 0; padding: .85rem .9rem; overflow: auto;
  background: #070b12; border: 1px solid #ffffff12; border-radius: 10px;
  font: 12px/1.45 ui-monospace, monospace; color: #d5e4f2;
}
pre.prompt { max-height: 14rem; white-space: pre-wrap; }
.howto { margin: 0 0 .85rem; padding: 0 0 0 1.15rem; color: var(--muted); font-size: .84rem; }
.howto li { margin: .28rem 0; }
.howto code { color: var(--text); font-size: .8em; }
.ghost {
  flex: none; background: transparent; color: var(--text);
  border: 1px solid #ffffff22; border-radius: 7px;
  padding: .32rem .55rem; font: 600 12px system-ui; cursor: pointer;
}
.ghost:hover { border-color: #45cefc66; }
.danger { color: #ff8a8a; border-color: #ff8a8a44; }
.danger:hover { border-color: #ff8a8aaa; }
.empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }
footer {
  margin-top: 2.5rem; color: var(--muted); font-size: .78rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
a { color: var(--cyan); }
[hidden] { display: none !important; }
table.subs { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.subs th {
  text-align: left; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: .4rem .45rem; border-bottom: 1px solid var(--line);
}
table.subs td { padding: .55rem .45rem; border-bottom: 1px solid #ffffff0a; vertical-align: top; }
table.subs tr { cursor: pointer; }
table.subs tr:hover { background: #45cefc0c; }
table.subs tr.on { background: #45cefc18; }
table.subs code { font-size: .75rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .85rem; color: var(--muted); font-size: .8rem; }
.preview {
  background: #111; border-radius: 12px; padding: .85rem 1rem; margin-top: .6rem;
  border: 1px solid #ffffff18; max-width: 20rem;
}
.preview .t { font: 650 13px system-ui; }
.preview .b { font-size: .8rem; color: #c8d4e0; margin-top: .25rem; }
.preview .s { font-size: .7rem; color: var(--muted); margin-top: .35rem; }
.checks { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0; }
.checks label { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); display: flex; gap: .45rem; align-items: center; margin: 0; }
.checks input { width: auto; }