:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --card: #16161a;
  --card-2: #1c1c21;
  --line: #26262d;
  --line-2: #33333c;
  --fg: #ededf0;
  --fg-2: #b4b4bd;
  --muted: #80808b;
  --accent: #2fd8ec;
  --accent-ink: #00262b;
  --accent-soft: rgba(47, 216, 236, .1);
  --accent-line: rgba(47, 216, 236, .38);
  --discord: #5865f2;
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #f87171;
  --info: #60a5fa;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f4; --bg-2: #efefec; --card: #fff; --card-2: #fafaf8;
    --line: #e4e4df; --line-2: #d6d6cf; --fg: #17171a; --fg-2: #3f3f46; --muted: #6e6e78;
    --accent: #0aa5bd; --accent-ink: #fff; --accent-soft: rgba(10, 165, 189, .1); --accent-line: rgba(10, 140, 160, .4);
    --ok: #15803d; --warn: #b45309; --err: #dc2626; --info: #2563eb;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -16px rgba(0, 0, 0, .18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill { fill: currentColor; stroke: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 750; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-weight: 500; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.brand-dim { color: var(--muted); font-weight: 500; }
.logo { width: 32px; height: 32px; border-radius: 8px; display: block; object-fit: cover; }
.logo.sm { width: 20px; height: 20px; border-radius: 5px; }
nav { display: flex; align-items: center; gap: 10px; }
nav form { margin: 0; }
.navlink { color: var(--fg-2); font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.navlink:hover { color: var(--fg); background: var(--card); }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.who img, .avatar { width: 28px; height: 28px; border-radius: 50%; }
.avatar { background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; }
.notice { background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); padding: 10px 0; font-size: 14px; }
.notice .wrap { display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--card-2); color: var(--fg); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.secondary { background: transparent; }
.btn.secondary:hover { background: var(--card-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--fg-2); }
.btn.ghost:hover { background: var(--card); color: var(--fg); }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.discord:hover { filter: brightness(1.1); }
.btn.danger { background: transparent; color: var(--err); }
.btn.danger:hover { border-color: var(--err); }
.btn.locked { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; cursor: default; }
a.btn.locked { cursor: pointer; }
a.btn.locked:hover { color: var(--fg); }
.block-btn { width: 100%; margin-top: 18px; }

/* pills & tags */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.pill.accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: light) { .pill.accent { color: #0e7490; } }
.tag { display: inline-flex; justify-content: center; min-width: 72px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--card-2); border: 1px solid var(--line); color: var(--fg-2); flex-shrink: 0; }
.tag.added { color: var(--ok); }
.tag.changed { color: var(--warn); }
.tag.fixed { color: var(--info); }
.tag.removed { color: var(--err); }

/* hero */
.hero { border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  background-color: var(--bg-2); position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 56px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 14px; }
@media (prefers-color-scheme: light) { .eyebrow { color: #0e7490; } }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: 17px; color: var(--fg-2); max-width: 620px; margin-top: 16px; }
.lead strong { color: var(--fg); font-weight: 600; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); width: fit-content; box-shadow: var(--shadow); }
.hero-stats div { padding: 14px 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }

/* blocks */
.block { padding-top: 40px; padding-bottom: 8px; }
.block:last-child { padding-bottom: 64px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card h2 + p { margin-top: 4px; }
.pad { padding: 20px 22px 12px; }
.mark { width: 42px; height: 42px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); display: inline-grid; place-items: center; font-weight: 750; font-size: 14px; letter-spacing: -.02em; flex-shrink: 0; color: var(--fg); }
.mark.sm { width: 28px; height: 28px; border-radius: 7px; font-size: 11px; }
.mark.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 19px; }
.mark.lg svg { width: 24px; height: 24px; }
.empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.card.flush .empty { margin: 16px; }

.product { display: flex; flex-direction: column; transition: border-color .15s; }
.product:hover { border-color: var(--line-2); }
.product-top { display: flex; align-items: center; gap: 12px; }
.product-top.big { gap: 16px; margin-bottom: 36px; }
.product-top.big p { margin-top: 6px; }
.product-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-title a:hover { color: var(--accent); }
.desc { color: var(--fg-2); font-size: 14px; margin: 16px 0 18px; flex: 1; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.facts div { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts.col { grid-template-columns: 1fr; margin: 20px 0 14px; }
.facts.col div { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.facts.col div:last-child { border-bottom: 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.product-actions .btn { flex: 1 1 150px; min-width: 0; }
.product-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
.product-actions.col { flex-direction: column; margin-top: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--muted); align-self: flex-start; }
.more svg { width: 15px; height: 15px; transition: transform .15s; }
.more:hover { color: var(--fg); }
.more:hover svg { transform: translateX(3px); }

/* updates list */
.update { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.update:last-child { border-bottom: 0; }
.update:hover { background: var(--card-2); }
.update-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.update-main strong { font-size: 14px; font-weight: 600; }
.update-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps strong { font-size: 14px; font-weight: 600; }
.step-n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
@media (prefers-color-scheme: light) { .step-n { color: #0e7490; } }
.status { margin-top: 18px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); font-size: 14px; color: var(--fg-2); }
.status.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); margin: 0 0 16px; }
.status.err { border-color: color-mix(in srgb, var(--err) 40%, transparent); color: var(--err); background: color-mix(in srgb, var(--err) 8%, transparent); margin: 16px 0 0; }
.card .status.ok { margin: 18px 0 0; }

/* product detail */
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.back:hover { color: var(--fg); }
.detail { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.side { position: sticky; top: 88px; }
.side-ver { font-size: 26px; margin-top: 2px; }
.timeline { position: relative; }
.release { position: relative; padding: 0 0 28px 28px; border-left: 1px solid var(--line-2); margin-left: 6px; }
.release:last-child { border-left-color: transparent; }
.release::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.release.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-head .muted { margin-left: auto; }
.changes { list-style: none; margin: 14px 0 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.changes li { display: flex; gap: 12px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.changes li:last-child { border-bottom: 0; }

/* forms */
.center-card { max-width: 420px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.center-card .form { width: 100%; text-align: left; }
.center-card .btn { margin-top: 8px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.form label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; }
.form .btn { align-self: flex-start; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
input[type=file] { padding: 7px; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); border-radius: 7px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }
textarea { resize: vertical; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* admin */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head .eyebrow { margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.tabs a:hover { background: var(--card-2); color: var(--fg); }
.admin .status.ok { margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.stat-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.stat-top .pill { margin-left: auto; }
.stat strong { font-size: 24px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.admin > .card { margin-bottom: 16px; }
.admin [id] { scroll-margin-top: 84px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-of-type { margin-top: 14px; }
summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 18px; line-height: 1; }
details[open] summary::after { content: "−"; }
details.new summary { color: var(--fg-2); }
.log { width: 100%; border-collapse: collapse; font-size: 13px; }
.log td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.log td:first-child { padding-left: 22px; }
.log .tag { min-width: 0; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 48px; }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.foot p { margin-top: 10px; }

@media (max-width: 900px) {
  .split, .detail, .cols { grid-template-columns: 1fr; }
  .side { position: static; order: -1; margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 40px; }
  .hero-stats { width: 100%; }
  .hero-stats div { flex: 1; padding: 12px 14px; }
  .row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .who-name, .brand-dim, .who .pill { display: none; }
  .btn.discord.small span { display: none; }
  .release-head .muted { margin-left: 0; width: 100%; }
}

/* icons */
img.mark { padding: 0; object-fit: cover; background: var(--card-2); image-rendering: auto; }
.icon-form { border-top: 1px dashed var(--line); padding-top: 14px; }

/* suggestions */
.flash { margin-bottom: 18px; }
.sugg-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--line-2); color: var(--fg); }
.chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--fg); }
.sugg-list { display: flex; flex-direction: column; gap: 12px; }
.sugg { display: flex; gap: 16px; padding: 18px; scroll-margin-top: 90px; }
.sugg:target { border-color: var(--accent-line); }
.vote { margin: 0; }
.vote-btn { width: 52px; height: 60px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; font: inherit; font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
.vote-btn svg { width: 18px; height: 18px; }
.vote-btn:hover:not([disabled]) { border-color: var(--accent-line); color: var(--fg); }
.vote-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: light) { .vote-btn.on { color: #0e7490; } }
.vote-btn[disabled] { cursor: not-allowed; opacity: .7; }
.sugg-main { flex: 1; min-width: 0; }
.sugg-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.sugg-head h3 { font-size: 15.5px; overflow-wrap: anywhere; }
.sugg-body { margin-top: 6px; color: var(--fg-2); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.sugg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.sugg-meta img { width: 18px; height: 18px; border-radius: 50%; }
.sugg-meta form { margin: 0 0 0 auto; }
.reply { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.reply-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.reply-head .pill { height: 20px; font-size: 11px; }
.reply p { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.st { flex-shrink: 0; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); white-space: nowrap; }
summary .st { margin-left: 4px; }
.st-planned { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); }
.st-progress { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.st-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.st-declined { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.votes-sm { font-size: 12px; color: var(--muted); min-width: 40px; }
.sugg-admin { padding: 6px 0 4px; }
.sugg-admin .sugg-body { margin-bottom: 8px; }
.side h2 + .form { margin-top: 12px; }
@media (max-width: 900px) { .sugg-layout { grid-template-columns: 1fr; } .sugg-layout .side { order: -1; } }
@media (max-width: 560px) { .sugg { gap: 12px; padding: 14px; } .vote-btn { width: 44px; height: 52px; } .navlink { padding: 6px; font-size: 13px; } }
.admin-head p { margin-top: 6px; }

/* giveaway */
.giveaway { display: flex; align-items: center; gap: 18px; border-color: var(--accent-line); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card); }
.giveaway.claimed { border-color: var(--line); background: var(--card); }
.gw-icon { color: var(--accent); border-color: var(--accent-line); background: var(--bg-2); }
.giveaway.claimed .gw-icon { color: var(--muted); border-color: var(--line-2); }
@media (prefers-color-scheme: light) { .gw-icon { color: #0e7490; } }
.gw-text { flex: 1; min-width: 0; }
.gw-text p { margin-top: 4px; font-size: 14px; }
.gw-action form { margin: 0; }
.gw-winner { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); }
.gw-winner img { width: 26px; height: 26px; border-radius: 50%; }
.gw-admin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); margin-top: 4px; }
.gw-admin img, .gw-admin .avatar { width: 40px; height: 40px; border-radius: 50%; }
@media (max-width: 640px) { .giveaway { flex-direction: column; align-items: flex-start; } .gw-action, .gw-action .btn { width: 100%; } }
