:root {
  --bg: #0d0e14; --panel: #171923; --panel2: #1f2230; --line: #2b2f41; --line2: #454a66;
  --text: #eef0f7; --muted: #9499b0; --accent: #ff6a3d; --accent2: #ffb23d; --gold: #ffc94a;
  --good: #4cc38a; --bad: #ff6b6b; --warn: #ffb23d; --radius: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
code { background: var(--panel2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); } .center { text-align: center; } .small { font-size: 13px; }
.link { color: var(--accent2); } .link:hover { text-decoration: underline; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
main { max-width: 1160px; margin: 0 auto; padding: 8px 16px 60px; min-height: 70vh; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(13,14,20,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0d05; font-weight: 800; }
#nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
#nav a { padding: 7px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
#nav a:hover { color: var(--text); background: var(--panel); }
#nav a.on { color: var(--text); background: var(--panel2); }
.statusbar { max-width: 1160px; margin: 0 auto; padding: 8px 16px 0; font-size: 12.5px; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.on { background: var(--good); } .dot.off { background: #555b75; } .dot.run { background: var(--accent2); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }

/* avatars */
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; color: #1a0d05; font-weight: 800; flex: none; }
.av.xs { width: 22px; height: 22px; font-size: 11px; } .av.sm { width: 34px; height: 34px; font-size: 14px; }
.av.md { width: 52px; height: 52px; font-size: 20px; } .av.xl { width: 112px; height: 112px; font-size: 44px; border: 4px solid var(--bg); }
.ulink { font-weight: 600; } .ulink:hover { color: var(--accent2); }

/* hero / search */
.hero { text-align: center; padding: 30px 0 16px; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); margin: 10px auto 20px; max-width: 600px; }
.search { width: min(100%, 580px); padding: 14px 18px; font-size: 17px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); outline: none; }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,61,.2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.chips.left { justify-content: flex-start; margin-top: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover, .chip.on, .chip:has(input:checked) { color: var(--text); border-color: var(--accent); }
.chip.on, .chip:has(input:checked) { background: rgba(255,106,61,.15); }
.chip.static { cursor: default; } .chip input { display: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.tabs { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0d05; }
.tabs.sm button { padding: 4px 11px; font-size: 13px; }
.tabs.line { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 4px; margin-bottom: 14px; }
.tabs.line a { padding: 9px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs.line a.on { color: var(--text); border-color: var(--ua, var(--accent)); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type=text], input[type=password], input[type=url], input[type=search], textarea {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; max-width: 100%; }
textarea { width: 100%; min-height: 110px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type=file] { color: var(--muted); font-size: 13px; max-width: 100%; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; min-width: 0; }
.card:hover { transform: translateY(-3px); border-color: var(--line2); }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 15px; }
.card .meta { color: var(--muted); font-size: 12.5px; }
.card .stats { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 2px; gap: 6px; }
.price-row { display: flex; gap: 8px; align-items: baseline; } .price-row b { font-size: 17px; } .price-row s { color: var(--muted); font-size: 13px; }
.art { position: relative; aspect-ratio: 1; display: block; background: #fff; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty-art { display: grid; place-items: center; font-size: 48px; font-weight: 800; color: var(--muted); background: var(--panel2); }
.rank { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; }
.rank.top { background: var(--gold); color: #2a1c00; }
.deal { position: absolute; top: 8px; right: 8px; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.deal.great, .deal.good { background: var(--good); color: #062414; } .deal.bad { background: var(--bad); color: #2b0606; } .deal.warn { background: var(--warn); color: #2a1c00; }
.vflag { position: absolute; bottom: 8px; left: 8px; background: var(--good); color: #062414; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; }
.vbadge { display: inline-block; color: var(--good); font-size: 12px; font-weight: 700; } .vtext { color: var(--good); }
.stars { --p: 0%; display: inline-block; font-size: 14px; letter-spacing: 1px; background: linear-gradient(90deg, var(--gold) var(--p), #3a3f55 var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--line2); } .btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a0d05; border: 0; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.on { border-color: var(--accent); color: var(--accent2); }
.btn.sm { padding: 6px 10px; font-size: 13px; } .btn.block { width: 100%; } .btn.lg { padding: 13px 18px; font-size: 16px; }
.btn.ghost { background: none; }

/* figure detail */
.detail { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; margin-top: 12px; }
.gallery-main { aspect-ratio: 1; background: #fff; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 64px; height: 64px; flex: none; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--accent); } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 30px; }
.listing-title { font-size: 13.5px; margin: 6px 0 14px; }
.price-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.price-box .now { font-size: 30px; font-weight: 700; } .price-box .now s { font-size: 17px; color: var(--muted); font-weight: 400; }
.claim { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; vertical-align: 5px; }
.verdict { border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; background: var(--panel2); border-left: 4px solid #555b75; }
.verdict span { color: var(--muted); font-size: 13.5px; }
.verdict.great, .verdict.good { border-color: var(--good); } .verdict.great b, .verdict.good b { color: var(--good); }
.verdict.inflated { border-color: var(--bad); } .verdict.inflated b { color: var(--bad); }
.verdict.high { border-color: var(--warn); } .verdict.high b { color: var(--warn); }
.rate-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.rate { display: inline-flex; gap: 2px; }
.rate button { background: none; border: 0; font-size: 24px; color: #3a3f55; cursor: pointer; padding: 0 2px; }
.rate button.on, .rate button:hover { color: var(--gold); }
.rate.big button { font-size: 30px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.section-title { margin: 34px 0 12px; font-size: 20px; }
.back { color: var(--muted); display: inline-block; margin: 10px 0 4px; } .back:hover { color: var(--text); }

/* chart */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: none; }
.chart .grid { stroke: #2b2f41; stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 12px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .typ { stroke: #9499b0; stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart .typ-label { fill: var(--muted); font-size: 12px; }
.chart .end { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart .cross { stroke: #9499b0; stroke-width: 1; }
.chart .hover circle { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.tip { position: absolute; transform: translateX(-50%); background: #fff; color: #111; border-radius: 8px; padding: 6px 10px; font-size: 13px; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.tip .muted { color: #666; } .tip s { color: #888; }
.chart-stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin: 10px 0 4px; }
.chart-stats b { color: var(--text); }

/* compare */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.up { color: var(--bad); font-weight: 600; } .down { color: var(--good); font-weight: 600; }

/* reviews */
.reviews { display: grid; gap: 10px; }
.review { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.review:hover { border-color: var(--line2); }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .review h3 { margin: 8px 0 4px; font-size: 16px; } .review p { margin: 0; font-size: 14px; }

/* panels / pages */
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 16px 0 16px; }
.page-head h1 { font-size: 28px; } .page-head p { margin: 4px 0 0; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.panel h3 { margin-bottom: 6px; } .panel summary { cursor: pointer; font-weight: 600; }
.notice { max-width: 680px; margin: 10px auto; text-align: center; }
.form { display: grid; gap: 12px; } .form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.form input[type=text], .form input[type=url], .form input[type=password], .form select { width: 100%; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form.inline { display: flex; gap: 8px; flex-wrap: wrap; } .form.inline input { flex: 1; min-width: 180px; }
.swatches { display: flex; gap: 8px; margin-top: 6px; }
.sw input { display: none; } .sw span { display: block; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; }
.sw input:checked + span { border-color: #fff; }

/* leaderboard */
.board { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.row .pos { font-size: 22px; font-weight: 800; text-align: center; color: var(--muted); }
.row.r1 { border-color: var(--gold); } .row.r1 .pos { color: var(--gold); }
.row h3 { font-size: 16px; } .who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.row .preview { display: flex; gap: 6px; } .row .preview img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #fff; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }
.badge.mod { color: var(--accent2); border-color: #7a5a20; } .badge.review { color: var(--gold); border-color: #7a5a20; }
.badge.Announcement { color: #7ee0a1; border-color: #2d6b45; } .badge.Pre-order { color: #7cc4ff; border-color: #2b5a82; }
.badge.Leak { color: #ff8f8f; border-color: #7d3232; } .badge.Rumor { color: #ffd27c; border-color: #7a5a20; }

/* profile */
.pf { margin-top: 12px; }
.pf-banner { height: 190px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ua), #1f2230) center / cover no-repeat; }
.pf-head { display: flex; align-items: flex-end; gap: 18px; padding: 0 18px; margin-top: -52px; flex-wrap: wrap; }
.pf-name { flex: 1; min-width: 200px; padding-bottom: 6px; } .pf-name h1 { font-size: 26px; }
.pf-actions { display: flex; gap: 8px; padding-bottom: 8px; }
.pf-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.pf-side { margin-top: 0; } .pf-side p { margin: 6px 0 12px; overflow-wrap: anywhere; } .pf-side h4 { margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.pf-stats { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 10px 0 0; font-size: 14px; }
.pf-stats dt { color: var(--muted); } .pf-stats dd { margin: 0; font-weight: 700; text-align: right; }
.fig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.mini-fig { display: flex; gap: 10px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.mini-fig:hover { border-color: var(--line2); }
.mini-fig img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.mini-fig > span { display: grid; gap: 2px; min-width: 0; }

/* forum */
.boards { display: grid; gap: 10px; }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px 220px; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.board-row:hover { border-color: var(--line2); } .board-row h3 { font-size: 17px; } .board-row p { margin: 3px 0 0; }
.b-num { text-align: center; display: grid; } .b-last { display: grid; gap: 2px; min-width: 0; }
.threads { display: grid; gap: 8px; }
.thread { display: grid; grid-template-columns: auto minmax(0, 1fr) 70px 140px; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.thread:hover { border-color: var(--line2); } .t-title { font-weight: 600; overflow-wrap: anywhere; }
.t-meta { text-align: center; display: grid; } .t-last { text-align: right; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.pager a { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); } .pager a.on { color: var(--text); border-color: var(--accent); }
.posts { display: grid; gap: 12px; }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.p-author { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; background: var(--panel2); text-align: center; overflow-wrap: anywhere; }
.p-main { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; }
.p-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; flex: 1; }
.p-body a { color: var(--accent2); text-decoration: underline; }
.p-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.spoiler { display: inline-block; background: var(--panel2); border-radius: 8px; padding: 2px 10px; margin: 2px 0; }
.spoiler summary { cursor: pointer; color: var(--accent2); font-weight: 600; }
.composer textarea { min-height: 150px; }
.attach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.attach { position: relative; } .attach .x { position: absolute; top: 6px; right: 6px; }
.x { background: rgba(0,0,0,.5); color: #fff; border: 0; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; }
.review-pick { display: grid; gap: 8px; }

/* modal */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; display: grid; place-items: center; padding: 16px; }
#modal[hidden] { display: none; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); width: min(560px, 100%); max-height: min(80vh, 720px); display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--panel2); }
.modal-head > div { flex: 1; } .modal-head .x { position: static; }
.modal-search { margin: 12px 16px 6px; }
.pick-list { overflow-y: auto; padding: 6px 16px 16px; display: grid; gap: 8px; }
.pick { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--text); font: inherit; cursor: pointer; }
.pick:hover { border-color: var(--accent); } .pick[hidden] { display: none; }
.pick img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #fff; flex: none; }
.pick > span { display: grid; gap: 2px; min-width: 0; }

/* news */
.news { display: grid; gap: 12px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.post h3 { font-size: 17px; margin: 8px 0 8px; } .post p { margin: 8px 0; color: #cfd3e4; white-space: pre-wrap; overflow-wrap: anywhere; }
.news-imgs { display: grid; gap: 6px; grid-template-columns: repeat(2, 1fr); max-width: 640px; }
.news-imgs.n1 { grid-template-columns: 1fr; }
.news-imgs img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; display: block; aspect-ratio: 4/3; }
.news-imgs.n1 img { aspect-ratio: auto; object-fit: contain; background: #000; }
.hype { display: grid; gap: 2px; text-align: center; align-content: start; }
.report p { margin: 6px 0; overflow-wrap: anywhere; }

.auth { max-width: 400px; margin: 50px auto; }

/* prerendered (crawler) content is replaced as soon as the app boots */
.prerender { padding: 20px 0; } .prerender img { max-width: 160px; height: auto; margin: 4px; border-radius: 8px; background: #fff; }
.prerender a { color: var(--accent2); }

/* bell & notifications */
.bell { position: relative; } .bell .count { position: absolute; top: 0; right: 2px; background: var(--accent); color: #1a0d05; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 0 5px; line-height: 16px; }
.pick.unread { border-color: var(--accent); }

/* figure page extras */
.auth-note { color: var(--muted); border-left: 3px solid var(--warn); padding: 6px 10px; margin: 12px 0 0; background: var(--panel); border-radius: 0 8px 8px 0; }
.wish { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding: 12px; }
.wish input[type=text] { width: 90px; padding: 6px 8px; }
.wish > .muted { flex-basis: 100%; }
.changes { margin: 8px 0; } .changes summary { cursor: pointer; color: var(--accent2); font-size: 13.5px; } .changes table { min-width: 0; max-width: 460px; margin-top: 6px; }

.guide { max-width: 760px; } .guide h1 { font-size: 30px; margin: 10px 0 12px; } .guide h2 { font-size: 20px; margin: 26px 0 8px; }
.guide p, .guide li { line-height: 1.65; color: #d5d8e6; } .guide .lead { font-size: 17px; color: var(--text); } .guide ul { padding-left: 20px; }
.aff { display: block; text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.maker { color: var(--text); }

/* HQ */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 14px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.tile b { font-size: 21px; }
.st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.st.healthy { color: var(--good); } .st.failing { color: var(--bad); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 13.5px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.task summary { cursor: pointer; } .taskrow, .approval { margin-top: 8px; }
.msgs { display: grid; gap: 6px; font-size: 13.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; padding: 18px 16px 30px; max-width: 1160px; margin: 0 auto; }
footer p { margin: 4px 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 90px); background: #fff; color: #111; padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: transform .25s; pointer-events: none; z-index: 40; max-width: 90vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 860px) {
  .detail, .pf-body { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: minmax(0, 1fr) 64px; } .board-row .b-num:nth-of-type(3), .board-row .b-last { display: none; }
  .thread { grid-template-columns: auto minmax(0, 1fr) 56px; } .t-last { display: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .row { grid-template-columns: 32px minmax(0, 1fr) auto; } .row .preview { display: none; }
  .form .two { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; } .p-author { flex-direction: row; justify-content: flex-start; padding: 10px 14px; gap: 8px; }
  .p-author .av.md { width: 34px; height: 34px; font-size: 14px; }
  .pf-head { margin-top: -40px; } .av.xl { width: 84px; height: 84px; font-size: 34px; }
  .pf-banner { height: 130px; }
  .price-box .now { font-size: 26px; }
}
