:root {
    --bg: #080808;
    --bg-soft: #0e0e0e;
    --surface: #151515;
    --surface-2: #1d1d1d;
    --card: rgba(255, 255, 255, .03);
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --text: #e9e9e6;
    --muted: #9c9c98;
    --soft: #cdcdc8;
    --accent: #9fc46c;
    --accent-hover: #b2d184;
    --accent-dim: rgba(159, 196, 108, 0.098);
    --accent-line: rgba(159, 196, 108, 0.224);
    --ink: #0a0a0a;
    --danger: #e39a96;
    --danger-bg: rgba(255, 90, 90, .1);
    --ok: #9fc46c;
    --ok-bg: rgba(159, 196, 108, 0.07);
    --warn: #dcbf78;
    --warn-bg: rgba(220, 191, 120, .1);
    --radius: 18px;
    --radius-sm: 12px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(159, 196, 108, 0.049), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(255, 255, 255, .04), transparent 60%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { display: block; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; margin: 0 0 .5rem; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
    font-weight: 700;
    z-index: 50;
}
.skip:focus { left: 0; }

.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 248px;
    flex: none;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: rgba(8, 8, 8, .82);
    backdrop-filter: blur(16px) saturate(1.4);
    border-right: 1px solid var(--line);
    padding: 22px 14px;
}
.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: lowercase;
    margin-bottom: 26px;
    padding: 0 8px;
}
.brand:hover { color: var(--text); }
.brand small {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .72rem;
    border: 1px solid var(--accent-line);
    background: var(--accent-dim);
    border-radius: 999px;
    padding: 2px 8px;
}
.brand-center { justify-content: center; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    padding: 10px 12px;
    font-size: .95rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-dim); border-color: var(--accent-line); }
.workspace { flex: 1; min-width: 0; overflow-x: clip; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
    padding: 12px 28px;
    background: rgba(8, 8, 8, .78);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.who { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.who-name { font-weight: 700; }
.role {
    color: var(--muted);
    font-size: .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 10px;
}
.content { padding: 34px 28px 64px; max-width: 1320px; }

.page-head, .row-actions, .filters, .quick, .who form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.page-head { justify-content: space-between; align-items: end; margin-bottom: 22px; }
.page-head > div { max-width: 760px; }
.lede, .fine { color: var(--muted); }
.lede { font-size: 1.02rem; }
.eyebrow {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(159, 196, 108, 0.14);
    border-radius: 999px;
    padding: 4px 12px;
    margin: 0 0 12px;
}

.hero {
    position: relative;
    margin: -34px -28px 26px;
    padding: 46px 28px 34px;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    isolation: isolate;
}
.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, .96) 0%, rgba(8, 8, 8, .82) 38%, rgba(8, 8, 8, .15) 75%, rgba(8, 8, 8, .35) 100%),
        linear-gradient(0deg, rgba(8, 8, 8, 1) 0%, transparent 30%);
}
.hero-text { max-width: 640px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.03em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero .lede { color: var(--soft); max-width: 540px; }
.hero .row-actions { margin-top: 18px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.hero-stats div {
    min-width: 150px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 8, 8, .6);
    backdrop-filter: blur(8px);
}
.hero-stats dt { color: var(--muted); font-size: .78rem; }
.hero-stats dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.hero-stats div:nth-child(2) dd { color: var(--accent); }

.studios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.studio {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.studio-art {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    transition: transform .4s ease;
}
.studio-body {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px 16px;
    margin-top: -26px;
    background: linear-gradient(180deg, transparent, var(--surface) 26px);
}
.studio::after {
    content: "→";
    position: absolute;
    right: 18px;
    bottom: 26px;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.studio:hover { color: var(--text); border-color: var(--accent-line); box-shadow: 0 0 40px rgba(159, 196, 108, 0.07); transform: translateY(-3px); }
.studio:hover .studio-art { transform: scale(1.05); }
.studio:hover::after { opacity: 1; transform: none; }
.studio strong, .studio small { display: block; }
.studio strong { font-size: 1.05rem; }
.studio small { color: var(--muted); font-size: .9rem; }
.studio-icon {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #101010;
    border: 1px solid rgba(159, 196, 108, 0.21);
    color: var(--accent);
}
.studio-icon .icon { width: 20px; height: 20px; }

.page-head-art { position: relative; min-height: 180px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--surface); }
.page-art {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(46%, 420px);
    object-fit: cover;
    z-index: -2;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.page-head-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 35%, rgba(21, 21, 21, .35)); }
.page-head-art .button { position: relative; }

.preview.has-logo, .mini.has-logo { background: #161616; border-color: rgba(255, 255, 255, .12); padding: 0; overflow: hidden; }
.preview.has-logo img, .mini.has-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini {
    width: 26px;
    height: 26px;
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(159, 196, 108, 0.154);
}

.with-logo { display: inline-flex; gap: 10px; align-items: center; }

.auth-art { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -1; opacity: .55; }
.auth-body::before { z-index: 0; }

.quick { margin-bottom: 18px; }
.quick a, .button, button, .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 42px;
    padding: 9px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick a { background: var(--surface); color: var(--text); border-color: var(--line); }
.button, button.button { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button:hover, button.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); box-shadow: 0 8px 28px rgba(159, 196, 108, 0.175); transform: translateY(-1px); }
.button.ghost, button.ghost, .nav-toggle { background: transparent; color: var(--text); border-color: var(--line); }
.button.ghost:hover, button.ghost:hover, .nav-toggle:hover { background: transparent; color: var(--accent); border-color: var(--accent-line); box-shadow: none; }
.nav-toggle { display: none; }
.button.small { min-height: 34px; padding: 6px 14px; font-size: .88rem; }
.button.danger, button.danger { background: #b23a48; border-color: #b23a48; color: #fff; }
.button.danger:hover { background: #c94a58; border-color: #c94a58; color: #fff; box-shadow: none; }
.danger-link { color: var(--danger); }
.danger-link:hover { color: #ffbcbc; }

.content > * + .card, .content > * + section, .content > * + .cards, .content > * + form.card { margin-top: 14px; }
.content > h2 { margin: 28px 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.content > .page-head + * { margin-top: 0; }
.grid, .cards { display: grid; gap: 14px; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-wide { grid-column: 1 / -1; }
.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card, .auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.card > h2:first-child { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 14px; }
.card p { color: var(--soft); }
.card .fine { color: var(--muted); }
.plain { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.plain li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.plain li:last-child { border-bottom: 0; }
.plain a { color: var(--text); text-decoration: none; }
.plain a:hover { color: var(--accent); }
.plain span, .fine { font-size: .9rem; }
.plain span { color: var(--muted); }
.empty {
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.empty p { margin: 12px 0 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chips a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    transition: color .2s ease, border-color .2s ease;
}
.chips a:hover { color: var(--text); border-color: var(--line-strong); }
.chips a[aria-current="page"] { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }

.filters {
    margin-bottom: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.card .filters, .stack .filters { padding: 0; background: none; border: 0; margin-bottom: 0; }
.filters label, .stack label { display: grid; gap: 6px; color: var(--muted); font-size: .88rem; }
.grow { flex: 1; min-width: 200px; }
.filters select { min-width: 150px; }
input, select, textarea {
    width: 100%;
    min-height: 42px;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
input[aria-invalid="true"] { border-color: var(--danger); }
textarea { min-height: 110px; resize: vertical; }
.stack { display: grid; gap: 10px; }
.narrow { max-width: 720px; }
.check { display: flex !important; gap: 8px; align-items: center; color: var(--text) !important; min-height: 42px; }
.check input { width: 18px; min-height: 0; height: 18px; accent-color: var(--accent); }

.group-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 28px 0 12px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--accent);
}
.group-title:first-of-type { margin-top: 6px; }
.resource-card { display: flex; flex-direction: column; gap: 10px; }
.resource-card:hover { transform: translateY(-3px); }
.resource-card p { margin: 0; }
.resource-card .meta { margin-top: auto; padding-top: 6px; }
.resource-head { display: flex; gap: 12px; align-items: center; }
.resource-head > div { min-width: 0; flex: 1; }
.resource-head h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.resource-head h3 a { color: var(--text); text-decoration: none; }
.resource-head h3 a:hover { color: var(--accent); }
.preview {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(159, 196, 108, 0.14), rgba(159, 196, 108, 0.028));
    border: 1px solid rgba(159, 196, 108, 0.154);
}
.host { color: var(--muted); font-size: .85rem; margin: 0; overflow-wrap: anywhere; }
.star { color: var(--accent); font-size: 1.1rem; }
.note {
    border-left: 2px solid var(--accent);
    background: rgba(159, 196, 108, 0.035);
    border-radius: 0 10px 10px 0;
    padding: 10px 12px;
    color: var(--soft);
    font-size: .92rem;
    white-space: pre-line;
}
.note span { display: block; color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.row-actions { align-items: center; }
.row-actions a { font-size: .92rem; }

.card-top, .tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.pill, .tags li {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    color: var(--muted);
    font-size: .8rem;
}
.pill .icon { width: 14px; height: 14px; }
.tags { list-style: none; padding: 0; }
.tags li::before { content: "#"; color: var(--accent); }
.pill-free { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.pill-freemium, .pill.warn { color: var(--warn); border-color: rgba(220, 191, 120, .32); background: var(--warn-bg); }
.pill-paid { color: #e3aaa6; border-color: rgba(227, 154, 150, .3); background: var(--danger-bg); }
.overdue { border-color: rgba(255, 209, 102, .4); }

.flash { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; border: 1px solid transparent; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: var(--accent-line); }
.flash-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(255, 140, 140, .35); }
.flash-close { background: transparent; color: inherit; border: 0; min-height: 32px; padding: 4px 8px; font-weight: 600; }
.field-error { color: var(--danger); margin: 0; font-size: .88rem; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.day { margin-top: 22px; }
.day > h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.inline { display: flex; gap: 8px; align-items: end; }

.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.pager a, .pager-current {
    min-width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
}
.pager a:hover { color: var(--accent); border-color: var(--accent-line); }
.pager-current { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
    position: relative;
    width: min(460px, 100%);
    padding: 30px;
    background: rgba(13, 13, 13, .88);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 80px rgba(159, 196, 108, 0.042), 0 24px 60px rgba(0, 0, 0, .5);
}
.auth-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.auth-card h1 { text-transform: uppercase; letter-spacing: -.02em; }
.auth-card .button { width: 100%; margin-top: 6px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.server-search { margin-top: 18px; }
.search-summary { color: var(--soft); margin: 0 0 12px; }
.live-note { margin: -6px 0 6px; }
.server-section { scroll-margin-top: 80px; }
.server-section > .cards + .cards, .server-section > .rate-grid + .fine, .server-section > .fine + .cards { margin-top: 14px; }
.server-section h3 { margin: 0 0 6px; font-size: 1.05rem; }
.server-section .card p:last-child { margin-bottom: 0; }
button.copy {
    min-height: 30px;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--surface-2);
    color: var(--soft);
    border-color: var(--line);
    flex: none;
}
button.copy:hover { color: var(--accent); border-color: var(--accent-line); }
button.copy.is-done { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.server-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.server-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; border-bottom: 1px solid var(--line); }
.server-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.server-body h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.01em; }
.server-body h3 a { color: var(--text); text-decoration: none; }
.server-body h3 a:hover { color: var(--accent); }
.server-body > p { margin: 0; }
.connect {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-dim);
}
.connect code { flex: 1 1 auto; color: var(--accent); font-size: .95rem; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.facts a { color: var(--text); }
.note .plain li { padding: 3px 0; border: 0; }
.warn-box { margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 209, 102, .35); border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); font-size: .92rem; }
.fold { padding: 0; }
.fold + .fold { margin-top: 8px; }
.fold summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 800; }
.fold[open] summary::after { content: "−"; }
.fold > :not(summary) { padding: 0 18px 16px; }
.fold-body ol { margin: 6px 0 12px; padding-left: 20px; color: var(--soft); }
.fold-body ol li + li { margin-top: 4px; }
.rules li { display: block; color: var(--soft); padding: 8px 0; }
.link-list { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 8px; }
.link-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.link-list a { color: var(--text); }
.cmd-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.cmd-list li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cmd-list li:last-child { border-bottom: 0; }
.cmd-list code { color: var(--accent); overflow-wrap: anywhere; }
.cmd-list span { color: var(--soft); }
.cmd-list small { display: block; color: var(--muted); font-size: .8rem; }
.cards .cmd-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.cards .cmd-list li span { grid-column: 1 / -1; grid-row: 2; }
.table-wrap { overflow-x: auto; padding: 0; }
.cfg-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cfg-table th, .cfg-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cfg-table thead th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.cfg-table tbody th { font-weight: 500; color: var(--text); }
.cfg-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.cfg-table td { color: var(--soft); white-space: nowrap; }
.cfg-table tbody tr:last-child > * { border-bottom: 0; }
.quest-list, .plugin-list { margin: 0; padding: 0 18px 16px 40px; display: grid; gap: 10px; }
.plugin-list { list-style: none; padding-left: 18px; }
.quest-list small, .plugin-list small { display: block; color: var(--muted); font-size: .84rem; }
.plugin-list .cmds { font-family: ui-monospace, Consolas, monospace; color: var(--accent); overflow-wrap: anywhere; }
.rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rate-card .rate { margin: 0; font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.rate-card h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gallery-title { margin: 18px 0 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-icons { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.gallery-icons img { aspect-ratio: 1; object-fit: contain; padding: 14px; }
.gallery figcaption { display: grid; gap: 2px; padding: 8px 10px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.gallery .cap-title { color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery .cap-meta { font-size: .74rem; }
.gallery-chips { margin-top: 8px; }
.gallery-fold { margin-top: 14px; }
.gallery-fold .gallery { padding: 0 18px 18px; }
.gallery figcaption a { color: var(--accent); }
.quick-server { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.quick-server code { color: var(--accent); }
.quick-server .spacer { flex: 1; }

@media (max-width: 1100px) {
    .studios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .server-grid { grid-template-columns: 1fr; }
    .rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-105%);
        transition: transform .25s ease;
        z-index: 10;
        background: #0b0b0b;
        box-shadow: 0 0 60px rgba(0, 0, 0, .6);
    }
    .sidebar.is-open { transform: none; }
    .nav-toggle { display: inline-flex; min-height: 40px; }
    .grid { grid-template-columns: 1fr; }
    .content { padding: 24px 16px 48px; }
    .topbar { padding: 10px 16px; }
    .plain li { flex-direction: column; align-items: start; gap: 2px; }
    .page-head { align-items: start; }
    .hero { margin: -24px -16px 22px; padding: 30px 16px 26px; min-height: 0; }
    .hero::after { background: linear-gradient(180deg, rgba(8, 8, 8, .55) 0%, rgba(8, 8, 8, .92) 60%, #080808 100%); }
    .hero-art { object-position: 75% center; }
}
@media (max-width: 640px) {
    .studios { grid-template-columns: 1fr 1fr; gap: 10px; }
    .studio-body { padding: 10px 12px 12px; gap: 0; }
    .studio-body .studio-icon { display: none; }
    .studio strong { font-size: .95rem; }
    .studio small { font-size: .78rem; }
    .studio::after { display: none; }
    .cards { grid-template-columns: 1fr; }
    .filters:not(.card .filters):not(.stack .filters) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .filters > .grow, .filters > button, .filters > .check { grid-column: 1 / -1; min-width: 0; }
    .filters select { min-width: 0; }
    .card .filters > label, .card .filters > button, .stack .filters > label, .stack .filters > button { flex: 1 1 100%; }
    .who-name { display: none; }
    .card { padding: 16px; border-radius: 16px; }
    .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    .hero-stats div { min-width: 0; flex: 1 1 30%; padding: 10px 12px; }
    .hero-stats dd { font-size: 1.3rem; }
    .page-head-art { padding: 18px 16px; }
    .page-art { width: 100%; opacity: .35; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
    .studio-art { aspect-ratio: 4 / 3; }
    .cmd-list li { grid-template-columns: 1fr auto; gap: 4px 10px; }
    .cmd-list li span { grid-column: 1 / -1; grid-row: 2; }
    .facts { grid-template-columns: 1fr; }
    .rate-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rate-card .rate { font-size: 1.7rem; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .gallery-icons { grid-template-columns: repeat(3, 1fr); }
    .fold summary { padding: 12px 14px; }
    .fold > :not(summary) { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; transition: none !important; }
    .resource-card:hover, .button:hover { transform: none; }
}

.hero-art, .studio-art, .page-art, .auth-art { filter: saturate(.5) brightness(.85); }
