@font-face {
    font-family: "Clash Display";
    src: url("../fonts/clash-display-semibold.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Geist";
    src: url("../fonts/geist-medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500 700;
}

@font-face {
    font-family: "Albert Sans";
    src: url("../fonts/albert-sans-regular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400 700;
}

:root {
    --bg: #08070a;
    --surface: #0d0c0f;
    --surface2: #121115;
    --border: rgba(255, 255, 255, 0.075);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text: #eeedee;
    --text-muted: rgba(238, 237, 238, 0.48);
    --text-dim: rgba(238, 237, 238, 0.68);
    --accent: #fff;
    --accent2: #fff;
    --green: #9ad7b0;
    --gold: #e6cf90;
}

html,
body {
    background: var(--bg);
}

body {
    color: var(--text);
    font-family: "Geist", sans-serif;
    font-size: 15px;
    letter-spacing: -0.025em;
}

body::before,
.ambient {
    display: none !important;
}

button,
input,
textarea,
select {
    font-family: inherit !important;
    letter-spacing: inherit;
}

/* Shared site navigation */
.nav,
.auth-nav {
    width: calc(100% - 64px);
    max-width: 1320px;
    height: 60px;
    margin: 22px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav {
    position: sticky;
    top: 16px;
    z-index: 100;
    margin-bottom: 22px;
}

.nav-left {
    display: contents;
}

.logo-mark {
    width: 118px;
    height: 46px;
    border-radius: 0;
    overflow: hidden;
}

.logo-mark img {
    width: 264px;
    height: 124px;
    max-width: none;
    object-fit: contain;
}

.nav-links,
.auth-nav-links {
    min-height: 56px;
    padding: 7px 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 56px;
    background: #fff;
    box-shadow: 0 1px 18px rgba(224, 215, 198, 0.34);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a,
.auth-nav-links a {
    padding: 10px 14px;
    border-radius: 28px;
    background: transparent !important;
    color: #151418;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: none;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.auth-nav-links a:hover {
    color: #151418;
    opacity: .58;
}

.nav-right {
    margin-left: auto;
}

.user-pill {
    min-height: 44px;
    padding: 7px 14px 7px 7px;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 28px;
    background: rgba(13, 12, 15, .96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
}

.user-pill:hover {
    border-color: rgba(255, 255, 255, .16);
    background: #151419;
}

.user-avatar,
.uploader-avatar,
.detail-uploader-avatar {
    background: #fff;
    color: #09090a;
    font-family: "Geist", sans-serif;
}

.user-name {
    color: var(--text);
    font-size: 13px;
}

.user-dropdown {
    top: calc(100% + 12px);
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(12, 11, 14, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
    backdrop-filter: blur(20px);
}

/* Signed-out state. */
#auth-section {
    min-height: 100vh;
    background: var(--bg);
}

.auth-divider,
.auth-logo-wrap {
    display: none;
}

.auth-main {
    min-height: calc(100vh - 92px);
    padding: 92px 24px 110px;
}

.auth-container {
    width: min(100%, 720px);
}

.auth-hero {
    margin: 0 auto 34px;
}

.auth-hero h1 {
    margin-bottom: 16px;
    color: #fff;
    font-family: "Clash Display", sans-serif;
    font-size: clamp(52px, 7vw, 82px);
    font-weight: 600;
    line-height: .9;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.auth-hero p {
    max-width: 470px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
}

.auth-card {
    width: min(100%, 390px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.btn-discord,
.btn-submit,
.btn-detail-dl {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #09090a;
    font-weight: 600;
    text-transform: none;
    box-shadow: none;
}

.btn-discord:hover,
.btn-submit:hover,
.btn-detail-dl:hover {
    background: #e9e8e9;
    color: #09090a;
    transform: none;
}

.auth-footer-line {
    color: rgba(255, 255, 255, .32);
}

/* Main product layout. */
#configs-section {
    min-height: 100vh;
}

.configs-layout {
    width: calc(100% - 64px);
    max-width: 1320px;
    height: calc(100vh - 120px);
    min-height: 660px;
    margin: 0 auto 28px;
    gap: 16px;
    overflow: hidden;
}

.chat-panel,
.gallery-panel {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.chat-panel {
    width: 320px;
    max-width: 320px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.chat-panel.collapsed {
    border: 0;
}

.chat-slide-handle {
    width: 12px;
}

.chat-slide-handle-text {
    color: rgba(255, 255, 255, .2);
    font-family: "Geist", sans-serif;
    font-size: 10px;
}

.chat-header,
.gallery-header,
.gallery-filters {
    background: transparent;
    border-color: var(--border);
}

.chat-header {
    min-height: 62px;
    padding: 13px 16px;
}

.chat-title,
.gallery-title {
    color: var(--text);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.02em;
}

.install-help-btn,
.version-chooser-btn,
.filter-pill,
.sort-select,
.btn-upload {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: #151419;
    color: var(--text-dim);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.02em;
}

.install-help-btn {
    padding: 6px 10px;
}

.chat-messages {
    padding: 8px 4px;
}

.chat-msg {
    padding-left: 12px;
    padding-right: 12px;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border);
}

.chat-input-wrap {
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: #151419;
}

.chat-input-wrap:focus-within {
    border-color: rgba(255, 255, 255, .17);
    background: #17161b;
}

#chat-input {
    color: var(--text);
    font-family: "Geist", sans-serif;
}

.gallery-panel {
    min-width: 0;
    overflow: hidden;
}

.gallery-header {
    padding: 22px 26px 18px;
}

.gallery-title-wrap {
    width: 100%;
    gap: 12px;
}

.gallery-title {
    font-size: 26px;
    font-weight: 400;
}

.version-switcher-label {
    color: var(--text-muted);
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.02em;
}

.version-switcher,
.version-pills {
    gap: 7px;
}

.version-pills .filter-pill,
.version-chooser-btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: -.02em;
}

.filter-pill:hover,
.version-chooser-btn:hover,
.btn-upload:hover {
    border-color: rgba(255, 255, 255, .18);
    background: #1a191e;
    color: var(--text);
}

.filter-pill.active,
.version-pills .filter-pill.active {
    border-color: #fff;
    background: #fff;
    color: #09090a;
    box-shadow: none;
}

.version-note {
    color: var(--text-muted);
    font-size: 12px;
}

.gallery-filters {
    padding: 14px 26px;
}

.filter-pills {
    gap: 6px;
}

.filter-pill {
    padding: 7px 12px;
}

#config-search,
.sort-select,
.form-input,
.form-select,
.form-textarea {
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-radius: 12px !important;
    background-color: #151419 !important;
    color: var(--text) !important;
    font-family: "Geist", sans-serif !important;
    text-transform: none;
    letter-spacing: -.02em;
}

#config-search {
    width: 180px !important;
    min-height: 36px;
    padding: 8px 13px !important;
}

.sort-select {
    min-height: 36px;
    padding: 8px 34px 8px 13px;
    font-size: 12px;
}

.btn-upload {
    min-height: 36px;
    padding: 8px 14px;
    background: #fff;
    color: #09090a;
}

.btn-upload:hover {
    background: #e9e8e9;
    color: #09090a;
}

.gallery-scroll {
    padding: 22px 26px 30px;
}

.configs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.config-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #0b0a0d;
    transition: border-color .18s ease;
}

.config-card:hover {
    border-color: rgba(255, 255, 255, .16);
    transform: none;
}

.config-preview {
    aspect-ratio: 16 / 10;
    background: #111014;
}

.config-preview img {
    transition: none;
}

.config-card:hover .config-preview img {
    transform: none;
}

.config-cat-badge {
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(10, 9, 12, .78);
    color: rgba(255, 255, 255, .78);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.01em;
    backdrop-filter: blur(12px);
}

.config-body {
    padding: 16px;
}

.config-title {
    color: #fff;
    font-family: "Geist", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.config-desc {
    min-height: 38px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.config-footer {
    margin-top: 13px;
    padding-top: 13px;
}

.btn-dl-card {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #09090a;
}

.btn-dl-card:hover {
    border-color: transparent;
    background: #e9e8e9;
    color: #09090a;
    box-shadow: none !important;
    transform: none !important;
}

.btn-detail-dl,
.btn-detail-dl:hover,
.btn-detail-dl:focus-visible,
.btn-detail-dl:active {
    background: #fff;
    color: #09090a;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .15s ease;
}

.btn-detail-dl:hover {
    background: #e9e8e9;
}

/* Dialogs and walkthroughs. */
.modal-overlay,
.onboarding-overlay {
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(14px);
}

.modal-card,
.detail-modal-card,
.filter-chooser-card,
.onboarding-box {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: #0e0d10;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .55);
}

.detail-modal-card::before {
    display: none;
}

.detail-preview {
    border-radius: 20px 20px 0 0;
}

.modal-inner,
.detail-body,
.filter-chooser-inner {
    padding: 26px;
}

.modal-header-title,
.detail-title,
.filter-chooser-title,
.onboarding-title {
    color: var(--text);
    font-family: "Geist", sans-serif;
    font-weight: 500;
    letter-spacing: -.035em;
}

.filter-chooser-kicker,
.form-label,
.onboarding-step-num {
    color: var(--text-muted);
    font-family: "Geist", sans-serif;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.02em;
}

.filter-choice-btn,
.file-drop-zone {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background: #151419;
}

.filter-choice-btn:hover,
.file-drop-zone:hover,
.file-drop-zone.drag-over {
    border-color: rgba(255, 255, 255, .18);
    background: #18171c;
    transform: none;
}

.filter-choice-title {
    font-family: "Geist", sans-serif;
    font-weight: 500;
}

.filter-chooser-skip,
.onboarding-next,
.onboarding-skip,
.btn-detail-share {
    border-radius: 999px !important;
    font-family: "Geist", sans-serif !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: -.02em !important;
}

.footer {
    width: calc(100% - 64px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px 0 34px;
    border-color: var(--border);
    background: transparent;
}

.footer-inner {
    max-width: none;
}

@media (max-width: 1120px) {
    .configs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-panel {
        width: 290px;
        max-width: 290px;
    }

    .nav-links a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .nav,
    .auth-nav,
    .configs-layout,
    .footer {
        width: calc(100% - 32px);
    }

    .nav-links {
        display: none;
    }

    .configs-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .nav,
    .auth-nav {
        margin-top: 12px;
    }

    .auth-nav-links a {
        padding: 8px 9px;
        font-size: 12px;
    }

    .logo-mark {
        width: 86px;
    }

    .logo-mark img {
        width: 215px;
        height: 102px;
    }

    .configs-layout {
        gap: 12px;
    }

    .chat-panel,
    .gallery-panel {
        border-radius: 16px;
    }

    .chat-panel {
        width: 100%;
        max-width: none;
    }

    .chat-slide-handle {
        display: none;
    }

    .gallery-header,
    .gallery-filters,
    .gallery-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gallery-filters > div:last-child {
        width: 100%;
        flex-wrap: wrap;
    }

    #config-search {
        width: min(100%, 220px) !important;
        flex: 1;
    }

    .configs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-right .user-name {
        display: none;
    }

    .user-pill {
        padding-right: 7px;
    }

    .configs-grid,
    .filter-chooser-grid {
        grid-template-columns: 1fr;
    }

    .version-switcher {
        align-items: flex-start;
        flex-direction: column;
    }

    .version-pills {
        width: 100%;
    }

    .version-pills .filter-pill {
        flex: 1;
    }

    .gallery-title {
        font-size: 23px;
    }

    .auth-hero h1 {
        font-size: 50px;
    }
}

/* Community-config gallery controls */
.gallery-eyebrow {
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    flex-wrap: nowrap;
}

.quick-filter-group {
    min-height: 42px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: #0b0a0d;
}

.quick-filter-group button {
    min-height: 34px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .43);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.quick-filter-group button:hover {
    color: rgba(255, 255, 255, .78);
}

.quick-filter-group button.active {
    background: #fff;
    color: #09090a;
}

.config-search-wrap {
    min-width: 190px;
    max-width: 340px;
    min-height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 260px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    background: #0b0a0d;
    color: rgba(255, 255, 255, .34);
    transition: border-color .15s ease;
}

.config-search-wrap:focus-within {
    border-color: rgba(255, 255, 255, .18);
}

.config-search-wrap svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.config-search-wrap #config-search {
    width: 100% !important;
    min-height: 40px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    color: var(--text) !important;
    font-size: 12px;
}

.config-search-wrap #config-search::placeholder {
    color: rgba(255, 255, 255, .34);
}

.gallery-filter-trigger,
.btn-upload {
    min-height: 42px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.gallery-filter-trigger {
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0b0a0d;
    color: #fff;
}

.gallery-filter-trigger:hover {
    border-color: rgba(255, 255, 255, .2);
    background: #121115;
}

.gallery-filter-trigger svg {
    width: 28px;
    height: 28px;
    margin: -3px -5px -3px 0;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.active-filter-count {
    display: none;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: #09090a;
    font-size: 10px;
}

.active-filter-count.visible {
    display: inline-flex;
}

.gallery-filter-modal {
    width: min(100%, 620px);
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    background: #09090a;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .64);
}

.gallery-filter-heading {
    min-height: 74px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.gallery-filter-heading h2 {
    color: #fff;
    font-family: "Clash Display", sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -.035em;
}

.gallery-filter-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .52);
    cursor: pointer;
}

.gallery-filter-close:hover {
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.gallery-filter-close svg {
    width: 15px;
    height: 15px;
}

.gallery-filter-content {
    padding: 12px;
    display: grid;
    gap: 9px;
    overflow-y: auto;
}

.gallery-filter-section {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: #121214;
}

.gallery-filter-section h3 {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 600;
}

.gallery-filter-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gallery-filter-options.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-filter-options.preset-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-filter-option {
    min-height: 46px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    text-align: left;
    cursor: pointer;
}

.gallery-filter-option:hover {
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .8);
}

.gallery-filter-option.selected {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .055);
    color: #fff;
}

.filter-check {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    position: relative;
}

.gallery-filter-option.selected .filter-check {
    border-color: #fff;
    background: #fff;
}

.gallery-filter-option.selected .filter-check::after {
    content: "";
    width: 6px;
    height: 3px;
    position: absolute;
    left: 5px;
    top: 5px;
    border-left: 1.5px solid #09090a;
    border-bottom: 1.5px solid #09090a;
    transform: rotate(-45deg);
}

.gallery-filter-option strong {
    display: block;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
}

.gallery-filter-option small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, .34);
    font-size: 10px;
    line-height: 1.35;
}

.gallery-filter-actions {
    min-height: 74px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.gallery-filter-clear,
.gallery-filter-apply {
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gallery-filter-clear {
    border: 1px solid rgba(255, 255, 255, .13);
    background: transparent;
    color: rgba(255, 255, 255, .7);
}

.gallery-filter-apply {
    min-width: 150px;
    border: 0;
    background: #fff;
    color: #09090a;
}

.gallery-filter-clear:hover {
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
}

.gallery-filter-apply:hover {
    background: #e9e8e9;
}

@media (max-width: 1180px) {
    .gallery-filters {
        flex-wrap: wrap;
    }

    .config-search-wrap {
        order: 3;
        min-width: 100%;
        max-width: none;
    }
}

@media (max-width: 680px) {
    .quick-filter-group {
        flex: 1 1 auto;
    }

    .quick-filter-group button {
        flex: 1;
    }

    .gallery-filter-trigger,
    .btn-upload {
        flex: 1 1 auto;
    }

    .gallery-filter-options,
    .gallery-filter-options.two-column,
    .gallery-filter-options.preset-options {
        grid-template-columns: 1fr;
    }

    .gallery-filter-modal {
        max-height: 94vh;
        border-radius: 16px;
    }

    .gallery-filter-heading,
    .gallery-filter-actions {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Cleaner Downloads-style page structure */
.nav,
.auth-nav,
.configs-layout,
.footer {
    max-width: 1120px;
}

.configs-layout {
    width: calc(100% - 64px);
    height: auto;
    min-height: calc(100vh - 160px);
    margin: 0 auto 40px;
    display: block;
    overflow: visible;
}

.gallery-panel {
    width: 100%;
    min-height: 0;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.gallery-header {
    min-height: 0;
    padding: 50px 0 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--border);
}

.gallery-title-wrap {
    width: auto;
    max-width: 650px;
    gap: 9px;
}

.gallery-title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -.045em;
}

.version-note {
    max-width: 540px;
    font-size: 14px;
    line-height: 1.55;
}

.gallery-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.gallery-header-actions button {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: #0d0c0f;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.gallery-header-actions button:hover {
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.gallery-filters {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
}

.gallery-scroll {
    overflow: visible;
    padding: 28px 0 20px;
}

.configs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.config-card {
    border-radius: 18px;
}

.chat-slide-handle {
    display: none !important;
}

.chat-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 549;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    backdrop-filter: blur(4px);
}

body.chat-drawer-open .chat-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.chat-panel,
.chat-panel.collapsed {
    width: 380px !important;
    max-width: min(380px, calc(100vw - 24px));
    height: 100vh;
    min-height: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 550;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
    border-radius: 0;
    background: #0b0a0d;
    opacity: 1;
    transform: translateX(0);
    transition: transform .22s ease;
}

.chat-panel.collapsed {
    pointer-events: none;
    transform: translateX(100%);
}

.chat-panel .install-help-btn {
    display: none;
}

.chat-panel .chat-toggle-btn {
    display: none !important;
}

.chat-panel .chat-messages {
    max-height: none;
    overflow-y: auto;
}

.chat-header {
    min-height: 70px;
    padding: 14px 16px;
}

.chat-drawer-close {
    width: 34px;
    height: 34px;
    margin-left: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.chat-drawer-close:hover {
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.chat-drawer-close svg {
    width: 14px;
    height: 14px;
}

.chat-input-area {
    display: block;
}

@media (max-width: 900px) {
    .configs-layout {
        width: calc(100% - 32px);
    }

    .gallery-header {
        padding-top: 34px;
        align-items: flex-start;
        flex-direction: column;
    }

    .configs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .gallery-header-actions {
        width: 100%;
    }

    .gallery-header-actions button {
        flex: 1;
    }

    .configs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-title {
        font-size: 36px;
    }
}

/* Unified download, success, warning, and error notifications */
#toast-container {
    right: 24px;
    bottom: 24px;
    width: min(360px, calc(100vw - 32px));
    gap: 9px;
}

.toast {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 13px 14px;
    position: relative;
    overflow: hidden;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    background: rgba(12, 11, 14, .96);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
    transform-origin: right center;
    animation: dreamToastIn .42s cubic-bezier(.2, .9, .28, 1.14) both;
    cursor: pointer;
}

.toast.out {
    pointer-events: none;
    animation: dreamToastOut .38s cubic-bezier(.55, .02, .78, .3) both;
}

@keyframes dreamToastIn {
    0% {
        opacity: 0;
        transform: translateX(34px) scale(.94);
    }
    70% {
        opacity: 1;
        transform: translateX(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes dreamToastOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100% + 48px)) scale(.98);
    }
}

.toast-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .8);
}

.toast.success .toast-icon {
    border-color: rgba(104, 211, 145, .16);
    background: rgba(104, 211, 145, .11);
    color: #8ed7aa;
}

.toast.error .toast-icon {
    border-color: rgba(248, 113, 113, .18);
    background: rgba(248, 113, 113, .11);
    color: #f27d7d;
}

.toast.warning .toast-icon {
    border-color: rgba(230, 207, 144, .18);
    background: rgba(230, 207, 144, .11);
    color: #e6cf90;
}

.toast.info .toast-icon {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
}

.toast-title {
    margin-bottom: 3px;
    color: #fff;
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.toast-msg {
    color: rgba(255, 255, 255, .48);
    font-size: 12px;
    line-height: 1.4;
}

.toast-progress {
    height: 2px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    transform-origin: left center;
    animation: dreamToastTimer 4.2s linear both;
}

.toast.success .toast-progress {
    background: rgba(142, 215, 170, .72);
}

.toast.error .toast-progress {
    background: rgba(242, 125, 125, .72);
}

.toast.warning .toast-progress {
    background: rgba(230, 207, 144, .72);
}

@keyframes dreamToastTimer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 560px) {
    #toast-container {
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast.out {
        animation-duration: .01ms;
    }

    .toast-progress {
        animation: none;
    }
}

/* Match the approved Home sign-in and application shell. */
#auth-section {
    min-height: 100svh;
    height: 100svh;
    display: grid;
    grid-template-columns: minmax(420px, 34vw) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "config-auth-nav config-auth-media"
        "config-auth-main config-auth-media";
    overflow: hidden;
    background: #08070a;
}

#auth-section .auth-nav {
    grid-area: config-auth-nav;
    width: auto;
    max-width: none;
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 26px 32px 10px;
    background: #08070a;
}

#auth-section .auth-nav .logo-mark {
    width: 152px;
    height: 56px;
}

#auth-section .auth-nav .logo-mark img {
    width: 310px;
    height: 140px;
}

#auth-section .auth-nav-links {
    display: none;
}

#auth-section .auth-main {
    grid-area: config-auth-main;
    min-width: 0;
    min-height: 0;
    padding: 22px 32px 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: #08070a;
}

#auth-section .auth-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
}

#auth-section .auth-hero {
    margin: 0 0 28px;
    text-align: left;
}

#auth-section .config-auth-kicker {
    display: block;
    margin-bottom: 14px;
    color: rgba(238, 237, 238, 0.46);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

#auth-section .auth-hero h1 {
    max-width: 440px;
    margin: 0 0 13px;
    background: none;
    color: #eeedee;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: clamp(42px, 4.1vw, 58px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-transform: none;
}

#auth-section .auth-hero p {
    max-width: 410px;
    margin: 0;
    color: rgba(238, 237, 238, 0.58);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.025em;
}

#auth-section .auth-card {
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#auth-section .btn-discord {
    width: 100%;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #08070a;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.025em;
    box-shadow: none;
}

#auth-section .btn-discord:hover {
    background: #f1f1f1;
    color: #08070a;
    transform: none;
}

#auth-section .config-auth-note {
    max-width: 360px;
    margin: 13px 0 0;
    color: rgba(238, 237, 238, 0.36);
    font-family: "Geist", sans-serif;
    font-size: 11px;
    line-height: 1.45;
}

#auth-section .auth-footer-line {
    margin-top: 28px;
    justify-content: flex-start;
    color: rgba(238, 237, 238, 0.4);
    font-family: "Geist", sans-serif;
    font-size: 11px;
}

#auth-section .auth-footer-line a {
    color: rgba(238, 237, 238, 0.78);
}

.config-auth-media {
    grid-area: config-auth-media;
    position: relative;
    min-width: 0;
    min-height: 0;
    margin: 16px 16px 16px 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #111;
}

.config-auth-media-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 53% center;
    filter: brightness(0.74) contrast(1.06) saturate(0.9);
    transform: scale(1.01);
}

.config-auth-media-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 38%);
}

.config-auth-media-caption {
    position: absolute;
    left: 34px;
    bottom: 18px;
    max-width: 620px;
    color: #fff;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: clamp(25px, 2.25vw, 36px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.config-auth-media-wordmark {
    position: absolute;
    right: 28px;
    bottom: 20px;
    width: 152px;
    height: auto;
    filter: brightness(0) invert(1);
}

#configs-section > .nav {
    width: calc(100% - 32px);
    max-width: 1240px;
    height: 68px;
    margin: 16px auto 0;
    padding: 8px 10px 8px 16px;
    top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background: rgba(8, 7, 10, 0.88);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

#configs-section > .nav .logo-mark {
    width: 132px;
    height: 48px;
}

#configs-section > .nav .logo-mark img {
    width: 282px;
    height: 132px;
}

#configs-section > .nav .nav-links {
    min-height: 0;
    padding: 4px;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

#configs-section > .nav .nav-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(238, 237, 238, 0.58);
    font-size: 14px;
}

#configs-section > .nav .nav-links a:hover {
    color: #eeedee;
    opacity: 1;
}

#configs-section > .nav .nav-links a.active {
    background: #fff !important;
    color: #08070a;
    opacity: 1;
}

#configs-section > .nav .user-pill {
    min-height: 48px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

#configs-section > .nav .user-avatar {
    width: 34px;
    height: 34px;
}

#configs-section .configs-layout {
    width: calc(100% - 32px);
    max-width: 1240px;
    height: calc(100vh - 122px);
    margin: 22px auto 34px;
    gap: 14px;
}

#configs-section .gallery-panel,
#configs-section .chat-panel {
    border-radius: 18px;
}

#configs-section .gallery-title {
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.05em;
}

@media (max-width: 900px) {
    #auth-section {
        height: auto;
        min-height: 100svh;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        grid-template-areas:
            "config-auth-nav"
            "config-auth-main";
        overflow: visible;
    }

    .config-auth-media {
        display: none;
    }

    #auth-section .auth-main {
        min-height: calc(100svh - 92px);
        padding: 48px 24px 80px;
    }

    #auth-section .auth-container {
        max-width: 520px;
    }

    #configs-section .configs-layout {
        width: calc(100% - 24px);
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    #auth-section .auth-nav {
        padding: 18px 20px 6px;
    }

    #auth-section .auth-main {
        padding: 34px 20px 64px;
        align-items: flex-start;
    }

    #auth-section .auth-hero h1 {
        font-size: 44px;
    }

    #configs-section > .nav {
        width: calc(100% - 24px);
    }
}

/* Account menu */
.user-pill {
    box-shadow: none;
}

.user-pill::after {
    content: "";
    width: 5px;
    height: 5px;
    margin: -3px 1px 0 2px;
    border-right: 1px solid rgba(255, 255, 255, .42);
    border-bottom: 1px solid rgba(255, 255, 255, .42);
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.user-pill[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.user-dropdown {
    width: 214px;
    min-width: 214px;
    top: calc(100% + 12px);
    right: 0;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255, 255, 255, .2);
    backdrop-filter: none;
    transform: translateY(7px);
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.user-dropdown.active {
    transform: translateY(0);
}

.dropdown-header {
    display: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.dropdown-profile-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    color: #09090a;
    font-size: 13px;
    font-weight: 600;
}

.dropdown-profile-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-profile-copy {
    min-width: 0;
}

.dropdown-name {
    overflow: hidden;
    color: #fff;
    font-family: "Geist", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-tag {
    margin-top: 3px;
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
}

.dropdown-item,
.dropdown-item.danger {
    width: 100%;
    min-height: 44px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(9, 9, 10, .68);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background-color .14s ease, color .14s ease;
}

.dropdown-item svg,
.dropdown-item.danger svg {
    width: 30px;
    height: 30px;
    padding: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(9, 9, 10, .06);
    color: rgba(9, 9, 10, .64);
    opacity: 1;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    outline: 0;
    background: rgba(9, 9, 10, .055);
    color: #09090a;
}

.dropdown-item:hover svg,
.dropdown-item:focus-visible svg {
    background: rgba(9, 9, 10, .09);
    color: #09090a;
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    margin: 7px 5px;
    background: rgba(9, 9, 10, .1);
}

.dropdown-item.danger:hover,
.dropdown-item.danger:focus-visible {
    background: rgba(210, 46, 46, .07);
    color: #c83232;
}

.dropdown-item.danger:hover svg,
.dropdown-item.danger:focus-visible svg {
    background: rgba(210, 46, 46, .09);
    color: #c83232;
}

@media (max-width: 560px) {
    .user-pill::after {
        display: none;
    }

    .user-dropdown {
        right: -2px;
        width: min(214px, calc(100vw - 32px));
        min-width: 0;
    }
}

/* Clean Config gallery and detail view */
#configs-section .gallery-scroll {
    padding-top: 4px;
}

#configs-section #configs-grid {
    gap: 18px;
}

#configs-section .config-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .105);
    border-radius: 14px;
    background: #0d0d0f;
    box-shadow: none;
    transform: none;
    transition: border-color .16s ease, background-color .16s ease;
}

#configs-section .config-card:hover,
#configs-section .config-card:focus-within {
    border-color: rgba(255, 255, 255, .2);
    background: #0f0f11;
    box-shadow: none;
    transform: none;
}

#configs-section .config-preview {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111114;
}

#configs-section .config-preview img,
#configs-section .config-card:hover .config-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    transform: none;
    transition: none;
}

#configs-section .config-cat-badge {
    top: 11px;
    left: 11px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(10, 10, 11, .76);
    color: rgba(255, 255, 255, .8);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -.01em;
    text-transform: none;
    backdrop-filter: blur(10px);
}

#configs-section .config-body {
    min-height: 166px;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

#configs-section .config-title {
    color: #f5f5f5;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.035em;
}

#configs-section .config-desc {
    min-height: 38px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .5);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    line-height: 1.55;
}

#configs-section .config-footer {
    min-height: 42px;
    margin-top: auto;
    padding-top: 14px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

#configs-section .config-uploader {
    min-width: 0;
    gap: 8px;
}

#configs-section .uploader-avatar {
    width: 24px;
    height: 24px;
    background: #f4f4f2;
    color: #0a0a0b;
    font-size: 10px;
}

#configs-section .uploader-name {
    overflow: hidden;
    color: rgba(255, 255, 255, .48);
    font-family: "Geist", sans-serif;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#configs-section .config-actions {
    gap: 9px;
}

#configs-section .vote-wrap {
    gap: 2px;
}

#configs-section .vote-btn {
    width: 22px;
    height: 28px;
    border-radius: 7px;
    background: transparent;
}

#configs-section .vote-count {
    min-width: 22px;
    color: rgba(255, 255, 255, .58);
    font-family: "Geist", sans-serif;
    font-size: 11px;
}

#configs-section .btn-dl-card {
    width: auto;
    height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #f4f4f2;
    border-radius: 10px;
    background: #f4f4f2;
    color: #09090a;
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -.015em;
    box-shadow: none;
    transform: none;
}

#configs-section .btn-dl-card:hover,
#configs-section .btn-dl-card:focus-visible {
    border-color: #fff;
    outline: 0;
    background: #fff;
    color: #09090a;
    box-shadow: none;
    transform: none;
}

#configs-section .btn-dl-card svg {
    width: 13px;
    height: 13px;
}

#detail-modal {
    padding: 24px;
    background: rgba(4, 4, 5, .78);
    backdrop-filter: blur(12px);
}

#detail-modal .detail-modal-card {
    position: relative;
    width: min(860px, calc(100vw - 48px));
    max-width: 860px;
    max-height: calc(100svh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: #0c0c0e;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

#detail-modal .detail-modal-card::before {
    display: none;
}

#detail-modal .detail-preview {
    aspect-ratio: 16 / 7.4;
    max-height: 390px;
    overflow: hidden;
    background: #121214;
}

#detail-modal .detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#detail-modal .detail-body {
    padding: 26px 28px 28px;
}

#detail-modal .detail-top {
    display: block;
}

#detail-modal .detail-title {
    margin: 0;
    padding-right: 52px;
    color: #f5f5f5;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.045em;
}

#detail-modal .detail-close-btn {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(8, 8, 9, .72);
    color: rgba(255, 255, 255, .68);
    backdrop-filter: blur(10px);
}

#detail-modal .detail-close-btn:hover,
#detail-modal .detail-close-btn:focus-visible {
    border-color: rgba(255, 255, 255, .24);
    outline: 0;
    background: rgba(20, 20, 22, .9);
    color: #fff;
}

#detail-modal .detail-meta {
    margin-top: 13px;
    gap: 9px;
}

#detail-modal .detail-uploader-avatar {
    width: 27px;
    height: 27px;
    background: #f4f4f2;
    color: #09090a;
    font-size: 11px;
}

#detail-modal .detail-uploader-name,
#detail-modal .detail-time {
    color: rgba(255, 255, 255, .48);
    font-family: "Geist", sans-serif;
    font-size: 12px;
}

#detail-modal .detail-meta-sep {
    color: rgba(255, 255, 255, .2);
}

#detail-modal .detail-cat-pill {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .62);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
}

#detail-modal .detail-desc {
    max-width: 680px;
    margin-top: 21px;
    color: rgba(255, 255, 255, .58);
    font-family: "Geist", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

#detail-modal .detail-rating-row {
    margin-top: 22px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#detail-modal .detail-dl-count {
    color: rgba(255, 255, 255, .48);
    font-family: "Geist", sans-serif;
    font-size: 12px;
}

#detail-modal .detail-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
}

#detail-modal .btn-detail-dl,
#detail-modal .btn-detail-share,
#detail-modal .btn-admin-delete {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.015em;
    text-transform: none;
    box-shadow: none;
    transform: none;
}

#detail-modal .btn-detail-dl {
    flex: 1 1 auto;
    border: 1px solid #f4f4f2;
    background: #f4f4f2;
    color: #09090a;
}

#detail-modal .btn-detail-dl:hover,
#detail-modal .btn-detail-dl:focus-visible {
    border-color: #fff;
    outline: 0;
    background: #fff;
    color: #09090a;
    box-shadow: none;
    transform: none;
}

#detail-modal .btn-detail-share {
    flex: 0 0 auto;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .045) !important;
    color: rgba(255, 255, 255, .66) !important;
    font-family: "Geist", sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: -.015em !important;
    text-transform: none !important;
}

#detail-modal .btn-detail-share:hover,
#detail-modal .btn-detail-share:focus-visible {
    border-color: rgba(255, 255, 255, .22) !important;
    outline: 0;
    background: rgba(255, 255, 255, .075) !important;
    color: #fff !important;
}

#detail-modal .btn-admin-delete {
    flex: 0 0 auto;
    border: 1px solid rgba(238, 91, 91, .22);
    background: rgba(238, 91, 91, .06);
    color: #dd7676;
}

#detail-modal .btn-admin-delete:hover,
#detail-modal .btn-admin-delete:focus-visible {
    border-color: rgba(238, 91, 91, .38);
    outline: 0;
    background: rgba(238, 91, 91, .1);
    color: #f08b8b;
}

@media (max-width: 720px) {
    #configs-section #configs-grid {
        grid-template-columns: 1fr;
    }

    #configs-section .config-body {
        min-height: 154px;
    }

    #detail-modal {
        padding: 12px;
    }

    #detail-modal .detail-modal-card {
        width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
        border-radius: 14px;
    }

    #detail-modal .detail-preview {
        aspect-ratio: 16 / 9;
    }

    #detail-modal .detail-body {
        padding: 22px 18px 20px;
    }

    #detail-modal .detail-title {
        font-size: 23px;
    }

    #detail-modal .detail-actions {
        flex-wrap: wrap;
    }

    #detail-modal .btn-detail-dl {
        flex-basis: 100%;
    }
}

@media (max-width: 1120px) and (min-width: 721px) {
    #configs-section #configs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Clean Upload Config modal */
#upload-modal {
    padding: 24px;
    background: rgba(4, 4, 5, .78);
    backdrop-filter: blur(12px);
}

#upload-modal .modal-card {
    width: min(900px, calc(100vw - 48px));
    max-width: 900px;
    max-height: calc(100svh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    background: #0c0c0e;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

#upload-modal .modal-card::before {
    display: none;
}

#upload-modal .modal-inner {
    padding: 28px;
}

#upload-modal .modal-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#upload-modal .upload-modal-kicker {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .38);
    font-family: "Geist", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

#upload-modal .modal-header-title {
    margin: 0;
    color: #f5f5f5;
    font-family: "Albert Sans", "Geist", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.05em;
    text-transform: none;
}

#upload-modal .upload-modal-copy {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .48);
    font-family: "Geist", sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

#upload-modal .modal-close-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .5);
}

#upload-modal .modal-close-btn:hover,
#upload-modal .modal-close-btn:focus-visible {
    border-color: rgba(255, 255, 255, .2);
    outline: 0;
    background: rgba(255, 255, 255, .065);
    color: #fff;
}

#upload-modal .upload-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 26px;
}

#upload-modal .upload-details-column,
#upload-modal .upload-files-column {
    min-width: 0;
}

#upload-modal .upload-files-column {
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

#upload-modal .form-group {
    margin: 0 0 18px;
}

#upload-modal .upload-details-column > .form-group:last-child,
#upload-modal .upload-files-column > .form-group:last-child {
    margin-bottom: 0;
}

#upload-modal .form-label {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .58);
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: none;
}

#upload-modal .form-label-required {
    margin-left: 5px;
    color: rgba(255, 255, 255, .3);
    font-size: 10px;
    font-weight: 400;
}

#upload-modal .form-input,
#upload-modal .form-select,
#upload-modal .form-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #f4f4f2;
    font-family: "Geist", sans-serif;
    font-size: 13px;
    font-weight: 400;
    box-shadow: none;
}

#upload-modal .form-input,
#upload-modal .form-select {
    height: 46px;
    padding: 0 13px;
}

#upload-modal .form-textarea {
    min-height: 128px;
    padding: 13px;
    resize: vertical;
    line-height: 1.55;
}

#upload-modal .form-input::placeholder,
#upload-modal .form-textarea::placeholder {
    color: rgba(255, 255, 255, .25);
}

#upload-modal .form-input:focus,
#upload-modal .form-select:focus,
#upload-modal .form-textarea:focus {
    border-color: rgba(255, 255, 255, .28);
    outline: 0;
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .035);
}

#upload-modal .form-select {
    background-color: rgba(255, 255, 255, .035);
}

#upload-modal .upload-select-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#upload-modal .native-version-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#upload-modal .upload-version-selector {
    height: 46px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

#upload-modal .upload-version-option {
    min-width: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, .42);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -.015em;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease;
}

#upload-modal .upload-version-option:hover,
#upload-modal .upload-version-option:focus-visible {
    outline: 0;
    color: rgba(255, 255, 255, .78);
}

#upload-modal .upload-version-option.active {
    background: #f4f4f2;
    color: #09090a;
}

#upload-modal .file-drop-zone {
    min-height: 132px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, .15);
    border-radius: 11px;
    background: rgba(255, 255, 255, .022);
    transition: border-color .15s ease, background-color .15s ease;
}

#upload-modal .file-drop-zone:hover,
#upload-modal .file-drop-zone:focus-within,
#upload-modal .file-drop-zone.drag-over {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .045);
}

#upload-modal .file-drop-icon {
    width: 34px;
    height: 34px;
    margin: 0 0 10px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .48);
}

#upload-modal .file-drop-icon svg {
    width: 17px;
    height: 17px;
}

#upload-modal .file-drop-text {
    color: rgba(255, 255, 255, .72);
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 500;
}

#upload-modal .file-drop-hint {
    margin-top: 5px;
    color: rgba(255, 255, 255, .3);
    font-family: "Geist", sans-serif;
    font-size: 10px;
}

#upload-modal .file-selected {
    min-height: 44px;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
}

#upload-modal .file-selected svg,
#upload-modal .file-selected-name {
    color: rgba(255, 255, 255, .68);
}

#upload-modal .file-selected-name {
    font-family: "Geist", sans-serif;
    font-size: 11px;
    font-weight: 500;
}

#upload-modal .file-selected-clear {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

#upload-modal .upload-modal-actions {
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

#upload-modal .upload-cancel-btn,
#upload-modal .btn-submit {
    width: auto;
    min-width: 128px;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-family: "Geist", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.015em;
    box-shadow: none;
    transform: none;
}

#upload-modal .upload-cancel-btn {
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .58);
}

#upload-modal .upload-cancel-btn:hover,
#upload-modal .upload-cancel-btn:focus-visible {
    border-color: rgba(255, 255, 255, .2);
    outline: 0;
    background: rgba(255, 255, 255, .065);
    color: #fff;
}

#upload-modal .btn-submit {
    border: 1px solid #f4f4f2;
    background: #f4f4f2;
    color: #09090a;
}

#upload-modal .btn-submit:hover,
#upload-modal .btn-submit:focus-visible {
    border-color: #fff;
    outline: 0;
    background: #fff;
    color: #09090a;
    box-shadow: none;
    transform: none;
}

#upload-modal .btn-submit:active {
    transform: none;
}

@media (max-width: 760px) {
    #upload-modal {
        padding: 12px;
    }

    #upload-modal .modal-card {
        width: calc(100vw - 24px);
        max-height: calc(100svh - 24px);
        border-radius: 14px;
    }

    #upload-modal .modal-inner {
        padding: 22px 18px 20px;
    }

    #upload-modal .upload-form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #upload-modal .upload-files-column {
        padding: 22px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-left: 0;
    }

    #upload-modal .upload-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #upload-modal .upload-cancel-btn,
    #upload-modal .btn-submit {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 460px) {
    #upload-modal .upload-select-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Fluid-rise download interaction */
.fluid-download-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f4f4f2 !important;
    color: #09090a !important;
    transition: border-color .2s ease, color .28s ease !important;
}

.fluid-download-btn::before,
.fluid-download-btn::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background: #09090a;
    will-change: transform;
}

.fluid-download-btn::before {
    top: 105%;
    left: -15%;
    width: 130%;
    height: 240%;
    border-radius: 50% 50% 0 0 / 18% 18% 0 0;
    transform: translateY(0) rotate(-2deg);
    transition: transform .64s cubic-bezier(.2, .82, .22, 1);
}

.fluid-download-btn::after {
    top: 112%;
    left: 69%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateY(0) scale(.72);
    transition: transform .54s cubic-bezier(.2, .82, .22, 1) .035s;
}

.fluid-download-btn > svg,
.fluid-download-btn > span {
    position: relative;
    z-index: 1;
}

.fluid-download-btn:hover,
.fluid-download-btn:focus-visible {
    border-color: #f4f4f2 !important;
    outline: 0;
    background: #f4f4f2 !important;
    color: #fff !important;
}

.fluid-download-btn:hover::before,
.fluid-download-btn:focus-visible::before {
    transform: translateY(-73%) rotate(0deg);
}

.fluid-download-btn:hover::after,
.fluid-download-btn:focus-visible::after {
    transform: translateY(-255%) scale(1);
}

.fluid-download-btn:active > svg {
    animation: fluid-download-drop .38s cubic-bezier(.22, .8, .32, 1);
}

@keyframes fluid-download-drop {
    0% { transform: translateY(0); opacity: 1; }
    46% { transform: translateY(7px); opacity: 0; }
    47% { transform: translateY(-6px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fluid-download-btn,
    .fluid-download-btn::before,
    .fluid-download-btn::after {
        transition: none !important;
    }

    .fluid-download-btn:active > svg {
        animation: none;
    }
}
