:root {
    --ao-yellow: #FDC500;
    --ao-gold: #B7860B;
    --ao-ink: #111827;
    --ao-muted: #6B7280;
    --ao-border: #E5E7EB;
    --ao-page: #F3F4F6;
    --ao-success: #047857;
    --ao-danger: #881337;
    --ao-warning: #B45309;
}

* { box-sizing: border-box; }

.ao-lot-page {
    margin: 0;
    background: var(--ao-page);
    color: var(--ao-ink);
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
}

.ao-lot-page button,
.ao-lot-page input { font: inherit; }

.ao-lot-action-bar {
    background: #fff;
    border-bottom: 1px solid var(--ao-border);
}

.ao-lot-action-bar__inner {
    width: min(1200px, 100%);
    min-height: 57px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ao-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    background: #F9FAFB;
    color: #111;
    padding: 8px 17px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.ao-back-button:hover { background: #F3F4F6; }

.ao-phase-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    color: var(--ao-muted);
    font-size: 13px;
}

.ao-phase-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #FCE8A6;
    border-radius: 999px;
    background: #FFF8E1;
    color: var(--ao-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.ao-phase-badge[data-phase="live"] {
    border-color: #FECACA;
    background: #FEF2F2;
    color: var(--ao-danger);
}

.ao-phase-badge[data-phase="ended"] {
    border-color: #D1D5DB;
    background: #F3F4F6;
    color: #4B5563;
}

.ao-phase-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.ao-phase-badge[data-phase="live"] .ao-phase-badge__dot { animation: aoLive 1.4s ease-in-out infinite; }
.ao-phase-summary__date { white-space: nowrap; }

.ao-lot-main {
    width: 100%;
    padding: 20px 20px 44px;
}

.ao-lot-detail {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.ao-lot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
    gap: 36px;
    align-items: start;
}

.ao-lot-left,
.ao-lot-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ao-lot-right { position: sticky; top: 16px; }

.ao-gallery__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--ao-border);
    border-radius: 16px;
    background: #E5E7EB;
}

.ao-gallery__main {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ao-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ao-gallery__type,
.ao-gallery__count,
.ao-gallery__expand {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ao-gallery__type {
    top: 12px;
    left: 12px;
    padding: 6px 11px;
    background: var(--ao-yellow);
    color: #111;
    text-transform: uppercase;
}

.ao-gallery__type svg,
.ao-gallery__count svg,
.ao-gallery__expand svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ao-gallery__count {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    background: rgba(17, 17, 17, .64);
    color: #fff;
    backdrop-filter: blur(4px);
}

.ao-gallery__expand {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border: 0;
    background: rgba(17, 17, 17, .64);
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.ao-gallery__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, .55);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.ao-gallery__nav--prev { left: 12px; }
.ao-gallery__nav--next { right: 12px; }

.ao-gallery__lightbox-links {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.ao-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 13px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    scrollbar-color: #D1D5DB transparent;
    scrollbar-width: thin;
}

.ao-gallery__thumb {
    flex: 0 0 86px;
    width: 86px;
    height: 62px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #E5E7EB;
    opacity: .68;
    cursor: pointer;
}

.ao-gallery__thumb.is-active {
    outline: 2.5px solid var(--ao-yellow);
    opacity: 1;
}

.ao-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ao-card {
    padding: 22px 24px;
    border: 1px solid var(--ao-border);
    border-radius: 16px;
    background: #fff;
}

.ao-eyebrow {
    margin: 0;
    color: var(--ao-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ao-eyebrow--muted { color: #9CA3AF; letter-spacing: .08em; }

.ao-card__hint {
    margin: 5px 0 18px;
    color: #9CA3AF;
    font-size: 12.5px;
    line-height: 1.45;
}

.ao-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 0;
}

.ao-spec dt { margin-bottom: 3px; color: var(--ao-muted); font-size: 12px; }
.ao-spec dd {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: var(--ao-ink);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.ao-spec__vin { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ao-colour-swatch { flex: 0 0 14px; width: 14px; height: 14px; border: 1px solid rgba(17, 24, 39, .14); border-radius: 50%; }

.ao-condition-chips {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #F3F4F6;
}

.ao-condition-chip {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 6px 11px;
    border: 1px solid var(--ao-border);
    border-radius: 999px;
    background: #F3F4F6;
    color: #374151;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.ao-condition-chip--warning { border-color: #FDE68A; background: #FFFBEB; color: var(--ao-warning); }

.ao-details-card { padding-top: 0; }
.ao-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--ao-border); }
.ao-tab {
    position: relative;
    padding: 18px 0 14px;
    border: 0;
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ao-tab.is-active { color: var(--ao-ink); }
.ao-tab.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--ao-yellow); }

.ao-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 30px;
    padding-top: 22px;
}

.ao-info-row { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.ao-info-row--wide { grid-column: 1 / -1; }
.ao-info-row__icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #FCE8A6;
    border-radius: 9px;
    background: #FFF8E1;
    color: var(--ao-gold);
    font-size: 16px;
    font-weight: 800;
}

.ao-info-row div { min-width: 0; }
.ao-info-row div > span { display: block; color: var(--ao-muted); font-size: 12px; }
.ao-info-row strong { display: block; margin-top: 2px; color: var(--ao-ink); font-size: 14px; font-weight: 700; line-height: 1.48; }

.ao-lot-identity {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 2px 2px 0;
}

.ao-lot-identity h1 {
    margin: 5px 0 0;
    color: var(--ao-ink);
    font-size: clamp(22px, 2.2vw, 27px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.ao-lot-identity__meta { margin: 7px 0 0; color: var(--ao-muted); font-size: 13.5px; }

.ao-watch-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 11px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ao-watch-button:has(svg[data-watched="true"]) { border-color: var(--ao-yellow); background: #FFF8E1; }
.ao-watch-button.is-pending { pointer-events: none; opacity: .58; }
.ao-watch-button svg { width: 18px; height: 18px; stroke: #374151; stroke-width: 2; stroke-linejoin: round; }

.ao-bid-panel {
    overflow: hidden;
    border: 1px solid var(--ao-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px -18px rgba(17, 17, 17, .25);
}

.ao-bid-status {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 18px;
    border-bottom: 1px solid #FCE8A6;
    background: #FFF8E1;
    color: var(--ao-gold);
}

.ao-bid-status[data-tone="success"] { border-color: #A7F3D0; background: #ECFDF5; color: var(--ao-success); }
.ao-bid-status[data-tone="danger"] { border-color: #FECACA; background: #FEF2F2; color: var(--ao-danger); }
.ao-bid-status[data-tone="warning"] { border-color: #FDE68A; background: #FFFBEB; color: var(--ao-warning); }
.ao-bid-status[data-tone="neutral"] { border-color: var(--ao-border); background: #F9FAFB; color: var(--ao-muted); }
.ao-bid-status[data-tone="live"] { border-color: #27272A; background: #18181B; color: #fff; }
.ao-bid-status[data-tone="sold"] { border-color: #FCE8A6; background: linear-gradient(135deg, #FFF8E1, #FFFDF4); color: var(--ao-gold); }
.ao-bid-status[data-tone="sold"] .ao-bid-status__icon { border-color: var(--ao-yellow); background: var(--ao-yellow); color: #111; }

.ao-bid-status__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.ao-bid-status div { min-width: 0; }
.ao-bid-status strong { display: block; color: currentColor; font-size: 14px; line-height: 1.3; }
.ao-bid-status div > span { display: block; margin-top: 2px; color: currentColor; font-size: 12px; line-height: 1.4; opacity: .88; }
.ao-bid-status div > span[hidden] { display: none; }

.ao-current-bid { padding: 21px 20px 17px; border-bottom: 1px solid #F3F4F6; }
.ao-current-bid__label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ao-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ao-winner-chip { padding: 5px 9px; border-radius: 999px; background: #F3F4F6; color: #4B5563; font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.ao-winner-chip.is-mine { background: #ECFDF5; color: var(--ao-success); }
.ao-current-bid__amount-wrap { position: relative; display: inline-block; margin-top: 6px; }
.ao-current-bid-amount,
.current-bid-amount { display: block; color: var(--ao-ink); font-size: clamp(31px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.current-bid-amount.is-empty { color: #9CA3AF; font-size: 29px; }
.current-bid-amount.is-winning,
[data-mobile-current-bid].is-winning { color: var(--ao-success); }
.current-bid-amount.is-not-winning,
[data-mobile-current-bid].is-not-winning { color: var(--ao-danger); }
.current-bid-amount.is-changing { animation: aoBidPop .72s cubic-bezier(.22,.8,.22,1); }
.ao-bid-delta { position: absolute; left: 50%; bottom: 100%; padding: 3px 7px; border-radius: 999px; background: #FFF8E1; color: var(--ao-gold); font-size: 11px; font-weight: 800; white-space: nowrap; animation: aoFloatUp 1.15s ease-out both; }

.ao-bid-error,
.ao-bid-removal-notice {
    margin: 14px 18px 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid #FECACA;
    border-radius: 11px;
    background: #FEF2F2;
    color: var(--ao-danger);
}

.ao-bid-removal-notice { border-color: #FDE68A; background: #FFFBEB; color: #854D0E; }
.ao-bid-error[hidden],
.ao-bid-removal-notice[hidden] { display: none; }
.ao-bid-error > span,
.ao-bid-removal-notice > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 900; }
.ao-bid-error p,
.ao-bid-removal-notice p { margin: 0; font-size: 12px; font-weight: 650; line-height: 1.4; }
.ao-bid-error button,
.ao-bid-removal-notice button { border: 0; background: none; color: currentColor; font-size: 20px; cursor: pointer; }

.ao-bid-actions { padding: 18px 20px 19px; }
.ao-bid-skeleton { display: grid; gap: 9px; }
.ao-bid-skeleton span { height: 38px; border-radius: 9px; background: linear-gradient(90deg, #F3F4F6, #fff, #F3F4F6); background-size: 200% 100%; animation: aoSkeleton 1.3s linear infinite; }
.ao-bid-skeleton span:first-child { width: 55%; height: 15px; }

.ao-bid-note,
.ao-ended-card,
.ao-eligibility-card,
.ao-live-join {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--ao-border);
    border-radius: 12px;
    background: #F9FAFB;
}

.ao-bid-note--success { border-color: #A7F3D0; background: #ECFDF5; color: #065F46; }
.ao-eligibility-card--pending { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.ao-eligibility-card--rejected { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.ao-bid-note strong,
.ao-ended-card strong,
.ao-eligibility-card strong,
.ao-live-join strong { font-size: 14px; }
.ao-bid-note span,
.ao-ended-card span,
.ao-eligibility-card span,
.ao-live-join span { font-size: 12px; line-height: 1.5; }

/* Sold outcomes are celebrated, not greyed out: gold for the public result,
   the success green for the winner's own card. */
.ao-sold-stamp {
    align-self: flex-start;
    margin-bottom: 2px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--ao-yellow);
    color: #111;
    font-size: 10px !important;
    font-weight: 850;
    letter-spacing: .1em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}
.ao-ended-card--sold { border-color: #FCE8A6; background: linear-gradient(180deg, #FFF8E1, #FFFDF4); }
.ao-ended-card--sold strong { color: var(--ao-gold); font-size: 15px; }
.ao-ended-card--sold span { color: #6B5B1E; }
.ao-ended-card--won { border-color: #A7F3D0; background: linear-gradient(180deg, #ECFDF5, #F8FEFB); }
.ao-ended-card--won strong { color: var(--ao-success); font-size: 15px; }
.ao-ended-card--won span { color: #065F46; }
.ao-ended-card--won .ao-sold-stamp { background: var(--ao-success); color: #fff; }

.ao-live-join { border-color: #27272A; background: #18181B; color: #fff; }
.ao-live-join__badge { align-self: flex-start; padding: 4px 8px; border-radius: 999px; background: #7F1D1D; color: #FCA5A5; font-size: 10px !important; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.ao-panel-action,
.ao-bid-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 11px;
    padding: 13px 16px;
    border: 0;
    border-radius: 11px;
    background: var(--ao-yellow);
    color: #111;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(224, 175, 0, .7);
}

.ao-panel-action--dark { background: #fff; color: #111; box-shadow: none; }
.ao-panel-action--secondary { border: 1px solid #D1D5DB; background: #fff; color: #374151; box-shadow: none; }

.ao-bid-form__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ao-bid-form__heading strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ao-bid-form__heading span { color: var(--ao-muted); font-size: 11.5px; }
.ao-quick-bid-rail { position: relative; min-width: 0; perspective: 700px; }
.ao-quick-bids {
    display: flex;
    gap: 8px;
    padding: 2px 32px 8px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-color: #D1D5DB transparent;
    scrollbar-width: thin;
}
.ao-quick-bid {
    flex: 0 0 calc((100% - 48px) / 3);
    min-height: 44px;
    padding: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #fff;
    color: var(--ao-ink);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
}

.ao-quick-bid.is-selected { border: 2px solid var(--ao-yellow); background: #FFF8E1; box-shadow: 0 5px 12px -10px #111; }
.ao-quick-bid-more {
    position: absolute;
    z-index: 2;
    top: 2px;
    right: 0;
    bottom: 8px;
    width: 39px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 7px 0 16px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), #fff 42%);
    color: var(--ao-danger);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}
.ao-quick-bid-more[hidden] { display: none; }
.ao-bid-validation { min-height: 17px; margin: 5px 0 0; color: var(--ao-danger); font-size: 11.5px; }
.ao-bid-submit { margin-top: 7px; }
.ao-bid-submit.is-armed { background: var(--ao-ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(17,17,17,.5); }
.ao-bid-submit.is-flipping { transform-origin: center bottom; animation: aoBidSwitch .38s cubic-bezier(.2,.75,.25,1); }
.ao-bid-submit:disabled { background: #E5E7EB; color: #9CA3AF; cursor: not-allowed; box-shadow: none; }
.ao-confirm-help { margin: 7px 0 0; color: var(--ao-muted); font-size: 11.5px; text-align: center; }

.ao-max-bid { margin-top: 16px; padding-top: 16px; border-top: 1px solid #F3F4F6; }
.ao-max-bid--standalone { margin-top: 0; padding-top: 0; border-top: 0; }
.ao-max-bid__summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid #FCE8A6;
    border-radius: 13px;
    background: #FFF8E1;
}
.ao-max-bid__summary[hidden],
.ao-max-bid__editor[hidden] { display: none; }
.ao-max-bid__icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #FCE8A6;
    border-radius: 9px;
    background: #fff;
    color: var(--ao-gold);
    font-size: 20px;
    font-weight: 800;
}
.ao-max-bid__copy { min-width: 0; }
.ao-max-bid__copy > span { display: block; color: var(--ao-gold); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ao-max-bid__copy > strong { display: block; margin-top: 2px; color: var(--ao-ink); font-size: 16px; font-weight: 800; }
.ao-max-bid__copy > small { display: block; margin-top: 2px; color: #7C5F16; font-size: 11.5px; line-height: 1.4; }
.ao-max-bid__start {
    padding: 9px 11px;
    border: 1px solid #E7CE7A;
    border-radius: 10px;
    background: #fff;
    color: #5F480D;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
.ao-max-bid__editor { padding: 15px; border: 1px solid #E5E7EB; border-radius: 13px; background: #F9FAFB; }
.ao-max-bid__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ao-max-bid__heading strong { color: var(--ao-ink); font-size: 14px; font-weight: 800; }
.ao-max-bid__heading span { color: var(--ao-muted); font-size: 11.5px; }
.ao-max-bid__field {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 11px;
    padding: 0 14px;
    border: 1px solid #D1D5DB;
    border-radius: 11px;
    background: #fff;
    color: var(--ao-muted);
    font-size: 16px;
    font-weight: 700;
}
.ao-max-bid__field:focus-within { border-color: var(--ao-yellow); box-shadow: 0 0 0 1px var(--ao-yellow); }
.ao-max-bid__field input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ao-ink); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ao-max-bid__actions { display: flex; gap: 8px; margin-top: 4px; }
.ao-max-bid__save { flex: 1; width: auto; margin-top: 0; padding: 11px 16px; background: var(--ao-ink); color: #fff; box-shadow: none; }
.ao-max-bid__save.is-armed { background: var(--ao-ink); }
.ao-max-bid__dismiss { padding: 11px 16px; border: 1px solid #D1D5DB; border-radius: 11px; background: #fff; color: #374151; font-size: 14px; font-weight: 700; cursor: pointer; }

.ao-bid-stats { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--ao-border); background: #F9FAFB; }
.ao-time-stat,
.ao-increment-stat { position: relative; padding: 14px 20px; }
.ao-time-stat > span,
.ao-increment-stat > span { display: block; color: var(--ao-muted); font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ao-time-stat strong,
.ao-increment-stat strong { display: block; margin-top: 3px; color: var(--ao-ink); font-size: 18px; font-weight: 800; font-style: normal; font-variant-numeric: tabular-nums; }
.ao-increment-stat { min-width: 120px; border-left: 1px solid var(--ao-border); }
.ao-increment-stat strong { font-size: 14px; }
.ao-time-stat > em { display: inline-flex; margin-top: 5px; padding: 3px 6px; border-radius: 999px; color: var(--ao-danger); background: #FEE2E2; font-size: 9px; font-style: normal; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.ao-time-stat.is-urgent { background: #FEF2F2; animation: aoUrgent 1.6s ease-in-out infinite; }
.ao-time-stat.is-urgent strong { color: var(--ao-danger); }
.ao-time-stat.is-extended { background: #ECFDF5; animation: aoExtendRing 2.6s ease-out; }
.ao-time-stat.is-extended strong { color: var(--ao-success); }
.ao-time-stat.is-extended > em[data-extension-badge] { display: inline-flex; color: var(--ao-success); background: #D1FAE5; animation: aoExtendBadge 2.6s ease-out; }

.ao-mobile-bid-bar { display: none; }

.ao-connection-loader {
    position: fixed;
    z-index: 70;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .2);
    font-size: 12px;
    font-weight: 700;
}

.ao-connection-loader.bg-green-500 { background: #059669; }
.ao-connection-loader.bg-red-500 { background: #DC2626; }
.ao-connection-loader__spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: aoSpin .8s linear infinite; }
.ao-connection-loader p { margin: 0; }

@keyframes aoLive { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes aoSpin { to { transform: rotate(360deg); } }
@keyframes aoSkeleton { to { background-position: -200% 0; } }
@keyframes aoBidPop { 0% { transform: scale(1); background: #FEE082; } 30% { transform: scale(1.055); } 100% { transform: scale(1); background: transparent; } }
@keyframes aoFloatUp { 0% { opacity: 0; transform: translate(-50%, 4px); } 14% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -24px); } }
@keyframes aoBidSwitch { 0% { opacity: .35; transform: translateY(12px) rotateX(-72deg); } 58% { opacity: 1; transform: translateY(-2px) rotateX(8deg); } 100% { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes aoUrgent { 0%,100% { box-shadow: 0 0 0 0 rgba(185,28,28,.22); } 50% { box-shadow: 0 0 0 7px rgba(185,28,28,0); } }
@keyframes aoExtendRing { 0% { box-shadow: 0 0 0 0 rgba(4,120,87,.45); } 55% { box-shadow: 0 0 0 11px rgba(4,120,87,0); } 100% { box-shadow: none; } }
@keyframes aoExtendBadge { 0% { opacity: 0; transform: translateY(6px) scale(.92); } 15%,80% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 819px) {
    .ao-lot-action-bar__inner { min-height: 52px; padding: 8px 14px; }
    .ao-back-button { padding: 7px 12px; font-size: 13px; }
    .ao-phase-summary { gap: 8px; }
    .ao-phase-summary__date { display: none; }
    .ao-lot-main { padding: 14px 14px 104px; }
    .ao-lot-grid { display: flex; flex-direction: column; gap: 18px; }
    .ao-lot-left,
    .ao-lot-right { display: contents; }
    .ao-lot-identity { order: 1; padding: 0; }
    .ao-gallery { order: 2; }
    .ao-bid-panel { order: 3; }
    .ao-description-card { order: 4; }
    .ao-details-card { order: 5; }
    .ao-lot-identity h1 { font-size: 22px; }
    .ao-watch-button { padding: 7px 9px; }
    .ao-gallery__frame { border-radius: 14px; }
    .ao-gallery__type { top: 10px; left: 10px; }
    .ao-gallery__count { top: 10px; right: 10px; }
    .ao-gallery__nav { width: 36px; height: 36px; }
    .ao-gallery__expand { right: 10px; bottom: 10px; }
    .ao-card { padding: 19px 17px; }
    .ao-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
    .ao-info-grid { grid-template-columns: 1fr; }
    .ao-info-row--wide { grid-column: auto; }
    .ao-details-card { padding-top: 0; }
    .ao-current-bid { padding: 18px 17px 15px; }
    .ao-bid-actions { padding: 16px 17px 18px; }
    .ao-bid-stats { grid-template-columns: 1fr auto; }
    .ao-time-stat,
    .ao-increment-stat { padding: 13px 17px; }
    .ao-mobile-bid-bar {
        position: fixed;
        z-index: 60;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--ao-border);
        background: rgba(255,255,255,.97);
        box-shadow: 0 -8px 24px rgba(17,24,39,.1);
        backdrop-filter: blur(8px);
    }
    .ao-mobile-bid-bar > div { min-width: 0; }
    .ao-mobile-bid-bar span { display: block; color: var(--ao-muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .ao-mobile-bid-bar strong { display: block; overflow: hidden; color: var(--ao-ink); font-size: 17px; font-weight: 800; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
    .ao-mobile-bid-bar small { display: block; color: var(--ao-muted); font-size: 10px; font-weight: 700; }
    .ao-mobile-bid-bar button,
    .ao-mobile-bid-bar a { flex: 0 0 auto; min-width: 132px; padding: 11px 13px; border: 0; border-radius: 10px; background: var(--ao-yellow); color: #111; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; }
    .ao-mobile-bid-bar button:disabled { background: #E5E7EB; color: #9CA3AF; }
    .ao-connection-loader { right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
    .ao-gallery__expand { width: 38px; height: 38px; justify-content: center; padding: 0; }
    .ao-gallery__expand svg { width: 17px; height: 17px; }
    .ao-gallery__expand { font-size: 0; }
    .ao-bid-stats { grid-template-columns: 1fr; }
    .ao-increment-stat { border-top: 1px solid var(--ao-border); border-left: 0; }
    .ao-max-bid__summary { grid-template-columns: 34px minmax(0, 1fr); }
    .ao-max-bid__start { grid-column: 1 / -1; width: 100%; }
    .ao-max-bid__heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}

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