.auction-pc { display: none; }
.auction-mobile { display: block; }
.page-auction { background: #f4f5f7; }
@media (max-width: 1023px) {
  .page-auction .site-footer { display: none; }
}

.auction-empty {
  margin: 0;
  padding: 40px 8px;
  text-align: center;
  color: #8a8a8a;
  font-size: 14px;
}
.auction-error { margin: 0 0 12px; color: var(--brand); font-weight: 700; font-size: 13px; }

.quote-hero {
  margin: 0 0 8px;
  padding: 22px 16px 20px;
  background: #111;
  color: #fff;
}
.quote-hero-kicker {
  margin: 0 0 6px;
  color: #ff8a8d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.quote-hero h1 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.quote-hero p { margin: 0; color: #cfcfd4; font-size: 13px; line-height: 1.5; }
.quote-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.quote-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.quote-hero-link { color: #fff; font-size: 13px; font-weight: 700; }

.auction-tabs {
  display: flex;
  gap: 18px;
  padding: 12px 16px 4px;
}
.auction-tabs a { color: #9d9da8; font-size: 15px; font-weight: 600; }
.auction-tabs a.is-on { color: #222; font-weight: 800; }
.auction-search { padding: 8px 16px 12px; }
.auction-search input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
}

.quote-list { padding: 0 16px 32px; }
.quote-list h2,
.quote-grid h2,
.quote-mine-bids h2 { margin: 16px 0 10px; font-size: 17px; }

.quote-card {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.quote-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #f3f3f3;
  overflow: hidden;
}
.quote-thumb img { width: 100%; height: 100%; object-fit: contain; }
.quote-body { min-width: 0; flex: 1; }
.quote-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.quote-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ececf1;
  color: #555;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.quote-chip.is-live { background: #111; color: #fff; }
.quote-chip.is-ok,
.quote-chip.is-vin { background: #e8f8ee; color: #1a9c4a; }
.quote-body strong { display: block; margin: 8px 0 4px; font-size: 16px; letter-spacing: -0.03em; }
.quote-spec { margin: 0; color: #8a8a96; font-size: 12px; }
.quote-kicker {
  margin: 10px 0 0;
  color: #8a8a96;
  font-size: 12px;
  font-weight: 700;
}
.quote-price {
  margin: 2px 0 0;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.quote-foot {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  color: #8a8a96;
  font-size: 12px;
  font-weight: 700;
}

.auction-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.auction-back {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.quote-id {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: #fff;
}
.quote-id-photo {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f3f3f3;
  overflow: hidden;
}
.quote-id-photo img { width: 100%; height: 100%; object-fit: contain; }
.quote-id h1 { margin: 6px 0 4px; font-size: 20px; letter-spacing: -0.04em; }
.quote-id p { margin: 0; color: #8a8a96; font-size: 13px; }
.quote-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  background: #fff;
}
.quote-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }

.quote-board {
  margin: 10px 16px;
  padding: 22px 20px;
  border-radius: 20px;
  background: #111;
  color: #fff;
}
.quote-board .quote-kicker { color: #ff8a8d; }
.quote-board-price {
  margin: 4px 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.quote-board-sub { margin: 0; color: #cfcfd4; font-size: 13px; }
.quote-timer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.quote-timer div {
  padding: 10px 0;
  border-radius: 12px;
  background: #1c1c1f;
  text-align: center;
}
.quote-timer b { display: block; font-size: 22px; }
.quote-timer span { color: #9a9aa3; font-size: 11px; font-weight: 700; }
.quote-timer-end { margin: 16px 0 0; font-weight: 800; }

.quote-ranks,
.quote-facts {
  margin: 10px 16px 24px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
}
.page-auction-detail .auction-mobile { padding-bottom: 8px; }
.quote-ranks header,
.quote-facts h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  font-size: 16px;
}
.quote-ranks header span { color: #8a8a96; font-size: 13px; }
.quote-ranks ol { margin: 0; padding: 0; list-style: none; }
.quote-ranks li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f2f2f4;
}
.quote-ranks li:first-child { border-top: 0; }
.quote-ranks em {
  font-style: normal;
  font-weight: 800;
  color: #9d9da8;
}
.quote-ranks li.is-top em { color: var(--brand); }
.quote-ranks li.is-top b { color: var(--brand); font-size: 18px; }
.quote-ranks li.is-chosen { background: #f7f7f8; border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.quote-pick,
.quote-picked { grid-column: 1 / -1; justify-self: end; }
.quote-picked {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}
.quote-pick button {
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.quote-ranks strong { display: block; }
.quote-ranks li span { color: #8a8a96; font-size: 12px; }
.quote-facts ul { margin: 0; padding: 0; list-style: none; }
.quote-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f4;
  font-size: 14px;
}
.quote-facts span { color: #8a8a96; }
.auction-body { margin: 14px 0 0; white-space: pre-wrap; line-height: 1.65; }

.quote-offer-bar {
  position: sticky;
  bottom: 0;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--line);
}
.quote-offer form p,
.quote-offer > p:first-child { margin: 0 0 8px; font-weight: 800; }
.quote-offer label { display: block; font-size: 13px; font-weight: 800; }
.quote-offer input,
.auction-form input:not([type="file"]):not([type="hidden"]):not([type="radio"]),
.auction-form select,
.auction-form textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  font: inherit;
  background: #fff;
}
.quote-offer small { display: block; margin: 6px 0 10px; color: #8a8a96; }
.quote-offer button,
.auction-form button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.auction-hint { color: #777; font-size: 13px; }
.auction-hint a { color: var(--brand); font-weight: 700; }
.auction-cancel {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #333;
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
}
.auction-bid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: #fff;
}
.auction-bid-row span { grid-column: 1 / -1; color: #8a8a8a; font-size: 12px; }
.auction-write { padding: 16px; }
.auction-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}
.auction-form label { font-size: 14px; font-weight: 800; }
.auction-photo-block h2 {
  margin: 0 0 6px;
  font-size: 14px;
}
.auction-form .used-sell-photos { position: relative; }
.auction-form .used-sell-photo-lead { margin: 0 0 10px; color: #9d9da8; font-size: 12px; }
.auction-form .used-sell-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.auction-form .used-sell-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
.auction-form .used-sell-photo-item.is-dragging {
  z-index: 4;
  overflow: visible;
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: grabbing;
}
.auction-form .used-sell-photo-add {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f6f6f8;
  color: #8a8a96;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #ececf1;
  cursor: pointer;
}
.auction-form .used-sell-photo-add.is-hidden { display: none !important; }
.auction-form .used-sell-photos.is-invalid .used-sell-photo-add {
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.auction-form .used-sell-photo-error {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}
.auction-form .used-sell-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.auction-form .used-sell-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.auction-form .used-sell-photo-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.auction-form .used-sell-photo-item em {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}
.auction-form .used-sell-control {
  position: relative;
  display: block;
}
.auction-form .used-sell-control-unit input { padding-right: 52px; margin-top: 6px; }
.auction-doc-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.auction-doc-type label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #fafafa;
  cursor: pointer;
}
.auction-doc-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auction-doc-type label:has(input:checked) {
  background: #111;
  border-color: #111;
  color: #fff;
}
.auction-doc-type small {
  font-size: 12px;
  font-weight: 600;
  color: #8a8a96;
}
.auction-doc-type label:has(input:checked) small { color: #cfcfd4; }
.auction-doc-slots {
  display: grid;
  gap: 14px;
}
.auction-doc-slots .used-sell-photos > p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.auction-form .used-sell-control-unit em {
  position: absolute;
  right: 14px;
  top: calc(50% + 3px);
  transform: translateY(-50%);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #9d9da8;
  pointer-events: none;
}

.quote-deal {
  margin: 10px 16px 24px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
}
.quote-deal h2 { margin: 0 0 10px; font-size: 16px; }
.quote-deal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.quote-deal-form p { margin: 0; font-weight: 800; }
.quote-deal-form label { font-size: 13px; font-weight: 700; }
.quote-deal-form button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.quote-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.quote-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.quote-contact-btn.is-line {
  background: #fff;
  color: #222;
  border: 1px solid var(--line);
}
.quote-review {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f2f2f4;
}
.quote-review strong { display: block; margin-bottom: 6px; }
.quote-review p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.used-phone-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
}
.used-phone-pop[hidden] { display: none; }
.used-phone-pop-card {
  width: min(360px, 100%);
  padding: 28px 24px 20px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.used-phone-pop-card p {
  margin: 0;
  color: #8a8a96;
  font-size: 13px;
  font-weight: 700;
}
.used-phone-pop-card strong {
  display: block;
  margin: 12px 0 20px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.used-phone-pop-card button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

@media (min-width: 1024px) {
  .auction-mobile { display: none !important; }
  .auction-pc { display: block; }
}
