/*applies the shared bidbash page styling */

html {
    min-width: 1200px;
    zoom: 0.75;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 1200px;
    padding-bottom: 32px;
    margin: 0;

    font-family: Arial, sans-serif;

    background: #F3EAFB;
    color: #24202A;
}

a {
    color: inherit;
    text-decoration: none;
}

/*keeps the bidbash header on one horizontal line */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: white;
    border-bottom: 1px solid #ddd;
}

/*keeps the bidbash header full-width */

.topbar {
    width: 100%;
    min-height: 68px;

    margin: 0;
    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 24px;

    white-space: nowrap;
}

/*keeps the menu button and branding on the left */

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;

    color: #8E45DD;

    text-decoration: none;
}

.logo-image {
    display: block;

    width: auto;
    height: 60px;
}

.sidebar-toggle {
    padding: 6px;

    border: 0;

    background: transparent;

    font-size: 24px;

    cursor: pointer;
}

/*pushes navigation and account controls to the right */

.header-right {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

/*groups the primary navigation links */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;

    flex: none;
}

.main-nav a {
    white-space: nowrap;
}

/*separates account controls from primary navigation */

.account-nav {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-left: 22px;

    border-left: 1px solid #D8D3DC;

    flex-shrink: 0;
}

.account-status {
    font-size: 14px;
}

/*styles the login navigation button */

.login-button {
    padding: 10px 16px;

    border: 1px solid #8E45DD;
    border-radius: 8px;

    background: white;
    color: #8E45DD;

    font-weight: 500;
}

/*highlights the login navigation button */

.login-button:hover {
    background: #F3EAFB;
}

.button-link {
    padding: 10px 16px;

    background: #8E45DD;
    color: white;

    border-radius: 8px;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;

    border: 0;

    background: transparent;
    color: #8E45DD;

    font: inherit;

    cursor: pointer;
}

/*adjusts the global header on smaller displays */

@media (max-width: 900px) {
    .topbar {
        padding: 0 14px;
        gap: 14px;
    }

    .header-right {
        gap: 12px;
    }

    .main-nav {
        gap: 12px;
    }

    .account-nav {
        gap: 10px;
        padding-left: 12px;
    }

    .account-status {
        display: none;
    }
}

/*styles the main page area and allows sidebar push movement */

.page-content {
    width: 100%;
    max-width: none;

    min-height: calc(100vh - 68px);

    margin: 0;
    padding: 32px 0 0px;

    background: #F3EAFB;

    transition:
        margin-left 0.25s ease,
        width 0.25s ease;
}

body.sidebar-open .page-content {
    width: calc(100% - 320px);

    margin-left: 320px;
}

/*removes outer page padding only on auction detail pages */

.page-content:has(.auction-page) {
    padding-top: 0;
    padding-bottom: 0;
}

/*styles shared buttons */

.primary-button,
.secondary-button {
    display: inline-block;

    margin-top: 12px;
    padding: 10px 16px;

    border-radius: 8px;
}

.primary-button {
    background: #8E45DD;
    color: white;
}

.secondary-button {
    background: #24202A;
    color: white;
}

/*styles auction sections and cards */

.auction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.auction-card {
    padding: 16px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 12px;
}

.auction-card-image {
    width: 260px;
    height: 180px;

    margin: 0 auto 14px;

    overflow: hidden;

    background: #eee;

    border-radius: 8px;
}

.auction-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.image-placeholder {
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    background: #eee;

    border-radius: 8px;
}

/*adjusts auction cards on smaller displays */

@media (max-width: 800px) {
    .auction-grid {
        grid-template-columns: 1fr;
    }
}

/*styles the browse auctions header */

.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;

    margin-bottom: 32px;
}

.browse-heading h1 {
    margin-bottom: 8px;
}

.browse-search {
    display: flex;
    gap: 8px;
}

.browse-search input {
    min-width: 260px;

    padding: 10px 12px;

    border: 1px solid #ccc;
    border-radius: 8px;
}

.browse-search button,
.filter-button {
    padding: 10px 16px;

    border: 0;
    border-radius: 8px;

    background: #8E45DD;
    color: white;

    cursor: pointer;
}

/*adds spacing around browse page content */

.browse-page {
    display: block;

    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
}

.browse-results {
    width: 100%;
}

.browse-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}

/*sizes homepage carousel images*/

.auction-carousel .auction-card-image {
    width: 248px;
    height: 180px;

    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #eee;

    border-radius: 8px;
}

.auction-carousel .auction-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/*keeps browse auctions in a three-column grid*/

.browse-page .auction-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/*styles browse auction cards*/

.browse-page .auction-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 16px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 12px;

    overflow: hidden;
}

/*keeps browse product images compact*/

.browse-page .auction-card-image {
    width: 100%;
    height: 180px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #eee;

    border-radius: 8px;
}

/*fits browse images inside the fixed image area*/

.browse-page .auction-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/*lets browse card content fill the remaining space*/

.browse-page .auction-card-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

/*keeps browse titles contained*/

.browse-page .auction-card-content h2 {
    margin: 0 0 12px;

    overflow-wrap: anywhere;
}

/*spaces browse auction information*/

.browse-page .auction-card-content p {
    margin: 5px 0;
}

/*keeps the auction button at the bottom*/

.browse-page .auction-card-content .secondary-button {
    align-self: flex-start;

    margin-top: auto;
}

.filters-panel {
    align-self: start;

    padding: 20px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-bottom: 18px;
}

.filter-group select,
.filter-group input {
    padding: 9px;

    border: 1px solid #ccc;
    border-radius: 7px;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.results-toolbar select {
    padding: 9px;

    border: 1px solid #ccc;
    border-radius: 7px;
}

/*adjusts the browse page on smaller displays */

@media (max-width: 850px) {
    .browse-header {
        flex-direction: column;
        align-items: stretch;
    }

    .browse-layout {
        grid-template-columns: 1fr;
    }

    .browse-search input {
        min-width: 0;
        width: 100%;
    }
}

/*uses the available viewport space beneath the global navigation */

.auction-page {
    width: 100%;
    max-width: none;

    min-height: calc(100vh - 68px);

    margin: 0;
    padding: 20px 24px 24px;
}

/*uses the main width for the product image and auction information */

.auction-main {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    gap: 40px;

    align-items: stretch;
}

/*prevents auction columns from overflowing */

.auction-image-panel,
.auction-info {
    min-width: 0;
}

/*keeps the product image large */

.image-placeholder.large {
    width: 100%;
    min-height: 520px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

/*styles the product and auction information */

.auction-category {
    margin: 0 0 8px;

    color: #666;
}

.auction-info h1 {
    margin: 0 0 20px;
}

.auction-image-panel {
    width: 100%;
    height: 520px;

    overflow: hidden;
}

.auction-product-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.product-meta {
    margin-bottom: 20px;
}

.product-meta p {
    margin: 6px 0;
}

.product-description {
    margin-bottom: 28px;

    line-height: 1.6;
}

/*groups the current bid minimum bid and remaining time */

.auction-status-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;

    margin-bottom: 24px;
}

.status-item {
    min-width: 0;

    padding: 16px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 10px;
}

.status-item .label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    color: #666;
}

.status-item strong {
    display: block;

    font-size: 16px;
}

/*styles the bid entry panel */

.bid-panel {
    margin-bottom: 20px;
    padding: 20px;

    background: #DEC9F4;

    border-radius: 12px;
}

.bid-panel label {
    display: block;

    margin-bottom: 10px;

    font-size: 16px;
    font-weight: 600;
}

.bid-help {
    margin: 12px 0 0;

    font-size: 14px;
    line-height: 1.4;
}

/*styles the current user's auction status */

.auction-message {
    padding: 14px 16px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 10px;
}

.auction-message p {
    margin: 0;
}

/*aligns supporting auction information with the main columns */

.auction-support {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    gap: 40px;

    margin-top: 30px;
}

/*stacks delivery and returns */

.auction-support-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auction-activity-card {
    height: 100%;
}

/*styles supporting auction cards */

.info-card {
    padding: 22px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 12px;
}

.info-card h2 {
    margin-top: 0;
}

/*styles bid controls */

.bid-input-row {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;
}

.bid-input-row input {
    min-width: 0;
    min-height: 46px;

    flex: 1;

    padding: 11px 14px;

    border: 1px solid #D8D3DC;
    border-radius: 10px;

    background: white;
    color: #24202A;

    font: inherit;
    font-size: 16px;

    outline: none;
}

.bid-input-row input:focus {
    border-color: #8E45DD;

    box-shadow:
        0 0 0 3px
        rgba(142, 69, 221, 0.14);
}

.bid-input-row .primary-button {
    min-height: 46px;

    margin-top: 0;
    padding: 0 20px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;
}

/*adjusts auction layout at medium widths */

@media (max-width: 1050px) {
    .auction-main,
    .auction-support {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .auction-page {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/*moves auction information below the image */

@media (max-width: 800px) {
    .auction-main {
        grid-template-columns: 1fr;
    }

    .image-placeholder.large {
        min-height: 340px;
    }

    .auction-support {
        grid-template-columns: 1fr;
    }

    .auction-activity-card {
        height: auto;
    }
}

/*adjusts auction controls on smaller displays */

@media (max-width: 650px) {
    .auction-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .auction-status-panel {
        grid-template-columns: 1fr;
    }

    .bid-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bid-input-row .primary-button {
        width: 100%;
    }
}

/*styles the modal background */

.modal-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(
            36,
            32,
            42,
            0.6
        );

    z-index: 1000;
}

.modal-overlay[hidden] {
    display: none;
}

/*styles modal windows */

.modal-card {
    width: 100%;
    max-width: 480px;

    padding: 28px;

    background: white;

    border-radius: 14px;
}

.modal-card h2 {
    margin-top: 0;
}

.modal-card p {
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 24px;
}

/*hides inactive modal content*/

.modal-actions[hidden],
.bid-confirmation-summary[hidden],
.bid-confirmation-note[hidden] {
    display: none !important;
}

.modal-actions button {
    border: 0;

    cursor: pointer;
}

/*sizes the create listing overlay */

.listing-modal-card {
    width: min(1100px, calc(100vw - 80px));
    max-width: 1100px;

    max-height: calc(100vh - 80px);

    padding: 24px 28px;

    overflow-y: auto;
}

/*aligns the create listing overlay heading */

.listing-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.listing-modal-header h2 {
    margin: 0 0 6px;
}

.listing-modal-header p {
    margin: 0;

    color: #666;
}

/*styles the create listing close control */

.modal-close {
    border: 0;

    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

/*hides inactive elements*/

[hidden] {
    display: none !important;
}

/*styles bid result content*/

.bid-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding: 18px 0 8px;

    text-align: center;
}

/*styles bid result detail*/

.bid-result-detail {
    margin: 0;

    font-size: 1.05rem;
    font-weight: 600;
}

/*styles bid result highlight*/

.bid-result-highlight {
    width: 100%;

    padding: 16px 20px;

    border: 1px solid currentColor;
    border-radius: 4px;

    font-size: 1.15rem;
    font-weight: 800;

    text-align: center;
}

/*centres bid result feedback*/

.bid-modal-card.bid-accepted,
.bid-modal-card.bid-rejected,
.bid-modal-card.bid-outbid {
    text-align: center;
}

/*emphasises bid result headings*/

.bid-modal-card.bid-accepted #bid-modal-title,
.bid-modal-card.bid-rejected #bid-modal-title,
.bid-modal-card.bid-outbid #bid-modal-title {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

/*styles accepted bid feedback*/

.bid-modal-card.bid-accepted #bid-modal-title {
    color: #8dde73;
}

/*styles rejected bid feedback*/

.bid-modal-card.bid-rejected #bid-modal-title {
    color: #ff858e;
}

/*styles outbid feedback*/

.bid-modal-card.bid-outbid #bid-modal-title {
    color: #ffb466;
}

/*centres bid result actions*/

#bid-result-actions {
    justify-content: center;
}

/*limits bid result button width*/

#bid-result-actions .primary-button {
    min-width: 180px;
}

/*styles the create listing form */

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 9px 11px;

    border: 1px solid #bbb;
    border-radius: 8px;

    font: inherit;
}

.form-group textarea {
    min-height: 80px;
    max-height: 110px;

    resize: vertical;
}

.listing-image-placeholder {
    padding: 24px;

    background: #F5F3F0;
    color: #666;

    border: 1px dashed #aaa;
    border-radius: 8px;
}

.form-message {
    padding: 12px 14px;

    border-radius: 8px;
}

.form-error {
    background: #FBE7E7;
    color: #8B2929;
}

.form-success {
    background: #E7F6EC;
    color: #236B3A;
}

.listing-modal-card .modal-actions {
    margin-top: 4px;
}

/*adjusts the create listing form on smaller displays */

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .listing-modal-card {
        max-height:
            calc(
                100vh -
                40px
            );
    }
}

/*keeps shared purple dashboard headers full-width */

.dashboard-top {
    width: 100%;

    margin: -32px 0 34px;
    padding: 30px 24px 0;

    position: sticky;
    top: 68px;
    z-index: 800;

    background: #8E45DD;
    color: white;

    border-radius: 0;
}

/*styles shared dashboard headings */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    margin-bottom: 24px;
}

.dashboard-heading h1 {
    margin: 0 0 6px;

    letter-spacing: 15px;
    font-weight: 900;

    color: white;
}

.dashboard-heading p {
    margin: 0;

    font-weight: 200;

    color:
        rgba(
            255,
            255,
            255,
            0.82
        );
}

/*fills decorative header images */

.header-image {
    display: block;

    margin: 0;
    padding: 0;

    border: 0;
}

/*styles the global auction search */

.header-search {
    flex: 1;

    min-width: 240px;
    max-width: 620px;

    display: flex;
    align-items: center;

    margin: 0 12px;
}

/*styles the global search input */

.header-search-input {
    width: 100%;
    min-width: 0;
    height: 42px;

    padding: 0 14px;

    border: 1px solid #D8D3DC;
    border-right: 0;
    border-radius: 8px 0 0 8px;

    background: #F7F4F9;
    color: #24202A;

    font: inherit;

    outline: none;
}

/*highlights the global search input */

.header-search-input:focus {
    border-color: #8E45DD;

    box-shadow:
        0 0 0 3px
        rgba(142, 69, 221, 0.12);
}

/*styles the global search button */

.header-search-button {
    height: 42px;

    padding: 0 18px;

    border: 1px solid #8E45DD;
    border-radius: 0 8px 8px 0;

    background: #8E45DD;
    color: white;

    font: inherit;

    cursor: pointer;
}

/*darkens the global search */

body.dark-mode .header-search-input {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

body.dark-mode .header-search-input::placeholder {
    color: #918897;
}

body.dark-mode .header-search-button {
    background: #775B83;

    border-color: #775B83;
}

/*styles dashboard header buttons */

.dashboard-top .primary-button {
    background: white;
    color: #8E45DD;
}

.dashboard-top .primary-button:hover {
    background: #F5F3F0;
}

/*styles dashboard tabs */

.dashboard-tabs {
    display: flex;
    align-items: center;
    gap: 34px;

    margin: 0;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            0.28
        );
}

.dashboard-tab {
    position: relative;

    padding: 12px 0 14px;

    border: 0;

    background: transparent;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font: inherit;
    font-size: 16px;

    cursor: pointer;
}

.dashboard-tab:hover {
    color: white;
}

.dashboard-tab.active {
    color: white;

    font-weight: 600;
}

.dashboard-tab.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 3px;

    background: white;

    border-radius: 3px 3px 0 0;
}

/*creates the homepage-only purple header image layout */

.home-top {
    width: 100%;

    margin: -32px 0 32px;
    padding: 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        220px;

    align-items: stretch;

    overflow: hidden;
}

/*keeps homepage header content in the left section */

.home-top .dashboard-header {
    min-width: 0;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 28px 24px 24px;
}

/*keeps the homepage image flush to the right */

.home-top .dashboard-visual {
    width: 220px;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}

/*fills the homepage header image section */

.home-top .header-image {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

/*restricts the listings header height */

.listings-top {
    height: 180px;

    padding: 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: stretch;

    overflow: hidden;
}

/*groups listings content inside the header */

.listings-header-content {
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
}

/*spaces the listings heading inside the fixed header */

.listings-top .dashboard-heading {
    min-width: 0;

    padding: 20px 24px 8px;
}

/*keeps the create listing button beneath the subtitle */

.listings-top .dashboard-heading .primary-button {
    margin-top: 10px;
}

/*keeps listing tabs attached to the bottom */

.listings-top .dashboard-tabs {
    margin-top: auto;
    padding: 0 24px;
}

/*matches the listings image to the purple header height */

.listings-header-image {
    grid-column: 2;
    grid-row: 1;

    height: 180px;
    width: auto;

    max-width: none;

    align-self: stretch;
    justify-self: end;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: contain;
    object-position: right center;
}

/*restricts the bids header height */

.bids-top {
    height: 180px;

    padding: 0;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: stretch;

    overflow: hidden;
}

/*groups bids content inside the header */

.bids-header-content {
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
}

/*spaces the bids heading inside the fixed header */

.bids-top .dashboard-heading {
    min-width: 0;

    padding: 20px 24px 8px;
}

/*keeps bid tabs attached to the bottom */

.bids-top .dashboard-tabs {
    margin-top: auto;
    padding: 0 24px;
}

/*matches the bids image to the purple header height */

.bids-header-image {
    grid-column: 2;
    grid-row: 1;

    height: 180px;
    width: auto;

    max-width: none;

    align-self: stretch;
    justify-self: end;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: contain;
    object-position: right center;
}

/*spaces dashboard content beneath the header */

.dashboard-section {
    width: 100%;
    max-width: 100%;

    margin-bottom: 48px;
    padding: 0 24px;

    box-sizing: border-box;

    overflow: hidden;
}

.dashboard-count {
    min-width: 30px;

    padding: 5px 9px;

    background: #DEC9F4;

    border-radius: 20px;

    text-align: center;
    font-size: 14px;
}

.dashboard-list {
    width: 100%;
    max-width: 100%;

    display: flex;
    flex-direction: column;
    gap: 14px;

    box-sizing: border-box;
}

/*styles individual dashboard entries */

.dashboard-item {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 24px;

    padding: 16px;

    background: white;

    border: 1px solid #D8D3DC;
    border-radius: 12px;

    box-sizing: border-box;

    overflow: hidden;
}

/*styles dashboard product thumbnails */

.dashboard-image {
    width: 180px;
    height: 140px;

    flex: 0 0 180px;

    overflow: hidden;

    border-radius: 8px;
}

.dashboard-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.dashboard-item-content {
    min-width: 0;

    flex: 1 1 auto;

    overflow: hidden;
}

.dashboard-item-content h3 {
    max-width: 100%;

    margin-top: 0;

    overflow-wrap: anywhere;
}

.dashboard-item-content p {
    max-width: 100%;

    overflow-wrap: anywhere;
}

.dashboard-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-actions {
    flex: 0 0 180px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    box-sizing: border-box;
}

.dashboard-actions .secondary-button,
.dashboard-actions .dashboard-action-button {
    width: 100%;
    min-height: 44px;

    margin-top: 0;
    padding: 10px 14px;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #8E45DD;
    border-radius: 8px;

    text-align: center;
    text-decoration: none;
}

.dashboard-action-button {
    background: white;
    color: #8E45DD;

    cursor: pointer;
}

.dashboard-actions .secondary-button:hover,
.dashboard-actions .dashboard-action-button:hover {
    background: #8E45DD;
    color: white;
}

.dashboard-empty {
    padding: 24px;

    background: white;
    color: #666;

    border: 1px dashed #bbb;
    border-radius: 12px;
}

/*aligns auction titles with bidding status */

.dashboard-item-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 10px;
}

.dashboard-item-title h3 {
    margin: 0;
}

/*styles bidder status labels */

.bid-status {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
}

.bid-status-winning {
    background: #E7F6EC;
    color: #236B3A;
}

.bid-status-outbid {
    background: #FFF3D6;
    color: #775800;
}

.bid-status-lost {
    background: #FBE7E7;
    color: #8B2929;
}

/*adjusts dashboard entries on smaller displays */

@media (max-width: 750px) {
    .dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-item {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-image {
        width: 160px;
        max-width: 160px;

        flex-basis: 160px;
    }

    .dashboard-actions {
        flex: none;

        flex-direction: row;
    }

    .dashboard-actions .secondary-button,
    .dashboard-actions .dashboard-action-button {
        flex: 1;
    }
}

/*styles browse controls inside the purple header */

.browse-top {
    padding-bottom: 24px;
}

.browse-header-controls {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;
}

.browse-header-controls input,
.browse-header-controls select {
    min-height: 42px;

    padding: 10px 14px;

    border: 0;
    border-radius: 8px;

    font: inherit;
}

.browse-header-controls input {
    flex: 1;

    min-width: 220px;
}

.browse-header-controls select {
    min-width: 180px;
}

/*adjusts browse header controls */

@media (max-width: 700px) {
    .browse-header-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .browse-header-controls input,
    .browse-header-controls select {
        width: 100%;
    }
}

/*keeps a transparent click area beside the sidebar */
/*keeps the sidebar overlay between navigation and footer */

.sidebar-overlay {
    position: fixed;

    top: 68px;
    right: 0;
    bottom: 58px;
    left: 320px;

    background: transparent;

    z-index: 850;
}

.sidebar-overlay[hidden] {
    display: none;
}

/*creates the slide-out navigation sidebar */
/*fixes the filter sidebar between navigation and footer */

.sidebar-drawer {
    position: fixed;

    top: 68px;
    bottom: 58px;
    left: 0;

    width: 320px;
    max-width: 88vw;

    padding: 24px;

    background: white;

    box-shadow:
        8px 0 24px
        rgba(36, 32, 42, 0.18);

    overflow-y: auto;

    transform: translateX(-100%);

    transition:
        transform 0.25s ease;

    z-index: 950;
}

.sidebar-drawer.open {
    transform: translateX(0);
}

/*styles the top of the sidebar */

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;
}

.sidebar-header h2 {
    margin: 0;
}

.sidebar-close {
    border: 0;

    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

/*styles browse filters inside the sidebar */

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-filters h2 {
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    width: 100%;
    min-height: 42px;

    padding: 9px 10px;

    border: 1px solid #ccc;
    border-radius: 7px;

    font: inherit;
}

.price-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/*stacks sidebar discovery links */

.sidebar-section {
    margin-bottom: 26px;
}

.sidebar-section h3 {
    margin: 0 0 10px;
}

.sidebar-discovery {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-discovery a {
    display: block;

    padding: 9px 10px;

    border-radius: 7px;

    color: #24202A;
}

.sidebar-discovery a:hover {
    background: #F3EAFB;
    color: #8E45DD;
}

/*keeps the sidebar as an overlay on smaller displays */

@media (max-width: 700px) {
    body.sidebar-open .page-content {
        width: 100%;

        margin-left: 0;
    }

    .sidebar-overlay {
        inset: 68px 0 0;

        background:
            rgba(
                36,
                32,
                42,
                0.35
            );
    }
}

/*lays out the homepage hero using natural content height */

.hero-section {
    width: calc(100% - 48px);

    display: grid;
    grid-template-columns:
        360px
        minmax(0, 1fr);

    align-items: stretch;
    gap: 0;

    margin: 0 24px 48px;
    padding: 0;

    background: #DEC9F4;

    border-radius: 0;

    overflow: hidden;
}

/*keeps the full hero illustration visible */

.hero-visual {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    display: flex;
    align-items: stretch;
    justify-content: flex-start;

    margin: 0;
    padding: 0;

    overflow: hidden;
}

/*fits the full image without cropping */

.hero-image {
    display: block;

    width: 100%;
    height: auto;

    align-self: stretch;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left center;
}

/*lets the text determine the hero height when needed */

.hero-copy {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;

    padding: 48px 56px;
}

/*styles the hero heading */

.hero-copy h2 {
    width: 100%;

    margin: 0 0 18px;

    font-size: 36px;

    color: #24202A;
}

/*lets the description use the available space */

.hero-copy p {
    width: 100%;
    max-width: none;

    margin: 0 0 30px;

    line-height: 1.6;
}

/*spaces the hero actions */

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/*removes shared button margins inside the hero */

.hero-actions .primary-button,
.hero-actions .secondary-button {
    margin-top: 0;
}

/*keeps the hero image left when the browser becomes narrower */
/*adjusts the hero at narrower desktop widths */

@media (max-width: 1400px) {
    .hero-section {
        grid-template-columns:
            340px
            minmax(0, 1fr);
    }

    .hero-copy {
        padding: 38px 44px;
    }

    .hero-copy h2 {
        font-size: 32px;
        font-weight: 850;
        letter-spacing: 5px;
    }
}

/*spaces homepage auction sections */
/*wraps each homepage auction section inside the purple bubble */

.home-section {
    width: calc(100% - 48px);

    margin: 36px 24px 48px;
    padding: 24px;

    background: #ae90d4;

    border-radius: 18px;
}

/*aligns homepage section headings */
/*aligns homepage section controls with the title row */
/*spaces each homepage auction section */
/*keeps the heading area transparent inside the section */

.home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 0;

    background: transparent;

    border-radius: 0;
}

/*wraps only the homepage heading inside the rounded bubble */

.home-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    background: #ae90d4;

    border-radius: 18px;
}

/*lets the homepage title area use the available space */

.home-section-title {
    flex: 1;
    min-width: 0;
}

/*styles the homepage title */

.home-section-title h2 {
    margin: 0 0 12px;
    padding-top: 6px;
    padding-left: 12px;

    color: black;

    font-weight: 850;
}

/*styles the homepage subtitle */

.home-section-title p {
    margin: 0;
    padding-bottom: 12px;

    color: black;

    font-style: italic;
}

/*keeps homepage controls aligned with the heading */

.home-section-actions {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 0;
    padding: 8px 12px;

    background: #F3EAFB;

    border-radius: 999px;
}

.home-view-all {
    margin-right: 8px;

    color: #8E45DD;

    font-weight: 500;
}

/*keeps the carousel outside the heading bubble */

.auction-carousel {
    display: flex;
    gap: 20px;

    padding: 0 0 16px;

    background: transparent;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
}

.carousel-card {
    flex: 0 0 280px;

    scroll-snap-align: start;
}

/*styles carousel navigation buttons */

.carousel-button {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #8E45DD;
    border-radius: 50%;

    background: white;
    color: #8E45DD;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.carousel-button:hover {
    background: #8E45DD;
    color: white;
}

/*adjusts homepage carousel controls */

@media (max-width: 700px) {
    .home-section-heading {
        align-items: flex-start;
        flex-direction: row;
    }

    .carousel-card {
        flex-basis: 240px;
    }
}

/*styles standalone create listing forms */

.listing-form-container {
    max-width: 900px;

    margin: 0 auto;
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 22px;

    padding: 28px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 12px;
}

.form-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            1fr
        );

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #bbb;
    border-radius: 8px;

    font: inherit;
}

.form-group textarea {
    resize: vertical;
}

.listing-image-placeholder {
    padding: 28px;

    background: #F5F3F0;
    color: #666;

    border: 1px dashed #aaa;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.form-actions .primary-button,
.form-actions .secondary-button {
    margin-top: 0;

    border: 0;

    cursor: pointer;
}

.form-message {
    margin-bottom: 18px;
    padding: 14px 16px;

    border-radius: 8px;
}

.form-error {
    background: #FBE7E7;
    color: #8B2929;
}

.form-success {
    background: #E7F6EC;
    color: #236B3A;
}

/*adjusts standalone listing forms on smaller displays */

@media (max-width: 700px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/*sizes the bid confirmation overlay */

.bid-modal-card {
    max-width: 620px;
}

/*stacks the bid confirmation information vertically */

.bid-confirmation-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 22px 0;
}

/*styles individual bid confirmation values */

.bid-confirmation-item {
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 16px;

    background: #F5F3F0;

    border-radius: 8px;
}

.bid-confirmation-item span {
    font-size: 13px;

    color: #666;
}

.bid-confirmation-item strong {
    font-size: 16px;
}

/*styles confirmation guidance */

.bid-confirmation-note {
    margin: 0;

    color: #666;
}

/*styles the theme toggle */

.theme-toggle {
    padding: 8px 12px;

    border: 1px solid #8E45DD;
    border-radius: 8px;

    background: transparent;
    color: #8E45DD;

    font: inherit;

    cursor: pointer;
}

/*styles shared information pages */

.info-top {
    padding-bottom: 26px;
}

/*spaces informational page content */

.info-page {
    width: calc(100% - 48px);
    max-width: 1200px;

    margin: 0 auto;
    padding-bottom: 40px;
}

/*styles informational content cards */

.info-content-card {
    padding: 34px 38px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 16px;
}

/*spaces information page headings */

.info-content-card h2 {
    margin: 30px 0 10px;

    color: #24202A;
}

.info-content-card h2:first-child {
    margin-top: 0;
}

/*styles information page paragraphs */

.info-content-card p {
    margin: 0 0 18px;

    line-height: 1.7;

    color: #555;
}

/*styles information update text */

.info-content-card .info-updated {
    margin-bottom: 28px;

    color: #777;

    font-style: italic;
}

/*styles the global footer */

.site-footer {
    width: 100%;
}

/*lays out the main footer */

.footer-inner {
    width: 100%;

    display: grid;
    grid-template-columns:
        minmax(280px, 1.2fr)
        minmax(520px, 2fr);

    gap: 60px;

    padding: 42px 32px;
}

/*styles the footer brand */

.footer-brand {
    max-width: 460px;
}

.footer-logo {
    display: block;

    width: auto;
    height: 64px;

    margin-bottom: 16px;
}

.footer-brand p {
    margin: 0;

    line-height: 1.6;

    color: #D7CFDB;
}

/*lays out footer links */

.footer-links {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(140px, 1fr)
        );

    gap: 36px;
}

/*stacks individual footer link groups */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 8px;

    color: white;
}

.footer-column a {
    color: #D7CFDB;
}

.footer-column a:hover {
    color: #C6A6DF;
}

/*keeps the footer fixed to the bottom of the viewport */

.footer-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 32px;

    background: #24202A;
    color: #BEB5C2;

    border-top: 4px solid #4B4450;

    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/*styles bidbash authentication pages */

.auth-page {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-bottom: 0px;
}

/*creates the shared authentication card */

.auth-shell {
    width: 100%;
    max-width: none;

    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    overflow: hidden;

    background: white;

    border: 1px solid #D8D3DC;
    border-radius: 24px;

    box-shadow:
        0 18px 45px
        rgba(36, 32, 42, 0.1);
}

/*styles the authentication branding panel */

.auth-brand-panel {
    min-width: 0;

    position: relative;

    display: flex;
    align-items: center;

    padding: 56px;

    background:
        linear-gradient(
            145deg,
            #8E45DD 0%,
            #A86BE5 52%,
            #C4A2EB 100%
        );

    color: white;
}

/*constrains authentication branding content */

.auth-brand-content {
    width: 100%;
    max-width: 470px;
    min-width: 0;
}

/*styles authentication eyebrow text */

.auth-eyebrow {
    display: inline-block;

    margin-bottom: 18px;
    padding: 7px 12px;

    background:
        rgba(
            255,
            255,
            255,
            0.16
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.28
        );

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

/*styles authentication branding heading */

.auth-brand-content h1 {
    margin: 0 0 18px;

    font-size: 42px;
    line-height: 1.08;
}

/*styles authentication branding text */

.auth-brand-content > p {
    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );
}

/*stacks authentication feature points */

.auth-brand-points {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin-top: 34px;
}

/*styles authentication feature points */

.auth-brand-point {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-point p {
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.92
        );
}

/*styles authentication feature icons */

.auth-brand-icon {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background:
        rgba(
            255,
            255,
            255,
            0.18
        );

    border-radius: 50%;

    font-size: 13px;
    font-weight: bold;
}

/*styles the authentication form panel */

.auth-form-panel {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 58px 64px;

    background: white;
}

/*styles authentication form headers */

.auth-form-header {
    margin-bottom: 28px;
}

.auth-form-label {
    display: block;

    margin-bottom: 9px;

    color: #8E45DD;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.auth-form-header h2 {
    margin: 0 0 10px;

    font-size: 34px;

    color: #24202A;
}

.auth-form-header p {
    margin: 0;

    line-height: 1.6;

    color: #666;
}

/*stacks authentication form controls */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*stacks authentication labels and fields */

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-weight: 600;

    color: #302B35;
}

/*styles authentication inputs */

.auth-field input {
    width: 100%;
    min-height: 50px;

    padding: 12px 14px;

    background: #FAF8FC;
    color: #24202A;

    border: 1px solid #D8D3DC;
    border-radius: 10px;

    font: inherit;

    outline: none;
}

/*highlights authentication inputs */

.auth-field input:focus {
    border-color: #8E45DD;

    box-shadow:
        0 0 0 3px
        rgba(142, 69, 221, 0.13);
}

/*styles authentication placeholders */

.auth-field input::placeholder {
    color: #918A95;
}

/*styles the primary authentication action */

.auth-primary-button {
    width: 100%;
    min-height: 50px;

    margin-top: 4px;
    padding: 12px 18px;

    border: 0;
    border-radius: 10px;

    background: #8E45DD;
    color: white;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

/*highlights the primary authentication action */

.auth-primary-button:hover {
    background: #7933C7;
}

/*styles authentication switch links */

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid #E3DEE7;
}

.auth-switch p {
    margin: 0;

    color: #6A636E;
}

.auth-switch a {
    color: #8E45DD;

    font-weight: 700;
}

/*styles authentication messages */

.auth-message {
    margin-bottom: 20px;
    padding: 13px 15px;

    border-radius: 9px;
}

.auth-message p {
    margin: 0;
}

.auth-message-error {
    background: #FBE7E7;
    color: #8B2929;

    border: 1px solid #EABBBB;
}

/*styles registration consent */

.auth-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;

    align-items: start;
}

.auth-consent input {
    margin-top: 3px;
}

.auth-consent label {
    color: #625A66;

    font-size: 14px;
    line-height: 1.5;
}

.auth-consent a {
    color: #8E45DD;

    font-weight: 600;
}

/*styles the age notice */

.age-notice {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 36px;
    padding: 18px;

    background:
        rgba(
            255,
            255,
            255,
            0.14
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.22
        );

    border-radius: 14px;
}

/*styles the age notice number */

.age-notice-number {
    min-width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #8E45DD;

    border-radius: 50%;

    font-size: 26px;
    font-weight: 800;
}

/*styles the age notice text */

.age-notice-text strong {
    display: block;

    margin-bottom: 4px;

    font-size: 17px;
}

.age-notice-text p {
    margin: 0;

    line-height: 1.5;

    color:
        rgba(
            255,
            255,
            255,
            0.84
        );
}

/*stacks age confirmation choices */

.age-choice-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/*styles age confirmation choices */

.age-choice {
    position: relative;

    display: block;

    cursor: pointer;
}

.age-choice input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

/*styles age confirmation choice content */

.age-choice-content {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 17px 18px;

    background: #FAF8FC;

    border: 1px solid #D8D3DC;
    border-radius: 11px;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

/*highlights selected age choices */

.age-choice input:checked + .age-choice-content {
    background: #F0E4FA;

    border-color: #8E45DD;

    box-shadow:
        0 0 0 3px
        rgba(142, 69, 221, 0.1);
}

/*styles age choice headings */

.age-choice-title {
    font-weight: 700;

    color: #24202A;
}

/*styles age choice descriptions */

.age-choice-description {
    color: #706875;

    font-size: 14px;
}

/*groups age policy links */

.age-policy-links {
    display: flex;
    justify-content: center;
    gap: 10px;

    margin-top: 24px;

    color: #746C79;

    font-size: 14px;
}

.age-policy-links a {
    color: #8E45DD;
}

/*adjusts authentication pages on narrower desktop windows */

@media (max-width: 1500px) {
    .auth-page {
        padding-left: 24px;
        padding-right: 24px;
    }

    .auth-brand-panel {
        padding: 42px;
    }

    .auth-form-panel {
        padding: 44px 48px;
    }

    .auth-brand-content h1 {
        font-size: 36px;
    }

    .auth-form-header h2 {
        font-size: 30px;
    }
}

/*keeps authentication content usable in narrow desktop tabs */

@media (max-width: 1250px) {
    .auth-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        padding: 32px;
    }

    .auth-form-panel {
        padding: 40px;
    }

    .auth-brand-content {
        max-width: none;
    }

    .auth-brand-content h1 {
        font-size: 32px;
    }

    .auth-brand-content > p {
        font-size: 15px;
    }

    .auth-brand-points {
        margin-top: 26px;
    }
}

/*groups the bottom legal links */

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: white;
}

/*styles the moderator-only page */

.moderator-body {
    padding-bottom: 0;

    background: #F3EAFB;
}

/*creates the moderator global navigation */

.moderator-global-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1100;

    height: 68px;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 0 18px;

    background: white;

    border-bottom: 1px solid #D8D3DC;
}

/*styles the moderator logo */

.moderator-nav-logo {
    display: block;

    width: auto;
    height: 56px;
}

/*keeps moderator branding fixed */

.moderator-nav-brand {
    flex-shrink: 0;
}

/*creates the moderator search */

.moderator-global-search {
    min-width: 260px;
    max-width: 620px;

    flex: 1;

    display: flex;
}

/*styles the moderator search field */

.moderator-global-search input {
    width: 100%;
    min-width: 0;
    height: 42px;

    padding: 0 14px;

    border: 1px solid #D8D3DC;
    border-right: 0;
    border-radius: 8px 0 0 8px;

    background: #F7F4F9;
    color: #24202A;

    font: inherit;

    outline: none;
}

/*styles the moderator search button */

.moderator-global-search button {
    height: 42px;

    padding: 0 18px;

    border: 1px solid #8E45DD;
    border-radius: 0 8px 8px 0;

    background: #8E45DD;
    color: white;

    cursor: pointer;
}

/*groups moderator navigation links */

.moderator-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;
}

/*styles moderator navigation filters */

.moderator-nav-filter {
    padding: 9px 12px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #24202A;

    font: inherit;

    cursor: pointer;
}

/*highlights moderator navigation filters */

.moderator-nav-filter:hover,
.moderator-nav-filter.active {
    background: #F3EAFB;
    color: #8E45DD;

    border-color: #DEC9F4;
}

/*groups moderator account controls */

.moderator-nav-account {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-left: auto;

    flex-shrink: 0;
}

/*creates the main moderator layout */

.moderator-layout {
    min-height:
        calc(
            100vh -
            58px
        );

    display: grid;
    grid-template-columns:
        260px
        minmax(0, 1fr);

    padding-top: 68px;
    padding-bottom: 0;

    background: #F3EAFB;
}

/*creates the persistent moderation filter sidebar */

.moderator-filter-sidebar {
    position: fixed;

    top: 68px;
    bottom: 58px;
    left: 0;

    width: 260px;

    padding: 24px 18px;

    background: white;

    border-right: 1px solid #D8D3DC;

    overflow-y: auto;

    z-index: 900;
}

/*styles the moderator filter heading */

.moderator-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 26px;
}

.moderator-filter-heading h2 {
    margin: 0;
}

/*styles the clear filter action */

.moderator-filter-heading button {
    padding: 6px 9px;

    border: 0;
    border-radius: 6px;

    background: #F3EAFB;
    color: #8E45DD;

    cursor: pointer;
}

/*spaces moderation filter sections */

.moderator-filter-section {
    margin-bottom: 30px;
}

/*styles moderation filter headings */

.moderator-filter-section h3 {
    margin: 0 0 10px;

    color: #625A66;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/*stacks moderation filters */

.moderator-filter-button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 4px;
    padding: 10px;

    border: 0;
    border-radius: 7px;

    background: transparent;
    color: #24202A;

    text-align: left;
    font: inherit;

    cursor: pointer;
}

/*highlights moderation filters */

.moderator-filter-button:hover,
.moderator-filter-button.active {
    background: #F3EAFB;
    color: #8E45DD;
}

/*styles risk filter indicators */

.filter-risk-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    border-radius: 50%;
}

.filter-risk-dot.risk-high {
    background: #C84E4E;
}

.filter-risk-dot.risk-medium {
    background: #C58B2B;
}

.filter-risk-dot.risk-low {
    background: #5B9A57;
}

/*positions moderation page content */

.moderator-content {
    grid-column: 2;

    min-width: 0;

    min-height:
        calc(
            100vh -
            68px -
            58px
        );

    display: flex;
    flex-direction: column;

    padding: 32px 24px 24px;
}

/*lets the moderation dashboard fill available height */

.moderation-dashboard {
    min-height: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}

/*styles the moderation dashboard heading */

.moderation-dashboard-heading {
    flex-shrink: 0;

    margin-bottom: 24px;
}

/*styles the moderator workspace label */

.moderation-dashboard-heading > span {
    color: #8E45DD;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

/*styles the moderator page heading */

.moderation-dashboard-heading h1 {
    margin: 7px 0;

    font-size: 38px;
    letter-spacing: 2px;
}

/*styles moderator page guidance */

.moderation-dashboard-heading p {
    margin: 0;

    color: #706875;
}

/*creates the master-detail moderation workspace */

.moderation-workspace {
    min-height: 0;

    flex: 1;

    display: grid;
    grid-template-columns:
        minmax(420px, 0.9fr)
        minmax(520px, 1.1fr);

    overflow: hidden;

    background: white;

    border: 1px solid #D8D3DC;
    border-radius: 16px;
}

/*creates the flagged listings panel */

.flagged-listings-panel {
    min-width: 0;

    display: flex;
    flex-direction: column;

    border-right: 1px solid #D8D3DC;
}

/*styles moderation panel headings */

.moderation-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #D8D3DC;
}

.moderation-panel-header h2 {
    margin: 0;

    font-size: 16px;
}

/*creates the independently scrolling listing queue */

.flagged-listings {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 18px;

    overflow-y: auto;
}

/*styles flagged listing entries */

.flagged-listing-card {
    width: 100%;

    display: grid;
    grid-template-columns:
        92px
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 14px;

    padding: 14px;

    background: white;
    color: #24202A;

    border: 1px solid #CFC8D4;
    border-radius: 12px;

    text-align: left;

    cursor: pointer;
}

/*hides filtered moderation cases */

.flagged-listing-card[hidden] {
    display: none;
}

/*highlights the selected moderation case */

.flagged-listing-card:hover,
.flagged-listing-card.active {
    border-color: #8E45DD;

    box-shadow:
        0 0 0 2px
        rgba(142, 69, 221, 0.1);
}

/*styles moderation product placeholders */

.flagged-listing-image {
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #F3EAFB;

    border-radius: 8px;

    font-size: 12px;
    color: #706875;
}

/*styles flagged listing text */

.flagged-listing-info {
    min-width: 0;
}

.flagged-listing-info h3 {
    margin: 0 0 7px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.flagged-listing-info p {
    margin: 4px 0;

    font-size: 13px;
}

/*stacks moderation listing statuses */

.flagged-listing-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

/*styles moderation risk labels */

.flagged-risk {
    padding: 6px 9px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}

/*styles high risk labels */

.flagged-risk-high {
    background: #FBE7E7;
    color: #8B2929;
}

/*styles medium risk labels */

.flagged-risk-medium {
    background: #FFF3D6;
    color: #775800;
}

/*styles low risk labels */

.flagged-risk-low {
    background: #E7F6EC;
    color: #236B3A;
}

/*styles moderation case statuses */

.moderation-status {
    padding: 6px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
}

/*styles awaiting moderation cases */

.moderation-status-awaiting {
    background: #FFF3D6;
    color: #775800;
}

/*styles seller appeals */

.moderation-status-appeal {
    background: #F0E4FA;
    color: #6A2DA8;
}

/*styles approved moderation cases */

.moderation-status-approved {
    background: #E7F6EC;
    color: #236B3A;
}

/*styles requested changes */

.moderation-status-changes-requested {
    background: #FFF3D6;
    color: #775800;
}

/*styles removed moderation cases */

.moderation-status-removed {
    background: #FBE7E7;
    color: #8B2929;
}

/*creates the selected moderation case panel */

.moderation-case-panel {
    min-width: 0;

    overflow-y: auto;
}

/*styles the selected case heading */

.moderation-case-header {
    display: flex;
    justify-content: flex-end;
    gap: 6px;

    padding: 18px 20px;

    border-bottom: 1px solid #D8D3DC;
}

/*styles selected product information */

.moderation-product-section {
    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr);

    gap: 24px;

    padding: 24px;

    border-bottom: 1px solid #D8D3DC;
}

/*styles selected product image */

.moderation-product-image {
    min-height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #F3EAFB;

    border-radius: 10px;

    color: #706875;
}

/*styles selected product heading */

.moderation-product-info h2 {
    margin: 0 0 16px;

    font-size: 26px;
}

/*styles seller metadata */

.moderation-product-info p {
    margin: 8px 0;
}

/*styles moderation detail areas */

.moderation-detail-section,
.moderation-notes-section,
.moderation-actions-section {
    padding: 22px 24px;

    border-bottom: 1px solid #D8D3DC;
}

/*styles moderation section headings */

.moderation-detail-section h2,
.moderation-notes-section h2,
.moderation-actions-section h2 {
    margin: 0 0 16px;

    font-size: 18px;
}

/*lays out moderation evidence */

.moderation-detail-row {
    display: grid;
    grid-template-columns:
        150px
        minmax(0, 1fr);

    gap: 18px;

    margin-bottom: 11px;
}

/*styles moderation evidence labels */

.moderation-detail-row span {
    color: #706875;
}

/*styles moderation notes */

.moderation-notes-section p {
    margin: 0;

    line-height: 1.6;
}

/*groups moderation actions */

.moderation-action-form {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 14px;
}

/*styles moderation actions */

.moderation-action-button {
    min-height: 58px;

    padding: 12px;

    background: white;

    border: 1px solid #AFA8B3;
    border-radius: 10px;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

/*styles moderation approval */

.approve-action {
    color: #347B31;
}

/*styles requested changes */

.change-action {
    color: #A66B14;
}

/*styles removal actions */

.remove-action {
    color: #B23D3D;
}

/*highlights moderation actions */

.moderation-action-button:hover {
    background: #F7F4F9;
}

/*keeps create and edit listing modals fully visible*/

.listing-modal-card {
    width: min(1180px, calc(100vw - 48px));
    max-width: 1180px;
    max-height: none;

    padding: 20px 24px;

    overflow: visible;
}

/*compacts listing modal headings*/

.listing-modal-card .listing-modal-header {
    gap: 18px;

    margin-bottom: 14px;
}

.listing-modal-card .listing-modal-header h2 {
    margin: 0 0 4px;

    line-height: 1.1;
}

.listing-modal-card .listing-modal-header p {
    margin: 0;

    line-height: 1.3;
}

/*compacts listing modal forms*/

.listing-modal-card .listing-form {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 0;

    background: transparent;

    border: 0;
}

/*keeps paired listing fields side by side*/

.listing-modal-card .form-row {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px 18px;
}

/*spaces labels away from their fields*/

.listing-modal-card .form-group {
    gap: 9px;
}

/*adds breathing room below field labels*/

.listing-modal-card .form-group label {
    display: block;

    margin-bottom: 2px;

    line-height: 1.2;
}

/*styles listing modal fields*/

.listing-modal-card .form-group input,
.listing-modal-card .form-group select,
.listing-modal-card .form-group textarea {
    width: 100%;

    padding: 7px 10px;
}

/*keeps large text fields short enough for the popup*/

.listing-modal-card .form-group textarea {
    min-height: 48px;
    max-height: 58px;

    resize: none;
}

/*compacts listing modal helper text*/

.listing-modal-card .form-help {
    margin: 6px 0 0;

    font-size: 12px;
    line-height: 1.3;
}

/*compacts listing modal actions*/

.listing-modal-card .modal-actions {
    margin-top: 8px;
}

.listing-modal-card .modal-actions .primary-button,
.listing-modal-card .modal-actions .secondary-button {
    margin-top: 0;
    padding: 8px 14px;
}

/*fits listing modals inside shorter browser tabs*/

@media (max-height: 760px) {
    .modal-overlay {
        padding: 8px 16px;
    }

    .listing-modal-card {
        width: min(1240px, calc(100vw - 32px));

        padding: 14px 20px;

        font-size: 14px;
    }

    .listing-modal-card .listing-modal-header {
        margin-bottom: 10px;
    }

    .listing-modal-card .listing-form {
        gap: 8px;
    }

    .listing-modal-card .form-row {
        gap: 10px 16px;
    }

    .listing-modal-card .form-group {
        gap: 7px;
    }

    .listing-modal-card .form-group label {
        margin-bottom: 1px;
    }

    .listing-modal-card .form-group input,
    .listing-modal-card .form-group select,
    .listing-modal-card .form-group textarea {
        padding: 6px 9px;
    }

    .listing-modal-card .form-group textarea {
        min-height: 40px;
        max-height: 46px;
    }

    .listing-modal-card .form-help {
        margin-top: 4px;

        font-size: 11px;
    }

    .listing-modal-card .modal-actions {
        margin-top: 4px;
    }

    .listing-modal-card .modal-actions .primary-button,
    .listing-modal-card .modal-actions .secondary-button {
        padding: 7px 12px;
    }
}

.dashboard-actions .secondary-button,
.dashboard-actions .dashboard-action-button {
    width: 100%;
    min-height: 44px;

    margin-top: 0;
    padding: 10px 14px;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #8E45DD;
    border-radius: 8px;

    text-align: center;
    text-decoration: none;

    font: inherit;
    font-size: 16px;
    font-weight: 400;
}

/*styles the password requirements in signup*/

.auth-field label {
    font-weight: 600;

    color: #302B35;
}

/*styles password requirements*/

.password-requirements {
    margin: 2px 0 0;
    padding-left: 22px;

    color: #706875;

    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

/*spaces password requirements*/

.password-requirements li {
    margin: 1px 0;
}

/*applies the original wireframe dark theme */

body.dark-mode {
    background: #121212;
    color: #F5F5F5;
}

/*darkens the main page background */

body.dark-mode .page-content {
    background: #121212;
}

/*darkens the global navigation */

body.dark-mode .site-header {
    background: #101010;

    border-bottom-color: #4B4450;
}

/*keeps navigation text readable */

body.dark-mode .main-nav a,
body.dark-mode .account-status {
    color: #F5F5F5;
}

/*styles the dark theme toggle */

body.dark-mode .theme-toggle {
    background: #775B83;
    color: white;

    border-color: #A393AB;
}

/*keeps the logout action visible */

body.dark-mode .logout-button {
    color: #C6A6DF;
}

/*uses the wireframe purple dashboard colour */

body.dark-mode .dashboard-top {
    background: #5B4674;
}

/*darkens dashboard content cards */

body.dark-mode .dashboard-item,
body.dark-mode .auction-card,
body.dark-mode .info-card,
body.dark-mode .status-item,
body.dark-mode .auction-message,
body.dark-mode .filters-panel {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*darkens product image placeholders */

body.dark-mode .dashboard-image,
body.dark-mode .image-placeholder {
    background: #292929;
    color: #B4A8B9;
}

/*styles dark dashboard empty states */

body.dark-mode .dashboard-empty {
    background: #181818;
    color: #B4A8B9;

    border-color: #6E6472;
}

/*uses purple for selected interface areas */

body.dark-mode .dashboard-tab.active {
    color: white;
}

body.dark-mode .dashboard-tab.active::after {
    background: #D6C2DF;
}

/*darkens the homepage hero */

body.dark-mode .hero-section {
    background: #222222;
}

/*keeps hero text visible */

body.dark-mode .hero-copy h2 {
    color: #F5F5F5;
}

body.dark-mode .hero-copy p {
    color: #D3CBD6;
}

/*darkens homepage secondary text */

body.dark-mode .home-section-title p {
    color: #B4A8B9;
}

/*darkens the sidebar */

body.dark-mode .sidebar-drawer {
    background: #151515;
    color: #F5F5F5;
}

/*styles sidebar links */

body.dark-mode .sidebar-discovery a {
    color: #F5F5F5;
}

body.dark-mode .sidebar-discovery a:hover {
    background: #323232;
    color: #D7B8EA;
}

/*darkens the bid entry panel */

body.dark-mode .bid-panel {
    background: #323232;
}

/*darkens modal windows */

body.dark-mode .modal-card {
    background: #1B1B1B;
    color: #F5F5F5;
}

/*styles muted modal text */

body.dark-mode .listing-modal-header p,
body.dark-mode .bid-confirmation-note {
    color: #B4A8B9;
}

/*darkens form controls */

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #101010;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*keeps form placeholders visible */

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #918897;
}

/*darkens listing upload areas */

body.dark-mode .listing-image-placeholder {
    background: #222222;
    color: #B4A8B9;

    border-color: #775B83;
}

/*darkens confirmation information */

body.dark-mode .bid-confirmation-item {
    background: #292929;
}

/*styles wireframe-inspired secondary buttons */

body.dark-mode .secondary-button {
    background: #181818;
    color: #F5F5F5;

    border: 1px solid #775B83;
}

/*styles wireframe-inspired primary actions */

body.dark-mode .primary-button {
    background: #775B83;
    color: white;
}

/*keeps dashboard header actions contrasting */

body.dark-mode .dashboard-top .primary-button {
    background: #181818;
    color: white;

    border: 1px solid #D6C2DF;
}

/*styles carousel buttons */

body.dark-mode .carousel-button {
    background: #181818;
    color: #D6C2DF;

    border-color: #775B83;
}

body.dark-mode .carousel-button:hover {
    background: #775B83;
    color: white;
}

/*styles dark bid status labels */

body.dark-mode .bid-status-winning {
    background: #263522;
    color: #B7D69C;
}

body.dark-mode .bid-status-outbid {
    background: #3B3320;
    color: #E6D28A;
}

body.dark-mode .bid-status-lost {
    background: #3B2326;
    color: #E5A6AD;
}

/*darkens the homepage purple header */

body.dark-mode .home-top {
    background: #5C4674;
}

/*keeps homepage header text readable */

body.dark-mode .home-top .dashboard-heading h1 {
    color: #F5F5F5;
}

body.dark-mode .home-top .dashboard-heading p {
    color: #E2DAE7;
}

/*darkens the homepage hero container */

body.dark-mode .hero-section {
    background: #222222;
}

/*keeps hero heading readable */

body.dark-mode .hero-copy h2 {
    color: #F5F5F5;
}

/*keeps hero description readable */

body.dark-mode .hero-copy p {
    color: #E0D9E4;
}

/*darkens homepage auction sections */

body.dark-mode .home-section {
    background: #4E3C63;
}

/*keeps the heading area transparent */

body.dark-mode .home-section-heading {
    background: transparent;
}

/*keeps homepage section headings readable */

body.dark-mode .home-section-title h2 {
    color: #F5F5F5;
}

/*styles homepage section descriptions */

body.dark-mode .home-section-title p {
    color: #CBBFD2;
}

/*darkens the homepage action bubble */

body.dark-mode .home-section-actions {
    background: #1C1C1C;
}

/*styles the view all action */

body.dark-mode .home-view-all {
    color: #D7B8EA;
}

/*darkens homepage auction cards */

body.dark-mode .auction-card {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*keeps card headings readable */

body.dark-mode .auction-card h3 {
    color: #F5F5F5;
}

/*keeps card body text readable */

body.dark-mode .auction-card p {
    color: #E0D9E4;
}

/*darkens carousel scrollbar area */

body.dark-mode .auction-carousel {
    scrollbar-color:
        #775B83
        #222222;
}

/*styles chromium carousel scrollbar */

body.dark-mode .auction-carousel::-webkit-scrollbar {
    height: 12px;
}

/*darkens carousel scrollbar track */

body.dark-mode .auction-carousel::-webkit-scrollbar-track {
    background: #222222;

    border-radius: 10px;
}

/*styles carousel scrollbar thumb */

body.dark-mode .auction-carousel::-webkit-scrollbar-thumb {
    background: #775B83;

    border-radius: 10px;
}

/*darkens carousel navigation buttons */

body.dark-mode .carousel-button {
    background: #111111;
    color: #E3D5EB;

    border-color: #775B83;
}

/*highlights carousel navigation buttons */

body.dark-mode .carousel-button:hover {
    background: #775B83;
    color: white;
}

/*darkens secondary homepage buttons */

body.dark-mode .hero-actions .secondary-button,
body.dark-mode .auction-card .secondary-button {
    background: #151515;
    color: #F5F5F5;

    border: 1px solid #775B83;
}

/*styles primary homepage buttons */

body.dark-mode .hero-actions .primary-button {
    background: #775B83;
    color: white;
}

/*darkens the global header */

body.dark-mode .site-header {
    background: #101010;

    border-bottom-color: #3D3542;
}

/*keeps global navigation readable */

body.dark-mode .main-nav a {
    color: #F5F5F5;
}

/*keeps account controls readable */

body.dark-mode .account-status {
    color: #F5F5F5;
}

/*darkens the account divider */

body.dark-mode .account-nav {
    border-left-color: #4B4450;
}

/*darkens the global search field */

body.dark-mode .header-search-input {
    background: #171717;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*styles search placeholder text */

body.dark-mode .header-search-input::placeholder {
    color: #A79EAB;
}

/*styles the global search button */

body.dark-mode .header-search-button {
    background: #775B83;
    color: white;

    border-color: #775B83;
}

/*styles the dark theme button */

body.dark-mode .theme-toggle {
    background: #5C4674;
    color: white;

    border-color: #A393AB;
}

/*keeps login and logout actions visible */

body.dark-mode .logout-button,
body.dark-mode .account-nav > a {
    color: #D7B8EA;
}

/*darkens sign up buttons */

body.dark-mode .button-link {
    background: #775B83;
    color: white;
}

/*darkens the login navigation button */

body.dark-mode .login-button {
    background: #181818;
    color: #D7B8EA;

    border-color: #775B83;
}

/*highlights the dark login navigation button */

body.dark-mode .login-button:hover {
    background: #2A2230;
}

/*darkens the sidebar toggle */

body.dark-mode .sidebar-toggle {
    color: #F5F5F5;
}

/*darkens the page below homepage sections */

body.dark-mode .page-content {
    background: #121212;
}

/*darkens dashboard content backgrounds */

body.dark-mode .dashboard-section {
    color: #F5F5F5;
}

/*darkens auction detail metadata */

body.dark-mode .auction-category,
body.dark-mode .product-meta,
body.dark-mode .product-description,
body.dark-mode .bid-help {
    color: #D7CFDB;
}

/*darkens browse toolbar text */

body.dark-mode .browse-header,
body.dark-mode .browse-results,
body.dark-mode .results-toolbar {
    color: #F5F5F5;
}

/*darkens select and input controls */

body.dark-mode .browse-search input,
body.dark-mode .browse-search button,
body.dark-mode .filter-group input,
body.dark-mode .filter-group select,
body.dark-mode .results-toolbar select,
body.dark-mode .browse-header-controls input,
body.dark-mode .browse-header-controls select {
    background: #171717;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*darkens listing modal controls */

body.dark-mode .listing-form {
    background: #1B1B1B;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*darkens listing form helper areas */

body.dark-mode .listing-image-placeholder {
    background: #242424;
    color: #C6BBCB;

    border-color: #775B83;
}

/*darkens dashboard buttons */

body.dark-mode .dashboard-actions .secondary-button,
body.dark-mode .dashboard-actions .dashboard-action-button {
    background: #201A26;
    color: #F3E8FF;

    border: 1px solid #B980F0;
    border-radius: 8px;
}

/*highlights dark dashboard buttons */

body.dark-mode .dashboard-actions .secondary-button:hover,
body.dark-mode .dashboard-actions .dashboard-action-button:hover {
    background: #775B83;
    color: white;

    border-color: #D6C2DF;
}

/*darkens dashboard counters */

body.dark-mode .dashboard-count {
    background: #4E3C63;
    color: #F5F5F5;
}

/*styles the colour theme toggle */

.theme-toggle {
    padding: 8px 12px;

    border: 1px solid #8E45DD;
    border-radius: 8px;

    background: transparent;
    color: #8E45DD;

    font: inherit;

    cursor: pointer;
}

/*darkens informational content cards */

body.dark-mode .info-content-card {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

body.dark-mode .info-content-card h2 {
    color: #F5F5F5;
}

body.dark-mode .info-content-card p {
    color: #D7CFDB;
}

body.dark-mode .info-content-card .info-updated {
    color: #AFA6B3;
}

/*darkens the footer */

body.dark-mode .footer-bottom {
    background: #0F0F0F;
    color: #BEB5C2;

    border-top-color: #3D3542;
}

/*darkens authentication shells */

body.dark-mode .auth-shell {
    background: #181818;

    border-color: #6E6472;

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.34);
}

/*darkens authentication branding */

body.dark-mode .auth-brand-panel {
    background:
        linear-gradient(
            145deg,
            #4A365C 0%,
            #583F70 55%,
            #775B83 100%
        );
}

/*darkens authentication forms */

body.dark-mode .auth-form-panel {
    background: #181818;
    color: #F5F5F5;
}

/*keeps authentication headings readable */

body.dark-mode .auth-form-header h2,
body.dark-mode .auth-field label {
    color: #F5F5F5;
}

/*styles dark authentication secondary text */

body.dark-mode .auth-form-header p,
body.dark-mode .auth-switch p,
body.dark-mode .auth-consent label,
body.dark-mode .age-policy-links {
    color: #B4A8B9;
}

/*styles dark authentication labels */

body.dark-mode .auth-form-label,
body.dark-mode .auth-switch a,
body.dark-mode .auth-consent a,
body.dark-mode .age-policy-links a {
    color: #D7B8EA;
}

/*darkens authentication inputs */

body.dark-mode .auth-field input {
    background: #101010;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*styles dark authentication input focus */

body.dark-mode .auth-field input:focus {
    border-color: #A393AB;

    box-shadow:
        0 0 0 3px
        rgba(163, 147, 171, 0.14);
}

/*styles dark authentication actions */

body.dark-mode .auth-primary-button {
    background: #775B83;
}

body.dark-mode .auth-primary-button:hover {
    background: #8A6B97;
}

/*darkens authentication separators */

body.dark-mode .auth-switch {
    border-top-color: #403944;
}

/*darkens age confirmation choices */

body.dark-mode .age-choice-content {
    background: #101010;

    border-color: #6E6472;
}

/*highlights dark age confirmation choices */

body.dark-mode .age-choice input:checked + .age-choice-content {
    background: #30253A;

    border-color: #A393AB;

    box-shadow:
        0 0 0 3px
        rgba(163, 147, 171, 0.12);
}

/*keeps age confirmation text readable */

body.dark-mode .age-choice-title {
    color: #F5F5F5;
}

body.dark-mode .age-choice-description {
    color: #B4A8B9;
}

/*darkens the moderator navigation */

body.dark-mode .moderator-global-nav {
    background: #101010;

    border-bottom-color: #4B4450;
}

/*darkens moderator search */

body.dark-mode .moderator-global-search input {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*darkens moderator navigation filters */

body.dark-mode .moderator-nav-filter {
    color: #F5F5F5;
}

body.dark-mode .moderator-nav-filter:hover,
body.dark-mode .moderator-nav-filter.active {
    background: #30253A;
    color: #D7B8EA;

    border-color: #775B83;
}

/*darkens the moderator page */

body.dark-mode .moderator-layout,
body.dark-mode.moderator-body {
    background: #121212;
}

/*darkens the moderation sidebar */

body.dark-mode .moderator-filter-sidebar {
    background: #151515;
    color: #F5F5F5;

    border-right-color: #4B4450;
}

/*darkens moderation filter headings */

body.dark-mode .moderator-filter-section h3 {
    color: #B4A8B9;
}

/*darkens moderator filter buttons */

body.dark-mode .moderator-filter-button {
    color: #F5F5F5;
}

body.dark-mode .moderator-filter-button:hover,
body.dark-mode .moderator-filter-button.active {
    background: #30253A;
    color: #D7B8EA;
}

/*darkens the moderation workspace */

body.dark-mode .moderation-workspace {
    background: #181818;

    border-color: #6E6472;
}

/*darkens the flagged listing panel */

body.dark-mode .flagged-listings-panel {
    border-right-color: #6E6472;
}

/*darkens moderation panel headings */

body.dark-mode .moderation-panel-header,
body.dark-mode .moderation-case-header {
    border-bottom-color: #6E6472;
}

/*darkens flagged listing cards */

body.dark-mode .flagged-listing-card {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

body.dark-mode .flagged-listing-card:hover,
body.dark-mode .flagged-listing-card.active {
    background: #222222;

    border-color: #A393AB;
}

/*darkens moderation image placeholders */

body.dark-mode .flagged-listing-image,
body.dark-mode .moderation-product-image {
    background: #292929;
    color: #B4A8B9;
}

/*darkens moderation detail separators */

body.dark-mode .moderation-product-section,
body.dark-mode .moderation-detail-section,
body.dark-mode .moderation-notes-section,
body.dark-mode .moderation-actions-section {
    border-bottom-color: #6E6472;
}

/*styles dark moderation metadata */

body.dark-mode .moderation-dashboard-heading p,
body.dark-mode .moderation-detail-row span {
    color: #B4A8B9;
}

/*darkens moderation action buttons */

body.dark-mode .moderation-action-button {
    background: #181818;

    border-color: #6E6472;
}

body.dark-mode .moderation-action-button:hover {
    background: #292929;
}

/*darkens browse cards*/

body.dark-mode .browse-page .auction-card {
    background: #181818;
    color: #F5F5F5;

    border-color: #6E6472;
}

/*darkens browse image areas*/

body.dark-mode .browse-page .auction-card-image {
    background: #292929;
    color: #B4A8B9;
}

/*keeps password requirements readable*/

body.dark-mode .password-requirements {
    color: #B4A8B9;
}