/* Dream Wheels AI — staging mini app */

:root {
    --bg: #070809;
    --bg-soft: #0d0f12;
    --panel: #161a22;
    --panel-2: #1b2029;
    --panel-3: #202631;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(220, 255, 0, 0.2);
    --text: #eef2f6;
    --text-muted: #a3adba;
    --text-subtle: #7e8896;
    --accent: #ddff00;
    --accent-strong: #e7ff3a;
    --accent-soft: rgba(221, 255, 0, 0.08);
    --success: #27d88a;
    --warning: #ffcc56;
    --danger: #ff6666;
    --info: #4da3ff;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --desktop-sidebar-left: 30px;
    --desktop-sidebar-width: 280px;
    --desktop-content-gap: 40px;
    --desktop-content-max: 1080px;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --radius-xs: 12px;
    --space-tight: 9px;
    --space-xs: 12px;
    --space-sm: 16px;
    --space-md: 24px;
    --shadow-panel: 0 18px 60px rgba(0, 0, 0, 0.28);
}

/* Support keeps every actionable block on the same content rail */
.support-panel .support-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
}

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

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 50% -10%, rgba(52, 59, 21, 0.2), transparent 30%),
        linear-gradient(180deg, #070809 0%, #090b0f 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    overscroll-behavior-y: contain;
}

.desktop-sidebar {
    position: fixed;
    inset: 30px auto 30px var(--desktop-sidebar-left);
    width: var(--desktop-sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(17, 20, 26, 0.92);
    box-shadow: var(--shadow-panel);
}

button,
input,
summary {
    font: inherit;
}

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

[hidden] {
    display: none !important;
}

#app {
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 20px 104px;
}

@media (min-width: 1040px) {
    #app {
        width: min(
            var(--desktop-content-max),
            calc(
                100vw - var(--desktop-sidebar-left) - var(--desktop-sidebar-width) -
                    var(--desktop-content-gap) - 40px
            )
        );
        margin-left: calc(
            var(--desktop-sidebar-left) + var(--desktop-sidebar-width) +
                var(--desktop-content-gap)
        );
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .topbar-actions {
        justify-content: space-between;
    }
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.brand-wordmark {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.24em;
    line-height: 1;
}

.brand-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.brand-light {
    color: var(--accent);
}

.brand-dim {
    color: #9198a3;
}

.topbar-actions {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-subtle);
    margin-left: auto;
}

.sidebar-nav {
    display: grid;
    gap: 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
    padding-right: 2px;
    scrollbar-width: thin;
}

.sidebar-section {
    display: grid;
    gap: 8px;
}

.sidebar-label {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0 12px;
}

.sidebar-item {
    appearance: none;
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    padding: 13px 14px 13px 18px;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-item:hover:not(.active) {
    transform: translateX(3px);
    color: var(--text);
    background: var(--accent-soft);
}

.sidebar-item.active {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.sidebar-item.active:hover {
    transform: translateX(3px);
}

.sidebar-account {
    appearance: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
    margin-top: 0;
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-account > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-account:hover,
.sidebar-account:focus-visible {
    border-color: rgba(221, 255, 0, 0.26);
    background: rgba(221, 255, 0, 0.06);
}

.account-settings-panel {
    padding-top: 24px;
}

.account-settings-head {
    display: grid;
    gap: 10px;
    padding: 0 20px 20px;
}

.account-settings-head .lede {
    margin: 0;
}

.account-settings-panel .form-row {
    align-items: center;
}

.account-settings-panel .form-row > div {
    min-width: 0;
}

.account-settings-panel .form-row p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.account-settings-note {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(39, 216, 138, 0.24);
    background: rgba(39, 216, 138, 0.07);
    color: var(--text-muted);
    line-height: 1.45;
}

.account-settings-empty,
.account-settings-error {
    padding: 14px 16px;
    color: var(--text-muted);
}

.account-link-dialog .auth-dialog-status[data-tone="error"] {
    color: var(--danger);
}

@media (max-width: 560px) {
    .account-settings-panel {
        padding-top: 20px;
    }

    .account-settings-panel .form-row {
        align-items: stretch;
        flex-direction: column;
    }

    .account-settings-panel .form-row .compact-button,
    .account-settings-panel .form-row .status-pill {
        align-self: stretch;
        width: 100%;
    }
}

.account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(221, 255, 0, 0.24);
    background: rgba(221, 255, 0, 0.1);
    color: var(--accent);
    font-weight: 900;
}

.account-name {
    min-width: 0;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.account-subtitle {
    min-width: 0;
    color: var(--text-subtle);
    font-size: 12px;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .mobile-brand {
        flex: 0 0 auto;
        font-size: 13px;
        letter-spacing: 0.17em;
        white-space: nowrap;
    }

    .topbar {
        align-items: center;
        flex-wrap: nowrap;
    }

    .topbar-actions {
        flex: 0 0 auto;
        gap: 0;
        justify-content: flex-end;
    }

    .website-auth-button {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-caption {
        display: none;
    }
}

.topbar-caption {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    text-align: left;
    margin-right: var(--space-md);
}

@media (max-width: 560px) {
    .topbar-caption {
        display: block;
        max-width: 9ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar.has-long-caption {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .topbar.has-long-caption .topbar-actions {
        display: contents;
    }

    .topbar.has-long-caption .topbar-caption {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-right: 0;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .topbar.has-long-caption .website-auth-button {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 400px) {
    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .topbar-actions {
        display: contents;
    }

    .topbar-caption {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-right: 0;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .website-auth-button {
        grid-column: 2;
        grid-row: 1;
    }
}

.menu-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.menu-button:active {
    transform: translateY(1px);
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
    background: rgba(221, 255, 0, 0.08);
    border-color: rgba(221, 255, 0, 0.25);
}

.menu-layer {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(17, 20, 26, 0.96);
    box-shadow: var(--shadow-panel);
}

.menu-item {
    appearance: none;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    padding: 14px 16px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.menu-item.active,
.menu-item:hover {
    background: rgba(221, 255, 0, 0.08);
    color: var(--accent-strong);
}

.menu-icon {
    width: 20px;
    text-align: center;
}

.menu-text {
    font-weight: 700;
}

.view {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
    min-width: 0;
}

.view > * {
    min-width: 0;
}

.view-action-row {
    display: flex;
    justify-content: flex-end;
}

.hero-panel,
.panel,
.collapsible {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 31, 40, 0.98), rgba(20, 23, 31, 0.98));
    box-shadow: var(--shadow-panel);
}

.hero-panel,
.panel {
    padding: 24px;
}

.hero-panel {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 22px;
}

.hero-panel.compact {
    min-height: auto;
}

.dashboard-hero {
    min-height: 280px;
    background:
        radial-gradient(circle at 88% 12%, rgba(221, 255, 0, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(29, 34, 43, 0.98), rgba(18, 21, 28, 0.98));
}

.dashboard-title span {
    display: block;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.dashboard-actions > button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 8px 10px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-sm);
}

.dashboard-balance-card,
.latest-render-card {
    display: grid;
    gap: var(--space-sm);
    min-width: 0;
}

.dashboard-balance-card[data-loading] > :not(.dashboard-card-skeleton),
.latest-render-card[data-loading] > :not(.dashboard-card-skeleton) {
    visibility: hidden;
}

.dashboard-card-skeleton {
    display: grid;
    gap: 16px;
    align-content: start;
    min-height: 284px;
}

.dashboard-card-skeleton[hidden] {
    display: none;
}

.dashboard-skeleton-line,
.dashboard-skeleton-island,
.dashboard-skeleton-preview {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background: var(--panel-3);
}

.dashboard-skeleton-line::after,
.dashboard-skeleton-island::after,
.dashboard-skeleton-preview::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    animation: dashboard-skeleton-shimmer 1.4s infinite;
}

@keyframes dashboard-skeleton-shimmer {
    to { transform: translateX(100%); }
}

.dashboard-skeleton-label { width: 34%; height: 12px; }
.dashboard-skeleton-title { width: 58%; height: 34px; }
.dashboard-skeleton-meta { width: 42%; height: 13px; }
.dashboard-skeleton-island { width: 100%; height: 146px; border-radius: 20px; }
.dashboard-skeleton-preview { width: 100%; height: 190px; border-radius: 18px; }

.dashboard-balance-card .panel-head,
.latest-render-card .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 18px;
}

.dashboard-balance-card,
.latest-render-card {
    container-type: inline-size;
}

.dashboard-balance-card .panel-head > div,
.latest-render-card .panel-head > div {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.dashboard-balance-card .panel-head h2,
.latest-render-card .panel-head h2,
.dashboard-balance-card .panel-head .section-label,
.latest-render-card .panel-head .section-label {
    margin: 0;
}

.balance-tile.dashboard-balance-display {
    display: grid;
    place-items: center;
    align-content: center;
    width: 100%;
    min-width: 0;
    min-height: 164px;
    padding: 20px;
    margin-top: 8px;
    text-align: center;
    border: 0;
    background: transparent;
}

.dashboard-balance-display .dashboard-balance-value {
    font-size: 54px;
}

.dashboard-balance-display .dashboard-balance-unit {
    font-size: 15px;
}

@media (max-width: 400px) {
    .dashboard-actions {
        gap: 8px;
    }

    .dashboard-actions > button {
        padding-inline: 8px;
        font-size: 14px;
    }
}

.dashboard-balance-card .compact-button,
.latest-render-card .status-pill {
    flex: 0 0 auto;
    align-self: flex-start;
    justify-self: end;
}

.dashboard-balance-card .dashboard-balance-action {
    justify-self: stretch;
    width: 100%;
}

.dashboard-balance-card {
    gap: var(--space-tight);
}

.dashboard-balance-card > .wallet-status-island[data-visible="false"] {
    display: none;
}

.dashboard-auth-action {
    width: 100%;
    margin-top: 8px;
}

.dashboard-auth-island {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 0;
}

.dashboard-auth-island[data-visible="true"] {
    padding: 12px 14px;
}

.dashboard-auth-island .wallet-status-copy {
    text-align: center;
}

.dashboard-auth-info {
    margin-top: 10px;
}

.dashboard-auth-info .wallet-status-sub {
    margin: 0;
}

.telegram-button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.dashboard-auth-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.dashboard-auth-error {
    margin-top: 10px;
    color: var(--danger);
}

.dashboard-expiry-card {
    display: grid;
    gap: 12px;
    padding: 17px 18px;
    border-radius: 20px;
    border: 1px solid rgba(221, 255, 0, 0.22);
    background: linear-gradient(145deg, rgba(42, 47, 27, 0.8), rgba(28, 32, 27, 0.7));
}

.dashboard-expiry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-expiry-head strong {
    font-size: 16px;
    line-height: 1.2;
}

.dashboard-expiry-link {
    padding: 0;
    color: var(--accent);
    font-weight: 900;
}

.dashboard-expiry-list,
.wallet-expiry-list {
    display: grid;
    gap: 10px;
}

.dashboard-expiry-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.dashboard-expiry-line strong {
    display: block;
    font-size: 14px;
}

.dashboard-expiry-line span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-expiry-date,
.wallet-expiry-date {
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-expiry-note,
.wallet-expiry-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 204, 86, 0.18);
    color: var(--warning);
    font-size: 13px;
    line-height: 1.38;
    font-weight: 800;
}

.dashboard-expiry-note::before,
.wallet-expiry-note::before {
    content: "⚠";
    font-size: 15px;
    line-height: 1.1;
}

@container (max-width: 640px) {
    .dashboard-balance-card .panel-head,
    .latest-render-card .panel-head {
        grid-template-columns: 1fr;
    }

    .dashboard-balance-card .compact-button,
    .latest-render-card .status-pill {
        justify-self: start;
    }
}

.latest-result-image,
.render-full-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    object-fit: contain;
}

.latest-meta,
.first-render-empty {
    color: var(--text-muted);
    line-height: 1.5;
}

.latest-render-card [data-latest-content] {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: clip;
}

.latest-preview-layout {
    display: grid;
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
    min-width: 0;
    align-items: stretch;
}

.latest-preview-info {
    display: grid;
    gap: 12px;
    min-width: 0;
    align-content: start;
}

.latest-preview-layout .latest-result-image {
    width: 100%;
    height: auto;
    min-height: 190px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    align-self: start;
}

.latest-render-actions {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
}

@container (max-width: 480px) {
    .latest-preview-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest-preview-layout .latest-result-image {
        height: auto;
        min-height: 0;
    }
}

.latest-render-actions .compact-button {
    min-width: 0;
    padding-inline: clamp(10px, 1.25vw, 16px);
    font-size: clamp(12px, 1.15vw, 16px);
}

.dashboard-fitment-context {
    font-size: 13px;
    font-weight: 800;
}

.dashboard-fitment-context.panel-note {
    font-size: 13px;
}

.latest-render-copy {
    display: grid;
    gap: 10px;
}

.latest-render-specs {
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
}

.first-render-empty {
    display: grid;
    gap: 10px;
}

.first-render-empty p {
    margin: 0;
}

.hero-copy {
    flex: 1 1 auto;
}

.eyebrow,
.section-label {
    margin: 0 0 10px;
    color: var(--text-subtle);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

h1,
h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1.06;
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(22px, 4vw, 28px);
    line-height: 1.16;
}

.lede,
.hero-copy p,
.hint-line,
.invoice-empty p,
.form-row p,
.summary-hint,
.miniapp-footer,
.meta {
    color: var(--text-muted);
}

.lede {
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.5;
}

.balance-tile {
    flex: 0 0 160px;
    min-width: 160px;
    padding: 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(221, 255, 0, 0.26);
    background: linear-gradient(180deg, rgba(46, 52, 19, 0.58), rgba(33, 37, 20, 0.78));
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
}

.balance-badge {
    font-size: 28px;
    line-height: 1;
}

.balance-value {
    font-size: 54px;
    font-weight: 900;
    line-height: 0.95;
    color: var(--accent);
}

.balance-unit {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 800;
}

.balance-note {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.balance-note-label {
    color: var(--text-muted);
}

.balance-note-value {
    color: var(--info);
}

.wallet-balance-tile {
    width: 100%;
    min-height: 220px;
    padding: 28px 24px;
}

.wallet-balance-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 148px;
    background:
        radial-gradient(circle at 86% 18%, rgba(221, 255, 0, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(29, 34, 43, 0.98), rgba(18, 21, 28, 0.98));
}

.wallet-balance-summary-copy {
    min-width: 0;
}

.wallet-balance-summary .section-label {
    margin-bottom: 12px;
}

.wallet-balance-figure {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.wallet-balance-value {
    color: var(--accent);
    font-size: clamp(40px, 7vw, 60px);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.wallet-balance-unit {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 800;
}

.wallet-balance-note {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.wallet-balance-action {
    flex: 0 0 auto;
    width: auto;
}

.dashboard-balance-subisland {
    width: min(220px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(43, 49, 61, 0.98), rgba(34, 40, 51, 0.98));
    text-align: center;
}

.dashboard-balance-subisland .balance-note {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.create-title span {
    display: block;
}

.panel-head,
.invoice-row,
.confirm-row,
.form-row,
.contact-row,
.doc-link,
.doc-row,
.support-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.invoice-empty,
.invoice-card,
.confirm-box,
.history-card,
.render-card,
.form-row,
.contact-row,
.doc-link,
.doc-row,
.support-link {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.invoice-empty,
.invoice-card,
.confirm-box,
.render-card {
    padding: 18px;
}

.invoice-empty {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.invoice-amount {
    font-size: 24px;
    font-weight: 800;
}

.invoice-card {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.last-invoice-panel {
    display: grid;
    gap: 18px;
}

.last-invoice-panel .panel-head {
    align-items: flex-start;
    gap: 20px;
}

.last-invoice-panel .panel-head > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.last-invoice-panel .section-label,
.last-invoice-panel h2 {
    margin: 0;
}

.last-invoice-panel h2 {
    font-size: clamp(20px, 3.5vw, 28px);
}

.warning-note {
    color: #ff8f8f;
}

.invoice-number {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.02;
}

.invoice-meta {
    margin-top: 6px;
    color: var(--text-subtle);
    font-size: 13px;
}

.confirm-row {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.confirm-row span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-subtle);
}

.confirm-row strong {
    font-size: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    color: var(--text-muted);
}

.status-pill.success {
    color: var(--success);
    border-color: rgba(39, 216, 138, 0.3);
    background: rgba(39, 216, 138, 0.08);
}

.status-pill.warning {
    color: var(--warning);
}

.status-pill.neutral,
.status-pill.muted {
    color: var(--text-muted);
}

.wizard-panel {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
}

.wallet-wizard-header {
    display: grid;
    gap: 10px;
}

.wallet-wizard-header .wallet-auth-notice {
    margin: 0;
}

.wizard-panel .topup-wizard > .topup-step-island {
    padding: 0;
    border: 0;
    background: transparent;
}

.wallet-pay-button {
    width: 100%;
}

.topup-mode-switch[hidden],
.custom-topup[hidden] {
    display: none !important;
}

.wallet-status-island {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    max-height: 320px;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        max-height 280ms ease,
        opacity 220ms ease,
        transform 280ms ease,
        padding 280ms ease,
        margin 280ms ease,
        border-color 220ms ease,
        background 220ms ease;
}

.wallet-status-island[data-visible="true"] {
    padding: 16px 18px;
    opacity: 1;
    transform: translateY(0);
}

.wallet-status-island[data-visible="false"] {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    background: rgba(255, 255, 255, 0);
    pointer-events: none;
}

.wallet-status-island.tone-loading {
    border-color: rgba(221, 255, 0, 0.22);
    background: rgba(221, 255, 0, 0.07);
}

.wallet-status-island.tone-neutral {
    color: var(--text-muted);
}

.beta-notice {
    align-items: start;
}

.beta-notice .wallet-status-text {
    line-height: 1.5;
}

.wallet-status-island.tone-success {
    border-color: rgba(39, 216, 138, 0.22);
    background: rgba(39, 216, 138, 0.08);
    color: var(--success);
}

.wallet-status-island.tone-warning {
    border-color: rgba(255, 204, 86, 0.22);
    background: rgba(255, 204, 86, 0.08);
    color: var(--warning);
}

.upload-format-warning {
    margin-top: 4px;
}

.wallet-status-island.tone-error {
    border-color: rgba(255, 102, 102, 0.24);
    background: rgba(255, 102, 102, 0.08);
    color: #ff8f8f;
}

.wallet-status-island.tone-critical {
    border-color: rgba(255, 102, 102, 0.3);
    background: rgba(255, 102, 102, 0.1);
    color: #ffb0b0;
}

.wallet-auth-notice {
    margin-top: 12px;
}

.wallet-auth-attention {
    animation: wallet-auth-pulse 900ms ease both;
}

@keyframes wallet-auth-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 86, 0); }
    45% { box-shadow: 0 0 0 6px rgba(255, 204, 86, 0.18); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 86, 0); }
}

.identity-critical-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
}

.identity-critical-copy {
    min-width: 0;
}

.identity-critical-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.identity-critical-head .wallet-status-title {
    color: #ffd0d0;
}

.identity-critical-head .wallet-status-text {
    margin-top: 6px;
    color: #ffc0c0;
    font-size: 13px;
    line-height: 1.45;
}

.status-pill.danger {
    border-color: rgba(255, 102, 102, 0.28);
    background: rgba(255, 102, 102, 0.12);
    color: #ffb0b0;
}

.identity-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.critical-button {
    border-color: rgba(255, 102, 102, 0.28);
    background: rgba(255, 102, 102, 0.1);
    color: #ffd0d0;
}

.critical-button:hover {
    border-color: rgba(255, 102, 102, 0.42);
    background: rgba(255, 102, 102, 0.18);
}

.critical-button.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #ffc0c0;
}

.wallet-status-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(221, 255, 0, 0.18);
    border-top-color: var(--accent);
    animation: wallet-spin 0.9s linear infinite;
}

.wallet-status-copy {
    min-width: 0;
}

.wallet-status-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: inherit;
}

.wallet-status-text {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

@keyframes wallet-spin {
    to {
        transform: rotate(360deg);
    }
}

.topup-wizard {
    display: grid;
    gap: 12px;
}

.topup-island {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.topup-step-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.topup-step-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(221, 255, 0, 0.12);
    border: 1px solid rgba(221, 255, 0, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 900;
    flex: 0 0 auto;
}

.topup-step-title {
    font-size: 17px;
    font-weight: 800;
}

.topup-step-sub {
    margin-top: 4px;
    color: var(--text-subtle);
    line-height: 1.45;
}

.topup-reset-button {
    width: auto;
    justify-self: start;
    min-height: 36px;
    padding-inline: 4px;
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
}

.topup-reset-button:hover {
    border-color: transparent;
    background: transparent;
    color: var(--accent-strong);
}

.topup-packages-island {
    padding: 0;
    border: 0;
    background: transparent;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.topup-card {
    appearance: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.topup-card[data-selected="true"],
.topup-card:hover {
    border-color: rgba(221, 255, 0, 0.34);
    background: rgba(221, 255, 0, 0.09);
}

.topup-card[data-selected="true"] {
    box-shadow: inset 0 0 0 1px rgba(221, 255, 0, 0.18);
}

.topup-card:active {
    transform: translateY(1px);
}

.topup-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.package-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.package-name {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.package-meta {
    color: var(--text-subtle);
    font-size: 14px;
    line-height: 1.35;
}

.custom-topup-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.custom-topup-row input,
.topup-email {
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.custom-topup-row input:focus,
.topup-email:focus {
    border-color: rgba(221, 255, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(221, 255, 0, 0.08);
}

.topup-email-error {
    margin: 0;
    color: #ff8f8f;
    font-size: 13px;
    font-weight: 600;
}

.email-privacy-note,
.payment-acceptance {
    margin: 0;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.55;
}

.wallet-privacy-link {
    margin: -4px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.email-privacy-note a,
.payment-acceptance a,
.legal-inline-links a,
.photo-consent-compact a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-color: rgba(221, 255, 0, 0.35);
    text-underline-offset: 3px;
}

.custom-topup-preview {
    color: var(--text-subtle);
    font-size: 13px;
}

.topup-summary {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.topup-summary-title {
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.topup-summary-meta {
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
}

.topup-summary-meta[hidden],
.topup-summary-values[hidden] {
    display: none;
}

.topup-summary-values {
    display: grid;
    gap: 3px;
}

.topup-summary-amount {
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
}

.topup-summary-credits,
.topup-summary-duration {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.topup-summary-receipt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.secure-payment-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(39, 216, 138, 0.2);
    border-radius: 18px;
    background: rgba(39, 216, 138, 0.07);
}

.secure-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(39, 216, 138, 0.12);
}

.secure-payment-note strong {
    color: var(--success);
    font-size: 14px;
}

.wallet-pay-button {
    min-height: 52px;
}

.secure-payment-note {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.payment-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 159, 67, 0.26);
    background: rgba(255, 159, 67, 0.08);
}

.last-invoice-panel .payment-card,
.last-invoice-panel .invoice-card {
    margin-top: 0;
}

.last-invoice-panel .payment-card {
    position: relative;
    padding-right: 190px;
}

.payment-card[data-status="paid"] {
    border-color: rgba(39, 216, 138, 0.28);
    background: rgba(39, 216, 138, 0.08);
}

.payment-card[data-status="failed"],
.payment-card[data-status="cancelled"],
.payment-card[data-status="expired"] {
    border-color: rgba(255, 123, 123, 0.3);
    background: rgba(255, 123, 123, 0.08);
}

.payment-card-empty {
    border-color: rgba(221, 255, 0, 0.25);
    background: rgba(221, 255, 0, 0.06);
}

.payment-card-title {
    font-size: 18px;
    font-weight: 900;
}

.payment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.payment-card-top .status-pill,
.payment-history-item .status-pill {
    align-self: center;
}

.last-invoice-panel .payment-card-top .status-pill {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.payment-card-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.payment-card-amount {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
}

.payment-card-renders {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.3;
}

.payment-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.4;
}

.payment-card-meta span {
    overflow-wrap: anywhere;
}

.payment-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(221, 255, 0, 0.28);
    background: rgba(221, 255, 0, 0.12);
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

.topup-general-error {
    color: #ff8f8f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.history-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-subtle);
}

.history-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

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

.step {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
}

.step.active {
    border-color: rgba(221, 255, 0, 0.34);
    background: rgba(221, 255, 0, 0.09);
    color: var(--text);
}

.step-index {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.step-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.wizard-pane {
    display: grid;
    gap: 16px;
}

.field-label {
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.amount-chip,
.primary-button,
.ghost-button,
.compact-button,
.link-button,
.payment-card-action,
.website-auth-button,
.summary-action,
.doc-link,
.doc-row,
.support-link {
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.amount-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 18px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    cursor: pointer;
}

.amount-chip.active,
.amount-chip:hover {
    border-color: rgba(221, 255, 0, 0.32);
    background: rgba(221, 255, 0, 0.09);
}

.input-shell {
    display: block;
}

.input-shell input {
    width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.input-shell input:focus {
    border-color: rgba(221, 255, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(221, 255, 0, 0.08);
}

.hint-line {
    font-size: 14px;
}

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

.step-actions.split {
    justify-content: space-between;
}

.primary-button,
.ghost-button,
.compact-button,
.link-button,
.payment-card-action,
.website-auth-button {
    appearance: none;
    border-radius: 18px;
    cursor: pointer;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(221, 255, 0, 0.25);
    background: var(--accent);
    color: #151811;
    padding: 16px 28px;
    font-weight: 900;
}

.primary-button:hover {
    background: var(--accent-strong);
}

.primary-button:disabled,
.ghost-button:disabled,
.compact-button:disabled,
.link-button:disabled,
.payment-card-action:disabled,
.website-auth-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ghost-button,
.compact-button,
.link-button,
.payment-card-action,
.website-auth-button,
.summary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 18px;
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
}

.compact-button {
    padding-inline: 16px;
}

.link-button {
    padding-inline: 18px;
}

.payment-card-action {
    padding-inline: 18px;
}

.website-auth-button,
.summary-action {
    border-color: rgba(221, 255, 0, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-strong);
}

.website-auth-button {
    font-size: 13px;
}

.summary-action {
    align-self: center;
}

.website-auth-button:disabled {
    cursor: wait;
}

.ghost-button:hover,
.compact-button:hover,
.link-button:hover,
.payment-card-action:hover,
.website-auth-button:hover,
.summary-action:hover {
    border-color: rgba(221, 255, 0, 0.25);
    background: rgba(221, 255, 0, 0.07);
}

.brand-button:focus-visible,
.sidebar-item:focus-visible,
.primary-button:focus-visible,
.ghost-button:focus-visible,
.compact-button:focus-visible,
.link-button:focus-visible,
.payment-card-action:focus-visible,
.website-auth-button:focus-visible,
.summary-action:focus-visible,
.bottom-nav-item:focus-visible,
.sheet-item:focus-visible,
.support-link:focus-visible,
.doc-link:focus-visible,
.doc-row:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(7, 8, 9, 0.92), 0 0 0 4px rgba(221, 255, 0, 0.3);
}

.support-link:focus-visible,
.doc-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 26px rgba(255, 255, 255, 0.11);
}

@media (hover: hover) {
    .support-link:hover,
    .doc-link:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.58);
        background: rgba(255, 255, 255, 0.065);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 26px rgba(255, 255, 255, 0.11);
    }
}

.ghost-button:active,
.primary-button:active,
.amount-chip:active,
.compact-button:active,
.link-button:active,
.payment-card-action:active,
.website-auth-button:active,
.summary-action:active,
.support-link:active,
.doc-link:active,
.doc-row:active {
    transform: translateY(1px);
}

.panel-note {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.panel-note.neutral {
    color: var(--warning);
    border-color: rgba(255, 204, 86, 0.24);
    background: rgba(255, 204, 86, 0.08);
}

.panel-note.error {
    color: #ff8b8b;
    border-color: rgba(255, 102, 102, 0.24);
    background: rgba(255, 102, 102, 0.08);
}

.panel-note.success {
    color: var(--success);
    border-color: rgba(39, 216, 138, 0.22);
    background: rgba(39, 216, 138, 0.08);
}

.panel-note.warning {
    color: var(--warning);
    border-color: rgba(255, 204, 86, 0.24);
    background: rgba(255, 204, 86, 0.08);
}

.collapsible {
    overflow: hidden;
}

.collapsible summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
}

.payment-history-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.payment-history-details summary > span:first-child {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.history-summary-copy {
    color: var(--text-subtle);
    font-size: 14px;
    line-height: 1.4;
}

.payment-history-details .history-summary-title {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.collapsible summary::-webkit-details-marker {
    display: none;
}

.summary-action {
    color: var(--accent);
    font-weight: 700;
    align-self: center;
}

.history-list,
.list,
.support-grid,
.docs-list,
.form-stack {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

.list {
    padding-top: 20px;
}

.create-upload-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
}

.create-upload-flow > * {
    min-width: 0;
    max-width: 100%;
}

.upload-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.upload-photo-card {
    display: grid;
    align-content: start;
    gap: var(--space-xs);
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(27, 31, 40, 0.98), rgba(20, 23, 31, 0.98));
    box-shadow: var(--shadow-panel);
}

.upload-photo-card .section-label {
    margin-bottom: 0;
}

.photo-consent-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(221, 255, 0, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.photo-consent-card > *,
.photo-consent-heading > * {
    min-width: 0;
    max-width: 100%;
}

.photo-consent-card[hidden],
.photo-consent-compact[hidden] {
    display: none;
}

.photo-consent-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.photo-consent-heading h2 {
    margin: 0;
    font-size: 18px;
}

.photo-consent-heading p {
    margin: 5px 0 0;
    color: var(--text-subtle);
    line-height: 1.5;
}

.photo-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid rgba(221, 255, 0, 0.2);
    background: rgba(221, 255, 0, 0.055);
}

.photo-consent-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.14);
    color: var(--text);
    line-height: 1.5;
    cursor: pointer;
}

.photo-consent-check input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.legal-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--text-subtle);
    font-size: 13px;
}

.consent-cancel {
    justify-self: start;
}

.photo-consent-compact {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(39, 216, 138, 0.18);
    border-radius: 16px;
    background: rgba(39, 216, 138, 0.06);
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.55;
}

.create-flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.create-source-card .panel-note {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-subtle);
}

.fitment-form-section .panel-note,
.fitment-verdict-card .panel-note {
    margin: 0;
}

.error-support-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
}

.error-support-link[hidden] {
    display: none;
}

.fitment-panel {
    display: grid;
    gap: 12px;
}

.fitment-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fitment-actions {
    justify-content: flex-start;
}

.fitment-context-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.fitment-panel > .wallet-status-island[data-visible="false"] {
    display: none;
}

.fitment-preview-badge {
    border-color: rgba(116, 211, 255, 0.22);
    background: rgba(116, 211, 255, 0.1);
    color: #c9f0ff;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fitment-shell {
    display: grid;
    gap: 16px;
}

.fitment-shell.fitment-step-transition > * {
    animation: fitment-step-fade 360ms ease both;
}

@keyframes fitment-step-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.website-auth-button .telegram-button-icon,
.dashboard-auth-action .telegram-button-icon {
    display: none;
}

.auth-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 6, 9, 0.78);
    backdrop-filter: blur(12px);
}

.auth-dialog-backdrop[hidden] {
    display: none;
}

.auth-dialog {
    position: relative;
    width: min(100%, 460px);
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: var(--panel, #171a20);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-dialog-header {
    display: grid;
    gap: 8px;
}

.auth-dialog-wordmark {
    margin: 0 0 4px;
    font-size: 14px;
}

.auth-dialog-header h2 {
    margin: 0;
}

.auth-dialog-description {
    display: grid;
    gap: 2px;
    margin: 0;
    color: var(--text-subtle);
    line-height: 1.5;
}

.auth-dialog-description p {
    margin: 0;
}

.auth-dialog-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-subtle);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.auth-dialog-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.auth-dialog-form {
    display: grid;
    gap: 12px;
}

.auth-dialog-label {
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 800;
}

.auth-dialog-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font: inherit;
}

.auth-dialog-input:focus {
    border-color: rgba(221, 255, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(221, 255, 0, 0.1);
}

.auth-dialog-input[aria-invalid="true"] {
    border-color: rgba(255, 119, 119, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 119, 119, 0.1);
}

.auth-dialog-field-error {
    margin: -4px 0 0;
    color: var(--danger, #ff8b8b);
    font-size: 13px;
    line-height: 1.4;
}

.auth-otp-input {
    letter-spacing: 0.32em;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
}

.auth-turnstile {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.auth-turnstile:has(iframe) {
    min-height: 66px;
}

.auth-dialog-primary {
    width: 100%;
}

.auth-dialog-divider {
    align-items: center;
    color: var(--text-subtle);
    display: flex;
    gap: 12px;
    font-size: 12px;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.auth-dialog-divider::before,
.auth-dialog-divider::after {
    background: rgba(255, 255, 255, 0.1);
    content: "";
    flex: 1;
    height: 1px;
}

.auth-dialog-telegram {
    width: 100%;
}

.auth-telegram-icon {
    flex: 0 0 18px;
    height: 18px;
    width: 18px;
}

.auth-dialog-legal,
.auth-dialog-otp-destination {
    color: var(--text-subtle);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

.auth-dialog-legal a {
    color: var(--text);
    text-underline-offset: 3px;
}

.auth-dialog-otp-destination {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    margin-top: -4px;
    overflow-wrap: anywhere;
    text-align: center;
}

.auth-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 16px;
}

.auth-dialog-resend-row {
    align-items: center;
    color: var(--text-subtle);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 4px 8px;
    line-height: 1.4;
}

.auth-dialog-resend-row .link-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--accent-strong);
    font: inherit;
    font-weight: 800;
    min-height: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
}

.auth-dialog-resend-row .link-button:disabled {
    color: var(--text-subtle);
    cursor: default;
    opacity: 1;
}

.auth-dialog-tertiary {
    align-self: center;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text-subtle);
    font-weight: 800;
    min-height: 32px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-dialog-tertiary:hover {
    background: transparent;
    border-color: transparent;
    color: var(--text);
}

.auth-dialog-back-button {
    justify-self: center;
}

.auth-dialog-account-card {
    align-items: center;
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.auth-dialog-account-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.auth-dialog-account-copy strong,
.auth-dialog-account-copy span {
    overflow-wrap: anywhere;
}

.auth-dialog-account-copy span {
    color: var(--text-subtle);
    font-size: 12px;
}

.auth-logout-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-logout-confirm {
    border-color: rgba(255, 119, 119, 0.32);
    color: #ffabab;
}

.auth-logout-confirm:hover {
    background: rgba(255, 119, 119, 0.08);
    border-color: rgba(255, 119, 119, 0.5);
    color: #ffc2c2;
}

.auth-dialog-restored {
    display: grid;
    gap: 12px;
}

.auth-dialog-restored-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.auth-dialog-status {
    min-height: 20px;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.4;
}

.auth-dialog-cooldown {
    color: var(--text-subtle);
    font-size: 12px;
}

.auth-dialog-status[data-tone="error"] {
    color: var(--danger);
}

@media (max-width: 560px) {
    .auth-dialog-backdrop {
        align-items: end;
        padding: 10px;
    }

    .auth-dialog {
        width: 100%;
        padding: 26px 20px 20px;
        border-radius: 24px;
    }

    .auth-dialog-resend-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fitment-shell.fitment-step-transition > * {
        animation: none;
    }
}

/* Standard Fitment V2 runtime surface */
.fitment-v2-context {
    padding: 18px;
}

.fitment-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fitment-pair-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
}

.fitment-pair-media {
    position: relative;
    display: grid;
    height: 250px;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(221, 255, 0, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(42, 50, 64, 0.92), rgba(15, 18, 24, 0.98));
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 800;
}

.fitment-pair-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fitment-pair-card[data-fitment-rim-preview] .fitment-pair-media {
    place-items: center;
}

.fitment-pair-card[data-fitment-rim-preview] .fitment-rim-image-frame {
    width: min(46%, 240px);
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.fitment-pair-card[data-fitment-rim-preview] .fitment-rim-image-frame .fitment-pair-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fitment-pair-copy {
    display: grid;
    gap: 4px;
    padding: 14px 16px 16px;
}

.fitment-pair-copy strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.2;
}

.fitment-pair-copy small {
    color: var(--text-muted);
    font-size: 14px;
}

.fitment-flow-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(22, 26, 34, 0.82);
}

.fitment-flow-tab {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: transparent;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
}

.fitment-flow-tab:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.fitment-flow-tab.active { border-color: rgba(221, 255, 0, 0.22); background: var(--accent-soft); color: var(--accent-strong); }
.fitment-flow-copy { display: grid; gap: 5px; min-width: 0; }
.fitment-flow-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 850; }
.fitment-flow-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fitment-flow-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--text-subtle); }
.fitment-flow-tab[data-state="success"] .fitment-flow-dot { background: var(--success); }
.fitment-flow-tab[data-state="warning"] .fitment-flow-dot { background: var(--warning); }
.fitment-flow-tab[data-state="danger"] .fitment-flow-dot { background: var(--danger); }
.fitment-flow-tab[data-state="info"] .fitment-flow-dot { background: var(--info); }
.fitment-flow-state { overflow: hidden; color: var(--text-subtle); font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.fitment-flow-tab.active .fitment-flow-state { color: var(--text-muted); }

.fitment-workspace-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(221, 255, 0, 0.17);
    border-radius: 18px;
    background: rgba(221, 255, 0, 0.045);
}

.fitment-workspace-summary > div { display: grid; gap: 4px; min-width: 0; }
.fitment-workspace-summary strong { overflow-wrap: anywhere; font-size: 18px; }
.fitment-workspace-summary span,
.fitment-workspace-summary small { color: var(--text-muted); font-size: 13px; }
.fitment-workspace-summary .fitment-summary-copy { width: 100%; }
.fitment-summary-label {
    color: var(--text-subtle) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}
.fitment-modification-summary {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}
.fitment-modification-summary .fitment-modification-row {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 0;
}
.fitment-modification-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
}
.fitment-modification-label { color: var(--text-muted); font-size: 13px; }
.fitment-modification-row strong { font-size: 15px; }
.fitment-modification-row .compact-button { justify-self: end; }
.fitment-modification-picker {
    display: grid;
    gap: 10px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fitment-modification-list { display: grid; gap: 2px; }
.fitment-modification-option {
    appearance: none;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.fitment-modification-option:last-of-type { border-bottom: 0; }
.fitment-modification-option:hover,
.fitment-modification-option.selected { color: var(--accent-strong); }
.fitment-modification-option:focus-visible {
    outline: 2px solid rgba(221, 255, 0, 0.58);
    outline-offset: 3px;
    border-radius: 6px;
}
.fitment-modification-option-marker { min-height: 1.25em; color: var(--accent-strong); font-weight: 900; }
.fitment-modification-option-copy { display: grid; gap: 3px; min-width: 0; }
.fitment-modification-option-copy strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.fitment-modification-option-copy span { overflow-wrap: anywhere; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.fitment-modification-feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.fitment-modification-feedback .compact-button { flex: 0 0 auto; }

.fitment-source-disclosure {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
}

.fitment-source-disclosure summary {
    display: block;
    width: 100%;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
    outline: none;
}

.fitment-source-disclosure summary::-webkit-details-marker { display: none; }
.fitment-source-disclosure summary::marker { content: ""; }
.fitment-source-disclosure summary:hover { color: var(--text); }
.fitment-source-disclosure summary:focus-visible {
    outline: 2px solid rgba(221, 255, 0, 0.58);
    outline-offset: 4px;
    border-radius: 6px;
}
.fitment-source-disclosure .fitment-source-entry { padding-top: 12px; }
.fitment-source-details { display: grid; gap: 12px; padding-top: 12px; }
.fitment-source-detail { display: grid; gap: 4px; min-width: 0; }
.fitment-source-detail-label { color: var(--text-muted); font-size: 12px; font-weight: 800; }
.fitment-source-detail-value,
.fitment-source-detail-secondary { overflow-wrap: anywhere; word-break: break-word; }
.fitment-source-detail-value { color: var(--text); font-size: 14px; }
.fitment-source-detail-secondary { color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.fitment-render-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}
.fitment-render-copy { min-width: 0; }
.fitment-render-copy strong { display: block; font-size: 15px; }
.fitment-render-copy span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.fitment-stale-recovery { display: flex; justify-content: flex-start; }
.fitment-form-section[data-fitment-section="result"] { scroll-margin-top: 24px; }

@media (max-width: 760px) {
    .fitment-v2-context { padding: 10px; }
    .fitment-pair { gap: 10px; }
    .fitment-pair-media { height: 150px; min-height: 0; }
    .fitment-pair-copy { padding: 10px 10px 11px; }
    .fitment-pair-copy strong { font-size: 14px; }
    .fitment-pair-copy small { font-size: 11px; line-height: 1.35; }
    .fitment-flow-nav { gap: 4px; padding: 6px; }
    .fitment-flow-tab { padding: 10px 4px; text-align: left; }
    .fitment-flow-copy { gap: 4px; }
    .fitment-flow-name { align-items: flex-start; gap: 5px; }
    .fitment-flow-copy strong {
        overflow: visible;
        overflow-wrap: anywhere;
        font-size: 11px;
        text-overflow: clip;
        white-space: normal;
    }
    .fitment-flow-state {
        overflow: visible;
        font-size: 10px;
        min-height: 24px;
        text-overflow: clip;
        white-space: normal;
    }
    .fitment-form-grid { grid-template-columns: 1fr; }
    .fitment-workspace-summary { align-items: flex-start; flex-direction: column; }
    .fitment-workspace-summary .compact-button { width: 100%; }
    .fitment-modification-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
    .fitment-modification-label { grid-column: 1 / -1; }
    .fitment-modification-row .compact-button { width: auto; }
    .fitment-modification-feedback { align-items: flex-start; flex-direction: column; }
    .fitment-variant-empty .ghost-button { width: 100%; }
    .fitment-render-action { display: grid; padding: 16px; }
    .fitment-render-action .ghost-button { width: 100%; }
}

.fitment-basics-card,
.fitment-overview-card,
.fitment-form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.fitment-verdict-card {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 10px;
    padding: 20px 18px 18px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(130% 150% at 100% 0%, rgba(7, 12, 14, 0.55) 0%, rgba(7, 12, 14, 0.88) 45%, rgba(7, 12, 14, 0.97) 100%),
        url("/assets/fitment/workshop-fitment.jpg") top right / cover no-repeat,
        linear-gradient(180deg, rgba(27, 31, 40, 0.98), rgba(20, 23, 31, 0.98));
}

.fitment-verdict-head { display: grid; gap: 0; min-width: 0; }
.fitment-verdict-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.fitment-verdict-title[data-tone="success"] { color: var(--success); }
.fitment-verdict-title[data-tone="warning"] { color: var(--warning); }
.fitment-verdict-title[data-tone="danger"] { color: var(--danger); }
.fitment-verdict-title[data-tone="info"] { color: var(--info); }
.fitment-verdict-title[data-tone="muted"] { color: var(--text-muted); }
.fitment-verdict-copy { margin: 0; max-width: 62ch; color: var(--text); font-size: 16px; line-height: 1.45; }
.fitment-verdict-precheck-secondary,
.fitment-verdict-stale-previous,
.fitment-verdict-disclaimer { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.fitment-verdict-stale-previous { color: var(--text-subtle); }
.fitment-verdict-precheck-actions { display: flex; justify-content: flex-start; }
.fitment-verdict-groups { display: grid; gap: 8px; }
.fitment-verdict-fields { display: grid; gap: 0; }
.fitment-verdict-field {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}
.fitment-verdict-field:last-child { border-bottom: 0; }
.fitment-verdict-field::before {
    flex: 0 0 auto;
    width: 17px;
    color: var(--success);
    content: "✓";
    font-weight: 900;
}
.fitment-verdict-field[data-status="conditional"]::before { color: var(--warning); content: "!"; }
.fitment-verdict-field[data-status="unknown"]::before { color: var(--info); content: "?"; }
.fitment-verdict-field[data-status="fail"]::before { color: var(--danger); content: "×"; }
.fitment-verdict-group {
    display: grid;
    gap: 5px;
    padding: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}
.fitment-verdict-group strong { color: var(--text); font-size: 12px; }
.fitment-verdict-group[data-kind="blocking"] { color: var(--warning); }
.fitment-verdict-group[data-kind="conditions"] {
    padding: 14px 16px;
    border: 1px solid rgba(255, 204, 86, 0.28);
    border-radius: 16px;
    background: rgba(255, 204, 86, 0.055);
}
.fitment-verdict-footer.fitment-result-info {
    display: grid;
    gap: 8px;
    margin-top: 2px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(77, 163, 255, 0.1);
}
.fitment-result-info .panel-note {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(225, 237, 255, 0.88);
    font-size: 13px;
    line-height: 1.5;
}
.fitment-result-info .fitment-verdict-disclaimer {
    color: rgba(194, 213, 241, 0.78);
}
.fitment-verdict-recheck { display: flex; justify-content: flex-start; }

.fitment-basics-head,
.fitment-form-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.fitment-form-section[data-fitment-section="vehicle"] .fitment-form-head {
    grid-template-columns: minmax(0, 1fr);
}

.fitment-basics-head h2,
.fitment-form-head h2 {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: 0;
    margin: 0;
}

.fitment-basics-copy,
.fitment-overview-meta {
    margin: 0;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.45;
}

.fitment-state-line,
.fitment-axis-summary {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.fitment-vehicle-helper {
    display: grid;
    gap: 3px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

.fitment-vehicle-helper span:first-child {
    color: var(--text);
    font-weight: 750;
}

.fitment-state-line[data-state="confirmed_ready"],
.fitment-state-line[data-state="confirmed"] {
    color: var(--success);
}

.fitment-state-line[data-state="suggested"],
.fitment-state-line[data-state="partial"],
.fitment-state-line[data-state="complete_unconfirmed"] {
    color: var(--warning);
}

.fitment-validation-message {
    display: block;
    margin-top: 5px;
    color: var(--warning);
    font-size: 12px;
    line-height: 1.35;
}

.fitment-field input[aria-invalid="true"],
.fitment-field select[aria-invalid="true"] {
    border-color: rgba(255, 204, 86, 0.6);
}

.fitment-notice-stack {
    display: grid;
    gap: 8px;
}

.fitment-notice-stack .panel-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
}

.fitment-readiness {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 204, 86, 0.2);
    background: rgba(255, 204, 86, 0.07);
}

.fitment-readiness[data-ready="true"] {
    border-color: rgba(39, 216, 138, 0.22);
    background: rgba(39, 216, 138, 0.08);
}

.fitment-rim-variant-picker {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(116, 211, 255, 0.28);
    border-radius: 16px;
    background: rgba(116, 211, 255, 0.06);
}

.fitment-parser-conflicts {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 204, 86, 0.3);
    border-radius: 16px;
    background: rgba(255, 204, 86, 0.07);
}

.fitment-parser-conflict {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.fitment-parser-conflict-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fitment-setup-mode {
    max-width: 460px;
}

.fitment-rear-rim {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(116, 211, 255, 0.24);
    border-radius: 18px;
    background: rgba(116, 211, 255, 0.05);
}

.fitment-rear-rim h3 {
    margin: 0;
    font-size: 17px;
}

.fitment-rim-variant-picker p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.fitment-rim-variant-list {
    display: grid;
    gap: 8px;
}

.fitment-rim-variant {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--text);
    font: inherit;
    text-align: left;
}

.fitment-readiness strong {
    color: var(--text);
    font-size: 14px;
}

.fitment-readiness span {
    color: var(--text-muted);
    font-size: 13px;
}

.fitment-basic-grid {
    display: grid;
    gap: 0;
}

.fitment-basic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fitment-basic-row:last-child {
    border-bottom: 0;
}

.fitment-basic-row span {
    color: var(--text-muted);
}

.fitment-basic-row strong {
    text-align: right;
}

.fitment-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fitment-overview-grid[data-collapsed="true"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fitment-overview-grid[data-collapsed="true"] .fitment-overview-card {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px;
    border-color: rgba(116, 211, 255, 0.28);
    background: rgba(116, 211, 255, 0.06);
}

.fitment-overview-grid[data-collapsed="true"] .fitment-overview-copy {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 6px;
}

.fitment-overview-grid[data-collapsed="true"] .fitment-overview-title {
    color: var(--text-subtle);
    font-size: 11px;
    white-space: nowrap;
}

.fitment-overview-grid[data-collapsed="true"] .fitment-overview-value {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fitment-overview-grid[data-collapsed="true"] .fitment-overview-specs,
.fitment-overview-grid[data-collapsed="true"] .fitment-overview-meta,
.fitment-overview-grid[data-collapsed="true"] button {
    display: none;
}

.fitment-overview-toggle {
    justify-self: start;
}

.fitment-overview-copy {
    display: grid;
    gap: 6px;
}

.fitment-source-entry {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.fitment-variant-picker,
.fitment-variant-list {
    display: grid;
    gap: 10px;
}

.fitment-variant-choice {
    appearance: none;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(221, 255, 0, 0.2);
    border-radius: 14px;
    background: rgba(221, 255, 0, 0.04);
    color: var(--text);
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
}

.fitment-variant-choice span {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
    order: 1;
}

.fitment-variant-choice strong {
    font-size: 15px;
    line-height: 1.25;
    order: 2;
}

.fitment-variant-empty {
    display: grid;
    gap: 6px;
    padding: 14px 0 2px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.fitment-variant-empty strong {
    color: var(--text);
    font-size: 15px;
}

.fitment-variant-empty .ghost-button {
    justify-self: start;
    margin-top: 4px;
}

.fitment-source-status {
    display: grid;
    gap: 3px;
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.fitment-source-status strong {
    color: var(--text);
    font-size: 13px;
}

.fitment-source-status span:empty {
    display: none;
}

.fitment-source-status[data-tone="success"] {
    color: var(--success);
}

.fitment-source-status[data-tone="warning"] {
    color: var(--warning);
}

.fitment-source-status[data-tone="error"] {
    color: #ff8b8b;
}

.fitment-source-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fitment-field[data-resolving] {
    opacity: 0.48;
}

.fitment-field[data-source-applied] input {
    border-color: rgba(221, 255, 0, 0.38);
    box-shadow: 0 0 0 3px rgba(221, 255, 0, 0.07);
    animation: fitment-source-field-in 0.45s ease-out;
}

@keyframes fitment-source-field-in {
    from { transform: translateY(4px); opacity: 0.45; }
    to { transform: translateY(0); opacity: 1; }
}

.fitment-overview-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.fitment-overview-specs,
.fitment-basics-specs {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.fitment-overview-value {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fitment-form {
    padding: 0;
}

.fitment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fitment-field {
    display: grid;
    gap: 8px;
}

.fitment-field span {
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 700;
}

.fitment-field input,
.fitment-field select {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    outline: none;
}

.fitment-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.fitment-field select option {
    background: var(--panel-2);
    color: var(--text);
}

.fitment-field input:focus,
.fitment-field select:focus {
    border-color: rgba(221, 255, 0, 0.34);
    box-shadow: 0 0 0 3px rgba(221, 255, 0, 0.08);
}

.fitment-field[data-invalid="true"] input,
.fitment-field[data-invalid="true"] select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 104, 104, 0.12);
}

.fitment-field-state {
    color: var(--text-subtle);
    font-size: 11px;
    font-weight: 750;
}

.fitment-catalogue-state {
    min-height: 15px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.fitment-catalogue-state[data-state="selected"] {
    color: var(--success);
}

.fitment-catalogue-state[data-state="failed"] {
    color: var(--danger);
}

.fitment-catalogue-state[data-state="no_data"] {
    color: var(--text-muted);
}

.fitment-catalogue-retry {
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
}

.fitment-field[data-state="confirmed"] .fitment-field-state { color: var(--success); }
.fitment-field[data-state="suggested"] .fitment-field-state,
.fitment-field[data-state="entered"] .fitment-field-state { color: var(--warning); }

.fitment-field [data-fitment-custom]:not([hidden]) {
    margin-top: 2px;
}

.fitment-candidate-row {
    max-height: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 180ms ease, opacity 160ms ease;
}

.fitment-field:focus-within .fitment-candidate-row {
    max-height: 120px;
    opacity: 1;
}

.fitment-field.has-candidates > span:first-child::after {
    content: "AI";
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(221, 255, 0, 0.2);
    border-radius: 999px;
    color: var(--accent-strong);
    font-size: 10px;
    font-weight: 850;
}

.fitment-candidate {
    appearance: none;
    max-width: 100%;
    min-height: 34px;
    border: 1px solid rgba(221, 255, 0, 0.16);
    border-radius: 999px;
    background: rgba(221, 255, 0, 0.035);
    color: var(--text-muted);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.fitment-candidate:hover {
    border-color: rgba(221, 255, 0, 0.36);
    background: rgba(221, 255, 0, 0.12);
}

@media (max-width: 1039px) {
    .fitment-overview-grid[data-collapsed="true"] {
        grid-template-columns: 1fr;
    }
}

.full-span {
    grid-column: 1 / -1;
}

.identity-flow {
    display: grid;
    gap: 16px;
}

.rim-source-preflight {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(27, 31, 40, 0.98), rgba(20, 23, 31, 0.98));
    box-shadow: var(--shadow-panel);
}

.rim-source-preflight p {
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.45;
}

.fitment-field em {
    color: var(--text-subtle);
    font-style: normal;
    font-weight: 700;
}

.identity-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.identity-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.identity-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.identity-card h2 {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: 0;
}

.confidence-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(221, 255, 0, 0.24);
    background: rgba(221, 255, 0, 0.07);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.identity-choice-list {
    display: grid;
    gap: 8px;
}

.identity-choice {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    text-align: left;
    font-weight: 850;
}

.identity-choice[data-selected="true"] {
    border-color: rgba(221, 255, 0, 0.42);
    background: rgba(221, 255, 0, 0.08);
    color: var(--accent-strong);
}

.identity-card [data-rim-confirm][data-selected="true"] {
    border-color: rgba(221, 255, 0, 0.42);
    background: rgba(221, 255, 0, 0.08);
    color: var(--accent-strong);
}

.identity-choice small {
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 750;
}

.identity-choice[data-selected="true"] small {
    color: var(--success);
}

.identity-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.identity-metric {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}

.identity-metric span {
    color: var(--text-subtle);
    font-size: 12px;
}

.identity-metric strong {
    font-size: 18px;
}

.identity-note {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 204, 86, 0.22);
    background: rgba(255, 204, 86, 0.07);
    color: var(--warning);
    font-size: 13px;
    font-weight: 800;
}

.identity-note.warning {
    margin-top: 2px;
}

.identity-note.neutral {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
}

.review-summary {
    display: grid;
    gap: 2px;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-row:last-child {
    border-bottom: 0;
}

.review-row span {
    color: var(--text-muted);
}

.review-row strong {
    text-align: right;
}

.full-width {
    width: 100%;
}

.history-card {
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.render-card {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 14px;
    align-items: center;
}

.cabinet-render-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    overflow: hidden;
}

.cabinet-render-card.is-open .render-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "body action";
    gap: 16px;
    align-items: center;
}

.cabinet-render-card.is-open .render-thumb-wrap {
    display: none;
}

.cabinet-render-card.is-open .render-thumb-image {
    object-fit: cover;
}

.cabinet-render-card.is-open .render-title {
    font-size: 22px;
}

.cabinet-render-card.is-open .render-subtitle {
    font-size: 14px;
}

.cabinet-render-card.is-open .render-body {
    gap: 6px;
}

.render-summary {
    display: grid;
    grid-template-columns: minmax(160px, 30%) minmax(0, 1fr) minmax(118px, auto);
    grid-template-areas: "thumb body action";
    gap: 16px;
    align-items: center;
}

.render-thumb-wrap {
    grid-area: thumb;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.render-thumb-image,
.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cabinet-render-card .render-thumb-image {
    object-fit: cover;
}

.render-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(221, 255, 0, 0.08), rgba(255, 255, 255, 0.03));
}

.render-title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

.render-body {
    display: grid;
    gap: 8px;
    grid-area: body;
    min-width: 0;
    align-self: center;
}

.render-info-island {
    display: grid;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.render-subtitle {
    color: var(--text-subtle);
    font-size: 15px;
    line-height: 1.4;
}

.render-rim-specs {
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 750;
}

.render-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.render-demo-note {
    margin-top: 2px;
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 204, 86, 0.22);
    border-radius: 14px;
    background: rgba(255, 204, 86, 0.08);
    color: var(--warning);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.render-info-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
}

.render-info-island .status-pill {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 12px;
}

.render-empty {
    justify-content: flex-start;
}

.render-card-action {
    grid-area: action;
    justify-self: end;
    align-self: center;
}

.render-card-action .compact-button {
    width: 100%;
    min-width: 118px;
}

.render-date-group {
    display: grid;
    gap: 10px;
}

.render-date-group + .render-date-group {
    margin-top: 22px;
}

.render-date-group > h2 {
    margin: 0 0 2px;
    font-size: 18px;
}

.render-disclosure {
    display: grid;
    gap: 14px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    padding: 0;
    transition:
        max-height 260ms ease,
        opacity 240ms ease,
        transform 260ms ease,
        padding 260ms ease;
}

.render-disclosure[data-visible="true"] {
    max-height: 1800px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 14px;
}

.render-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.render-side {
    display: grid;
    gap: 12px;
}

.render-viewer {
    overflow: hidden;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.15);
}

.render-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    padding: 5px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.render-segmented button {
    appearance: none;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 850;
    cursor: pointer;
}

.render-segmented button.active {
    background: var(--accent);
    color: #0a0b0a;
}

.render-segmented button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.render-asset-frame {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #0c0e11;
}

.render-full-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.render-asset-error {
    display: grid;
    gap: 4px;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
    color: var(--text-muted);
}

.render-asset-error strong {
    color: var(--text);
}

.render-asset-error span {
    font-size: 13px;
}

.render-asset-notice {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 86, 0.2);
    background: rgba(255, 204, 86, 0.07);
    color: var(--warning);
    font-size: 12px;
    font-weight: 800;
}

.render-expanded-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.render-feedback {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.render-feedback h3 {
    margin: 0;
    font-size: 15px;
}

.render-feedback p {
    margin: -4px 0 2px;
    color: var(--text-muted);
    font-size: 12px;
}

.render-feedback-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.render-feedback-button,
.render-reason {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.render-feedback-button {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 13px;
    font-weight: 850;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.render-feedback-button:hover:not(:disabled) {
    border-color: rgba(221, 255, 0, 0.4);
    background: rgba(221, 255, 0, 0.08);
    transform: translateY(-1px);
}

.render-feedback-button:focus-visible,
.render-reason:focus-visible {
    outline: 3px solid rgba(221, 255, 0, 0.28);
    outline-offset: 2px;
}

.render-feedback-button.like.selected {
    color: var(--success);
    border-color: rgba(39, 216, 138, 0.42);
    background: rgba(39, 216, 138, 0.1);
}

.render-feedback-button.dislike.selected {
    color: var(--warning);
    border-color: rgba(255, 204, 86, 0.42);
    background: rgba(255, 204, 86, 0.1);
}

.render-feedback-button:disabled,
.render-reason:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.render-feedback-reasons {
    display: none;
    gap: 8px;
}

.render-feedback-reasons.visible {
    display: grid;
    gap: 8px;
}

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

.render-reason-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.render-reason {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
}

.render-reason.selected {
    color: var(--warning);
    border-color: rgba(255, 204, 86, 0.42);
    background: rgba(255, 204, 86, 0.1);
}

.render-feedback-note {
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(39, 216, 138, 0.24);
    background: rgba(39, 216, 138, 0.08);
    color: #8ef2bf;
    font-size: 12px;
    font-weight: 800;
}

.render-feedback-error {
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 102, 0.22);
    background: rgba(255, 102, 102, 0.08);
    color: #ff8b8b;
    font-size: 12px;
    font-weight: 800;
}

.wallet-expiry-section,
.wallet-history-section {
    display: grid;
    gap: 14px;
}

.wallet-history-stack {
    display: grid;
    gap: 16px;
    padding: 4px 20px 20px;
}

.wallet-sections-panel {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.wallet-sections-panel > .topup-island {
    padding: 18px;
}

.wallet-section-title {
    margin: 0;
    font-size: clamp(20px, 3vw, 25px);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.wallet-history-island {
    gap: 16px;
}

.wallet-history-island-head {
    display: grid;
    gap: 6px;
}

.wallet-history-island-head-split {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.wallet-history-caption {
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.45;
}

.wallet-history-list.history-list {
    padding: 0;
    gap: 12px;
}

.wallet-history-pager {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.render-card-buttons {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: flex-end;
    gap: 10px;
}

.latest-render-actions.render-card-buttons {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
}

.render-detail-hero {
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.render-detail-hero .compact-button {
    flex: 0 0 auto;
}

.render-detail-page {
    display: grid;
    gap: 14px;
}

.render-detail-page > h2,
.render-detail-page > .meta {
    margin: 0;
}

.render-expanded-actions > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.render-fitment-cta {
    white-space: nowrap;
}

.wallet-history-page-button {
    min-height: 38px;
    padding-inline: 14px;
}

.wallet-history-page-label {
    min-width: 94px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.wallet-expiry-row,
.payment-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}

.wallet-expiry-row strong,
.payment-history-item strong {
    display: block;
    font-size: 16px;
}

.payment-history-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.payment-history-amount {
    font-size: 17px;
}

.payment-history-renders {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.wallet-expiry-row .meta,
.payment-history-item .meta {
    margin-top: 4px;
    color: var(--text-muted);
    line-height: 1.4;
}

.payment-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.wallet-expiry-inline-note {
    padding: 18px 22px;
    border-radius: 20px;
    border: 1px solid rgba(39, 216, 138, 0.22);
    background: rgba(39, 216, 138, 0.08);
    color: var(--success);
    font-size: 14px;
    font-weight: 800;
}

.wallet-expiry-inline-note::before {
    content: none;
}

.form-row,
.contact-row,
.doc-link,
.doc-row {
    padding: 16px 18px;
}

.form-row strong,
.contact-row strong {
    font-size: 15px;
}

.photo-guide-panel {
    display: grid;
    gap: 20px;
}

.photo-guide-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .fitment-overview-grid {
        grid-template-columns: 1fr;
    }
}

.photo-guide-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.photo-guide-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.photo-guide-examples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.photo-guide-example {
    display: grid;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

.photo-guide-example {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-3);
}

.photo-guide-example img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-guide-wheel-examples .photo-guide-example img {
    object-fit: contain;
    background: #f7f7f7;
}

.photo-guide-example figcaption {
    display: grid;
    gap: 3px;
    padding: 0 10px 10px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.photo-guide-example figcaption span {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.photo-guide-example.is-good { border-color: rgba(39, 216, 138, 0.28); }
.photo-guide-example.is-good figcaption span { color: var(--success); }
.photo-guide-example.is-bad { border-color: rgba(255, 204, 86, 0.28); }
.photo-guide-example.is-bad figcaption span { color: var(--warning); }

.photo-guide-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.photo-guide-checklist li {
    position: relative;
    padding-left: 22px;
}

.photo-guide-checklist li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--success);
    font-weight: 900;
}

.photo-guide-warning {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 204, 86, 0.2);
    border-radius: 14px;
    background: rgba(255, 204, 86, 0.06);
    color: #ead39b;
    font-size: 12px;
    line-height: 1.45;
}

.photo-guide-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(221, 255, 0, 0.22);
    border-radius: 20px;
    background: rgba(221, 255, 0, 0.055);
}

.photo-guide-ready > div {
    display: grid;
    gap: 5px;
}

.photo-guide-ready strong { color: var(--text); }
.photo-guide-ready span { color: var(--text-muted); font-size: 13px; }
.photo-guide-ready .primary-button { flex: 0 0 auto; }
}

.support-panel .support-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 !important;
}

.docs-list {
    grid-template-columns: 1fr;
}

.support-link,
.doc-link,
.doc-row {
    min-height: 68px;
    padding: 16px 18px;
}

.support-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
}

.support-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.045);
}

.support-link-copy,
.doc-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.support-link-copy strong,
.doc-link-copy strong {
    color: var(--text);
    font-size: 15px;
}

.support-link-copy small,
.doc-link-copy small {
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.support-panel,
.support-section,
.support-refund-block {
    display: grid;
    gap: 12px;
}

.support-panel {
    gap: 24px;
}

.support-guide-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.support-section .section-label {
    margin: 0;
}

.support-response-note,
.docs-edition-note {
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text-subtle);
    font-size: 13px;
    line-height: 1.5;
}

.support-response-note {
    border: 1px solid rgba(39, 216, 138, 0.18);
    background: rgba(39, 216, 138, 0.06);
}

.docs-edition-note {
    margin: 0 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.doc-link,
.doc-row,
.contact-row {
    align-items: center;
}

.result-panel {
    min-height: 380px;
}

.result-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.status-block,
.result-block,
.error-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    min-height: 320px;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.status-text,
.result-title {
    font-size: 20px;
    font-weight: 800;
}

.status-sub,
.result-caption {
    color: var(--text-muted);
    max-width: 38ch;
}

.status-debug {
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-muted);
    text-align: left;
}

.result-icon,
.error-icon {
    font-size: 44px;
}

.error-block {
    border-radius: 24px;
    border: 1px solid rgba(255, 102, 102, 0.18);
    background: rgba(255, 102, 102, 0.08);
    padding: 32px 20px;
}

.error-text {
    color: #ff8b8b;
    font-size: 18px;
    max-width: 28ch;
}

.error-copy {
    max-width: 34ch;
    margin: -4px 0 4px;
    color: var(--text-muted);
}

.dropzone {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-height: 196px;
    padding: 28px 20px;
    border-radius: 22px;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: center;
}

.dropzone:hover {
    border-color: rgba(221, 255, 0, 0.3);
    background: rgba(221, 255, 0, 0.05);
}

.dropzone-icon {
    display: grid;
    place-items: center;
    width: 100%;
    font-size: 40px;
    line-height: 1;
}

.dropzone-sub {
    color: var(--text-subtle);
}

.preview {
    display: grid;
    gap: 12px;
    animation: preview-enter 220ms ease-out both;
}

.photo-upload-status {
    margin: 0;
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
}

.preview-media {
    width: 100%;
    aspect-ratio: var(--preview-aspect-ratio, 4 / 3);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: aspect-ratio 320ms ease, border-color 220ms ease;
}

.preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes preview-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.miniapp-footer {
    padding: 16px 0 0;
    text-align: center;
    font-size: 12px;
}

.footer-separator {
    margin: 0 6px;
}

.fallback-button {
    position: static;
    width: 100%;
    margin: 0;
    padding: 16px 18px;
    border: 0;
    border-radius: 18px;
    background: var(--accent);
    color: #161811;
    font-weight: 900;
}

body.has-fallback-main-button #app {
    padding-bottom: 132px;
}

.fallback-button:disabled {
    opacity: 0.55;
}

.mobile-bottom-nav {
    position: static;
    width: min(calc(100% - 24px), 980px);
    margin: 0 auto 10px;
    z-index: 1;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(17, 20, 26, 0.96);
    box-shadow: var(--shadow-panel);
}

.fitment-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.fitment-steps li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text-subtle);
}

.fitment-steps li.active {
    border-color: rgba(218, 255, 54, .42);
    color: var(--text);
    background: var(--accent-soft);
}

.fitment-steps li.complete {
    border-color: rgba(221, 255, 0, 0.22);
    color: var(--text);
}

.fitment-steps li.complete span {
    border-color: rgba(221, 255, 0, 0.35);
    background: rgba(221, 255, 0, 0.12);
    color: var(--accent);
}

.fitment-steps span {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    font-weight: 800;
}

.fitment-steps .active span { background: var(--accent); color: #10130b; }
.fitment-steps strong { font-size: 14px; }
.fitment-steps small { font-size: 12px; line-height: 1.3; }

.bottom-nav-item,
.sheet-item {
    appearance: none;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    cursor: pointer;
}

.bottom-nav-item {
    min-height: 44px;
    font-size: 12px;
}

.bottom-nav-item.active {
    color: var(--accent);
    background: var(--accent-soft);
}

@media (max-width: 360px) {
    .mobile-bottom-nav {
        width: calc(100% - 12px);
        gap: 2px;
        padding: 5px;
        border-radius: 20px;
    }

    .bottom-nav-item {
        min-height: 42px;
        font-size: 10px;
        letter-spacing: -0.02em;
    }
}

.more-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.38);
}

.more-sheet {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(88px + var(--safe-bottom));
    z-index: 40;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(17, 20, 26, 0.98);
    box-shadow: var(--shadow-panel);
}

.sheet-handle {
    justify-self: center;
    width: 44px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.sheet-item {
    min-height: 52px;
    padding: 0 16px;
    text-align: left;
}

.sheet-item:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

@media (max-width: 1039px) {
    body {
        height: 100dvh;
        min-height: 100dvh;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .desktop-sidebar {
        display: none;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    #app {
        min-height: 0;
        overflow-y: auto;
        padding-bottom: 28px;
        scroll-padding-bottom: 28px;
    }
}

@media (min-width: 1040px) {
    .mobile-brand {
        display: none;
    }
}

@media (max-width: 760px) {
    .upload-photo-grid {
        grid-template-columns: 1fr;
    }

    body.has-fallback-main-button #app {
        padding-bottom: calc(172px + var(--safe-bottom));
    }

    #app {
        width: min(100%, 580px);
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-panel {
        flex-direction: column;
    }

    .balance-tile {
        min-width: 0;
        width: 100%;
    }

    .dashboard-grid,
    .identity-confirmation-grid,
    .identity-metrics,
    .fitment-form-grid {
        grid-template-columns: 1fr;
    }

    .identity-card-head,
    .review-row,
    .fitment-basics-head,
    .fitment-form-head {
        grid-template-columns: 1fr;
    }

    .review-row strong {
        text-align: left;
    }

    .render-detail-grid {
        grid-template-columns: 1fr;
    }

    .fitment-steps {
        grid-template-columns: 1fr;
    }

    /* Keep the three overview cards usable on narrow mobile viewports. */
    .fitment-overview-grid,
    .fitment-overview-grid[data-collapsed="true"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .fitment-panel > *,
    .fitment-shell > * {
        min-width: 0;
        max-width: 100%;
    }

    .fitment-context-row > button {
        max-width: 100%;
    }

    .fitment-verdict-card > *,
    .fitment-verdict-head > * {
        min-width: 0;
        max-width: 100%;
    }

    .mobile-bottom-nav {
        display: grid;
    }
}

@media (max-width: 980px) and (min-width: 761px) {
    .render-summary {
        grid-template-columns: minmax(160px, 30%) minmax(0, 1fr) minmax(118px, auto);
        grid-template-areas: "thumb body action";
        align-items: center;
    }

    .render-card-action {
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 760px) {
    .render-summary {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb body"
            "action action";
        gap: 12px;
    }

    .cabinet-render-card.is-open .render-summary {
        grid-template-columns: 78px minmax(0, 1fr);
        grid-template-areas:
            "thumb body"
            "action action";
        gap: 12px;
        align-items: start;
    }

    .cabinet-render-card.is-open .render-thumb-wrap {
        display: block;
    }

    .render-thumb-wrap {
        width: 64px;
        height: 64px;
        aspect-ratio: auto;
    }

    .cabinet-render-card.is-open .render-thumb-wrap {
        width: 78px;
        aspect-ratio: 1 / 1;
    }

    .cabinet-render-card.is-open .render-body {
        padding-top: 2px;
    }

    .cabinet-render-card .render-thumb-image {
        height: 100%;
    }

    .render-thumb {
        min-height: 0;
        height: 100%;
    }

    .render-card-action {
        width: 100%;
        justify-self: stretch;
        align-self: stretch;
    }

    .render-detail-hero .compact-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .topbar {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 18px;
    }

    .hero-panel,
    .panel {
        padding: 16px;
        border-radius: 24px;
    }

    .amount-grid,
    .topup-grid,
    .support-grid,
    .docs-list {
        grid-template-columns: 1fr;
    }

    .render-card-buttons {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .latest-render-actions .compact-button {
        font-size: 14px;
    }

    .dashboard-auth-action {
        width: 100%;
    }

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

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

    .photo-guide-ready {
        align-items: stretch;
        flex-direction: column;
    }

    .photo-guide-ready .primary-button {
        width: 100%;
    }

    .payment-history-details summary,
    .wallet-history-island-head-split {
        grid-template-columns: 1fr;
    }

    .wallet-expiry-row,
    .payment-history-item,
    .dashboard-expiry-line {
        grid-template-columns: 1fr;
    }

    .step-actions,
    .step-actions.split {
        flex-direction: column;
        align-items: stretch;
    }

    .ghost-button,
    .primary-button,
    .compact-button,
    .link-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .wallet-history-stack {
        padding-inline: 0;
        padding-bottom: 0;
    }

    .wallet-history-pager {
        flex-wrap: wrap;
    }

    .wallet-history-page-label {
        min-width: 0;
        text-align: left;
    }

    .render-card {
        grid-template-columns: 1fr;
    }

    .history-card {
        flex-direction: column;
    }

    .render-feedback-actions {
        grid-template-columns: 1fr;
    }

    .render-expanded-actions {
        grid-template-columns: 1fr;
    }

    .render-asset-frame {
        min-height: 240px;
    }

    .panel-head,
    .invoice-row,
    .form-row,
    .payment-card,
    .contact-row,
    .doc-link,
    .doc-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .docs-list .doc-link,
    .support-refund-block .doc-link {
        flex-direction: row;
        align-items: center;
    }

    .payment-card-badge {
        align-self: flex-start;
    }

    .identity-critical-head {
        grid-template-columns: 1fr;
    }

    .identity-critical-head .status-pill {
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Auth-gated browser App shell. The gate is visible only while /app/**
   is reconciling the session or waiting for sign-in. */
.application-auth-gate {
    align-items: center;
    background: var(--bg, #070809);
    color: var(--text, #eef2f6);
    display: flex;
    inset: 0;
    justify-content: center;
    min-height: 100dvh;
    padding: 24px;
    position: fixed;
    z-index: 20;
}

.application-auth-gate-card {
    background: rgba(23, 25, 30, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    max-width: 460px;
    padding: 36px;
    text-align: center;
    width: 100%;
}

.application-auth-gate-wordmark {
    margin: 0 auto 22px;
}

.application-auth-gate-spinner {
    animation: application-auth-gate-spin 900ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    border-top-color: var(--accent, #ddff00);
    height: 22px;
    margin: 0 auto 18px;
    width: 22px;
}

@keyframes application-auth-gate-spin {
    to { transform: rotate(360deg); }
}

.application-auth-gate-title {
    font-size: clamp(20px, 3vw, 24px);
    margin: 0 0 10px;
}

.application-auth-gate-card h1 {
    margin: 12px 0;
}

.application-auth-gate-copy {
    color: var(--text-muted, #a3adba);
    line-height: 1.5;
    margin: 0 0 24px;
}

.application-auth-gate-card [data-application-auth-gate-login] {
    min-width: 160px;
}

.application-auth-gate[data-restoring="true"] .application-auth-gate-copy {
    display: none;
}

.application-auth-gate[data-restoring="false"] .application-auth-gate-spinner {
    display: none;
}

@media (max-width: 640px) {
    .application-auth-gate-card {
        border-radius: 22px;
        padding: 28px 22px;
    }

    .application-auth-gate-wordmark {
        font-size: 14px;
    }
}

@media (max-width: 560px) {
    .wallet-balance-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        min-height: 0;
    }

    .wallet-balance-action {
        width: 100%;
    }

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

    .topup-card {
        min-height: 68px;
        padding: 12px;
    }

    .package-name {
        font-size: 20px;
    }

    .package-meta {
        font-size: 12px;
    }

    .wallet-sections-panel {
        padding: 12px;
    }

    .wallet-sections-panel > .topup-island {
        padding: 14px;
    }

    .last-invoice-panel .payment-card-action {
        width: 100%;
    }

    .last-invoice-panel .payment-card {
        padding-right: 18px;
    }

    .payment-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-card-top .status-pill {
        align-self: flex-start;
        position: static;
        transform: none;
    }

}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --vnext-canvas: #090d10;
  --vnext-surface: #0d1317;
  --vnext-surface-elevated: #12191f;
  --vnext-surface-selected: #1a232a;
  --vnext-text: #f2f4f5;
  --vnext-text-value: #e2e7ea;
  --vnext-text-secondary: #b7c0c6;
  --vnext-text-subtle: #7e8a92;
  --vnext-cta: #f1f2f2;
  --vnext-cta-text: #111518;
  --vnext-positive: #8bb9a0;
  --vnext-warning: #c9ab78;
  --vnext-negative: #d58b8b;
  --vnext-unknown: #a3afb6;
  --vnext-pending: #9aa7af;
  --vnext-brand-accent: #d8ff37;
  --vnext-border: #263039;
  --vnext-border-strong: #46525c;
  --vnext-border-selected: #71808a;
  --vnext-focus: #d5dce0;
  --vnext-radius: 10px;
  --vnext-radius-media: 12px;
  --vnext-space-1: 4px;
  --vnext-space-2: 8px;
  --vnext-space-3: 12px;
  --vnext-space-4: 16px;
  --vnext-space-5: 24px;
  --vnext-space-6: 32px;
  --vnext-font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --vnext-weight-regular: 400;
  --vnext-weight-medium: 500;
  --vnext-weight-semibold: 600;
  --vnext-content-width: 1180px;
  --vnext-mobile-breakpoint: 700px;
  --vnext-safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-vnext-root], [data-vnext-root] * { box-sizing: border-box; }
[data-vnext-root] {
  color: var(--vnext-text);
  font: 15px/1.45 var(--vnext-font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
[data-vnext-root] button, [data-vnext-root] a, [data-vnext-root] input, [data-vnext-root] textarea { font: inherit; }
[data-vnext-root] button { cursor: pointer; }
[data-vnext-root] :focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: 2px; }

.vnext-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: var(--vnext-weight-medium);
  text-decoration: none;
}
.vnext-button--primary { background: var(--vnext-cta); color: var(--vnext-cta-text); }
.vnext-button--secondary { background: var(--vnext-surface-elevated); color: var(--vnext-text-value); border-color: var(--vnext-border-strong); }
.vnext-button:disabled { cursor: not-allowed; opacity: .48; }
.vnext-text-action { min-height: 44px; border: 0; background: transparent; color: var(--vnext-text-secondary); padding: 0; text-decoration: none; }
.vnext-text-action:hover { color: var(--vnext-text); text-decoration: underline; text-decoration-color: #596168; text-underline-offset: 4px; }

.vnext-page-header { margin: 0; font-size: clamp(26px, 4vw, 32px); line-height: 1.15; font-weight: var(--vnext-weight-medium); letter-spacing: -.03em; }
.vnext-copy { margin: var(--vnext-space-2) 0 0; max-width: 680px; color: var(--vnext-text-secondary); }
.vnext-island { border: 1px solid var(--vnext-border); border-radius: var(--vnext-radius); background: var(--vnext-surface); }
.vnext-status { display: inline-flex; color: var(--vnext-text-secondary); font-size: 12px; }
.vnext-status--positive { color: var(--vnext-positive); }
.vnext-status--warning { color: var(--vnext-warning); }
.vnext-status--negative { color: var(--vnext-negative); }
.vnext-status--unknown { color: var(--vnext-unknown); }
.vnext-status--pending { color: var(--vnext-pending); }

.vnext-spinner { width: 20px; height: 20px; border: 2px solid var(--vnext-border-strong); border-top-color: var(--vnext-text); border-radius: 50%; animation: vnext-spin 1s linear infinite; }
@keyframes vnext-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vnext-spinner { animation: none; border-top-color: var(--vnext-border-strong); } }

.vnext-support { display: grid; gap: var(--vnext-space-5); padding-top: var(--vnext-space-5); }
.vnext-support__hero { max-width: 760px; }
.vnext-support__eyebrow { margin: 0 0 var(--vnext-space-2); color: var(--vnext-text-subtle); font-size: 11px; font-weight: var(--vnext-weight-semibold); letter-spacing: .14em; text-transform: uppercase; }
.vnext-support__hero-title { margin: 0; font-size: clamp(27px, 4vw, 36px); line-height: 1.12; font-weight: var(--vnext-weight-medium); letter-spacing: -.035em; }
.vnext-support__hero-copy { margin: var(--vnext-space-3) 0 0; max-width: 720px; color: var(--vnext-text-secondary); }
.vnext-support__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: var(--vnext-space-4); align-items: start; }
.vnext-support__main, .vnext-support__side { padding: var(--vnext-space-5); }
.vnext-support__side-title { margin: 0 0 var(--vnext-space-3); font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-field { display: grid; gap: var(--vnext-space-2); }
.vnext-field label { color: var(--vnext-text-secondary); font-size: 12px; }
.vnext-field textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--vnext-border-strong);
  border-radius: 8px;
  background: var(--vnext-surface-elevated);
  color: var(--vnext-text);
  padding: 14px;
}
.vnext-field textarea::placeholder { color: var(--vnext-text-subtle); }
.vnext-support__actions { margin-top: var(--vnext-space-4); }
.vnext-support__topics { display: grid; }
.vnext-support__topic { border-bottom: 1px solid var(--vnext-border); }
.vnext-support__topic:last-child { border-bottom: 0; }
.vnext-support__topic-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--vnext-space-3);
  border: 0;
  background: transparent;
  color: var(--vnext-text);
  padding: 10px 0;
  text-align: left;
}
.vnext-support__topic-button:hover { color: var(--vnext-text-secondary); }
.vnext-support__topic-arrow { flex: 0 0 auto; color: var(--vnext-text-subtle); }
.vnext-support__topic-detail { margin: -2px 28px 14px 0; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-support__documents { margin-top: var(--vnext-space-3); padding-top: var(--vnext-space-3); border-top: 1px solid var(--vnext-border); }

@media (max-width: 700px) {
  .vnext-support__grid { grid-template-columns: 1fr; }
  .vnext-support__main, .vnext-support__side { padding: var(--vnext-space-4); }
  .vnext-support__hero-title { font-size: 28px; }
}

.vnext-button--text {
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: var(--vnext-text-secondary);
  padding-inline: 0;
}
.vnext-button--text:hover {
  color: var(--vnext-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.vnext-surface-active { background: var(--vnext-canvas); }
body.vnext-surface-active > .desktop-sidebar,
body.vnext-surface-active #app > .topbar,
body.vnext-surface-active > .mobile-bottom-nav,
body.vnext-surface-active > .more-sheet,
body.vnext-surface-active > .more-sheet-backdrop { display: none !important; }
body.vnext-surface-active #app { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; }

.vnext-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--vnext-canvas); }
.vnext-shell__sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px 22px; border-right: 1px solid var(--vnext-border); background: var(--vnext-canvas); }
.vnext-shell__brand { margin: 0 8px 34px; color: var(--vnext-text); font-size: 13px; font-weight: var(--vnext-weight-semibold); letter-spacing: .16em; }
.vnext-shell__brand span { color: var(--vnext-text-subtle); }
.vnext-shell__nav { display: grid; gap: 5px; }
.vnext-shell__nav-label { margin: 20px 10px 7px; color: var(--vnext-text-subtle); font-size: 10px; font-weight: var(--vnext-weight-semibold); letter-spacing: .16em; text-transform: uppercase; }
.vnext-shell__nav-button { min-height: 42px; border: 0; border-radius: 7px; background: transparent; color: var(--vnext-text-secondary); padding: 0 12px; text-align: left; font-weight: var(--vnext-weight-medium); }
.vnext-shell__nav-button:hover { background: var(--vnext-surface-elevated); color: var(--vnext-text); }
.vnext-shell__nav-button[aria-current="page"] { background: var(--vnext-surface-selected); color: var(--vnext-text); }
.vnext-shell__account {
  margin-top: auto;
  display: grid;
  gap: 8px;
  width: 100%;
  border-top: 1px solid var(--vnext-border);
  padding: 14px 0 0;
  color: var(--vnext-text-subtle);
  text-align: left;
  font-size: 12px;
}
.vnext-shell__account-label { padding: 0 10px; font-weight: var(--vnext-weight-medium); }
.vnext-shell__account-action { display: grid; gap: 2px; width: 100%; min-height: 44px; border: 0; border-radius: 7px; background: transparent; padding: 7px 10px; color: var(--vnext-text-secondary); text-align: left; font-size: 12px; }
.vnext-shell__account-action:hover { color: var(--vnext-text); background: var(--vnext-surface-elevated); }
.vnext-shell__account-action span { font-weight: var(--vnext-weight-medium); }
.vnext-shell__account-action small { color: var(--vnext-text-subtle); font-size: 10px; }
.vnext-shell__login { min-height: 44px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: transparent; color: var(--vnext-text); padding: 0 14px; font: inherit; font-weight: var(--vnext-weight-medium); cursor: pointer; }
.vnext-shell__login:hover { border-color: var(--vnext-text-subtle); background: var(--vnext-surface-elevated); }
.vnext-shell__login:focus-visible,
.vnext-shell__account-action:focus-visible,
.vnext-shell__nav-button:focus-visible,
.vnext-shell__bottom-button:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: 2px; }
.vnext-shell [hidden] { display: none !important; }
.vnext-shell__login--topbar { display: none; flex: 0 0 auto; }
.vnext-shell__main { min-width: 0; padding: 28px clamp(22px, 4vw, 58px) 96px; }
.vnext-shell__frame { width: min(var(--vnext-content-width), 100%); margin: 0 auto; }
.vnext-shell__topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--vnext-space-4); padding-bottom: 22px; border-bottom: 1px solid var(--vnext-border); }
.vnext-shell__topbar-title { margin: 0; font-size: 27px; font-weight: var(--vnext-weight-medium); letter-spacing: -.025em; }
.vnext-shell__bottom-nav { display: none; }

@media (max-width: 700px) {
  .vnext-shell { display: block; padding-bottom: calc(72px + var(--vnext-safe-bottom)); }
  .vnext-shell__sidebar { display: none; }
  .vnext-shell__main { padding: 18px 16px 24px; }
  .vnext-shell__topbar { padding-bottom: 16px; }
  .vnext-shell__topbar-title { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 22px; }
  .vnext-shell__login--topbar { display: inline-flex; align-items: center; justify-content: center; }
  .vnext-shell__bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; min-height: calc(64px + var(--vnext-safe-bottom)); padding: 8px 8px calc(8px + var(--vnext-safe-bottom)); border-top: 1px solid var(--vnext-border); background: var(--vnext-canvas); }
  .vnext-shell__bottom-button { min-height: 44px; border: 0; border-radius: 7px; background: transparent; color: var(--vnext-text-subtle); padding: 0 4px; font-size: 10px; font-weight: var(--vnext-weight-medium); }
  .vnext-shell__bottom-button[aria-current="page"] { color: var(--vnext-text); background: var(--vnext-surface-selected); }
}

/* UI-057: account identity and available renders share one settings target. */
.vnext-shell__account-action { display: flex; align-items: center; gap: 10px; padding: 10px 8px; min-width: 0; border-radius: 12px; cursor: pointer; font: inherit; }
.vnext-shell__account-action .vnext-shell__avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--vnext-border); border-radius: 10px; background: var(--vnext-surface-selected); color: var(--vnext-text); font-size: 12px; font-weight: 600; }
.vnext-shell__account-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.vnext-shell__account-identifier { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--vnext-text); font-size: 13px; }
.vnext-shell__account-action small { font-size: 12px; color: var(--vnext-text-secondary); }
.vnext-shell__account-action--mobile { display: none; }
@media(max-width:700px) {
 .vnext-shell__account-action--mobile { display: flex; flex: 0 0 auto; width: 44px; height: 44px; padding: 4px; }
 .vnext-shell__account-action--mobile .vnext-shell__account-copy { display: none; }
}

.vnext-eyebrow {
  margin: 0 0 var(--vnext-space-2);
  color: var(--vnext-text-subtle);
  font-size: 11px;
  font-weight: var(--vnext-weight-semibold);
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.vnext-surface-active [data-view="create"] > :not([data-vnext-create-root]) { display: none !important; }
.vnext-create { display: grid; gap: var(--vnext-space-5); padding-top: var(--vnext-space-5); }
.vnext-create__pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--vnext-border); }
.vnext-create__object { min-width: 0; }
.vnext-create__object-heading, .vnext-create__section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--vnext-space-3); }
.vnext-create__object-heading .vnext-eyebrow { margin: 0; }
.vnext-create__stage { position: relative; width: 100%; height: clamp(300px, 34vw, 420px); display: grid; place-items: center; overflow: hidden; margin-top: var(--vnext-space-3); border: 1px solid var(--vnext-border); border-radius: var(--vnext-radius-media); background: var(--vnext-surface-elevated); padding: 0; color: var(--vnext-text-secondary); }
.vnext-create__stage.is-empty { border-style: dashed; }
.vnext-create__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vnext-create__object--wheel .vnext-create__stage { height: clamp(300px, 34vw, 420px); background: var(--vnext-surface-elevated); }
.vnext-create__empty-copy { font-size: 14px; }
.vnext-create__object-foot { display: flex; gap: var(--vnext-space-3); margin-top: 10px; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-create__wheel-details { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }
.vnext-create__wheel-identity { font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-create__wheel-specs { margin: 0; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-create__source-helper { flex-basis: 100%; margin: 0; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-create__decision { display: grid; gap: 6px; padding: 14px 0 4px; }
.vnext-create__decision h3 { margin: 0; font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-create__identified-vehicle { font-size: 20px; font-weight: var(--vnext-weight-medium); }
.vnext-create__decision > span { color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-create__decision-title { margin: 12px 0 4px; color: var(--vnext-positive); font-size: 13px; }
.vnext-create__summary { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: var(--vnext-space-2); }
.vnext-create__summary-section { min-width: 0; }
.vnext-create__section-heading { min-height: 40px; border-bottom: 1px solid var(--vnext-border); }
.vnext-create__section-heading h2 { margin: 0; font-size: 17px; font-weight: var(--vnext-weight-medium); }
.vnext-create__summary-list { border-bottom: 1px solid var(--vnext-border); }
.vnext-create__summary-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--vnext-space-3); padding: 11px 0; border-bottom: 1px solid var(--vnext-border); }
.vnext-create__summary-row:last-child { border-bottom: 0; }
.vnext-create__summary-row--action { grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; }
.vnext-create__summary-label { color: var(--vnext-text-subtle); font-size: 13px; }
.vnext-create__summary-value { min-width: 0; overflow-wrap: anywhere; font-weight: var(--vnext-weight-medium); }
.vnext-create__vehicle-options { display: grid; gap: 8px; }
.vnext-create__vehicle-option { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: var(--vnext-space-3); border: 1px solid var(--vnext-border); border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 10px 12px; text-align: left; }
.vnext-create__vehicle-option[aria-checked="true"] { border-color: var(--vnext-border-selected); background: var(--vnext-surface-selected); }
.vnext-create__vehicle-option[aria-checked="true"] strong { color: var(--vnext-text); font-weight: var(--vnext-weight-semibold); }
.vnext-create__vehicle-option > span { color: var(--vnext-text-secondary); font-size: 12px; }
.vnext-create__manual-recovery { margin-top: 10px; }
.vnext-create__manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vnext-space-3); padding: var(--vnext-space-3) 0; }
.vnext-create__manual-grid input { min-width: 0; height: 42px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 10px; }
.vnext-create__manual-grid label { min-width: 0; }
.vnext-create__stage:focus-visible, .vnext-create__vehicle-option:focus-visible { outline: 2px solid var(--vnext-text-secondary); outline-offset: 3px; }
.vnext-create__object-heading .vnext-text-action { min-height: 44px; }
.vnext-create__source-section { display: grid; gap: var(--vnext-space-2); max-width: 760px; }
.vnext-create__source-form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--vnext-space-3); width: 100%; max-width: 760px; padding-top: var(--vnext-space-3); }
.vnext-create__source-form > .vnext-create__status, .vnext-create__source-recovery { flex-basis: 100%; min-width: 0; }
.vnext-create__source-recovery { display: flex; flex-wrap: wrap; gap: var(--vnext-space-2); }
.vnext-create__source-recovery > .vnext-create__status { width: 100%; overflow-wrap: anywhere; }
.vnext-create__source-form .vnext-field { flex: 1; min-width: 0; }
.vnext-create__source-form input { width: 100%; height: 44px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 11px; }
.vnext-create__consent { display: flex; align-items: flex-start; gap: 10px; max-width: 860px; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-create__consent input { accent-color: var(--vnext-text); margin-top: 4px; }
.vnext-create__consent a { color: var(--vnext-text-secondary); text-decoration: none; }
.vnext-create__consent a:hover, .vnext-create__consent a:focus-visible { color: var(--vnext-text); text-decoration: underline; text-underline-offset: 3px; }
.vnext-create__status { display: grid; gap: 3px; border-top: 1px solid var(--vnext-border); border-bottom: 1px solid var(--vnext-border); padding: 14px 0; color: var(--vnext-text-secondary); }
.vnext-create__status--pending { grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.vnext-create__status--pending > span { grid-column: 2; }
.vnext-create__status--pending > strong { grid-column: 2; }
.vnext-create__status strong { color: var(--vnext-text); font-weight: var(--vnext-weight-medium); }
.vnext-create__status > span { font-size: 13px; }
.vnext-create__status--negative strong { color: var(--vnext-negative); }
.vnext-create__status--positive strong { color: var(--vnext-positive); }
.vnext-create__error { display: grid; gap: var(--vnext-space-3); }
.vnext-create__actions { display: flex; flex-wrap: wrap; gap: var(--vnext-space-3); padding-top: var(--vnext-space-2); }
.vnext-create__actions .vnext-button { min-width: 220px; }

.vnext-dashboard { display: grid; gap: var(--vnext-space-6); padding-top: var(--vnext-space-5); }
.vnext-dashboard__intro { display: flex; align-items: end; justify-content: space-between; gap: var(--vnext-space-6); }
.vnext-dashboard__intro h1 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: var(--vnext-weight-medium); letter-spacing: -.04em; }
.vnext-dashboard__intro h1 span { display: block; }
.vnext-dashboard__intro p:not(.vnext-eyebrow) { margin: 12px 0 0; color: var(--vnext-text-secondary); }
.vnext-dashboard__loading { display: flex; align-items: center; gap: 10px; color: var(--vnext-text-secondary); }
.vnext-dashboard__error { margin: 0; color: var(--vnext-negative); }
.vnext-dashboard__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: var(--vnext-space-4); align-items: start; }
.vnext-dashboard__latest-content, .vnext-dashboard__balance-content { padding: var(--vnext-space-5); }
.vnext-dashboard__latest-media { margin-top: var(--vnext-space-4); aspect-ratio: 16 / 9; }
.vnext-dashboard__media { overflow: hidden; border-radius: var(--vnext-radius-media); background: var(--vnext-surface-elevated); }
.vnext-dashboard__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vnext-dashboard__media-placeholder { min-height: 150px; height: 100%; display: grid; place-items: center; color: var(--vnext-text-subtle); border: 1px solid var(--vnext-border); border-radius: inherit; }
.vnext-dashboard__latest-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--vnext-space-4); margin-top: var(--vnext-space-4); }
.vnext-dashboard__latest-meta strong, .vnext-dashboard__recent-item strong { display: block; font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-dashboard__object-sub { margin-top: 3px; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-dashboard__empty h3 { margin: var(--vnext-space-3) 0 var(--vnext-space-2); font-size: 22px; font-weight: var(--vnext-weight-medium); }
.vnext-dashboard__empty p { color: var(--vnext-text-secondary); }
.vnext-dashboard__balance-line { display: flex; align-items: end; justify-content: space-between; gap: var(--vnext-space-4); }
.vnext-dashboard__balance-line strong { font-size: 42px; line-height: 1; font-weight: var(--vnext-weight-medium); letter-spacing: -.04em; }
.vnext-dashboard__balance-auth { color: var(--vnext-text-secondary); }
.vnext-dashboard__expiry { margin-top: var(--vnext-space-5); padding-top: var(--vnext-space-4); border-top: 1px solid var(--vnext-border); }
.vnext-dashboard__expiry-row { display: flex; justify-content: space-between; gap: var(--vnext-space-3); padding: 7px 0; color: var(--vnext-text-secondary); }
.vnext-dashboard__expiry-row strong { color: var(--vnext-text); font-weight: var(--vnext-weight-medium); }
.vnext-dashboard__expiry-note { margin-top: var(--vnext-space-2); color: var(--vnext-text-subtle); font-size: 12px; }
.vnext-dashboard__recent { display: grid; gap: var(--vnext-space-3); }
.vnext-dashboard__recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vnext-space-4); }
.vnext-dashboard__recent-item { min-width: 0; position: relative; }
.vnext-dashboard__recent-item .vnext-dashboard__media { aspect-ratio: 16 / 10; margin-bottom: var(--vnext-space-3); }
.vnext-dashboard__recent-item > span:not(.vnext-status) { display: block; margin-top: 3px; color: var(--vnext-text-secondary); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vnext-dashboard__recent-link { display:block; width:100%; padding:0; border:0; background:transparent; color:var(--vnext-text); font:inherit; text-align:start; cursor:pointer; border-radius:var(--vnext-radius-media); }
.vnext-dashboard__recent-link strong { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.vnext-dashboard__recent-link svg { width:18px; height:18px; flex:none; color:var(--vnext-text-secondary); }
.vnext-dashboard__recent-link:hover img { filter:brightness(1.06); }
.vnext-dashboard__recent-link:focus-visible { outline:none; }
.vnext-dashboard__recent-link:focus-visible .vnext-dashboard__media { outline:2px solid var(--vnext-text); outline-offset:0; }

.vnext-static-hero { max-width: 820px; padding-top: var(--vnext-space-5); }
.vnext-static-hero h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.08; font-weight: var(--vnext-weight-medium); letter-spacing: -.04em; }
.vnext-static-hero > p:last-child { max-width: 720px; margin: var(--vnext-space-3) 0 0; color: var(--vnext-text-secondary); }

.vnext-guide { display: grid; gap: var(--vnext-space-6); }
.vnext-guide__examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vnext-space-4); }
.vnext-guide__example-body { overflow: hidden; }
.vnext-guide__visual { aspect-ratio: 16 / 10; overflow: hidden; background: var(--vnext-surface-elevated); }
.vnext-guide__visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vnext-guide__copy { padding: var(--vnext-space-4); }
.vnext-guide__copy h3, .vnext-guide__rule h3 { margin: 6px 0 5px; font-size: 17px; font-weight: var(--vnext-weight-medium); }
.vnext-guide__copy p, .vnext-guide__rule p { margin: 0; color: var(--vnext-text-secondary); }
.vnext-guide__tone { font-size: 12px; font-weight: var(--vnext-weight-medium); }
.vnext-guide__tone--good { color: var(--vnext-positive); }
.vnext-guide__tone--bad { color: var(--vnext-negative); }
.vnext-guide__rules { border-top: 1px solid var(--vnext-border); }
.vnext-guide__rule { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--vnext-space-4); padding: 20px 0; border-bottom: 1px solid var(--vnext-border); }
.vnext-guide__num { color: var(--vnext-text-subtle); font-size: 12px; font-weight: var(--vnext-weight-semibold); }

.vnext-documents { display: grid; gap: var(--vnext-space-5); padding-top: var(--vnext-space-5); }
.vnext-documents__intro { max-width: 760px; }
.vnext-documents__intro > p:last-child { margin: 0; color: var(--vnext-text-secondary); }
.vnext-documents__list { border-top: 1px solid var(--vnext-border); }
.vnext-documents__row { min-height: 88px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--vnext-space-5); color: var(--vnext-text); text-decoration: none; border-bottom: 1px solid var(--vnext-border); }
.vnext-documents__row:hover h3, .vnext-documents__row:focus-visible h3 { color: var(--vnext-text-secondary); }
.vnext-documents__row h3 { margin: 0; font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-documents__row p { margin: 4px 0 0; color: var(--vnext-text-secondary); }
.vnext-documents__open { color: var(--vnext-text-secondary); font-size: 13px; }

@media (max-width: 700px) {
  .vnext-create { gap: var(--vnext-space-4); padding-top: var(--vnext-space-4); }
  .vnext-create__pair, .vnext-create__summary { grid-template-columns: 1fr; }
  .vnext-create__pair { gap: var(--vnext-space-5); }
  .vnext-create__stage, .vnext-create__object--wheel .vnext-create__stage { height: clamp(220px, 65vw, 285px); }
  .vnext-create__summary { gap: var(--vnext-space-4); }
  .vnext-create__actions { display: grid; grid-template-columns: 1fr; }
  .vnext-create__actions .vnext-button { width: 100%; }
  .vnext-create__source-form { align-items: stretch; flex-direction: column; flex-wrap: nowrap; width: 100%; }
  .vnext-create__source-form > .vnext-button { width: 100%; }
  .vnext-dashboard { gap: var(--vnext-space-5); }
  .vnext-dashboard__intro { align-items: stretch; flex-direction: column; gap: var(--vnext-space-4); }
  .vnext-dashboard__intro h1 { font-size: 32px; }
  .vnext-dashboard__grid, .vnext-guide__examples { grid-template-columns: 1fr; }
  .vnext-dashboard__latest-content, .vnext-dashboard__balance-content { padding: var(--vnext-space-4); }
  .vnext-dashboard__latest-meta { align-items: flex-start; flex-direction: column; }
  .vnext-dashboard__recent-grid { grid-template-columns: 1fr 1fr; gap: var(--vnext-space-4) var(--vnext-space-3); }
  .vnext-dashboard__recent-item:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 6px); }
  .vnext-static-hero h2 { font-size: 30px; }
  .vnext-documents__row { grid-template-columns: 1fr; gap: var(--vnext-space-2); padding: 17px 0; }
  .vnext-documents__open { justify-self: start; }
}

@media (max-width: 420px) {
  .vnext-create__summary-row { grid-template-columns: 1fr; gap: 5px; }
  .vnext-create__manual-grid { grid-template-columns: 1fr; }
  .vnext-create__object-foot { font-size: 12px; }
  .vnext-dashboard__recent-grid { grid-template-columns: 1fr; }
  .vnext-dashboard__recent-item:nth-child(3) { grid-column: auto; max-width: none; }
}
.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:none; }
.vnext-dashboard__latest-failed { color:var(--vnext-text-secondary); font-size:13px; }
.vnext-dashboard__latest-failed .vnext-button { display:inline-flex; padding:0; font-size:inherit; }
@media(max-width:680px) { .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:block; } }

@media(min-width:681px) { .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { border-bottom:0; padding-bottom:0; } }

/* UI-034: photo guidance checklist and same-photo framing example. */
.vnext-shell__frame:has(.vnext-guide) .vnext-shell__topbar { border-bottom: 0; }
.vnext-guide__visual--cropped img { object-fit: contain; transform: none; }
.vnext-guide__rules-title { margin: 8px 0 -12px; font-size: 22px; font-weight: 500; }
.vnext-guide__rules { border: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 40px; }
.vnext-guide__rule { border: 0; padding: 0; grid-template-columns: 20px minmax(0,1fr); gap: 12px; }
.vnext-guide__num { font-size: 18px; color: var(--vnext-text-secondary); padding-top: 6px; }
@media(max-width:700px) { .vnext-guide__rules { grid-template-columns: 1fr; } }

/* UI-037: approved image treatment; outline never surrounds captions. */
.vnext-guide__visual { border-radius: 12px; transition: box-shadow .15s ease; }
.vnext-guide__visual:hover { box-shadow: 0 0 0 1px var(--vnext-text); }
.vnext-guide__visual img { transition: filter .15s ease; }
.vnext-guide__visual:hover img { filter: brightness(1.06); }

/* UI-038: concise introduction, open examples and a completion action. */
.vnext-guide__copy { padding: 14px 0 0; }
.vnext-guide__visual--cropped { background: var(--vnext-canvas); }
.vnext-guide__wheel { max-width: 70ch; }
.vnext-guide__wheel h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.vnext-guide__wheel p { margin: 0; color: var(--vnext-text-secondary); }
.vnext-guide__create { justify-self: start; text-decoration: none; }
.vnext-guide__visual--cropped img { width: auto; max-width: 100%; margin-inline: auto; border-radius: 12px; }

/* UI-039: contact-first support, without nested panels. */
.vnext-shell__frame:has(.vnext-support--contacts) .vnext-shell__topbar { border-bottom: 0; }
.vnext-support--contacts { max-width: 700px; display: grid; gap: 36px; }
.vnext-support--contacts h2 { margin: 0 0 14px; font-size: 20px; font-weight: 500; }
.vnext-support__link { display: flex; align-items: center; gap: 16px; padding: 18px 16px; margin: 4px 0; border-radius: 12px; color: var(--vnext-text); text-decoration: none; transition: background .15s, box-shadow .15s; }
.vnext-support__link:hover, .vnext-support__link:focus-visible { background: var(--vnext-surface-elevated); box-shadow: inset 0 0 0 1px var(--vnext-border-strong); }
.vnext-support__link strong { display: block; font-size: 16px; font-weight: 500; }
.vnext-support__link small { display: block; margin-top: 5px; color: var(--vnext-text-secondary); font-size: 14px; overflow-wrap: anywhere; }
.vnext-support__icon { flex: 0 0 40px; text-align: center; font-size: 23px; }

/* UI-040: halve support link width while retaining mobile fit. */
.vnext-support--contacts .vnext-support__link { width: 100%; max-width: 350px; box-sizing: border-box; }

/* UI-042: contacts and useful links in parallel desktop columns. */
.vnext-support--contacts { max-width: 736px; grid-template-columns: repeat(2, minmax(0, 350px)); gap: 36px; }
@media (max-width: 800px) { .vnext-support--contacts { grid-template-columns: minmax(0, 350px); } }

/* UI-043: quiet document links in the shared support style. */
.vnext-shell__frame:has(.vnext-documents) .vnext-shell__topbar { border-bottom: 0; }
.vnext-documents { max-width: 700px; }
.vnext-documents__list { border: 0; display: grid; gap: 8px; }
.vnext-documents__row { border: 0; border-radius: 12px; padding: 18px 16px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; transition: background .15s, box-shadow .15s; }
.vnext-documents__row:hover, .vnext-documents__row:focus-visible { background: var(--vnext-surface-elevated); box-shadow: inset 0 0 0 1px var(--vnext-border-strong); }
.vnext-documents__row:hover h3, .vnext-documents__row:focus-visible h3 { color: var(--vnext-text); }
.vnext-documents__icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--vnext-text-secondary); }
@media (max-width: 700px) { .vnext-documents__row { grid-template-columns: 26px minmax(0,1fr); } .vnext-documents__open { grid-column: 2; } }

/* UI-044: the full document row is the sole opening action. */
.vnext-documents__row { grid-template-columns: 28px minmax(0, 1fr); }
/* Owner-approved shared result hover; no change to dashboard surfaces. */
.vnext-dashboard__latest-link { display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; border-radius:var(--vnext-radius-media); }
.vnext-dashboard__latest-link .vnext-dashboard__latest-media { margin-top:0; }
.vnext-dashboard__latest-link { margin-top:var(--vnext-space-4); }
.vnext-dashboard__latest-link:focus-visible { outline:none; }
.vnext-dashboard__latest-link:focus-visible .vnext-dashboard__media { outline:2px solid var(--vnext-text); outline-offset:0; }
@media (hover:hover) {
  .vnext-dashboard__recent-link:hover .vnext-dashboard__media, .vnext-dashboard__latest-link:hover .vnext-dashboard__media { outline:1px solid var(--vnext-text); outline-offset:0; }
  .vnext-dashboard__latest-link:hover img { filter:brightness(1.06); }
}

/* UI-005: latest result shares the unboxed photo presentation of recent results. */
.vnext-dashboard > .vnext-dashboard__grid > .vnext-dashboard__latest-content { padding:0; }

/* UI-008: no duplicate Home title or divider, retain guest sign-in. */
.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:none; }
.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { border-bottom:0; padding-bottom:0; }
.vnext-shell[data-authenticated="true"] .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { display:none; }

/* UI-009/010/011: Create uses unboxed, uncropped loaded photos. */
.vnext-shell__main:has(.vnext-create) .vnext-shell__topbar { border-bottom:0; }
.vnext-create__pair { border-bottom:0; }
.vnext-create .vnext-create__stage.is-ready { height:auto; min-height:0; background:transparent; border:0; display:block; }
.vnext-create .vnext-create__stage.is-ready img { width:100%; height:auto; max-height:65vh; object-fit:contain; border-radius:inherit; }
.vnext-create .vnext-create__stage.is-empty { height:180px; background:transparent; }
@media(max-width:700px) { .vnext-create .vnext-create__stage.is-empty { height:160px; } }

/* Owner clarification: aligned desktop stages, natural mobile proportions. */
@media(min-width:701px) {
  .vnext-create .vnext-create__stage.is-ready { height:clamp(300px,34vw,420px); display:grid; place-items:center; }
  .vnext-create .vnext-create__stage.is-ready img { width:100%; height:100%; max-height:100%; object-fit:contain; }
}
@media(max-width:700px) {
  .vnext-create .vnext-create__stage.is-ready img { max-height:none; }
}

/* UI-012/013: round the actual photo, use secondary upload controls. */
.vnext-create__object-heading > .vnext-button { flex:0 0 auto; white-space:nowrap; }
@media(min-width:701px) {
  .vnext-create .vnext-create__stage.is-ready img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; border-radius:var(--vnext-radius-media); }
}

/* UI-014: align loaded photos at top, keep product-link action with wheel. */
@media(min-width:701px) {
  .vnext-create .vnext-create__stage.is-ready { align-items:start; }
}
.vnext-create__wheel-details { justify-items:start; text-align:start; }
.vnext-create__wheel-details > .vnext-button { justify-self:start; }

/* UI-016/017: compact photo actions and always-visible wheel link. */
.vnext-create__object-heading > .vnext-button { font-size:13px; min-height:36px; padding:0 10px; }
.vnext-create > .vnext-create__source-form { max-width:760px; padding-top:0; }
@media(max-width:700px) { .vnext-create__object-heading > .vnext-button { min-height:44px; } }

.vnext-create__consent-documents { margin: 8px 0 0; padding-left: 18px; }

.vnext-create__consent-documents > li + li { margin-top: 6px; }
.vnext-create__consent .vnext-create__consent-documents a { color: var(--vnext-text); text-decoration: underline; text-underline-offset: 3px; }

/* UI-020: loaded-photo focus/hover follows image bounds, not shared stage height. */
.vnext-create .vnext-create__stage.is-ready { overflow:visible; }
.vnext-create .vnext-create__stage.is-ready:focus-visible { outline:none; }
.vnext-create .vnext-create__stage.is-ready:focus-visible img { outline:2px solid var(--vnext-focus); outline-offset:2px; }
@media(hover:hover) {
  .vnext-create .vnext-create__stage.is-ready:hover:not(:disabled) img { outline:1px solid var(--vnext-text); outline-offset:0; }
}

/* UI-021: shrink loaded stages to photo height; preserve desktop size cap. */
@media(min-width:701px) {
  .vnext-create .vnext-create__stage.is-ready { height:auto; display:flex; align-items:flex-start; justify-content:center; }
  .vnext-create .vnext-create__stage.is-ready img { width:auto; height:auto; max-width:100%; max-height:clamp(300px,34vw,420px); display:block; }
}

.application-auth-gate,
[data-auth-dialog],
[data-logout-dialog] {
  font-family: var(--vnext-font);
  color: var(--vnext-text);
  -webkit-font-smoothing: antialiased;
}

.application-auth-gate {
  background: var(--vnext-canvas);
}

[data-auth-dialog] .account-avatar {
  border-color: var(--vnext-border);
  background: var(--vnext-surface-selected);
  color: var(--vnext-text);
  font-weight: var(--vnext-weight-semibold);
}

.application-auth-gate-card {
  width: min(480px, calc(100vw - 32px));
  border: 1px solid var(--vnext-border);
  border-radius: var(--vnext-radius);
  background: var(--vnext-surface);
  box-shadow: none;
  padding: 32px;
}

.application-auth-gate-wordmark,
[data-auth-dialog] .auth-dialog-wordmark,
[data-logout-dialog] .auth-dialog-wordmark {
  color: var(--vnext-text);
  font-size: 13px;
  font-weight: var(--vnext-weight-semibold);
  letter-spacing: .15em;
}

.application-auth-gate-title {
  margin-top: 24px;
  color: var(--vnext-text);
  font-size: 30px;
  line-height: 1.1;
  font-weight: var(--vnext-weight-medium);
  letter-spacing: -.035em;
}

.application-auth-gate-copy {
  max-width: 390px;
  color: var(--vnext-text-secondary);
}

.application-auth-gate-spinner {
  width: 22px;
  height: 22px;
  margin-top: 26px;
  border: 2px solid var(--vnext-border-strong);
  border-top-color: var(--vnext-text);
  border-radius: 50%;
  animation: vnext-spin 1s linear infinite;
}

.application-auth-gate .primary-button,
[data-auth-dialog] .primary-button,
[data-logout-dialog] .primary-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--vnext-cta);
  color: var(--vnext-cta-text);
  font-weight: var(--vnext-weight-medium);
  box-shadow: none;
}

[data-auth-dialog],
[data-logout-dialog] {
  background: rgba(3, 6, 8, .78);
}

[data-auth-dialog] .auth-dialog,
[data-logout-dialog] .auth-dialog {
  width: min(480px, calc(100vw - 32px));
  border: 1px solid var(--vnext-border);
  border-radius: var(--vnext-radius);
  background: var(--vnext-surface);
  box-shadow: none;
  padding: 30px;
}

[data-auth-dialog] .auth-dialog-close,
[data-logout-dialog] .auth-dialog-close {
  color: var(--vnext-text-secondary);
  background: transparent;
}

[data-auth-dialog] .auth-dialog-header h2,
[data-logout-dialog] .auth-dialog-header h2 {
  color: var(--vnext-text);
  font-size: 29px;
  line-height: 1.12;
  font-weight: var(--vnext-weight-medium);
  letter-spacing: -.035em;
}

[data-auth-dialog] .auth-dialog-description,
[data-auth-dialog] .auth-dialog-otp-destination,
[data-auth-dialog] .auth-dialog-legal,
[data-auth-dialog] .auth-dialog-resend-row,
[data-auth-dialog] .auth-dialog-status,
[data-logout-dialog] .auth-dialog-description {
  color: var(--vnext-text-secondary);
}

[data-auth-dialog] .auth-dialog-label {
  color: var(--vnext-text-secondary);
  font-size: 14px;
  font-weight: var(--vnext-weight-regular);
}

[data-auth-dialog] .auth-dialog-input {
  min-height: 48px;
  border: 1px solid var(--vnext-border-strong);
  border-radius: 8px;
  background: var(--vnext-surface-elevated);
  color: var(--vnext-text);
  box-shadow: none;
}

[data-auth-dialog] .auth-dialog-input:focus {
  border-color: var(--vnext-focus);
  outline: 1px solid var(--vnext-focus);
  outline-offset: 0;
}

[data-auth-dialog] .ghost-button,
[data-auth-dialog] .link-button,
[data-logout-dialog] .ghost-button {
  color: var(--vnext-text-secondary);
}

[data-auth-dialog] .auth-dialog-account-card {
  border: 1px solid var(--vnext-border);
  border-radius: 8px;
  background: var(--vnext-surface-elevated);
}

[data-auth-dialog][data-vnext-auth-step="restoring"] .auth-dialog-header::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 24px;
  border: 2px solid var(--vnext-border-strong);
  border-top-color: var(--vnext-text);
  border-radius: 50%;
  animation: vnext-spin 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .application-auth-gate-spinner,
  [data-auth-dialog][data-vnext-auth-step="restoring"] .auth-dialog-header::after {
    animation: none;
    border-top-color: var(--vnext-border-strong);
  }
}

@media (max-width: 700px) {
  .application-auth-gate-card,
  [data-auth-dialog] .auth-dialog,
  [data-logout-dialog] .auth-dialog {
    width: calc(100vw - 24px);
    padding: 24px 20px;
  }
  .application-auth-gate-title,
  [data-auth-dialog] .auth-dialog-header h2,
  [data-logout-dialog] .auth-dialog-header h2 {
    font-size: 27px;
  }
}

/* Sign-in steps share the same frame and control rhythm. */
[data-auth-dialog] .auth-dialog {
  gap: 24px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

[data-auth-dialog] .auth-dialog-header h2 {
  padding-right: 28px;
}

[data-auth-dialog] .auth-dialog-form {
  gap: 12px;
}

[data-auth-dialog] .auth-dialog-form:not([hidden]) {
  animation: auth-step-in 180ms cubic-bezier(.16, 1, .3, 1);
}

[data-auth-dialog] .auth-dialog-input {
  height: 48px;
  padding: 12px 14px;
  font-size: 16px;
}

[data-auth-dialog] .auth-dialog-input::placeholder {
  color: var(--vnext-text-secondary);
  opacity: 1;
}

[data-auth-dialog] .auth-otp-input {
  font-size: 20px;
  font-weight: var(--vnext-weight-medium);
  letter-spacing: .24em;
}

[data-auth-dialog] .auth-dialog-primary,
[data-auth-dialog] .auth-dialog-telegram {
  height: 48px;
  min-height: 48px;
  font: inherit;
  font-size: 16px;
  font-weight: var(--vnext-weight-medium);
}

[data-auth-dialog] .auth-dialog-telegram {
  color: var(--vnext-text-value);
  border: 1px solid var(--vnext-border-strong);
  border-radius: 8px;
  background: var(--vnext-surface-elevated);
}

[data-auth-dialog] .auth-dialog-divider {
  margin: -12px 0;
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
}

[data-auth-dialog] .auth-dialog-divider::before,
[data-auth-dialog] .auth-dialog-divider::after {
  content: none;
}

[data-auth-dialog] .auth-dialog-destination-group {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-bottom: 8px;
}

[data-auth-dialog] .auth-dialog-otp-destination {
  margin: 0;
  font-size: 15px;
  font-weight: var(--vnext-weight-regular);
  text-align: left;
}

[data-auth-dialog] .auth-dialog-otp-destination strong {
  font-weight: var(--vnext-weight-medium);
  color: var(--vnext-text-value);
}

[data-auth-dialog] .auth-dialog-tertiary,
[data-auth-dialog] .auth-dialog-resend-row .link-button {
  min-height: 44px;
  font-size: 14px;
  font-weight: var(--vnext-weight-regular);
  color: var(--vnext-text-secondary);
}

[data-auth-dialog] .auth-dialog-resend-row {
  justify-content: center;
  margin-top: 0;
}

[data-auth-dialog] .auth-dialog-resend-row .link-button:disabled {
  color: var(--vnext-text-secondary);
  opacity: 1;
}

[data-auth-dialog] .auth-dialog-status:empty {
  display: none;
}

[data-auth-dialog] .auth-dialog-status,
[data-auth-dialog] .auth-dialog-field-error,
[data-auth-dialog] .auth-dialog-legal {
  font-size: 14px;
  line-height: 1.5;
}

@keyframes auth-step-in {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-auth-dialog] .auth-dialog-form:not([hidden]) { animation: none; }
}

[data-auth-dialog] .auth-dialog-destination-group .link-button {
  justify-self: start;
  width: auto;
  text-align: left;
}

@media (max-width: 700px) {
  [data-auth-dialog] .auth-dialog { padding-inline: 16px; }
}

/* Entry and session restoration use the same frame as the sign-in dialog. */
.application-auth-gate {
  padding: 12px;
}

.application-auth-gate-card {
  display: grid;
  gap: 24px;
  max-width: 480px;
  padding: 30px;
  text-align: left;
}

.application-auth-gate-card .application-auth-gate-wordmark,
.application-auth-gate-card .application-auth-gate-title,
.application-auth-gate-card .application-auth-gate-copy,
.application-auth-gate-card .application-auth-gate-spinner {
  margin: 0;
}

.application-auth-gate-wordmark .brand-light,
[data-logout-dialog] .auth-dialog-wordmark .brand-light {
  color: var(--vnext-text);
}

.application-auth-gate-wordmark .brand-dim,
[data-logout-dialog] .auth-dialog-wordmark .brand-dim {
  color: var(--vnext-text-subtle);
}

.application-auth-gate-card .application-auth-gate-title {
  font-size: 29px;
  line-height: 1.12;
}

.application-auth-gate-card .primary-button {
  width: 100%;
  height: 48px;
  font-size: 16px;
}

@media (max-width: 700px) {
  .application-auth-gate-card {
    padding: 24px 16px;
  }
  .application-auth-gate-card .application-auth-gate-title {
    font-size: 27px;
  }
}

.application-auth-gate-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.application-auth-gate-status .application-auth-gate-spinner {
  flex: 0 0 22px;
}

.application-auth-gate[data-restoring="true"] .application-auth-gate-title {
  font-size: clamp(19px, 5.2vw, 27px);
  white-space: nowrap;
}

.vnext-render { padding-top:24px; min-width:0; }
body.vnext-surface-active [data-view="renders"] > :not([data-vnext-surface-root]),
body.vnext-surface-active [data-view="render-detail"] > :not([data-vnext-surface-root]) { display:none !important; }
.vnext-render p { color:var(--vnext-text-secondary); }
.vnext-render-intro { max-width:780px; margin-bottom:22px; }
.vnext-render-intro h2 { margin:0; font-size:28px; font-weight:500; letter-spacing:-.03em; }
.vnext-render-intro p { margin:7px 0 0; }
.vnext-render-media { display:grid; place-items:center; height:100%; overflow:hidden; border-radius:12px; background:var(--vnext-surface-elevated); border:1px solid var(--vnext-border); }
.vnext-render-media img { display:block; width:100%; height:100%; object-fit:contain; }
.vnext-render-media > span { padding:20px; color:var(--vnext-text-secondary); font-size:13px; }
.vnext-processing-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr); gap:18px; align-items:start; }
.vnext-processing-card { background:var(--vnext-surface); border:1px solid var(--vnext-border); border-radius:10px; padding:18px; }
.vnext-processing-card > .vnext-render-media { aspect-ratio:16/10; height:auto; margin-bottom:18px; }
.vnext-processing-status { display:flex; gap:12px; }
.vnext-processing-status .vnext-spinner { flex-shrink:0; }
.vnext-processing-status strong { font-size:18px; font-weight:500; }
.vnext-processing-status p { margin:5px 0 0; font-size:13px; }
.vnext-processing-aside { padding:16px; border:1px solid var(--vnext-border); border-radius:10px; background:var(--vnext-surface); }
.vnext-processing-aside > .vnext-render-media { aspect-ratio:1; height:auto; }
.vnext-processing-aside p { font-size:13px; }
.vnext-render-object { color:var(--vnext-text-value); font-size:18px; font-weight:500; }
.vnext-processing-aside p.vnext-processing-wheel-name { margin:3px 0 0; color:var(--vnext-text-value); font-size:14px; font-weight:500; }
.vnext-processing-aside p.vnext-processing-wheel-specs { margin:2px 0 0; color:var(--vnext-text-secondary); font-size:12px; font-weight:400; }
.vnext-render-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.vnext-result-layout { display:grid; grid-template-columns:minmax(0,76fr) minmax(250px,24fr); gap:24px; align-items:start; }
.vnext-result-actions .vnext-button { gap:8px; }
.vnext-result-actions .vnext-button--primary, .vnext-result-actions .vnext-button--secondary, .vnext-result-actions .vnext-button--tertiary { justify-content:center; width:100%; }
.vnext-result-actions .vnext-button--tertiary { min-height:44px; border-color:var(--vnext-border-strong); background:transparent; color:var(--vnext-text-value); }
.vnext-result-actions .vnext-button--tertiary:hover, .vnext-result-actions .vnext-button--tertiary:focus-visible { color:var(--vnext-text); }
.vnext-render-icon { width:16px; height:16px; flex:0 0 auto; }
.vnext-compare { position:relative; overflow:hidden; border-radius:12px; background:var(--vnext-surface-elevated); aspect-ratio:16/9; --compare:50%; }
.vnext-compare-layer { position:absolute; inset:0; }
.vnext-compare-reveal { clip-path:inset(0 calc(100% - var(--compare)) 0 0); }
.vnext-compare-divider { position:absolute; top:0; bottom:0; left:var(--compare); width:1px; background:#f1f3f2; pointer-events:none; }
.vnext-compare-handle { position:absolute; left:var(--compare); top:50%; transform:translate(-50%,-50%); width:32px; height:32px; border-radius:50%; border:1px solid rgba(199,204,207,.76); background:rgba(8,10,12,.78); display:grid; place-items:center; pointer-events:none; }
.vnext-compare-label { position:absolute; top:12px; padding:4px 6px; border-radius:2px; background:rgba(9,13,16,.72); color:var(--vnext-text); font-size:10px; letter-spacing:.08em; text-transform:uppercase; pointer-events:none; }
.vnext-compare-label.left { left:12px; } .vnext-compare-label.right { right:12px; }
.vnext-compare-range { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; }
.vnext-compare:focus-within { outline:2px solid var(--vnext-focus); outline-offset:3px; }
.vnext-result-aside { min-width:0; padding:6px 0; }
.vnext-result-meta { padding:11px 0; border-top:1px solid var(--vnext-border); }
.vnext-result-meta h3 { margin:0 0 6px; color:var(--vnext-text-subtle); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.vnext-result-meta p { margin:0; overflow-wrap:anywhere; }
.vnext-render p.vnext-result-value { color:var(--vnext-text-value); font-size:16px; font-weight:500; }
.vnext-render p.vnext-result-value--date { font-size:15px; font-variant-numeric:tabular-nums; }
.vnext-result-detail { margin-top:4px !important; color:var(--vnext-text-secondary) !important; font-size:13px; font-weight:400; font-variant-numeric:tabular-nums; }
.vnext-result-actions { display:grid; gap:7px; margin-top:18px; }
.vnext-result-actions .vnext-button { justify-content:flex-start; }
.vnext-result-actions .vnext-button--primary, .vnext-result-actions .vnext-button--secondary { justify-content:center; width:100%; }
.vnext-render-notice { margin:0; font-size:12px; }
.vnext-rating { width:min(650px,100%); margin-top:26px; padding-top:20px; border-top:1px solid var(--vnext-border); }
.vnext-rating h3 { margin:0; font-size:17px; font-weight:500; }
.vnext-rating > p { margin:4px 0 0; font-size:12px; }
.vnext-rating-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.vnext-rating-actions .vnext-button { min-height:44px; padding-inline:14px; font-size:13px; }
.vnext-rating .is-selected-good { border-color:var(--vnext-border-selected); background:var(--vnext-surface-selected); color:var(--vnext-positive); font-weight:var(--vnext-weight-semibold); }
.vnext-rating .is-selected-warning { border-color:var(--vnext-border-selected); background:var(--vnext-surface-selected); color:var(--vnext-warning); font-weight:var(--vnext-weight-semibold); }
.vnext-feedback-reasons { margin-top:14px; }
.vnext-feedback-reasons p { font-size:12px; }
.vnext-feedback-chips { display:flex; flex-wrap:wrap; gap:7px; }
.vnext-feedback-chips .vnext-button { min-height:44px; padding:0 11px; font-size:12px; }
.vnext-feedback-chips .is-selected-neutral { border-color:var(--vnext-border-selected); background:var(--vnext-surface-selected); font-weight:var(--vnext-weight-semibold); }
.vnext-rating .vnext-feedback-notice { color:var(--vnext-positive); margin-top:12px; }
.vnext-feedback-error { color:var(--vnext-negative); font-size:13px; margin-top:12px; }
.vnext-history-list { display:grid; gap:10px; }
.vnext-history-date { color:var(--vnext-text-secondary); font-size:13px; font-weight:500; padding-bottom:8px; margin:16px 0 0; border-bottom:1px solid var(--vnext-border); }
.vnext-history-row { display:grid; grid-template-columns:190px minmax(0,1fr) auto; gap:16px; align-items:start; padding:16px; border:1px solid var(--vnext-border); border-radius:10px; background:var(--vnext-surface); }
.vnext-history-row > .vnext-render-media { aspect-ratio:16/10; height:auto; border-radius:8px; }
.vnext-history-row h3 { color:var(--vnext-text-value); font-size:16px; font-weight:500; margin:0; overflow-wrap:anywhere; }
.vnext-history-row p { font-size:12px; margin:3px 0 7px; overflow-wrap:anywhere; }
.vnext-history-actions { display:flex; justify-content:flex-end; }
.vnext-system-wrap { display:grid; place-items:center; min-height:56vh; }
.vnext-system-card { width:min(620px,100%); padding:28px; border:1px solid var(--vnext-border); border-radius:10px; background:var(--vnext-surface); }
.vnext-system-card h1, .vnext-system-card h2 { margin:0; font-size:28px; font-weight:500; letter-spacing:-.03em; }
.vnext-system-card p { margin:8px 0 22px; }
.vnext-system-mark { color:var(--vnext-warning); font-size:26px; margin-bottom:12px; }
.vnext-generation-error { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr); gap:32px; align-items:start; min-height:0; }
.vnext-generation-error--no-car { grid-template-columns:minmax(0,680px); max-width:680px; }
.vnext-generation-media { min-width:0; }
.vnext-generation-media:empty { display:none; }
.vnext-generation-media > .vnext-render-media { aspect-ratio:16/9; height:auto; }
.vnext-generation-aside { min-width:0; }
.vnext-generation-copy { max-width:480px; margin:0 0 20px; }
.vnext-generation-copy .vnext-eyebrow { margin:0 0 9px; }
.vnext-generation-copy h2 { margin:0; font-size:clamp(28px,2.2vw,32px); line-height:1.14; font-weight:500; letter-spacing:-.03em; }
.vnext-generation-copy > p:not(.vnext-eyebrow) { max-width:42ch; margin:10px 0 0; font-size:14px; }
.vnext-generation-meta { padding:13px 0; border-top:1px solid var(--vnext-border); }
.vnext-generation-meta h3 { margin:0 0 6px; color:var(--vnext-text-subtle); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.vnext-generation-meta > p, .vnext-generation-wheel-copy p { margin:0; overflow-wrap:anywhere; }
.vnext-render p.vnext-generation-value { color:var(--vnext-text-value); font-size:15px; font-weight:500; }
.vnext-generation-specs { margin-top:4px !important; color:var(--vnext-text-secondary) !important; font-size:13px; font-weight:400; font-variant-numeric:tabular-nums; }
.vnext-generation-wheel { display:flex; align-items:center; gap:12px; min-width:0; }
.vnext-generation-wheel-thumb { width:80px; height:80px; flex:0 0 80px; }
.vnext-generation-wheel-thumb .vnext-render-media { aspect-ratio:1; height:100%; border-radius:6px; }
.vnext-generation-wheel-copy { min-width:0; }
.vnext-generation-wheel-copy p + p { margin-top:4px; color:var(--vnext-text-secondary); font-size:13px; font-weight:400; }
.vnext-generation-actions { display:grid; justify-items:start; gap:6px; margin-top:18px; }
.vnext-generation-actions .vnext-button--primary { width:190px; max-width:100%; }
.vnext-generation-actions .vnext-button--text { min-height:38px; }
@media(min-width:1350px) { .vnext-shell__main:has(.vnext-render--result) { padding-inline:32px; } }
@media(max-width:980px) { .vnext-processing-layout { grid-template-columns:1fr; } }
@media(max-width:1024px) {
  .vnext-result-layout { display:flex; flex-direction:column; gap:20px; }
  .vnext-result-layout > .vnext-compare { width:100%; }
  .vnext-result-aside { width:100%; max-width:680px; }
}
@media(max-width:680px) {
  .vnext-render { padding-top:18px; }
  .vnext-result-layout { display:flex; flex-direction:column; gap:18px; }
  .vnext-result-layout > .vnext-compare { order:0; width:100%; }
  .vnext-result-aside { order:1; width:100%; padding:0; }
  .vnext-result-actions { gap:6px; margin-top:14px; }
  .vnext-rating { margin-top:22px; }
  .vnext-rating-actions { display:flex; }
  .vnext-render-actions { display:grid; grid-template-columns:1fr; }
  .vnext-result-actions .vnext-button--primary, .vnext-result-actions .vnext-button--secondary, .vnext-result-actions .vnext-button--tertiary { width:100%; }
  .vnext-shell__main:has(.vnext-render--result) .vnext-shell__topbar-title { font-size:24px; line-height:1.15; }
  .vnext-render p.vnext-result-value--date { font-size:14px; }
  .vnext-history-row { grid-template-columns:140px minmax(0,1fr); gap:12px; padding:16px; }
  .vnext-history-actions { grid-column:2; justify-content:flex-start; }
  .vnext-compare { aspect-ratio:4/3; }
  .vnext-system-card { padding:22px 18px; }
  .vnext-generation-error, .vnext-generation-error--no-car { grid-template-columns:minmax(0,1fr); gap:18px; max-width:none; }
  .vnext-generation-error--no-car { gap:0; }
  .vnext-generation-media > .vnext-render-media { aspect-ratio:16/10; }
  .vnext-generation-copy { margin:0 0 16px; }
  .vnext-generation-copy h2 { font-size:28px; }
  .vnext-generation-meta { padding:11px 0; }
  .vnext-generation-wheel-thumb { width:68px; height:68px; flex-basis:68px; }
  .vnext-generation-actions { justify-items:stretch; margin-top:16px; }
  .vnext-generation-actions .vnext-button--primary { width:100%; }
}
@media(max-width:390px) {
  .vnext-compare { aspect-ratio:1; }
  .vnext-history-row { grid-template-columns:88px minmax(0,1fr); gap:14px; align-items:start; padding:16px; }
  .vnext-history-row > .vnext-render-media { aspect-ratio:1; }
  .vnext-history-row h3 { font-size:14px; }
  .vnext-history-row p { font-size:11px; }
}

.vnext-render-failed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.vnext-render-failed > div { min-width: 0; overflow-wrap: anywhere; }
.vnext-render-failed h2 { white-space: normal; }
.vnext-render-failed-source { aspect-ratio: 4 / 3; max-height: 420px; display: grid; place-items: center; background: var(--vnext-surface); border-radius: 16px; overflow: hidden; }
.vnext-render-failed-source img, .vnext-render-asset-unavailable img { width: 100%; height: 100%; object-fit: contain; }
.vnext-render-asset-unavailable { text-align: center; padding: 24px; }
.vnext-render-asset-unavailable img { max-height: 320px; }
@media (max-width: 600px) { .vnext-render-failed { grid-template-columns: minmax(0, 1fr); gap: 16px; } .vnext-render-failed-source { max-height: 240px; } }

.vnext-render-failed h2, .vnext-render-asset-unavailable h2 { color: var(--vnext-text); }

/* P3-B Result: image-first groups separated by spacing. */
.vnext-shell__main:has(.vnext-render--result) .vnext-shell__topbar { border-bottom:0; padding-bottom:12px; }
.vnext-render--result { padding-top:12px; }
.vnext-result-meta { border-top:0; padding:7px 0; }
.vnext-result-aside { padding:0; }
.vnext-compare { aspect-ratio:var(--image-ratio, 16/9); }
.vnext-compare .vnext-render-media { min-height:0; border:0; border-radius:0; }
@media(max-width:760px) {
  .vnext-compare { aspect-ratio:var(--image-ratio,16/9); max-height:60vh; max-width:min(100%,calc(60vh * var(--image-ratio,1.7777778))); }
  .vnext-result-layout { gap:12px; }
}
.vnext-result-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.vnext-result-secondary:has(> :only-child) { grid-template-columns:minmax(0,1fr); }
.vnext-result-secondary .vnext-button { min-width:0; padding-inline:8px; }
.vnext-result-aside { container-type:inline-size; container-name:result-actions; }
.vnext-result-check-full { display:none; }
.vnext-result-check-short { display:inline; }
.vnext-result-secondary .vnext-button { white-space:nowrap; }
@container result-actions (min-width:420px) { .vnext-result-check-full { display:inline; } .vnext-result-check-short { display:none; } }
@container result-actions (min-width:312px) { .vnext-result-check-full:lang(en) { display:inline; } .vnext-result-check-short:lang(en) { display:none; } }
.vnext-compare-loading { position:absolute; left:25%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; }
.vnext-compare-reveal .vnext-compare-loading { left:25%; }
.vnext-compare-layer:not(.vnext-compare-reveal) .vnext-compare-loading { left:75%; }
.vnext-history-time { color:var(--vnext-text-subtle); font-variant-numeric:tabular-nums; }
@media(min-width:761px) {
  .vnext-result-layout > .vnext-compare { width:100%; max-height:min(75vh,820px); max-width:min(100%,calc(min(75vh,820px) * var(--image-ratio,1.7777778))); justify-self:center; align-self:start; }
}
.vnext-render--result .vnext-rating { border-top:0; }

@media(min-width:761px) and (max-width:1024px) { .vnext-result-layout > .vnext-compare { align-self:center; } }

/* UI-022: source wheel reference, shared photo styling and explicit action. */
.vnext-result-wheel { margin:10px 0; max-width:240px; }
.vnext-result-wheel .vnext-render-media { aspect-ratio:auto; background:transparent; border:0; }
.vnext-result-wheel img { display:block; width:100%; height:auto; max-height:240px; object-fit:contain; border-radius:12px; }
.vnext-result-actions .vnext-result-check-full { display:inline; }
.vnext-result-actions .vnext-result-check-short { display:none; }
.vnext-result-actions .vnext-result-secondary { grid-template-columns:minmax(0,1fr); }
.vnext-result-actions .vnext-result-secondary .vnext-button { white-space:normal; }
@media(max-width:760px) { .vnext-result-wheel { max-width:144px; } .vnext-result-wheel img { max-height:144px; } }

/* UI-023: horizontal input summary, wide comparison, actions below. */
.vnext-render--result .vnext-result-layout { display:flex; flex-direction:column; gap:24px; }
.vnext-result-header { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:center; }
.vnext-result-vehicle .vnext-result-meta { padding:4px 0; }
.vnext-result-wheel-summary .vnext-result-meta { display:grid; grid-template-columns:96px minmax(0,1fr); column-gap:16px; align-content:center; }
.vnext-result-wheel-summary .vnext-result-meta > :not(.vnext-result-wheel) { grid-column:2; }
.vnext-result-wheel-summary .vnext-result-wheel { grid-column:1; grid-row:1 / span 5; width:96px; margin:0; align-self:center; }
.vnext-result-wheel-summary .vnext-result-wheel img { max-height:112px; }
.vnext-result-wheel-summary .vnext-result-meta:not(:has(.vnext-result-wheel)) { display:block; }
.vnext-render--result .vnext-result-layout > .vnext-compare { width:100%; max-width:100%; max-height:none; align-self:stretch; aspect-ratio:var(--image-ratio,16/9); }
.vnext-result-layout > .vnext-result-actions { display:flex; flex-wrap:wrap; gap:10px; margin:0; }
.vnext-result-layout > .vnext-result-actions .vnext-result-secondary { display:flex; flex-wrap:wrap; gap:10px; }
.vnext-result-layout > .vnext-render-notice:empty { display:none; }
@media(max-width:760px) {
 .vnext-result-header { grid-template-columns:minmax(0,1fr); gap:16px; }
 .vnext-result-layout > .vnext-result-actions, .vnext-result-layout > .vnext-result-actions .vnext-result-secondary { display:grid; grid-template-columns:minmax(0,1fr); width:100%; }
}

.vnext-result-header { width:100%; }
.vnext-result-layout > .vnext-result-actions { width:100%; }
.vnext-result-layout > .vnext-result-actions .vnext-button { width:auto; }
@media(max-width:760px) { .vnext-result-layout > .vnext-result-actions .vnext-button { width:100%; } }

/* UI-024: wheel first; group current-result actions apart from repeat. */
.vnext-result-vehicle .vnext-result-value { font-size:20px; }
.vnext-render p.vnext-result-date { color:var(--vnext-text-secondary); font-size:13px; }
.vnext-result-layout > .vnext-result-actions { justify-content:space-between; align-items:center; }
@media(max-width:760px) {
 .vnext-result-layout > .vnext-result-actions > [data-render-action="repeat"] { margin-top:6px; }
}

/* UI-025: continuous History gallery, matching Home media interactions. */
.vnext-shell__main:has(.vnext-render--history) .vnext-shell__topbar { border-bottom:0; }
.vnext-history-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 20px; }
.vnext-history-card { min-width:0; }
.vnext-history-link { display:block; color:var(--vnext-text); text-decoration:none; }
.vnext-history-link .vnext-render-media { aspect-ratio:16/10; height:auto; border:0; background:transparent; }
.vnext-history-link img { object-fit:cover; }
.vnext-history-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; }
.vnext-history-title h3 { margin:0; font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.vnext-history-title > span { color:var(--vnext-text-secondary); }
.vnext-history-card .vnext-history-time { margin:5px 0 0; font-size:13px; }
.vnext-history-state, .vnext-history-billing { margin:8px 0; font-size:13px; color:var(--vnext-text-secondary); }
.vnext-history-link:focus-visible { outline:none; }
.vnext-history-link:focus-visible .vnext-render-media { outline:2px solid var(--vnext-focus); outline-offset:2px; }
@media(hover:hover) { .vnext-history-link:hover .vnext-render-media { outline:1px solid var(--vnext-text); outline-offset:0; } .vnext-history-link:hover img { filter:brightness(1.06); } }
.vnext-history-more { display:flex; justify-content:center; margin-top:28px; }
@media(max-width:1100px) { .vnext-history-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) { .vnext-history-gallery { grid-template-columns:minmax(0,1fr); } }

/* UI-027: status overlays keep the History card captions uniform. */
.vnext-history-preview { position:relative; }
.vnext-history-badge { position:absolute; top:10px; left:10px; display:inline-flex; align-items:center; gap:7px; max-width:calc(100% - 20px); padding:5px 8px; border-radius:6px; background:rgba(9,13,16,.84); color:var(--vnext-text); font-size:12px; line-height:1.4; pointer-events:none; }
.vnext-history-badge.is-failed { color:#d5b77c; }
.vnext-history-badge .vnext-spinner { width:12px; height:12px; border-width:1.5px; }
@media(prefers-reduced-motion:reduce) { .vnext-history-badge .vnext-spinner { animation:none; } }

.vnext-render-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--vnext-text-secondary);
}
.vnext-render-loading .vnext-spinner { flex-shrink: 0; }
.vnext-result-wheel-summary .vnext-button { margin-top: 12px; justify-self: start; width: auto; min-height: 38px; padding: 0 12px; font-size: 14px; }

.vnext-result-recovery-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.vnext-shell:has(.vnext-result-recovery) .vnext-shell__topbar-title { display: none; }
.vnext-result-recovery p { margin-top: 12px; }

/* Approved result action groups: export left, continuation right. */
.vnext-result-layout > .vnext-result-actions { display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap; }
.vnext-result-actions .vnext-result-export,.vnext-result-actions .vnext-result-continue { display:flex;align-items:center;gap:8px; }
.vnext-result-actions .vnext-result-continue { margin-left:auto; }
.vnext-result-layout > .vnext-result-actions .vnext-button { width:auto;min-height:44px;white-space:nowrap; }
@media(max-width:760px) {
 .vnext-result-layout > .vnext-result-actions { display:grid;grid-template-columns:minmax(0,1fr);gap:12px; }
 .vnext-result-actions .vnext-result-export { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
 .vnext-result-actions .vnext-result-continue { display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-left:0; }
 .vnext-result-layout > .vnext-result-actions .vnext-button { width:100%;min-width:0;justify-content:center;white-space:normal; }
}
@media(max-width:340px) { .vnext-result-actions .vnext-result-export { grid-template-columns:minmax(0,1fr); } }

/* Recovery belongs to the failed image, independently of the result actions. */
.vnext-media-recovery { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px; text-align:center; min-width:0; }
.vnext-media-recovery p { margin:0; color:var(--vnext-text-secondary); font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.vnext-media-recovery .vnext-button { width:auto; min-height:44px; padding:8px 16px; flex:none; }
.vnext-compare--asset-error { --compare:50% !important; }
.vnext-compare--asset-error .vnext-compare-range { pointer-events:none; }
.vnext-compare-reveal .vnext-media-recovery { position:absolute; inset:0 50% 0 0; background:var(--vnext-surface-elevated); }
.vnext-result-wheel .vnext-media-recovery { padding:8px; gap:8px; }
.vnext-result-wheel .vnext-media-recovery p { font-size:12px; }
.vnext-render-asset-unavailable > .vnext-media-recovery { margin-bottom:16px; }

.vnext-fitment {
  --vnext-fitment-muted: var(--vnext-text-secondary);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  width: min(100%, 1120px);
  max-width: 1120px;
  padding-top: 8px;
  min-width: 0;
}
.vnext-fitment, .vnext-fitment * { box-sizing: border-box; }

.vnext-fitment .vnext-eyebrow { color: var(--vnext-fitment-muted); }
.vnext-fitment__topline { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.vnext-fitment__topline > .vnext-button { order: -1; min-height: 44px; border: 0; background: transparent; padding: 0; }
.vnext-fitment__topline > .vnext-button::before { content: "←"; margin-right: 8px; }
.vnext-fitment__topline h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; font-weight: var(--vnext-weight-medium); letter-spacing: -.025em; }
.vnext-fitment__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; min-width: 0; }
.vnext-fitment__pair > section { min-width: 0; }
.vnext-fitment__object { display: grid; align-content: start; min-width: 0; padding: 16px; border: 1px solid var(--vnext-border); border-radius: 10px; background: var(--vnext-surface); }
.vnext-fitment__object--editing { border-color: var(--vnext-border-strong); background: var(--vnext-surface-elevated); }
.vnext-fitment__object > .vnext-eyebrow { margin: 0 0 10px; font-weight: 600; }
.vnext-fitment__object > h2 { margin: 12px 0 0; font-size: 18px; font-weight: var(--vnext-weight-semibold); line-height: 1.25; overflow-wrap: anywhere; }
.vnext-fitment__visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vnext-fitment__source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; min-width: 0; }
.vnext-fitment__source-row p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; min-width: 0; font-size: 12px; }
.vnext-fitment__source-row span, .vnext-fitment__source-row small { color: var(--vnext-text-secondary); }
.vnext-fitment__source-row strong { font-weight: var(--vnext-weight-medium); }
.vnext-fitment__source-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.vnext-fitment__source-row .vnext-button { flex: 0 0 auto; min-height: 34px; padding: 0 13px; border-color: var(--vnext-text); background: var(--vnext-text); color: var(--vnext-canvas); font-size: 12px; }
.vnext-fitment__source-action { margin-top: 14px; }
.vnext-fitment__source-action .vnext-button { width: 100%; }
.vnext-fitment__object-detail { margin: 4px 0 0; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-fitment__active-editor { min-width: 0; }
.vnext-fitment__active-editor:empty { display: none; }
.vnext-fitment__standard { display: grid; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--vnext-border); border-radius: 10px; background: var(--vnext-surface); }
.vnext-fitment__standard h2 { margin: 0; font-size: 22px; font-weight: var(--vnext-weight-semibold); }
.vnext-fitment__standard > p { margin: 0; color: var(--vnext-text-secondary); }
.vnext-fitment__ready-summaries { display: grid; gap: 10px; }
.vnext-fitment__ready-summaries > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.vnext-fitment__ready-summaries span { color: var(--vnext-text-secondary); }
.vnext-fitment__ready-summaries strong { font-weight: var(--vnext-weight-medium); overflow-wrap: anywhere; }
.vnext-fitment__standard .vnext-fitment__footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vnext-fitment__standard .vnext-fitment__footer > .vnext-button { width: 100%; }
.vnext-fitment__object-status { margin-top: 12px; color: var(--vnext-text-secondary); font-size: 14px; }
.vnext-fitment__stage { position: relative; display: grid; place-items: center; width: 100%; height: 176px; overflow: hidden; border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text-secondary); }
.vnext-fitment__stage--wheel { background: var(--vnext-surface-elevated); }
.vnext-fitment__stage--wheel img { padding: 8px; }
.vnext-fitment:has(.vnext-fitment__object--editing) .vnext-fitment__stage { height: 176px; }
.vnext-fitment__stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.vnext-fitment__stage--vehicle img { object-fit: contain; }
.vnext-fitment__section-heading { display: grid; gap: 8px; min-height: 0; }
.vnext-fitment__section-heading h2, .vnext-fitment__section-heading h3 { margin: 0; font-size: 19px; font-weight: var(--vnext-weight-medium); }
.vnext-fitment__section-heading h3 { font-size: 16px; }
.vnext-fitment__editor, .vnext-fitment__variant-step, .vnext-fitment__recognition { display: grid; gap: 18px; min-width: 0; width: 100%; padding: 24px; border: 1px solid var(--vnext-border); border-radius: 10px; background: var(--vnext-surface); scroll-margin-top: 24px; }
.vnext-fitment__field-group { display: grid; gap: 12px; }
.vnext-fitment__field-group > h3 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: var(--vnext-weight-medium); }
.vnext-fitment__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; min-width: 0; }
.vnext-fitment__field-wrap, .vnext-fitment__field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.vnext-fitment__field { color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-fitment__field input, .vnext-fitment__field select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 11px; font: inherit; font-size: 15px; }
.vnext-fitment__field input:focus-visible, .vnext-fitment__field select:focus-visible { outline: 2px solid var(--vnext-text); outline-offset: 2px; }
.vnext-fitment__field input:disabled, .vnext-fitment__field select:disabled { cursor: not-allowed; color: var(--vnext-fitment-muted); background: var(--vnext-surface); opacity: .88; }
.vnext-fitment__field--invalid input, .vnext-fitment__field--invalid select { border-color: var(--vnext-negative); }
.vnext-fitment__field-message { color: var(--vnext-fitment-muted); line-height: 1.45; }
.vnext-fitment__field-error { color: var(--vnext-negative); line-height: 1.45; }
.vnext-fitment__field-message .vnext-button { margin-left: 8px; }
.vnext-fitment__suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.vnext-fitment__suggestions .vnext-button { min-height: 42px; padding: 7px 11px; font-size: 13px; }
.vnext-fitment__actions, .vnext-fitment__source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.vnext-fitment__source-actions p { flex: 1 1 100%; margin: 0; color: var(--vnext-text-secondary); font-size: 13px; line-height: 1.5; }
.vnext-fitment__editor > .vnext-button, .vnext-fitment__variant-step > .vnext-button { justify-self: start; }
.vnext-fitment__variant-list { display: grid; gap: 8px; }
.vnext-fitment__choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 12px; border: 1px solid var(--vnext-border); border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text); text-align: left; }
.vnext-fitment__choice[aria-pressed="true"] { border-color: var(--vnext-border-selected); background: var(--vnext-surface-selected); }
.vnext-fitment__choice-copy { display: grid; gap: 3px; }
.vnext-fitment__choice-copy { min-width: 0; overflow-wrap: anywhere; }
.vnext-fitment__choice-copy strong { font-size: 18px; font-weight: var(--vnext-weight-semibold); }
.vnext-fitment__choice[aria-pressed="true"] .vnext-fitment__choice-copy strong { font-weight: var(--vnext-weight-semibold); }
.vnext-fitment__choice-copy small { color: var(--vnext-text-secondary); }
.vnext-fitment__axle { display: grid; gap: 12px; }

.vnext-fitment__source-disclosure { display: grid; gap: 12px; padding-top: 8px; }
.vnext-fitment__source-disclosure > .vnext-button { justify-self: start; }
.vnext-fitment__source-panel { display: grid; gap: 14px; }
.vnext-fitment__source-panel .vnext-fitment__field { max-width: 760px; }
.vnext-fitment__source-panel input { min-height: 44px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 11px; font: inherit; }
.vnext-fitment__notice { margin: 0; color: var(--vnext-text-secondary); overflow-wrap: anywhere; }
.vnext-fitment__notice--error { color: var(--vnext-negative); }
.vnext-fitment__notice--success { color: var(--vnext-positive); }
.vnext-fitment__notice--warning { color: var(--vnext-warning); }
.vnext-fitment__choices { display: grid; gap: 10px; padding-top: 12px; }
.vnext-fitment__choices h3 { margin: 0; font-size: 15px; font-weight: var(--vnext-weight-medium); }
.vnext-fitment__choices > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vnext-fitment__choices > div:has(.vnext-fitment__sku-row) { display: grid; gap: 8px; }
.vnext-fitment__sku-row { display: grid; grid-template-columns: minmax(160px,1fr) minmax(0,1.6fr); gap: 14px; align-items: center; width: 100%; padding: 14px; border: 1px solid var(--vnext-border); border-radius: 8px; background: transparent; color: var(--vnext-text); font: inherit; text-align: left; cursor: pointer; }
.vnext-fitment__sku-row:hover, .vnext-fitment__sku-row:focus-visible { border-color: var(--vnext-border-strong); background: var(--vnext-surface-selected); }
.vnext-fitment__sku-name { font-weight: var(--vnext-weight-medium); }
.vnext-fitment__sku-code { color: var(--vnext-text-secondary); font-size: 12px; }
.vnext-fitment__sku-specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.vnext-fitment__sku-specs > span { display: grid; gap: 3px; min-width: 0; }
.vnext-fitment__sku-specs small { display: none; color: var(--vnext-text-secondary); font-size: 11px; }
.vnext-fitment__sku-specs strong { font-size: 13px; font-weight: var(--vnext-weight-medium); white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.vnext-fitment__sku-row:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: 2px; }
.vnext-fitment__conflict { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.vnext-fitment__conflict-chip { padding: 7px 12px; min-height: 36px; border: 1px solid var(--vnext-border-strong); border-radius: 6px; background: transparent; color: var(--vnext-text); font: inherit; }
.vnext-fitment__conflict-chip:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: 2px; }
.vnext-fitment__object-status > span { display: block; }
.vnext-fitment__object-status > span + span { margin-top: 4px; }
.vnext-fitment__loading { display: flex; align-items: center; gap: 10px; color: var(--vnext-text-secondary); }
.vnext-fitment__loading .vnext-spinner { flex: 0 0 20px; }
.vnext-fitment__verdict { display: grid; justify-items: start; gap: 8px; }
.vnext-fitment__verdict .vnext-eyebrow { margin: 0; }
.vnext-fitment__verdict h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: var(--vnext-weight-medium); letter-spacing: -.03em; }
.vnext-fitment__verdict p:not(.vnext-eyebrow) { margin: 0; max-width: 70ch; color: var(--vnext-text-secondary); }
.vnext-fitment__verdict--compatible h2 { color: var(--vnext-positive); }
.vnext-fitment__verdict--compatible_with_conditions h2, .vnext-fitment__verdict--stale h2 { color: var(--vnext-warning); }
.vnext-fitment__verdict--incompatible h2, .vnext-fitment__verdict--failed h2 { color: var(--vnext-negative); }
.vnext-fitment__verdict--unknown h2 { color: var(--vnext-text); }
.vnext-fitment__previous-verdict { font-size: 14px; }
.vnext-fitment__comparison-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vnext-fitment__comparison-table caption { text-align: left; color: var(--vnext-text-secondary); padding: 14px 0; }
.vnext-fitment__comparison-table col:nth-child(1) { width: 20%; }
.vnext-fitment__comparison-table col:nth-child(2), .vnext-fitment__comparison-table col:nth-child(3) { width: 25%; }
.vnext-fitment__comparison-table col:nth-child(4) { width: 30%; }
.vnext-fitment__comparison-table th, .vnext-fitment__comparison-table td { padding: 11px 6px; border-bottom: 1px solid var(--vnext-border); text-align: left; overflow-wrap: anywhere; vertical-align: top; font-weight: 400; line-height: 1.4; }
.vnext-fitment__comparison-table th { color: var(--vnext-text-secondary); }
.vnext-fitment__comparison-table tbody td:nth-child(2),
.vnext-fitment__comparison-table tbody td:nth-child(3) { color: var(--vnext-text); font-weight: 600; }
.vnext-fitment__comparison-table th:first-child { padding-left: 0; }
.vnext-fitment__comparison-table thead { font-size: 12px; }
.vnext-fitment__comparison-table tbody tr:focus { outline: 1px solid var(--vnext-border-strong); outline-offset: -1px; background: var(--vnext-surface-elevated); }
.vnext-fitment__comparison-table tbody tr:active { background: var(--vnext-surface-selected); }
@media (hover: hover) { .vnext-fitment__comparison-table tbody tr:hover { background: rgba(255,255,255,.025); } }
@media (max-width: 700px) { .vnext-fitment__comparison-table { font-size: 12px; } }
.vnext-fitment__evidence ul { margin: 14px 0 0; padding-left: 20px; color: var(--vnext-text-secondary); }
.vnext-fitment__evidence li + li { margin-top: 9px; }
.vnext-fitment__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vnext-fitment__footer > .vnext-button { min-height: 46px; }
body.vnext-surface-active [data-view="fitment"] > :not([data-vnext-surface-root]) { display: none !important; }

@media (min-width: 701px) {
  .vnext-shell__frame:has(.vnext-fitment) > .vnext-shell__topbar { display: none; }
}


@media (max-width: 700px) {
  .vnext-fitment__sku-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .vnext-fitment__sku-specs { grid-column: 1 / -1; grid-row: 2; }
  .vnext-fitment__choices > .vnext-fitment__sku-legend { display: none !important; }
  .vnext-fitment__sku-specs small { display: block; }
  .vnext-fitment__sku-specs strong { font-size: 12px; }
  .vnext-fitment { gap: 20px; padding-top: 18px; }
  .vnext-fitment__topline { flex-direction: row; justify-content: space-between; align-items: start; gap: 16px; }
  .vnext-fitment__topline > .vnext-button { order: 0; min-height: 42px; border: 1px solid var(--vnext-border-strong); background: var(--vnext-surface-elevated); padding: 0 14px; }
  .vnext-fitment__topline > .vnext-button::before { content: none; }
  .vnext-fitment__fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .vnext-fitment__pair { gap: 24px; }
  .vnext-fitment__pair { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vnext-fitment__object { padding: 14px; }
  .vnext-fitment__source-row p { display: grid; gap: 2px; }
  .vnext-fitment__source-row small { max-width: 100%; }
  .vnext-fitment__standard { padding: 18px 16px; }
  .vnext-fitment__ready-summaries > div { grid-template-columns: 110px minmax(0, 1fr); }
  .vnext-fitment__standard .vnext-fitment__footer { grid-template-columns: minmax(0, 1fr); }
  .vnext-fitment__stage, .vnext-fitment:has(.vnext-fitment__object--editing) .vnext-fitment__stage { height: 150px; }

  .vnext-fitment__actions, .vnext-fitment__source-actions { align-items: stretch; flex-direction: column; }
  .vnext-fitment__source-actions p { flex: 0 1 auto; width: 100%; min-width: 0; }
  .vnext-fitment__source-disclosure > .vnext-button, .vnext-fitment__actions > .vnext-button, .vnext-fitment__source-actions > .vnext-button { width: 100%; }
  .vnext-fitment__editor > .vnext-button, .vnext-fitment__variant-step > .vnext-button { width: 100%; }
  .vnext-fitment__footer { flex-direction: column; align-items: stretch; }
  .vnext-fitment__footer > .vnext-button { width: 100%; }
}

.vnext-fitment__proposal-stack { display: grid; gap: 11px; width: 100%; max-width: 460px; }
.vnext-fitment__compound-field { display: grid; gap: 7px; }
.vnext-fitment__compound-field > span { font-size: 13px; color: var(--vnext-text-secondary); }
.vnext-fitment__compound-field > small { color: var(--vnext-text-subtle); }
.vnext-fitment__compound { display: grid; grid-template-columns: minmax(0,3fr) minmax(145px,2fr); border: 1px solid var(--vnext-border-strong); border-radius: 8px; overflow: hidden; background: var(--vnext-surface-elevated); }
.vnext-fitment__compound > button { min-height: 46px; border: 0; padding: 0 13px; background: transparent; color: var(--vnext-text); text-align: left; font: inherit; cursor: pointer; }
.vnext-fitment__compound > button:last-child { border-left: 1px solid var(--vnext-border); font-size: 12px; color: var(--vnext-text-secondary); }
.vnext-fitment__compound--accepted { background: var(--vnext-surface-selected); }
.vnext-fitment__compound > button:first-child { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--vnext-text-secondary); }
.vnext-fitment__compound--accepted > button:first-child { font-weight: 600; color: var(--vnext-text); }
.vnext-fitment__compound > button:first-child:hover:not(:disabled) { background: var(--vnext-surface-selected); color: var(--vnext-text); }
.vnext-fitment__picker-scrim { position: fixed; inset: 0; z-index: 90; background: #000a; }
.vnext-fitment__picker { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; max-height: 82dvh; overflow: auto; background: var(--vnext-surface); border: 1px solid var(--vnext-border-strong); border-radius: 10px 10px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.vnext-fitment__picker h3 { font-size: 11px; color: var(--vnext-text-subtle); margin: 0 0 10px; }
.vnext-fitment__picker-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.vnext-fitment__picker-option { min-height: 44px; border: 1px solid var(--vnext-border); border-radius: 9px; background: var(--vnext-surface-elevated); color: var(--vnext-text); font: inherit; }
.vnext-fitment__picker-manual { display: grid; gap: 10px; padding-top: 0; }
.vnext-fitment__picker-manual p { margin: 0; color: var(--vnext-text-secondary); font-size: 13px; }
@media (min-width: 769px) {
  .vnext-fitment__picker { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%,-50%); width: min(560px,calc(100vw - 48px)); border-radius: 10px; }
}

.vnext-fitment__source-action { display: grid; gap: 8px; }
.vnext-fitment__source-action .vnext-button + .vnext-button { min-height: 44px; background: transparent; color: var(--vnext-text-secondary); }
.vnext-fitment__recognition p { margin: 0; color: var(--vnext-text-secondary); }
.vnext-fitment__recognition > .vnext-button { justify-self: start; }
.vnext-fitment__mutation-region { display: grid; gap: 24px; border: 0; padding: 0; margin: 0; min-width: 0; }
.vnext-fitment__workspace { display: grid; gap: 20px; min-width: 0; }
.vnext-fitment__ready-summaries strong small { display: block; margin-top: 5px; color: var(--vnext-text-secondary); font-size: 13px; font-weight: 400; }
.vnext-fitment__commercial-warning { padding-top: 14px; color: var(--vnext-text-subtle); font-size: 12px; line-height: 1.5; }
.vnext-fitment__commercial-warning p { margin: 0; }
.vnext-fitment__commercial-warning small { display: block; margin-top: 4px; font-size: inherit; }
.vnext-fitment__paired-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.vnext-fitment__paired-actions > .vnext-button { min-height: 46px; }
.vnext-fitment__choice { border: 0; border-radius: 0; background: transparent; }
.vnext-fitment__variant-list, .vnext-fitment__choices > div:has(.vnext-fitment__sku-row) { gap: 8px; }
.vnext-fitment__compound button:focus-visible, .vnext-fitment__picker button:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: -2px; }
.vnext-fitment__compound button:disabled { cursor: not-allowed; }
@media (max-width: 700px) {
  .vnext-fitment__workspace { gap: 20px; }
  .vnext-fitment__source-row .vnext-button { min-height: 44px; }
  .vnext-fitment__paired-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .vnext-fitment *, .vnext-fitment *::before, .vnext-fitment *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.vnext-fitment__editor-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.vnext-fitment__editor-heading h2 { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 600; }
.vnext-fitment__identity-code { margin: 5px 0 0; color: var(--vnext-text-subtle); font-size: 12px; overflow-wrap: anywhere; }
.vnext-fitment__mode { display: flex; padding: 3px; border: 1px solid var(--vnext-border); border-radius: 8px; background: var(--vnext-surface); }
.vnext-fitment__mode button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--vnext-text-secondary); font: inherit; font-weight: 500; cursor: pointer; }
.vnext-fitment__mode button[aria-pressed="true"] { background: var(--vnext-surface-selected); color: var(--vnext-text); font-weight: 600; }
.vnext-fitment__axles { display: grid; gap: 24px; }
.vnext-fitment__axles--staggered { grid-template-columns: repeat(2,minmax(0,1fr)); }
.vnext-fitment__axle h3 { margin: 0; font-size: 14px; font-weight: 600; }
.vnext-fitment__progress { margin: 0; font-size: 12px; color: var(--vnext-text-secondary); }
.vnext-fitment__variant-cue { margin-left: auto; flex: 0 0 auto; color: var(--vnext-text-subtle); font-size: 12px; }
.vnext-fitment__result-panel { display: grid; gap: 18px; padding: 24px; border: 1px solid var(--vnext-border); border-radius: 10px; background: var(--vnext-surface); }
.vnext-fitment__row-result--conditional { color: var(--vnext-warning); }
.vnext-fitment__row-result--fail { color: var(--vnext-negative); }
.vnext-fitment__evidence { padding: 8px 12px; border-left: 2px solid var(--vnext-border-strong); background: var(--vnext-surface-elevated); }
.vnext-fitment__evidence ul { margin: 0; padding-left: 16px; }
.vnext-fitment__picker .vnext-fitment__section-heading { display: flex; justify-content: space-between; gap: 16px; }
.vnext-fitment__choices > .vnext-fitment__sku-legend { display: grid; grid-template-columns: minmax(160px,1fr) minmax(0,1.6fr); gap: 14px; padding: 0 14px 8px; color: var(--vnext-text-subtle); font-size: 11px; }
.vnext-fitment__sku-identity { display: grid; gap: 4px; min-width: 0; }
.vnext-fitment__sku-image { width: 54px; height: 54px; object-fit: contain; }
.vnext-fitment__variant-list > .vnext-fitment__paired-actions { margin-top: 14px; }
.vnext-fitment__mode button:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: -2px; }
@media (min-width:701px) and (max-width:1030px) {
  .vnext-fitment__source-row { align-items: start; }
  .vnext-fitment__source-row p { display: grid; }
  .vnext-fitment__source-row .vnext-button { padding: 0 9px; }
  .vnext-fitment__sku-row { grid-template-columns: minmax(0,1fr); }
  .vnext-fitment__sku-specs { grid-column: 1 / -1; }
  .vnext-fitment__sku-specs small { display: block; }
  .vnext-fitment__choices > .vnext-fitment__sku-legend { display: none; }
}
@media (max-width:700px) {
  .vnext-fitment__editor, .vnext-fitment__variant-step, .vnext-fitment__recognition, .vnext-fitment__result-panel { padding: 18px 14px; scroll-margin-top: 20px; }
  .vnext-fitment__axles--staggered { grid-template-columns: minmax(0,1fr); }
  .vnext-fitment__editor-heading h2 { font-size: 21px; }
  .vnext-fitment__source-action { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .vnext-fitment__source-action .vnext-button { min-height: 44px; padding: 7px 8px; font-size: 12px; }
  .vnext-fitment__source-action .vnext-button:only-child { grid-column: 1 / -1; }
  .vnext-fitment__object-status { margin: 10px 0 0; font-size: 12px; }
  .vnext-fitment__picker { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.vnext-fitment__sku-row[aria-pressed="true"] { border-color: var(--vnext-border-strong); background: var(--vnext-surface-selected); }

@media (max-width: 400px) {
  .vnext-fitment__sku-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
}

.vnext-fitment__section-heading > .vnext-eyebrow,
.vnext-fitment__editor-heading .vnext-eyebrow { margin: 0; }
.vnext-fitment__editor-heading .vnext-eyebrow { margin-bottom: 8px; }
.vnext-fitment__configuration { display: grid; gap: 4px; margin-top: 16px; }
.vnext-fitment__configuration .vnext-eyebrow { margin: 0 0 4px; }
.vnext-fitment__configuration > strong { font-size: 19px; font-weight: var(--vnext-weight-semibold); overflow-wrap: anywhere; }
.vnext-fitment__configuration > small, .vnext-fitment__configuration > span { color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-fitment__choice:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: -2px; }

.vnext-fitment__diameter-reference { padding: 16px 0; overflow-wrap: anywhere; border-top: 1px solid var(--vnext-border); }
.vnext-fitment__diameter-reference h3 { margin: 0 0 8px; }
.vnext-fitment__diameter-reference p { margin: 6px 0; }

@media (max-width: 700px) {
  .vnext-fitment__comparison-table col:nth-child(1) { width: 26%; }
  .vnext-fitment__comparison-table col:nth-child(2), .vnext-fitment__comparison-table col:nth-child(3) { width: 22%; }
}
.vnext-fitment__comparison-table th, .vnext-fitment__comparison-table td { word-break:normal; overflow-wrap:normal; }
.vnext-fitment__table-vehicle-short { display:none; }
.vnext-shell__main:has(.vnext-fitment) .vnext-shell__topbar-title { display:none; }
@media(max-width:680px) {
  .vnext-shell__main:has(.vnext-fitment) .vnext-shell__topbar-title { display:block; }
  .vnext-fitment__topline { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media(max-width:400px) { .vnext-fitment__table-vehicle-full { display:none; } .vnext-fitment__table-vehicle-short { display:inline; } }

/* UI-048: shared visual treatment only; no fitment state/action changes. */
.vnext-fitment__pair { gap: 28px; }
.vnext-fitment__object, .vnext-fitment__object--editing { padding: 0; border: 0; background: transparent; }
.vnext-fitment__stage, .vnext-fitment__stage--wheel { background: transparent; border-radius: 12px; }
.vnext-fitment__stage img { padding: 0; width: auto; max-width: 100%; left: 50%; right: auto; transform: translateX(-50%); border-radius: 12px; }
.vnext-fitment__source-row .vnext-button { min-height: 36px; font-size: 13px; background: var(--vnext-surface-elevated); color: var(--vnext-text); border-color: var(--vnext-border-strong); border-radius: 8px; }
.vnext-fitment__editor, .vnext-fitment__variant-step, .vnext-fitment__recognition, .vnext-fitment__standard { border-radius: 12px; }
.vnext-shell__frame:has(.vnext-fitment) .vnext-shell__topbar { border-bottom: 0; }
@media(max-width:700px) { .vnext-fitment__source-row .vnext-button { min-height: 44px; } }

/* UI-049: entity islands group their independent data/actions. */
.vnext-fitment__object { padding: 20px; border: 1px solid var(--vnext-border); border-radius: 12px; background: var(--vnext-surface); }
.vnext-fitment__object--editing { border-color: var(--vnext-border-strong); background: var(--vnext-surface-elevated); }
.vnext-fitment__field-message { font-size: 14px; }
.vnext-fitment__previous-check { margin-top: 16px; }
.vnext-fitment__previous-check > summary { cursor: pointer; color: var(--vnext-text-secondary); padding: 12px 0; }

/* UI-051: approved style alignment without flow changes. */
.vnext-fitment__object, .vnext-fitment__editor, .vnext-fitment__variant-step, .vnext-fitment__recognition, .vnext-fitment__result-panel, .vnext-fitment__standard { padding: 24px; border-radius: 12px; }
.vnext-fitment__source-row p, .vnext-fitment__source-row small, .vnext-fitment__object-detail, .vnext-fitment__identity-code, .vnext-fitment__progress, .vnext-fitment__configuration > small, .vnext-fitment__configuration > span, .vnext-fitment__choice-copy small, .vnext-fitment__field-message { font-size: 14px; line-height: 1.45; }
.vnext-fitment__field > label, .vnext-fitment__field > span, .vnext-fitment__compound-field > span { font-size: 15px; }
.vnext-fitment__source-row .vnext-button { min-height: 36px; padding-inline: 13px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.vnext-fitment__choice, .vnext-fitment__sku-row { border-radius: 12px; }
.vnext-fitment__choice:hover, .vnext-fitment__sku-row:hover { background: var(--vnext-surface-elevated); box-shadow: inset 0 0 0 1px var(--vnext-border-strong); }
.vnext-fitment__choice[aria-pressed="true"], .vnext-fitment__sku-row[aria-pressed="true"] { background: var(--vnext-surface-selected); box-shadow: inset 0 0 0 1px var(--vnext-border-selected); }
@media(max-width:700px) {
 .vnext-fitment__object, .vnext-fitment__editor, .vnext-fitment__variant-step, .vnext-fitment__recognition, .vnext-fitment__result-panel, .vnext-fitment__standard { padding: 16px; }
 .vnext-fitment__source-row .vnext-button { min-height: 44px; }
}

/* UI-052: distinguish photo references from editable catalogue identities. */
.vnext-fitment__photo-caption { margin: 8px 0 0; color: var(--vnext-text-subtle); font-size: 14px; line-height: 1.45; }
.vnext-fitment__model-label { margin: 20px 0 0; color: var(--vnext-text-secondary); font-size: 14px; }
.vnext-fitment__model-label + h2 { margin-top: 4px; }
.vnext-fitment__source-action { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vnext-fitment__source-action .vnext-button { min-height: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.35; }
.vnext-fitment__source-action .vnext-button:only-child { grid-column: auto; }
.vnext-fitment__configuration { margin-top: 20px; justify-items: start; gap: 8px; }
/* UI-053: version selection stays inside the vehicle card. */
.vnext-fitment__configuration { display: block; }
.vnext-fitment__configuration-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px; border: 1px solid var(--vnext-border); border-radius: 12px; background: var(--vnext-surface-elevated); color: var(--vnext-text); font: inherit; text-align: left; }
button.vnext-fitment__configuration-row { cursor: pointer; }
button.vnext-fitment__configuration-row:hover { border-color: var(--vnext-border-strong); }
button.vnext-fitment__configuration-row:focus-visible { outline: 2px solid var(--vnext-focus); outline-offset: 3px; }
.vnext-fitment__configuration-copy { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.vnext-fitment__configuration-copy .vnext-fitment__model-label { margin: 0; }
.vnext-fitment__configuration-copy strong { font-size: 18px; overflow-wrap: anywhere; }
.vnext-fitment__configuration-copy small { font-size: 14px; color: var(--vnext-text-secondary); }
.vnext-fitment__confirmed-chip { padding: 4px 9px; border-radius: 999px; background: var(--vnext-surface-selected); color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-fitment__configuration--open .vnext-fitment__variant-step { padding: 16px; }
.vnext-fitment__configuration--open .vnext-fitment__choice { padding: 12px; }
.vnext-fitment__configuration--open .vnext-fitment__paired-actions { display: flex; }
.vnext-fitment__configuration--open .vnext-fitment__paired-actions > button { flex: 1 1 120px; padding-inline: 10px; white-space: normal; }
.vnext-fitment__configuration--open h2 { font-size: 19px; }

/* UI-054: inline source form and restrained state transitions. */
.vnext-fitment__link-island { display: grid; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid var(--vnext-border); border-radius: 12px; background: var(--vnext-surface-elevated); }
.vnext-fitment__link-island .vnext-fitment__field { margin: 0; width: 100%; }
.vnext-fitment__link-island input { width: 100%; min-width: 0; }
.vnext-fitment__link-island > button { justify-self: start; min-height: 44px; white-space: normal; }
.vnext-fitment__manual-action { margin-top: 14px; }
.vnext-fitment__manual-action > button { min-height: 44px; }
.vnext-fitment__choice { transition: background-color 160ms ease, box-shadow 160ms ease; }
@media(prefers-reduced-motion:reduce) { .vnext-fitment__choice { transition: none; } }

.vnext-fitment h2[tabindex="-1"]:focus { outline: none; }

/* UI-055: source controls belong directly to the wheel card. */
.vnext-fitment__link-island { padding: 0; border: 0; border-radius: 0; background: transparent; }
.vnext-fitment__link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vnext-fitment__link-actions > button { flex: 1 1 160px; min-height: 44px; padding: 8px 10px; white-space: normal; }
.vnext-fitment__saved-specs { margin: 8px 0 0; color: var(--vnext-text-secondary); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }

/* UI-056: emphasize verdict meaning without changing layout. */
.vnext-fitment { --vnext-fitment-positive: #a8d8bd; --vnext-fitment-warning: #e6c58b; --vnext-fitment-negative: #f0abab; }
.vnext-fitment__verdict h2 { font-weight: var(--vnext-weight-semibold); }
.vnext-fitment__verdict--compatible h2, .vnext-fitment__row-result--pass { color: var(--vnext-fitment-positive); }
.vnext-fitment__verdict--compatible_with_conditions h2, .vnext-fitment__verdict--stale h2, .vnext-fitment__row-result--conditional { color: var(--vnext-fitment-warning); }
.vnext-fitment__verdict--incompatible h2, .vnext-fitment__verdict--failed h2, .vnext-fitment__row-result--fail { color: var(--vnext-fitment-negative); }
.vnext-fitment__verdict--unknown h2 { color: var(--vnext-text); }

.vnext-fitment .vnext-button--primary:disabled { background: var(--vnext-surface); color: var(--vnext-text-subtle); border-color: var(--vnext-border); opacity: 1; }

.vnext-fitment__recognition-heading { display: flex; align-items: center; gap: 10px; }
.vnext-fitment__recognition-heading .vnext-spinner { flex: 0 0 20px; }

.vnext-wallet { display: grid; gap: 46px; padding-top: 28px; }
.vnext-wallet__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr); gap: 32px; align-items: start; }
.vnext-wallet__main:not(:has(.vnext-wallet__pending:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.vnext-wallet__primary { min-width: 0; max-width: 780px; }
.vnext-wallet__balance { padding-bottom: 32px; border-bottom: 1px solid var(--vnext-border); }
.vnext-wallet__label { margin: 0 0 10px; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-wallet__balance-figure { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-variant-numeric: tabular-nums; }
.vnext-wallet__balance-figure strong { font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -.04em; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__balance-figure span { color: var(--vnext-text-secondary); font-size: 16px; }
.vnext-wallet__loading, .vnext-wallet__error, .vnext-wallet__auth { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 46px; color: var(--vnext-text-secondary); }
.vnext-wallet__error { color: var(--vnext-negative); }
.vnext-wallet__expiry { margin-top: 26px; }
.vnext-wallet__expiry h2 { margin: 0 0 8px; font-size: 15px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__expiry-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--vnext-border); }
.vnext-wallet__expiry-row span { color: var(--vnext-text-value); }
.vnext-wallet__expiry-row small { display: block; color: var(--vnext-text-subtle); font-size: 12px; }
.vnext-wallet__expiry-row strong { color: var(--vnext-text-secondary); font-weight: var(--vnext-weight-regular); white-space: nowrap; }
.vnext-wallet__expiry > p { margin: 13px 0 0; color: var(--vnext-text-subtle); font-size: 13px; }
.vnext-wallet__topup { padding-top: 30px; }
.vnext-wallet__topup h2, .vnext-wallet__history h2 { margin: 0 0 18px; font-size: 22px; font-weight: var(--vnext-weight-medium); letter-spacing: -.02em; }
.vnext-wallet__packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vnext-wallet__package { min-width: 0; min-height: 80px; display: grid; align-content: center; gap: 5px; border: 1px solid var(--vnext-border); border-radius: 9px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 12px 14px; text-align: left; }
.vnext-wallet__package:hover { border-color: var(--vnext-border-strong); }
.vnext-wallet__package[aria-pressed="true"] { border-color: var(--vnext-border-selected); background: var(--vnext-surface-selected); }
.vnext-wallet__package:disabled { cursor: not-allowed; opacity: .55; }
.vnext-wallet__package strong { font-size: 19px; font-weight: var(--vnext-weight-medium); white-space: nowrap; }
.vnext-wallet__package[aria-pressed="true"] strong { font-weight: var(--vnext-weight-semibold); }
.vnext-wallet__package span { color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-wallet__field { display: grid; gap: 8px; margin-top: 26px; }
.vnext-wallet__field label { font-size: 14px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__field input { width: min(100%, 440px); min-height: 46px; border: 1px solid var(--vnext-border-strong); border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 14px; }
.vnext-wallet__field input::placeholder { color: var(--vnext-text-subtle); }
.vnext-wallet__field input[aria-invalid="true"] { border-color: var(--vnext-negative); }
.vnext-wallet__field p { margin: 0; color: var(--vnext-text-subtle); font-size: 13px; }
.vnext-wallet__field .vnext-wallet__field-error { color: var(--vnext-negative); }
.vnext-wallet__selection { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vnext-border); }
.vnext-wallet__selection p { margin: 0; color: var(--vnext-text-secondary); }
.vnext-wallet__selection strong { font-size: 21px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__selection span { color: var(--vnext-text-secondary); overflow-wrap: anywhere; }
.vnext-wallet__pay { margin-top: 18px; min-width: 220px; }
.vnext-wallet__provider { margin: 11px 0 0; color: var(--vnext-text-secondary); font-size: 12px; }
.vnext-wallet__legal { max-width: 64ch; margin: 18px 0 0; color: var(--vnext-text-subtle); font-size: 12px; line-height: 1.6; }
.vnext-wallet__legal a { color: var(--vnext-text-secondary); text-underline-offset: 3px; }
.vnext-wallet__pending { padding: 24px; border: 1px solid var(--vnext-border); border-radius: var(--vnext-radius); background: var(--vnext-surface); }
.vnext-wallet__pending h2 { margin: 0; font-size: 17px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__pending-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; }
.vnext-wallet__pending-values strong { font-size: 24px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__pending-values span { color: var(--vnext-text-secondary); }
.vnext-wallet__pending p { margin: 12px 0 20px; color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-wallet__pending button { gap: 10px; }
.vnext-wallet__pending .vnext-spinner { width: 16px; height: 16px; }
.vnext-wallet__notice { max-width: 780px; color: var(--vnext-text-secondary); }
.vnext-wallet__notice[data-tone="warning"] { color: var(--vnext-warning); }
.vnext-wallet__notice[data-tone="error"] { color: var(--vnext-negative); }
.vnext-wallet__notice[data-tone="success"] { color: var(--vnext-positive); }
.vnext-wallet__history { border-top: 1px solid var(--vnext-border); padding-top: 28px; }
.vnext-wallet__history-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--vnext-border); }
.vnext-wallet__history-main { display: grid; grid-template-columns: 100px 120px minmax(0, 1fr); align-items: baseline; gap: 14px; min-width: 0; }
.vnext-wallet__history-main strong { font-size: 16px; font-weight: var(--vnext-weight-medium); }
.vnext-wallet__history-main span { color: var(--vnext-text-secondary); }
.vnext-wallet__history-main small { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--vnext-text-subtle); font-size: 12px; }
.vnext-wallet__history-main small span { color: inherit; }
.vnext-wallet__history-status { flex: 0 0 auto; color: var(--vnext-text-secondary); font-size: 13px; text-align: right; }
.vnext-wallet__history-status--success { color: var(--vnext-positive); }
.vnext-wallet__history-status--warning { color: var(--vnext-negative); }
.vnext-wallet__empty { margin: 0; padding: 20px 0; color: var(--vnext-text-secondary); }
.vnext-wallet__history > .vnext-text-action { margin-top: 14px; }

@media (max-width: 1024px) {
  .vnext-wallet__main { grid-template-columns: 1fr; }
  .vnext-wallet__primary { max-width: none; }
  .vnext-wallet__pending { max-width: none; }
}
@media (max-width: 700px) {
  .vnext-wallet { gap: 32px; padding-top: 22px; }
  .vnext-wallet__balance { padding-bottom: 26px; }
  .vnext-wallet__topup { padding-top: 26px; }
  .vnext-wallet__packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vnext-wallet__pay { width: 100%; }
  .vnext-wallet__history-main { grid-template-columns: 1fr 1fr; gap: 3px 12px; }
  .vnext-wallet__history-main small { grid-column: 1 / -1; }
  .vnext-wallet__history-row { align-items: flex-start; }
}

.vnext-shell__frame:has(.vnext-wallet) .vnext-shell__topbar { border-bottom: 0; }
.vnext-wallet__main, .vnext-wallet__main:not(:has(.vnext-wallet__pending:not([hidden]))) { grid-template-columns: 1fr; }
.vnext-wallet__primary { max-width: none; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.vnext-wallet__balance, .vnext-wallet__expiry-row, .vnext-wallet__history, .vnext-wallet__history-row, .vnext-wallet__selection { border: 0; }
.vnext-wallet__balance { padding-bottom: 0; }
.vnext-wallet__topup, .vnext-wallet__history { padding-top: 0; }
.vnext-wallet__packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vnext-wallet__package { cursor: pointer; }
.vnext-wallet__package[aria-pressed="true"] { border-color: var(--vnext-text); }
.vnext-wallet__field input { width: 100%; }
.vnext-wallet__selection { padding-top: 0; }
.vnext-wallet__selection [data-wallet-selection-amount], .vnext-wallet__selection [data-wallet-selection-email] { display: none; }
.vnext-wallet__legal a { color: var(--vnext-text); text-decoration: underline; }
.vnext-wallet__legal ul { margin: 8px 0 0; padding-left: 20px; }
.vnext-wallet__legal li + li { margin-top: 6px; }
.vnext-wallet__pending { max-width: 560px; }
.vnext-wallet__history > [data-wallet-action="more"] { display: block; margin: 24px auto 0; min-height: 44px; font-weight: 500; }
@media (max-width: 900px) { .vnext-wallet__primary { grid-template-columns: 1fr; gap: 36px; } }

/* UI-029: account summary and paginated payments above the purchase form. */
.vnext-wallet__primary { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 48px; }
.vnext-wallet__history-main { grid-template-columns: auto auto; gap: 4px 16px; }
.vnext-wallet__history-main small { grid-column: 1 / -1; }
.vnext-wallet__history-row { min-height: 66px; }
.vnext-wallet__pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.vnext-wallet__pagination button { min-width: 44px; min-height: 44px; padding: 0 12px; }
.vnext-wallet__pagination span { color: var(--vnext-text-secondary); font-size: 13px; }
.vnext-wallet > .vnext-wallet__topup { max-width: 960px; }
.vnext-wallet > .vnext-wallet__topup .vnext-wallet__packages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .vnext-wallet__primary { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 700px) { .vnext-wallet > .vnext-wallet__topup .vnext-wallet__packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vnext-wallet__checkout { display: grid; grid-template-columns: minmax(0, 440px) auto; gap: 12px 24px; align-items: start; margin-top: 24px; }
.vnext-wallet__checkout .vnext-wallet__field { margin-top: 0; grid-column: 1; grid-row: 1 / 3; }
.vnext-wallet__checkout .vnext-wallet__selection { grid-column: 2; grid-row: 1; margin-top: 0; }
.vnext-wallet__checkout .vnext-wallet__pay { grid-column: 2; grid-row: 2; margin-top: 0; justify-self: start; }
@media (max-width: 700px) { .vnext-wallet__checkout { display: flex; flex-direction: column; gap: 18px; } .vnext-wallet__checkout .vnext-wallet__field { width: 100%; } }

/* UI-031: one reading sequence, within a bounded content column. */
.vnext-wallet { max-width: 840px; gap: 40px; }
.vnext-wallet__primary { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
.vnext-wallet__primary > .vnext-wallet__expiry { margin-top: 0; max-width: 440px; }
.vnext-wallet__expiry-row { justify-content: flex-start; gap: 12px; }
.vnext-wallet__expiry-row strong::before { content: "— "; }
.vnext-wallet__checkout { display: flex; flex-direction: column; max-width: 440px; gap: 16px; }
.vnext-wallet__checkout .vnext-wallet__field { width: 100%; }
.vnext-wallet__checkout .vnext-wallet__pay { width: 100%; }
.vnext-wallet__selection { display: none; }
.vnext-wallet__legal, .vnext-wallet__provider { max-width: 440px; }
.vnext-wallet__history-main { grid-template-columns: 100px 110px minmax(0, 1fr); }
.vnext-wallet__history-main small { grid-column: auto; }
@media (max-width: 700px) {
 .vnext-wallet__primary { grid-template-columns: 1fr; gap: 24px; }
 .vnext-wallet__history-main { grid-template-columns: auto auto; }
 .vnext-wallet__history-main small { grid-column: 1 / -1; }
}

/* UI-032: center the bounded wallet within the content area. */
.vnext-wallet { width: 100%; margin-inline: auto; }

/* UI-033: every wallet section shares a centered 440px column. */
.vnext-wallet { max-width: 440px; }
.vnext-wallet__primary { grid-template-columns: 1fr; gap: 24px; }
.vnext-wallet > .vnext-wallet__topup .vnext-wallet__packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vnext-wallet__history-main { grid-template-columns: auto auto; gap: 4px 16px; }
.vnext-wallet__history-main small { grid-column: 1 / -1; }

/* Accepted Home/Create baseline, retained across shared-surface changes. */


body.vnext-surface-active [data-view="create"] > :not([data-vnext-create-root]) { display: none !important; }

.vnext-create { display: grid; gap: var(--vnext-space-5); padding-top: var(--vnext-space-5); }

.vnext-create__pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--vnext-border); }

.vnext-create__object { min-width: 0; }

.vnext-create__object-heading, .vnext-create__section-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--vnext-space-3); }

.vnext-create__object-heading .vnext-eyebrow { margin: 0; }

.vnext-create__stage { position: relative; width: 100%; height: clamp(300px, 34vw, 420px); display: grid; place-items: center; overflow: hidden; margin-top: var(--vnext-space-3); border: 1px solid var(--vnext-border); border-radius: var(--vnext-radius-media); background: var(--vnext-surface-elevated); padding: 0; color: var(--vnext-text-secondary); }

.vnext-create__stage.is-empty { border-style: dashed; }

.vnext-create__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }

.vnext-create__object--wheel .vnext-create__stage { height: clamp(300px, 34vw, 420px); background: var(--vnext-surface-elevated); }

.vnext-create__empty-copy { font-size: 14px; }

.vnext-create__object-foot { display: flex; gap: var(--vnext-space-3); margin-top: 10px; color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-create__wheel-details { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }

.vnext-create__wheel-identity { font-size: 16px; font-weight: var(--vnext-weight-medium); }

.vnext-create__wheel-specs { margin: 0; color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-create__source-helper { flex-basis: 100%; margin: 0; color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-create__decision { display: grid; gap: 6px; padding: 14px 0 4px; }

.vnext-create__decision h3 { margin: 0; font-size: 16px; font-weight: var(--vnext-weight-medium); }

.vnext-create__identified-vehicle { font-size: 20px; font-weight: var(--vnext-weight-medium); }

.vnext-create__decision > span { color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-create__decision-title { margin: 12px 0 4px; color: var(--vnext-positive); font-size: 13px; }

.vnext-create__summary { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: var(--vnext-space-2); }

.vnext-create__summary-section { min-width: 0; }

.vnext-create__section-heading { min-height: 40px; border-bottom: 1px solid var(--vnext-border); }

.vnext-create__section-heading h2 { margin: 0; font-size: 17px; font-weight: var(--vnext-weight-medium); }

.vnext-create__summary-list { border-bottom: 1px solid var(--vnext-border); }

.vnext-create__summary-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: var(--vnext-space-3); padding: 11px 0; border-bottom: 1px solid var(--vnext-border); }

.vnext-create__summary-row:last-child { border-bottom: 0; }

.vnext-create__summary-row--action { grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; }

.vnext-create__summary-label { color: var(--vnext-text-subtle); font-size: 13px; }

.vnext-create__summary-value { min-width: 0; overflow-wrap: anywhere; font-weight: var(--vnext-weight-medium); }

.vnext-create__vehicle-options { display: grid; gap: 8px; }

.vnext-create__vehicle-option { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: var(--vnext-space-3); border: 1px solid var(--vnext-border); border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 10px 12px; text-align: left; }

.vnext-create__vehicle-option[aria-checked="true"] { border-color: var(--vnext-border-selected); background: var(--vnext-surface-selected); }

.vnext-create__vehicle-option[aria-checked="true"] strong { color: var(--vnext-text); font-weight: var(--vnext-weight-semibold); }

.vnext-create__vehicle-option > span { color: var(--vnext-text-secondary); font-size: 12px; }

.vnext-create__manual-recovery { margin-top: 10px; }

.vnext-create__manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--vnext-space-3); padding: var(--vnext-space-3) 0; }

.vnext-create__manual-grid input { min-width: 0; height: 42px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 10px; }

.vnext-create__manual-grid label { min-width: 0; }

.vnext-create__stage:focus-visible, .vnext-create__vehicle-option:focus-visible { outline: 2px solid var(--vnext-text-secondary); outline-offset: 3px; }

.vnext-create__object-heading .vnext-text-action { min-height: 44px; }

.vnext-create__source-section { display: grid; gap: var(--vnext-space-2); max-width: 760px; }

.vnext-create__source-form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--vnext-space-3); width: 100%; max-width: 760px; padding-top: var(--vnext-space-3); }

.vnext-create__source-form > .vnext-create__status, .vnext-create__source-recovery { flex-basis: 100%; min-width: 0; }

.vnext-create__source-recovery { display: flex; flex-wrap: wrap; gap: var(--vnext-space-2); }

.vnext-create__source-recovery > .vnext-create__status { width: 100%; overflow-wrap: anywhere; }

.vnext-create__source-form .vnext-field { flex: 1; min-width: 0; }

.vnext-create__source-form input { width: 100%; height: 44px; border: 1px solid var(--vnext-border-strong); border-radius: 7px; background: var(--vnext-surface-elevated); color: var(--vnext-text); padding: 0 11px; }

.vnext-create__consent { display: flex; align-items: flex-start; gap: 10px; max-width: 860px; color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-create__consent input { accent-color: var(--vnext-text); margin-top: 4px; }

.vnext-create__consent a { color: var(--vnext-text-secondary); text-decoration: none; }

.vnext-create__consent a:hover, .vnext-create__consent a:focus-visible { color: var(--vnext-text); text-decoration: underline; text-underline-offset: 3px; }

.vnext-create__status { display: grid; gap: 3px; border-top: 1px solid var(--vnext-border); border-bottom: 1px solid var(--vnext-border); padding: 14px 0; color: var(--vnext-text-secondary); }

.vnext-create__status--pending { grid-template-columns: 20px minmax(0, 1fr); align-items: center; column-gap: 10px; }

.vnext-create__status--pending > span { grid-column: 2; }

.vnext-create__status--pending > strong { grid-column: 2; }

.vnext-create__status strong { color: var(--vnext-text); font-weight: var(--vnext-weight-medium); }

.vnext-create__status > span { font-size: 13px; }

.vnext-create__status--negative strong { color: var(--vnext-negative); }

.vnext-create__status--positive strong { color: var(--vnext-positive); }

.vnext-create__source-form > .vnext-create__status--positive { border: 0; padding: 0; font-size: 13px; }

.vnext-create__source-form > .vnext-create__status--positive strong { font-weight: var(--vnext-weight-regular); }

.vnext-create__error { display: grid; gap: var(--vnext-space-3); }

.vnext-create__actions { display: flex; flex-wrap: wrap; gap: var(--vnext-space-3); padding-top: var(--vnext-space-2); }

.vnext-create__actions .vnext-button { min-width: 220px; }


.vnext-dashboard { display: grid; gap: var(--vnext-space-6); padding-top: var(--vnext-space-5); }

.vnext-dashboard__intro { display: flex; align-items: end; justify-content: space-between; gap: var(--vnext-space-6); }

.vnext-dashboard__intro h1 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; font-weight: var(--vnext-weight-medium); letter-spacing: -.04em; }

.vnext-dashboard__intro h1 span { display: block; }

.vnext-dashboard__intro p:not(.vnext-eyebrow) { margin: 12px 0 0; color: var(--vnext-text-secondary); }

.vnext-dashboard__loading { display: flex; align-items: center; gap: 10px; color: var(--vnext-text-secondary); }

.vnext-dashboard__error { margin: 0; color: var(--vnext-negative); }

.vnext-dashboard__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: var(--vnext-space-4); align-items: start; }

.vnext-dashboard__latest-content, .vnext-dashboard__balance-content { padding: var(--vnext-space-5); }

.vnext-dashboard__latest-media { margin-top: var(--vnext-space-4); aspect-ratio: 16 / 9; }

.vnext-dashboard__media { overflow: hidden; border-radius: var(--vnext-radius-media); background: var(--vnext-surface-elevated); }

.vnext-dashboard__media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.vnext-dashboard__media-placeholder { min-height: 150px; height: 100%; display: grid; place-items: center; color: var(--vnext-text-subtle); border: 1px solid var(--vnext-border); border-radius: inherit; }

.vnext-dashboard__latest-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--vnext-space-4); margin-top: var(--vnext-space-4); }

.vnext-dashboard__latest-meta strong, .vnext-dashboard__recent-item strong { display: block; font-size: 16px; font-weight: var(--vnext-weight-medium); }

.vnext-dashboard__object-sub { margin-top: 3px; color: var(--vnext-text-secondary); font-size: 13px; }

.vnext-dashboard__empty h3 { margin: var(--vnext-space-3) 0 var(--vnext-space-2); font-size: 22px; font-weight: var(--vnext-weight-medium); }

.vnext-dashboard__empty p { color: var(--vnext-text-secondary); }

.vnext-dashboard__balance-line { display: flex; align-items: end; justify-content: space-between; gap: var(--vnext-space-4); }

.vnext-dashboard__balance-line strong { font-size: 42px; line-height: 1; font-weight: var(--vnext-weight-medium); letter-spacing: -.04em; }

.vnext-dashboard__balance-auth { color: var(--vnext-text-secondary); }

.vnext-dashboard__expiry { margin-top: var(--vnext-space-5); padding-top: var(--vnext-space-4); border-top: 1px solid var(--vnext-border); }

.vnext-dashboard__expiry-row { display: flex; justify-content: space-between; gap: var(--vnext-space-3); padding: 7px 0; color: var(--vnext-text-secondary); }

.vnext-dashboard__expiry-row strong { color: var(--vnext-text); font-weight: var(--vnext-weight-medium); }

.vnext-dashboard__expiry-note { margin-top: var(--vnext-space-2); color: var(--vnext-text-subtle); font-size: 12px; }

.vnext-dashboard__recent { display: grid; gap: var(--vnext-space-3); }

.vnext-dashboard__recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--vnext-space-4); }

.vnext-dashboard__recent-item { min-width: 0; position: relative; }

.vnext-dashboard__recent-item .vnext-dashboard__media { aspect-ratio: 16 / 10; margin-bottom: var(--vnext-space-3); }

.vnext-dashboard__recent-item > span:not(.vnext-status) { display: block; margin-top: 3px; color: var(--vnext-text-secondary); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vnext-dashboard__recent-link { display:block; width:100%; padding:0; border:0; background:transparent; color:var(--vnext-text); font:inherit; text-align:start; cursor:pointer; border-radius:var(--vnext-radius-media); }

.vnext-dashboard__recent-link strong { display:flex; align-items:center; justify-content:space-between; gap:8px; }

.vnext-dashboard__recent-link svg { width:18px; height:18px; flex:none; color:var(--vnext-text-secondary); }

.vnext-dashboard__recent-link:hover img { filter:brightness(1.06); }

.vnext-dashboard__recent-link:focus-visible { outline:none; }

.vnext-dashboard__recent-link:focus-visible .vnext-dashboard__media { outline:2px solid var(--vnext-text); outline-offset:0; }


@media (max-width: 700px) {
  .vnext-create { gap: var(--vnext-space-4); padding-top: var(--vnext-space-4); }

  .vnext-create__pair, .vnext-create__summary { grid-template-columns: 1fr; }

  .vnext-create__pair { gap: var(--vnext-space-5); }

  .vnext-create__stage, .vnext-create__object--wheel .vnext-create__stage { height: clamp(220px, 65vw, 285px); }

  .vnext-create__summary { gap: var(--vnext-space-4); }

  .vnext-create__actions { display: grid; grid-template-columns: 1fr; }

  .vnext-create__actions .vnext-button { width: 100%; }

  .vnext-create__source-form { align-items: stretch; flex-direction: column; flex-wrap: nowrap; width: 100%; }

  .vnext-create__source-form > .vnext-button { width: 100%; }

  .vnext-dashboard { gap: var(--vnext-space-5); }

  .vnext-dashboard__intro { align-items: stretch; flex-direction: column; gap: var(--vnext-space-4); }

  .vnext-dashboard__intro h1 { font-size: 32px; }

  .vnext-dashboard__grid, .vnext-guide__examples { grid-template-columns: 1fr; }

  .vnext-dashboard__latest-content, .vnext-dashboard__balance-content { padding: var(--vnext-space-4); }

  .vnext-dashboard__latest-meta { align-items: flex-start; flex-direction: column; }

  .vnext-dashboard__recent-grid { grid-template-columns: 1fr 1fr; gap: var(--vnext-space-4) var(--vnext-space-3); }

  .vnext-dashboard__recent-item:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 6px); }}


@media (max-width: 420px) {
  .vnext-create__summary-row { grid-template-columns: 1fr; gap: 5px; }

  .vnext-create__manual-grid { grid-template-columns: 1fr; }

  .vnext-create__object-foot { font-size: 12px; }

  .vnext-dashboard__recent-grid { grid-template-columns: 1fr; }

  .vnext-dashboard__recent-item:nth-child(3) { grid-column: auto; max-width: none; }}

.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:none; }

.vnext-dashboard__latest-failed { color:var(--vnext-text-secondary); font-size:13px; }

.vnext-dashboard__latest-failed .vnext-button { display:inline-flex; padding:0; font-size:inherit; }

@media(max-width:680px) { .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:block; }}


@media(min-width:681px) { .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { border-bottom:0; padding-bottom:0; }}


/* Owner-approved shared result hover; no change to dashboard surfaces. */
.vnext-dashboard__latest-link { display:block; width:100%; padding:0; border:0; background:transparent; cursor:pointer; border-radius:var(--vnext-radius-media); }

.vnext-dashboard__latest-link .vnext-dashboard__latest-media { margin-top:0; }

.vnext-dashboard__latest-link { margin-top:var(--vnext-space-4); }

.vnext-dashboard__latest-link:focus-visible { outline:none; }

.vnext-dashboard__latest-link:focus-visible .vnext-dashboard__media { outline:2px solid var(--vnext-text); outline-offset:0; }

@media (hover:hover) {
  .vnext-dashboard__recent-link:hover .vnext-dashboard__media, .vnext-dashboard__latest-link:hover .vnext-dashboard__media { outline:1px solid var(--vnext-text); outline-offset:0; }

  .vnext-dashboard__latest-link:hover img { filter:brightness(1.06); }}


/* UI-005: latest result shares the unboxed photo presentation of recent results. */
.vnext-dashboard > .vnext-dashboard__grid > .vnext-dashboard__latest-content { padding:0; }


/* UI-008: no duplicate Home title or divider, retain guest sign-in. */
.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar-title { display:none; }

.vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { border-bottom:0; padding-bottom:0; }

.vnext-shell[data-authenticated="true"] .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { display:none; }


/* UI-009/010/011: Create uses unboxed, uncropped loaded photos. */
.vnext-shell__main:has(.vnext-create) .vnext-shell__topbar { border-bottom:0; }

.vnext-create__pair { border-bottom:0; }

.vnext-create .vnext-create__stage.is-ready { height:auto; min-height:0; background:transparent; border:0; display:block; }

.vnext-create .vnext-create__stage.is-ready img { width:100%; height:auto; max-height:65vh; object-fit:contain; border-radius:inherit; }

.vnext-create .vnext-create__stage.is-empty { height:180px; background:transparent; }

@media(max-width:700px) { .vnext-create .vnext-create__stage.is-empty { height:160px; }}

@media(max-width:700px) {
  .vnext-create .vnext-create__stage.is-ready img { max-height:none; }}


/* UI-012/013: round the actual photo, use secondary upload controls. */
.vnext-create__object-heading > .vnext-button { flex:0 0 auto; white-space:nowrap; }

@media(min-width:701px) {
  .vnext-create .vnext-create__stage.is-ready img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; border-radius:var(--vnext-radius-media); }}

.vnext-create__wheel-details { justify-items:start; text-align:start; }

.vnext-create__wheel-details > .vnext-button { justify-self:start; }


/* UI-016/017: compact photo actions and always-visible wheel link. */
.vnext-create__object-heading > .vnext-button { font-size:13px; min-height:36px; padding:0 10px; }

.vnext-create > .vnext-create__source-form { max-width:760px; padding-top:0; }

@media(max-width:700px) { .vnext-create__object-heading > .vnext-button { min-height:44px; }}


.vnext-create__consent-documents { margin: 8px 0 0; padding-left: 18px; }


.vnext-create__consent-documents > li + li { margin-top: 6px; }

.vnext-create__consent .vnext-create__consent-documents a { color: var(--vnext-text); text-decoration: underline; text-underline-offset: 3px; }


/* UI-020: loaded-photo focus/hover follows image bounds, not shared stage height. */
.vnext-create .vnext-create__stage.is-ready { overflow:visible; }

.vnext-create .vnext-create__stage.is-ready:focus-visible { outline:none; }

.vnext-create .vnext-create__stage.is-ready:focus-visible img { outline:2px solid var(--vnext-focus); outline-offset:2px; }

@media(hover:hover) {
  .vnext-create .vnext-create__stage.is-ready:hover:not(:disabled) img { outline:1px solid var(--vnext-text); outline-offset:0; }}

/* Catalog intent is a decision above both photos on desktop, before the wheel on mobile. */
.vnext-create__catalog-notice { grid-column:1/-1; display:flex; align-items:center; gap:20px; padding:20px 24px; border:1px solid var(--vnext-border-strong); border-radius:12px; background:var(--vnext-surface-elevated); }
.vnext-create__catalog-notice.is-warning { border-color:color-mix(in srgb,var(--vnext-warning) 60%,transparent); background:color-mix(in srgb,var(--vnext-warning) 7%,var(--vnext-surface-elevated)); }
.vnext-create__catalog-copy .vnext-create__catalog-warning-title { display:flex; align-items:flex-start; gap:8px; color:var(--vnext-warning); }
.vnext-create__catalog-notice.is-warning .vnext-create__catalog-copy .vnext-create__catalog-name { margin:0 0 4px; font-size:18px; line-height:1.35; font-weight:400; color:var(--vnext-text); }
.vnext-create__catalog-notice.is-warning .vnext-create__catalog-warning-title { margin-top:12px; font-size:16px; }
.vnext-create__catalog-warning-icon { order:-1; flex:0 0 20px; width:20px; height:20px; margin-top:2px; }
.vnext-create__catalog-warning-icon svg { display:block; width:100%; height:100%; }
.vnext-create__catalog-notice.is-warning .vnext-create__catalog-copy p { color:color-mix(in srgb,var(--vnext-text-secondary) 85%,var(--vnext-warning)); }
.vnext-create__catalog-notice > img { flex:0 0 76px; width:76px; height:76px; object-fit:contain; border-radius:9px; background:#fff; }
.vnext-create__catalog-copy { flex:1; min-width:0; }
.vnext-create__catalog-copy h2 { font-size:18px; line-height:1.35; margin:0 0 6px; }
.vnext-create__catalog-copy p { margin:3px 0; font-size:14px; line-height:1.5; color:var(--vnext-text-secondary); overflow-wrap:anywhere; }
.vnext-create__catalog-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.vnext-create__catalog-actions .vnext-button { white-space:nowrap; }
.vnext-create__catalog-selected { color:var(--vnext-text-secondary); font-size:14px; overflow-wrap:anywhere; }
@media(min-width:701px) and (max-width:1200px) {
  .vnext-create__catalog-notice { flex-wrap:wrap; }
  .vnext-create__catalog-copy { flex-basis:calc(100% - 100px); }
  .vnext-create__catalog-actions { margin-left:96px; justify-content:flex-start; }
}
@media(max-width:700px) {
  .vnext-create__pair:has(.vnext-create__catalog-notice) .vnext-create__object--car { grid-row:1; }
  .vnext-create__catalog-notice { grid-row:2; display:grid; grid-template-columns:56px minmax(0,1fr); gap:14px; padding:18px; }
  .vnext-create__catalog-notice > img { width:56px; height:56px; align-self:start; }
  .vnext-create__catalog-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr; margin:0; }
  .vnext-create__pair:has(.vnext-create__catalog-notice) .vnext-create__object--wheel { grid-row:3; }
}

/* Local draft recovery never exposes unowned photographs before consent. */
.vnext-create__draft-notice {
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--vnext-border-strong);
  border-radius: 14px;
  background: var(--vnext-surface-elevated);
  color: var(--vnext-text);
}
.vnext-create__draft-notice p { color: var(--vnext-text-secondary); margin: 10px 0 16px; }
.vnext-create__draft-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 600px) {
  .vnext-create__draft-notice { padding: 18px; }
  .vnext-create__draft-actions > button { flex: 1 1 140px; }
}

.vnext-create__catalog-copy .vnext-create__catalog-name strong,
.vnext-create__catalog-copy .vnext-create__catalog-sku strong { font-weight:650; color:var(--vnext-text); }

/* UI-058: account providers are plain rows, not independent cards. */
.account-settings-panel, .vnext-account-preview { width: 100%; max-width: 700px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-settings-head { padding: 0 0 24px; border: 0; }
.account-settings-head > .section-label { display: none; }
.account-settings-head h1 { margin: 0 0 12px; }
.vnext-shell .account-settings-head h1 { display: none; }
.vnext-shell__frame:has(.account-settings-panel) .vnext-shell__topbar { border-bottom: 0; }
.vnext-shell .account-settings-head { padding: 16px 0; }
.vnext-shell .account-settings-head .lede { margin: 0; max-width: none; }
.vnext-shell .account-settings-panel [data-account-settings-content] { padding: 0; }
.account-settings-head .lede, .vnext-account-preview > p { color: var(--vnext-text-secondary); line-height: 1.5; }
.vnext-shell__frame:has(.vnext-account-preview) .vnext-shell__topbar { border-bottom: 0; }
.account-settings-panel [data-account-settings-content], .vnext-account-preview [data-account-settings-content] { display: grid; gap: 12px; }
.account-settings-panel .form-row, .vnext-account-preview .form-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; padding: 20px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-settings-panel .form-row > div, .vnext-account-preview .form-row > div { min-width: 0; }
.account-settings-panel .form-row strong, .vnext-account-preview .form-row strong { color: var(--vnext-text); font-size: 16px; font-weight: 600; }
.account-settings-panel .form-row p, .vnext-account-preview .form-row p { margin: 6px 0 0; color: var(--vnext-text-secondary); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.account-settings-panel .form-row .status-pill, .vnext-account-preview .form-row .status-pill { flex: 0 0 auto; align-self: center; width: auto; padding: 5px 10px; min-height: 0; border: 1px solid #8bb9a029; border-radius: 999px; background: #8bb9a00d; color: #a8d8bd; font-size: 13px; line-height: 1.4; font-weight: 500; }
.account-settings-panel .form-row .compact-button, .vnext-account-preview .form-row .compact-button { flex: 0 0 auto; align-self: center; width: auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--vnext-border-strong); border-radius: 8px; background: var(--vnext-surface-elevated); color: var(--vnext-text); font-size: 14px; }
.account-settings-panel .account-settings-note, .vnext-account-preview .account-settings-note { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--vnext-text-secondary); line-height: 1.5; }
.vnext-account-preview__demo { margin-top: 24px; color: var(--vnext-text-subtle); font-size: 13px; }

/* UI-060: row feedback matches Support and Documents without persistent cards. */
.account-settings-panel .form-row, .vnext-account-preview .form-row { position: relative; isolation: isolate; }
.account-settings-panel .form-row::before, .vnext-account-preview .form-row::before { content: ""; position: absolute; z-index: -1; inset: 0 -12px; border-radius: 12px; background: var(--vnext-surface-elevated); box-shadow: inset 0 0 0 1px var(--vnext-border-strong); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
@media(hover:hover) {
 .account-settings-panel .form-row:hover::before, .vnext-account-preview .form-row:hover::before { opacity: 1; }
}
.account-settings-panel .form-row:focus-within::before, .vnext-account-preview .form-row:focus-within::before { opacity: 1; }
@media(prefers-reduced-motion:reduce) {
 .account-settings-panel .form-row::before, .vnext-account-preview .form-row::before { transition: none; }
}

/* UI-061: the dashboard hides its title bar but must keep mobile account access. */
@media(max-width:700px) {
 .vnext-shell__main:has(.vnext-dashboard) { position: relative; }
 .vnext-shell[data-authenticated="true"] .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { display: flex; position: absolute; z-index: 1; top: 18px; right: 16px; width: 44px; padding: 0; border: 0; }
}

.account-provider-title { display: inline-flex; align-items: center; gap: 8px; }
.account-provider-title svg { width: 20px; height: 20px; flex: 0 0 20px; }
@media(max-width:700px) {
 .vnext-shell[data-authenticated="false"] .vnext-shell__main:has(.vnext-dashboard) .vnext-shell__topbar { position: absolute; z-index: 1; top: 18px; right: 16px; padding: 0; border: 0; }
 .vnext-shell[data-authenticated="false"] .vnext-dashboard { padding-top: 0; }
 .vnext-shell[data-authenticated="false"] .vnext-dashboard__intro > div { padding-right: 84px; }
}

.account-settings-panel .account-settings-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 44px;
    margin: 32px auto;
    padding: 8px 14px;
}
