.wp-skinchanger {
    --wp-bg: #10131a;
    --wp-panel: #171b25;
    --wp-panel-2: #1e2430;
    --wp-panel-3: #252c3a;
    --wp-line: rgba(255, 255, 255, .08);
    --wp-line-strong: rgba(255, 255, 255, .16);
    --wp-text: #f4f7fb;
    --wp-muted: #94a0b8;
    --wp-muted-2: #67738b;
    --wp-green: #64e18f;
    --wp-blue: #71a7ff;
    --wp-red: #ff6678;
    --wp-gold: #ffcf66;
    --wp-violet: #b18cff;
    --wp-shadow: 0 22px 70px rgba(0, 0, 0, .35);
    color: var(--wp-text);
    display: block;
    max-width: 1480px;
    margin: 0 auto;
    padding: 18px;
}

/* Pride-style skinchanger surface */
.wp-skinchanger {
    --wp-bg: #24170c;
    --wp-panel: #2d241e;
    --wp-panel-2: #352820;
    --wp-panel-3: #3f2f26;
    --wp-line: rgba(255, 255, 255, .05);
    --wp-line-strong: rgba(211, 177, 106, .42);
    --wp-text: #ffffff;
    --wp-muted: #838383;
    --wp-muted-2: #6e665f;
    --wp-green: #5be58b;
    --wp-blue: #c79c5b;
    --wp-red: #eb4b4b;
    --wp-gold: #d3b16a;
    --wp-violet: #d88cff;
    --wp-shadow: 0 18px 44px rgba(14, 8, 4, .45);
    max-width: 1366px;
    padding: 0;
    margin: 18px auto 28px;
}

.wp-skinchanger .wp-topbar {
    display: none;
}

.wp-view-panel {
    margin-top: 0;
}

.wp-workspace,
.wp-community-layout {
    grid-template-columns: 384px minmax(0, 974px);
    gap: 8px;
    align-items: start;
}

.wp-left-panel,
.wp-main-panel,
.wp-community-sidebar,
.wp-community-preview {
    border: 0;
    border-radius: 16px;
    background: transparent;
}

.wp-left-panel,
.wp-community-sidebar {
    top: 10px;
    overflow: visible;
}

.wp-aside-tabs {
    display: flex;
    gap: 8px;
    min-height: 67px;
    padding: 16px;
    border: 0;
    border-radius: 16px 16px 0 0;
    background: #3b2d25;
}

.wp-aside-tabs button {
    flex: 1 1 0;
    min-height: 35px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    color: #c79c5b;
    background: #3f2f26;
    font-size: 13px;
    font-weight: 700;
}

.wp-aside-tabs button svg {
    display: none;
}

.wp-aside-tabs button.is-active,
.wp-aside-tabs button:hover {
    color: #332820;
    background: #fff;
}

.wp-left-screen,
.wp-community-sidebar {
    gap: 8px;
    padding: 8px;
    border-radius: 0 0 16px 16px;
    background: #2d241e;
}

.wp-community-sidebar {
    border-radius: 16px;
}

.wp-community-sidebar .wp-aside-tabs {
    margin: -8px -8px 8px;
}

.wp-left-screen[data-wp-left="collections"] .wp-panel-head {
    display: none;
}

.wp-left-screen[data-wp-left="categories"] .wp-panel-head {
    display: block;
}

.wp-left-screen[data-wp-left="categories"] .wp-panel-head > div {
    display: none;
}

.wp-back-button {
    width: 100%;
    justify-content: center;
    min-height: 34px;
    border-radius: 6px;
    color: #838383;
    background: rgba(255, 255, 255, .04);
}

.wp-back-button:hover {
    color: #d3b16a;
    background: rgba(211, 177, 106, .08);
}

.wp-collections-list,
.wp-category-browser {
    gap: 5px;
}

.wp-collection-section-title,
.wp-category-group-head {
    min-height: 18px;
    color: #838383;
    font-size: 13px;
    line-height: 18px;
}

.wp-create-collection {
    width: 100%;
    min-height: 52px;
    padding: 5px 6px;
    border-color: #d3b16a;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .02);
}

.wp-create-collection svg {
    width: 36px;
    height: 36px;
    padding: 9px;
    border-radius: 8px;
    color: #a9a09a;
    background: rgba(255, 255, 255, .06);
}

.wp-create-collection b {
    font-size: 14px;
    line-height: 20px;
}

.wp-create-collection small {
    color: #838383;
    font-size: 12px;
}

.wp-collection-card {
    position: relative;
    min-height: 50px;
    padding: 5px 7px 5px 11px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .01);
}

.wp-collection-card:hover,
.wp-collection-card.is-active {
    background: rgba(255, 255, 255, .04);
    box-shadow: none;
}

.wp-collection-card strong {
    color: inherit;
    font-size: 14px;
    line-height: 20px;
}

.wp-collection-card.is-active strong {
    color: #d3b16a;
}

.wp-collection-card small {
    margin-top: 0;
    color: #838383;
    font-size: 12px;
}

.wp-collection-thumbs {
    display: block;
    position: absolute;
    right: 25px;
    top: 50%;
    width: 92px;
    height: 44px;
    transform: translateY(-50%);
    opacity: .82;
}

.wp-collection-thumbs img,
.wp-collection-thumbs i {
    width: 92px;
    height: 44px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.wp-collection-dots {
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #d3b16a;
    transform: translateY(-50%);
}

.wp-collection-dots svg {
    width: 16px;
    height: 16px;
}

.wp-search {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    color: #838383;
    background: rgba(255, 255, 255, .04);
}

.wp-category-browser {
    padding-right: 5px;
    max-height: 530px;
}

.wp-category-group {
    gap: 5px;
}

.wp-category-group-head {
    padding-top: 2px;
}

.wp-category-group-head h3 {
    color: #838383;
    font-size: 13px;
    font-weight: 500;
}

.wp-category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.wp-category-item {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 75px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.wp-category-item:hover {
    background: rgba(211, 177, 106, .08);
}

.wp-category-item img,
.wp-category-fallback {
    width: 100%;
    height: 54px;
}

.wp-category-item span {
    display: none;
}

.wp-show-more {
    min-height: 75px;
    border: 0;
    border-radius: 8px;
    color: #d3b16a;
    background: rgba(255, 255, 255, .035);
}

.wp-main-panel {
    padding: 0;
    background: transparent;
}

.wp-collection-head {
    min-height: 67px;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    background: #3b2d25;
}

.wp-collection-head .wp-kicker {
    display: none;
}

.wp-collection-head h2 {
    color: #fff;
    font-size: 20px;
    line-height: 27px;
}

.wp-collection-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wp-collection-title-row h2 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-apply-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(211, 177, 106, .18);
    border-radius: 999px;
    color: #d3b16a;
    background: rgba(211, 177, 106, .08);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}

.wp-apply-status[hidden] {
    display: none;
}

.wp-apply-status.is-applied,
.wp-apply-status.is-saved {
    border-color: rgba(91, 230, 139, .22);
    color: #74e89b;
    background: rgba(91, 230, 139, .1);
}

.wp-apply-status.is-error {
    border-color: rgba(255, 94, 111, .26);
    color: #ff6f80;
    background: rgba(255, 94, 111, .1);
}

.wp-head-actions {
    gap: 8px;
}

.wp-head-actions [data-wp-role="installButton"] {
    display: none !important;
}

.wp-head-actions [data-wp-role="publishButton"] {
    order: 1;
    display: none !important;
}

.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-role="publishButton"] {
    display: inline-flex !important;
}

.wp-head-actions [data-wp-open="editCollectionName"] {
    order: 0;
    width: 35px;
    min-width: 35px;
    padding: 0;
    font-size: 0;
    justify-content: center;
}

.wp-head-actions [data-wp-open="editCollectionName"] svg {
    width: 16px;
    height: 16px;
    margin: 0;
}

.wp-head-actions [data-wp-role="previewToggle"] {
    order: 3;
}

.wp-head-actions [data-wp-action="clear-loadout"] {
    order: 4;
}

.wp-head-actions [data-wp-role="selectedDelete"] {
    order: 5;
}

.wp-action-button,
.wp-secondary-button {
    min-height: 35px;
    border-radius: 10px;
    color: #c79c5b;
    background: rgba(255, 255, 255, .03);
}

.wp-action-button:hover,
.wp-secondary-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.wp-primary-button {
    min-height: 35px;
    border-radius: 10px;
    color: #332820;
    background: #fff;
}

.wp-primary-button:hover {
    background: #f2efe9;
}

.wp-danger {
    color: #d3b16a;
}

.wp-community-preview,
.wp-community-preset,
.wp-community-mini-item {
    background-color: #2d241e;
}

.wp-community-preview {
    padding: 8px;
}

.wp-community-presets {
    gap: 8px;
}

.wp-community-preset {
    border: 0;
    border-radius: 12px;
}

.wp-community-matrix {
    background: rgba(255, 255, 255, .02);
}

.rarity_ancient_weapon,
.rarity_ancient {
    --rarity-color: #eb4b4b;
}

.rarity_legendary_weapon {
    --rarity-color: #d32ce6;
}

.rarity_mythical_weapon {
    --rarity-color: #8847ff;
}

.rarity_rare_weapon {
    --rarity-color: #4b69ff;
}

.rarity_uncommon_weapon {
    --rarity-color: #5e98d9;
}

.rarity_gold_weapon,
.rarity_contraband_weapon {
    --rarity-color: #e4ae39;
}

@media (max-width: 1200px) {
    .wp-workspace,
    .wp-community-layout {
        grid-template-columns: minmax(320px, 384px) minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .wp-workspace,
    .wp-community-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wp-skinchanger {
        margin: 10px auto 20px;
        padding: 0 8px;
    }

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

.wp-skinchanger *,
.wp-skinchanger *::before,
.wp-skinchanger *::after {
    box-sizing: border-box;
}

.wp-skinchanger button,
.wp-skinchanger input,
.wp-skinchanger select {
    font: inherit;
}

.wp-skinchanger button {
    border: 0;
    cursor: pointer;
}

.wp-skinchanger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.wp-skinchanger [hidden] {
    display: none !important;
}

.wp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--wp-panel);
}

.wp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wp-brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    color: #10131a;
    background: var(--wp-green);
    box-shadow: 0 0 28px rgba(100, 225, 143, .22);
}

.wp-brand h1,
.wp-panel-head h2,
.wp-collection-head h2,
.wp-settings-dialog h3,
.wp-modal-sm h3 {
    margin: 0;
    letter-spacing: 0;
}

.wp-brand h1 {
    font-size: 24px;
    line-height: 1.1;
}

.wp-brand span,
.wp-kicker {
    display: block;
    color: var(--wp-muted);
    font-size: 13px;
}

.wp-kicker {
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wp-view-tabs,
.wp-segmented,
.wp-rarity-row,
.wp-wear-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.wp-view-tabs button,
.wp-segmented button,
.wp-rarity-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--wp-muted);
    background: transparent;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.wp-view-tabs button:hover,
.wp-segmented button:hover,
.wp-rarity-row button:hover,
.wp-view-tabs button.is-active,
.wp-segmented button.is-active,
.wp-rarity-row button.is-active {
    color: var(--wp-text);
    background: var(--wp-panel-3);
}

.wp-view-panel {
    display: none;
    margin-top: 16px;
}

.wp-view-panel.is-active {
    display: block;
}

.wp-workspace,
.wp-community-layout {
    display: grid;
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.wp-left-panel,
.wp-main-panel,
.wp-community-sidebar,
.wp-community-preview {
    min-width: 0;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: var(--wp-panel);
}

.wp-left-panel,
.wp-community-sidebar {
    position: sticky;
    top: 12px;
    overflow: hidden;
}

.wp-left-screen {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    max-height: calc(100vh - 120px);
}

.wp-left-screen.is-hidden {
    display: none;
}

.wp-panel-head,
.wp-collection-head,
.wp-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wp-panel-head h2,
.wp-collection-head h2 {
    font-size: 20px;
    line-height: 1.2;
}

.wp-panel-head.compact h3,
.wp-editor-head h3 {
    font-size: 18px;
    line-height: 1.2;
}

.wp-icon-button,
.wp-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: var(--wp-text);
    background: var(--wp-panel-2);
    transition: background .16s ease, color .16s ease;
}

.wp-icon-button:hover,
.wp-modal-close:hover {
    color: #10131a;
    background: var(--wp-green);
}

.wp-back-button,
.wp-action-button,
.wp-primary-button,
.wp-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--wp-text);
    background: var(--wp-panel-2);
    transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}

.wp-back-button:hover,
.wp-action-button:hover,
.wp-secondary-button:hover {
    background: var(--wp-panel-3);
}

.wp-primary-button {
    color: #10131a;
    background: var(--wp-green);
    font-weight: 700;
}

.wp-primary-button:hover {
    background: #7ef0a4;
}

.wp-danger {
    color: var(--wp-red);
}

.wp-secondary-button.wp-danger:hover,
.wp-action-button.wp-danger:hover {
    color: #fff;
    background: rgba(255, 102, 120, .18);
}

.wp-collection-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-text);
    text-align: left;
    background: var(--wp-panel-2);
}

.wp-left-screen[data-wp-left="collections"] .wp-panel-head .wp-icon-button,
.wp-left-screen[data-wp-left="collections"] .wp-slot-palette {
    display: none;
}

.wp-community-sidebar .wp-community-list {
    display: none;
}

.wp-create-collection {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 12px;
    border: 1px dashed rgba(100, 225, 143, .38);
    border-radius: 8px;
    color: var(--wp-text);
    text-align: left;
    background: rgba(100, 225, 143, .06);
}

.wp-create-collection svg {
    color: var(--wp-green);
}

.wp-create-collection b,
.wp-create-collection small,
.wp-collection-info {
    display: block;
}

.wp-create-collection small {
    color: var(--wp-muted);
    font-size: 12px;
}

.wp-collection-info {
    min-width: 0;
}

.wp-collection-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 28px);
    gap: 4px;
    flex: 0 0 auto;
}

.wp-collection-thumbs img,
.wp-collection-thumbs i {
    width: 28px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, .06);
}

.wp-collection-card strong {
    display: block;
    font-size: 16px;
}

.wp-collection-card small {
    display: block;
    margin-top: 4px;
    color: var(--wp-muted);
}

.wp-collection-card.is-active {
    border-color: rgba(100, 225, 143, .45);
    box-shadow: inset 0 0 0 1px rgba(100, 225, 143, .12);
}

.wp-slot-palette,
.wp-category-browser,
.wp-community-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

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

.wp-slot-button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 58px;
    padding: 8px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-text);
    text-align: left;
    background: rgba(255, 255, 255, .025);
}

.wp-slot-button:hover,
.wp-slot-button.is-active {
    border-color: rgba(113, 167, 255, .5);
    background: rgba(113, 167, 255, .08);
}

.wp-slot-button img {
    width: 42px;
    height: 34px;
    object-fit: contain;
}

.wp-slot-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-slot-button small {
    display: block;
    color: var(--wp-muted);
    font-size: 11px;
}

.wp-collections-list:empty {
    display: none;
}

.wp-category-browser {
    gap: 14px;
}

.wp-category-group {
    display: grid;
    gap: 8px;
}

.wp-category-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--wp-muted);
}

.wp-category-group-head h3 {
    margin: 0;
    color: var(--wp-text);
    font-size: 14px;
    line-height: 1.2;
}

.wp-category-group-head span {
    font-size: 12px;
}

.wp-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wp-category-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 8px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-text);
    text-align: left;
    background: rgba(255, 255, 255, .025);
}

.wp-category-item:hover {
    border-color: rgba(255, 207, 102, .46);
    background: rgba(255, 207, 102, .07);
}

.wp-category-item img,
.wp-category-fallback {
    width: 48px;
    height: 38px;
    object-fit: contain;
}

.wp-category-fallback {
    display: block;
    border-radius: 8px;
    background: var(--wp-panel-3);
}

.wp-category-item span {
    min-width: 0;
}

.wp-category-item b,
.wp-category-item small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-category-item small {
    color: var(--wp-muted);
    font-size: 11px;
}

.wp-show-more {
    min-height: 34px;
    border: 1px dashed var(--wp-line-strong);
    border-radius: 8px;
    color: var(--wp-gold);
    background: rgba(255, 207, 102, .06);
}

.wp-show-more:hover {
    color: #10131a;
    background: var(--wp-gold);
}

.wp-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-muted);
    background: rgba(255, 255, 255, .035);
}

.wp-search input,
.wp-field input,
.wp-range-field input[type="number"],
.wp-select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--wp-text);
    background: transparent;
}

.wp-search input::placeholder,
.wp-field input::placeholder {
    color: var(--wp-muted-2);
}

.wp-settings-dialog input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.wp-settings-dialog input[type="number"]::-webkit-outer-spin-button,
.wp-settings-dialog input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.wp-rarity-row {
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.wp-rarity-row button {
    flex: 1 1 0;
    min-height: 32px;
    min-width: 0;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 6px;
    color: #d3b16a;
    background: rgba(255, 255, 255, .035);
    font-size: 12px;
}

.wp-rarity-row button[data-rarity=""],
.wp-rarity-row button[data-collectible-rarity=""] {
    color: #f0b35d;
}

.wp-rarity-row button:hover,
.wp-rarity-row button.is-active {
    color: #f0b35d;
    border-color: rgba(240, 179, 93, .22);
    background: rgba(240, 179, 93, .09);
}

.wp-rarity-row .wp-rarity-icon-button {
    width: auto;
    min-width: 0;
    padding: 0;
}

.wp-rarity-icon-button::before {
    content: "";
    width: 13px;
    height: 18px;
    background: currentColor;
    clip-path: polygon(58% 0, 20% 48%, 47% 48%, 34% 100%, 84% 35%, 56% 35%);
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_gold_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_gold_weapon"] {
    color: #e4ae39;
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_ancient_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_ancient_weapon"] {
    color: #ff4b4b;
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_legendary_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_legendary_weapon"] {
    color: #d62cff;
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_mythical_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_mythical_weapon"] {
    color: #854dff;
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_rare_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_rare_weapon"] {
    color: #3f6fff;
}

.wp-rarity-row .wp-rarity-icon-button[data-rarity="rarity_uncommon_weapon"],
.wp-rarity-row .wp-rarity-icon-button[data-collectible-rarity="rarity_uncommon_weapon"] {
    color: #59b9ff;
}

.wp-rarity-row .wp-rarity-icon-button:hover,
.wp-rarity-row .wp-rarity-icon-button.is-active {
    border-color: color-mix(in srgb, currentColor 34%, transparent);
    background: color-mix(in srgb, currentColor 13%, transparent);
}

.wp-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: auto;
    padding-right: 4px;
}

.wp-catalog-card,
.wp-community-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)), var(--wp-panel-2);
}

.wp-catalog-card {
    min-height: 150px;
    padding: 10px;
    cursor: pointer;
    text-align: left;
}

.wp-catalog-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -34% -20%;
    height: 70%;
    opacity: .2;
    background: radial-gradient(circle, var(--rarity-color, #71a7ff), transparent 68%);
    pointer-events: none;
}

.wp-catalog-card img {
    display: block;
    width: 100%;
    height: 82px;
    object-fit: contain;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.wp-catalog-card strong,
.wp-community-card strong {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-catalog-card span,
.wp-community-card span {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--wp-muted);
    font-size: 12px;
}

.wp-card-add {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #10131a;
    background: var(--wp-green);
}

.wp-main-panel {
    padding: 16px;
}

.wp-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.wp-head-actions [data-wp-role="installButton"],
.wp-head-actions [data-wp-role="publishButton"] {
    display: none;
}

.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-role="installButton"],
.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-role="publishButton"] {
    display: inline-flex;
}

.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-action="clear-loadout"],
.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-role="selectedDelete"] {
    display: none;
}

.wp-community-sidebar {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-filter-stack {
    display: grid;
    gap: 8px;
    color: var(--wp-muted);
}

.wp-filter-stack label,
.wp-wear-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.wp-select {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: var(--wp-panel-2);
}

.wp-community-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 12px;
    text-align: left;
}

.wp-community-card:hover,
.wp-community-card.is-active {
    border-color: rgba(100, 225, 143, .45);
}

.wp-community-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wp-community-preview {
    min-height: 540px;
    padding: 18px;
}

.wp-community-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.wp-community-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.wp-community-presets {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
}

.wp-community-preset {
    overflow: hidden;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: var(--wp-panel-2);
}

.wp-community-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, .025);
}

.wp-community-mini-item {
    display: grid;
    min-height: 64px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 6px;
    background: rgba(11, 14, 20, .42);
}

.wp-community-mini-item img {
    width: 100%;
    height: 52px;
    object-fit: contain;
}

.wp-community-preset-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.wp-community-preset h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.wp-community-preset-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wp-community-pagination button.is-active {
    color: #10131a;
    background: var(--wp-green);
}

.wp-hover-preview,
.wp-side-menu {
    position: fixed;
    z-index: 10020;
    display: none;
    pointer-events: none;
}

.wp-hover-preview.is-visible,
.wp-side-menu.is-visible {
    display: block;
}

.wp-hover-preview {
    width: 250px;
    padding: 12px;
    border: 1px solid var(--wp-line-strong);
    border-radius: 8px;
    background: #121722;
    box-shadow: var(--wp-shadow);
}

.wp-hover-preview img {
    width: 100%;
    height: 128px;
    object-fit: contain;
}

.wp-hover-preview strong,
.wp-hover-preview span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-hover-preview span {
    color: var(--wp-muted);
}

.wp-side-menu {
    pointer-events: auto;
    min-width: 170px;
    overflow: hidden;
    border: 1px solid var(--wp-line-strong);
    border-radius: 8px;
    background: #121722;
    box-shadow: var(--wp-shadow);
}

.wp-side-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    color: var(--wp-text);
    text-align: left;
    background: transparent;
}

.wp-side-menu button:hover {
    background: var(--wp-panel-3);
}

.wp-modal {
    position: fixed;
    inset: 0;
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vh, 24px);
    background: rgba(7, 9, 13, .72);
    backdrop-filter: blur(7px);
}

.wp-modal.is-open {
    display: flex;
}

.wp-modal-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    overflow: auto;
    border: 1px solid var(--wp-line-strong);
    border-radius: 8px;
    background: var(--wp-panel);
    box-shadow: var(--wp-shadow);
}

.wp-modal-sm {
    width: min(440px, 100%);
    padding: 22px;
}

.wp-modal-sm p {
    color: var(--wp-muted);
}

.wp-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
}

.wp-settings-dialog {
    display: flex;
    width: min(1120px, calc(100vw - 16px));
    height: min(900px, calc(100vh - 16px));
    height: min(900px, calc(100dvh - 16px));
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.wp-settings-titlebar {
    flex: 0 0 auto;
    padding: 18px 56px 14px 18px;
    border-bottom: 1px solid var(--wp-line);
}

.wp-settings-titlebar h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.wp-settings-layout {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.wp-modal.wp-no-collectibles .wp-settings-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

.wp-modal.wp-no-collectibles .wp-collectibles-panel,
.wp-modal.wp-no-collectibles .wp-sticker-slots {
    display: none;
}

.wp-modal.wp-no-collectibles .wp-skin-editor {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.wp-modal.wp-no-stattrak .wp-switch,
.wp-modal.wp-no-stattrak .wp-stattrak-counter-field {
    display: none;
}

.wp-collectibles-panel {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-right: 1px solid var(--wp-line);
    background: rgba(255, 255, 255, .02);
}

.wp-collectible-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1 1 auto;
    align-content: start;
    align-items: start;
    gap: 8px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.wp-collectible-card {
    position: relative;
    display: flex;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 5px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-text);
    text-align: center;
    background: var(--wp-panel-2);
}

.wp-collectible-card::before {
    content: "";
    position: absolute;
    inset: auto -28% -44% -28%;
    height: 70%;
    opacity: .18;
    background: radial-gradient(circle, var(--rarity-color, #71a7ff), transparent 68%);
    pointer-events: none;
}

.wp-collectible-card:hover {
    border-color: rgba(100, 225, 143, .45);
}

.wp-collectible-card img {
    width: 100%;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.wp-collectible-fallback {
    display: block;
    width: 100%;
    height: 52px;
    flex: 0 0 auto;
}

.wp-collectible-card span {
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--wp-muted);
    font-size: 10.5px;
    line-height: 1.1;
}

.wp-collectible-rarity {
    justify-content: flex-start;
}

.wp-pagination {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    color: var(--wp-muted);
}

.wp-pagination button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--wp-text);
    background: var(--wp-panel-2);
}

.wp-pagination button:hover:not(:disabled) {
    background: var(--wp-panel-3);
}

.wp-pagination button.is-active {
    color: #10131a;
    background: var(--wp-green);
}

.wp-pagination button:disabled {
    cursor: default;
    opacity: .35;
}

.wp-skin-editor {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: auto;
    padding: 20px;
}

.wp-editor-preview {
    position: relative;
    display: grid;
    --wp-editor-preview-width: min(640px, 96%);
    --wp-editor-preview-height: 250px;
    place-items: center;
    min-height: 268px;
    margin: 16px 0;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(113, 167, 255, .16), transparent 60%), rgba(255, 255, 255, .025);
}

.wp-editor-preview img {
    position: relative;
    z-index: 1;
    width: var(--wp-editor-preview-width);
    height: var(--wp-editor-preview-height);
    object-fit: contain;
}

.wp-placement-map {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: var(--wp-editor-preview-width);
    height: min(var(--wp-editor-preview-height), calc(100% - 18px));
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .16s ease;
}

.wp-placement-map.is-visible {
    opacity: 1;
}

.wp-modal.wp-no-collectibles .wp-placement-map {
    display: none;
}

.wp-placement-mark {
    position: absolute;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid rgba(211, 177, 106, .48);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(22, 18, 15, .58);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .32);
    opacity: 0;
    transform: translate(-50%, -50%);
    visibility: hidden;
    transition: opacity .16s ease, visibility .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.wp-placement-mark::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(100, 225, 143, .38);
    border-radius: inherit;
    opacity: 0;
}

.wp-placement-mark b {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.wp-placement-mark.has-item {
    border-color: rgba(211, 177, 106, .68);
    color: #f0c878;
    background: rgba(211, 177, 106, .16);
}

.wp-placement-mark.is-active {
    width: 22px;
    height: 22px;
    border-color: rgba(100, 225, 143, .86);
    color: #10131a;
    background: var(--wp-green);
    box-shadow: 0 0 0 4px rgba(100, 225, 143, .12), 0 12px 26px rgba(0, 0, 0, .45);
    opacity: 1;
    visibility: visible;
}

.wp-placement-mark.is-active::before {
    animation: wp-placement-pulse 1.45s ease-out infinite;
    opacity: 1;
}

.wp-placement-mark[data-wp-placement-slot="0"] {
    left: 40%;
    top: 57%;
}

.wp-placement-mark[data-wp-placement-slot="1"] {
    left: 48%;
    top: 53%;
}

.wp-placement-mark[data-wp-placement-slot="2"] {
    left: 56%;
    top: 50%;
}

.wp-placement-mark[data-wp-placement-slot="3"] {
    left: 64%;
    top: 47%;
}

.wp-placement-mark[data-wp-placement-slot="keychain"] {
    left: 74%;
    top: 63%;
}

@keyframes wp-placement-pulse {
    0% {
        opacity: .75;
        transform: scale(.76);
    }
    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

.wp-sticker-slots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.wp-sticker-slots button {
    position: relative;
    display: grid;
    min-height: 82px;
    place-items: center;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-muted);
    background: var(--wp-panel-2);
}

.wp-sticker-slots button.is-active {
    color: var(--wp-text);
    border-color: rgba(100, 225, 143, .5);
}

.wp-sticker-slots span {
    position: absolute;
    left: 8px;
    top: 7px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: #10131a;
    background: var(--wp-green);
    font-size: 12px;
    font-weight: 700;
}

.wp-sticker-slots img {
    width: 70%;
    height: 54px;
    object-fit: contain;
}

.wp-editor-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wp-field,
.wp-range-field {
    display: grid;
    gap: 7px;
    color: var(--wp-muted);
    font-size: 13px;
}

.wp-field input,
.wp-range-field input[type="number"] {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    background: var(--wp-panel-2);
}

.wp-field.compact input {
    min-height: 38px;
}

.wp-stattrak-counter-field {
    width: 80px;
}

.wp-side-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    margin-left: 4px;
    padding: 4px;
    border: 1px solid var(--wp-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.wp-side-choice {
    position: relative;
    display: grid;
    width: 38px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #8f8985;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.wp-side-choice:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055);
}

.wp-side-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wp-side-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.wp-side-icon img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
    pointer-events: none;
}

.wp-side-choice:has(input:checked) {
    background: rgba(211, 177, 106, .14);
    box-shadow: inset 0 0 0 1px rgba(211, 177, 106, .55), 0 8px 18px rgba(0, 0, 0, .2);
}

.wp-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    color: var(--wp-muted);
    cursor: pointer;
}

.wp-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wp-switch span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--wp-panel-3);
    transition: background .16s ease;
}

.wp-switch span::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wp-muted);
    transition: transform .16s ease, background .16s ease;
}

.wp-switch input:checked + span {
    background: rgba(100, 225, 143, .28);
}

.wp-switch input:checked + span::after {
    transform: translateX(18px);
    background: var(--wp-green);
}

.wp-wear-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 8px;
    color: var(--wp-muted);
}

.wp-wear-row input,
.wp-filter-stack input {
    accent-color: var(--wp-green);
}

.wp-wear-picker {
    display: grid;
    grid-template-columns: var(--wp-range-label-width) minmax(0, 1fr) var(--wp-range-value-width);
    align-items: center;
    gap: 8px;
    margin: 14px 0;
}

.wp-wear-head {
    display: contents;
}

.wp-wear-title {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--wp-muted);
    font-size: 13px;
}

.wp-wear-title i {
    display: inline-grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    color: #2d241e;
    background: #8f8985;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.wp-wear-picker input[data-wp-role="floatValue"] {
    grid-column: 3;
    grid-row: 2;
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--wp-line);
    border-radius: 8px;
    color: var(--wp-gold);
    text-align: center;
    background: var(--wp-panel-2);
}

.wp-wear-picker .wp-wear-row {
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    gap: 7px;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.wp-wear-picker .wp-wear-row label {
    position: relative;
    display: inline-flex;
    min-width: 48px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wp-line-strong);
    border-radius: 5px;
    color: var(--wp-gold);
    background: var(--wp-panel-2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.wp-wear-picker .wp-wear-row label:hover,
.wp-wear-picker .wp-wear-row label:has(input:checked) {
    border-color: rgba(211, 177, 106, .72);
    color: #f0c878;
    background: rgba(211, 177, 106, .13);
}

.wp-wear-picker .wp-wear-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wp-wear-range {
    grid-column: 2;
    grid-row: 2;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: 999px;
    accent-color: #fff;
    background: linear-gradient(90deg, #64e18f 0 7%, #b1cc54 7% 15%, #f2c94c 15% 38%, #ff8747 38% 45%, #f0525f 45% 100%);
}

.wp-wear-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--wp-panel);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.wp-wear-range::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--wp-panel);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.wp-float-panel {
    --wp-range-label-width: 74px;
    --wp-range-value-width: 88px;
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.wp-range-field {
    grid-template-columns: var(--wp-range-label-width) minmax(0, 1fr) var(--wp-range-value-width);
    align-items: center;
}

.wp-range-field span {
    color: var(--wp-muted);
}

.wp-range-field input[type="range"] {
    width: 100%;
    accent-color: var(--wp-green);
}

.wp-range-field input[data-wp-role="floatRange"] {
    accent-color: var(--wp-green);
    background: linear-gradient(90deg, #64e18f 0 7%, #8fd0ff 7% 15%, #ffcf66 15% 38%, #ff9a64 38% 45%, #ff6678 45% 100%);
}

.wp-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.wp-settings-dialog .wp-modal-actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, transparent, var(--wp-panel) 28%);
}

.wp-empty {
    display: grid;
    grid-column: 1 / -1;
    place-items: center;
    min-height: 160px;
    padding: 16px;
    border: 1px dashed var(--wp-line-strong);
    border-radius: 8px;
    color: var(--wp-muted);
    text-align: center;
}

.wp-loadout-empty {
    align-content: center;
    gap: 12px;
}

.wp-empty-add-button {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 8px;
    color: #172018;
    background: var(--wp-green);
    font-size: 14px;
    font-weight: 800;
    line-height: 16px;
    transition: background .16s ease, transform .16s ease;
}

.wp-empty-add-button:hover {
    color: #172018;
    background: #6df29a;
}

.wp-empty-add-button svg {
    width: 17px;
    height: 17px;
}

.wp-empty-add-button span {
    color: inherit !important;
}

.wp-toast-root {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10030;
    display: grid;
    gap: 8px;
}

.wp-toast {
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid var(--wp-line-strong);
    border-radius: 8px;
    color: var(--wp-text);
    background: #121722;
    box-shadow: var(--wp-shadow);
}

.wp-toast.is-collection-activated {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    min-width: 220px;
    padding: 18px 20px;
    border: 1px solid rgba(211, 177, 106, .16);
    border-radius: 14px;
    color: #d3b16a;
    background: #46362e;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.wp-toast.is-collection-activated .wp-toast-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 3px solid #d3b16a;
    border-radius: 50%;
}

.wp-toast.is-collection-activated .wp-toast-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.wp-toast.is-collection-activated .wp-toast-copy {
    display: grid;
    gap: 3px;
}

.wp-toast.is-collection-activated strong {
    color: #d3b16a;
    font-size: 16px;
    line-height: 18px;
}

.wp-toast.is-collection-activated small {
    color: #c7a66a;
    font-size: 12px;
    line-height: 16px;
}

.rarity_ancient_weapon {
    --rarity-color: #f15f75;
}

.rarity_legendary_weapon {
    --rarity-color: #d88cff;
}

.rarity_mythical_weapon {
    --rarity-color: #9b7dff;
}

.rarity_rare_weapon {
    --rarity-color: #71a7ff;
}

.rarity_uncommon_weapon {
    --rarity-color: #8fd0ff;
}

.rarity_gold_weapon,
.rarity_contraband_weapon {
    --rarity-color: #e4ae39;
}

@media (max-width: 1200px) {
    .wp-community-preview-grid {
        grid-template-columns: repeat(4, minmax(130px, 1fr));
    }

    .wp-community-presets {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .wp-topbar,
    .wp-collection-head,
    .wp-community-preview-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wp-workspace,
    .wp-community-layout,
    .wp-settings-layout {
        grid-template-columns: 1fr;
    }

    .wp-left-panel,
    .wp-community-sidebar {
        position: static;
    }

    .wp-left-screen {
        max-height: none;
    }

    .wp-collectibles-panel {
        border-right: 0;
        border-bottom: 1px solid var(--wp-line);
    }
}

@media (max-height: 940px) {
    .wp-settings-titlebar {
        padding: 12px 52px 10px 18px;
    }

    .wp-settings-titlebar h3 {
        font-size: 16px;
    }

    .wp-settings-layout {
        grid-template-columns: minmax(310px, 400px) minmax(0, 1fr);
    }

    .wp-collectibles-panel,
    .wp-skin-editor {
        gap: 10px;
        padding: 14px 18px;
    }

    .wp-editor-preview {
        --wp-editor-preview-width: min(600px, 96%);
        --wp-editor-preview-height: 178px;
        min-height: 194px;
        margin: 8px 0;
    }

    .wp-sticker-slots {
        gap: 8px;
        margin-bottom: 10px;
    }

    .wp-sticker-slots button {
        min-height: 58px;
    }

    .wp-sticker-slots img {
        height: 36px;
    }

    .wp-editor-controls {
        gap: 8px;
    }

    .wp-wear-row {
        margin: 6px 0;
        padding: 6px 8px;
    }

    .wp-float-panel {
        --wp-range-value-width: 82px;
        gap: 8px;
        margin-bottom: 10px;
    }

    .wp-wear-picker {
        gap: 6px;
        margin: 6px 0;
    }

    .wp-wear-picker .wp-wear-row label {
        min-width: 44px;
        height: 34px;
    }

    .wp-wear-picker input[data-wp-role="floatValue"] {
        width: 100%;
        min-height: 34px;
    }

    .wp-field,
    .wp-range-field {
        gap: 5px;
    }

    .wp-field input,
    .wp-range-field input[type="number"] {
        min-height: 34px;
    }

    .wp-collectible-card {
        min-height: 0;
        padding: 6px 5px;
    }

    .wp-collectible-card img,
    .wp-collectible-fallback {
        height: 48px;
    }

    .wp-pagination {
        min-height: 30px;
    }

    .wp-pagination button {
        min-height: 28px;
    }

    .wp-settings-dialog .wp-modal-actions {
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-height: 740px) {
    .wp-settings-layout {
        grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    }

    .wp-collectibles-panel,
    .wp-skin-editor {
        padding: 12px 14px;
    }

    .wp-collectible-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .wp-collectible-card {
        min-height: 0;
    }

    .wp-collectible-card img,
    .wp-collectible-fallback {
        height: 44px;
    }

    .wp-editor-preview {
        --wp-editor-preview-width: min(580px, 96%);
        --wp-editor-preview-height: 164px;
        min-height: 178px;
    }

    .wp-sticker-slots button {
        min-height: 54px;
    }

    .wp-sticker-slots img {
        height: 34px;
    }

    .wp-sticker-slots span {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

@media (max-height: 820px) {
    .wp-settings-titlebar {
        padding: 9px 48px 8px 16px;
    }

    .wp-settings-layout {
        grid-template-columns: minmax(290px, 370px) minmax(0, 1fr);
    }

    .wp-collectibles-panel,
    .wp-skin-editor {
        gap: 7px;
        padding: 10px 14px;
    }

    .wp-panel-head.compact h3,
    .wp-editor-head h3 {
        font-size: 15px;
        line-height: 18px;
    }

    .wp-editor-preview {
        --wp-editor-preview-width: min(560px, 96%);
        --wp-editor-preview-height: 156px;
        min-height: 170px;
        margin: 6px 0;
    }

    .wp-sticker-slots {
        gap: 6px;
        margin-bottom: 6px;
    }

    .wp-sticker-slots button {
        min-height: 46px;
    }

    .wp-sticker-slots img {
        height: 30px;
    }

    .wp-switch,
    .wp-field input,
    .wp-range-field input[type="number"] {
        min-height: 30px;
    }

    .wp-stattrak-counter-field {
        width: 72px;
    }

    .wp-switch span {
        width: 36px;
        height: 20px;
    }

    .wp-switch span::after {
        width: 14px;
        height: 14px;
    }

    .wp-switch input:checked + span::after {
        transform: translateX(16px);
    }

    .wp-wear-row {
        margin: 4px 0;
        padding: 5px 8px;
    }

    .wp-float-panel {
        --wp-range-label-width: 62px;
        --wp-range-value-width: 76px;
        gap: 5px;
        margin-bottom: 6px;
    }

    .wp-wear-picker .wp-wear-row {
        gap: 5px;
    }

    .wp-wear-picker .wp-wear-row label {
        min-width: 39px;
        height: 30px;
        font-size: 12px;
    }

    .wp-wear-picker input[data-wp-role="floatValue"] {
        width: 100%;
        min-height: 30px;
    }

    .wp-range-field {
        grid-template-columns: var(--wp-range-label-width) minmax(0, 1fr) var(--wp-range-value-width);
    }

    .wp-collectible-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .wp-collectible-card {
        min-height: 0;
    }

    .wp-collectible-card img,
    .wp-collectible-fallback {
        height: 44px;
    }

    .wp-settings-dialog .wp-modal-actions {
        margin-top: 5px;
        padding-top: 6px;
    }
}

@media (max-width: 720px) {
    .wp-skinchanger {
        padding: 10px;
    }

    .wp-view-tabs,
    .wp-head-actions {
        width: 100%;
    }

    .wp-view-tabs button,
    .wp-action-button,
    .wp-primary-button,
    .wp-secondary-button {
        flex: 1;
    }

    .wp-slot-palette,
    .wp-category-list,
    .wp-catalog-grid,
    .wp-community-preview-grid,
    .wp-collectible-grid,
    .wp-sticker-slots,
    .wp-editor-controls {
        grid-template-columns: 1fr 1fr;
    }

    .wp-range-field {
        grid-template-columns: 1fr;
    }

    .wp-modal {
        padding: 10px;
    }
}

/* Final Pride cascade */
.wp-skinchanger {
    --wp-panel: #2d241e;
    --wp-panel-2: #352820;
    --wp-panel-3: #3f2f26;
    --wp-line: rgba(255, 255, 255, .05);
    --wp-line-strong: rgba(211, 177, 106, .42);
    --wp-text: #fff;
    --wp-muted: #838383;
    --wp-green: #5be58b;
    --wp-gold: #d3b16a;
    max-width: 1366px;
    padding: 0;
    margin: 18px auto 28px;
}

.wp-skinchanger .wp-topbar {
    display: none !important;
}

.wp-view-panel {
    margin-top: 0;
}

.wp-workspace,
.wp-community-layout {
    grid-template-columns: 384px minmax(0, 974px);
    gap: 8px;
}

.wp-left-panel,
.wp-main-panel,
.wp-community-sidebar,
.wp-community-preview {
    border: 0;
    border-radius: 16px;
    background: transparent;
}

.wp-left-panel,
.wp-community-sidebar {
    overflow: visible;
}

.wp-aside-tabs {
    display: flex;
    gap: 8px;
    min-height: 67px;
    padding: 16px;
    border: 0;
    border-radius: 16px 16px 0 0;
    background: #3b2d25;
}

.wp-aside-tabs button {
    flex: 1 1 0;
    min-height: 35px;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 10px;
    color: #c79c5b;
    background: #3f2f26;
    font-size: 13px;
    font-weight: 700;
}

.wp-aside-tabs button svg {
    display: none;
}

.wp-aside-tabs button.is-active,
.wp-aside-tabs button:hover {
    color: #332820;
    background: #fff;
}

.wp-left-screen,
.wp-community-sidebar {
    gap: 8px;
    padding: 8px;
    border-radius: 0 0 16px 16px;
    background: #2d241e;
}

.wp-community-sidebar .wp-aside-tabs {
    margin: -8px -8px 8px;
}

.wp-left-screen[data-wp-left="collections"] .wp-panel-head,
.wp-left-screen[data-wp-left="categories"] .wp-panel-head > div,
.wp-left-screen[data-wp-left="categories"] .wp-search,
.wp-side-badge,
.wp-chip {
    display: none !important;
}

.wp-back-button {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    border-radius: 6px;
    color: #838383;
    background: rgba(255, 255, 255, .04);
}

.wp-create-collection {
    width: 100%;
    min-height: 52px;
    padding: 5px 6px;
    border: 1px dashed #d3b16a;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .02);
}

.wp-create-collection svg {
    width: 36px;
    height: 36px;
    padding: 9px;
    border-radius: 8px;
    color: #a9a09a;
    background: rgba(255, 255, 255, .06);
}

.wp-create-collection b,
.wp-collection-card strong {
    font-size: 14px;
    line-height: 20px;
}

.wp-create-collection small,
.wp-collection-card small,
.wp-collection-section-title {
    color: #838383;
    font-size: 12px;
}

.wp-collection-card {
    position: relative;
    min-height: 50px;
    padding: 5px 7px 5px 11px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .01);
    box-shadow: none;
}

.wp-collection-card:hover,
.wp-collection-card.is-active {
    background: rgba(255, 255, 255, .04);
}

.wp-collection-card.is-active strong {
    color: #d3b16a;
}

.wp-collection-thumbs {
    display: block;
    position: absolute;
    right: 25px;
    top: 50%;
    width: 92px;
    height: 44px;
    transform: translateY(-50%);
}

.wp-collection-thumbs img,
.wp-collection-thumbs i {
    width: 92px;
    height: 44px;
    object-fit: contain;
    background: transparent;
}

.wp-collection-dots {
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #d3b16a;
    transform: translateY(-50%);
}

.wp-search {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    color: #838383;
    background: rgba(255, 255, 255, .04);
}

.wp-category-browser {
    gap: 5px;
    max-height: 530px;
}

.wp-category-group {
    gap: 5px;
}

.wp-category-group-head h3 {
    color: #838383;
    font-size: 13px;
    font-weight: 500;
}

.wp-category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.wp-category-item {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 75px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.wp-category-item img,
.wp-category-fallback {
    width: 100%;
    height: 54px;
}

.wp-category-item span {
    display: none;
}

.wp-show-more {
    min-height: 75px;
    border: 0;
    border-radius: 8px;
    color: #d3b16a;
    background: rgba(255, 255, 255, .035);
}

.wp-main-panel {
    padding: 0;
}

.wp-collection-head {
    min-height: 67px;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    background: #3b2d25;
}

.wp-collection-head .wp-kicker {
    display: none;
}

.wp-collection-head h2 {
    color: #fff;
    font-size: 20px;
    line-height: 27px;
}

.wp-head-actions {
    gap: 8px;
}

.wp-action-button,
.wp-secondary-button {
    min-height: 35px;
    border-radius: 10px;
    color: #c79c5b;
    background: rgba(255, 255, 255, .03);
}

.wp-primary-button {
    min-height: 35px;
    border-radius: 10px;
    color: #332820;
    background: #fff;
}

.wp-loadout-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    align-items: stretch;
    margin-top: 0;
    padding: 8px;
    border-radius: 0 0 16px 16px;
    background: #2d241e;
}

.wp-loadout-card {
    position: relative;
    overflow: hidden;
    min-height: 208px;
    height: 208px;
    padding: 13px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .01)),
        color-mix(in srgb, var(--rarity-color, #eb4b4b) 14%, #2d241e);
}

.wp-loadout-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .34;
    pointer-events: none;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--rarity-color, #eb4b4b) 10%, transparent), color-mix(in srgb, var(--rarity-color, #eb4b4b) 18%, transparent)),
        radial-gradient(circle at 50% 112%, color-mix(in srgb, var(--rarity-color, #eb4b4b) 70%, transparent), transparent 58%);
}

.wp-loadout-card.is-target {
    border: 0;
    box-shadow: none;
}

.wp-loadout-card.is-selected {
    box-shadow: inset 0 0 0 1px rgba(211, 177, 106, .65);
}

.wp-loadout-card.is-menu-open {
    overflow: visible;
    z-index: 40;
}

.wp-loadout-card img.wp-loadout-image {
    position: absolute;
    z-index: 1;
    left: 13px;
    top: 20px;
    width: calc(100% - 26px);
    height: 114px;
    margin: 0;
    object-fit: contain;
}

.wp-loadout-details {
    position: absolute;
    z-index: 2;
    left: 13px;
    right: 54px;
    bottom: 12px;
    display: grid;
    gap: 1px;
    min-width: 0;
}

.wp-loadout-wear {
    color: #b2a69e;
    font-size: 12px;
    line-height: 16px;
}

.wp-loadout-type {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    color: #c79c5b !important;
    font-size: 13px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-loadout-name {
    overflow: hidden;
    color: var(--rarity-color, #eb4b4b);
    font-size: 13px;
    font-weight: 700;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wp-stattrak-badge,
.wp-loadout-type .wp-stattrak-badge {
    display: inline-grid;
    min-width: 18px;
    max-width: 44px;
    height: 14px;
    place-items: center;
    padding: 0 4px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 3px;
    color: #2d241e;
    background: #ff9f2a;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
}

.wp-loadout-rail {
    position: absolute;
    z-index: 9;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 7px;
    width: 32px;
    padding: 7px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.wp-loadout-rail .wp-loadout-rail-item {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: rgba(255, 255, 255, .36);
}

.wp-loadout-rail .wp-loadout-rail-item.has-item {
    color: rgba(255, 255, 255, .78);
}

.wp-loadout-rail .wp-loadout-rail-item > svg {
    width: 18px;
    height: 18px;
}

.wp-loadout-rail-preview {
    position: absolute;
    z-index: 12;
    right: calc(100% + 9px);
    top: 50%;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(54, 42, 34, .97);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity .14s ease, transform .14s ease;
}

.wp-loadout-rail-preview.is-stickers {
    top: auto;
    bottom: 0;
    grid-template-columns: repeat(2, 32px);
    width: auto;
    gap: 5px;
    padding: 6px;
    transform: translateX(6px);
}

.wp-loadout-rail-preview.is-keychain {
    width: 62px;
}

.wp-loadout-rail-preview i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .04);
    font-style: normal;
}

.wp-loadout-rail-preview.is-stickers i {
    width: 32px;
    height: 32px;
}

.wp-loadout-rail .wp-loadout-rail-preview img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.wp-loadout-rail .wp-loadout-rail-preview.is-stickers img {
    width: 27px;
    height: 27px;
}

.wp-loadout-rail-item:hover .wp-loadout-rail-preview,
.wp-loadout-rail-item:focus-within .wp-loadout-rail-preview {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.wp-loadout-rail-item:hover .wp-loadout-rail-preview.is-stickers,
.wp-loadout-rail-item:focus-within .wp-loadout-rail-preview.is-stickers {
    transform: translateX(0);
}

.wp-loadout-rail-item:not(.has-item) .wp-loadout-rail-preview {
    display: none;
}

.wp-card-menu-button {
    position: absolute;
    left: auto;
    right: 12px;
    top: 12px;
    bottom: auto;
    z-index: 12;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    color: #d3b16a;
    background: rgba(255, 255, 255, .08);
    opacity: 0;
    transition: opacity .16s ease, background .16s ease;
}

.wp-loadout-card:hover .wp-card-menu-button,
.wp-loadout-card.is-menu-open .wp-card-menu-button {
    opacity: 1;
}

.wp-card-context-menu {
    position: absolute;
    left: auto;
    right: 0;
    top: 42px;
    bottom: auto;
    z-index: 13;
    display: none;
    width: max-content;
    min-width: 166px;
    max-width: 188px;
    padding: 7px;
    border-radius: 8px;
    background: #2d241e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
}

.wp-loadout-card.is-menu-open .wp-card-context-menu {
    display: grid;
}

.wp-card-context-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 7px;
    border-radius: 6px;
    color: #a9a09a;
    background: transparent;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.wp-card-context-menu button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.wp-card-context-menu svg {
    width: 17px;
    height: 17px;
}

.wp-select-chip {
    position: absolute;
    left: 12px !important;
    top: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 15;
    display: grid;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    place-items: center;
    color: #332820;
    background: rgba(255, 255, 255, .1);
    pointer-events: auto;
}

.wp-loadout-card.is-selected .wp-select-chip {
    background: #d3b16a;
}

.wp-loadout-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: rgba(18, 14, 12, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease;
}

.wp-loadout-card:hover .wp-loadout-overlay {
    opacity: 1;
    pointer-events: auto;
}

.wp-loadout-card:has(.wp-loadout-rail-item:hover) .wp-loadout-overlay,
.wp-loadout-card:has(.wp-loadout-rail-item:focus-within) .wp-loadout-overlay {
    opacity: 0;
    pointer-events: none;
}

.wp-loadout-overlay button {
    display: inline-flex;
    width: auto;
    max-width: calc(100% - 42px);
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 8px;
    color: #172018;
    background: #5be58b;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    font-size: 14px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.wp-loadout-overlay button:hover {
    color: #172018;
    background: #6df29a;
}

.wp-loadout-overlay button svg {
    width: 17px;
    height: 17px;
}

.wp-loadout-overlay button span {
    display: inline;
}

.wp-loadout-card.is-placeholder {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .09);
    color: #838383;
    background: rgba(255, 255, 255, .012);
}

.wp-loadout-card.is-placeholder::before {
    display: none;
}

.wp-loadout-card.is-placeholder img.wp-loadout-image {
    top: 42px;
    height: 78px;
    filter: grayscale(1) brightness(.55);
    opacity: .5;
}

.wp-loadout-card.is-placeholder strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    color: #838383;
    font-size: 14px;
    text-align: center;
}

.rarity_ancient_weapon,
.rarity_ancient {
    --rarity-color: #eb4b4b;
}

.rarity_legendary_weapon {
    --rarity-color: #d32ce6;
}

.rarity_mythical_weapon {
    --rarity-color: #8847ff;
}

.rarity_rare_weapon {
    --rarity-color: #4b69ff;
}

.rarity_uncommon_weapon {
    --rarity-color: #5e98d9;
}

.rarity_gold_weapon,
.rarity_contraband_weapon {
    --rarity-color: #e4ae39;
}

.wp-head-actions [data-wp-role="installButton"] {
    display: none !important;
}

.wp-head-actions [data-wp-role="publishButton"] {
    order: 1;
    display: none !important;
}

.wp-skinchanger.is-preview-mode .wp-head-actions [data-wp-role="publishButton"] {
    display: inline-flex !important;
}

.wp-head-actions [data-wp-open="editCollectionName"] {
    order: 2;
}

.wp-head-actions [data-wp-role="previewToggle"] {
    order: 3;
}

.wp-head-actions [data-wp-action="clear-loadout"] {
    order: 4;
}

.wp-head-actions [data-wp-role="selectedDelete"] {
    order: 5;
}

.wp-head-actions [data-wp-role="publishButton"],
.wp-head-actions [data-wp-role="previewToggle"],
.wp-head-actions [data-wp-action="clear-loadout"] {
    color: #c79c5b;
    background: rgba(255, 255, 255, .025);
}

.wp-head-actions [data-wp-role="publishButton"] svg,
.wp-head-actions [data-wp-role="previewToggle"] svg,
.wp-head-actions [data-wp-action="clear-loadout"] svg {
    color: #d3b16a;
}

.wp-head-actions [data-wp-role="publishButton"]:hover,
.wp-head-actions [data-wp-role="previewToggle"]:hover,
.wp-head-actions [data-wp-action="clear-loadout"]:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.wp-head-actions .wp-action-button.wp-danger {
    color: #c79c5b;
    background: rgba(255, 255, 255, .025);
}

.wp-head-actions .wp-action-button.wp-danger svg {
    color: #d3b16a;
}

.wp-head-actions .wp-action-button span,
.wp-head-actions [data-wp-role="publishLabel"],
.wp-head-actions [data-wp-role="previewToggleLabel"] {
    color: inherit !important;
}

.wp-head-actions .wp-action-button.wp-danger:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.wp-collection-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wp-title-edit-button {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    place-items: center;
    padding: 0;
    border-radius: 10px;
    color: #c79c5b;
    background: rgba(255, 255, 255, .035);
    font-size: 0;
}

.wp-title-edit-button svg {
    width: 15px;
    height: 15px;
    margin: 0;
}

.wp-collection-card {
    cursor: pointer;
}

.wp-collection-dots {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.wp-collection-context-menu {
    position: absolute;
    z-index: 50;
    right: -238px;
    top: -64px;
    display: none;
    width: 258px;
    padding: 10px;
    border-radius: 12px;
    opacity: 1 !important;
    isolation: isolate;
    background: #332820 !important;
    background-color: #332820 !important;
    backdrop-filter: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
}

.wp-collection-context-menu::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: #332820;
}

.wp-collection-card.is-menu-open .wp-collection-context-menu {
    display: grid;
    gap: 2px;
}

.wp-collection-context-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #8f8782;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.wp-collection-context-menu button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.wp-collection-context-menu svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: currentColor;
}

.wp-workspace {
    position: relative;
    overflow: visible;
    align-items: start;
}

.wp-left-panel {
    position: sticky;
    top: 12px;
    align-self: start;
    z-index: 100;
    overflow: visible !important;
}

.wp-main-panel {
    position: relative;
    z-index: 1;
}

.wp-collection-card {
    z-index: 1;
}

.wp-collection-card.is-menu-open {
    z-index: 200;
}

.wp-collection-context-menu {
    z-index: 1000 !important;
    pointer-events: auto;
}

@media (max-width: 980px) {
    .wp-workspace,
    .wp-community-layout {
        grid-template-columns: 1fr;
    }

    .wp-left-panel {
        position: static;
    }

    .wp-loadout-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .wp-loadout-grid,
    .wp-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wp-left-screen[data-wp-left="catalog"] {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
}

.wp-left-screen[data-wp-left="catalog"].is-hidden {
    display: none;
}

.wp-left-screen[data-wp-left="categories"] .wp-panel-head {
    display: none !important;
}

.wp-skinchanger.is-category-drilldown .wp-left-screen[data-wp-left="categories"] .wp-panel-head {
    display: grid !important;
    grid-template-columns: 1fr;
    min-height: 36px;
    padding: 0;
}

.wp-skinchanger.is-category-drilldown .wp-left-screen[data-wp-left="categories"] .wp-panel-head > div {
    display: none !important;
}

.wp-skinchanger.is-category-drilldown .wp-left-screen[data-wp-left="categories"] .wp-back-button {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    border-radius: 8px;
    color: #9b918a;
    background: rgba(255, 255, 255, .04);
}

.wp-skinchanger.is-category-drilldown .wp-left-screen[data-wp-left="categories"] .wp-back-button:hover {
    color: #d3b16a;
    background: rgba(211, 177, 106, .08);
}

.wp-left-screen[data-wp-left="catalog"] .wp-panel-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0;
}

.wp-left-screen[data-wp-left="catalog"] .wp-back-button {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
}

.wp-left-screen[data-wp-left="catalog"] .wp-back-button svg {
    width: 18px;
    height: 18px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-panel-head > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: none;
    text-align: left;
}

.wp-left-screen[data-wp-left="catalog"] .wp-kicker {
    margin: 0 0 2px;
    color: #8f8782;
    font-size: 12px;
    line-height: 14px;
}

.wp-left-screen[data-wp-left="catalog"] h2 {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wp-left-screen[data-wp-left="catalog"] .wp-rarity-row,
.wp-settings-dialog .wp-rarity-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(54px, 1.2fr) repeat(6, minmax(34px, 1fr));
    gap: 5px;
    width: 100%;
    overflow: hidden;
}

.wp-skinchanger.is-gold-only-catalog .wp-left-screen[data-wp-left="catalog"] .wp-rarity-row {
    display: none;
}

.wp-left-screen[data-wp-left="catalog"] .wp-rarity-row button,
.wp-settings-dialog .wp-rarity-row button {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    padding: 0 4px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-rarity-icon-button,
.wp-settings-dialog .wp-rarity-icon-button {
    width: 100%;
}

.wp-left-screen[data-wp-left="catalog"] .wp-catalog-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    min-height: 0;
    margin-top: 0;
    padding-top: 4px;
    padding-right: 3px;
    overflow: auto;
}

.wp-left-screen[data-wp-left="catalog"] .wp-catalog-card {
    min-height: 116px;
    padding: 8px;
    border-radius: 8px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-catalog-card img {
    height: 55px;
    margin-bottom: 6px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-catalog-card strong {
    font-size: 12px;
    line-height: 15px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-catalog-card span {
    font-size: 11px;
    line-height: 14px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-card-add {
    right: 6px;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.wp-left-screen[data-wp-left="catalog"] .wp-card-add svg {
    width: 16px;
    height: 16px;
}
