:root {
            /* Foundation — GS-460 system stack */
            --bg: #0B0E12;
            --bg-card: #12181F;
            --bg-elevated: #1A222C;
            --bg-secondary: #12181F;
            --border: #222B36;
            --border-color: #222B36;
            --border-light: #2A3542;
            --text: #F0F2F5;
            --text-primary: #F0F2F5;
            --text-secondary: #A0B0C0;
            --text-muted: #8494A7;
            --slate-200: #C0CCD8;
            --slate-300: #A0B0C0;
            --slate-400: #8494A7;

            /* Marketplace emerald (primary) */
            --accent: #34C08F;
            /* GS-896: this page does not load base.html, so the text accent is declared here */
            --accent-text: #34C08F;
            --accent-hover: #2BA87A;
            --market-500: #34C08F;
            --market-400: #4AE8AD;
            --market-bg: rgba(52, 192, 143, 0.08);
            --market-border: rgba(52, 192, 143, 0.18);
            --accent-soft: rgba(52, 192, 143, 0.10);

            /* Warm sparkle accent */
            --amber-light: #E8B04A;
            --amber: #E8B04A;
            --amber-bg: rgba(232, 176, 74, 0.12);
            --amber-border: rgba(232, 176, 74, 0.30);
            --amber-soft: rgba(232, 176, 74, 0.10);

            /* Status / utility */
            --success: #22C55E;
            --green: #22C55E;
            --green-soft: rgba(34, 197, 94, 0.12);
            --error: #E5484D;
            --info-blue: #4B8DE8;

            /* Condition grade palette (Brand Guide) */
            --grade-a: #22C55E; /* Excellent — emerald */
            --grade-a-bg: rgba(34, 197, 94, 0.12);
            --grade-b: #E8B04A; /* Good — brand amber */
            --grade-b-bg: rgba(232, 176, 74, 0.14);
            --grade-c: #E0A63C; /* Fair — orange-amber warning */
            --grade-c-bg: rgba(224, 166, 60, 0.12);
            --grade-d: #E5484D; /* Poor — red */
            --grade-d-bg: rgba(229, 72, 77, 0.12);
            --grade-n: #4B8DE8; /* New / aftermarket — blue tint */
            --grade-n-bg: rgba(75, 141, 232, 0.12);

            /* Seller verification tiers */
            --tier-neutral: #8494A7;
            --tier-id: #4B8DE8;          /* ID verified */
            --tier-business: #E0A63C;    /* Business verified (gold) */
            --tier-licensed: #22C55E;    /* Licensed dismantler */
            --tier-premium: #A855F7;     /* Premium seller */

            /* Typography */
            --font-display: 'Chakra Petch', sans-serif;
            --font-heading: 'DM Sans', sans-serif;
            --font-body: 'DM Sans', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
        }
        html, body { max-width: 100vw; overflow-x: hidden; }
        body { font-family: var(--font-body); background: var(--bg); color: var(--text); margin: 0; }
        *, *::before, *::after { box-sizing: border-box; }
        img, svg, video { max-width: 100%; height: auto; }
        h1, .au-brand { font-family: var(--font-display); }
        h2, h3 { font-family: var(--font-heading); }
        h4, h5, h6 { font-family: var(--font-heading); }
        a { color: var(--accent-text); text-decoration: none; }
        a:hover { color: var(--accent-hover); }

        /* Mono / numeric data per Brand Guide */
        .mono, .price, .au-price {
            font-family: var(--font-mono);
            font-variant-numeric: tabular-nums;
            font-feature-settings: "tnum";
        }

        /* ── GS-469 storefront topbar ──
           Desktop: [logo] [nav links grow] [utils]
           Mobile:  [logo] …… [burger]; links drawer full width
        */
        .au-nav {
            --ws-accent: #34C08F;
            --au-gutter: clamp(16px, 4vw, 32px);
            --au-max: 1200px;
            background: rgba(11,14,18,0.96);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 200;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }
        .au-nav-inner {
            max-width: var(--au-max);
            margin: 0 auto;
            padding: 0 var(--au-gutter);
            min-height: 64px;
            height: 64px;
            display: flex;
            align-items: center;
            gap: 16px;
            box-sizing: border-box;
            position: relative;
        }
        .au-brand {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            min-width: 0;
            line-height: 0;
        }
        .au-brand img.au-brand-logo {
            display: block;
            height: 40px;
            width: auto;
            max-width: min(220px, 46vw);
        }
        .au-brand img.au-brand-logo--sm { height: 36px; }
        .au-brand img.au-brand-logo--compact { display: none; height: 32px; }
        @media (max-width: 420px) {
            .au-brand img.au-brand-logo--full { display: none; }
            .au-brand img.au-brand-logo--compact { display: block; }
        }

        .au-nav-links {
            display: flex;
            align-items: stretch;
            gap: 2px;
            flex: 1 1 auto;
            min-width: 0;
            justify-content: flex-start;
            height: 100%;
            margin-left: 8px;
        }
        .au-nav-link {
            position: relative;
            display: inline-flex;
            align-items: center;
            color: #8A97A3;
            font-family: var(--font-heading);
            font-weight: 600;
            font-size: 0.88rem;
            text-decoration: none;
            padding: 0 14px;
            height: 100%;
            white-space: nowrap;
            transition: color 0.15s;
        }
        .au-nav-link:hover { color: #F4F7F9; }
        .au-nav-link.is-active,
        .au-nav-link.active { color: #34C08F; }
        .au-nav-link.is-active::after,
        .au-nav-link.active::after {
            content: "";
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 0;
            height: 2px;
            background: #34C08F;
            border-radius: 2px 2px 0 0;
        }
        .au-nav-link.au-nav-rp { color: #34C08F; }
        .au-nav-link.au-nav-rp:hover { color: #4AE8AD; }
        .au-nav-mobile-utils { display: none; }

        .au-nav-utils {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
            margin-left: auto;
        }
        .au-util-btn {
            font-family: var(--font-mono);
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #B9C4CE;
            text-decoration: none;
            padding: 0 12px;
            min-height: 36px;
            display: inline-flex;
            align-items: center;
            border: 1px solid #222B36;
            border-radius: 8px;
            background: #1A222C;
            white-space: nowrap;
        }
        .au-util-btn:hover {
            color: #F4F7F9;
            border-color: #8A97A3;
        }
        .au-vendor-cta { white-space: nowrap; flex-shrink: 0; }
        .au-ws-switch { position: relative; }
        .au-ws-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--font-mono);
            font-size: 0.62rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #F4F7F9;
            background: #1A222C;
            border: 1px solid #222B36;
            border-radius: 8px;
            padding: 0 12px;
            min-height: 36px;
            cursor: pointer;
            white-space: nowrap;
        }
        .au-ws-btn:hover, .au-ws-btn[aria-expanded="true"] {
            border-color: #34C08F;
            color: #34C08F;
        }
        .au-ws-mark { width: 16px; height: 16px; display: block; flex: 0 0 auto; }
        .au-ws-caret {
            width: 0; height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid currentColor;
            opacity: 0.7;
        }
        .au-ws-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            min-width: 240px;
            background: #12181F;
            border: 1px solid #222B36;
            border-radius: 10px;
            padding: 6px;
            box-shadow: 0 16px 40px rgba(0,0,0,0.45);
            z-index: 220;
        }
        .au-ws-menu[hidden] { display: none !important; }
        .au-ws-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 8px;
            color: #B9C4CE !important;
            text-decoration: none;
            font-family: var(--font-heading);
            font-weight: 600;
            font-size: 0.86rem;
        }
        .au-ws-item:hover {
            background: rgba(52,192,143,0.08);
            color: #F4F7F9 !important;
        }
        .au-ws-dot {
            width: 10px; height: 10px; flex: 0 0 10px;
            clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
        }
        .au-ws-dot--ai { background: #E0A63C; }
        .au-ws-dot--biz { background: #4B8DE8; }
        .au-ws-dot--mp { background: #34C08F; }
        .au-ws-dot--admin { background: #A855F7; }

        /* GS-545: platform admin cog on .au marketplace chrome */
        .au-util-admin {
            width: 34px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #C4B5FD;
            border-color: rgba(168, 85, 247, 0.35);
        }
        .au-util-admin:hover {
            color: #E9D5FF;
            border-color: rgba(168, 85, 247, 0.65);
            background: rgba(168, 85, 247, 0.12);
        }
        .au-nav-link--admin { color: #C4B5FD !important; }
        .au-nav-link--admin.is-active,
        .au-nav-link--admin:hover { color: #E9D5FF !important; }

        .au-burger {
            display: none;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
            width: 42px; height: 42px;
            border-radius: 8px;
            padding: 0;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }
        .au-burger svg { width: 22px; height: 22px; }

        /* Tablet: collapse util labels slightly; keep row */
        @media (max-width: 1100px) {
            .au-nav-link { padding: 0 10px; font-size: 0.84rem; }
            .au-ws-label { display: none; }
        }
        @media (max-width: 960px) {
            .au-nav-utils .au-util-btn { display: none; }
            /* GS-545: keep platform admin cog visible beside product switcher */
            .au-nav-utils .au-util-admin { display: inline-flex; }
        }

        /* Mobile drawer */
        @media (max-width: 860px) {
            .au-nav-inner {
                height: 56px;
                min-height: 56px;
                gap: 10px;
            }
            .au-brand img.au-brand-logo { height: 34px; }
            .au-nav-utils { display: none; }
            .au-burger { display: inline-flex; margin-left: auto; }
            .au-nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                height: auto;
                margin: 0;
                padding: 8px var(--au-gutter) 16px;
                background: rgba(11,14,18,0.98);
                border-bottom: 1px solid var(--border);
                box-shadow: 0 16px 32px rgba(0,0,0,0.35);
                max-height: min(70vh, 480px);
                overflow-y: auto;
            }
            .au-nav-links.open { display: flex; }
            .au-nav-link {
                height: auto;
                min-height: 48px;
                padding: 12px 4px;
                border-bottom: 1px solid rgba(255,255,255,0.04);
                font-size: 1rem;
            }
            .au-nav-link.is-active::after,
            .au-nav-link.active::after { display: none; }
            .au-nav-mobile-utils {
                display: flex;
                flex-direction: column;
                gap: 0;
                margin-top: 8px;
                padding-top: 8px;
                border-top: 1px solid #222B36;
            }
            .au-nav-mobile-utils .au-vendor-cta {
                margin-top: 12px;
                justify-content: center;
                width: 100%;
            }
        }

        /* System Request-a-Part banner */
        .rp-banner, .au-rp-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            background: #12181F;
            color: #F4F7F9 !important;
            padding: 12px 18px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            width: 100%;
            max-width: 100%;
            margin: 0;
            border: 1px solid #222B36;
            box-shadow: inset 3px 0 0 0 #34C08F;
            transition: border-color .15s, transform .15s;
            box-sizing: border-box;
        }
        .rp-banner:hover, .au-rp-banner:hover {
            transform: translateY(-1px);
            color: #F4F7F9 !important;
            border-color: rgba(52,192,143,0.35);
        }
        .rp-banner-pill, .au-rp-pill {
            background: #34C08F;
            color: #0B0E12;
            padding: 3px 10px 3px 9px;
            border-radius: 0;
            font-family: var(--font-mono);
            font-size: 0.62rem;
            letter-spacing: 0.09em;
            text-transform: uppercase;
            font-weight: 700;
            clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
            flex-shrink: 0;
        }
        .rp-banner-text { font-size: 0.9rem; font-family: var(--font-heading); text-align: center; }
        .rp-banner-arrow {
            font-family: var(--font-mono);
            font-size: 0.9rem;
            color: #34C08F;
            flex-shrink: 0;
        }
        .rp-side {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #34C08F;
            color: #0B0E12 !important;
            padding: 10px 12px;
            border-radius: 8px 0 8px 8px;
            clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
            text-align: center;
            font-family: var(--font-mono);
            font-weight: 600;
            font-size: 0.66rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            text-decoration: none;
            margin-bottom: 14px;
            min-height: 40px;
            box-sizing: border-box;
        }
        .rp-side:hover { filter: brightness(1.08); color: #0B0E12 !important; }

        /* Content column — shared gutters with nav */
        .au-content {
            --au-gutter: clamp(16px, 4vw, 32px);
            --au-max: 1200px;
            min-height: 60vh;
            width: 100%;
            box-sizing: border-box;
        }
        /* page_head must never paint on storefront */
        body.au-storefront .psh-band { display: none !important; }




        .au-ws-menu-label {
            font-family: var(--font-mono);
            font-size: 0.58rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #5E6B78;
            padding: 8px 12px 4px;
        }
        .au-ws-menu-sep {
            height: 1px;
            background: #222B36;
            margin: 6px 8px;
        }
        .au-ws-item-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        .au-ws-item-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: inherit;
            line-height: 1.2;
        }
        .au-ws-item-sub {
            font-family: var(--font-body);
            font-size: 0.72rem;
            font-weight: 500;
            color: #8A97A3;
            line-height: 1.25;
        }
        .au-ws-item:hover .au-ws-item-sub { color: #B9C4CE; }
        .au-ws-menu { min-width: 280px; }
        .au-ws-item { align-items: flex-start; padding: 10px 12px; }
        .au-ws-dot { margin-top: 4px; }
        .au-nav-mobile-label {
            font-family: var(--font-mono);
            font-size: 0.58rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #5E6B78;
            padding: 14px 4px 6px;
        }
        .au-nav-link--ai.is-active, .au-nav-mobile-products .au-nav-link--ai { }
        /* Keep product switcher visible on tablet even when Cart labels hide */
        @media (max-width: 960px) {
            .au-nav-utils .au-util-btn { display: none; }
            .au-nav-utils .au-ws-switch { display: inline-flex; }
        }

        .au-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 48px 24px 24px; background: #0B0E12; }
        .au-footer-inner { max-width: 1200px; margin: 0 auto; }
        .au-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
        @media (max-width: 1024px) { .au-footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
        @media (max-width: 640px) { .au-footer-grid { grid-template-columns: 1fr 1fr; } }
        .au-footer h5 { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; margin: 0 0 14px; }
        .au-footer a { display: block; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 8px; }
        .au-footer a:hover { color: var(--text); }
        .au-footer-section { border-top: 1px solid var(--border); padding-top: 28px; margin-bottom: 28px; }
        .au-footer-section h4 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
        .au-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; }
        @media (max-width: 1024px) { .au-footer-cols { grid-template-columns: repeat(3, 1fr); } }
        @media (max-width: 640px) { .au-footer-cols { grid-template-columns: repeat(2, 1fr); } }
        .au-footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 0.78rem; }
        .au-footer-bottom .vendor-link { color: var(--accent-text); font-weight: 600; }

        /* ── Hero CTAs (AU home + storefront pages) ──
           GS-547 primary fill; GS-552 Cars for sale + wrecking split + chamfer. */
        .au-hero-ctas {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }
        .au-hero-ctas__row {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }
        .au-hero-ctas__row--secondary {
            width: 100%;
        }
        .au-cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            min-height: 48px;
            border-radius: 0;
            border: 1px solid transparent;
            /* Storefront chamfer (not rounded) — matches .au-rp-pill / plates */
            clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
            font-family: var(--font-heading);
            font-size: 0.98rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1.2;
            text-decoration: none;
            cursor: pointer;
            box-sizing: border-box;
            transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, filter 0.15s, transform 0.15s;
            background: var(--accent);
            color: #0B0E12;
            box-shadow: 0 0 0 1px rgba(52, 192, 143, 0.25), 0 10px 28px rgba(52, 192, 143, 0.22);
        }
        .au-cta:hover {
            background: var(--accent-hover);
            color: #0B0E12;
            filter: brightness(1.04);
            box-shadow: 0 0 0 1px rgba(52, 192, 143, 0.35), 0 12px 32px rgba(52, 192, 143, 0.28);
        }
        .au-cta:focus-visible {
            outline: 2px solid var(--market-400);
            outline-offset: 3px;
        }
        .au-cta--secondary {
            background: transparent;
            color: var(--text);
            border-color: var(--border-light, var(--border));
            box-shadow: none;
            font-weight: 600;
        }
        .au-cta--secondary:hover {
            background: var(--bg-elevated);
            color: var(--text);
            border-color: var(--accent);
            filter: none;
            box-shadow: none;
        }

        /* ── topbar-slot: per-page action buttons injected via {% block topbar_actions %} ── */
        .topbar-slot { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding-left: 12px; min-width: 0; overflow: visible; }
