.inner-hero {
    padding: 28px 26px;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface);
    color: var(--ui-ink);
    box-shadow: none;
}

.sell-hero {
    min-height: 180px;
}

.sell-intro {
    margin-bottom: 20px;
    color: var(--ui-muted);
}

.inner-hero .hero-pill {
    margin: 0;
    border-color: var(--ui-primary-border);
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.inner-hero h1 {
    margin: 14px 0 0;
    color: var(--ui-heading);
    font-size: 32px;
    font-weight: 850;
    line-height: 1.18;
}

.inner-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--ui-muted);
    font-size: 15px;
    font-weight: 650;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    align-items: start;
    gap: 16px;
    margin-top: 16px;
}

.panel-block {
    min-width: 0;
    padding: 20px;
}

.panel-block h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    white-space: normal;
}

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

.flow-step {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface-muted);
}

.flow-step > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: var(--ui-radius-round);
    background: var(--ui-primary);
    color: var(--ui-on-primary);
    font-size: 13px;
    font-weight: 850;
}

.flow-step strong {
    display: block;
    color: var(--ui-heading);
    font-size: 16px;
}

.flow-step p {
    margin: 7px 0 0;
    color: var(--ui-muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.contact-list .btn {
    width: 100%;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
}

body[data-page="sell"] .content-grid > .panel-block:last-child {
    position: sticky;
    top: 88px;
}

.sell-intro-copy {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ui-line);
}

.sell-wizard {
    color: var(--ui-ink);
}

.sell-wizard-head,
.sell-wizard-actions,
.sell-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sell-wizard-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.sell-kicker {
    color: var(--ui-primary);
    font-size: 11px;
    font-weight: 800;
}

.sell-draft-button {
    min-height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--ui-primary);
    font-weight: 750;
}

.sell-stepper {
    margin: 16px 0 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    overflow: hidden;
}

.sell-stepper button {
    min-width: 0;
    min-height: 58px;
    padding: 7px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-right: 1px solid var(--ui-line);
    background: var(--ui-surface);
    color: var(--ui-muted);
}

.sell-stepper button:last-child {
    border-right: 0;
}

.sell-stepper button > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ui-surface-muted);
    font-size: 11px;
    font-weight: 850;
}

.sell-stepper button strong {
    font-size: 11px;
}

.sell-stepper button.active,
.sell-stepper button.complete {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.sell-stepper button.active > span,
.sell-stepper button.complete > span {
    background: var(--ui-primary);
    color: var(--ui-on-primary);
}

.sell-wizard-step[hidden] {
    display: none;
}

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

.sell-wizard label,
.sell-field-wide {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.sell-wizard label > span {
    color: var(--ui-heading);
    font-size: 12px;
    font-weight: 750;
}

.sell-field-wide {
    margin-top: 12px;
}

.sell-wizard [aria-invalid="true"] {
    border-color: var(--ui-danger);
    box-shadow: 0 0 0 3px var(--ui-danger-soft);
}

.sell-privacy-note {
    margin: 12px 0 0;
    padding: 9px 11px;
    border-left: 3px solid var(--ui-warning);
    background: var(--ui-warning-soft);
    color: var(--ui-warning);
    font-size: 11px;
}

.sell-upload-zone {
    min-height: 154px;
    padding: 20px;
    place-items: center;
    align-content: center;
    text-align: center;
    border: 1px dashed var(--ui-line-strong);
    border-radius: var(--ui-radius-md);
    background: var(--ui-surface-muted);
    cursor: pointer;
}

.sell-upload-zone .ui-icon {
    width: 28px;
    height: 28px;
    color: var(--ui-primary);
}

.sell-upload-zone strong {
    color: var(--ui-heading);
}

.sell-upload-zone span {
    color: var(--ui-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.sell-image-progress {
    position: relative;
    height: 38px;
    margin-top: 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface-muted);
    color: var(--ui-muted);
    font-size: 11px;
}

.sell-image-progress > span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--ui-success-soft);
    transition: width var(--ui-duration-fast) linear;
}

.sell-image-progress strong {
    position: relative;
}

.sell-image-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.sell-image-preview figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-sm);
    background: var(--ui-surface);
}

.sell-image-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sell-image-preview figcaption {
    padding: 6px;
    overflow: hidden;
    color: var(--ui-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sell-image-preview button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(20, 25, 34, .72);
    color: #fff;
    font-size: 20px;
}

.sell-review {
    border: 1px solid var(--ui-line);
    border-radius: var(--ui-radius-md);
    overflow: hidden;
}

.sell-review-head {
    justify-content: flex-start;
    padding: 13px;
    background: var(--ui-success-soft);
    color: var(--ui-success);
}

.sell-review-head div {
    display: grid;
}

.sell-review-head span {
    font-size: 11px;
}

.sell-review dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sell-review dl > div {
    min-width: 0;
    padding: 11px 13px;
    border-top: 1px solid var(--ui-line);
}

.sell-review dl > div.wide {
    grid-column: 1 / -1;
}

.sell-review dt {
    color: var(--ui-muted);
    font-size: 10px;
}

.sell-review dd {
    margin: 3px 0 0;
    color: var(--ui-heading);
    font-weight: 700;
    overflow-wrap: anywhere;
}

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

.sell-wizard-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ui-line);
}

#sellDraftStatus {
    color: var(--ui-muted);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 760px) {
    .sell-hero {
        min-height: 0;
    }

    .sell-wizard-head {
        align-items: flex-start;
    }

    .sell-stepper {
        margin-inline: -4px;
    }

    .sell-stepper button {
        min-height: 62px;
    }

    .sell-stepper button strong {
        max-width: 4em;
        line-height: 1.2;
    }

    .sell-field-grid {
        grid-template-columns: 1fr;
    }

    .sell-image-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sell-submit-actions {
        grid-template-columns: 1fr;
    }
}
