:root {
    color-scheme: dark;
    --accent: #dc5c3b;
    --accent-ink: #ffffff;
    --accent-soft: rgb(220 92 59 / 14%);
    --accent-line: rgb(220 92 59 / 42%);
    --bg: #111214;
    --surface: #18191c;
    --surface-2: #1f2125;
    --hover: #24262b;
    --line: #2a2c31;
    --line-strong: #383b41;
    --text: #ececee;
    --muted: #9b9ea6;
    --faint: #6d7079;
    --good: #5cc98f;
    --warn: #e5b85c;
    --bad: #f08585;
    --admin: #b9a4ec;
    --staff: #f08a3c;
    --gold: #e8c886;
    --medal: #7cb8f2;
    --radius-lg: 12px;
    --radius: 9px;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
    --header: 60px;
    font-family: var(--sans);
    font-size: 15px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 8px 12px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { top: 10px; }

/* Blur is reserved for things the page scrolls underneath: the header, menus and the publish action bar. */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header); background: rgb(17 18 20 / 82%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; background: var(--accent); mask: url("/brand/logo") center / contain no-repeat; -webkit-mask: url("/brand/logo") center / contain no-repeat; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.main-nav a:hover { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search .icon { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--faint); }
.header-search input[type=search] { min-height: 34px !important; padding: 0 36px 0 33px !important; font-size: 14px; }
.header-search kbd { position: absolute; right: 8px; top: 7px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--faint); font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: none; color: var(--muted); }
.icon-button:hover { color: var(--text); background: var(--surface-2); }
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 10px/17px var(--mono); text-align: center; }
.menu-toggle, .mobile-search { display: none; }
.menu-wrap { position: relative; }
.user-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; }
.user-button[aria-expanded="true"] { outline: 2px solid var(--line-strong); outline-offset: 2px; }

.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; font-size: 13px; object-fit: cover; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 88px; height: 88px; border-radius: 20px; font-size: 32px; }

.dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; min-width: 260px; max-height: calc(100vh - var(--header) - 16px); overflow: auto; padding: 6px; border-radius: var(--radius-lg); background: rgb(28 30 34 / 92%); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgb(0 0 0 / 45%); }
.dropdown-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.dropdown-head strong { display: block; line-height: 1.25; }
.dropdown-head small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.dropdown a, .dropdown button.item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: none; color: var(--text); font-size: 14px; text-align: left; }
.dropdown a:hover, .dropdown button.item:hover { background: var(--hover); }
.dropdown .icon { width: 16px; height: 16px; color: var(--muted); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }
.dropdown .label { padding: 6px 8px 2px; color: var(--faint); font-size: 12px; }
.dropdown .meta { margin-left: auto; color: var(--faint); font: 11px var(--mono); }
.dropdown .danger-item, .dropdown .danger-item .icon { color: var(--bad); }
.notification-list { max-height: 340px; overflow: auto; }
.notification-list > .hint { margin: 0; padding: 8px; }
.notification { display: block; padding: 8px; border-radius: 7px; font-size: 13px; }
.notification:hover { background: var(--hover); }
.notification time { display: block; color: var(--faint); font-size: 12px; }

main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; flex: 1; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 100px 0; color: var(--muted); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.breadcrumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.breadcrumb:hover { color: var(--text); }
.breadcrumb .icon { width: 16px; height: 16px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 36px 0 14px; }
.section-title h2, .section-heading { margin: 0; font-size: 17px; font-weight: 600; }
.section-heading { margin: 36px 0 14px; }
.hint, .muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.gap { height: 14px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel { padding: 20px; }
.panel h2, .panel h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.panel .row > h2, .panel .row > h3 { margin-bottom: 0; }
.panel .row:has(> h2, > h3) { margin-bottom: 12px; }
.panel h2 .icon, .panel h3 .icon { width: 16px; height: 16px; vertical-align: -3px; color: var(--muted); }
.panel + .panel { margin-top: 12px; }
.stack > .panel, .grid-2 > .panel, .analytics-grid > .panel, .mod-sidebar > .panel { margin-top: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--radius); border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.button:hover:not(:disabled) { filter: brightness(1.08); }
.button.subtle { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.button.subtle:hover:not(:disabled) { background: var(--hover); filter: none; }
.button.ghost { background: none; border-color: var(--line); color: var(--muted); }
.button.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); filter: none; }
.button.danger { background: none; border-color: rgb(240 133 133 / 35%); color: var(--bad); }
.button.danger:hover:not(:disabled) { background: rgb(240 133 133 / 8%); filter: none; }
.button.discord { background: #5865f2; color: #fff; }
.button.small { min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.button.large { min-height: 42px; padding: 0 18px; }
.button.block { width: 100%; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.button .icon { width: 16px; height: 16px; }

input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea { width: 100%; min-height: 38px; padding: 8px 11px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--surface); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; }
input[type=range] { width: 100%; }
input[type=file] { width: 100%; font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; }
.mono-input { font-family: var(--mono) !important; font-size: 14px; }
.row > input, .row > select, .toolbar input, .toolbar select { width: auto !important; flex: 1 1 200px; min-width: 0; }
.actions select { width: auto !important; flex: 0 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 550; }
.field > label span, .field-label span { margin-left: 6px; color: var(--faint); font-weight: 400; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check:hover { color: var(--text); }
.error { padding: 10px 12px; border-radius: var(--radius); background: rgb(240 133 133 / 8%); border: 1px solid rgb(240 133 133 / 30%); color: #f4b4b4; font-size: 14px; }
.notice { margin: 0 0 16px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); font-size: 14px; }
.notice a { text-decoration: underline; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.segmented button, .segmented a { padding: 5px 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 14px; }
.segmented button:hover, .segmented a:hover { color: var(--text); }
.segmented [aria-selected="true"], .segmented [aria-current="page"] { background: var(--hover); color: var(--text); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono) !important; font-size: 13px !important; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; white-space: nowrap; background: none; }
.pill .icon { width: 12px; height: 12px; }
.pill.mono { font-family: var(--mono); }
.pill.accent { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.pill.good { color: var(--good); border-color: rgb(92 201 143 / 35%); }
.pill.warn { color: var(--warn); border-color: rgb(229 184 92 / 35%); }
.pill.bad { color: var(--bad); border-color: rgb(240 133 133 / 35%); }
.user-badge { display: inline-flex; align-items: center; margin-left: 4px; vertical-align: -2px; font-size: 12px; }
.user-badge .icon { width: 15px; height: 15px; }
.user-badge + .user-badge { margin-left: 2px; }
.user-badge.staff, .user-badge.developer { color: var(--staff); }
.user-badge.verified { color: var(--good); }
.user-badge.choice { color: var(--gold); }
.user-badge.medal { color: var(--medal); }
.user-badge.medal.more { font: 600 11px/15px var(--mono); }
h1 > .user-badge:first-of-type, h3 > .user-badge:first-of-type { margin-left: 7px; }
h1 .user-badge.medal .icon { width: 24px; height: 24px; }
h1 .user-badge.medal.more { font-size: 15px; }
h1 .user-badge.choice, h1 .user-badge.medal { vertical-align: 1px; }
h1 .user-badge.choice .icon { width: 24px; height: 24px; }
h1 .user-badge .tip { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.choice-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: -4px 0 20px; padding: 14px 16px; border-radius: var(--radius); background: rgb(232 200 134 / 8%); border: 1px solid rgb(232 200 134 / 30%); }
.choice-note > .icon { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.choice-note strong { display: block; color: var(--gold); font-size: 13px; font-weight: 600; }
.choice-note p { margin: 4px 0 2px; max-width: 72ch; white-space: pre-line; overflow-wrap: anywhere; }
.choice-note small { color: var(--faint); font-size: 12px; }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod-card { display: flex; flex-direction: column; min-height: 210px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .12s; }
.mod-card:hover { border-color: var(--line-strong); }
.mod-card:hover h3 { color: var(--accent); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mod-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 11px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 17px; }
.mod-card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mod-card .by { margin-top: 2px; color: var(--muted); font-size: 13px; }
.mod-card .summary { margin: 10px 0 14px; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font: 12px var(--mono); }
.card-foot span { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .icon { width: 13px; height: 13px; }
.skeleton { min-height: 210px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.empty { padding: 48px 20px; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); }
.empty h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.empty p { margin: 0 0 16px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; color: var(--muted); font: 13px var(--mono); }

.browse-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header) + 16px); padding: 0; background: none; border: 0; }
.filter-group + .filter-group { margin-top: 20px; }
.filter-title { display: block; margin: 0 0 8px; color: var(--faint); font-size: 12px; font-weight: 600; }
.category-list { display: grid; gap: 1px; }
.category { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 14px; text-align: left; }
.category .icon { width: 16px; height: 16px; }
.category:hover { color: var(--text); background: var(--surface); }
.category[aria-pressed="true"] { color: var(--text); background: var(--surface-2); }
.category[aria-pressed="true"] .icon { color: var(--accent); }
.filters .check { display: flex; margin: 6px 0; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font: 13px var(--mono); }
.toolbar .count strong { color: var(--text); font-weight: 500; }
.toolbar select { flex: 0 1 200px; }
.toolbar-search { position: relative; flex: 1 1 260px; }
.toolbar-search .icon { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--faint); }
.toolbar-search input { width: 100% !important; padding-left: 33px !important; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters button { cursor: pointer; }
.filters-toggle { display: none; }

.mod-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 480px; z-index: -1; overflow: hidden; pointer-events: none; }
.mod-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(120%); transform: scale(1.2); opacity: .22; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.mod-banner { height: 220px; margin-bottom: 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.mod-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mod-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 0; margin-bottom: 20px; background: none; border: 0; }
.mod-hero .mod-icon { width: 88px; height: 88px; border-radius: 20px; font-size: 32px; }
.mod-hero h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.mod-hero .meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.author-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.author-chip:hover { text-decoration: underline; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 190px; }
.hero-actions .row { justify-content: flex-end; }
.download-menu > .button { width: 100%; }
.download-menu > .button .icon:last-child { width: 16px; height: 16px; margin-left: 2px; }
.download-menu .dropdown { min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 32px)); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 24px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-strip > div { display: flex; align-items: baseline; gap: 8px; }
.stat-strip span { color: var(--muted); font-size: 13px; }
.stat-strip strong { font: 500 14px var(--mono); }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.mod-sidebar { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 12px; }
.tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 9px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { margin-left: 6px; color: var(--faint); font: 12px var(--mono); }
.gallery { padding: 8px; margin-bottom: 12px; }
.gallery-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0b0c0d; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-stage .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(17 18 20 / 80%); }
.gallery-stage .nav.prev { left: 8px; }
.gallery-stage .nav.next { right: 8px; }
.thumbs { display: flex; gap: 6px; padding-top: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 88px; height: 50px; padding: 0; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: none; opacity: .55; }
.thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 32px; background: rgb(0 0 0 / 82%); cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.markdown { color: #d6d8dc; line-height: 1.7; overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { color: var(--text); line-height: 1.3; margin: 1.5em 0 .5em; font-weight: 600; }
.markdown h1 { font-size: 22px; }
.markdown h2 { font-size: 19px; }
.markdown h3 { font-size: 16px; }
.markdown a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.markdown code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); font-size: 13px; }
.markdown pre { padding: 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: auto; }
.markdown pre code { padding: 0; background: none; }
.markdown blockquote { margin: 1em 0; padding: 0 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.markdown table { display: block; overflow: auto; border-collapse: collapse; }
.markdown th, .markdown td { padding: 6px 10px; border: 1px solid var(--line-strong); }
.markdown hr { border: 0; border-top: 1px solid var(--line); }
.download-card { padding: 18px; }
.download-card .version { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.download-card .version strong { font: 600 19px var(--mono); }
.loader-group { padding: 10px 0; border-top: 1px solid var(--line); }
.loader-group:first-of-type { border-top: 0; padding-top: 0; }
.loader-group > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.file-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.file-link + .file-link { margin-top: 6px; }
.file-link:hover { border-color: var(--accent-line); }
.file-link .kind { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 6px; background: var(--bg); color: var(--muted); font: 600 11px var(--mono); }
.file-link .name { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.file-link small { display: block; color: var(--faint); font: 11px var(--mono); }
.file-link > .icon { width: 16px; height: 16px; color: var(--muted); }
.details-list { display: grid; margin: 0; }
.details-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.details-list > div:first-child { border-top: 0; padding-top: 0; }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
.copy-inline { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--text); font: 12px var(--mono); text-align: left; overflow-wrap: anywhere; }
.copy-inline:hover { color: var(--accent); }
.copy-inline .icon { width: 13px; height: 13px; color: var(--faint); }
.link-list { display: grid; gap: 4px; }
.link-list a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; font-size: 14px; }
.link-list a:hover { background: var(--surface-2); }
.link-list .icon { width: 16px; height: 16px; color: var(--muted); }
/* Server-rendered lists shown until a page's script takes over, and to crawlers that don't run scripts. */
.prerender-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.prerender-list a { font-weight: 600; }
.prerender-list .hint { display: block; }
.link-list a .icon:last-child { margin-left: auto; color: var(--faint); }
.release { padding: 16px 18px; }
.release + .release { margin-top: 10px; }
.release header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.release header strong { font: 600 15px var(--mono); }
.release header time { margin-left: auto; color: var(--faint); font: 12px var(--mono); }
.notes { margin: 10px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }
.checksum { display: block; color: var(--faint); font: 11px var(--mono); overflow-wrap: anywhere; word-break: break-all; }
.rating-big { display: flex; align-items: center; gap: 14px; }
.rating-big strong { font: 600 36px var(--mono); line-height: 1; }
.stars { display: inline-flex; gap: 1px; color: var(--line-strong); }
.stars .on { color: #e8b84e; }
.star-input { display: inline-flex; gap: 3px; }
.star-input button { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--line); background: none; color: var(--faint); font-size: 18px; }
.star-input button.on { color: #e8b84e; border-color: rgb(232 184 78 / 40%); }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment header time { color: var(--faint); font-size: 12px; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #d6d8dc; font-size: 14px; }
.ring { position: relative; display: grid; place-items: center; width: 116px; height: 116px; margin: 4px auto 10px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--good); stroke-linecap: round; }
.ring.fail .value { stroke: var(--bad); }
.ring.unknown .value { stroke: var(--line-strong); }
.ring strong { font: 600 20px var(--mono); }
.ring small { display: block; text-align: center; color: var(--faint); font-size: 11px; }
.shield-summary { text-align: center; }
.shield-summary h2 { text-align: left; }
.capabilities { display: flex; flex-wrap: wrap; gap: 5px; }

.shield-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-card { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.check-card summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.check-card summary::-webkit-details-marker { display: none; }
.check-card small { display: block; color: var(--faint); font: 11px var(--mono); margin-top: 3px; }
.check-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.check-card.fail { border-color: rgb(240 133 133 / 35%); }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.stepper button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-align: left; }
.stepper button span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); font: 600 12px var(--mono); }
.stepper button strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.stepper button small { font-size: 12px; }
.stepper button[aria-selected="true"] { border-color: var(--accent-line); }
.stepper button[aria-selected="true"] span { background: var(--accent); color: var(--accent-ink); }
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.publish-step > .panel + .panel { margin-top: 12px; }
.preview-pane { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 6px; }
.preview-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.preview-frame .mod-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px 16px 0; }
.preview-frame .mod-hero .mod-icon { width: 54px; height: 54px; border-radius: 13px; font-size: 20px; }
.preview-frame .mod-hero h1 { font-size: 19px; }
.preview-frame .preview-banner { display: block; width: 100%; height: 100px; object-fit: cover; }
.preview-frame .preview-body { display: grid; gap: 12px; padding: 0 16px 16px; max-height: 420px; overflow: auto; }
.preview-frame .screenshot { margin: 0; border-radius: 8px; }
.dropzone { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.thumb-row { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb-row img { width: 80px; height: 52px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.thumb-row img.square { width: 52px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.loader-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.loader-card strong { font-size: 14px; font-weight: 600; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.editor-toolbar button { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; }
.editor-toolbar button:hover { color: var(--text); background: var(--surface-2); }
.rich-editor { min-height: 200px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); }
.sticky-actions { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-lg); background: rgb(28 30 34 / 92%); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.link-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-bottom: 8px; }
.signin-card { max-width: 460px; margin: 48px auto; padding: 36px; text-align: center; }
.signin-card .brand-mark { display: block; width: 44px; height: 44px; margin: 0 auto 16px; }
.signin-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; }
.signin-card p { color: var(--muted); }

.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 24px; }
.profile-hero h1 { margin: 0; font-size: 24px; font-weight: 650; }
.profile-hero .handle { color: var(--muted); font: 13px var(--mono); }
.profile-hero .about { margin: 10px 0 0; max-width: 720px; color: #d6d8dc; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-links, .member-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.drawer { position: fixed; inset: 0; z-index: 350; display: flex; justify-content: flex-end; background: rgb(0 0 0 / 55%); }
.drawer-panel { width: min(520px, 100%); height: 100%; overflow: auto; padding: 24px; background: var(--surface); border-left: 1px solid var(--line-strong); }
.drawer-panel h2 { margin: 0 0 16px; font-size: 18px; }
.crop { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.crop canvas { width: 112px; height: 112px; border-radius: 20px; border: 1px solid var(--line-strong); }
.crop .controls { flex: 1; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }

.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 1px; padding: 0; background: none; border: 0; }
.side-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.side-nav a .icon { width: 16px; height: 16px; }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.color-input { display: flex; gap: 8px; align-items: center; }
.color-input input[type=color] { width: 40px; height: 38px; padding: 2px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.color-input input[type=text] { max-width: 130px; }
.key-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.key-item:first-child { border-top: 0; }
.key-item > .icon { color: var(--muted); }
.new-key { margin-top: 14px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--accent-line); }
.code-boxes { display: flex; align-items: center; gap: 6px; }
.code-boxes input { text-align: center; text-transform: uppercase; font-family: var(--mono) !important; letter-spacing: .12em; padding: 8px 4px !important; }
.code-boxes span { color: var(--faint); }

.admin-mod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; }
.admin-mod + .admin-mod { margin-top: 8px; }
.admin-mod h3 { margin: 0; font-size: 15px; font-weight: 600; }
.admin-mod .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.admin-mod .comments { grid-column: 1 / -1; }
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { color: var(--muted); font-size: 12px; font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-card { padding: 14px 16px; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 4px; font: 600 24px var(--mono); }
.chart { width: 100%; height: auto; }
.chart text { fill: var(--faint); font: 11px var(--mono); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; gap: 4px; font-size: 13px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.bar-row strong { color: var(--text); font: 500 13px var(--mono); }
.bar { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.world-map { width: 100%; height: auto; }
.world-map path { stroke: var(--surface); stroke-width: .5; }
.world-map path:hover { stroke: var(--text); stroke-width: 1; }
.analytics-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.error-log { padding: 12px 14px; }
.error-log pre { max-height: 260px; overflow: auto; padding: 10px; border-radius: 8px; background: var(--bg); font: 12px var(--mono); white-space: pre-wrap; }

.social-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 12px; align-items: start; }
.person { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person small { display: block; color: var(--faint); font: 12px var(--mono); }
.presence { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.presence.online { background: var(--good); }
.presence.in_game { background: var(--accent); }
.conversation { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 0; border-radius: 7px; background: none; text-align: left; }
.conversation:hover { background: var(--surface-2); }
.conversation[aria-current="true"] { background: var(--hover); }
.conversation small { display: block; color: var(--faint); font-size: 12px; }
.chat-panel { display: flex; flex-direction: column; height: min(70vh, 660px); }
.messages { flex: 1; overflow: auto; padding: 4px; }
.message { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0; }
.message.own { flex-direction: row-reverse; }
.message-body { display: flex; flex-direction: column; min-width: 0; max-width: min(70%, 520px); }
.message.own .message-body { align-items: flex-end; }
.message .bubble { max-width: 100%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.message.own .bubble { border-radius: 12px 12px 4px 12px; background: var(--accent-soft); }
.message time { color: var(--faint); font-size: 11px; }
.message.own time { display: block; text-align: right; }
.composer { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 40px; height: 40px; resize: none; }

.software-tabs { margin-bottom: 28px; }
.product-head { max-width: 700px; margin-bottom: 28px; }
.product-head h1 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -.01em; }
.product-head p { margin: 10px 0 18px; color: var(--muted); font-size: 16px; }
.product-list { display: grid; gap: 8px; max-width: 820px; }
.product-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 18px; }
.product-row:hover { border-color: var(--line-strong); }
.product-row:hover strong { color: var(--accent); }
.product-row span:not(.hint) { color: var(--muted); }
.product-row > .icon { color: var(--faint); }
.screenshot { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; max-width: 980px; }
.feature-list > div { padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 600; margin-bottom: 4px; }
.feature-list dd { margin: 0; color: var(--muted); font-size: 14px; }
.terminal { margin: 10px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0c0d0e; font: 13px/1.65 var(--mono); }
.terminal header { padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.terminal pre { margin: 0; padding: 12px 14px; overflow: auto; color: #d0d3d8; }
.command-table td:first-child { width: 110px; }
.command-table td:first-child code { color: var(--accent); }
.command-table .usage { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.steps { max-width: 860px; margin: 0; padding-left: 22px; }
.steps > li { padding: 4px 0 18px 6px; }
.steps > li::marker { color: var(--muted); font: 14px var(--mono); }
.steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.env-table td:first-child { width: 290px; font: 12px var(--mono); color: var(--text); }
.env-table td:last-child { color: var(--muted); }

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin: 26px 0 6px; font-size: 17px; font-weight: 600; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin: 0; color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-sidebar { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 12px; max-height: calc(100vh - var(--header) - 32px); overflow: auto; padding-bottom: 8px; }
.docs-search { position: relative; }
.docs-search .icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--faint); }
.docs-search input[type=search] { padding-left: 33px; }
.docs-nav { display: grid; gap: 1px; }
.docs-nav h2 { margin: 14px 9px 4px; color: var(--faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.docs-nav a { display: block; padding: 6px 9px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.docs-nav a:hover { color: var(--text); background: var(--surface); }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.docs-nav .docs-result { display: grid; gap: 2px; padding: 8px 9px; }
.docs-result strong { color: var(--text); font-weight: 600; }
.docs-result small { color: var(--faint); font-size: 12px; }
.docs-result span { font-size: 13px; line-height: 1.45; }
.docs-result mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; }
.docs-empty { margin: 4px 9px; }
.docs-nav-toggle { display: none; }
.docs-new { display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.docs-new input:not([type=checkbox]) { min-height: 30px; padding: 4px 9px; font: 13px var(--mono); }
.docs-new .button { flex-shrink: 0; }
.docs-main { min-width: 0; max-width: 820px; }
.docs-head { align-items: flex-start; }
.docs-kicker { margin: 0 0 4px !important; color: var(--accent) !important; font-size: 13px; font-weight: 600; }
.docs-body { font-size: 15px; }
.docs-body h2 { font-size: 20px; padding-top: 4px; }
.docs-body h2:not(:first-child) { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.docs-body img { border-radius: 8px; border: 1px solid var(--line); }
.docs-body ul, .docs-body ol { padding-left: 1.4em; }
.docs-body li + li { margin-top: .25em; }
.docs-body input[type=checkbox] { margin-right: 6px; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.docs-pager a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 14px 16px; font-weight: 600; }
.docs-pager a:hover { border-color: var(--line-strong); }
.docs-pager a small { flex-basis: 100%; color: var(--faint); font-size: 12px; font-weight: 400; }
.docs-pager a.next { justify-content: flex-end; text-align: right; grid-column: 2; }
.docs-pager .icon { width: 16px; height: 16px; color: var(--muted); }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.docs-cards ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.docs-cards a { color: var(--text); font-weight: 550; }
.docs-cards a:hover { color: var(--accent); }
.docs-cards .hint { margin: 2px 0 0; }
.docs-prerender { max-width: 820px; margin-left: 280px; }
.docs-editor > .hint { margin: -12px 0 16px; }
.docs-editor-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docs-editor-pane { display: grid; grid-template-rows: auto 1fr; gap: 6px; min-width: 0; }
.docs-editor-pane label, .docs-editor-label { color: var(--muted); font-size: 13px; }
.docs-editor textarea { min-height: 65vh; font: 13px/1.6 var(--mono); tab-size: 4; }
.docs-editor #docs-preview { min-height: 65vh; max-height: 75vh; overflow: auto; }
.docs-layout:has(.docs-editor) { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.docs-layout:has(.docs-editor) .docs-main { max-width: none; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.footer-inner .brand { font-size: 15px; color: var(--muted); }
.footer-inner .brand-mark { width: 20px; height: 20px; background: var(--faint); }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner .quip { font: 12px var(--mono); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 500; display: grid; gap: 6px; }
.toast { max-width: 360px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgb(0 0 0 / 40%); font-size: 14px; }
.toast.error { border-color: rgb(240 133 133 / 45%); }

@media (max-width: 1060px) {
    .mod-layout, .publish-layout { grid-template-columns: minmax(0, 1fr); }
    .mod-sidebar, .preview-pane { position: static; }
    .mod-hero { grid-template-columns: auto minmax(0, 1fr); }
    .hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .hero-actions .row { justify-content: flex-start; }
    .download-menu .dropdown { right: auto; left: 0; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
    .header-inner { gap: 10px; padding: 0 16px; }
    .menu-toggle { display: grid; }
    .main-nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; flex-direction: column; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 12px; font-size: 15px; }
    .header-search kbd { display: none; }
    main { padding: 22px 16px 64px; }
    .browse-layout, .settings-layout, .social-layout, .shield-layout { grid-template-columns: minmax(0, 1fr); }
    .filters { position: static; display: none; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
    .filters.open { display: block; }
    .filters-toggle { display: inline-flex; }
    .side-nav { position: static; display: flex; overflow-x: auto; }
    .side-nav a { white-space: nowrap; }
    .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
    .profile-hero > .row { grid-column: 1 / -1; }
    .check-grid, .loader-cards, .grid-2, .stepper, .feature-list { grid-template-columns: minmax(0, 1fr); }
    .product-row { grid-template-columns: minmax(0, 1fr) auto; }
    .product-row span { grid-column: 1; }
    .product-row > .icon { grid-row: 1; grid-column: 2; }
    .env-table td:first-child { width: auto; }
    .docs-layout, .docs-layout:has(.docs-editor) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .docs-sidebar { position: static; max-height: none; overflow: visible; }
    .docs-nav-toggle { display: inline-flex; justify-self: start; }
    .docs-nav { display: none; }
    .docs-nav.open { display: grid; }
    .docs-prerender { margin-left: 0; }
    .docs-editor-panes { grid-template-columns: minmax(0, 1fr); }
    .docs-editor textarea, .docs-editor #docs-preview { min-height: 50vh; }
}

@media (max-width: 600px) {
    .brand span:last-child { display: none; }
    .header-search { display: none; }
    .mobile-search { display: grid; margin-left: auto; }
    .mod-grid { grid-template-columns: minmax(0, 1fr); }
    .mod-hero { grid-template-columns: minmax(0, 1fr); }
    .mod-hero .mod-icon { width: 64px; height: 64px; border-radius: 15px; font-size: 24px; }
    .mod-banner { height: 140px; }
    .profile-hero { grid-template-columns: minmax(0, 1fr); }
    .avatar.lg { width: 72px; height: 72px; border-radius: 16px; }
    .link-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cards { grid-template-columns: minmax(0, 1fr); }
    .toolbar select { flex: 1 1 100%; }
    .toasts { left: 16px; right: 16px; }
    .docs-pager { grid-template-columns: minmax(0, 1fr); }
    .docs-pager a.next { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.user-badge { position: relative; cursor: default; }
.user-badge:focus-visible { outline-offset: 3px; border-radius: 4px; }
.user-badge .tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 60; width: max-content; max-width: min(300px, 80vw); padding: 7px 10px; border-radius: 8px; background: #2a2d33; border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgb(0 0 0 / 45%); color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.45; white-space: normal; text-align: left; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; pointer-events: none; }
.user-badge:hover .tip, .user-badge:focus-visible .tip { opacity: 1; transform: none; }
.dropdown .dropdown-head { position: relative; }
.dropdown .user-badge { position: static; }
.dropdown .user-badge .tip { top: calc(100% - 4px); bottom: auto; left: 8px; right: 8px; width: auto; max-width: none; }

.version-label { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--faint); font: 12px var(--mono); }
.version-label:hover { color: var(--text); border-color: var(--line-strong); }
.about-dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgb(0 0 0 / 55%); }
.about-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.about-dialog h2 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.about-dialog .hint { margin: 14px 0; }
.about-dialog a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.brand-image .brand-mark, .brand-image .footer-inner .brand-mark { background: url("/brand/logo") center / contain no-repeat; mask: none; -webkit-mask: none; }

/* Store: buying, donations and injector installs */
.file-link.disabled { opacity: .7; }
.file-link.disabled:hover { border-color: var(--line); }
.store-card { display: grid; gap: 8px; }
.store-card .hint { margin: 0 0 4px; }
.store-card .icon { width: 15px; height: 15px; vertical-align: -2px; }
.card-foot .price { color: var(--text); font-weight: 600; }
.footer-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--text); }
.donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.donate-amounts legend { margin-bottom: 8px; }
.donate-amount { position: relative; }
.donate-amount input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.donate-amount span { display: grid; place-items: center; min-height: 40px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); font: 600 14px var(--mono); }
.donate-amount input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.donate-amount input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .donate-amounts { grid-template-columns: repeat(2, 1fr); } }
.payout-totals { margin: 14px 0; }

/* Tiers, memberships and disputes */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tier-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.tier-card header { display: grid; gap: 4px; justify-items: start; }
.tier-card h3 { margin: 0; font-size: 16px; }
.tier-price { font: 600 18px var(--mono); }
.tier-benefits { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tier-benefits li { display: flex; gap: 8px; align-items: flex-start; }
.tier-benefits .icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.tier-card > .button, .tier-card > .pill { margin-top: auto; }
.tier-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tier-mods { display: grid; gap: 6px; padding: 0; border: 0; }
.tier-admin-list { margin-bottom: 12px; }
.buy-chooser { display: flex; gap: 8px; width: 100%; }
.buy-chooser select { flex: 1; min-width: 0; }
.buy-chooser.large { min-width: 280px; }
.buy-chooser.large select, .buy-chooser.large .button { min-height: 44px; }
.subhead { margin: 18px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dispute-reason { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 6px; white-space: pre-wrap; font-size: 14px; }
.dispute .row .grow { flex: 1; }
@media (max-width: 640px) { .buy-chooser, .buy-chooser.large { min-width: 0; flex-wrap: wrap; } }
.store-card .buy-chooser { flex-direction: column; }
#purchases { margin-top: 24px; }

/* Sign-in, sign-up and account email pages */
.signin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.auth-card { text-align: left; }
.auth-card > .brand-mark, .auth-card > h1 { text-align: center; }
.auth-card > h1 { margin-bottom: 20px; }
.auth-card .button.block { width: 100%; justify-content: center; }
.auth-methods { display: grid; gap: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: var(--radius); background: var(--surface-2); }
.auth-tabs a { padding: 8px; border-radius: 7px; text-align: center; font-size: 14px; font-weight: 550; color: var(--muted); }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs a[aria-selected="true"] { background: var(--bg); color: var(--text); }
.auth-forgot { margin: -4px 0 12px; text-align: right; }
.auth-methods:empty { display: none; }
.auth-form { display: grid; gap: 4px; }
.auth-form .field { margin-bottom: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--faint); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-status { min-height: 1.2em; margin: 12px 0 0; font-size: 14px; }
.auth-status:empty { display: none; }
.auth-status.error { color: var(--bad); }
.auth-status.good { color: var(--good); }
.auth-foot { margin: 20px 0 0; text-align: center; }
.password-input { position: relative; display: flex; }
.password-input input { flex: 1; padding-right: 44px; }
.password-input .button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 4px 8px; }
.toggle-card { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle-card input { margin-top: 3px; flex: none; }

/* Admin email */
.email-admin textarea { font-family: var(--mono); font-size: 13px; }
.email-preview { margin-top: 16px; padding: 16px; }
.broadcast { padding: 12px 0; border-top: 1px solid var(--line); }
.broadcast:first-of-type { border-top: 0; }
.broadcast summary { display: grid; gap: 6px; cursor: pointer; list-style: none; }
.broadcast summary::-webkit-details-marker { display: none; }
.broadcast-body { margin: 10px 0 0; padding: 12px; border-radius: var(--radius); background: var(--surface-2); white-space: pre-wrap; font-size: 13px; max-height: 280px; overflow: auto; }
.error-text { color: var(--bad); }

/* Mod Extensions and Docs tabs */
.ext-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ext-head h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.ext-head p { margin: 0; }
.ext-head .button { flex-shrink: 0; }
.ext-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.ext-toolbar .docs-search input { padding-left: 33px; }
.ext-toolbar .segmented .count { margin-left: 6px; color: var(--faint); font: 12px var(--mono); }
.ext-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ext-item .mod-card { flex: 1; }
.ext-item.featured .mod-card { border-color: var(--accent-line); }
.ext-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ext-api { margin-top: 16px; }
.ext-api summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.ext-api pre { overflow-x: auto; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); font: 13px var(--mono); }
.tab-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 14px; }
.tab-toggles .check { color: var(--text); font-weight: 600; }
.tab-toggles p { margin: 4px 0 8px; }
.mod-docs { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: start; }
.mod-docs-nav { display: grid; gap: 10px; position: sticky; top: calc(var(--header) + 16px); }
.mod-docs .docs-nav { display: grid; }
.mod-docs .docs-main { max-width: none; }
.mod-doc .doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.mod-doc .doc-head h1 { margin: 0; font-size: 24px; font-weight: 650; overflow-wrap: anywhere; }
.mod-doc .doc-head .row { flex-shrink: 0; gap: 6px; }
.icon.up, .icon.down { transform: rotate(90deg); }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.doc-pager a { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.doc-pager a:hover { border-color: var(--line-strong); }
.doc-pager a.next { text-align: right; grid-column: 2; }
.doc-pager small { color: var(--faint); font-size: 12px; }
@media (max-width: 840px) {
    .mod-docs { grid-template-columns: minmax(0, 1fr); }
    .mod-docs-nav { position: static; }
    .ext-head { flex-direction: column; }
}

/* OAuth apps: logos, the verified checkmark, the consent screen and Settings -> Developer. */
.app-logo { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted); font-weight: 650; font-size: 18px; }
.app-logo.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.app-logo.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
.app-verified { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; background: var(--good); color: #0c0d10; vertical-align: -3px; cursor: default; }
.app-verified .icon, .panel h2 .app-verified .icon { width: 12px; height: 12px; stroke-width: 3; color: inherit; vertical-align: 0; }
.app-verified:focus-visible { outline-offset: 2px; }
.app-verified .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 60; width: max-content; max-width: min(260px, 80vw); padding: 7px 10px; border-radius: 8px; background: #2a2d33; border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgb(0 0 0 / 45%); color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; opacity: 0; transform: translate(-50%, 3px); transition: opacity .12s, transform .12s; pointer-events: none; }
.app-verified:hover .tip, .app-verified:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }

.side-nav-label { margin: 14px 9px 4px; color: var(--faint); font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.app-row { color: inherit; }
.app-row:hover strong { text-decoration: underline; }
.app-head { align-items: center; gap: 14px; }
.app-title { display: flex; align-items: center; margin: 0 0 4px; }
.endpoint-list { display: grid; gap: 6px; margin-bottom: 14px; }
.endpoint-list div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.endpoint-list span { min-width: 80px; color: var(--muted); font-size: 13px; }
.endpoint-list code { font-size: 13px; overflow-wrap: anywhere; }
.auth-app { display: flex; align-items: center; gap: 10px; }

.consent-card { max-width: 480px; }
.consent-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.consent-logos .brand-mark { display: block; width: 52px; height: 52px; margin: 0; }
.consent-link { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px dashed var(--line-strong); color: var(--faint); }
.consent-link .icon { width: 15px; height: 15px; }
.consent-title { display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.consent-warning { text-align: left; border-left-color: var(--warn); }
.consent-account { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 14px; text-align: left; }
.consent-heading { margin: 0 0 10px; font-size: 15px; text-align: left; }
.consent-scopes { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; text-align: left; font-size: 14px; }
.consent-scopes li { display: flex; gap: 10px; align-items: flex-start; }
.consent-scopes .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--good); }
.consent-foot { text-align: left; font-size: 13px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.consent-actions .button { justify-content: center; }
@media (max-width: 480px) { .consent-card { padding: 24px 18px; } }
