.sell-intro { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.sell-english { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.sell-add { display: block; text-align: center; position: relative; }
.sell-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sell-add[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.sell-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sell-photos:empty { display: none; }
.sell-photo { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--chip); }
.sell-photo img { cursor: zoom-in; }
.sell-photo img { width: 100%; height: 100%; object-fit: cover; }
.sell-photo span { position: absolute; inset: auto 0 0 0; font-size: 11px; text-align: center; padding: 2px; background: color-mix(in srgb, var(--panel) 85%, transparent); }
.sell-photo.reading img { opacity: .5; }
.sell-dino { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.sell-dino a { color: inherit; }
.sell-msg { font-size: 13px; color: var(--danger); margin: 8px 0 0; }
.sell-status { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.sell-status[hidden] { display: none; }
.sell-status b { display: block; font-variant-numeric: tabular-nums; }
.sell-status small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sell-status .checkout { width: auto; margin: 0 0 0 auto; padding: 10px 14px; flex: none; }
.sell-spin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); animation: sell-spin .8s linear infinite; }
@keyframes sell-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sell-spin { animation-duration: 2.4s; } }
.sell-waiting { margin: 0 0 12px; padding: 14px; border-radius: 10px; background: var(--soft); font-size: 14px; }
.sell-waiting p { margin: 6px 0 10px; color: var(--muted); }
.sell-waiting-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sell-waiting-do .checkout { width: auto; margin: 0; }
#quote-msg .mo-alert { margin: 0 0 12px; }

.sell-card { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 10px 12px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.sell-card:first-child { border-top: 0; }
.sell-pics { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sell-card figure { margin: 0; }
.sell-card figure img { display: block; width: 100%; aspect-ratio: 63 / 88; object-fit: contain; border-radius: 6px; background: var(--chip); cursor: zoom-in; }
.sell-card figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; }
.sell-name b { display: block; font-size: 16px; }
.sell-name small { display: block; color: var(--muted); font-size: 12px; }
.sell-ok { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ok); }
.sell-x { font-size: 22px; line-height: 1; color: var(--muted); padding: 2px 6px; }
.sell-card > .sell-offer, .sell-card > .sell-ask, .sell-card > .sell-opts, .sell-card > .sell-printed { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .sell-card { grid-template-columns: 260px minmax(0, 1fr) 28px; }
  .sell-pics { grid-column: 1; grid-row: 1 / span 6; }
  .sell-card > .sell-name { grid-column: 2; grid-row: 1; }
  .sell-card > .sell-x { grid-column: 3; grid-row: 1; }
  .sell-card > .sell-offer, .sell-card > .sell-ask, .sell-card > .sell-opts, .sell-card > .sell-printed { grid-column: 2 / -1; }
}
.sell-fixed { display: flex; align-items: center; padding: 8px 6px; font-size: 14px; color: var(--ink); background: var(--chip); border-radius: 8px; }
.sell-offer { font-size: 14px; font-variant-numeric: tabular-nums; }
.sell-offer b { font-size: 20px; letter-spacing: -0.01em; margin-right: 4px; }
.sell-offer em { font-style: normal; color: var(--muted); }
.sell-offer small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sell-zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; outline: none; }
.sell-zoom::backdrop { background: rgba(0, 0, 0, .85); }
.sell-zoom img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 8px; cursor: zoom-out; }
.sell-ask { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--chip); font-size: 14px; font-weight: 600; }
.sell-ask > div { display: flex; gap: 8px; flex-wrap: wrap; }
.sell-ask button { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; }
.sell-ask .sell-yes { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sell-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px; }
.sell-opts.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sell-opts.wide > :first-child { grid-column: 1 / -1; }
.sell-opts select { width: 100%; padding: 8px 6px; font-size: 14px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; }
.sell-cards-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sell-cards-h h2 { margin-bottom: 8px; }
.sell-progress { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sell-grades { font-size: 13px; margin: 0 0 8px; }
.sell-grades summary { cursor: pointer; color: var(--muted); }
.sell-grades dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 8px 0 0; }
.sell-grades dt { font-weight: 700; } .sell-grades dd { margin: 0; color: var(--muted); }

.sell-result-h { margin: 0; font-size: 14px; color: var(--muted); }
.sell-result-sum { margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.sell-result-sum b { font-size: 34px; letter-spacing: -0.02em; }
.sell-result-sum span { color: var(--muted); font-size: 15px; margin-left: 6px; }

.sell-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--panel);
  border-top: 1.5px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sell-bar-in { max-width: 608px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sell-bar-sum { display: grid; line-height: 1.15; font-variant-numeric: tabular-nums; min-width: 0; }
.sell-bar-sum small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sell-bar-sum b { font-size: 22px; letter-spacing: -0.01em; }
.sell-bar .checkout { width: auto; margin: 0; padding: 12px 16px; white-space: nowrap; flex: none; }
body.with-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

.sell-set { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 3px; font-size: 13px; color: var(--ink); }
.sell-set img { height: 18px; max-width: 54px; object-fit: contain; flex: none; }
.sell-set span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sell-num { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sell-printing { display: block; }
.sell-name .sell-printing { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 3px; }
.sell-name .sell-set { margin-top: 0; }
.sell-name .sell-num { font-size: 13px; }

.sell-search { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); }
.sell-search[hidden] { display: none; }
.sell-search-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 10px 12px; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.sell-search-top b { font-size: 17px; }
.sell-search-yours { width: 48px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--chip); }
.sell-search-top input { grid-column: 1 / -1; width: 100%; padding: 10px; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; }
.sell-search-x { font-size: 28px; line-height: 1; color: var(--muted); padding: 4px; }
.sell-search-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.sell-search-h { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.sell-search-h:empty { display: none; }
.sell-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.sell-hit { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.sell-hit > img { width: 100%; aspect-ratio: 63 / 88; object-fit: contain; border-radius: 6px; background: var(--chip); margin-bottom: 6px; }
.sell-hit > b { font-size: 14px; line-height: 1.25; }
.sell-hit:hover > img, .sell-hit:focus-visible > img { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 600px) {
  .sell-search { inset: 5vh auto auto 50%; transform: translateX(-50%); width: min(640px, 94vw); height: 90vh; border-radius: 14px; overflow: hidden;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
  .sell-search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sell-strip { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 4px 8px; margin: 0 -4px;
  scroll-margin-top: calc(var(--top-h) + 8px); }
.sell-strip::-webkit-scrollbar { display: none; }
.sell-strip[hidden], .sell-step-nav[hidden] { display: none; }
.sell-strip button { position: relative; flex: none; width: 42px; padding: 0; border: 2px solid transparent; border-radius: 7px; background: none; }
.sell-strip img { display: block; width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 5px; background: var(--chip); }
.sell-strip .at { border-color: var(--ink); }
.sell-strip .ok::after { content: '✓'; position: absolute; right: -5px; top: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--ok); color: var(--bg);
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.sell-strip .off img { opacity: .35; }
.sell-step-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 6px 0 12px; font-size: 13px; color: var(--muted); }
.sell-step-nav button { justify-self: start; padding: 10px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; }
.sell-step-nav button:last-child { justify-self: end; }
.sell-step-nav .sell-yes { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sell-step-nav button:disabled { opacity: .35; }
@media (max-width: 599px) {
  #cards .sell-card:not(.at) { display: none; }
  #cards .sell-card.at { border-top: 0; padding-top: 8px; }
}
@media (min-width: 600px) { .sell-strip, .sell-step-nav { display: none !important; } }

.sell-bulk { box-shadow: none; padding: 12px 0 0; margin: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.sell-bulk label { margin-bottom: 0 !important; }
.sell-bulk-h { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.sell-bulk-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.sell-bulk-n label { font-size: 12px; color: var(--muted); }
.sell-bulk-n input { width: 100%; margin-top: 4px; }
.sell-bulk > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.lot-withdraw { margin: -4px 0 16px; text-align: center; }
#notes p { margin: 6px 0 0; }

.sell-how > details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.sell-how > details > summary::-webkit-details-marker { display: none; }
.sell-how > details > summary::after { content: '+'; font-size: 22px; color: var(--muted); }
.sell-how > details[open] > summary::after { content: '–'; }
.sell-how > details > summary h2 { margin: 0; }
.sell-how h3 { font-size: 14px; margin: 18px 0 8px; }
.sell-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.sell-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; align-content: start; }
.sell-steps svg { width: 52px; height: 52px; padding: 11px; border-radius: 50%; background: var(--chip); }
.sell-steps b { display: block; font-size: 15px; }
.sell-steps span { color: var(--muted); line-height: 1.35; }
.sell-tiles { display: grid; gap: 8px; grid-template-columns: 1fr; }
.sell-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.sell-tile-bulk { grid-template-columns: 1fr; gap: 6px; }
.sell-ex { width: 64px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--chip); transform: rotate(-4deg); box-shadow: var(--shadow); }
.sell-ex-sm { width: 30px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 3px; background: var(--chip); flex: none; align-self: center; }
.sell-tile-h { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.sell-tile-h small { display: block; font-weight: 400; color: var(--muted); }
.sell-big { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.sell-big b { font-size: 24px; min-width: 76px; letter-spacing: -0.01em; }
.sell-big span { font-size: 13px; color: var(--muted); }
.sell-more { margin-top: 10px; font-size: 14px; }
.sell-more summary { cursor: pointer; font-weight: 600; }
.sell-terms { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.sell-terms li { margin: 4px 0; }
@media (min-width: 720px) {
  .sell-steps { grid-template-columns: repeat(5, 1fr); }
  .sell-steps li { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sell-tiles { grid-template-columns: 1fr 1fr; }
  .sell-tile-bulk { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
  .sell-tile-bulk .sell-tile-h { grid-column: 1 / -1; }
  .sell-tile-bulk .sell-big { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .sell-tile-bulk .sell-big .sell-ex-sm { grid-row: 1 / span 2; }
  .sell-tile-bulk .sell-big b { min-width: 0; }
}
.sell-signin { margin-top: 12px; }

.lot-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; font-size: 14px; }
.lot-line:first-of-type { border-top: 0; }
.lot-line img { width: 44px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--chip); }
.lot-line b { display: block; }
.lot-line small { display: block; color: var(--muted); font-size: 12px; }
.lot-outcome { font-size: 12px; margin-top: 4px; font-weight: 600; }
.lot-outcome.cut { color: var(--danger); }
.lot-outcome a { color: inherit; }
form.mo-box label.lot-radio { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
form.mo-box label.lot-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
form.mo-box label.lot-radio:has(input:disabled) { opacity: .45; }
.lot-label { font-size: 13px; font-weight: 600; margin: 14px 0 8px; }
.lot-ref { font-size: 44px; font-weight: 800; letter-spacing: .04em; text-align: center; padding: 18px 0; border: 2px dashed var(--line); border-radius: 12px; margin: 12px 0; }
.lot-small { font-size: 13px; color: var(--muted); text-align: center; }
.lot-actions { display: flex; flex-direction: column; gap: 8px; }
.lot-events { font-size: 13px; color: var(--muted); margin: 6px 0 24px; }
.lot-events summary { cursor: pointer; }
.lot-events ol { padding-left: 18px; }
.lot-events span { font-variant-numeric: tabular-nums; }

@media print {
  body * { visibility: hidden; }
  .lot-slip, .lot-slip * { visibility: visible; }
  .lot-slip { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; box-shadow: none; }
  .lot-slip button { display: none; }
}
.sell-printed { display: block; grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: 4px; }
.lot-carriers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
@media (min-width: 640px) { .lot-carriers { grid-template-columns: repeat(3, 1fr); } }
