/* Server auction history: a public record beside the current auction floor. */
.auction-currency-tag {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  border: 1px solid #d8bc8050; border-radius: 5px; padding: 5px 7px;
  color: #e2c990; background: #d8bc800a; font: 500 9px/1.25 var(--sans);
  white-space: nowrap; vertical-align: middle;
}
.auction-currency-tag .icon { width: 12px; height: 12px; flex: 0 0 12px; }
.auction-currency-tag.zeny { color: #b2d7c5; border-color: #8bcba140; background: #8bcba10a; }
.auction-currency-tag.unknown { color: #a5b2c4; border-color: #a5b2c430; background: #a5b2c408; }
.auction-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.auction-card-heading .item-card-type { margin: 0; }
.auction-tax-summary { display: grid; gap: 5px; color: var(--faint); font-size: 10px; line-height: 1.65; margin-top: 8px; font-variant-numeric: tabular-nums; }
.auction-tax-summary strong { color: var(--ivory); font-size: 12px; font-weight: 500; }
.auction-card .auction-clock { max-width: calc(100% - 24px); font-size: 9px; text-align: center; line-height: 1.5; }
.auction-tabs { margin-bottom: 20px; }
.auction-tabs .tab { white-space: nowrap; }
.auction-policy-strip { align-items: flex-start; }
.auction-seller-list { display: grid; gap: 20px; min-width: 0; }
.auction-seller-card { min-width: 0; padding: 24px; }
.auction-seller-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.auction-seller-heading .table-item { min-width: 0; align-items: center; }
.auction-seller-heading .table-item > div { min-width: 0; }
.auction-seller-heading .table-item > .item-art { flex: 0 0 54px; }
.auction-seller-heading h2 { font: 500 27px/1.15 var(--serif); overflow-wrap: anywhere; }
.auction-seller-heading .table-item span { display: block; color: var(--faint); font-size: 9px; line-height: 1.7; margin-top: 7px; }
.auction-seller-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.auction-seller-tags .badge { font-size: 8px; }
.auction-seller-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin: 22px 0; }
.auction-seller-facts > div { min-width: 0; display: grid; gap: 7px; align-content: start; }
.auction-seller-facts span, .auction-seller-facts small { color: var(--faint); font-size: 9px; line-height: 1.6; }
.auction-seller-facts strong { color: var(--ivory); font-size: 12px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.auction-seller-facts > div:first-child strong { font-size: 18px; color: var(--gold-light); }
.auction-proceeds-summary { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border: 1px solid #d8bc8025; border-radius: 6px; background: #d8bc8006; margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.85; }
.auction-proceeds-summary .icon { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; color: var(--gold); }
.auction-seller-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.auction-seller-actions .btn { font-size: 10px; padding: 9px 12px; }
.auction-seller-empty p { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 14px 0 22px; }
.large-item .auction-currency-tag { margin-bottom: 10px; }
.large-item .auction-currency-tag ~ small { display: block; margin-top: 10px; }
.listing-draft-estimate > .auction-currency-tag { margin-bottom: 12px; }
.auction-history-card-labels { display: flex; margin: 12px 0 -2px; }
.auction-history-card-labels .auction-currency-tag { padding: 4px 6px; font-size: 8px; }
.auction-history-card-labels .auction-currency-tag .icon { width: 10px; height: 10px; flex-basis: 10px; }
.auction-history-fees { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 15px 3px 0; font-size: 10px; color: var(--faint); }
.auction-history-fees > span { display: grid; gap: 6px; }
.auction-history-fees strong { font-size: 12px; font-weight: 500; color: var(--ivory); }
.auction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}
.auction-main { min-width: 0; }
.auction-main .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auction-history-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 9px 0 2px; margin-top: 7px; background: transparent;
  color: #9dacc1; font-size: 10px;
}
.auction-history-link .icon { width: 13px; height: 13px; }
.auction-history-link:hover { color: var(--gold); }
.auction-history-link:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.auction-history-sidebar {
  position: sticky;
  top: 108px;
  min-width: 0;
  border: 1px solid #b7a37330;
  border-radius: 11px;
  background: radial-gradient(ellipse at 15% 0, #d7b7770c, transparent 65%), #0e1928;
  overflow: hidden;
  box-shadow: 0 15px 45px #03091125;
}
.auction-history-heading { display: flex; gap: 12px; align-items: center; padding: 22px 21px 0; }
.auction-history-emblem {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border: 1px solid #d7ba7d38; border-radius: 50%; color: var(--gold); background: #d7ba7d07;
}
.auction-history-emblem .icon { width: 18px; height: 18px; }
.auction-history-heading .eyebrow { font-size: 7px; letter-spacing: .17em; margin: 0 0 7px; }
.auction-history-heading h2 { font: 29px/1.03 var(--serif); font-weight: 500; margin: 0; color: #e7ddc8; }
.auction-history-intro { font-size: 10px; line-height: 1.65; color: #93a2b7; margin: 14px 22px 18px; }
.auction-history-tools { padding: 0 18px 12px; }
.auction-history-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid #a9bfdc22;
  border-radius: 6px; padding: 0 10px; margin-bottom: 0; background: #08121e;
}
.auction-history-search .icon { width: 14px; height: 14px; flex-shrink: 0; color: #899aaf; }
.auction-history-search input {
  width: 100%; min-width: 0; border: 0; border-radius: 0; outline: none;
  background: transparent; padding: 10px 0; min-height: 36px; color: #dce2eb; font-size: 10px;
}
.auction-history-search:focus-within { outline: 1px solid #d9be8070; border-color: #d9be8070; }
.auction-history-search input::placeholder { color: #7f90a8; }
.auction-history-sort { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.auction-history-sort > span { color: #9aa9bc; font-size: 9px; }
.auction-history-sort label, .auction-bid-heading label { margin-bottom: 0; }
.auction-history-sort select, .auction-bid-heading select {
  color: #b8c3d3; border: 1px solid #a9bfdc20; background: #0c1725;
  padding: 6px 8px; min-height: 30px; width: auto; font-size: 9px; border-radius: 5px; max-width: 130px;
}
.auction-history-scroll {
  max-height: min(600px, calc(100dvh - 385px)); min-height: 230px;
  overflow-y: scroll; overscroll-behavior-y: contain;
  padding: 0 12px 7px 17px; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: #ae9563 #08121f;
}
.auction-history-scroll::-webkit-scrollbar { width: 6px; }
.auction-history-scroll::-webkit-scrollbar-track { background: #08121f; border-radius: 6px; }
.auction-history-scroll::-webkit-scrollbar-thumb { background: #ae9563; border-radius: 6px; }
.auction-history-scroll:focus-visible { outline: 1px solid #d8bc8080; outline-offset: -2px; }
.auction-history-card {
  display: block; width: 100%; text-align: left; color: var(--ink); background: #111f30;
  border: 1px solid #a9bfdc1a; border-radius: 7px; padding: 15px 13px 11px; margin-bottom: 10px;
  transition: border-color .18s ease, background .18s ease;
}
.auction-history-card:hover { border-color: #d7ba7d70; background: #162536; }
.auction-history-card:focus-visible { outline: 2px solid #d8bc80; outline-offset: 2px; }
.auction-history-item { display: flex; align-items: center; gap: 9px; }
.auction-history-item > .item-art { width: 37px; height: 37px; flex: 0 0 37px; }
.auction-history-item > span { min-width: 0; flex: 1; }
.auction-history-item strong { display: block; font: 21px/1.1 var(--serif); font-weight: 500; overflow-wrap: anywhere; }
.auction-history-item small { display: block; margin-top: 6px; color: #8799b0; font-size: 8px; }
.auction-history-item > .icon { width: 13px; height: 13px; flex-shrink: 0; color: #c5aa76; }
.auction-history-winner { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 16px 0 12px; }
.auction-history-winner > span { min-width: 0; }
.auction-history-winner > span:last-child { text-align: right; }
.auction-history-winner small { display: block; font-size: 8px; color: #889ab2; margin-bottom: 5px; }
.auction-history-winner strong { display: block; font-size: 11px; font-weight: 500; color: #d6c292; overflow-wrap: anywhere; }
.auction-history-winner > span:first-child strong { color: #d9e1ed; }
.auction-history-date { display: flex; gap: 5px; align-items: flex-start; color: #90a2b9; font-size: 8px; line-height: 1.6; }
.auction-history-date .icon { width: 11px; height: 11px; flex: 0 0 11px; margin-top: 1px; }
.auction-history-card-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #a9bfdc12; margin-top: 11px; padding-top: 9px; font-size: 8px; color: #95a5ba; }
.auction-history-card-foot > span:last-child { text-align: right; }
.auction-history-footer { display: flex; gap: 9px; align-items: flex-start; padding: 15px 20px; border-top: 1px solid #a9bfdc17; background: #0b1523; }
.auction-history-footer .icon { width: 14px; height: 14px; flex: 0 0 14px; color: #b49d71; margin-top: 2px; }
.auction-history-footer p { font-size: 9px; color: #b3bfd0; line-height: 1.7; }
.auction-history-footer span { color: #7f91a9; font-size: 8px; }
.auction-history-empty { text-align: center; padding: 35px 13px; }
.auction-history-empty > .icon { margin-bottom: 12px; color: #c0a773; }
.auction-history-empty h3 { font: 26px var(--serif); font-weight: 500; }
.auction-history-empty p { font-size: 10px; color: #8e9fb5; line-height: 1.8; margin-top: 10px; }

/* Read-only auction detail and immutable bid timeline. */
.auction-history-detail { min-width: 0; }
.auction-history-detail .large-item { padding: 16px 18px; }
.auction-history-detail .large-item > .item-art { flex-shrink: 0; }
.auction-history-detail .large-item .eyebrow { font-size: 8px; display: block; margin: 0 0 8px; }
.auction-history-detail .large-item h3 { font-size: 30px; line-height: 1.12; margin-bottom: 7px; }
.auction-history-detail .large-item small { font-size: 10px; }
.auction-history-result { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 21px 24px; border: 1px solid #d5b57738; border-radius: 8px; background: linear-gradient(105deg, #d5b5770d, #d5b57703); }
.auction-history-result > div:last-child { text-align: right; }
.auction-history-result span { display: block; font-size: 10px; color: #a8b5c6; margin-bottom: 6px; }
.auction-history-result strong { font: 30px/1.18 var(--serif); font-weight: 500; color: #e3cd9b; overflow-wrap: anywhere; }
.auction-history-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; margin: 25px 0; }
.auction-history-facts dt { font-size: 9px; color: #879ab2; margin-bottom: 7px; }
.auction-history-facts dd { font-size: 11px; color: #d0dae7; line-height: 1.7; margin: 0; }
.auction-history-identity { overflow-wrap: anywhere; color: #a5b6ca !important; font-size: 10px !important; }
.auction-history-timing-note { padding: 12px 14px; background: #d5b57708; border-left: 2px solid #c6a96d70; font-size: 10px !important; margin: 5px 0 18px; }
.auction-history-coverage { display: flex; align-items: flex-start; gap: 11px; border-top: 1px solid #a9bfdc22; border-bottom: 1px solid #a9bfdc22; padding: 16px 0; margin-bottom: 25px; }
.auction-history-coverage > .icon { color: var(--green); width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.auction-history-coverage.partial > .icon { color: var(--gold); }
.auction-history-coverage strong { font-size: 11px; font-weight: 500; color: #c7d5e3; }
.auction-history-coverage p { font-size: 10px !important; margin: 4px 0 0; line-height: 1.8; }
.auction-bid-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; }
.auction-bid-heading .eyebrow { font-size: 8px; margin: 0 0 7px; }
.auction-bid-heading h3 { font: 29px/1.12 var(--serif); font-weight: 500; }
.auction-bid-heading select { font-size: 10px; padding: 8px; }
.auction-bid-timeline { list-style: none; margin: 0; padding: 0; }
.auction-bid-timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 13px; padding: 17px 9px 17px 3px; border-bottom: 1px solid #a9bfdc14; position: relative; }
.auction-bid-timeline li::before { content: ''; position: absolute; top: 26px; bottom: -24px; left: 8px; width: 1px; background: #a9bfdc20; }
.auction-bid-timeline li:last-child::before { display: none; }
.auction-bid-dot { width: 7px; height: 7px; border: 1px solid #8b9eb5; border-radius: 50%; background: #101c2c; margin: 5px 0 0 2px; position: relative; z-index: 1; }
.auction-bid-final .auction-bid-dot { background: #d8bc80; border-color: #e1c991; box-shadow: 0 0 10px #d8bc8040; }
.auction-bid-person strong { display: block; font-size: 12px; font-weight: 500; color: #d7e0eb; overflow-wrap: anywhere; }
.auction-bid-person small { display: block; margin-top: 6px; font-size: 9px; color: #8ea1ba; line-height: 1.7; }
.auction-bid-price { text-align: right; }
.auction-bid-price strong { display: block; font-size: 12px; font-weight: 500; color: #cad6e4; }
.auction-bid-price span { display: block; font-size: 8px; color: #d5bb83; margin-top: 6px; }
.auction-bid-final .auction-bid-price strong { color: #e0c792; }
.auction-history-detail-note { font-size: 10px !important; color: #879ab3 !important; border-top: 1px solid #a9bfdc16; padding-top: 17px; margin-top: 24px; }

@media (max-width: 1100px) {
  .auction-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .auction-history-heading { padding-left: 18px; padding-right: 18px; gap: 10px; }
  .auction-history-heading h2 { font-size: 27px; }
  .auction-history-scroll { padding-left: 13px; padding-right: 9px; }
  .auction-history-winner strong { font-size: 10px; }
  .auction-main .auction-clock { font-size: 9px; padding: 5px 8px; }
  .auction-main .auction-clock .muted { display: none; }
}
@media (max-width: 900px) {
  .auction-layout { grid-template-columns: minmax(0, 1fr); }
  .auction-history-sidebar { position: static; margin-top: 5px; }
  .auction-history-heading h2 { font-size: 30px; }
  .auction-history-heading .eyebrow { font-size: 8px; }
  .auction-history-scroll { max-height: 550px; min-height: 0; padding: 0 17px 7px; }
  .auction-history-card { padding: 17px; }
  .auction-history-item strong { font-size: 23px; }
  .auction-history-winner strong { font-size: 12px; }
  .auction-history-date, .auction-history-card-foot { font-size: 9px; }
}
@media (max-width: 560px) {
  .auction-seller-card { padding: 18px; }
  .auction-seller-heading { flex-wrap: wrap; gap: 14px; padding-bottom: 16px; }
  .auction-seller-tags { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .auction-seller-heading h2 { font-size: 26px; }
  .auction-seller-facts { gap: 18px; }
  .auction-seller-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .auction-seller-actions .btn { width: 100%; }
  .auction-currency-tag { font-size: 9px; }
  .auction-main .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .auction-main .auction-card .item-card-art { height: 170px; }
  .auction-main .auction-card .item-card-body { padding: 20px; }
  .auction-main .auction-card h3 { font-size: 28px; }
  .auction-main .auction-bids { font-size: 10px; }
  .auction-history-heading { padding-top: 21px; }
  .auction-history-heading h2 { font-size: 29px; }
  .auction-history-scroll { padding-left: 12px; padding-right: 8px; max-height: 510px; }
  .auction-history-card { padding: 16px 13px; }
  .auction-history-result { padding: 18px; gap: 12px; }
  .auction-history-result strong { font-size: 25px; }
  .auction-history-facts { gap: 19px 15px; }
  .auction-history-facts dd { font-size: 10px; }
  .auction-history-detail .large-item { padding: 14px; gap: 12px; }
  .auction-history-detail .large-item > .item-art { width: 50px; height: 50px; }
  .auction-history-detail .large-item h3 { font-size: 26px; }
  .auction-bid-heading { flex-wrap: wrap; align-items: flex-start; }
  .auction-bid-heading h3 { font-size: 27px; }
  .auction-bid-timeline li { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 9px; }
  .auction-bid-person strong, .auction-bid-price strong { font-size: 11px; }
  .auction-bid-person small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .auction-history-card { transition: none; }
}
