/*
 * BidHarbor calm bidder floor, 2026-08-28.
 *
 * This is the default bidder presentation.  The established floor remains a
 * staff/development rollback door at ?view=current.  Every live-state hook,
 * control ID, bid action, card fragment, and board-loading rule remains owned
 * by watch.html.
 */

html.calm.light {
  --bg: #f8f5ef;
  --card: #fffdf9;
  --ink: #17231f;
  --muted: #66736e;
  --gold: #0a6658;
  --live: #0a6658;
  --warn: #9a6400;
  --closed: #747d79;
  --line: #ddd9cf;
  --field: #fffdf9;
  --fieldline: #c9c5bb;
  --brand-gold: #a57b22;
  --mint: #d9eee8;
  --coral: #e66c4f;
  --media: #f1eee7;
  --calm-positive: #0a6658;
  --calm-negative: #a53d2a;
  --calm-disclosure: #73510d;
  --calm-packaging: #6f461b;
  --calm-packaging-border: #b77a3b;
  --calm-flash: #d9eee8;
}

html.calm:not(.light) {
  --bg: #111a17;
  --card: #18231f;
  --ink: #f4f1e9;
  --muted: #aeb9b4;
  --gold: #69c2af;
  --live: #72c9a2;
  --warn: #e9bc68;
  --closed: #96a09c;
  --line: #30403a;
  --field: #1b2823;
  --fieldline: #40534b;
  --brand-gold: #d2af59;
  --mint: #183c33;
  --coral: #ec826a;
  --media: #0d1512;
  --calm-positive: #72c9a2;
  --calm-negative: #ff9b86;
  --calm-disclosure: #e9bc68;
  --calm-packaging: #f1c88f;
  --calm-packaging-border: #c98f52;
  --calm-flash: #20443a;
}

html.calm body {
  background:
    radial-gradient(circle at 85% 3%, #e8f1ea 0, transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

html.calm:not(.light) body {
  background:
    radial-gradient(circle at 85% 3%, #1a332c 0, transparent 26rem),
    var(--bg);
}

/* One calm navigation bar replaces the current stacked global + auction
   mastheads. All destinations remain available in the global nav. */
html.calm .mast {
  display: none;
}

html.calm .bhnav {
  gap: .25rem;
  padding: .65rem max(1rem, calc((100vw - 1180px) / 2));
  background: var(--card);
  background: color-mix(in srgb, var(--card) 94%, #f8f5ef);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(23, 35, 31, .06);
}

html.calm .bhnav a {
  color: var(--muted);
  border-radius: 999px;
  padding: .43rem .7rem;
  font-size: .82rem;
}

html.calm .bhnav a:hover,
html.calm .bhnav a:focus-visible {
  background: var(--mint);
  color: var(--ink);
}

html.calm .bhnav a.on {
  color: var(--gold);
  background: var(--mint);
  outline: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
}

html.calm .bhnav .calm-brand {
  gap: .65rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 850;
  letter-spacing: -.03em;
  padding: .2rem .7rem .2rem .15rem;
}

html.calm .bhnav .calm-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border-radius: 10px;
  background: #0a6658;
  color: #fff;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 850;
  letter-spacing: 0;
}

html.calm:not(.light) .bhnav .calm-brand .brand-mark {
  background: #69c2af;
  color: #111a17;
}

html.calm .bhnav .cta {
  background: var(--gold);
  color: #fffdf9 !important;
}

html.calm:not(.light) .bhnav .cta {
  color: #111a17 !important;
}

html.calm .bhnav-menu {
  position: relative;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}

html.calm .bhnav-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .4rem .7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

html.calm .bhnav-menu summary::-webkit-details-marker {
  display: none;
}

html.calm .bhnav-menu summary::after {
  content: "⌄";
  margin-left: .35rem;
  color: var(--gold);
  font-size: .7rem;
}

html.calm .bhnav-menu summary:hover,
html.calm .bhnav-menu summary:focus-visible,
html.calm .bhnav-menu[open] summary {
  color: var(--ink);
  background: var(--mint);
  border-color: color-mix(in srgb, var(--gold) 25%, var(--line));
}

html.calm .bhnav-account-menu summary {
  border-color: var(--line);
  color: var(--ink);
}

html.calm .bhnav-dropdown {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  z-index: 120;
  display: grid;
  min-width: 190px;
  padding: .4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(23, 35, 31, .18);
}

html.calm .bhnav-dropdown a,
html.calm .bhnav-dropdown button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: .55rem .65rem;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

html.calm .bhnav-dropdown button:hover,
html.calm .bhnav-dropdown button:focus-visible,
html.calm .bhnav-dropdown a:hover,
html.calm .bhnav-dropdown a:focus-visible {
  color: var(--ink);
  background: var(--mint);
}

/* A teal ring clears WCAG's 3:1 focus-indicator threshold in both calm
   palettes. It intentionally replaces the Ryzen amber ring, which does not
   contrast sufficiently against the source cream background. */
html.calm :where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 3px !important;
}

/* Auction introduction: generous breathing room, no second sticky overlay. */
html.calm header.auction-intro {
  position: static;
  padding: 1.15rem 1rem .9rem;
  transform: none !important;
  background: transparent;
  border-bottom: 0;
}

html.calm header.auction-intro .hwrap {
  max-width: 1180px;
}

html.calm header.auction-intro .kicker {
  margin-bottom: .4rem;
  color: var(--brand-gold);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .19em;
}

html.calm header.auction-intro h1 {
  max-width: 880px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.12;
}

html.calm header.auction-intro p:not(.kicker) {
  max-width: 1000px;
  margin-top: .55rem;
  color: var(--muted);
  line-height: 1.55;
}

html.calm header.auction-intro .ctlrow {
  margin-top: .7rem;
}

html.calm header.auction-intro .ctlrow button {
  min-height: 36px;
  border-color: var(--line) !important;
  color: var(--muted) !important;
  background: var(--card) !important;
  box-shadow: 0 1px 2px rgba(23, 35, 31, .04);
}

html.calm header.auction-intro .ctlrow #alerts {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line)) !important;
  color: var(--gold) !important;
}

html.calm header.auction-intro .ctlrow #themebtn {
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, var(--line)) !important;
  color: var(--ink) !important;
  font-weight: 750;
}

html.calm header.auction-intro .ctlrow #themebtn #themeicon {
  color: var(--gold);
  font-size: 1rem;
}

html.calm .floor-announcements {
  max-width: 1180px !important;
  margin-top: .4rem !important;
}

html.calm header.auction-intro a[href^="/accounts/register/"] {
  color: #fffdf9 !important;
  background: var(--gold) !important;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--gold) 18%, transparent);
}

html.calm header.auction-intro a[href^="/accounts/login/"] {
  color: var(--gold) !important;
}

/* Search, category and sort stay visible. Less-used controls retain their
   original IDs and behavior behind one disclosure. */
html.calm .browse-toolbar {
  display: grid !important;
  grid-template-columns: minmax(17rem, 1fr) auto auto auto;
  gap: .65rem !important;
  align-items: center !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: .75rem !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 35, 31, .055);
}

html.calm .browse-toolbar .lot-search {
  min-width: 0;
}

html.calm .browse-toolbar input,
html.calm .browse-toolbar select {
  min-height: 44px;
  border: 1px solid var(--fieldline) !important;
  border-radius: 9px !important;
  background: var(--field) !important;
  color: var(--ink) !important;
}

html.calm .browse-toolbar input:focus,
html.calm .browse-toolbar select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent);
}

html.calm .more-filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--gold);
  background: var(--card);
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

html.calm .more-filters-toggle[aria-expanded="true"] {
  color: #fffdf9;
  background: var(--gold);
  border-color: var(--gold);
}

html.calm:not(.light) .more-filters-toggle[aria-expanded="true"] {
  color: #111a17;
}

html.calm .browse-toolbar:not(.show-more) .calm-secondary-filter {
  display: none !important;
}

html.calm .browse-toolbar.show-more .calm-secondary-filter {
  display: flex !important;
  grid-row: 2;
}

html.calm .browse-toolbar.show-more select.calm-secondary-filter {
  display: block !important;
}

html.calm .browse-toolbar #mybar,
html.calm .browse-toolbar #resultcount,
html.calm .browse-toolbar #jumpstatus:not(:empty) {
  color: var(--muted) !important;
  font-size: .78rem !important;
}

html.calm .standing-toolbar {
  max-width: 1180px !important;
  padding: .7rem .1rem .1rem !important;
  gap: .4rem !important;
}

html.calm .standing-toolbar .fchip {
  min-height: 44px;
  padding: .55rem .72rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font-weight: 650;
}

html.calm .standing-toolbar .fchip.active {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
  color: var(--gold);
  background: var(--mint);
}

/* Three calm columns on a typical laptop, two on a tablet, one on a phone. */
html.calm main.auction-grid {
  max-width: 1180px;
  padding: 1rem .75rem 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

html.calm .lot {
  overflow: hidden;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 8px 26px rgba(23, 35, 31, .065);
}

html.calm .lot:hover {
  border-color: color-mix(in srgb, var(--gold) 28%, var(--line));
}

html.calm .lot.winning {
  border-width: 2px;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--mint), var(--card) 32%);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--gold) 12%, transparent);
}

html.calm .lot.losing {
  border-width: 2px;
  border-color: var(--coral);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--coral) 10%, var(--card)), var(--card) 28%);
  box-shadow: 0 8px 26px color-mix(in srgb, var(--coral) 10%, transparent);
}

html.calm .lot.standing-won {
  border-width: 2px;
  border-color: var(--brand-gold);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-gold) 14%, var(--card)), var(--card) 30%);
}

html.calm .lot.standing-lost {
  border-width: 2px;
  border-color: var(--closed);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--closed) 8%, var(--card)), var(--card) 28%);
}

html.calm .lot.standing-no-sale {
  border-width: 2px;
  border-color: var(--warn);
}

html.calm .lot[data-bought="1"] {
  border-color: #3e7cb1;
  background: linear-gradient(180deg,
    color-mix(in srgb, #3e7cb1 12%, var(--card)), var(--card) 30%);
}

html.calm .lot.sponsor {
  border-color: color-mix(in srgb, var(--brand-gold) 55%, var(--line));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-gold) 7%, var(--card)), var(--card) 35%);
  box-shadow: none;
}

html.calm .lot img[id^="img-"],
html.calm .lot video.tilevid {
  border-radius: 11px !important;
  background: var(--media) !important;
}

html.calm .lot .imgbadge {
  right: 7px !important;
  bottom: 7px !important;
  color: #f8f5ef !important;
  background: rgba(23, 35, 31, .82) !important;
  font-size: .68rem !important;
}

/* The video label is an unclassed sibling in the established card markup.
   Keep its default bytes untouched and repair only the calm presentation. */
html.calm .lot video.tilevid + span {
  color: #fffdf9 !important;
  background: rgba(17, 26, 23, .92) !important;
}

html.calm .chip {
  margin-bottom: .4rem;
  padding: .16rem .48rem;
  border-width: 1px;
  font-size: .63rem;
  letter-spacing: .035em;
}

html.calm .lot > .chip {
  align-self: flex-start;
}

html.calm .chip.live {
  border-color: color-mix(in srgb, var(--gold) 25%, var(--mint));
  color: var(--gold);
  background: var(--mint);
}

html.calm .chip.extended,
html.calm .chip.soon {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, var(--card));
}

html.calm .chip.closed {
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 9%, var(--card));
}

html.calm .chip.sponsorchip,
html.calm .chip.standing-win {
  color: #2a2009;
  background: #e8c76b;
  border-color: #e8c76b;
}

/* Retail-box wear is a bidder decision, not decorative metadata. Keep this
   refined disclosure distinct from item condition and standing colors; the
   explicit label makes its meaning independent of hue. */
html.calm .lot .packaging-warning {
  padding: .22rem .55rem;
  border-color: var(--calm-packaging-border) !important;
  color: var(--calm-packaging) !important;
  background: color-mix(in srgb,
    var(--calm-packaging-border) 13%, var(--card)) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb,
    var(--calm-packaging-border) 9%, transparent);
  font-size: .66rem;
}

html.calm .lot h2 {
  min-height: 0;
  margin: .1rem 0 .4rem;
  font-size: 1.05rem;
  line-height: 1.34;
}

html.calm .lot h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html.calm .lot h2 + p {
  margin-bottom: .45rem !important;
  color: var(--muted) !important;
  font-size: .79rem !important;
  font-weight: 600 !important;
}

html.calm .listing-gateway {
  margin: .25rem 0 .75rem;
  padding: .35rem 0;
  border-top-color: var(--line);
  color: var(--gold);
  font-size: .72rem;
}

html.calm .row {
  align-items: end;
  padding-top: .15rem;
}

html.calm .price,
html.calm .clock {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -.02em;
}

html.calm .price small,
html.calm .clock small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
}

/* The compact phase sits under the close clock, opposite retail, so the
   bidder sees standing in the same decision zone as the next action. */
html.calm .offer {
  align-items: flex-start;
}

html.calm .offer-actions {
  max-width: 72%;
}

html.calm .standing-phase {
  border-width: 1px;
  font-size: .64rem;
}

html.calm .standing-phase.leading {
  border-color: color-mix(in srgb, var(--calm-positive) 48%, var(--line));
  color: var(--calm-positive);
  background: var(--mint);
}

html.calm .standing-phase.outbid {
  border-color: color-mix(in srgb, var(--calm-negative) 58%, var(--line));
  color: var(--calm-negative);
  background: color-mix(in srgb, var(--coral) 9%, var(--card));
}

html.calm .standing-phase.won {
  border-color: color-mix(in srgb, var(--brand-gold) 55%, var(--line));
  color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold) 10%, var(--card));
}

html.calm .standing-phase.lost,
html.calm .standing-phase.no-sale {
  border-color: var(--line);
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 8%, var(--card));
}

/* Bid outcomes are auction-critical text. The base page's pale literals are
   correct on dark, but calm makes light the first view, so its stylesheet owns
   a theme-safe override while leaving the established response unchanged. */
html.calm .note:not(:empty),
html.calm .note > span[style*="color:#fff"] {
  color: var(--ink) !important;
}

html.calm .bid-outcome {
  border-color: var(--line);
  border-left-width: 4px;
  background: color-mix(in srgb, var(--field) 96%, var(--bg));
  box-shadow: 0 3px 10px rgba(23, 35, 31, .045);
}

html.calm .bid-outcome--leading,
html.calm .bid-outcome--protected {
  border-left-color: var(--calm-positive);
  background: color-mix(in srgb, var(--mint) 54%, var(--card));
}

html.calm .bid-outcome--outbid {
  border-left-color: var(--calm-negative);
  background: color-mix(in srgb, var(--coral) 8%, var(--card));
}

html.calm .bid-outcome--pending {
  border-left-color: var(--brand-gold);
}

html.calm .bid-outcome--error,
html.calm .bid-outcome--action {
  border-left-color: var(--warn);
}

html.calm .bid-outcome--won {
  border-left-color: var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold) 9%, var(--card));
}

html.calm.light .note a[style*="background:var(--gold)"] {
  color: #fffdf9 !important;
}

html.calm #mybar span[style*="color:#f0a0a0"] {
  color: var(--calm-negative) !important;
}

html.calm #mybar span[style*="color:#8fd0a8"] {
  color: var(--calm-positive) !important;
}

html.calm .flash {
  animation: calm-price-flash 1s ease-out !important;
}

@keyframes calm-price-flash {
  0% {
    background: var(--calm-flash);
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }
  100% {
    background: var(--card);
    outline: 0 solid transparent;
    outline-offset: 0;
  }
}

html.calm .bidbtn {
  min-height: 48px;
  margin-top: .7rem;
  border-radius: 10px;
  color: #fffdf9;
  background: var(--gold);
  font-weight: 750;
  box-shadow: 0 3px 9px color-mix(in srgb, var(--gold) 18%, transparent);
}

html.calm:not(.light) .bidbtn {
  color: #111a17;
}

html.calm .bidbtn:hover:not(:disabled) {
  filter: brightness(.93);
}

html.calm .bidbtn:disabled {
  color: var(--closed);
  background: color-mix(in srgb, var(--closed) 14%, var(--card));
  box-shadow: none;
}

html.calm .dock,
html.calm .claim {
  min-height: 44px;
  border-width: 1px;
  font-weight: 650;
}

html.calm .dock {
  border-color: var(--line);
}

html.calm .dock.on {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--mint);
}

html.calm a {
  color: var(--gold);
}

html.calm .sponsortile {
  grid-column: 1 / -1;
  flex-direction: row !important;
  align-items: center;
  gap: 1rem;
  min-height: 0 !important;
  padding: .75rem 1rem !important;
  border-color: color-mix(in srgb, var(--brand-gold) 45%, var(--line)) !important;
  box-shadow: none;
}

html.calm .sponsortile img {
  max-width: 160px !important;
  max-height: 52px !important;
  margin: 0 !important;
}

html.calm .rolling-pager button {
  border: 1px solid var(--gold);
  color: #fffdf9;
  background: var(--gold);
}

html.calm:not(.light) .rolling-pager button {
  color: #111a17;
}

html.calm:not(.light) header.auction-intro a[href^="/accounts/register/"] {
  color: #111a17 !important;
}

html.calm #board-completeness span {
  border-color: var(--line) !important;
}

/* The shareable lot listing is the second half of the bidder journey. It
   shares the calm tokens and preference without changing any of its bid,
   countdown, polling, socket, or catalog-truth hooks. */
html.calm .lot-return-bar {
  position: static;
  padding: .7rem max(1rem, calc((100vw - 900px) / 2));
  background: color-mix(in srgb, var(--card) 96%, var(--bg));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(23, 35, 31, .05);
}

html.calm .lot-return-bar > span,
html.calm .lot-detail-tools {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

html.calm .lot-return-bar a {
  color: var(--gold);
  font-weight: 750;
}

html.calm .lot-return-bar #themebtn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: .42rem .72rem;
  border: 1.5px solid var(--brand-gold);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

html.calm main.lot-detail {
  width: calc(100% - 2rem);
  max-width: 900px;
  margin: 1rem auto 2rem;
  padding: clamp(.85rem, 2.5vw, 1.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(23, 35, 31, .08);
}

html.calm main.lot-detail h1 {
  margin-top: 1.15rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
}

html.calm main.lot-detail .hero {
  background: var(--media);
  border: 1px solid var(--line);
}

html.calm main.lot-detail .thumbs img {
  background: var(--media);
}

html.calm main.lot-detail .desc,
html.calm main.lot-detail .note {
  color: var(--ink);
}

html.calm main.lot-detail input {
  border-color: var(--fieldline);
  background: var(--field);
  color: var(--ink);
}

html.calm main.lot-detail .secondary {
  background: var(--card);
}

html.calm:not(.light) main.lot-detail {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
}

/* Preserve calm three-column scanning on ordinary desktops, then recover a
   fourth column only when the viewport can keep every card comfortably wide. */
@media (min-width: 1400px) {
  html.calm .bhnav {
    padding-inline: max(1rem, calc((100vw - 1320px) / 2));
  }

  html.calm header.auction-intro .hwrap,
  html.calm .browse-toolbar,
  html.calm .standing-toolbar,
  html.calm .floor-announcements,
  html.calm main.auction-grid {
    max-width: 1320px !important;
  }

  html.calm main.auction-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  html.calm .browse-toolbar {
    grid-template-columns: minmax(15rem, 1fr) 1fr 1fr;
  }

  html.calm .browse-toolbar .lot-search {
    grid-column: 1 / -1;
  }

  html.calm .more-filters-toggle {
    grid-column: 3;
  }

  html.calm .browse-toolbar.show-more .calm-secondary-filter {
    grid-row: auto;
  }
}

@media (max-width: 1100px) {
  html.calm .bhnav-menu[open] .bhnav-dropdown {
    position: fixed;
    top: calc(var(--bhnav-height, 49px) + .4rem);
    right: .6rem;
  }
}

@media (max-width: 640px) {
  html.calm .bhnav {
    padding: .45rem .55rem;
  }

  html.calm .bhnav a,
  html.calm .bhnav-menu summary,
  html.calm header.auction-intro .ctlrow button {
    min-height: 44px;
  }

  html.calm header.auction-intro {
    padding: 1.1rem .75rem .9rem;
  }

  html.calm header.auction-intro h1 {
    font-size: 1.55rem;
  }

  html.calm .browse-toolbar {
    grid-template-columns: 1fr 1fr;
    margin: 0 .5rem !important;
    padding: .6rem !important;
    gap: .5rem !important;
  }

  html.calm .browse-toolbar .lot-search {
    grid-column: 1 / -1;
    flex-basis: auto;
  }

  html.calm .browse-toolbar .primary-filter,
  html.calm .more-filters-toggle {
    width: 100%;
  }

  html.calm .more-filters-toggle {
    grid-column: auto;
  }

  html.calm .browse-toolbar.show-more .calm-secondary-filter {
    grid-column: 1 / -1;
  }

  html.calm .standing-toolbar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    margin: 0 .5rem !important;
    padding: .65rem 0 .1rem !important;
    scrollbar-width: none;
  }

  html.calm .standing-toolbar::-webkit-scrollbar {
    display: none;
  }

  html.calm .standing-toolbar .fchip {
    flex: 0 0 auto;
  }

  html.calm main.auction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem !important;
    padding: .65rem .5rem 1rem !important;
  }

  html.calm .lot {
    padding: .75rem;
    border-radius: 14px;
  }

  html.calm .sponsortile {
    flex-direction: column !important;
  }

  html.calm .lot-return-bar {
    align-items: flex-start !important;
    padding: .65rem .6rem !important;
  }

  html.calm .lot-return-bar > span,
  html.calm .lot-detail-tools {
    width: 100%;
  }

  html.calm main.lot-detail {
    width: calc(100% - .9rem);
    margin: .55rem .45rem 1.25rem;
    padding: .75rem;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.calm .flash {
    animation: none !important;
    background: var(--calm-flash) !important;
    outline: 3px solid var(--gold);
    outline-offset: -3px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.calm .lot,
  html.calm .bidbtn,
  html.calm .more-filters-toggle {
    transition: border-color .16s ease, background-color .16s ease,
      box-shadow .16s ease, filter .16s ease;
  }
}
