/*
 * Got Hot Wheels Auctions — Phase 116 UI/UX overhaul
 * UI-only layer. Backend routes, permissions, billing, tax, orders, and freeze fingerprints are untouched.
 */
:root {
    --ghw116-space-1: 8px;
    --ghw116-space-2: 16px;
    --ghw116-space-3: 24px;
    --ghw116-space-4: 32px;
    --ghw116-space-5: 40px;
    --ghw116-space-6: 48px;
    --ghw116-space-8: 64px;
    --ghw116-bg: #07090d;
    --ghw116-bg-soft: #0b1017;
    --ghw116-surface: #101722;
    --ghw116-surface-raised: #151e2a;
    --ghw116-surface-strong: #1a2431;
    --ghw116-line: rgba(255, 255, 255, .11);
    --ghw116-line-strong: rgba(255, 255, 255, .19);
    --ghw116-text: #f6f8fb;
    --ghw116-muted: #aab5c3;
    --ghw116-subtle: #7f8c9d;
    --ghw116-orange: #ff7900;
    --ghw116-gold: #ffc328;
    --ghw116-red: #eb2332;
    --ghw116-green: #38d996;
    --ghw116-blue: #61aefc;
    --ghw116-danger: #ff6875;
    --ghw116-radius-sm: 8px;
    --ghw116-radius: 14px;
    --ghw116-radius-lg: 20px;
    --ghw116-shadow: 0 24px 64px rgba(0, 0, 0, .38);
    --ghw116-focus: 0 0 0 3px rgba(255, 195, 40, .25);
}

html { color-scheme: dark; }
body.ghw116-body {
    min-width: 320px;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 121, 0, .08), transparent 30rem),
        radial-gradient(circle at 96% 18%, rgba(235, 35, 50, .07), transparent 32rem),
        var(--ghw116-bg);
    color: var(--ghw116-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

.ghw116-body *,
.ghw116-body *::before,
.ghw116-body *::after { box-sizing: border-box; }

.ghw116-body img { max-width: 100%; }
.ghw116-body a { text-underline-offset: 3px; }
.ghw116-body button,
.ghw116-body input,
.ghw116-body select,
.ghw116-body textarea { font: inherit; }

.ghw116-body :focus-visible {
    outline: 2px solid var(--ghw116-gold) !important;
    outline-offset: 3px !important;
    box-shadow: var(--ghw116-focus);
}

.ghw116-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ghw116-body .ghwV5-wrap,
.ghw116-body .ghw-wrap {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.ghw116-body .ghwV5-main {
    min-height: 62vh;
    overflow: clip;
}

/* Remove the old JavaScript-generated shortcut strip. Phase 116 renders one role-aware bar server-side. */
.ghw116-body .ghw87-quickbar { display: none !important; }

/* Header */
.ghw116-body .ghwV5-topbar {
    min-height: 32px;
    background: #030507;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 12px;
}

.ghw116-body .ghwV5-topbarInner { min-height: 32px; }
.ghw116-body .ghwV5-secure {
    color: #ffc972;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ghw116-body .ghwV5-topLinks { gap: 12px; }
.ghw116-body .ghwV5-topLinks a {
    color: #c5ceda;
    font-size: 12px;
    font-weight: 700;
}
.ghw116-body .ghwV5-topLinks a:hover { color: #fff; }

.ghw116-body .ghwV5-header {
    top: 0;
    border: 0;
    border-bottom: 1px solid var(--ghw116-line);
    background: rgba(7, 9, 13, .92);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
    transition: box-shadow .18s ease, background .18s ease;
}

.ghw116-body .ghwV5-header.is-scrolled {
    background: rgba(4, 6, 9, .97);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.ghw116-body .ghwV5-headerInner {
    min-height: 80px;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--ghw116-space-3);
}

.ghw116-body .ghwV5-logo img { width: 190px; }
.ghw116-body .ghwV5-menuPanel { gap: var(--ghw116-space-2); }
.ghw116-body .ghwV5-mainNav { gap: 4px; }

.ghw116-body .ghwV5-mainNav > a {
    min-height: 42px;
    padding: 0 11px;
    border-radius: 10px;
    color: #d7dee8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .01em;
    text-transform: none;
    text-shadow: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ghw116-body .ghwV5-mainNav > a:hover,
.ghw116-body .ghwV5-mainNav > a.is-active,
.ghw116-body .ghwV5-mainNav > a[aria-current="page"] {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}
.ghw116-body .ghwV5-mainNav > a:hover { transform: translateY(-1px); }

.ghw116-body .ghwV5-live {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 9px;
    animation: none;
    box-shadow: 0 0 0 4px rgba(235, 35, 50, .12);
}

.ghw116-body .ghwV5-actions { gap: var(--ghw116-space-1); }
.ghw116-body .ghwV5-search {
    width: clamp(190px, 16vw, 260px);
    height: 44px;
    border-color: var(--ghw116-line);
    background: rgba(255, 255, 255, .045);
}
.ghw116-body .ghwV5-search:focus-within {
    border-color: rgba(255, 195, 40, .7);
    box-shadow: var(--ghw116-focus);
}
.ghw116-body .ghwV5-search input {
    color: #fff;
    padding-left: 15px;
    font-size: 13px;
}
.ghw116-body .ghwV5-search button { width: 44px; }

.ghw116-body .ghwV5-login,
.ghw116-body .ghwV5-register,
.ghw116-body .ghwV5-account > summary {
    min-height: 44px;
    height: auto;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.ghw116-body .ghwV5-login {
    border-color: var(--ghw116-line-strong);
    background: rgba(255, 255, 255, .035);
}
.ghw116-body .ghwV5-register,
.ghw116-body .ghwV5-account > summary {
    border: 1px solid rgba(255, 155, 40, .55);
    background: linear-gradient(135deg, #ff8500, #e43b25);
    box-shadow: 0 10px 24px rgba(232, 72, 20, .2);
}

.ghw116-body .ghwV5-account > summary {
    max-width: 190px;
    padding: 5px 13px 5px 6px;
    gap: 8px;
}
.ghw116-body .ghwV5-account > summary::after { margin-left: 2px; }

.ghw116-account-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: #111;
    background: linear-gradient(145deg, #ffe27d, #ff9f16);
    font-size: 13px;
    font-weight: 950;
}
.ghw116-account-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghw116-body .ghw116-account-menu {
    width: min(620px, calc(100vw - 32px));
    max-height: min(76vh, 680px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255, 174, 59, .38);
    border-radius: var(--ghw116-radius);
    background: rgba(12, 17, 24, .98);
    box-shadow: var(--ghw116-shadow);
}

.ghw116-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
    border-bottom: 1px solid var(--ghw116-line);
}
.ghw116-menu-user strong,
.ghw116-menu-user small { display: block; }
.ghw116-menu-user strong { color: #fff; font-size: 14px; }
.ghw116-menu-user small {
    max-width: 410px;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ghw116-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ghw116-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
}
.ghw116-menu-grid section {
    min-width: 0;
    padding: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
}
.ghw116-menu-grid section.ghw116-admin-menu { grid-column: 1 / -1; }
.ghw116-menu-grid h2 {
    margin: 0;
    padding: 6px 8px 5px;
    color: #ffbd52;
    font-family: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ghw116-body .ghw116-menu-grid a {
    min-height: 38px;
    padding: 0 9px;
    color: #dfe5ed;
    font-size: 13px;
    font-weight: 700;
}
.ghw116-body .ghw116-menu-grid a:hover {
    color: #fff;
    background: rgba(255, 121, 0, .1);
}
.ghw116-logout-form {
    margin-top: 10px !important;
    padding-top: 10px !important;
}
.ghw116-body .ghw116-logout-form button {
    min-height: 42px;
    background: rgba(235, 35, 50, .12);
    border: 1px solid rgba(235, 35, 50, .4);
    box-shadow: none;
    color: #ffd7db;
}

/* Role-aware account shortcut bar */
.ghw116-quickbar {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid var(--ghw116-line);
    background: rgba(10, 14, 20, .97);
}
.ghw116-quickbar-inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.ghw116-quickbar-inner > * { flex: 0 0 auto; }
.ghw116-quickbar-label {
    padding: 0 5px;
    color: #768497;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ghw116-quickbar-divider {
    width: 1px;
    height: 22px;
    margin-inline: 5px;
    background: var(--ghw116-line);
}
.ghw116-quickbar a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #c8d0db;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.ghw116-quickbar a:hover,
.ghw116-quickbar a.is-active {
    border-color: rgba(255, 183, 72, .3);
    color: #fff;
    background: rgba(255, 121, 0, .08);
}

/* Alerts */
.ghw116-flash-stack {
    position: relative;
    z-index: 20;
    display: grid;
    gap: 8px;
    padding-top: 16px;
}
.ghw116-body .ghwV5-alert {
    margin: 0;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

/* Universal content rhythm */
.ghw116-body .ghwV5-main > section:not(.ghw-hero-fixed):not(.ghw-trust-row):not(.ghw-category-section):not(.ghw-auction-section):not(.ghw-how-section) {
    scroll-margin-top: 120px;
}

.ghw116-body .ghw-page,
.ghw116-body [class$="-page"]:not(.ghw106-auth),
.ghw116-body [class*="-page "] {
    color: var(--ghw116-text);
}

.ghw116-body .ghw-panel,
.ghw116-body .ghw-card,
.ghw116-body .ghw-admin-card,
.ghw116-body .ghw-stats-card,
.ghw116-body .ghw-dash-card,
.ghw116-body [class$="-card"]:not(.ghw-auction-card):not(.ghw106-auth-card):not(.ghw107-form-card) {
    border-color: var(--ghw116-line);
}

.ghw116-body .ghw-panel,
.ghw116-body .ghw-admin-card,
.ghw116-body .ghw-dash-card {
    border-radius: var(--ghw116-radius);
    background: linear-gradient(160deg, rgba(21, 30, 42, .98), rgba(11, 16, 23, .98));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.ghw116-body h1,
.ghw116-body h2,
.ghw116-body h3,
.ghw116-body h4 { text-wrap: balance; }
.ghw116-body p { text-wrap: pretty; }

/* Buttons and links used across legacy and newer page generations */
.ghw116-body .ghw-btn,
.ghw116-body .ghw-primary,
.ghw116-body a[class*="primary"],
.ghw116-body button[class*="primary"],
.ghw116-body a[class$="-btn"],
.ghw116-body button[class$="-btn"] {
    border-radius: var(--ghw116-radius-sm);
}

.ghw116-body .ghw-btn,
.ghw116-body .ghw106-submit,
.ghw116-body .ghw107-submit-bar button,
.ghw116-body main button,
.ghw116-body main input[type="submit"] {
    min-height: 42px;
}

.ghw116-body .ghw-btn:hover,
.ghw116-body main button:hover,
.ghw116-body main input[type="submit"]:hover { filter: brightness(1.07); }

.ghw116-body main button:disabled,
.ghw116-body main input:disabled,
.ghw116-body main select:disabled,
.ghw116-body main textarea:disabled {
    cursor: not-allowed;
    opacity: .58;
}

/* Forms */
.ghw116-body .ghwV5-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.ghw116-body .ghwV5-main select,
.ghw116-body .ghwV5-main textarea,
.ghw116-body .ghw-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.ghw116-body .ghw-auth-card select,
.ghw116-body .ghw-auth-card textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #344151;
    border-radius: var(--ghw116-radius-sm);
    background: #080d14;
    color: #fff;
    caret-color: var(--ghw116-gold);
}

.ghw116-body .ghwV5-main textarea,
.ghw116-body .ghw-auth-card textarea { min-height: 120px; }
.ghw116-body .ghwV5-main input::placeholder,
.ghw116-body .ghwV5-main textarea::placeholder,
.ghw116-body .ghw-auth-card input::placeholder { color: #6f7c8d; }
.ghw116-body .ghwV5-main input:focus,
.ghw116-body .ghwV5-main select:focus,
.ghw116-body .ghwV5-main textarea:focus,
.ghw116-body .ghw-auth-card input:focus,
.ghw116-body .ghw-auth-card select:focus,
.ghw116-body .ghw-auth-card textarea:focus {
    border-color: rgba(255, 195, 40, .78);
    box-shadow: var(--ghw116-focus);
    outline: 0;
}
.ghw116-body .ghwV5-main input[type="checkbox"],
.ghw116-body .ghwV5-main input[type="radio"] { accent-color: var(--ghw116-orange); }

.ghw116-body .ghwV5-main label,
.ghw116-body .ghw-auth-card label {
    color: #edf1f6;
    font-weight: 750;
}
.ghw116-body .ghwV5-main small,
.ghw116-body .ghwV5-main .help-text,
.ghw116-body .ghwV5-main .form-text { color: var(--ghw116-muted); }

/* Tables */
.ghw116-body .ghwV5-main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ghw116-text);
}
.ghw116-body .ghwV5-main th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ghw116-line-strong);
    color: #95a3b4;
    background: rgba(255, 255, 255, .025);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}
.ghw116-body .ghwV5-main td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--ghw116-line);
    color: #dce3ec;
    vertical-align: middle;
}
.ghw116-body .ghwV5-main tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.ghw116-body .ghwV5-main .table-responsive,
.ghw116-body .ghwV5-main [class*="table-wrap"],
.ghw116-body .ghwV5-main [class*="table-responsive"] {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--ghw116-line);
    border-radius: var(--ghw116-radius);
}

/* Status and information language */
.ghw116-body [class*="status"],
.ghw116-body [class*="badge"] { letter-spacing: .02em; }
.ghw116-body .success,
.ghw116-body .is-success,
.ghw116-body [class*="status-approved"],
.ghw116-body [class*="status-active"],
.ghw116-body [class*="status-complete"] { color: #8ff2c2; }
.ghw116-body .warning,
.ghw116-body [class*="status-pending"] { color: #ffd878; }
.ghw116-body .danger,
.ghw116-body .error,
.ghw116-body [class*="status-rejected"],
.ghw116-body [class*="status-cancel"] { color: #ff9ba5; }

/* Empty states */
.ghw116-body .ghw-empty-state,
.ghw116-body [class$="-empty"],
.ghw116-body [class*="-empty "] {
    border-radius: var(--ghw116-radius-lg);
    border-color: var(--ghw116-line);
    background: linear-gradient(145deg, rgba(20, 29, 41, .94), rgba(10, 15, 22, .98));
}
.ghw116-body .ghw-empty-state h2,
.ghw116-body .ghw-empty-state h3,
.ghw116-body [class$="-empty"] h2,
.ghw116-body [class$="-empty"] h3 { color: #fff; }
.ghw116-body .ghw-empty-state p,
.ghw116-body [class$="-empty"] p { color: var(--ghw116-muted); }

/* Phase 107 seller studio refinement */
.ghw116-body .ghw107-wrap { width: min(1180px, calc(100% - 48px)); }
.ghw116-body .ghw107-seller-hero {
    padding: 46px 0 38px;
    background:
        radial-gradient(circle at 86% 20%, rgba(235, 35, 50, .22), transparent 35%),
        linear-gradient(135deg, #07090d, #111822 65%, #27080c);
}
.ghw116-body .ghw107-seller-hero h1 { letter-spacing: -.025em; }
.ghw116-body .ghw107-seller-hero p { color: #c2cad5; }
.ghw116-body .ghw107-form-page { padding: 40px 0 72px; }
.ghw116-body .ghw107-listing-form { gap: 16px; }
.ghw116-body .ghw107-form-card {
    border-radius: var(--ghw116-radius);
    border-color: var(--ghw116-line);
    background: linear-gradient(165deg, #131a24, #0b1017);
}
.ghw116-body .ghw107-form-card > header { padding: 18px 20px; }
.ghw116-body .ghw107-form-card > header b { width: 36px; height: 36px; }
.ghw116-body .ghw107-grid { gap: 16px; padding: 20px; }
.ghw116-body .ghw107-upload-zone { margin: 20px; border-radius: 10px; }
.ghw116-body .ghw107-option-grid { padding: 20px; }
.ghw116-body .ghw107-option-grid label { border-radius: 10px; }
.ghw116-body .ghw107-submit-bar { border-radius: var(--ghw116-radius); }

/* Orders, dashboards, account, and admin pages */
.ghw116-body .ghw61-orders-page,
.ghw116-body .ghw65-page,
.ghw116-body .ghw66-page,
.ghw116-body .ghw69-page,
.ghw116-body .ghw72-page,
.ghw116-body .ghw76-page,
.ghw116-body .ghw7880-page,
.ghw116-body .ghw83-page,
.ghw116-body .ghw91-page,
.ghw116-body .ghw92-page,
.ghw116-body .ghw94-page,
.ghw116-body .ghw95-page,
.ghw116-body .ghw97-page,
.ghw116-body .ghw98-page,
.ghw116-body .ghw99-page,
.ghw116-body .ghw100-page,
.ghw116-body .ghw104-page,
.ghw116-body .ghw110-page {
    padding-top: 32px;
    padding-bottom: 64px;
}

.ghw116-body .ghw61-order-hero,
.ghw116-body [class*="hero-card"],
.ghw116-body [class$="-hero"]:not(.ghw-hero-fixed):not(.ghw107-seller-hero):not(.ghw106-auth-story) {
    border-radius: var(--ghw116-radius-lg);
}

.ghw116-body .ghw61-order-card,
.ghw116-body .ghw61-order-stat-grid article,
.ghw116-body .ghw-seller-card,
.ghw116-body [class*="stat-grid"] article,
.ghw116-body [class*="stats-grid"] article {
    border-radius: var(--ghw116-radius);
    border-color: var(--ghw116-line);
    background: linear-gradient(155deg, rgba(23, 32, 45, .96), rgba(11, 16, 23, .98));
}

/* Authentication */
.ghw116-auth-standalone {
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 121, 0, .14), transparent 28rem),
        radial-gradient(circle at 90% 85%, rgba(235, 35, 50, .15), transparent 30rem),
        #07090d;
}
.ghw116-body .ghw-auth-shell { padding: 40px 20px 64px; }
.ghw116-body .ghw-auth-logo img { width: min(245px, 75vw); }
.ghw116-body .ghw-auth-card {
    width: min(520px, 100%);
    padding: 32px;
    border: 1px solid var(--ghw116-line-strong);
    border-radius: var(--ghw116-radius-lg);
    background: linear-gradient(160deg, rgba(22, 31, 44, .98), rgba(8, 12, 18, .99));
    box-shadow: var(--ghw116-shadow);
}
.ghw116-body .ghw-auth-card h1 {
    margin: 4px 0 24px;
    color: #fff;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1;
}
.ghw116-auth-kicker {
    margin: 0;
    color: var(--ghw116-gold);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ghw116-auth-home {
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--ghw116-line);
    color: #ffbd5e;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

/* Footer */
.ghw116-body .ghwV5-footer {
    padding: 48px 0 20px;
    border-top: 1px solid var(--ghw116-line);
    background: #040609;
}
.ghw116-body .ghwV5-footerGrid {
    grid-template-columns: 1.25fr .82fr .9fr .95fr 1.2fr;
    gap: 32px;
}
.ghw116-body .ghwV5-footerBrand img { width: 190px; }
.ghw116-body .ghwV5-footer h4 {
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
}
.ghw116-body .ghwV5-footer a {
    margin-bottom: 7px;
    color: #cbd3dd;
    font-size: 13px;
    font-weight: 650;
}
.ghw116-body .ghwV5-footer a:hover { color: #fff; }
.ghw116-body .ghwV5-footer p { color: var(--ghw116-muted); font-size: 13px; }
.ghw116-body .ghwV5-newsletter input { border-radius: var(--ghw116-radius-sm); }
.ghw116-body .ghwV5-newsletter button {
    border-radius: var(--ghw116-radius-sm);
    background: linear-gradient(135deg, var(--ghw116-red), #d51b12);
}
.ghw116-body .ghwV5-footerBottom {
    margin-top: 28px;
    color: #8491a1;
    font-size: 12px;
}
.ghw116-body .ghwV5-footerBottom span:last-child { max-width: 720px; text-align: right; }

/* Responsive */
@media (max-width: 1250px) {
    .ghw116-body .ghwV5-headerInner { grid-template-columns: 176px minmax(0, 1fr); }
    .ghw116-body .ghwV5-logo img { width: 170px; }
    .ghw116-body .ghwV5-mainNav > a { padding-inline: 8px; font-size: 12px; }
    .ghw116-body .ghwV5-search { display: none; }
}

@media (max-width: 1060px) {
    .ghw116-body .ghwV5-headerInner { min-height: 72px; }
    .ghw116-body .ghwV5-logo img { width: 180px; }
    .ghw116-body .ghwV5-menuBtn {
        min-height: 42px;
        border-radius: 10px;
        border-color: var(--ghw116-line-strong);
        background: rgba(255, 255, 255, .045);
        font-family: inherit;
        letter-spacing: 0;
        text-transform: none;
    }
    .ghw116-body .ghwV5-menuPanel {
        max-height: calc(100vh - 74px);
        overflow-y: auto;
        padding: 16px;
        border-color: var(--ghw116-line);
        background: rgba(8, 12, 18, .99);
    }
    .ghw116-body .ghwV5-mainNav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ghw116-body .ghwV5-mainNav > a {
        min-height: 44px;
        justify-content: center;
        border: 1px solid var(--ghw116-line);
        background: rgba(255, 255, 255, .035);
    }
    .ghw116-body .ghwV5-search { display: flex; }
    .ghw116-body .ghwV5-account > summary { max-width: none; }
    .ghw116-body .ghw116-account-menu { width: 100%; max-height: none; }
    .ghw116-body .ghwV5-footerGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ghw116-body .ghwV5-footerBottom span:last-child { text-align: left; }
}

@media (max-width: 820px) {
    .ghw116-body .ghwV5-wrap,
    .ghw116-body .ghw-wrap,
    .ghw116-body .ghw107-wrap { width: min(100% - 32px, 100%); }
    .ghw116-body .ghwV5-topbarInner { justify-content: center; }
    .ghw116-body .ghwV5-topLinks { display: none; }
    .ghw116-quickbar-inner { width: 100% !important; padding-inline: 16px; }
    .ghw116-menu-grid { grid-template-columns: 1fr; }
    .ghw116-menu-grid section.ghw116-admin-menu { grid-column: auto; }
    .ghw116-body .ghw107-grid.two,
    .ghw116-body .ghw107-grid.three,
    .ghw116-body .ghw107-grid.four,
    .ghw116-body .ghw107-option-grid { grid-template-columns: 1fr; }
    .ghw116-body .ghw107-seller-hero .ghw107-wrap { align-items: flex-start; flex-direction: column; }
    .ghw116-body .ghw107-seller-hero aside { width: 100%; }
    .ghw116-body .ghw107-photo-preview,
    .ghw116-body .ghw107-existing-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* JavaScript adds data-label attributes from table headers. */
    .ghw116-body table.ghw116-responsive-table thead { display: none; }
    .ghw116-body table.ghw116-responsive-table,
    .ghw116-body table.ghw116-responsive-table tbody,
    .ghw116-body table.ghw116-responsive-table tr,
    .ghw116-body table.ghw116-responsive-table td { display: block; width: 100%; }
    .ghw116-body table.ghw116-responsive-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--ghw116-line);
        border-radius: 12px;
        background: rgba(255, 255, 255, .025);
    }
    .ghw116-body table.ghw116-responsive-table td {
        min-height: 42px;
        display: grid;
        grid-template-columns: minmax(105px, 38%) minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--ghw116-line);
        text-align: left !important;
    }
    .ghw116-body table.ghw116-responsive-table td:last-child { border-bottom: 0; }
    .ghw116-body table.ghw116-responsive-table td::before {
        content: attr(data-label);
        color: #8e9bad;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }
}

@media (max-width: 620px) {
    .ghw116-body .ghwV5-wrap,
    .ghw116-body .ghw-wrap,
    .ghw116-body .ghw107-wrap { width: min(100% - 22px, 100%); }
    .ghw116-body .ghwV5-headerInner { grid-template-columns: minmax(0, 1fr) auto; }
    .ghw116-body .ghwV5-logo img { width: 154px; }
    .ghw116-body .ghwV5-menuBtn { padding-inline: 10px; }
    .ghw116-body .ghwV5-menuBtn strong { display: none; }
    .ghw116-body .ghwV5-mainNav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ghw116-body .ghwV5-actions { grid-template-columns: 1fr; }
    .ghw116-body .ghwV5-login,
    .ghw116-body .ghwV5-register,
    .ghw116-body .ghwV5-account > summary { width: 100%; }
    .ghw116-body .ghwV5-account > summary { justify-content: flex-start; }
    .ghw116-body .ghwV5-footerGrid { grid-template-columns: 1fr; gap: 26px; }
    .ghw116-body .ghwV5-footerBottom { align-items: flex-start; }
    .ghw116-body .ghw-auth-card { padding: 24px 18px; }
    .ghw116-body .ghw107-photo-preview,
    .ghw116-body .ghw107-existing-gallery { grid-template-columns: 1fr; }
    .ghw116-body .ghw107-submit-bar { align-items: stretch; flex-direction: column; }
    .ghw116-body .ghw107-submit-bar > div { margin-right: 0; }
    .ghw116-body .ghw107-submit-bar > a,
    .ghw116-body .ghw107-submit-bar button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ghw116-body *,
    .ghw116-body *::before,
    .ghw116-body *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .ghw116-body .ghwV5-topbar,
    .ghw116-body .ghwV5-header,
    .ghw116-body .ghw116-quickbar,
    .ghw116-body .ghwV5-footer,
    .ghw116-body button,
    .ghw116-body .ghw116-flash-stack { display: none !important; }
    .ghw116-body,
    .ghw116-body .ghwV5-main { background: #fff !important; color: #111 !important; }
    .ghw116-body .ghwV5-main * { color: #111 !important; box-shadow: none !important; }
}
