:root {
    color-scheme: light;
    --bg: #f7f7fb;
    --surface: #ffffff;
    --surface-2: #f0eef7;
    --ink: #171620;
    --muted: #686675;
    --line: #e7e6ed;
    --purple: #7540ed;
    --purple-dark: #5925ce;
    --purple-soft: #eee8ff;
    --green: var(--purple);
    --green-dark: var(--purple-dark);
    --lime: #cbb8ff;
    --gold: #a76b00;
    --danger: #b22e36;
    --shadow: 0 18px 55px rgba(42, 31, 71, .09);
    --radius: 18px;
    --header: 72px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme=dark] {
    color-scheme: dark;
    --bg: #0b0d12;
    --surface: #151821;
    --surface-2: #20232e;
    --ink: #f4f5f8;
    --muted: #a4a7b2;
    --line: #292d37;
    --purple: #a174ff;
    --purple-dark: #8a58ed;
    --purple-soft: #211a32;
    --gold: #edbb55;
    --shadow: 0 18px 55px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 18px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
body.is-impersonating { padding-top: 54px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: .7rem 1rem; background: var(--ink); color: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.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; }
.impersonation-banner { min-height: 54px; position: fixed; z-index: 1800; inset: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: .55rem 1rem; color: #fff; background: #4f23ad; box-shadow: 0 8px 28px rgba(31, 13, 70, .2); }
.impersonation-banner>div { min-width: 0; display: flex; align-items: baseline; gap: .65rem; }
.impersonation-banner strong { white-space: nowrap; }
.impersonation-banner span { color: #ded2ff; font-size: .78rem; }
.impersonation-banner form { flex: 0 0 auto; }
.impersonation-banner button { min-height: 34px; padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); font-size: .74rem; font-weight: 800; cursor: pointer; }
.impersonation-banner button:hover, .impersonation-banner button:focus-visible { background: rgba(255,255,255,.22); outline: 2px solid #fff; outline-offset: 2px; }
body.is-impersonating .site-header { top: 54px; }
body.is-impersonating .toast-stack { top: calc(var(--header) + 64px); }

.page-loader { position: fixed; z-index: 2000; inset: 0; display: grid; place-content: center; gap: 1rem; padding: 1.5rem; visibility: hidden; opacity: 0; color: var(--ink); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(7px); pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.page-loading .page-loader { visibility: visible; opacity: 1; pointer-events: auto; }
.page-loader p { margin: 0; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .11em; text-align: center; text-transform: uppercase; }
.page-loader-stage { width: min(350px, 78vw); height: 150px; position: relative; overflow: hidden; }
.page-loader-ground { height: 4px; position: absolute; right: 0; bottom: 14px; left: 0; border-radius: 99px; background: repeating-linear-gradient(90deg, var(--purple) 0 20px, color-mix(in srgb, var(--purple) 24%, var(--line)) 20px 40px); opacity: .55; }
.page-loader-enderman { width: 42px; height: 126px; position: absolute; bottom: 18px; left: -48px; animation: enderman-cross 2.2s linear infinite; }
.enderman-head, .enderman-body, .enderman-arm, .enderman-leg { position: absolute; display: block; background: #17141d; box-shadow: inset -4px -3px rgba(0, 0, 0, .28); image-rendering: pixelated; }
.enderman-head { width: 34px; height: 30px; top: 0; left: 4px; }
.enderman-head::after { content: ""; width: 8px; height: 4px; position: absolute; top: 13px; left: 5px; background: #b76cff; box-shadow: 16px 0 #b76cff, 0 0 8px #a84fff, 16px 0 8px #a84fff; }
.enderman-body { width: 24px; height: 44px; top: 30px; left: 9px; }
.enderman-arm { width: 7px; height: 58px; top: 31px; transform-origin: 50% 4px; animation: enderman-limb .48s ease-in-out infinite alternate; }
.enderman-arm-left { left: 1px; }
.enderman-arm-right { right: 1px; animation-direction: alternate-reverse; }
.enderman-leg { width: 8px; height: 55px; top: 70px; transform-origin: 50% 3px; animation: enderman-limb .48s ease-in-out infinite alternate-reverse; }
.enderman-leg-left { left: 10px; }
.enderman-leg-right { right: 10px; animation-direction: alternate; }
@keyframes enderman-cross { from { transform: translateX(0); } to { transform: translateX(398px); } }
@keyframes enderman-limb { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }

.toast-stack { width: min(390px, calc(100vw - 2rem)); position: fixed; z-index: 1500; top: calc(var(--header) + 1rem); right: 1rem; display: grid; gap: .65rem; }
.toast { min-width: 0; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 32px; align-items: center; gap: .7rem; overflow: hidden; padding: .85rem .75rem .85rem .85rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 18px 55px rgba(28, 20, 49, .2); animation: toast-enter .22s ease-out both; }
.toast.is-leaving { animation: toast-leave .18s ease-in both; }
.toast-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--purple); font-weight: 900; }
.toast-success .toast-icon { background: #278148; }
.toast-error .toast-icon { background: var(--danger); }
.toast p { min-width: 0; margin: 0; font-size: .86rem; font-weight: 720; overflow-wrap: anywhere; }
.toast button { width: 32px; height: 32px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.2rem; }
.toast button:hover, .toast button:focus-visible { color: var(--ink); background: var(--surface-2); outline: none; }
.toast-progress { height: 3px; position: absolute; right: 0; bottom: 0; left: 0; background: var(--purple); transform-origin: left; animation: toast-progress 5.2s linear both; }
.toast-success .toast-progress { background: #278148; }
.toast-error .toast-progress { background: var(--danger); }
.toast:hover .toast-progress, .toast:focus-within .toast-progress { animation-play-state: paused; }
@keyframes toast-enter { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-leave { to { opacity: 0; transform: translateX(16px); } }
@keyframes toast-progress { to { transform: scaleX(0); } }

.site-header { min-height: var(--header); position: sticky; top: 0; z-index: 100; display: grid; grid-template-columns: auto auto minmax(240px, 620px) auto; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); padding: 10px clamp(1rem, 4vw, 3.75rem); background: color-mix(in srgb, var(--surface) 91%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: .65rem; line-height: 1; white-space: nowrap; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #111; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand > span:last-child { display: grid; gap: 3px; }
.brand strong { font-size: 1rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .54rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.market-nav { display: flex; align-items: center; gap: 1.35rem; }
.market-nav a { color: var(--muted); font-size: .86rem; font-weight: 700; }
.market-nav a:hover, .market-nav a[aria-current=page] { color: var(--purple); }
.market-nav .nav-marketplace { display: inline-flex; align-items: center; gap: .42rem; }
.market-nav .nav-marketplace svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.market-nav .nav-support { display: inline-flex; align-items: center; gap: .4rem; }
.market-nav .nav-support svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-search { min-width: 0; height: 44px; position: relative; display: flex; align-items: center; gap: .65rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.nav-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 12%, transparent); }
.nav-search svg { width: 18px; color: var(--muted); }
.nav-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.nav-search kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: .72rem; }
.nav-search-suggestions { width: min(520px, calc(100vw - 2rem)); max-height: 420px; position: absolute; z-index: 80; top: calc(100% + .55rem); left: 0; overflow-y: auto; padding: .4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.nav-search-suggestions[hidden] { display: none; }
.nav-search-suggestions a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .65rem; border-radius: 10px; }
.nav-search-suggestions a:hover, .nav-search-suggestions a:focus-visible { outline: none; background: var(--purple-soft); }
.nav-search-suggestions img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.nav-search-suggestions span { min-width: 0; display: grid; }
.nav-search-suggestions strong, .nav-search-suggestions small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-search-suggestions strong { color: var(--ink); font-size: .84rem; }
.nav-suggestion-official { display: inline-flex; margin-left: .25rem; padding: .08rem .32rem; border-radius: 999px; color: var(--purple); background: var(--purple-soft); font-size: .58rem; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; vertical-align: .1rem; }
.nav-search-suggestions small, .nav-search-empty { color: var(--muted); font-size: .72rem; }
.nav-search-empty { margin: 0; padding: .8rem; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; white-space: nowrap; }
.theme-toggle { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--purple); }
.theme-dark-icon, html[data-theme=dark] .theme-light-icon { display: none; }
html[data-theme=dark] .theme-dark-icon { display: inline; }
.account-link { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: .82rem; font-weight: 850; }
.account-link img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-popover { width: 240px; position: absolute; z-index: 120; top: calc(100% + .75rem); right: 0; display: grid; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.account-popover header { display: flex; align-items: center; gap: .65rem; padding: .6rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
.account-popover header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.account-popover header div { min-width: 0; display: grid; }
.account-popover header b { overflow: hidden; text-overflow: ellipsis; }
.account-profile-name { overflow: hidden; color: var(--ink); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-name:hover { color: var(--purple); }
.account-popover header small { color: var(--muted); }
.account-popover > a, .account-popover form button { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: .65rem .7rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 680; text-align: left; cursor: pointer; }
.account-popover > a:hover, .account-popover form button:hover { color: var(--ink); background: var(--surface-2); }
.account-popover .staff-switch { color: var(--purple); }
.account-popover .staff-switch.has-pending{color:var(--ink)}.staff-pending-count{min-width:20px;height:20px;display:grid;place-items:center;padding:0 .3rem;border:2px solid var(--surface);border-radius:999px;color:#fff!important;background:#d53e4f;box-shadow:0 0 0 2px color-mix(in srgb,#d53e4f 35%,transparent);font-size:.65rem;font-weight:900;line-height:1}
.mobile-navigation { position: relative; display: none; }
.mobile-navigation summary { width: 40px; height: 40px; display: grid; align-content: center; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; list-style: none; }
.mobile-navigation summary::-webkit-details-marker { display: none; }
.mobile-navigation summary span { height: 2px; display: block; border-radius: 99px; background: var(--ink); }
.mobile-navigation[open] summary { border-color: var(--purple); background: var(--purple-soft); }
.mobile-navigation nav { width: min(300px, calc(100vw - 2rem)); position: absolute; z-index: 140; top: calc(100% + .7rem); right: 0; display: grid; gap: .2rem; padding: .55rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.mobile-navigation nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; border-radius: 9px; color: var(--muted); font-size: .86rem; font-weight: 750; }
.mobile-navigation nav a:hover, .mobile-navigation nav a[aria-current=page] { color: var(--purple); background: var(--purple-soft); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: 11px; font-weight: 780; cursor: pointer; }
.button-small { min-height: 40px; padding: .48rem .95rem; font-size: .86rem; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 8px 22px rgba(117, 64, 237, .18); }
.button-primary:hover { background: var(--purple-dark); }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-quiet:hover { border-color: var(--purple); color: var(--purple); }
.button-light { color: #171620; background: #fff; }
.button-dark-quiet { color: #fff; border-color: rgba(255,255,255,.28); }
.button-wide { width: 100%; }

.market-intro { max-width: 1440px; margin: 0 auto; padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 5vw, 4.5rem) 2.25rem; }
.market-intro > div:first-child { max-width: 820px; }
.section-label { color: var(--purple); font-size: .7rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.market-intro h1 { margin: .65rem 0 1rem; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .94; letter-spacing: -.058em; }
.market-intro p { max-width: 700px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.17rem); }
.market-search { max-width: 860px; min-height: 64px; display: flex; align-items: center; gap: .8rem; margin-top: 2rem; padding: .45rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.market-search svg { width: 22px; margin-left: .65rem; color: var(--muted); }
.market-search input { flex: 1; min-width: 0; padding: .75rem 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1.02rem; }
.market-search button { align-self: stretch; padding: 0 1.4rem; border: 0; border-radius: 11px; color: #fff; background: var(--purple); font-weight: 780; cursor: pointer; }
.category-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.category-chips a { min-height: 42px; display: inline-flex; align-items: center; gap: .46rem; padding: .34rem .68rem .34rem .38rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: .78rem; font-weight: 700; }
.category-chips a:hover { border-color: var(--purple); color: var(--purple); }
.category-chip-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--purple-soft); }
.category-chip-icon img { width: 22px; height: 22px; image-rendering: pixelated; }
.category-chips .category-chip-count { margin-left: .08rem; color: var(--purple); font-size: .7rem; }

.market-section { max-width: 1440px; margin: 0 auto; padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 5vw, 4.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.section-heading h2 { margin: .45rem 0; font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); }
.section-heading > a { color: var(--purple); font-size: .88rem; font-weight: 780; white-space: nowrap; }
.featured-section { padding-top: 2rem; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.plugin-card { min-width: 0; position: relative; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.plugin-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--purple) 42%, var(--line)); box-shadow: var(--shadow); }
.plugin-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.plugin-card-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--purple) 55%, transparent); outline-offset: 3px; }
.plugin-card .plugin-author a { position: relative; z-index: 2; }
.catalog-skeleton { display: none; }
.catalog-loading [data-catalog-content] { display: none; }
.catalog-loading .catalog-skeleton { display: grid; }
.skeleton-card { pointer-events: none; }
.skeleton-block, .skeleton-meta span { display: block; overflow: hidden; position: relative; border-radius: 999px; background: var(--surface-2); }
.skeleton-block::after, .skeleton-meta span::after { position: absolute; inset: 0; content: ""; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--purple) 12%, transparent), transparent); animation: catalog-shimmer 1.35s infinite; }
.skeleton-icon { width: 68px; height: 68px; flex: 0 0 auto; border-radius: 15px; }
.skeleton-title { width: 66%; height: 18px; margin: .15rem 0 .55rem; }
.skeleton-author { width: 34%; height: 11px; margin-bottom: .7rem; }
.skeleton-copy { width: 94%; height: 10px; margin-top: .42rem; }
.skeleton-copy-short { width: 70%; }
.skeleton-meta { display: flex; gap: .85rem; margin-top: 1rem; padding-top: .78rem; border-top: 1px solid var(--line); }
.skeleton-meta span { width: 72px; height: 10px; }
@keyframes catalog-shimmer { to { transform: translateX(100%); } }
@media(prefers-reduced-motion:reduce){.skeleton-block::after,.skeleton-meta span::after{animation:none}}
.plugin-card-featured { grid-row: span 2; }
.plugin-card-cover { display: block; aspect-ratio: 16/9; margin: -1.15rem -1.15rem 1.1rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.plugin-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card-main { display: flex; gap: .9rem; }
.plugin-icon { width: 68px; height: 68px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #111; }
.plugin-icon img { width: 100%; height: 100%; object-fit: cover; }
.plugin-card-copy { min-width: 0; flex: 1; }
.plugin-card-title { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
.plugin-name-line, .plugin-heading-line { min-width: 0; display: flex; align-items: center; gap: .55rem; }
.plugin-name-line h3 { min-width: 0; }
.official-badge { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .28rem; flex: 0 0 auto; padding: .24rem .48rem; border: 1px solid color-mix(in srgb, var(--purple) 35%, var(--line)); border-radius: 999px; color: var(--purple); background: var(--purple-soft); font-size: .64rem; font-weight: 850; line-height: 1; letter-spacing: .035em; text-transform: uppercase; cursor: help; }
.official-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.official-badge-compact { padding: .27rem; }
.official-badge-tooltip { position: absolute; z-index: 90; left: 50%; bottom: calc(100% + .55rem); width: max-content; max-width: min(260px, 80vw); padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-size: .7rem; font-weight: 650; line-height: 1.35; letter-spacing: 0; text-align: center; text-transform: none; opacity: 0; pointer-events: none; transform: translate(-50%, .25rem); transition: opacity .15s ease, transform .15s ease; }
.official-badge:hover .official-badge-tooltip, .official-badge:focus-visible .official-badge-tooltip { opacity: 1; transform: translate(-50%, 0); }
.plugin-card h3 { margin: .05rem 0 0; overflow-wrap: anywhere; font-size: 1.08rem; letter-spacing: -.02em; }
.plugin-card p { margin: .45rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.48; }
.plugin-card .plugin-author, .plugin-author { color: var(--purple); font-size: .75rem; font-weight: 720; }
.author-profile { display: inline-flex; align-items: center; gap: .4rem; }
.author-profile img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.price { flex: 0 0 auto; font-size: .8rem; font-weight: 850; }
.price-free { color: var(--purple); }
.plugin-card-meta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1rem; padding-top: .78rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
.plugin-card-meta span:first-child { color: var(--gold); }
.tag-row { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: .72rem; }
.tag-row span, .tag-row a, .channel { padding: .18rem .52rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: .66rem; font-weight: 720; }

.category-band { color: #f4f1ff; background: #171221; }
html[data-theme=dark] .category-band { background: #080910; }
.category-band .section-label { color: #bca0ff; }
.category-band .market-section { padding-top: 4rem; padding-bottom: 4rem; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.category-grid a { min-height: 150px; display: grid; align-content: end; gap: .2rem; padding: 1.3rem; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); background: rgba(255,255,255,.035); }
.category-grid a:hover { border-color: #a174ff; background: rgba(161,116,255,.09); }
.category-grid small { opacity: .62; }
.category-block { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: .55rem; border: 1px solid rgba(188,160,255,.24); border-radius: 12px; background: rgba(161,116,255,.1); }
.category-block img { width: 34px; height: 34px; image-rendering: pixelated; }

.site-footer { max-width: 1440px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; margin: auto; padding: 3rem clamp(1rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.site-footer p, .site-footer small { color: var(--muted); }
.site-footer p { margin: .7rem 0 0; font-size: .85rem; }
.site-footer > small { grid-column: 1/-1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: .86rem; font-weight: 680; }
.footer-links a:hover { color: var(--purple); }

.legal-page { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.legal-hero { max-width: 820px; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.legal-hero h1 { margin: .55rem 0 1rem; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .94; letter-spacing: -.058em; }
.legal-hero > p:not(.legal-date) { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.legal-date { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.6rem 0 0; color: var(--muted); font-size: .78rem; }
.legal-date strong { color: var(--ink); }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.legal-navigation { position: sticky; top: calc(var(--header) + 1.5rem); display: grid; gap: .3rem; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.legal-navigation a { padding: .68rem .75rem; border-radius: 9px; color: var(--muted); font-size: .82rem; font-weight: 720; }
.legal-navigation a:hover { color: var(--purple); background: var(--purple-soft); }
.legal-navigation a[aria-current=page] { color: var(--purple); background: var(--purple-soft); }
.legal-document { min-width: 0; }
.legal-document > section { padding: 0 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.legal-document > section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-document h2 { margin-bottom: .85rem; font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.18; letter-spacing: -.025em; scroll-margin-top: calc(var(--header) + 1rem); }
.legal-document h3 { margin: 1.65rem 0 .45rem; font-size: 1rem; }
.legal-document p, .legal-document li { color: var(--muted); }
.legal-document p { max-width: 820px; }
.legal-document li + li { margin-top: .55rem; }
.legal-document a:not(.button) { color: var(--purple); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.legal-document a:not(.button):hover { color: var(--purple-dark); }
.support-lead { padding: clamp(1.3rem, 3vw, 2rem) !important; border: 1px solid var(--line) !important; border-radius: var(--radius); background: var(--surface); }
.support-lead p { margin-bottom: 0; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.support-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.support-card > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 11px; color: var(--purple); background: var(--purple-soft); font-size: 1.15rem; font-weight: 850; }
.support-card h2 { font-size: 1.45rem; }
.support-card p { flex-grow: 1; }
.support-card small { display: block; margin-top: 1rem; color: var(--muted); font-size: .75rem; }
.support-card-wide { grid-column: 1 / -1; }
.support-card-wide p { flex-grow: 0; }
.support-card-primary { border-color: color-mix(in srgb, var(--purple) 35%, var(--line)); box-shadow: 0 16px 50px color-mix(in srgb, var(--purple) 8%, transparent); }

.partner-page { overflow: hidden; }
.partner-hero { max-width: 1440px; min-height: 660px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 4.5rem); }
.partner-hero-copy h1 { max-width: 850px; margin: .7rem 0 1.4rem; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.partner-hero-copy > p { max-width: 720px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.partner-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.partner-network { min-height: 440px; position: relative; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--purple) 22%, transparent), transparent 56%), var(--surface); box-shadow: var(--shadow); }
.partner-network::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle, #000, transparent 72%); }
.partner-cube { width: 68px; height: 68px; position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--purple) 45%, var(--line)); border-radius: 16px; color: var(--purple); background: var(--surface); box-shadow: 10px 10px 0 color-mix(in srgb, var(--purple) 17%, var(--surface-2)); font-size: 1.3rem; font-weight: 900; }
.partner-cube-main { width: 108px; height: 108px; top: calc(50% - 54px); left: calc(50% - 54px); color: #fff; border: 0; background: var(--purple); box-shadow: 14px 14px 0 color-mix(in srgb, var(--purple) 28%, var(--surface-2)); font-size: 2.2rem; }
.partner-cube-one { top: 13%; left: 12%; }.partner-cube-two { top: 16%; right: 12%; }.partner-cube-three { right: 17%; bottom: 12%; }
.partner-line { height: 2px; position: absolute; z-index: 1; left: 50%; top: 50%; background: color-mix(in srgb, var(--purple) 55%, var(--line)); transform-origin: left center; }
.partner-line-one { width: 36%; transform: rotate(218deg); }.partner-line-two { width: 35%; transform: rotate(323deg); }.partner-line-three { width: 31%; transform: rotate(43deg); }
.partner-opportunities { padding: clamp(4rem, 8vw, 7rem) max(1rem, calc((100% - 1300px) / 2)); color: #f5f2ff; background: #171221; }
.partner-opportunities > header { max-width: 760px; margin-bottom: 2rem; }
.partner-opportunities h2, .partner-expectations h2 { margin: .45rem 0 .8rem; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.055em; }
.partner-opportunities header p, .partner-grid p { color: #aaa4b8; }
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.partner-grid article { min-width: 0; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.035); }
.partner-grid article > span { color: #bca0ff; font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.partner-grid h3 { margin: 2.5rem 0 .8rem; font-size: 1.45rem; }
.partner-grid p { margin-bottom: 0; }
.partner-expectations { max-width: 1300px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 1rem; }
.partner-expectations > div > p { max-width: 720px; color: var(--muted); }
.partner-expectations aside { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid color-mix(in srgb, var(--purple) 35%, var(--line)); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.partner-expectations aside > strong { font-size: 1.3rem; }.partner-expectations aside p { color: var(--muted); }.partner-expectations aside b, .partner-expectations aside a:not(.button) { color: var(--purple); }
.partner-expectations aside > div { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.catalog-heading { max-width: 1440px; margin: auto; padding: clamp(3rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4.5rem) 1rem; }
.catalog-heading h1 { margin: .5rem 0; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.052em; }
.catalog-heading p { color: var(--muted); }
.catalog-layout { max-width: 1440px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.7rem; margin: auto; padding: 1.2rem clamp(1rem, 5vw, 4.5rem) 6rem; }
.filter-panel { position: sticky; top: calc(var(--header) + 1rem); align-self: start; display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filter-panel label { margin-top: .38rem; font-size: .7rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { width: 100%; padding: .68rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--bg); }
.filter-panel input:focus, .filter-panel select:focus { outline: 2px solid color-mix(in srgb, var(--purple) 35%, transparent); border-color: var(--purple); }
.category-filter-options { display: grid; gap: .3rem; margin: .35rem 0; padding: 0; border: 0; }
.category-filter-options legend { margin-bottom: .2rem; font-size: .7rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.category-filter-options label { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .42rem .5rem; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: .75rem; font-weight: 680; letter-spacing: 0; text-transform: none; cursor: pointer; }
.category-filter-options label:hover, .category-filter-options label:has(input:checked) { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 25%, var(--line)); background: var(--purple-soft); }
.filter-panel .category-filter-options input { width: auto; margin: 0; accent-color: var(--purple); }
.category-filter-icon { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--surface-2); }
.category-filter-icon img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.clear-filters { text-align: center; color: var(--purple); font-size: .82rem; font-weight: 750; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; color: var(--muted); font-size: .84rem; }
.results-heading strong { color: var(--ink); }
.catalog-sort-form { display: flex; align-items: center; gap: .55rem; }
.catalog-sort-form label { font-size: .72rem; font-weight: 780; }
.catalog-sort-form select { min-width: 165px; padding: .52rem 2.15rem .52rem .7rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); cursor: pointer; }
.catalog-sort-form select:hover, .catalog-sort-form select:focus { border-color: var(--purple); outline: none; }
.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { padding: 2.4rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.chest-shell { max-width: 1240px; min-height: 70vh; margin: auto; padding: 3.5rem clamp(1rem, 5vw, 4.5rem) 5rem; }
.chest-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.chest-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(2.8rem, 6vw, 5rem); line-height: .95; letter-spacing: -.055em; }
.chest-hero p { margin: 0; color: var(--muted); }
.chest-hero-icon, .chest-empty-icon { width: 76px; height: 62px; position: relative; flex: 0 0 auto; border: 4px solid color-mix(in srgb, var(--purple) 65%, #2b1848); border-radius: 8px; background: linear-gradient(#9a68ff 0 18px, #7540ed 18px); box-shadow: inset 0 -8px rgba(31,18,54,.2), 0 12px 26px rgba(73,40,140,.18); image-rendering: pixelated; }
.chest-hero-icon::before, .chest-empty-icon::before { content: ''; width: 20px; height: 17px; position: absolute; top: 17px; left: 24px; border: 3px solid #4b287f; border-top: 0; border-radius: 0 0 5px 5px; background: #d8c5ff; }
.chest-hero-icon span, .chest-empty-icon span { position: absolute; inset: 15px 0 auto; height: 4px; background: #4b287f; }
.checkout-confirmation { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.35rem; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--purple) 38%, var(--line)); border-radius: 14px; background: var(--purple-soft); }
.checkout-confirmation.is-ready { border-color: color-mix(in srgb, #238a67 45%, var(--line)); background: color-mix(in srgb, #238a67 10%, var(--surface)); }
.checkout-confirmation-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #fff; background: var(--purple); font-weight: 900; }
.checkout-confirmation strong, .checkout-confirmation p { display: block; margin: 0; }
.checkout-confirmation p { margin-top: .15rem; color: var(--muted); font-size: .86rem; }
.chest-filters { width: max-content; display: flex; gap: .3rem; margin-bottom: 1.1rem; padding: .35rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.chest-filters a { min-width: 88px; padding: .62rem .8rem; border-radius: 8px; color: var(--muted); font-size: .8rem; font-weight: 780; text-align: center; }
.chest-filters a:hover, .chest-filters a[aria-current=page] { color: var(--purple); background: var(--purple-soft); }
.chest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.chest-card { min-width: 0; display: grid; gap: 1rem; padding: 1.15rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 8px 28px rgba(35,22,58,.04); }
.chest-card:target { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 15%, transparent); }
.chest-card-main { min-width: 0; display: flex; gap: .85rem; }
.chest-card-copy { min-width: 0; }
.chest-card-copy > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.chest-card h2 { margin: .4rem 0 .15rem; overflow-wrap: anywhere; font-size: 1.2rem; letter-spacing: -.025em; }
.chest-card h2 a:hover { color: var(--purple); }
.chest-card-copy p { margin: 0; color: var(--muted); font-size: .78rem; }
.status-unavailable { color: #a14c42; background: color-mix(in srgb, #cf5a4c 12%, var(--surface)); }
.chest-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: 0; }
.chest-card-meta div { min-width: 0; padding: .65rem; border-radius: 10px; background: var(--surface-2); }
.chest-card-meta dt { color: var(--muted); font-size: .64rem; font-weight: 790; letter-spacing: .05em; text-transform: uppercase; }
.chest-card-meta dd { margin: .22rem 0 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 720; }
.chest-access-note { margin: 0; color: #9a4b42; font-size: .78rem; line-height: 1.5; }
.chest-card-actions { display: flex; gap: .55rem; margin-top: auto; }
.chest-card-actions .button { flex: 1; }
.chest-empty { grid-column: 1 / -1; }
.chest-empty-icon { width: 60px; height: 49px; margin: 0 auto 1rem; opacity: .72; }
.chest-empty-icon::before { width: 16px; height: 13px; top: 13px; left: 18px; }
.chest-empty-icon span { top: 11px; }
.chest-empty strong { display: block; color: var(--ink); font-size: 1.15rem; }
.chest-empty p { margin: .35rem 0 1rem; }
.catalog-pagination { display: grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:1rem; margin-top:2rem; padding-top:1.2rem; border-top:1px solid var(--line); }
.catalog-page-action { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:.35rem; width:max-content; padding:.55rem .8rem; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); font-size:.8rem; font-weight:780; transition:border-color .15s,color .15s,background .15s; }
.catalog-page-action:last-child { justify-self:end; }
.catalog-page-action[href]:hover { color:var(--purple); border-color:var(--purple); background:var(--purple-soft); }
.catalog-page-action svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.catalog-page-action.is-disabled { color:var(--muted); opacity:.45; cursor:not-allowed; }
.catalog-page-position { color:var(--muted); font-size:.78rem; white-space:nowrap; }
.catalog-page-position strong { color:var(--ink); }

.plugin-page { max-width: 1440px; margin: auto; padding: 0 clamp(1rem, 5vw, 4.5rem); }
.breadcrumbs { display: flex; gap: .55rem; padding-top: 1.5rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs a:hover { color: var(--purple); }
.plugin-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3rem; padding: 3rem 0 2.3rem; }
.plugin-identity { min-width: 0; display: flex; align-items: center; gap: 1.35rem; }
.plugin-icon-large { width: 112px; height: 112px; border-radius: 24px; }
.plugin-identity h1 { margin: .55rem 0 .65rem; font-size: clamp(2.6rem, 5vw, 4.7rem); line-height: .95; letter-spacing: -.052em; }
.plugin-heading-line { align-items: center; flex-wrap: wrap; margin: .55rem 0 .65rem; }
.plugin-heading-line h1 { margin: 0; }
.plugin-identity p { max-width: 690px; margin-bottom: .35rem; color: var(--muted); font-size: 1rem; }
.plugin-stats { display: grid; grid-template-columns: repeat(3, minmax(100px, auto)); gap: .55rem; }
.plugin-stats > span { min-width: 0; display: grid; align-content: center; gap: .12rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.plugin-stats b { min-width: 0; font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.plugin-stats small { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.plugin-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: .7rem; padding: .7rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.gallery-stage { position: relative; width: 100%; aspect-ratio: 16/8.2; padding: 0; overflow: hidden; border: 0; border-radius: 15px; background: var(--surface-2); cursor: zoom-in; }
.gallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.gallery-stage span { position: absolute; right: 1rem; bottom: 1rem; padding: .45rem .75rem; border-radius: 9px; color: #fff; background: rgba(15, 12, 22, .78); font-size: .76rem; font-weight: 750; cursor: pointer; }
.gallery-thumbs { max-height: 530px; display: grid; align-content: start; gap: .55rem; overflow: auto; }
.gallery-thumbs button { aspect-ratio: 16/9; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.gallery-thumbs button:hover, .gallery-thumbs button:focus { border-color: var(--purple); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.plugin-subnav { position: sticky; top: var(--header); z-index: 20; display: flex; gap: .35rem; width: max-content; max-width: 100%; margin-top: 1.25rem; padding: .38rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 8px 24px rgba(31, 20, 55, .07); backdrop-filter: blur(12px); }
.plugin-subnav a { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .85rem; border-radius: 9px; color: var(--muted); font-size: .82rem; font-weight: 780; white-space: nowrap; }
.plugin-subnav a:hover, .plugin-subnav a[aria-current=page] { color: var(--purple); background: var(--purple-soft); }
.plugin-subnav span { padding: .08rem .4rem; border-radius: 999px; color: var(--purple); background: var(--purple-soft); font-size: .68rem; }
.plugin-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 4rem; align-items: start; padding: 3rem 0; }
.plugin-description { min-width: 0; }
.markdown-body { min-width: 0; max-width: 850px; overflow-wrap: anywhere; word-break: break-word; font-size: 1rem; }
.markdown-body h1 { font-size: 2rem; letter-spacing: -.035em; }
.markdown-body h2 { margin-top: 2.1rem; font-size: 1.45rem; }
.markdown-body p, .markdown-body li { color: var(--muted); }
.markdown-body a { color: var(--purple); font-weight: 680; }
.markdown-body code { padding: .1em .35em; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.markdown-body pre, .markdown-body table { max-width: 100%; overflow-x: auto; }
.markdown-body pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.release-panel { position: sticky; top: calc(var(--header) + 58px); padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.price-label { display: block; color: var(--muted); font-size: .76rem; }
.release-price { display: block; margin: .15rem 0 .8rem; font-size: 2.25rem; letter-spacing: -.04em; }
.release-version { display: flex; justify-content: space-between; margin-bottom: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.plugin-facts { margin: 1rem 0; }
.plugin-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px solid var(--line); font-size: .8rem; }
.plugin-facts dt { color: var(--muted); }
.plugin-facts dd { margin: 0; font-weight: 700; text-align: right; }
.side-link { display: flex; justify-content: space-between; padding: .6rem 0; color: var(--purple); font-size: .84rem; font-weight: 730; }
.plugin-report-trigger, .report-signin { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.report-modal-trigger, .report-signin { padding: 0; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: .76rem; font-weight: 720; cursor: pointer; }
.report-modal-trigger:hover, .report-signin:hover { color: var(--danger); }
.report-signin { display: block; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.plugin-report-list { display: grid; gap: .6rem; margin: 1rem 0; }
.plugin-report-list article { display: grid; gap: .25rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.plugin-report-list span { color: var(--muted); font-size: .75rem; }
.plugin-report-list p { margin: .35rem 0 0; }
.release-history, .reviews-section { padding-right: 0; padding-left: 0; }
.release-row { display: flex; justify-content: space-between; gap: 2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.release-row p { margin: .35rem 0; color: var(--muted); white-space: pre-line; }
.release-row > div:last-child { display: grid; color: var(--muted); font-size: .82rem; text-align: right; }
.review-list, .comment-thread { display: grid; gap: 1rem; }
.review { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.review > p { margin: .8rem 0; color: var(--muted); }
.community-author { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.community-author > div { min-width: 0; display: grid; line-height: 1.25; }
.community-author strong { overflow-wrap: anywhere; }
.community-author small { color: var(--muted); font-size: .72rem; }
.review-author > div { flex: 1 1 150px; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: .8rem; font-weight: 850; }
.review-avatar img { display: block; width: 100%; height: 100%; max-width: 38px; max-height: 38px; object-fit: cover; }
.community-badge { display: inline-flex; padding: .18rem .48rem; border-radius: 999px; font-size: .65rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.owner-badge { color: var(--purple); background: var(--purple-soft); }
.staff-badge { color: #245e37; background: #def3e5; }
html[data-theme=dark] .staff-badge { color: #9de0b1; background: #173321; }
.pinned-badge { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, var(--surface)); }
.verified-rating { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 720; }
.pixel-star-rating { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.pixel-stars { position: relative; display: inline-block; width: 72px; height: 16px; }
.pixel-stars-base, .pixel-stars-fill { position: absolute; inset: 0; display: flex; gap: 3px; overflow: hidden; color: color-mix(in srgb, var(--muted) 28%, transparent); }
.pixel-stars-fill { color: var(--purple); }
.rating-fill-0 { width: 0%; }
.rating-fill-2 { width: 2%; }
.rating-fill-4 { width: 4%; }
.rating-fill-6 { width: 6%; }
.rating-fill-8 { width: 8%; }
.rating-fill-10 { width: 10%; }
.rating-fill-12 { width: 12%; }
.rating-fill-14 { width: 14%; }
.rating-fill-16 { width: 16%; }
.rating-fill-18 { width: 18%; }
.rating-fill-20 { width: 20%; }
.rating-fill-22 { width: 22%; }
.rating-fill-24 { width: 24%; }
.rating-fill-26 { width: 26%; }
.rating-fill-28 { width: 28%; }
.rating-fill-30 { width: 30%; }
.rating-fill-32 { width: 32%; }
.rating-fill-34 { width: 34%; }
.rating-fill-36 { width: 36%; }
.rating-fill-38 { width: 38%; }
.rating-fill-40 { width: 40%; }
.rating-fill-42 { width: 42%; }
.rating-fill-44 { width: 44%; }
.rating-fill-46 { width: 46%; }
.rating-fill-48 { width: 48%; }
.rating-fill-50 { width: 50%; }
.rating-fill-52 { width: 52%; }
.rating-fill-54 { width: 54%; }
.rating-fill-56 { width: 56%; }
.rating-fill-58 { width: 58%; }
.rating-fill-60 { width: 60%; }
.rating-fill-62 { width: 62%; }
.rating-fill-64 { width: 64%; }
.rating-fill-66 { width: 66%; }
.rating-fill-68 { width: 68%; }
.rating-fill-70 { width: 70%; }
.rating-fill-72 { width: 72%; }
.rating-fill-74 { width: 74%; }
.rating-fill-76 { width: 76%; }
.rating-fill-78 { width: 78%; }
.rating-fill-80 { width: 80%; }
.rating-fill-82 { width: 82%; }
.rating-fill-84 { width: 84%; }
.rating-fill-86 { width: 86%; }
.rating-fill-88 { width: 88%; }
.rating-fill-90 { width: 90%; }
.rating-fill-92 { width: 92%; }
.rating-fill-94 { width: 94%; }
.rating-fill-96 { width: 96%; }
.rating-fill-98 { width: 98%; }
.rating-fill-100 { width: 100%; }
.pixel-stars svg { width: 12px; height: 14px; flex: 0 0 12px; fill: currentColor; }
.pixel-star-rating > b { color: var(--ink); font-size: .82em; }
.star-rating-input { margin: 0; padding: 0; border: 0; }
.star-rating-input legend { margin-bottom: .45rem; font-size: .73rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.star-rating-input>div { display: flex; flex-direction: row-reverse; justify-content: flex-end; width: max-content; gap: .25rem; }
.star-rating-input input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.star-rating-input label { display: block; cursor: pointer; color: color-mix(in srgb, var(--muted) 34%, transparent); }
.star-rating-input label svg { width: 25px; height: 28px; display: block; fill: currentColor; transition: color .12s, transform .12s; }
.star-rating-input input:checked~label, .star-rating-input label:hover, .star-rating-input label:hover~label { color: var(--purple); }
.star-rating-input label:hover svg { transform: translateY(-2px); }
.star-rating-input input:focus-visible+label { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.star-rating-input small { display: block; margin-top: .4rem; color: var(--muted); }

.modal-form { width: min(580px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 90px rgba(18, 9, 39, .3); }
.modal-form::backdrop { background: rgba(13, 8, 24, .68); backdrop-filter: blur(5px); }
.modal-form-card { padding: clamp(1.15rem, 4vw, 1.75rem); }
.modal-form-card>header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.modal-form-card h2 { margin: .3rem 0; font-size: clamp(1.7rem, 5vw, 2.3rem); letter-spacing: -.035em; }
.modal-form-card header p { margin: .3rem 0 0; color: var(--muted); }
.modal-form-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--bg); cursor: pointer; font-size: 1.4rem; }
.modal-form-fields { display: grid; gap: 1rem; padding-top: 1.2rem; }
.modal-form-fields label { display: grid; gap: .35rem; color: var(--muted); font-size: .74rem; font-weight: 760; }
.modal-form-fields select, .modal-form-fields textarea, .modal-form-fields input { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg); resize: vertical; }
.modal-form form>footer { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.modal-form-status, .modal-form-errors { display: flex; align-items: start; gap: .7rem; margin-top: 1rem; padding: .85rem; border-radius: 11px; }
.modal-form-status { color: #245e37; background: #def3e5; }
.modal-form-status span { font-weight: 900; }.modal-form-status p { margin: 0; }
.modal-form-errors { display: block; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.modal-form-errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
html[data-theme=dark] .modal-form-status { color: #9de0b1; background: #173321; }

.buyer-table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.buyer-table-card>header { padding: 1.2rem; border-bottom: 1px solid var(--line); }.buyer-table-card h2, .buyer-table-card p { margin: 0; }.buyer-table-card p { color: var(--muted); }
.buyer-table-wrap { overflow-x: auto; }.buyer-table { width: 100%; border-collapse: collapse; white-space: nowrap; }.buyer-table th, .buyer-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .8rem; }.buyer-table th { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }.buyer-table code { color: var(--purple); font-size: .74rem; }.buyer-user { display: flex; align-items: center; gap: .65rem; }.buyer-user img, .buyer-user>span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; object-fit: cover; color: var(--purple); background: var(--purple-soft); font-weight: 850; }.buyer-user a { color: var(--purple); font-weight: 780; }.buyer-purchase-state { display: block; margin-top: .25rem; color: var(--danger); }.status-purchase { color: var(--purple); background: var(--purple-soft); }.status-free { color: #245e37; background: #def3e5; }.muted { color: var(--muted); }
.developer-response { margin-top: 1rem; padding: 1rem; border-left: 3px solid var(--purple); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.developer-response .markdown-body { margin-top: .65rem; }
.developer-response .markdown-body > :last-child, .comment-body > :last-child { margin-bottom: 0; }
.response-editor { margin-top: .8rem; }
.response-editor > summary, .comment-actions summary, .reaction-picker > summary { color: var(--purple); font-size: .78rem; font-weight: 750; cursor: pointer; }
.response-editor form, .comment-actions details form { display: grid; gap: .65rem; margin-top: .65rem; }
.response-editor textarea, .comment-composer textarea, .comment-actions textarea, .comment-actions select { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--bg); resize: vertical; }
.reaction-bar { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .38rem; margin-top: .7rem; }
.reaction-count { padding: .2rem .48rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); font-size: .72rem; }
.reaction-picker, .reaction-overflow { position: relative; }
.reaction-popover, .reaction-overflow-menu { position: absolute; z-index: 12; left: 0; top: calc(100% + .4rem); display: flex; align-items: center; gap: .25rem; padding: .35rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.reaction-overflow-menu { z-index: 13; left: auto; right: 0; }
.reaction-picker form { margin: 0; }
.reaction-picker button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.reaction-picker button:hover, .reaction-picker button.is-selected { background: var(--purple-soft); }
.reaction-quick-form{margin:0}.reaction-choice{min-width:44px;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:.28rem;padding:.2rem .5rem;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:var(--surface-2);font:inherit;cursor:pointer}.reaction-choice>span{font-size:1rem;line-height:1}.reaction-choice>b{font-size:.7rem}.reaction-choice:hover,.reaction-choice:focus-visible,.reaction-choice.is-selected{border-color:color-mix(in srgb,var(--purple) 55%,var(--line));color:var(--purple);background:var(--purple-soft)}.reaction-choice.is-selected{box-shadow:inset 0 0 0 1px var(--purple)}.reaction-choice.is-static{cursor:default}.reaction-more{min-width:36px;height:36px;display:grid;place-items:center;padding:0 .5rem;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:.9rem;font-weight:850;letter-spacing:.08em;list-style:none;cursor:pointer}.reaction-more::-webkit-details-marker{display:none}.reaction-more:hover,.reaction-overflow[open]>.reaction-more{color:var(--purple);background:var(--purple-soft)}.reaction-signin{color:var(--purple);font-size:.74rem;font-weight:750}.review-reaction-bar .reaction-choice{min-width:54px}.review-reaction-bar .reaction-choice>span{font-size:1.12rem}
.reaction-bar form[aria-busy=true], [data-async-community][aria-busy=true] { opacity: .62; pointer-events: none; }
.reaction-bar.is-cooling-down { pointer-events: none; }
.reaction-bar.is-cooling-down .reaction-choice, .reaction-bar.is-cooling-down .reaction-picker { opacity: .72; }
.discussion-section { padding-right: 0; padding-left: 0; }
.comment-composer { display: grid; gap: .75rem; margin-bottom: 1.25rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment-composer > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.comment-composer small { color: var(--muted); }
.community-comment { min-width: 0; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.community-comment:has(.pinned-badge) { border-color: color-mix(in srgb, var(--purple) 45%, var(--line)); }
.comment-body { margin-top: .8rem; }
.comment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-top: .7rem; }
.comment-actions details { max-width: 620px; }
.comment-actions details[open] { width: 100%; }
.comment-actions label { display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; font-weight: 720; }
.comment-actions form { margin: 0; }
.text-action { padding: 0; border: 0; color: var(--purple); background: transparent; font-size: .78rem; font-weight: 750; cursor: pointer; }
.danger-action { color: var(--danger); }
.comment-replies { display: grid; gap: .75rem; margin: 1rem 0 0 1.4rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.community-reply { padding: 1rem; background: var(--bg); }
.removed-comment { margin: 0; color: var(--muted); font-style: italic; }
.auth-consent { max-width: 580px !important; margin: 1rem 0 0 !important; color: var(--muted); font-size: .78rem !important; line-height: 1.55; }
.auth-consent a { color: var(--purple); font-weight: 750; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--purple) 35%, transparent); text-underline-offset: 3px; }
.auth-consent a:hover { color: var(--ink); text-decoration-color: var(--purple); }
.comment-author { flex-wrap: nowrap; gap: .55rem; }
.comment-author > div { flex: 1 1 auto; }
.comment-avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: var(--purple); background: var(--purple-soft); font-size: .74rem; font-weight: 850; }
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-comment { padding: 1rem; border-radius: 14px; }
.comment-body { margin-top: .7rem; }
.comment-body > :first-child { margin-top: 0; }
.comment-actions { gap: .2rem; padding-top: .3rem; }
.comment-action-control { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .45rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: .75rem; font-weight: 740; line-height: 1; list-style: none; cursor: pointer; }
.comment-action-control::-webkit-details-marker { display: none; }
.comment-action-control svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comment-action-control:hover, .comment-action-control:focus-visible { color: var(--purple); background: var(--purple-soft); }
.comment-action-control.danger-action:hover, .comment-action-control.danger-action:focus-visible { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.comment-actions details[open] > summary { color: var(--purple); background: var(--purple-soft); }
.comment-actions details[open] form { padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.reaction-picker > summary { color: var(--muted); }
.reaction-count { background: var(--surface-2); }
.community-reply { padding: .85rem; }
.review, .community-comment { scroll-margin-top: calc(var(--header) + 1rem); }

.gallery-dialog { width: min(1100px, calc(100% - 2rem)); max-width: none; padding: 0; border: 0; border-radius: 18px; color: #fff; background: #09080c; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.gallery-dialog::backdrop { background: rgba(5, 4, 8, .88); backdrop-filter: blur(5px); }
.gallery-dialog figure { display: grid; place-items: center; margin: 0; min-height: min(78vh, 760px); }
.gallery-dialog figure img { max-width: 100%; max-height: 74vh; }
.gallery-dialog figcaption { min-height: 2rem; padding: .5rem 1rem 1rem; color: #bbb7c7; }
.gallery-close, .gallery-arrow { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); color: #fff; background: rgba(0,0,0,.58); cursor: pointer; }
.gallery-close { top: .8rem; right: .8rem; width: 42px; height: 42px; border-radius: 50%; font-size: 1.5rem; }
.gallery-arrow { top: 50%; width: 46px; height: 54px; border-radius: 10px; transform: translateY(-50%); }
.gallery-previous { left: .8rem; }
.gallery-next { right: .8rem; }

.gallery-editor { display: grid; gap: 1rem; }
.gallery-sort-form { display: grid; gap: 1rem; }
.gallery-manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gallery-manage-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.gallery-manage-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-manage-card > div { display: flex; justify-content: space-between; align-items: center; padding: .7rem; font-size: .8rem; }
.gallery-manage-card label { display: flex; align-items: center; gap: .35rem; }
.gallery-manage-card .gallery-metadata { display: grid; gap: .6rem; border-top: 1px solid var(--line); }
.gallery-metadata label { display: grid; gap: .25rem; }
.gallery-metadata label span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gallery-metadata input { width: 100%; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--bg); }
.gallery-manage-card[draggable=true] { cursor: grab; }
.gallery-manage-card.is-dragging { opacity: .45; }
.gallery-order-actions { padding-top: 0 !important; }
.gallery-order-actions button { border: 0; color: var(--purple); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 720; }
.danger-link { width: 100%; padding: .55rem; border: 0; border-top: 1px solid var(--line); color: var(--danger); background: transparent; cursor: pointer; }
.text-link { color: var(--purple); font-weight: 720; }
.moderation-gallery { margin-bottom: 1rem; }
.moderation-gallery > p { color: var(--muted); }
.moderation-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.moderation-gallery figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.moderation-gallery figcaption { display: grid; gap: .2rem; padding: .7rem; font-size: .78rem; }
.moderation-gallery figcaption span { color: var(--muted); }

@media (max-width: 1120px) {
    .site-header { grid-template-columns: auto minmax(220px, 1fr) auto; }
    .market-nav { display: none; }
    .mobile-navigation { display: block; }
    .plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plugin-header { grid-template-columns: 1fr; align-items: start; }
    .plugin-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
}

@media (max-width: 780px) {
    :root { --header: 66px; }
    .site-header { grid-template-columns: auto 1fr auto; gap: .65rem; padding: 8px 1rem; }
    .brand > span:last-child, .nav-search kbd, .publish-button, .header-actions .staff-link, .header-actions .logout-button { display: none; }
    .brand-logo { width: 38px; height: 38px; }
    .nav-search { height: 40px; }
    .header-actions { gap: .35rem; }
    .theme-toggle, .account-link { width: 38px; height: 38px; }
    .market-intro { padding-top: 3.2rem; }
    .market-intro h1 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
    .market-search { min-height: 58px; }
    .section-heading { align-items: start; flex-direction: column; gap: .5rem; }
    .featured-grid, .plugin-grid, .catalog-grid { grid-template-columns: 1fr; }
    .plugin-card-featured { grid-row: auto; }
    .catalog-layout { grid-template-columns: 1fr; padding-right: 1rem; padding-left: 1rem; }
    .filter-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .filter-panel .button, .filter-panel .clear-filters { grid-column: 1/-1; }
    .filter-panel .category-filter-options { grid-column: 1/-1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plugin-header { padding-top: 2rem; }
    .plugin-identity { align-items: start; }
    .plugin-icon-large { width: 84px; height: 84px; border-radius: 18px; }
    .plugin-stats { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
    .plugin-gallery { grid-template-columns: 1fr; }
    .gallery-stage { aspect-ratio: 16/10; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); max-height: none; overflow-x: auto; }
    .plugin-detail-layout { grid-template-columns: 1fr; padding-top: 2rem; }
    .release-panel { position: static; grid-row: 1; }
    .release-row { flex-direction: column; }
    .release-row > div:last-child { text-align: left; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer > small { grid-column: auto; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-navigation { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .legal-navigation a { display: grid; place-items: center; text-align: center; }
    .verified-rating { width: 100%; margin-left: 0; }
    .comment-replies { margin-left: .25rem; padding-left: .65rem; }
    .comment-author { flex-wrap: wrap; }
    .partner-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3.5rem; }
    .partner-network { min-height: 360px; }
    .partner-grid { grid-template-columns: 1fr; }
    .partner-grid h3 { margin-top: 1.6rem; }
    .partner-expectations { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
    .header-actions .theme-toggle { display: none; }
    .site-header { padding-right: .75rem; padding-left: .75rem; }
    .mobile-navigation summary, .account-link { width: 38px; height: 38px; }
    .mobile-navigation nav { position: fixed; top: calc(var(--header) - 2px); right: .75rem; }
    .market-search { display: grid; grid-template-columns: auto 1fr; }
    .market-search button { grid-column: 1/-1; min-height: 44px; }
    .category-grid, .filter-panel, .gallery-manage-grid { grid-template-columns: 1fr; }
    .filter-panel .category-filter-options { grid-template-columns: 1fr; }
    .results-heading { align-items: stretch; flex-direction: column; }
    .catalog-sort-form { justify-content: space-between; }
    .catalog-sort-form select { min-width: 0; flex: 1; }
    .plugin-card-main { align-items: flex-start; }
    .plugin-icon { width: 58px; height: 58px; border-radius: 13px; }
    .plugin-card-title { display: block; }
    .price { display: inline-block; margin-top: .15rem; }
    .plugin-identity { display: grid; }
    .plugin-stats { font-size: .82rem; gap: .35rem; }
    .plugin-stats > span { padding: .6rem .5rem; }
    .plugin-stats b { font-size: .9rem; }
    .plugin-stats small { font-size: .62rem; }
    .plugin-subnav { gap: 1rem; overflow-x: auto; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .gallery-arrow { bottom: .8rem; top: auto; transform: none; }
    .comment-composer > div { align-items: stretch; flex-direction: column; }
    .comment-composer .button { width: 100%; }
    .comment-reaction-picker > .reaction-popover { position: fixed; left: 50%; top: auto; bottom: 1rem; transform: translateX(-50%); }
    .reaction-overflow-menu { top: auto; right: 0; bottom: calc(100% + .4rem); }
    .legal-page { padding-right: 1rem; padding-left: 1rem; }
    .legal-hero { padding-top: 2.8rem; }
    .legal-date { display: grid; gap: .1rem; }
    .legal-date > span { display: none; }
    .legal-navigation, .support-grid { grid-template-columns: 1fr; }
    .support-card-wide { grid-column: auto; }
    .support-card .button { width: 100%; }
    .site-footer { gap: 1.4rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
    .site-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .8rem; }
    .site-footer .footer-links a { min-height: 40px; display: flex; align-items: center; }
    .pagination { max-width: 100%; overflow-x: auto; padding-bottom: .25rem; }
    .catalog-pagination { grid-template-columns:1fr 1fr; gap:.6rem; }
    .catalog-page-action { width:100%; }
    .catalog-page-position { grid-column:1/-1; grid-row:1; text-align:center; }
    .toast-stack { width: auto; top: calc(var(--header) + .65rem); right: .75rem; left: .75rem; }
    .partner-hero-copy h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
    .partner-actions, .partner-expectations aside > div { align-items: stretch; flex-direction: column; }
    .partner-actions .button, .partner-expectations aside .button { width: 100%; }
    .partner-network { min-height: 290px; border-radius: 20px; }
    .partner-cube { width: 54px; height: 54px; border-radius: 13px; }
    .partner-cube-main { width: 88px; height: 88px; top: calc(50% - 44px); left: calc(50% - 44px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .page-loader-enderman { left: calc(50% - 21px); }
    .toast-progress { transform: scaleX(.65); }
}
