.lot-media-card {
    overflow: hidden;
}

.lot-media-main,
.lot-media-thumb {
    display: block;
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    background: #f8fafc;
}

.lot-media-main {
    max-height: 420px;
}

.lot-media-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.lot-media-thumb {
    height: 90px;
}

.lot-section-spaced {
    margin-top: 20px;
}

.lot-text-prewrap {
    white-space: pre-wrap;
}

.container.container-wide {
    max-width: 1480px;
}

.lot-layout-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.lot-column {
    display: grid;
    gap: 20px;
    align-content: start;
    min-width: 0;
}

.lot-column-left,
.lot-column-center,
.lot-column-right {
    min-width: 0;
}

.lot-photo-box,
.lot-info-box,
.lot-side-top,
.lot-bid-history-box {
    min-width: 0;
}

.lot-photo-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lot-photo-square--button {
    padding: 0;
    cursor: zoom-in;
    appearance: none;
}

.lot-photo-square--empty span {
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.lot-photo-square__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #fff;
    padding: 0;
}


.lot-gallery {
    display: grid;
    gap: 12px;
}

.lot-gallery-dots,
.lot-photo-dialog__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lot-gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.lot-gallery-dot:hover {
    transform: scale(1.08);
}

.lot-gallery-dot.is-active {
    background: var(--accent);
}

.lot-photo-dialog__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.lot-photo-dialog__nav--prev {
    left: 18px;
}

.lot-photo-dialog__nav--next {
    right: 18px;
}

.lot-photo-dialog__dots {
    margin-top: 14px;
}

.lot-photo-dialog {
    width: min(92vw, 980px);
    border: none;
    border-radius: 18px;
    padding: 0;
    background: transparent;
}

.lot-photo-dialog::backdrop {
    background: rgba(15, 23, 42, 0.72);
}

.lot-photo-dialog__body {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    padding: 18px;
}

.lot-photo-dialog__image {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
}

.lot-photo-dialog__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lot-top-info p {
    margin: 0 0 14px;
}

.lot-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lot-box-head h2,
.lot-side-card h2 {
    margin: 0;
}

.lot-sensitive-form,
.lot-owner-form,
.lot-bid-form {
    display: grid;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.lot-sensitive-input,
.lot-owner-form input[type="text"],
.lot-owner-form input[type="password"],
.lot-bid-form input[type="text"],
.lot-bid-form input[type="email"],
.lot-bid-form input[type="password"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.lot-sensitive-input:focus,
.lot-owner-form input:focus,
.lot-bid-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.lot-owner-form .btn,
.lot-bid-form .btn,
.lot-bid-form button,
.lot-owner-form button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.lot-side-card {
    display: grid;
    gap: 14px;
    align-self: start;
}

.lot-wallet-value {
    display: block;
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lot-bid-history {
    display: grid;
    gap: 12px;
}

.lot-bid-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.lot-bid-card--leading {
    border-color: rgba(34, 197, 94, 0.45);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255,255,255,1));
    box-shadow: 0 10px 26px rgba(34, 197, 94, 0.10);
}

.lot-bid-line-primary {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.lot-bid-amount-inline {
    font-weight: 700;
}

.lot-bid-status-inline {
    font-weight: 700;
    color: #64748b;
}

.lot-bid-status-inline--leading {
    color: #15803d;
}

.lot-bid-line-secondary,
.lot-bid-line-tertiary {
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
}

.lot-bid-line-tertiary {
    font-weight: 700;
}

.lot-hidden-bids {
    gap: 12px;
    margin-top: 12px;
}

.lot-hidden-bids:not([hidden]) {
    display: grid;
}

.lot-bid-toggle {
    width: auto !important;
    justify-self: center;
    margin-top: 12px;
}

@media (max-width: 1180px) {
    .lot-layout-grid {
        grid-template-columns: 1fr;
    }

    .lot-column {
        gap: 20px;
    }

    .lot-column-left {
        order: 1;
    }

    .lot-column-left .lot-photo-box {
        order: 1;
    }

    .lot-column-left .lot-info-box {
        order: 2;
    }

    .lot-column-center {
        order: 2;
    }

    .lot-column-right {
        order: 3;
    }
}

@media (max-width: 640px) {
    .lot-bid-line-primary {
        font-size: 16px;
    }
}
.lot-layout-grid--universal .lot-grid-block {
    min-width: 0;
}

.lot-grid-block--secondary {
    background: #fbfcfe;
}

.lot-fold-summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

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

.lot-fold-body {
    margin-top: 14px;
}

.lot-restricted-card {
    max-width: 760px;
    margin: 16px auto 0;
    display: grid;
    gap: 14px;
    text-align: left;
}

.lot-restricted-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.lot-restricted-card__title {
    margin: 0;
}

.lot-restricted-card__meta {
    display: grid;
    gap: 8px;
}

.lot-restricted-card__meta p {
    margin: 0;
}

.lot-restricted-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.lot-restricted-card__actions {
    display: flex;
    justify-content: flex-start;
}


.lot-detail-list {
    display: grid;
    gap: 12px;
}

.lot-detail-row {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.lot-detail-row__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.lot-detail-row__value {
    color: #0f172a;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lot-item-details-text {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.lot-protection-list {
    display: grid;
    gap: 12px;
}

.lot-protection-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: #334155;
}

.lot-protection-item__icon {
    font-weight: 800;
    color: var(--brand);
    line-height: 1.2;
}


.lot-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.lot-summary-strip__item {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
    display: grid;
    gap: 6px;
}

.lot-summary-strip__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 700;
}

.lot-highlight-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.lot-highlight-card {
    padding: 16px 18px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(34,197,94,.06), rgba(255,255,255,1));
    display: grid;
    gap: 8px;
}

.lot-highlight-card--accent {
    border-color: rgba(59,130,246,.2);
    background: linear-gradient(180deg, rgba(59,130,246,.06), rgba(255,255,255,1));
}

.lot-highlight-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    font-weight: 800;
}

.lot-highlight-card__value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.lot-photo-square--smart-empty {
    border-style: solid;
    border-color: rgba(34, 197, 94, 0.18);
    background: linear-gradient(180deg, rgba(34,197,94,.08), rgba(248,250,252,1));
    padding: 22px;
}

.lot-empty-media-card {
    display: grid;
    gap: 10px;
    text-align: center;
    max-width: 280px;
}

.lot-empty-media-card__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #16a34a;
    font-weight: 800;
}

.lot-empty-media-card__title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.lot-empty-media-card__subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

.lot-inline-mono {
    display: inline-block;
    max-width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    overflow-wrap: anywhere;
}

.lot-inline-copy {
    margin-left: 8px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.lot-inline-link {
    text-decoration: none;
}

.lot-bid-warning {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(245,158,11,.22);
    border-radius: 12px;
    background: rgba(245,158,11,.08);
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .lot-summary-strip,
    .lot-highlight-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .lot-summary-strip,
    .lot-highlight-bar {
        grid-template-columns: 1fr;
    }

    .lot-highlight-card__value,
    .lot-empty-media-card__title {
        font-size: 24px;
    }
}


.lot-bid-trust-note {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.lot-side-card[data-block="next-steps"] .lot-protection-item__icon {
    font-size: 16px;
    line-height: 1;
}


.upload-url-box {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.upload-url-box .form-label {
    font-weight: 600;
    color: var(--text);
}

.upload-url-box .form-control {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.upload-url-box .form-help {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}


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

.upload-subform {
    display: grid;
    gap: 14px;
    border: 1px dashed #b8c8de;
    border-radius: 20px;
    padding: 16px;
    background: #fbfdff;
}

.upload-box--url {
    margin-bottom: 0;
}

.upload-url-box--split {
    margin-top: 0;
}

@media (min-width: 900px) {
    .upload-shell {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.lot-ownership-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.lot-ownership-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}.lot-ownership-badge--success{background:#e9f8ef;color:#227f45}.lot-ownership-badge--warning{background:#fff6e5;color:#a36300}.lot-ownership-badge--muted{background:#f2f4f7;color:#64748b}.lot-ownership-wallet{font-size:12px;color:#64748b;word-break:break-all}


/* V2.7.5 URL system: compact share link on listing pages */
.lot-share-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lot-share-label {
    background: #f2f4f7;
    border-radius: 999px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.lot-share-short {
    color: #148f3f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.lot-share-short:hover {
    text-decoration: underline;
}

/* V3.1.40 listing show mobile polish */
.lot-photo-square__image {
    object-fit: contain;
    object-position: center center;
    background: #f8fafc;
}

.lot-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
}

.lot-share-button:hover {
    border-color: rgba(34, 197, 94, .35);
    background: #effaf1;
    color: #166534;
}

.lot-share-modal {
    display: grid;
    gap: 14px;
}

.lot-share-modal__input {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .lot-photo-box {
        padding: 0;
        overflow: hidden;
    }

    .lot-photo-square {
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 18px;
    }

    .lot-photo-square--button {
        display: block;
        width: 100%;
    }

    .lot-photo-square__image {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .lot-ownership-line {
        margin-top: 8px;
    }
}

/* V3.1.41 listing mobile accordion and action confirmation foundation */
.lot-review-path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 4px;
}

.lot-review-path__step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.lot-review-path__step.is-current {
    border-color: rgba(34, 197, 94, .28);
    background: #f0fdf4;
    color: #166534;
}

.lot-review-path__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    color: inherit;
    border: 1px solid currentColor;
    font-size: 12px;
}

.lot-fold-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lot-fold-summary::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 18px;
    line-height: 1;
}

details[open] > .lot-fold-summary::after {
    content: '−';
    background: #e7f8ec;
    color: #15803d;
}

.lot-action-confirm-box {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fff9 0%, #ffffff 100%);
}

.lot-action-confirm-box--modal {
    margin: 0;
}

.lot-action-confirm-box__eyebrow {
    color: #166534;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lot-action-confirm-box__check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.lot-action-confirm-box__check input {
    margin-top: 2px;
}

.lot-action-confirm-form {
    display: grid;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.lot-action-confirm-form .btn {
    width: 100%;
}

.lot-wallet-value,
.lot-inline-mono,
.lot-detail-row__value,
.lot-text-prewrap {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 720px) {
    .lot-review-path {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .lot-layout-grid {
        gap: 14px;
    }

    .lot-fold-summary {
        font-size: 16px;
    }
}
