
.sell-header { gap: 12px; }
.sell-back { margin-left: auto; }
.sell-main { max-width: 1120px; padding-top: 28px; }
.sell-intro { display: flex; justify-content: space-between; align-items: end; gap: 13px; }
.sell-intro h1 { color: var(--ink); font-size: clamp(38px, 5.4vw, 70px); line-height: 1; }
.sell-intro p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.draft-status { flex: 0 0 auto; font-size: 12px !important; }
.sell-steps { display: flex; gap: 12px; margin: 19px 0 14px; padding: 0; list-style: none; }
.sell-steps li { display: flex; align-items: center; gap: 7px; padding: 0 10px 8px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 700; }
.sell-steps li[aria-current="step"] { color: var(--ink); border-color: var(--brand); }
.sell-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7dfd4; }
.sell-steps li[aria-current="step"] span { background: var(--brand); color: #fff; }
.sell-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 310px); gap: 17px; align-items: start; }
#listing-form { min-width: 0; }
.sell-panel { min-width: 0; padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.sell-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sell-panel-heading h2, .sell-preview h2 { font-size: clamp(23px, 2.5vw, 32px); }
.sell-panel-heading p { color: var(--muted); font-size: 12px; white-space: nowrap; }
.upload-area { display: grid; place-items: center; gap: 5px; padding: 14px 8px; text-align: center; background: #f5efe6; border: 1px dashed #bcab97; border-radius: 5px; }
.upload-area.is-dragging { border-color: var(--brand); background: #ffece6; }
.upload-title { font-size: 16px; font-weight: 790; }
.upload-area p:not(.upload-title) { color: var(--muted); font-size: 13px; }
.upload-actions { display: flex; gap: 6px; justify-content: center; margin-top: 5px; }
.camera-button { display: none; }
.field-message { margin: 7px 0 0; color: #99251d; font-size: 13px; }
.sell-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.sell-photos:empty { display: none; }
.sell-photo { position: relative; min-width: 0; }
.sell-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: #ede7dc; }
.sell-photo-remove { position: absolute; top: 4px; right: 4px; width: 31px; height: 31px; border: 1px solid #fff8; border-radius: 50%; background: #29221ce8; color: #fff; line-height: 1; font-size: 17px; }
.sell-photo-cover { min-height: 32px; width: 100%; margin-top: 3px; border: 1px solid var(--line); border-radius: 4px; background: #fffaf2; font-size: 11px; font-weight: 700; text-align: center; }
.sell-photo-cover[aria-pressed="true"] { border-color: #e7bd65; background: #ffedc2; color: #473313; }
.sell-categories { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 11px; padding: 0; border: 0; }
.sell-categories legend { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; }
.sell-category { position: relative; cursor: pointer; }
.sell-category span:not(.sr-only) { display: inline-flex; align-items: center; min-height: 39px; padding-inline: 9px; border: 1px solid var(--line); border-radius: 5px; background: #f7f2eb; white-space: nowrap; font-size: 13px; font-weight: 700; }
.sell-category input:checked + span { border-color: var(--ink); background: var(--ink); color: #fffaf3; }
.sell-category input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.sell-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sell-field { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 710; }
.sell-field small { margin-left: 4px; color: var(--muted); font-weight: 520; }
.sell-field-wide { grid-column: 1 / -1; }
.sell-field input, .sell-field select, .sell-field textarea { width: 100%; min-width: 0; min-height: 45px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: #fffcf7; font-size: 16px; font-weight: 500; }
.sell-field textarea { resize: vertical; }
.field-unit { position: relative; display: block; }
.field-unit input { padding-right: 35px; }
.field-unit > span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 650; pointer-events: none; }
.sell-submit { display: grid; justify-items: end; gap: 5px; }
.sell-submit .button { min-height: 47px; }
.sell-preview { position: sticky; top: 12px; min-width: 0; }
.sell-preview h2 { margin-bottom: 7px; }
.sell-preview-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #eee6da; color: var(--muted); }
.sell-preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.review-cover { display: grid; place-items: center; height: min(43vw, 420px); min-height: 180px; border-radius: 4px; background: #eee7dc; overflow: hidden; }
.review-cover img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.review-thumbs { display: flex; gap: 5px; padding-top: 6px; overflow-x: auto; }
.review-thumbs button { flex: 0 0 64px; height: 46px; padding: 0; border: 2px solid transparent; background: #eee7dc; border-radius: 3px; overflow: hidden; }
.review-thumbs button[aria-pressed="true"] { border-color: var(--brand); }
.review-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.review-price { font-size: clamp(27px, 3vw, 43px); font-weight: 860; letter-spacing: -.05em; }
.review-info h3 { margin: 4px 0 10px; font-size: 20px; overflow-wrap: anywhere; }
.review-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.review-info dl div { padding: 7px; border-radius: 4px; background: #f1e9df; overflow-wrap: anywhere; }
.review-info dt { color: var(--muted); font-size: 12px; }
.review-info dd { margin: 3px 0 0; font-size: 14px; font-weight: 710; }
.review-info h4 { margin: 13px 0 4px; }
#review-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.sell-handoff { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid #dfc99e; border-radius: 5px; background: #fff4db; }
.sell-handoff p { line-height: 1.5; font-size: 14px; }
.sell-handoff div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

@media (max-width: 720px) {
  .sell-main { padding-top: 15px; }
  .sell-intro { display: grid; gap: 4px; }
  .draft-status:empty { display: none; }
  .sell-steps { margin-block: 12px 9px; }
  .sell-layout, .review-layout { grid-template-columns: minmax(0, 1fr); }
  .sell-preview { display: none; }
  .sell-panel { padding: 10px; }
  .sell-categories { gap: 4px; }
  .sell-category span:not(.sr-only) { min-height: 37px; padding-inline: 6px; font-size: 12px; }
  .camera-button { display: inline-flex; }
  .sell-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #listing-form { padding-bottom: 75px; }
  .sell-submit { position: fixed; z-index: 3; inset: auto 0 0; justify-items: stretch; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
  .sell-handoff { align-items: flex-start; flex-direction: column; }
}
