:root {
    --bg: #0e1014;
    --panel: #161920;
    --panel-2: #1c2029;
    --line: #262b36;
    --text: #e7e9ee;
    --muted: #8b93a3;
    --faint: #5c6473;
    --accent: #5865f2;
    --accent-soft: rgba(88, 101, 242, 0.14);
    --good: #3ba55d;
    --warn: #e0a43a;
    --bad: #e5484d;
    --radius: 10px;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }

/* Elements hidden from JS must stay hidden even when a class sets display. */
[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: #9aa5ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.loading { display: grid; place-items: center; height: 100vh; color: var(--muted); }

/* ---------- layout ---------- */

.shell {
    display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh;
    background: linear-gradient(to right, var(--panel) 228px, var(--bg) 228px);
}

.sidebar {
    background: var(--panel);
    border-right: 1px solid var(--line);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand img, .brand .mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--accent); display: grid; place-items: center; font-weight: 700;
}
.brand b { display: block; font-size: 15px; }
.brand span { color: var(--muted); font-size: 12px; }

.nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--muted); font-weight: 500;
}
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav .icon { width: 18px; text-align: center; }

.me {
    margin-top: auto; display: flex; align-items: center; gap: 10px;
    padding: 10px 8px 0; border-top: 1px solid var(--line);
}
.me img, .me .avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--panel-2); }
.me .who { flex: 1; min-width: 0; }
.me b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me button { padding: 4px 8px; font-size: 12px; }

main { padding: 28px 32px 60px; max-width: 1180px; width: 100%; min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
h2 { font-size: 15px; margin: 0 0 12px; }

.demo-banner {
    background: rgba(224, 164, 58, 0.12); border: 1px solid rgba(224, 164, 58, 0.35);
    color: #f1c879; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; font-size: 13px;
}

/* ---------- building blocks ---------- */

.grid { display: grid; gap: 14px; }
.grid.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 14px; }
.grid.two { grid-template-columns: 1.4fr 1fr; align-items: start; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 16px 16px 0; }

.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.stat .value { font-size: 26px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12px; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input, textarea, select {
    background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 10px; font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
textarea { resize: vertical; min-height: 72px; width: 100%; }
label { display: block; color: var(--muted); font-size: 12px; margin: 10px 0 4px; }

button {
    background: var(--panel-2); color: var(--text);
    border: 1px solid var(--line); border-radius: 8px;
    padding: 8px 12px; font: inherit; font-weight: 500; cursor: pointer;
}
button:hover { border-color: #3a4150; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: #ff8b8e; }
button.small { padding: 4px 8px; font-size: 12px; }
button:disabled { opacity: 0.5; cursor: default; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; background: transparent; color: var(--muted); }
.segmented button.on { background: var(--accent-soft); color: var(--text); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table-wrap { overflow-x: auto; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: 12px; }
.empty { color: var(--muted); padding: 22px 16px; text-align: center; }
.wrap-text { white-space: pre-wrap; word-break: break-word; }

.pill {
    display: inline-block; padding: 1px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 500; background: var(--panel-2); border: 1px solid var(--line);
}
.pill.good { color: #7ed69a; border-color: rgba(59, 165, 93, 0.4); background: rgba(59, 165, 93, 0.1); }
.pill.warn { color: #f1c879; border-color: rgba(224, 164, 58, 0.4); background: rgba(224, 164, 58, 0.1); }
.pill.bad { color: #ff9a9d; border-color: rgba(229, 72, 77, 0.4); background: rgba(229, 72, 77, 0.1); }
.pill.accent { color: #b7beff; border-color: rgba(88, 101, 242, 0.45); background: var(--accent-soft); }

.role { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; }
.role i { width: 9px; height: 9px; border-radius: 50%; background: #99aab5; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }

.user-cell { display: flex; flex-direction: column; }
.user-cell small { color: var(--faint); font-family: var(--mono); font-size: 11px; }

.list { display: flex; flex-direction: column; }
.list-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* ---------- chart ---------- */

.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 30px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; opacity: 0.85; }
.chart .col:hover .bar { opacity: 1; }
.chart .col span { color: var(--faint); font-size: 11px; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin-top: 10px; }

/* ---------- auto answer ---------- */

.answer-card { border-bottom: 1px solid var(--line); padding: 14px 16px; }
.answer-card:last-child { border-bottom: 0; }
.answer-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.answer-card .reply {
    background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: 6px; padding: 8px 10px; margin: 10px 0; white-space: pre-wrap; word-break: break-word;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.chip.taught { border-style: dashed; }
.chip button { background: none; border: 0; padding: 0 0 0 6px; color: var(--faint); }

.result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--panel-2); }

.toast {
    position: fixed; right: 20px; bottom: 20px; padding: 10px 14px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.toast.error { border-color: rgba(229, 72, 77, 0.6); }

/* ---------- login ---------- */

.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login .card { max-width: 360px; width: 100%; text-align: center; padding: 28px; }
.login .mark { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 20px; margin: 0 auto 14px; }
.login a.button { display: block; margin-top: 18px; background: var(--accent); color: #fff; padding: 10px; border-radius: 8px; font-weight: 600; }
.login a.button:hover { text-decoration: none; filter: brightness(1.08); }

@media (max-width: 860px) {
    .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
    .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; }
    .brand { padding: 0 8px 0 0; }
    .nav { display: flex; flex-wrap: wrap; gap: 2px; }
    .me { margin: 0 0 0 auto; border: 0; padding: 0; }
    main { padding: 20px 16px 48px; }
    .grid.two { grid-template-columns: 1fr; }
}

.pos { color: #7ed69a; }
.neg { color: #ff9a9d; }

.brand a.site-link { color: var(--muted); font-size: 12px; }
.small-link { font-size: 12px; padding: 4px 4px; }
form.card input[type="text"], form.card input[type="url"], form.card select, form.card input[type="file"] { width: 100%; }
form.card .faint { font-size: 12px; margin: 10px 0; }

.field-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 10px; margin: 6px 0; }
.field-row label { margin: 0; }
.num-input { width: 90px; }
dl.kv dd select { max-width: 100%; }
details.ask { margin-top: 10px; }
details.ask summary { cursor: pointer; color: var(--muted); font-size: 13px; }
details.ask p { margin: 6px 0; font-size: 12px; }
.chip .role { margin: 0; border: 0; padding: 0; background: none; }
@media (max-width: 860px) { .field-row { grid-template-columns: 1fr; } }

.update-banner {
    position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 12px 10px 16px; border-radius: 10px;
    background: var(--panel-2); border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- events ---------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button.active { background: var(--accent-soft); border-color: var(--accent); color: #c9ceff; }
input[type="color"] { width: 64px; height: 34px; padding: 3px; cursor: pointer; }
input[type="color"]:disabled { cursor: default; }
textarea.mono { font-family: var(--mono); font-size: 13px; }
button.chip { cursor: pointer; font-family: var(--mono); color: var(--text); }
button.chip:hover { border-color: var(--accent); }

.dc-preview { background: #313338; border-radius: var(--radius); padding: 14px; color: #dbdee1; font-size: 14px; min-width: 0; }
.dc-ping { display: inline-block; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; margin-bottom: 4px; }
.dc-embed { background: #2b2d31; border-left: 4px solid #5865f2; border-radius: 4px; padding: 10px 14px 12px; max-width: 520px; }
.dc-title { font-weight: 600; color: #f2f3f5; margin-bottom: 6px; overflow-wrap: anywhere; }
.dc-body { overflow-wrap: anywhere; }
.dc-body code { background: #1e1f22; border-radius: 3px; padding: 0 4px; font-family: var(--mono); font-size: 0.85em; }
.dc-fields { margin-top: 10px; display: grid; gap: 8px; font-size: 13px; }
.dc-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dc-footer { margin-top: 8px; font-size: 12px; color: #949ba4; }
.dc-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dc-button { background: #4e5058; color: #fff; border-radius: 3px; padding: 4px 12px; font-size: 13px; }
.dc-button.green { background: #248046; }
.dc-button.red { background: #da373c; }

@media (max-width: 900px) {
    .dc-inline { grid-template-columns: 1fr; }
}

/* ---------- commands page ---------- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.level { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.level p { margin: 0; font-size: 13px; }
code.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; color: var(--text, inherit); }
td .also { margin-top: 4px; font-size: 13px; color: var(--muted, inherit); }
td .also .pill { margin-left: 4px; }
td .pill { white-space: nowrap; }

/* ---------- license ---------- */
.license-banner {
    background: rgba(224, 164, 58, 0.12); border: 1px solid rgba(224, 164, 58, 0.35);
    color: #f1c879; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 14px;
}
.license-banner.locked { background: rgba(229, 72, 77, 0.12); border-color: rgba(229, 72, 77, 0.4); color: #ff9a9d; }
.license-banner a { color: inherit; font-weight: 600; }
.license-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.license-date { font-size: 18px; font-weight: 600; }

/* Developer page: feature switches and backups */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0; }
.card-head h2 { margin: 0; }
.card.flush > .pad { padding: 0 16px; }
.switch-list { display: flex; flex-direction: column; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.07)); }
.switch-row .faint { font-size: 13px; }
.switch-name { font-weight: 600; margin-bottom: 2px; }
.switch-row button { flex: none; }
.dev-page > .card, .dev-page > .grid.two { margin-bottom: 14px; }

/* Sidebar groups */
.nav-group + .nav-group { margin-top: 14px; }
.nav-heading { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint, #6b7280); padding: 0 10px 6px; }

/* Tabs inside a page */
.page-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: -4px 0 18px; }
.page-tabs button {
    background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    padding: 9px 12px 10px; margin-bottom: -1px; color: var(--muted); font-weight: 500;
}
.page-tabs button:hover { color: var(--text); background: none; }
.page-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { margin-left: 7px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.page-tabs button.active .tab-count { background: var(--accent-soft); color: var(--text); }
.tab-pane[hidden], .add-panel[hidden] { display: none; }
.tab-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 14px; }
.tab-tools .grow { flex: 1; min-width: 200px; }
.add-panel { margin-bottom: 14px; }
.stack { display: grid; gap: 14px; }
@media (max-width: 860px) {
    .nav-group { display: contents; }
    .nav-heading { display: none; }
    .page-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .page-tabs button { white-space: nowrap; }
}
.card.flush > .pad-top { padding: 14px 16px 0; margin: 0; }
.grid.two-even { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .grid.two-even { grid-template-columns: 1fr; } }
.card a.button { display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.card a.button:hover { text-decoration: none; filter: brightness(1.1); }

/* Moderation → Appeals */
.appeal-text { margin: 10px 0 0; }
.appeal-text dd { white-space: pre-wrap; }
.appeal-actions { margin-top: 12px; display: grid; gap: 8px; }
.appeal-actions textarea { min-height: 56px; }

/* ---------- Stats page charts ---------- */
.tab-tools.left { justify-content: flex-start; }
.chart-plot { position: relative; height: 190px; margin-left: 34px; border-bottom: 1px solid #383835; }
.chart-grid { position: absolute; inset: 0; pointer-events: none; }
.grid-line { position: absolute; left: 0; right: 0; border-top: 1px solid #23272f; }
.grid-line span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.chart-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; border-radius: 4px; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { filter: brightness(1.18); }
.chart-col:focus-visible { box-shadow: inset 0 0 0 1px var(--muted); }
.chart-bar { width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; }
.chart-col .peak { font-size: 11px; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart-xlabels { display: flex; gap: 2px; margin-left: 34px; margin-top: 6px; }
.chart-xlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: visible; }
.chart-xlabels.line { position: relative; height: 16px; display: block; }
.chart-xlabels.line span { position: absolute; transform: translateX(-50%); flex: none; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-line { fill: none; stroke-width: 2px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart-hit { position: absolute; inset: 0; cursor: crosshair; outline: none; border-radius: 4px; }
.chart-hit:focus-visible { box-shadow: 0 0 0 1px var(--muted); }
.crosshair { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--muted); pointer-events: none; }
.chart-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.chart-key { display: flex; gap: 16px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.tip-key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.chart-tip {
    position: fixed; z-index: 50; pointer-events: none; min-width: 120px;
    background: #0b0d11; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); font-size: 12px;
}
.chart-tip[hidden] { display: none; }
.tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.tip-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--muted); }
.barlist { display: grid; gap: 10px; }
.barlist-row { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 12px; align-items: center; outline: none; border-radius: 6px; padding: 2px 0; }
.barlist-row:hover .barlist-bar, .barlist-row:focus-visible .barlist-bar { filter: brightness(1.18); }
.barlist-row:focus-visible { box-shadow: 0 0 0 1px var(--muted); }
.barlist-name { min-width: 0; }
.barlist-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barlist-name small { color: var(--faint); font-size: 12px; }
.barlist-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.barlist-bar { height: 14px; border-radius: 0 4px 4px 0; flex: none; max-width: calc(100% - 90px); }
.barlist-value { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.chart-table .table-wrap { margin-top: 8px; }

/* Settings → Prefix commands */
input.prefix-input, .field-row input.prefix-input { width: 72px; max-width: 72px; font-family: var(--mono, ui-monospace, monospace); text-align: center; font-size: 1.05em; }
.prefix-examples { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.prefix-examples p { margin: 0; }
.prefix-examples p + code { margin-top: 2px; }
.prefix-examples code + p { margin-top: 6px; }

/* Moderation → Appeals: the ⬆️ / ⬇️ votes */
.votes { display: flex; flex-direction: column; gap: 2px; }
.vote-side b { font-variant-numeric: tabular-nums; }

/* Moderation → Word filter */
.censored .bad-word { filter: blur(5px); user-select: none; }
.bad-word { transition: filter .15s; }
.word-chip { font-family: var(--mono); }
.word-add { margin-top: 12px; }
.test-result { margin: 10px 0 0; min-height: 1.4em; }
.test-result .pill { margin-right: 4px; }

/* Website → Credits */
.mono-input { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.credits-example { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; margin: 0 0 10px; white-space: pre-wrap; }
.credits-preview { margin-top: 10px; }
.credits-preview-section h3 { margin: 14px 0 6px; font-size: 14px; }
.credits-preview-section ul { margin: 0; padding-left: 18px; }
.credits-preview-section li { margin: 3px 0; }

/* Feedback page */
.feedback-message { margin: 8px 0; font-size: 15px; }
.feedback-from { display: flex; gap: 10px; align-items: baseline; margin: 0 0 10px; }

/* Affiliates page */
.affiliate-item .chip { margin-left: 4px; }
.affiliate-item .flag { margin: 6px 0; color: #ffcf7a; }
.affiliate-about { margin: 6px 0; }
.leader-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.leader-checks .pill { margin-left: 4px; }
.proof-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.proof-thumbs img { width: 140px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* A button that looks like a link (small actions inside a sentence). */
button.link-button { background: none; border: 0; padding: 0; color: #9aa5ff; font: inherit; cursor: pointer; }
button.link-button:hover { text-decoration: underline; }

/* Affiliates: a re-check, old next to new. */
.recheck { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 8px 0; }
.recheck-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recheck-col h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.recheck-col p { margin: 0 0 6px; }
@media (max-width: 700px) { .recheck-compare { grid-template-columns: minmax(0, 1fr); } }

/* The approve checklist (affiliates). */
.checklist-dialog { background: var(--panel); color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(440px, calc(100vw - 32px)); }
.checklist-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.checklist-dialog h3 { margin: 0 0 8px; }
.checklist { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.checklist-dialog .toolbar { justify-content: flex-end; }
.checklist-dialog button:disabled { opacity: 0.45; cursor: not-allowed; }
.section-title { margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
