body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.card {
  width: 100%;
  max-width: 760px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: 38px;
}

.status {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-weight: bold;
}

.details {
  margin-top: 28px;
  line-height: 1.8;
  color: #555;
}

@media (max-width: 600px) {
  .card {
    padding: 28px 20px;
  }

  h1 {
    font-size: 30px;
  }
}

.site-header {
  background: #111827;
  color: white;
}

.site-header__inner,
.site-footer__inner,
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: white;
}

.page-shell {
  padding-top: 56px;
  padding-bottom: 64px;
}

.page-heading {
  margin-bottom: 34px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 54px);
}

.page-heading p {
  max-width: 760px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  margin-bottom: 8px;
  color: #166534 !important;
  font-size: 14px !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.auction-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.auction-card h2 {
  margin: 18px 0;
  font-size: 26px;
  line-height: 1.25;
}

.auction-card p {
  color: #4b5563;
  line-height: 1.5;
}

.auction-card__status {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 8px;
  background: #111827;
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: #374151;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: white;
}

.site-footer__inner {
  padding-top: 24px;
  padding-bottom: 24px;
  color: #6b7280;
}

@media (max-width: 720px) {
  .site-header__inner {
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .auction-grid {
    grid-template-columns: 1fr;
  }
}

.auction-detail {
  max-width: 980px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.auction-detail h1 {
  max-width: 850px;
  margin: 18px 0 22px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.08;
}

.auction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 24px;
  color: #4b5563;
}

.auction-meta p {
  margin: 0;
}

.auction-description {
  max-width: 780px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.7;
}

.lot-section {
  margin-top: 52px;
}

.lot-section h2 {
  margin-bottom: 22px;
  font-size: 32px;
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lot-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.lot-card h3 {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.3;
}

.lot-card p {
  color: #6b7280;
  line-height: 1.5;
}

.lot-number {
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .lot-grid {
    grid-template-columns: 1fr;
  }
}

.admin-form-shell {
  max-width: 760px;
}

.admin-form-shell h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 54px);
}

.admin-intro {
  margin-bottom: 30px;
  color: #4b5563;
  font-size: 18px;
}

.admin-form {
  display: grid;
  gap: 22px;
  padding: 30px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #111827;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-row input {
  width: auto;
}

.form-error {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
}

.admin-summary {
  margin: 28px 0;
  padding: 24px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.admin-summary p {
  margin: 10px 0;
  color: #4b5563;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-secondary {
  background: #4b5563;
}

.admin-section {
  margin-top: 48px;
}

.admin-section h2 {
  margin-bottom: 22px;
  font-size: 30px;
}

.admin-lot-list {
  display: grid;
  gap: 14px;
}

.admin-lot-row {
  padding: 18px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.admin-lot-row p {
  margin: 8px 0 0;
  color: #6b7280;
}

.admin-small-button {
  margin-top: 10px;
  padding: 8px 13px;
  font-size: 14px;
}

.inline-form {
  display: inline;
  margin: 0;
}

.lot-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.button-danger {
  background: #b91c1c;
}

.button-danger:hover {
  background: #991b1b;
}

.admin-user {
  color: #9ca3af;
  font-weight: 600;
}

.logout-form {
  display: inline;
  margin: 0;
}

.logout-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.logout-button:hover {
  color: white;
  text-decoration: underline;
}

/* Admin auction dashboard */
.admin-dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 32px 90px;
}

.admin-dashboard .page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.admin-dashboard .page-hero h1 {
  margin: 6px 0 10px;
}

.admin-auction-list {
  display: grid;
  gap: 22px;
}

.admin-auction-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-auction-card__main {
  flex: 1;
  min-width: 0;
}

.admin-auction-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.admin-auction-card__heading h2 {
  margin: 4px 0 16px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.admin-auction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #475569;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f5eb;
  color: #176b38;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-auction-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 430px;
}

.admin-auction-actions form {
  margin: 0;
}

.admin-auction-actions .button,
.admin-dashboard .page-hero .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  text-decoration: none;
  white-space: nowrap;
}

.button-danger {
  border: 0;
  background: #c81e1e;
  color: #fff;
  cursor: pointer;
}

.button-danger:hover {
  background: #a91515;
}

.empty-state {
  padding: 50px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .admin-dashboard .page-hero,
  .admin-auction-card {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-auction-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .admin-dashboard {
    padding: 45px 18px 70px;
  }

  .admin-auction-card {
    padding: 22px 18px;
  }

  .admin-auction-card__heading {
    flex-direction: column;
    gap: 4px;
  }

  .admin-auction-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-auction-actions .button,
  .admin-auction-actions form,
  .admin-auction-actions button,
  .admin-dashboard .page-hero .button {
    width: 100%;
  }
}

/* Authentication pages */
.auth-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.auth-card {
  padding: 36px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.auth-card h1 {
  margin: 6px 0 12px;
}

.auth-card > p {
  color: #475569;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.auth-form .form-row {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-weight: 700;
  color: #172033;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: 3px solid rgba(23, 107, 56, 0.15);
  border-color: #176b38;
}

.auth-form .button {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

.form-error {
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid #efb4b4;
  border-radius: 10px;
  background: #fff0f0;
  color: #9f1717;
  font-weight: 700;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-switch a {
  color: #176b38;
  font-weight: 700;
}

@media (max-width: 600px) {
  .auth-page {
    padding: 45px 18px 70px;
  }

  .auth-card {
    padding: 25px 20px;
  }
}

/* Auction bidder registration */
.auction-registration-panel {
  margin: 32px 0 42px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.auction-registration-panel h2 {
  margin: 6px 0 12px;
}

.auction-registration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.auction-registration-form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  line-height: 1.55;
}

.terms-checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .auction-registration-panel {
    padding: 22px 18px;
  }

  .auction-registration-actions {
    display: grid;
  }

  .auction-registration-actions .button,
  .auction-registration-form .button {
    width: 100%;
  }
}

.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}

.auth-form select {
  min-height: 48px;
}

.auth-form textarea {
  resize: vertical;
}

.auth-form select:focus,
.auth-form textarea:focus {
  outline: 3px solid rgba(23, 107, 56, 0.15);
  border-color: #176b38;
}

/* Lot bidding */
.lot-bid-summary {
  margin: 18px 0;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
}

.lot-bid-summary p {
  margin: 5px 0;
}

.lot-bid-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.lot-bid-form label {
  font-weight: 700;
  color: #172033;
}

.lot-bid-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.lot-bid-form input:focus {
  outline: 3px solid rgba(23, 107, 56, 0.15);
  border-color: #176b38;
}

.lot-bid-form .button {
  width: 100%;
}

.high-bid-message {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #e8f5eb;
  color: #176b38;
  font-weight: 700;
}

/* Bid history */
.bid-history {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dfe3e8;
}

.bid-history h4 {
  margin: 0 0 12px;
}

.bid-history-list {
  display: grid;
  gap: 8px;
}

.bid-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.92rem;
}

.bid-history-row time {
  color: #64748b;
  font-size: 0.84rem;
}

@media (max-width: 600px) {
  .bid-history-row {
    grid-template-columns: 1fr auto;
  }

  .bid-history-row time {
    grid-column: 1 / -1;
  }
}

/* Admin live bidding */
.live-bidding-list {
  display: grid;
  gap: 28px;
}

.live-bidding-card {
  padding: 28px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.live-bidding-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.live-bidding-heading h2 {
  margin: 4px 0 18px;
}

.live-bidding-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.live-bidding-summary > div {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
}

.live-bidding-summary span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-bidding-summary strong {
  font-size: 1.2rem;
}

.live-high-bidder,
.admin-proxy-section {
  margin-top: 24px;
}

.admin-proxy-table-wrap {
  overflow-x: auto;
}

.admin-proxy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.admin-proxy-table th,
.admin-proxy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #dfe3e8;
  text-align: left;
  vertical-align: top;
}

.admin-proxy-table th {
  background: #f8fafc;
  font-size: 0.84rem;
  text-transform: uppercase;
  color: #475569;
}

@media (max-width: 800px) {
  .live-bidding-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .live-bidding-card {
    padding: 22px 18px;
  }

  .live-bidding-heading {
    flex-direction: column;
  }

  .live-bidding-summary {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Texas Surplus Auctions marketplace design foundation
   ========================================================= */

:root {
  --tsa-navy: #061b36;
  --tsa-navy-light: #0a2a50;
  --tsa-red: #c9162c;
  --tsa-red-dark: #a80f22;
  --tsa-blue: #1769aa;
  --tsa-gold: #f4c84a;
  --tsa-cream: #f6f3ec;
  --tsa-background: #eef1f4;
  --tsa-border: #d8dee6;
  --tsa-text: #102036;
  --tsa-muted: #66758a;
}

body {
  background: var(--tsa-background);
  color: var(--tsa-text);
  font-family: Arial, Helvetica, sans-serif;
}

.market-header {
  position: relative;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 12px rgba(6, 27, 54, 0.16);
}

.market-header__top {
  background: var(--tsa-navy);
}

.market-header__inner {
  width: min(1380px, calc(100% - 44px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 350px) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 38px;
}

.market-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.market-brand__star {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tsa-red);
  border: 4px solid #fff;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--tsa-red);
}

.market-brand__text {
  display: grid;
  line-height: 1;
  white-space: nowrap;
}

.market-brand__text strong {
  color: #fff;
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.market-brand__text span {
  margin-top: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.market-search {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 58px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.market-search input {
  min-width: 0;
  width: 100%;
  padding: 0 19px;
  border: 0;
  outline: 0;
  color: var(--tsa-text);
  font: inherit;
  font-size: 16px;
}

.market-search input::placeholder {
  color: #8290a0;
}

.market-search button {
  border: 0;
  background: var(--tsa-red);
  color: #fff;
  font-size: 29px;
  cursor: pointer;
}

.market-search button:hover {
  background: var(--tsa-red-dark);
}

.market-account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
}

.market-account-link {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.market-account-link:hover {
  color: #fff;
  opacity: 0.85;
}

.market-account-link__icon {
  font-size: 27px;
  line-height: 1;
}

.market-logout-form {
  margin: 0;
}

.market-logout-button {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.market-logout-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.market-category-nav {
  background: #fff;
  border-bottom: 1px solid #dbe1e8;
}

.market-category-nav__inner {
  width: min(1380px, calc(100% - 44px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.market-category-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-right: 1px solid #e3e7ec;
  color: var(--tsa-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.market-category-nav a:first-child {
  border-left: 1px solid #e3e7ec;
}

.market-category-nav a:hover {
  background: #f2f5f8;
  color: var(--tsa-red);
}

.mobile-menu-button,
.mobile-search-row {
  display: none;
}

/* Modernize common controls while preserving existing behavior */

.button,
.button-primary {
  border: 0;
  border-radius: 6px;
  background: var(--tsa-red);
  color: #fff;
}

.button:hover,
.button-primary:hover {
  background: var(--tsa-red-dark);
}

.button-secondary {
  background: var(--tsa-navy-light);
}

.button-secondary:hover {
  background: var(--tsa-navy);
}

.back-link,
.auth-switch a {
  color: var(--tsa-red);
}

.eyebrow {
  color: var(--tsa-red) !important;
}

.page-shell {
  width: min(1320px, calc(100% - 44px));
}

/* Mobile marketplace header */

@media (max-width: 900px) {
  body {
    padding-bottom: 64px;
  }

  .market-header__inner {
    width: 100%;
    min-height: 67px;
    padding: 0 16px;
    box-sizing: border-box;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
  }

  .mobile-menu-button {
    display: grid;
    gap: 5px;
    width: 34px;
    padding: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #fff;
  }

  .market-brand {
    justify-self: center;
    gap: 7px;
  }

  .market-brand__star {
    width: 35px;
    height: 35px;
    border-width: 2px;
    box-shadow: 0 0 0 2px var(--tsa-red);
    font-size: 19px;
  }

  .market-brand__text strong {
    font-size: 21px;
  }

  .market-brand__text span {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .market-header__inner > .market-search {
    display: none;
  }

  .market-account-nav {
    gap: 14px;
  }

  .market-account-link {
    font-size: 10px;
  }

  .market-account-link:first-child {
    display: none;
  }

  .market-account-link__icon {
    font-size: 22px;
  }

  .market-logout-button {
    display: none;
  }

  .mobile-search-row {
    display: block;
    padding: 0 15px 13px;
  }

  .market-search--mobile {
    height: 44px;
    grid-template-columns: 1fr 48px;
    border-radius: 5px;
  }

  .market-search--mobile input {
    padding: 0 14px;
    font-size: 14px;
  }

  .market-search--mobile button {
    font-size: 24px;
  }

  .market-category-nav {
    display: none;
  }

  .page-shell,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 30px, 1320px);
  }
}

@media (max-width: 420px) {
  .market-header__inner {
    padding-left: 11px;
    padding-right: 11px;
    gap: 7px;
  }

  .market-brand__text strong {
    font-size: 18px;
  }

  .market-brand__text span {
    font-size: 7px;
  }

  .market-account-nav {
    gap: 8px;
  }
}

/* =========================================================
   Marketplace homepage
   ========================================================= */

.market-home {
  background: #fff;
}

.market-home__layout {
  width: min(1380px, calc(100% - 44px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}

.home-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.sidebar-panel {
  overflow: hidden;
  border: 1px solid var(--tsa-border);
  border-radius: 5px;
  background: #fff;
}

.sidebar-panel h2 {
  margin: 0;
  padding: 13px 15px;
  background: var(--tsa-navy);
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.sidebar-category-list {
  display: grid;
}

.sidebar-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid #edf0f3;
  color: var(--tsa-text);
  text-decoration: none;
  font-size: 14px;
}

.sidebar-category-list a:last-child {
  border-bottom: 0;
}

.sidebar-category-list a:hover {
  background: #f5f7fa;
  color: var(--tsa-red);
}

.sidebar-category-list b {
  padding: 3px 7px;
  border-radius: 4px;
  background: #eceff2;
  color: #626f7e;
  font-size: 12px;
}

.calendar-feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 13px;
  padding: 18px 15px 8px;
}

.calendar-date {
  overflow: hidden;
  border: 1px solid #b9c3cf;
  border-radius: 5px;
  text-align: center;
}

.calendar-date span {
  display: block;
  padding: 5px;
  background: var(--tsa-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.calendar-date strong {
  display: block;
  padding: 7px 4px;
  color: var(--tsa-navy);
  font-size: 25px;
}

.calendar-feature p,
.sidebar-empty {
  margin: 6px 0 0;
  color: var(--tsa-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-view-all {
  display: block;
  padding: 10px 15px 16px 92px;
  color: var(--tsa-navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.home-main {
  min-width: 0;
}

.market-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  overflow: hidden;
  border-radius: 5px;
  background:
    radial-gradient(circle at 17% 42%, rgba(255,255,255,0.14) 0 1%, transparent 1.2%),
    linear-gradient(105deg, #03142b 0%, #071c3b 47%, #5e1820 75%, #8c2426 100%);
  color: #fff;
}

.market-hero__content {
  position: relative;
  padding: 34px 36px;
}

.market-hero__star {
  position: absolute;
  top: 6px;
  left: 12px;
  margin: 0;
  color: rgba(255,255,255,0.12);
  font-size: 170px;
  line-height: 1;
}

.market-hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(43px, 5vw, 64px);
  line-height: 0.98;
  text-transform: uppercase;
}

.market-hero h1 span {
  display: block;
  margin-top: 7px;
  color: var(--tsa-red);
}

.market-hero__audience {
  position: relative;
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.market-hero__content > p:not(.market-hero__star):not(.market-hero__audience) {
  position: relative;
  margin: 0;
  font-size: 16px;
}

.market-hero__button {
  position: relative;
  display: inline-block;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 4px;
  background: var(--tsa-red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}

.market-hero__button:hover {
  background: var(--tsa-red-dark);
}

.market-hero__equipment {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 24, 47, 0.12), rgba(7, 24, 47, 0.18)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0 35px,
      rgba(0,0,0,0.04) 35px 70px
    );
}

.equipment-silhouette {
  width: 76%;
  padding: 55px 20px;
  border: 4px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.78);
  font-size: 42px;
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  transform: skewX(-7deg);
}

.mobile-category-grid {
  display: none;
}

.current-auctions-section {
  margin-top: 22px;
}

.market-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.market-section-heading h2 {
  margin: 0;
  color: var(--tsa-navy);
  font-size: 23px;
  text-transform: uppercase;
}

.market-section-heading h2 span {
  margin-right: 7px;
}

.market-section-heading a {
  color: var(--tsa-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.home-auction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-auction-card {
  overflow: hidden;
  border: 1px solid var(--tsa-border);
  border-radius: 4px;
  background: #fff;
}

.home-auction-card__image {
  position: relative;
  height: 145px;
  background-position: center;
  background-size: cover;
}

.home-auction-card__image--1 {
  background:
    linear-gradient(135deg, rgba(4,25,52,0.25), rgba(4,25,52,0.05)),
    linear-gradient(30deg, #9ba4aa, #d6d9db 45%, #5f696f);
}

.home-auction-card__image--2 {
  background:
    linear-gradient(135deg, rgba(4,25,52,0.25), rgba(4,25,52,0.05)),
    linear-gradient(30deg, #7c878d, #c5c9cc 50%, #60696d);
}

.home-auction-card__image--3 {
  background:
    linear-gradient(135deg, rgba(4,25,52,0.12), rgba(4,25,52,0.03)),
    linear-gradient(25deg, #5e6b48, #d49a29 48%, #6d5325);
}

.home-auction-card__image--4 {
  background:
    linear-gradient(135deg, rgba(4,25,52,0.2), rgba(4,25,52,0.03)),
    linear-gradient(25deg, #4b4f54, #b9bdc1 55%, #2e3135);
}

.home-auction-countdown {
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 10px;
  border-radius: 0 0 0 4px;
  background: var(--tsa-red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.home-auction-card__body {
  padding: 13px;
}

.home-auction-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.3;
}

.home-auction-card h3 a {
  color: var(--tsa-navy);
  text-decoration: none;
}

.home-auction-card p {
  margin: 5px 0;
  color: #4c5a6b;
  font-size: 13px;
}

.home-auction-card__button {
  display: block;
  margin-top: 13px;
  padding: 10px;
  border-radius: 3px;
  background: var(--tsa-navy);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-auction-card__button:hover {
  background: var(--tsa-red);
}

.market-empty-state {
  padding: 45px;
  border: 1px solid var(--tsa-border);
  background: #fff;
  text-align: center;
}

.trust-strip {
  margin-top: 24px;
  padding: 15px max(30px, calc((100% - 1380px) / 2));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--tsa-border);
  background: #fff;
}

.trust-strip > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid #e3e6ea;
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip span {
  color: var(--tsa-navy);
  font-size: 35px;
  text-align: center;
}

.trust-strip p {
  margin: 0;
  color: #24354a;
  font-size: 12px;
  line-height: 1.35;
}

.trust-strip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--tsa-navy);
  font-size: 13px;
  text-transform: uppercase;
}

/* Mobile homepage */

@media (max-width: 900px) {
  .market-home__layout {
    width: min(100% - 22px, 760px);
    margin-top: 11px;
    display: block;
  }

  .home-sidebar {
    display: none;
  }

  .market-hero {
    min-height: 270px;
    grid-template-columns: 1fr;
  }

  .market-hero__content {
    padding: 30px 24px;
    background:
      linear-gradient(90deg, rgba(3,20,43,0.98), rgba(3,20,43,0.72) 64%, rgba(3,20,43,0.28)),
      linear-gradient(135deg, #09234b, #8f2a2d);
  }

  .market-hero__equipment {
    display: none;
  }

  .market-hero h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .market-hero__audience,
  .market-hero__content > p:not(.market-hero__star):not(.market-hero__audience) {
    max-width: 500px;
    font-size: 14px;
    line-height: 1.5;
  }

  .market-hero__button {
    padding: 13px 17px;
    font-size: 14px;
  }

  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 19px;
  }

  .mobile-category-grid a {
    min-height: 92px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 8px 4px;
    border: 1px solid var(--tsa-border);
    border-radius: 6px;
    background: #fff;
    color: var(--tsa-navy);
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
  }

  .mobile-category-grid span {
    font-size: 25px;
  }

  .home-auction-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-auction-card {
    display: grid;
    grid-template-columns: minmax(145px, 42%) 1fr;
  }

  .home-auction-card__image {
    height: auto;
    min-height: 145px;
  }

  .home-auction-card__body {
    padding: 13px 15px;
  }

  .home-auction-card__button {
    display: none;
  }

  .market-section-heading h2 {
    font-size: 19px;
  }

  .trust-strip {
    width: min(100% - 22px, 760px);
    margin: 18px auto 0;
    padding: 15px 0;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--tsa-border);
  }

  .trust-strip > div {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px 6px;
    text-align: center;
  }

  .trust-strip > div:nth-child(5) {
    display: none;
  }

  .trust-strip span {
    font-size: 29px;
  }

  .trust-strip strong {
    font-size: 11px;
  }

  .trust-strip p {
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .mobile-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-auction-card {
    grid-template-columns: 42% 1fr;
  }

  .home-auction-card h3 {
    font-size: 14px;
  }

  .home-auction-card p {
    font-size: 12px;
  }
}

/* Real header logo */

.market-brand picture {
  display: block;
  width: 100%;
}

.market-brand__logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .market-brand picture {
    width: auto;
  }

  .market-brand__logo {
    width: 210px;
    max-width: 46vw;
  }
}

@media (max-width: 420px) {
  .market-brand__logo {
    width: 175px;
    max-width: 44vw;
  }
}

/* Force real logo dimensions */

.market-brand {
  width: 320px;
  min-width: 260px;
}

.market-brand picture {
  display: block;
  width: 320px;
}

.market-brand__logo {
  display: block;
  width: 320px;
  height: auto;
}

@media (max-width: 900px) {
  .market-brand {
    width: 210px;
    min-width: 0;
  }

  .market-brand picture,
  .market-brand__logo {
    width: 210px;
  }
}

@media (max-width: 420px) {
  .market-brand,
  .market-brand picture,
  .market-brand__logo {
    width: 175px;
  }
}

/* Force real logo dimensions */

.market-brand {
  width: 320px;
  min-width: 260px;
}

.market-brand picture {
  display: block;
  width: 320px;
}

.market-brand__logo {
  display: block;
  width: 320px;
  height: auto;
}

@media (max-width: 900px) {
  .market-brand {
    width: 210px;
    min-width: 0;
  }

  .market-brand picture,
  .market-brand__logo {
    width: 210px;
  }
}

@media (max-width: 420px) {
  .market-brand,
  .market-brand picture,
  .market-brand__logo {
    width: 175px;
  }
}

/* Uploaded homepage hero artwork */

.market-hero {
  position: relative;
  background:
    linear-gradient(
      90deg,
      rgba(3, 20, 43, 0.98) 0%,
      rgba(3, 20, 43, 0.92) 38%,
      rgba(3, 20, 43, 0.38) 68%,
      rgba(3, 20, 43, 0.08) 100%
    ),
    url('/images/hero/tsa-home-hero-desktop.png?v=1784968539') center right / cover no-repeat;
}

.market-hero__equipment {
  display: none;
}

.market-hero__content {
  z-index: 1;
  max-width: 650px;
}

@media (max-width: 900px) {
  .market-hero {
    background:
      linear-gradient(
        90deg,
        rgba(3, 20, 43, 0.98) 0%,
        rgba(3, 20, 43, 0.83) 65%,
        rgba(3, 20, 43, 0.4) 100%
      ),
      url('/images/hero/tsa-home-hero-desktop.png?v=1784968539') center right / cover no-repeat;
  }
}

/* Temporary header logo refinement */

.market-header__top {
  padding: 10px 0;
}

.market-header__inner {
  min-height: 84px;
}

.market-brand {
  width: 270px;
  min-width: 230px;
}

.market-brand__logo {
  width: 270px;
  max-height: 74px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .market-header__top {
    padding: 7px 0;
  }

  .market-header__inner {
    min-height: 68px;
  }

  .market-brand,
  .market-brand__logo {
    width: 190px;
  }

  .market-brand__logo {
    max-height: 58px;
  }
}

/* Match uploaded 1600 x 600 hero proportions */

.market-hero {
  min-height: 0;
  aspect-ratio: 8 / 3;
}

.market-hero__content {
  align-self: center;
}

@media (max-width: 900px) {
  .market-hero {
    aspect-ratio: auto;
    min-height: 300px;
  }
}

/* Real homepage auction-card images */

.home-auction-card__image {
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 38px rgba(3, 20, 43, 0.22);
}

.home-auction-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(3, 20, 43, 0.03) 45%,
      rgba(3, 20, 43, 0.26) 100%
    );
}

.home-auction-card__image--1 {
  background-image: url('/images/categories/category-medical-equipment.png?v=1');
}

.home-auction-card__image--2 {
  background-image: url('/images/categories/category-heavy-equipment.png?v=1');
}

.home-auction-card__image--3 {
  background-image: url('/images/categories/category-vehicles.png?v=1');
}

.home-auction-card__image--4 {
  background-image: url('/images/categories/category-miscellaneous.png?v=1');
}

.home-auction-countdown {
  z-index: 2;
}

/* =========================================================
   Marketplace desktop refinement — July 25, 2026
   ========================================================= */

@media (min-width: 901px) {
  .market-home__layout {
    width: min(1400px, calc(100% - 48px));
    margin-top: 26px;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 24px;
  }

  .current-auctions-section {
    margin-top: 28px;
  }

  .market-section-heading {
    margin-bottom: 18px;
    padding-bottom: 11px;
    border-bottom: 1px solid #dfe4ea;
  }

  .market-section-heading h2 {
    font-size: 24px;
    letter-spacing: -0.2px;
  }

  .home-auction-grid {
    gap: 18px;
  }

  .home-auction-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(3, 20, 43, 0.09);
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease;
  }

  .home-auction-card:hover {
    transform: translateY(-2px);
    border-color: #bbc5d0;
    box-shadow: 0 7px 18px rgba(3, 20, 43, 0.14);
  }

  .home-auction-card__image {
    height: 168px;
  }

  .home-auction-countdown {
    top: 10px;
    right: 10px;
    padding: 7px 11px;
    border-radius: 4px;
    box-shadow: 0 2px 7px rgba(3, 20, 43, 0.24);
  }

  .home-auction-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 16px;
  }

  .home-auction-card h3 {
    margin-bottom: 11px;
    font-size: 17px;
  }

  .home-auction-card h3 a:hover {
    color: var(--tsa-red);
  }

  .home-auction-card p {
    margin: 4px 0;
    line-height: 1.4;
  }

  .home-auction-card__button {
    margin-top: auto;
    padding: 11px 10px;
  }
}

@media (min-width: 901px) {
  .home-auction-grid--1 {
    grid-template-columns: minmax(0, 420px);
  }

  .home-auction-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-auction-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   Marketplace footer — July 25, 2026
   ========================================================= */

.market-footer {
  margin-top: 0;
  background: #03142b;
  color: #d7dee8;
}

.market-footer__main {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 42px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 52px;
}

.market-footer__brand img {
  display: block;
  width: min(270px, 100%);
  height: auto;
  margin-bottom: 19px;
}

.market-footer__brand p,
.market-footer__organizations p {
  max-width: 410px;
  margin: 0;
  color: #b9c4d2;
  font-size: 14px;
  line-height: 1.7;
}

.market-footer__column {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.market-footer__column h2 {
  margin: 3px 0 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.market-footer__column a {
  color: #c8d1dd;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 140ms ease;
}

.market-footer__column a:hover {
  color: #fff;
}

.market-footer__organizations span {
  display: inline-block;
  margin-top: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-footer__bottom {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 19px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.market-footer__bottom p {
  margin: 0;
  color: #929faf;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .market-footer__main {
    width: min(100% - 34px, 760px);
    padding: 38px 0 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 28px;
  }

  .market-footer__brand {
    grid-column: 1 / -1;
  }

  .market-footer__brand img {
    width: 225px;
  }

  .market-footer__organizations {
    grid-column: 1 / -1;
  }

  .market-footer__bottom {
    width: min(100% - 34px, 760px);
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 520px) {
  .market-footer__main {
    grid-template-columns: 1fr;
  }

  .market-footer__brand,
  .market-footer__organizations {
    grid-column: auto;
  }

  .market-footer__column {
    padding-bottom: 7px;
  }
}

/* =========================================================
   Fixed mobile marketplace navigation — July 25, 2026
   ========================================================= */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    z-index: 1000;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #cfd6df;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 14px rgba(3, 20, 43, 0.12);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 8px 3px 7px;
    border-right: 1px solid #e7eaee;
    color: var(--tsa-navy);
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-nav a:last-child {
    border-right: 0;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus-visible {
    background: #f3f5f8;
    color: var(--tsa-red);
  }

  .mobile-bottom-nav span {
    font-size: 24px;
    line-height: 1;
  }

  .mobile-bottom-nav strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* =========================================================
   Mobile homepage compact refinement — July 26, 2026
   ========================================================= */

@media (max-width: 620px) {
  .market-home__layout {
    width: min(100% - 18px, 760px);
  }

  .market-hero {
    min-height: 250px;
  }

  .market-hero__content {
    padding: 24px 20px;
  }

  .market-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .mobile-category-grid {
    gap: 7px;
    margin: 10px 0 17px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
    padding: 0;
  }

  .trust-strip > div {
    min-height: 76px;
    grid-template-columns: 38px minmax(0, 1fr);
    justify-items: stretch;
    gap: 8px;
    padding: 10px 11px;
    border-right: 1px solid #e3e6ea;
    border-bottom: 1px solid #e3e6ea;
    text-align: left;
  }

  .trust-strip > div:nth-child(2n) {
    border-right: 0;
  }

  .trust-strip > div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .trust-strip span {
    align-self: center;
    font-size: 26px;
  }

  .trust-strip strong {
    font-size: 11px;
  }

  .trust-strip p {
    align-self: center;
    font-size: 10px;
    line-height: 1.3;
  }

  .market-footer__main {
    width: min(100% - 28px, 760px);
    padding: 30px 0 24px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .market-footer__brand {
    grid-column: auto;
  }

  .market-footer__brand img {
    width: 210px;
    margin-bottom: 14px;
  }

  .market-footer__brand p,
  .market-footer__organizations p {
    max-width: none;
    font-size: 13px;
    line-height: 1.6;
  }

  .market-footer__column:not(.market-footer__organizations) {
    display: none;
  }

  .market-footer__organizations {
    grid-column: auto;
    padding-top: 2px;
  }

  .market-footer__organizations h2 {
    margin-bottom: 4px;
  }

  .market-footer__organizations span {
    margin-top: 10px;
  }

  .market-footer__bottom {
    width: min(100% - 28px, 760px);
    padding: 14px 0 16px;
  }

  .market-footer__bottom p:nth-of-type(2) {
    display: none;
  }
}

/* Clicky public-site analytics badge */

.clicky-analytics-badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.72;
  transition: opacity 140ms ease;
}

.clicky-analytics-badge:hover {
  opacity: 1;
}

.clicky-analytics-badge img {
  display: block;
  width: auto;
  max-width: 80px;
  height: auto;
}

/* =========================================================
   Public auction listing page — July 26, 2026
   ========================================================= */

.auction-index-page {
  min-height: 65vh;
  background: #f4f6f8;
}

.auction-index-hero {
  padding: 46px max(24px, calc((100% - 1400px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 54px;
  background:
    linear-gradient(
      105deg,
      rgba(3, 20, 43, 0.99),
      rgba(7, 31, 64, 0.96) 64%,
      rgba(125, 27, 31, 0.95)
    );
  color: #fff;
}

.auction-index-eyebrow {
  margin: 0 0 8px;
  color: #e9a3a5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auction-index-hero h1 {
  margin: 0 0 13px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.02;
}

.auction-index-hero > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #d8e0e9;
  font-size: 17px;
  line-height: 1.6;
}

.auction-index-search {
  height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(3, 20, 43, 0.25);
}

.auction-index-search input {
  min-width: 0;
  padding: 0 17px;
  border: 0;
  outline: 0;
  color: var(--tsa-text);
  font: inherit;
  font-size: 15px;
}

.auction-index-search button {
  padding: 0 25px;
  border: 0;
  background: var(--tsa-red);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.auction-index-search button:hover {
  background: var(--tsa-red-dark);
}

.auction-filter-chips {
  padding: 18px max(24px, calc((100% - 1400px) / 2));
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  border-bottom: 1px solid #dce2e8;
  background: #fff;
  scrollbar-width: thin;
}

.auction-filter-chips a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #cfd7e0;
  border-radius: 999px;
  background: #fff;
  color: var(--tsa-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.auction-filter-chips a:hover,
.auction-filter-chips a.is-active {
  border-color: var(--tsa-navy);
  background: var(--tsa-navy);
  color: #fff;
}

.auction-index-results {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.auction-index-heading {
  margin-bottom: 20px;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d8dee5;
}

.auction-index-heading h2 {
  margin: 0 0 5px;
  color: var(--tsa-navy);
  font-size: 27px;
  text-transform: uppercase;
}

.auction-index-heading p {
  margin: 0;
  color: var(--tsa-muted);
  font-size: 14px;
}

.auction-index-heading > a {
  color: var(--tsa-red);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.auction-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.auction-listing-card {
  min-width: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #d5dce4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(3, 20, 43, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.auction-listing-card:hover {
  transform: translateY(-3px);
  border-color: #b8c2cd;
  box-shadow: 0 10px 25px rgba(3, 20, 43, 0.14);
}

.auction-listing-card__image {
  position: relative;
  height: 235px;
  display: block;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.auction-listing-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(3, 20, 43, 0.04) 45%,
      rgba(3, 20, 43, 0.38) 100%
    );
  pointer-events: none;
}

.auction-listing-card__image--1 {
  background-image: url('/images/categories/category-medical-equipment.png?v=1');
}

.auction-listing-card__image--2 {
  background-image: url('/images/categories/category-heavy-equipment.png?v=1');
}

.auction-listing-card__image--3 {
  background-image: url('/images/categories/category-vehicles.png?v=1');
}

.auction-listing-card__image--4 {
  background-image: url('/images/categories/category-miscellaneous.png?v=1');
}

.auction-listing-card__status,
.auction-listing-card__countdown {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(3, 20, 43, 0.24);
}

.auction-listing-card__status {
  left: 12px;
  background: var(--tsa-navy);
}

.auction-listing-card__countdown {
  right: 12px;
  background: var(--tsa-red);
}

.auction-listing-card__body {
  min-height: 255px;
  padding: 19px 20px 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.auction-listing-card__body h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.auction-listing-card__body h2 a {
  color: var(--tsa-navy);
  text-decoration: none;
}

.auction-listing-card__body h2 a:hover {
  color: var(--tsa-red);
}

.auction-listing-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 17px;
  color: #596779;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.auction-listing-card__meta {
  margin: auto 0 18px;
  display: grid;
  grid-template-columns: 1fr 70px 1.35fr;
  border-top: 1px solid #e1e6ec;
  border-bottom: 1px solid #e1e6ec;
}

.auction-listing-card__meta div {
  min-width: 0;
  padding: 12px 10px;
  border-right: 1px solid #e1e6ec;
}

.auction-listing-card__meta div:first-child {
  padding-left: 0;
}

.auction-listing-card__meta div:last-child {
  padding-right: 0;
  border-right: 0;
}

.auction-listing-card__meta dt {
  margin-bottom: 4px;
  color: #7b8795;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auction-listing-card__meta dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--tsa-navy);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.auction-listing-card__button {
  display: block;
  padding: 12px 15px;
  border-radius: 4px;
  background: var(--tsa-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.auction-listing-card__button:hover {
  background: var(--tsa-red);
}

.auction-index-empty {
  padding: 64px 24px;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.auction-index-empty > span {
  display: block;
  margin-bottom: 12px;
  color: var(--tsa-navy);
  font-size: 48px;
}

.auction-index-empty h2 {
  margin: 0 0 8px;
  color: var(--tsa-navy);
}

.auction-index-empty p {
  margin: 0 0 22px;
  color: var(--tsa-muted);
}

.auction-index-empty a {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 4px;
  background: var(--tsa-red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .auction-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auction-index-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 34px;
  }
}

@media (max-width: 760px) {
  .auction-index-hero {
    padding: 30px 18px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .auction-index-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .auction-index-hero > div > p:last-child {
    font-size: 14px;
    line-height: 1.5;
  }

  .auction-index-search {
    height: 48px;
  }

  .auction-index-search button {
    padding: 0 18px;
  }

  .auction-filter-chips {
    padding: 13px 14px;
  }

  .auction-index-results {
    width: min(100% - 18px, 720px);
    padding: 24px 0 34px;
  }

  .auction-index-heading {
    align-items: flex-start;
  }

  .auction-index-heading h2 {
    font-size: 21px;
  }

  .auction-listing-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .auction-listing-card {
    display: grid;
    grid-template-columns: minmax(145px, 40%) minmax(0, 1fr);
  }

  .auction-listing-card__image {
    height: auto;
    min-height: 210px;
  }

  .auction-listing-card__status {
    top: 9px;
    left: 9px;
  }

  .auction-listing-card__countdown {
    top: auto;
    right: 9px;
    bottom: 9px;
    left: 9px;
    text-align: center;
  }

  .auction-listing-card__body {
    min-height: 0;
    padding: 14px;
  }

  .auction-listing-card__body h2 {
    font-size: 17px;
  }

  .auction-listing-card__description {
    margin-bottom: 10px;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .auction-listing-card__meta {
    margin: auto 0 0;
    grid-template-columns: 1fr 50px;
  }

  .auction-listing-card__meta div {
    padding: 8px 7px;
  }

  .auction-listing-card__meta div:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid #e1e6ec;
    border-right: 0;
  }

  .auction-listing-card__button {
    display: none;
  }
}

@media (max-width: 430px) {
  .auction-index-search {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .auction-index-search input {
    padding: 0 11px;
    font-size: 12px;
  }

  .auction-index-search button {
    padding: 0 10px;
    font-size: 11px;
  }

  .auction-listing-card {
    grid-template-columns: 39% minmax(0, 1fr);
  }

  .auction-listing-card__body {
    padding: 11px 12px;
  }

  .auction-listing-card__body h2 {
    margin-bottom: 7px;
    font-size: 15px;
  }

  .auction-listing-card__description {
    display: none;
  }

  .auction-listing-card__meta dd {
    font-size: 10px;
  }
}

/* Admin lot photo previews */
.admin-lot-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-lot-thumbnail {
  width: 120px;
  height: 90px;
  display: block;
  object-fit: cover;
  border: 1px solid #d7dde4;
  border-radius: 7px;
  background: #f3f4f6;
}

.admin-lot-row__content {
  min-width: 0;
}

@media (max-width: 620px) {
  .admin-lot-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .admin-lot-thumbnail {
    width: 88px;
    height: 72px;
  }
}

/* Edit Lot photo gallery */
.admin-lot-row:not(:has(.admin-lot-thumbnail)) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-lot-images {
  margin: 4px 0 10px;
}

.admin-lot-images h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.admin-lot-images__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.admin-lot-image-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid #d7dde4;
  border-radius: 8px;
  background: #fff;
}

.admin-lot-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #f3f4f6;
}

.admin-lot-image-card figcaption {
  padding: 8px 10px;
  color: var(--tsa-navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.admin-lot-image-card figcaption {
  display: grid;
  gap: 8px;
}

.admin-lot-image-card figcaption strong {
  display: block;
}

.admin-image-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-image-option input {
  width: auto;
  margin: 0;
}

.admin-image-option--remove {
  color: #b91c1c;
}

/* Public auction catalog */
.auction-catalog-page {
  min-height: 70vh;
  padding: 38px 20px 80px;
  background:
    linear-gradient(180deg, #f4f7fa 0, #eef2f6 220px, #f8fafc 100%);
}

.auction-catalog-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.auction-catalog-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: #17365d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.auction-catalog-back:hover {
  text-decoration: underline;
}

.auction-catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: 34px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, #102f55 0%, #173e6d 62%, #8f1d2c 140%);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 35, 62, 0.18);
}

.auction-catalog-status {
  display: inline-flex;
  padding: 6px 11px;
  background: #b52234;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auction-catalog-eyebrow {
  margin: 14px 0 7px;
  color: #b52234;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auction-catalog-header .auction-catalog-eyebrow {
  color: #dbeafe;
}

.auction-catalog-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
}

.auction-catalog-description {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e5edf7;
  font-size: 17px;
  line-height: 1.65;
}

.auction-catalog-summary {
  display: grid;
  align-content: center;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  backdrop-filter: blur(5px);
}

.auction-catalog-summary div {
  display: grid;
  gap: 5px;
  padding: 17px 19px;
  background: rgba(8, 25, 47, 0.22);
}

.auction-catalog-summary span {
  color: #cad7e7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auction-catalog-summary strong {
  font-size: 16px;
  line-height: 1.35;
}

.auction-catalog-registration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 24px 0 38px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-left: 5px solid #b52234;
  border-radius: 13px;
  box-shadow: 0 9px 24px rgba(15, 35, 62, 0.08);
}

.auction-catalog-registration h2 {
  margin: 2px 0 6px;
  color: #142f51;
  font-size: 23px;
}

.auction-catalog-registration p {
  margin: 0;
  color: #5c6878;
  line-height: 1.5;
}

.auction-catalog-registration__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.auction-catalog-registration__form {
  display: grid;
  flex: 0 1 520px;
  gap: 14px;
}

.auction-catalog-registration__form .button {
  justify-self: end;
}

.auction-catalog-lots__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.auction-catalog-lots__heading h2 {
  margin: 0;
  color: #142f51;
  font-size: 32px;
}

.auction-catalog-lots__heading > span {
  color: #5c6878;
  font-weight: 800;
}

.auction-catalog-empty {
  padding: 46px 24px;
  color: #64748b;
  text-align: center;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
}

.marketplace-lot-list {
  display: grid;
  gap: 24px;
}

.marketplace-lot {
  display: grid;
  grid-template-columns: minmax(300px, 39%) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e0e9;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 35, 62, 0.09);
}

.marketplace-lot.is-closed {
  opacity: 0.92;
}

.marketplace-lot__media {
  position: relative;
  min-height: 330px;
  padding: 16px;
  background: #e8edf3;
  border-right: 1px solid #d8e0e9;
}

.marketplace-lot__main-link {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 11px;
}

.marketplace-lot__main-image {
  width: 100%;
  height: 292px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.marketplace-lot__thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 11px;
  padding-bottom: 3px;
}

.marketplace-lot__thumbnail {
  width: 58px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.marketplace-lot__thumbnail.is-active {
  border-color: #b52234;
}

.marketplace-lot__thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.marketplace-lot__photo-count {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(13, 32, 55, 0.82);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.marketplace-lot__placeholder {
  height: 100%;
  min-height: 298px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #607083;
  text-align: center;
  background:
    linear-gradient(135deg, #edf1f5, #dfe6ee);
  border: 1px dashed #aab6c4;
  border-radius: 11px;
}

.marketplace-lot__placeholder span {
  color: #b52234;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-lot__placeholder strong {
  color: #17365d;
  font-size: 22px;
}

.marketplace-lot__content {
  min-width: 0;
  padding: 26px 28px;
}

.marketplace-lot__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.marketplace-lot__number {
  color: #b52234;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marketplace-lot__header h3 {
  margin: 6px 0 0;
  color: #142f51;
  font-size: clamp(22px, 3vw, 29px);
  line-height: 1.2;
}

.marketplace-lot__state {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #176b38;
  background: #e8f5eb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-lot__state.is-closed {
  color: #7f1d1d;
  background: #fee2e2;
}

.marketplace-lot__description {
  margin: 16px 0 0;
  color: #647083;
  line-height: 1.6;
}

.marketplace-lot__bid-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 21px;
  background: #dce3eb;
  border: 1px solid #dce3eb;
  border-radius: 11px;
}

.marketplace-lot__bid-panel > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 86px;
  padding: 13px 15px;
  background: #f7f9fb;
}

.marketplace-lot__bid-panel span {
  color: #6b7685;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.marketplace-lot__bid-panel strong {
  color: #142f51;
  font-size: 20px;
}

.marketplace-lot__current-bid strong {
  color: #b52234;
  font-size: 27px;
}

.marketplace-lot__bid-panel small {
  color: #7a8492;
}

.marketplace-lot__countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 16px;
  color: #fff;
  background: #17365d;
  border-radius: 10px;
}

.marketplace-lot__countdown span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-lot__countdown strong {
  font-size: 18px;
}

.marketplace-lot__countdown.is-closed {
  background: #596579;
}

.marketplace-lot__bid-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 17px;
}

.marketplace-lot__bid-form > label {
  grid-column: 1 / -1;
}

.marketplace-lot__bid-entry {
  position: relative;
}

.marketplace-lot__bid-entry > span {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #526173;
  font-weight: 800;
  transform: translateY(-50%);
}

.marketplace-lot__bid-entry input {
  padding-left: 28px;
}

.marketplace-lot__bid-form .button {
  width: auto;
  min-height: 46px;
}

.marketplace-lot__notice,
.marketplace-lot__result {
  margin-top: 16px;
  padding: 13px 15px;
  color: #374151;
  background: #f3f5f8;
  border-left: 4px solid #b52234;
  border-radius: 8px;
}

.marketplace-lot__result {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.marketplace-lot__history {
  margin-top: 18px;
  padding-top: 15px;
}

.marketplace-lot__history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17365d;
  font-weight: 800;
  cursor: pointer;
}

.marketplace-lot__history summary span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: #17365d;
  border-radius: 999px;
  font-size: 11px;
}

.marketplace-lot__history[open] summary {
  margin-bottom: 13px;
}

@media (max-width: 900px) {
  .auction-catalog-header {
    grid-template-columns: 1fr;
  }

  .auction-catalog-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketplace-lot {
    grid-template-columns: minmax(250px, 40%) minmax(0, 1fr);
  }

  .marketplace-lot__bid-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .auction-catalog-page {
    padding: 22px 12px 55px;
  }

  .auction-catalog-header {
    gap: 22px;
    padding: 24px 20px;
    border-radius: 13px;
  }

  .auction-catalog-summary {
    grid-template-columns: 1fr;
  }

  .auction-catalog-registration {
    display: grid;
    padding: 21px 18px;
  }

  .auction-catalog-registration__actions {
    display: grid;
  }

  .auction-catalog-registration__actions .button,
  .auction-catalog-registration__form .button {
    width: 100%;
  }

  .auction-catalog-lots__heading {
    align-items: center;
  }

  .marketplace-lot {
    grid-template-columns: 1fr;
    border-radius: 13px;
  }

  .marketplace-lot__media {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #d8e0e9;
  }

  .marketplace-lot__main-image {
    height: min(74vw, 390px);
  }

  .marketplace-lot__placeholder {
    min-height: 240px;
  }

  .marketplace-lot__content {
    padding: 21px 18px;
  }

  .marketplace-lot__bid-panel {
    grid-template-columns: 1fr 1fr;
  }

  .marketplace-lot__bid-form {
    grid-template-columns: 1fr;
  }

  .marketplace-lot__bid-form > label {
    grid-column: auto;
  }

  .marketplace-lot__bid-form .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .auction-catalog-header h1 {
    font-size: 32px;
  }

  .auction-catalog-lots__heading h2 {
    font-size: 27px;
  }

  .marketplace-lot__header h3 {
    font-size: 22px;
  }

  .marketplace-lot__bid-panel {
    grid-template-columns: 1fr;
  }

  .marketplace-lot__countdown {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* =========================================================
   V3 permanent catalogue and dynamic marketplace
   ========================================================= */

.home-auction-card__eyebrow {
  margin: 0 0 6px;
  color: var(--tsa-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-marketing-card__visual {
  min-height: 168px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, #071d3b, #123f70);
  color: #fff;
}

.home-marketing-card__visual span {
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

.home-marketing-card--alerts .home-marketing-card__visual {
  background:
    linear-gradient(135deg, #8d1421, #c32637);
}

.home-marketing-card--buyers .home-marketing-card__visual {
  background:
    linear-gradient(135deg, #17395d, #315f8f);
}

.mobile-category-grid small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
}

.auction-catalog-filters {
  margin: 0 0 24px;
  padding: 18px;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #f7f9fb;
}

.auction-catalog-filters label {
  min-width: 210px;
  display: grid;
  gap: 7px;
  color: #26384d;
  font-size: 13px;
  font-weight: 800;
}

.auction-catalog-filters select {
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid #bfc9d5;
  border-radius: 5px;
  background: #fff;
  font: inherit;
}

.marketplace-lot__header h3 a {
  color: inherit;
  text-decoration: none;
}

.marketplace-lot__header h3 a:hover {
  color: var(--tsa-red);
}

.marketplace-lot__facets {
  margin: 10px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.marketplace-lot__facets a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf2f7;
  color: #29425e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.marketplace-lot__facets a:hover {
  background: #dce6f0;
}

.marketplace-lot__permanent-link {
  display: inline-block;
  margin: 8px 0 14px;
  color: #164d82;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.marketplace-lot__permanent-link:hover {
  color: var(--tsa-red);
}

.permanent-lot-page {
  background: #f4f6f8;
}

.permanent-lot-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.permanent-lot-breadcrumbs {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #66788b;
  font-size: 13px;
}

.permanent-lot-breadcrumbs a {
  color: #214f7a;
  text-decoration: none;
}

.permanent-lot-header {
  margin-bottom: 24px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
}

.permanent-lot-header h1 {
  margin: 8px 0 8px;
  color: #071d3b;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.permanent-lot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.permanent-lot-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf0f6;
  color: #29425e;
  font-size: 12px;
  font-weight: 800;
}

.permanent-lot-badges .is-open {
  background: #e1f5e8;
  color: #176735;
}

.permanent-lot-badges .is-closed {
  background: #eceff3;
  color: #5f6873;
}

.permanent-lot-auction {
  margin: 0;
  color: #607286;
}

.permanent-lot-auction a {
  color: #174f83;
  font-weight: 800;
  text-decoration: none;
}

.permanent-lot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.permanent-lot-gallery,
.permanent-lot-summary,
.permanent-lot-description,
.permanent-lot-related {
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
}

.permanent-lot-gallery {
  padding: 18px;
}

.permanent-lot-gallery__main-link {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #edf1f5;
}

.permanent-lot-gallery__main-image {
  width: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
}

.permanent-lot-gallery__thumbnails {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 9px;
}

.permanent-lot-gallery__thumbnail {
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #eef2f6;
  cursor: pointer;
}

.permanent-lot-gallery__thumbnail.is-active {
  border-color: var(--tsa-red);
}

.permanent-lot-gallery__thumbnail img {
  width: 100%;
  height: 68px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.permanent-lot-photo-note {
  margin: 14px 0 0;
  color: #708092;
  font-size: 12px;
}

.permanent-lot-summary {
  padding: 20px;
}

.permanent-lot-result {
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 7px;
  background: #071d3b;
  color: #fff;
}

.permanent-lot-result span,
.permanent-lot-result small {
  display: block;
}

.permanent-lot-result span {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permanent-lot-result strong {
  display: block;
  font-size: 25px;
}

.permanent-lot-result small {
  margin-top: 5px;
  color: #c9d6e4;
}

.permanent-lot-facts {
  margin: 0;
}

.permanent-lot-facts div {
  padding: 13px 0;
  border-bottom: 1px solid #e4e9ef;
}

.permanent-lot-facts div:last-child {
  border-bottom: 0;
}

.permanent-lot-facts dt {
  margin-bottom: 4px;
  color: #718195;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.permanent-lot-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #162b42;
  font-weight: 700;
}

.permanent-lot-facts a {
  color: #174f83;
  text-decoration: none;
}

.permanent-lot-description,
.permanent-lot-related {
  margin-top: 24px;
  padding: 26px;
}

.permanent-lot-description h2,
.permanent-lot-related h2 {
  margin: 4px 0 15px;
  color: #071d3b;
}

.permanent-lot-description p:last-child {
  margin-bottom: 0;
  white-space: pre-line;
  line-height: 1.7;
}

.permanent-lot-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.permanent-related-lot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 35, 62, 0.07);
}

.permanent-related-lot-card__media {
  height: 190px;
  display: block;
  overflow: hidden;
  background: #edf1f5;
  border-bottom: 1px solid #dce3eb;
}

.permanent-related-lot-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.permanent-related-lot-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  color: #607083;
  text-align: center;
  background:
    linear-gradient(135deg, #edf1f5, #dfe6ee);
}

.permanent-related-lot-card__placeholder small {
  color: var(--tsa-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permanent-related-lot-card__placeholder strong {
  color: #17365d;
  font-size: 18px;
}

.permanent-related-lot-card__body {
  padding: 17px;
}

.permanent-related-lot-card__eyebrow {
  margin: 0;
  color: var(--tsa-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.permanent-related-lot-card h3 {
  margin: 6px 0 9px;
  color: #142f51;
  font-size: 19px;
  line-height: 1.25;
}

.permanent-related-lot-card a {
  color: #174f83;
  font-weight: 800;
  text-decoration: none;
}

.permanent-related-lot-card__auction,
.permanent-related-lot-card__location {
  margin: 0;
  color: #647083;
  font-size: 13px;
  line-height: 1.45;
}

.permanent-related-lot-card__location {
  margin-top: 4px;
}

.permanent-related-lot-card__metrics {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px;
  overflow: hidden;
  margin-top: 15px;
  background: #dce3eb;
  border: 1px solid #dce3eb;
  border-radius: 7px;
}

.permanent-related-lot-card__metrics div {
  min-width: 0;
  padding: 11px 12px;
  background: #f7f9fb;
}

.permanent-related-lot-card__metrics span,
.permanent-related-lot-card__metrics strong {
  display: block;
}

.permanent-related-lot-card__metrics span {
  color: #6b7685;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.permanent-related-lot-card__metrics strong {
  margin-top: 3px;
  color: #142f51;
  font-size: 18px;
}

.permanent-related-lot-card__metrics div:first-child strong {
  color: var(--tsa-red);
}

.permanent-related-lot-card__closing {
  margin: 13px 0 0;
  color: #647083;
  font-size: 12px;
}

.permanent-related-lot-card__closing strong {
  display: block;
  margin-top: 3px;
  color: #17365d;
  font-size: 13px;
}

.permanent-related-lot-card__link {
  display: inline-block;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .auction-catalog-filters {
    align-items: stretch;
  }

  .auction-catalog-filters label,
  .auction-catalog-filters .button {
    width: 100%;
  }

  .permanent-lot-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .permanent-lot-header {
    padding: 20px;
    flex-direction: column;
  }

  .permanent-lot-header .button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .permanent-lot-layout {
    grid-template-columns: 1fr;
  }

  .permanent-lot-related__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V4 bidder watchlist
   ========================================================= */

.watchlist-page {
  min-height: 60vh;
  padding: 38px 0 72px;
  background: #f1f4f7;
}

.watchlist-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.watchlist-header {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
}

.watchlist-header h1 {
  margin: 5px 0 10px;
  color: #071d3b;
  font-size: clamp(32px, 5vw, 48px);
}

.watchlist-header > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #607286;
  line-height: 1.6;
}

.watchlist-empty {
  padding: 58px 24px;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.watchlist-empty > span {
  display: block;
  color: var(--tsa-red);
  font-size: 54px;
}

.watchlist-empty h2 {
  margin: 12px 0 8px;
  color: #071d3b;
}

.watchlist-empty p {
  margin: 0;
  color: #607286;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.watchlist-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 35, 62, 0.08);
}

.watchlist-card__media {
  height: 230px;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid #d9e0e8;
  background: #edf1f5;
}

.watchlist-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.watchlist-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #607083;
  text-align: center;
}

.watchlist-card__placeholder small {
  color: var(--tsa-red);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-card__placeholder strong {
  color: #17365d;
  font-size: 19px;
}

.watchlist-card__body {
  padding: 19px;
}

.watchlist-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--tsa-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watchlist-card__topline strong {
  padding: 5px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.watchlist-card__topline .is-open {
  color: #176735;
  background: #e1f5e8;
}

.watchlist-card__topline .is-closed {
  color: #5f6873;
  background: #eceff3;
}

.watchlist-card h2 {
  margin: 10px 0 9px;
  color: #142f51;
  font-size: 21px;
  line-height: 1.25;
}

.watchlist-card a {
  color: #174f83;
  text-decoration: none;
}

.watchlist-card__auction,
.watchlist-card__location {
  margin: 0;
  color: #647083;
  font-size: 13px;
  line-height: 1.5;
}

.watchlist-card__auction a {
  font-weight: 800;
}

.watchlist-card__location {
  margin-top: 3px;
}

.watchlist-card__bid {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f3f6f9;
}

.watchlist-card__bid span,
.watchlist-card__bid strong,
.watchlist-card__bid small {
  display: block;
}

.watchlist-card__bid span {
  color: #6b7685;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.watchlist-card__bid strong {
  margin-top: 3px;
  color: var(--tsa-red);
  font-size: 25px;
}

.watchlist-card__bid small {
  color: #7a8492;
}

.watchlist-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 15px;
}

.watchlist-card__actions .button {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.watchlist-remove-button {
  min-height: 43px;
  padding: 10px 14px;
  border: 1px solid #cfd7e1;
  border-radius: 8px;
  color: #5f6873;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.watchlist-remove-button:hover {
  color: #8d1421;
  border-color: #c32637;
}

@media (max-width: 900px) {
  .watchlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .watchlist-page {
    padding-top: 22px;
  }

  .watchlist-shell {
    width: min(100% - 24px, 1240px);
  }

  .watchlist-header {
    padding: 21px 19px;
  }

  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-card__media {
    height: min(72vw, 360px);
  }
}

/* V4 watchlist lot controls */

.marketplace-lot__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.watchlist-toggle-form {
  margin: 0;
}

.watchlist-toggle-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #17365d;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.watchlist-toggle-button span {
  color: var(--tsa-red);
  font-size: 17px;
  line-height: 1;
}

.watchlist-toggle-button:hover,
.watchlist-toggle-button.is-watched {
  color: #8d1421;
  background: #fff1f2;
  border-color: #d9273b;
}

.watchlist-toggle-button--large {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
}

.permanent-lot-header__actions {
  min-width: 245px;
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
}

.permanent-lot-header__actions .button {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  text-align: center;
}

@media (max-width: 800px) {
  .permanent-lot-header__actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .marketplace-lot__header {
    flex-direction: column;
  }

  .marketplace-lot__header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   V4 bidder account dashboard
   ========================================================= */

.bidder-account-page {
  min-height: 60vh;
  padding: 38px 0 72px;
  background: #f1f4f7;
}

.bidder-account-shell {
  width: min(1240px, calc(100% - 44px));
  margin: 0 auto;
}

.bidder-account-header,
.bidder-account-profile,
.bidder-account-section {
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
}

.bidder-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.bidder-account-header h1 {
  margin: 5px 0 10px;
  color: #071d3b;
  font-size: clamp(32px, 5vw, 48px);
}

.bidder-account-header p:last-child {
  max-width: 760px;
  margin: 0;
  color: #607286;
  line-height: 1.6;
}

.bidder-account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.bidder-account-summary > * {
  padding: 20px;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
}

.bidder-account-summary span,
.bidder-account-summary strong,
.bidder-account-summary small {
  display: block;
}

.bidder-account-summary span {
  color: #69798b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bidder-account-summary strong {
  margin: 7px 0 3px;
  color: #b52234;
  font-size: 30px;
}

.bidder-account-summary small {
  color: #718195;
}

.bidder-account-profile {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 26px;
}

.bidder-account-profile h2 {
  margin: 5px 0 6px;
  color: #071d3b;
}

.bidder-account-profile p {
  margin: 0;
  color: #607286;
}

.bidder-account-status {
  min-width: 180px;
  padding: 15px;
  border-radius: 8px;
  background: #e8f5eb;
}

.bidder-account-status span,
.bidder-account-status strong {
  display: block;
}

.bidder-account-status span {
  color: #54705e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bidder-account-status strong {
  margin-top: 5px;
  color: #176b38;
  text-transform: capitalize;
}

.bidder-account-section {
  margin-top: 20px;
  padding: 26px;
}

.bidder-account-section > header h2 {
  margin: 5px 0 18px;
  color: #071d3b;
}

.bidder-account-empty {
  padding: 30px 20px;
  border-radius: 8px;
  color: #647083;
  background: #f4f6f8;
  text-align: center;
}

.bidder-account-lot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bidder-account-lot-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
}

.bidder-account-lot-card__media {
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #b52234;
  background: #edf1f5;
  font-weight: 900;
  text-decoration: none;
}

.bidder-account-lot-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.bidder-account-lot-card__body {
  padding: 17px;
}

.bidder-account-lot-card__body > small {
  color: #b52234;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bidder-account-lot-card h3 {
  margin: 7px 0 8px;
  color: #142f51;
  font-size: 19px;
}

.bidder-account-lot-card a {
  color: #174f83;
  font-weight: 800;
  text-decoration: none;
}

.bidder-account-lot-card__body > p {
  margin: 0;
  color: #647083;
  font-size: 13px;
}

.bidder-account-lot-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid #dce3eb;
  border-radius: 7px;
  background: #dce3eb;
}

.bidder-account-lot-card__metrics div {
  padding: 11px;
  background: #f7f9fb;
}

.bidder-account-lot-card__metrics span,
.bidder-account-lot-card__metrics strong {
  display: block;
}

.bidder-account-lot-card__metrics span {
  color: #6b7685;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.bidder-account-lot-card__metrics strong {
  margin-top: 3px;
  color: #142f51;
}

.bidder-account-lot-card__position {
  margin-top: 12px !important;
}

.bidder-account-lot-card__position .is-winning {
  color: #176b38;
}

.bidder-account-lot-card__position .is-outbid {
  color: #b52234;
}

.bidder-account-lot-card__link {
  display: inline-block;
  margin-top: 13px;
}

.bidder-registration-list {
  display: grid;
  gap: 10px;
}

.bidder-registration-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.bidder-registration-list span {
  color: #b52234;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bidder-registration-list h3 {
  margin: 5px 0;
  color: #142f51;
}

.bidder-registration-list p {
  margin: 0;
  color: #647083;
  font-size: 13px;
}

.bidder-registration-list a {
  color: #174f83;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .bidder-account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bidder-account-lot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .bidder-account-page {
    padding-top: 22px;
  }

  .bidder-account-shell {
    width: min(100% - 24px, 1240px);
  }

  .bidder-account-header,
  .bidder-account-profile,
  .bidder-registration-list article {
    flex-direction: column;
    align-items: stretch;
  }

  .bidder-account-header .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .bidder-account-summary,
  .bidder-account-lot-grid {
    grid-template-columns: 1fr;
  }

  .bidder-account-status {
    min-width: 0;
  }
}

/* =========================================================
   V4 editable bidder contact profile
   ========================================================= */

.bidder-account-success {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #b9dfc3;
  border-radius: 8px;
  color: #176b38;
  background: #e8f5eb;
  font-weight: 800;
}

.bidder-account-profile__details {
  min-width: 0;
}

.bidder-account-profile__details p {
  margin-top: 4px;
}

.bidder-account-profile__details address {
  margin-top: 13px;
  color: #607286;
  font-style: normal;
  line-height: 1.55;
}

.bidder-account-profile__missing {
  margin-top: 13px !important;
  font-style: italic;
}

.bidder-account-profile__edit {
  display: inline-block;
  margin-top: 15px;
  color: #174f83;
  font-weight: 900;
  text-decoration: none;
}

.bidder-profile-page {
  min-height: 60vh;
  padding: 38px 0 72px;
  background: #f1f4f7;
}

.bidder-profile-shell {
  width: min(900px, calc(100% - 44px));
  margin: 0 auto;
}

.bidder-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
}

.bidder-profile-heading h1 {
  margin: 5px 0 10px;
  color: #071d3b;
  font-size: clamp(30px, 5vw, 44px);
}

.bidder-profile-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: #607286;
  line-height: 1.6;
}

.bidder-profile-message {
  margin-top: 18px;
}

.bidder-profile-form {
  margin-top: 18px;
}

.bidder-profile-form section {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #fff;
}

.bidder-profile-form section:first-child {
  margin-top: 0;
}

.bidder-profile-form h2 {
  margin: 0 0 20px;
  color: #071d3b;
}

.bidder-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bidder-profile-grid__full {
  grid-column: 1 / -1;
}

.bidder-profile-form .form-row {
  margin: 0;
}

.bidder-profile-form label {
  display: block;
  margin-bottom: 7px;
  color: #183451;
  font-weight: 900;
}

.bidder-profile-form label span {
  color: #7c8997;
  font-size: 11px;
  font-weight: 700;
}

.bidder-profile-form input {
  width: 100%;
  box-sizing: border-box;
}

.bidder-profile-form small {
  display: block;
  margin-top: 6px;
  color: #718195;
}

.bidder-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 650px) {
  .bidder-profile-page {
    padding-top: 22px;
  }

  .bidder-profile-shell {
    width: min(100% - 24px, 900px);
  }

  .bidder-profile-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .bidder-profile-heading .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .bidder-profile-grid {
    grid-template-columns: 1fr;
  }

  .bidder-profile-grid__full {
    grid-column: auto;
  }

  .bidder-profile-actions {
    flex-direction: column;
  }

  .bidder-profile-actions .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* =========================================================
   V4 bidder password management
   ========================================================= */

.bidder-account-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 15px;
}

.bidder-account-profile__links .bidder-account-profile__edit {
  margin-top: 0;
}

.bidder-password-form {
  max-width: 680px;
}

.bidder-password-fields {
  display: grid;
  gap: 18px;
}

.bidder-password-fields .form-row {
  margin: 0;
}

/* =========================================================
   V4 complete bidder registration profile
   ========================================================= */

.auth-card.auth-card--wide {
  width: min(900px, calc(100% - 44px));
  max-width: none;
}

.bidder-registration-form {
  margin-top: 24px;
}

.bidder-registration-section {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #f8fafc;
}

.bidder-registration-section h2 {
  margin: 0 0 18px;
  color: #071d3b;
  font-size: 21px;
}

.bidder-registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bidder-registration-grid__full {
  grid-column: 1 / -1;
}

.bidder-registration-form .form-row {
  margin: 0;
}

.bidder-registration-form label span {
  color: #7c8997;
  font-size: 11px;
  font-weight: 700;
}

.bidder-registration-form input {
  width: 100%;
  box-sizing: border-box;
}

.bidder-registration-form small {
  display: block;
  margin-top: 6px;
  color: #718195;
}

@media (max-width: 650px) {
  .auth-card.auth-card--wide {
    width: min(100% - 24px, 900px);
  }

  .bidder-registration-grid {
    grid-template-columns: 1fr;
  }

  .bidder-registration-grid__full {
    grid-column: auto;
  }

  .bidder-registration-section {
    padding: 18px;
  }
}

/* =========================================================
   V4 admin bidder contact record
   ========================================================= */

.admin-bidder-detail-card {
  width: min(900px, calc(100% - 44px));
}

.admin-bidder-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 26px;
}

.admin-bidder-contact > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e0e8;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-bidder-contact span,
.admin-bidder-contact strong {
  display: block;
}

.admin-bidder-contact span {
  margin-bottom: 6px;
  color: #6d7b8b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-bidder-contact strong,
.admin-bidder-contact address {
  color: #183451;
  overflow-wrap: anywhere;
}

.admin-bidder-contact a {
  color: #174f83;
  text-decoration: none;
}

.admin-bidder-contact address {
  font-style: normal;
  line-height: 1.55;
}

.admin-bidder-contact__address {
  grid-column: 1 / -1;
}

.admin-bidder-contact__missing {
  color: #7c8997 !important;
  font-style: italic;
  font-weight: 700 !important;
}

@media (max-width: 700px) {
  .admin-bidder-detail-card {
    width: min(100% - 24px, 900px);
  }

  .admin-bidder-contact {
    grid-template-columns: 1fr;
  }

  .admin-bidder-contact__address {
    grid-column: auto;
  }
}

.admin-bidder-detail-card .auth-form select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 42px 11px 13px;
  border: 1px solid #c9d3df;
  border-radius: 7px;
  color: #183451;
  background-color: #fff;
  font: inherit;
}

.admin-bidder-detail-card .auth-form select:focus {
  border-color: #174f83;
  outline: 3px solid rgba(23, 79, 131, 0.12);
}

.admin-bidder-detail-card .auth-form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
   V4 admin bidder search
   ========================================================= */

.admin-bidder-search {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
}

.admin-bidder-search label {
  display: block;
  margin-bottom: 8px;
  color: #183451;
  font-weight: 900;
}

.admin-bidder-search__controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.admin-bidder-search input {
  flex: 1 1 340px;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #c9d3df;
  border-radius: 7px;
  color: #183451;
  background: #fff;
  font: inherit;
}

.admin-bidder-search input:focus {
  border-color: #174f83;
  outline: 3px solid rgba(23, 79, 131, 0.12);
}

.admin-bidder-search > form + p {
  margin: 12px 0 0;
  color: #607286;
}

.admin-bidder-list__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px !important;
  color: #607286;
  font-size: 13px;
}

@media (max-width: 650px) {
  .admin-bidder-search__controls {
    flex-direction: column;
  }

  .admin-bidder-search input {
    flex-basis: auto;
    width: 100%;
  }

  .admin-bidder-search .button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* =========================================================
   V4 admin bidder activity record
   ========================================================= */

.admin-bidder-activity {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid #d9e0e8;
  border-radius: 9px;
  background: #fff;
}

.admin-bidder-activity > header h2 {
  margin: 5px 0 18px;
  color: #071d3b;
}

.admin-bidder-activity__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-bidder-activity__summary > div {
  padding: 16px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-bidder-activity__summary span,
.admin-bidder-activity__summary strong {
  display: block;
}

.admin-bidder-activity__summary span {
  color: #6d7b8b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-bidder-activity__summary strong {
  margin-top: 5px;
  color: #b52234;
  font-size: 26px;
}

.admin-bidder-activity__section {
  margin-top: 24px;
}

.admin-bidder-activity__section h3 {
  margin: 0 0 11px;
  color: #183451;
}

.admin-bidder-activity__list {
  display: grid;
  gap: 8px;
}

.admin-bidder-activity__list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-bidder-activity__list span,
.admin-bidder-activity__list strong,
.admin-bidder-activity__list small {
  display: block;
}

.admin-bidder-activity__list span {
  color: #b52234;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-bidder-activity__list strong {
  margin: 4px 0;
  color: #183451;
}

.admin-bidder-activity__list small,
.admin-bidder-activity__list time {
  color: #647083;
}

.admin-bidder-activity__list a {
  color: #174f83;
  font-weight: 800;
  text-decoration: none;
}

.admin-bidder-activity__list .is-winning {
  color: #176b38;
}

.admin-bidder-activity__list .is-outbid {
  color: #b52234;
}

.admin-bidder-activity__empty {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  color: #647083;
  background: #f4f6f8;
}

@media (max-width: 700px) {
  .admin-bidder-activity__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bidder-activity__list article {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hide the homepage filter column when no active inventory categories exist. */
.market-home__layout--full {
  grid-template-columns: minmax(0, 1fr);
}

/* Admin form section spacing */
.admin-form-section {
  display: grid;
  gap: 20px;
  margin: 4px 0;
  padding: 24px 18px 20px;
  border: 1px solid #9ca3af;
}

.admin-form-section legend {
  padding: 0 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

.admin-form label small,
.admin-form-section small {
  display: block;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.admin-form-section > div {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

.admin-form-section .checkbox-row {
  min-height: 28px;
  margin: 0;
  font-weight: 600;
}

.admin-form-section .checkbox-row + .checkbox-row {
  margin-top: -10px;
}

@media (max-width: 600px) {
  .admin-form {
    padding: 20px;
  }

  .admin-form-section {
    padding: 20px 14px 18px;
  }
}

.bidder-account-form {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: #f8fafc;
}

.bidder-account-form h3 {
  margin: 0;
  color: #071d3b;
  font-size: 24px;
}

.bidder-account-form > p {
  margin: 0;
  color: #607286;
  line-height: 1.55;
}

.bidder-account-form label {
  display: grid;
  gap: 8px;
  color: #071d3b;
  font-weight: 800;
}

.bidder-account-form input,
.bidder-account-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.bidder-account-form textarea {
  min-height: 120px;
  resize: vertical;
}

.bidder-account-form .button {
  justify-self: start;
}

@media (max-width: 700px) {
  .bidder-account-form {
    padding: 18px;
  }

  .bidder-account-form .button {
    width: 100%;
  }
}

.tenant-preview-banner {
  position: relative;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border-bottom: 2px solid #d39e00;
  color: #332701;
}

.tenant-preview-banner__inner {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tenant-preview-banner__inner > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tenant-preview-banner__inner form {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .tenant-preview-banner__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tenant branding foundation */

.market-header__top,
.market-footer,
.site-footer {
  background: var(--tenant-secondary);
}

.market-search button,
.market-hero__button,
.home-auction-card__button {
  background: var(--tenant-accent);
}

.market-brand__text,
.market-footer__text-logo {
  display: inline-flex;
  flex-direction: column;
  color: #ffffff;
  line-height: 0.9;
  text-decoration: none;
}

.market-brand__text strong {
  font-size: 2rem;
  letter-spacing: 0.12em;
}

.market-brand__text small {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
}

.market-footer__text-logo strong {
  font-size: 3rem;
  letter-spacing: 0.14em;
}

.market-footer__text-logo small {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
}

.tenant-global-medical-devices .market-category-nav a:hover,
.tenant-global-medical-devices .market-category-nav a:focus {
  color: var(--tenant-accent);
}

.mobile-bottom-nav form {
  display: flex;
  flex: 1;
  margin: 0;
}

.mobile-bottom-nav form button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mobile-bottom-nav form button span,
.mobile-bottom-nav form button strong {
  display: block;
}

/* Minimal Global Medical Devices auction homepage */

.gmd-auction-home {
  width: min(1120px, calc(100% - 2rem));
  min-height: 620px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.gmd-auction-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d9e0e6;
}

.gmd-auction-heading h1 {
  margin: 0.3rem 0 0;
  color: var(--tenant-secondary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.gmd-auction-heading > a {
  color: var(--tenant-accent);
  font-weight: 700;
  text-decoration: none;
}

.gmd-auction-search {
  padding: 1.5rem 0;
}

.gmd-auction-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.gmd-auction-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  font: inherit;
}

.gmd-auction-search button {
  min-width: 120px;
  border: 0;
  border-radius: 4px;
  background: var(--tenant-accent);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.gmd-auction-results {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.gmd-auction-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid #dce3e9;
  background: #ffffff;
}

.gmd-auction-result h2 {
  margin: 0.25rem 0 0.6rem;
}

.gmd-auction-result h2 a {
  color: var(--tenant-secondary);
  text-decoration: none;
}

.gmd-auction-empty {
  min-height: 360px;
  padding-top: 3rem;
  border-top: 1px solid #eef1f4;
}

.gmd-auction-empty h2 {
  margin-bottom: 0.5rem;
  color: var(--tenant-secondary);
  font-size: 1.45rem;
}

.gmd-auction-empty p {
  max-width: 560px;
  color: #647180;
}

.gmd-auction-empty a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--tenant-accent);
  font-weight: 700;
  text-decoration: none;
}

.tenant-global-medical-devices .market-category-nav {
  display: none;
}

.tenant-global-medical-devices .market-header__top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tenant-global-medical-devices .market-footer {
  margin-top: 0;
}

@media (max-width: 720px) {
  .gmd-auction-home {
    padding-top: 2rem;
  }

  .gmd-auction-heading,
  .gmd-auction-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .gmd-auction-search form {
    grid-template-columns: 1fr;
  }

  .gmd-auction-search button {
    min-height: 48px;
  }
}

/* GMD auction-event homepage */

.gmd-event-home {
  width: min(1240px, calc(100% - 2rem));
  min-height: 650px;
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.gmd-event-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d7e0e7;
}

.gmd-event-intro h1 {
  margin: 0.35rem 0 0.7rem;
  color: var(--tenant-secondary);
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.gmd-event-intro p:last-child {
  max-width: 720px;
  margin: 0;
  color: #5f6f7e;
  font-size: 1.05rem;
}

.gmd-event-intro > a {
  flex: 0 0 auto;
  color: var(--tenant-accent);
  font-weight: 800;
  text-decoration: none;
}

.gmd-event-section {
  padding-top: 2.5rem;
}

.gmd-event-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.gmd-event-section__heading h2 {
  margin: 0.2rem 0 0;
  color: var(--tenant-secondary);
  font-size: 1.8rem;
}

.gmd-event-section__heading > span {
  color: #71808f;
}

.gmd-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gmd-event-card {
  overflow: hidden;
  border: 1px solid #d6e0e8;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(14, 43, 71, 0.08);
}

.gmd-event-card__visual {
  height: 260px;
  min-height: 260px;
  padding: 0;
  display: block;
  color: #ffffff;
  text-decoration: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0e2b47;
}

.gmd-event-card__visual--1 {
  background:
    linear-gradient(145deg, rgba(14, 43, 71, 0.94), rgba(44, 128, 185, 0.82)),
    radial-gradient(circle at top right, #6baed6, transparent 55%);
}

.gmd-event-card__visual--2 {
  background:
    linear-gradient(145deg, rgba(23, 61, 97, 0.95), rgba(44, 128, 185, 0.76)),
    radial-gradient(circle at bottom left, #87bdd8, transparent 55%);
}

.gmd-event-card__visual--3 {
  background:
    linear-gradient(145deg, rgba(11, 46, 70, 0.96), rgba(65, 145, 180, 0.8)),
    radial-gradient(circle at center, #7bb5cf, transparent 60%);
}

.gmd-event-card--placeholder .gmd-event-card__visual {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.gmd-event-card__visual > strong {
  font-size: 2rem;
  line-height: 1.15;
}

.gmd-event-card--placeholder .gmd-event-card__visual > strong {
  font-size: 4rem;
  font-weight: 400;
}

.gmd-event-card__number {
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gmd-event-card__visual time {
  font-weight: 800;
}

.gmd-event-card__body {
  padding: 1.35rem;
}

.gmd-event-card__status {
  margin: 0 0 0.55rem;
  color: var(--tenant-accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gmd-event-card__body h3 {
  min-height: 3.2rem;
  margin: 0 0 0.75rem;
  color: var(--tenant-secondary);
  font-size: 1.25rem;
}

.gmd-event-card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.gmd-event-card__body p {
  color: #657483;
}

.gmd-event-card__button {
  display: block;
  margin-top: 1.1rem;
  padding: 0.78rem 1rem;
  border-radius: 4px;
  background: var(--tenant-accent);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.gmd-event-card__button--disabled {
  background: #dce5eb;
  color: #536575;
}

.gmd-live-inventory-search {
  padding: 1.5rem 0 0;
}

.gmd-live-inventory-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.gmd-live-inventory-search input {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5df;
  border-radius: 4px;
  font: inherit;
}

.gmd-live-inventory-search button {
  border: 0;
  border-radius: 4px;
  padding: 0 1.25rem;
  background: var(--tenant-accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.gmd-live-categories {
  padding-top: 3rem;
}

.gmd-live-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.gmd-live-categories__grid a {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d8e1e8;
  background: #ffffff;
  color: var(--tenant-secondary);
  text-decoration: none;
}

.gmd-live-categories__grid span {
  color: var(--tenant-accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .gmd-event-grid {
    grid-template-columns: 1fr;
  }

  .gmd-event-card__body h3 {
    min-height: 0;
  }

  .gmd-live-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gmd-event-home {
    padding-top: 2rem;
  }

  .gmd-event-intro,
  .gmd-event-section__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gmd-live-inventory-search form,
  .gmd-live-categories__grid {
    grid-template-columns: 1fr;
  }

  .gmd-live-inventory-search button {
    min-height: 48px;
  }
}


/* GMD real logo sizing */

.tenant-global-medical-devices .market-brand {
  width: 150px;
  min-width: 150px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tenant-global-medical-devices .market-brand__logo {
  width: 120px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.tenant-global-medical-devices .market-footer__brand img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 720px) {
  .tenant-global-medical-devices .market-brand {
    width: 92px;
    min-width: 92px;
    height: 58px;
  }

  .tenant-global-medical-devices .market-brand__logo {
    width: 82px;
    height: 54px;
  }

  .tenant-global-medical-devices .market-footer__brand img {
    width: 125px;
    height: 125px;
  }
}


/* GMD auction card width refinement */
.tenant-global-medical-devices .page-shell,
.tenant-global-medical-devices .market-shell {
  max-width: 1500px;
}

.tenant-global-medical-devices .gmd-event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tenant-global-medical-devices .gmd-event-card__visual {
  height: 270px;
  min-height: 270px;
}


.tenant-global-medical-devices .gmd-event-card__visual {
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

/* AuctionCoder-style admin workspace */
.admin-workspace {
  max-width: 1440px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  padding: 20px 14px;
  background: var(--tenant-secondary);
  border-radius: 16px;
  color: #fff;
}

.admin-sidebar__brand {
  padding: 8px 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar__brand strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.admin-sidebar__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.admin-sidebar__nav {
  display: grid;
  gap: 5px;
  padding-top: 16px;
}

.admin-sidebar__link {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-sidebar__link:hover,
.admin-sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-sidebar__link.is-disabled {
  opacity: 0.38;
  cursor: default;
}

.admin-workspace__content {
  min-width: 0;
}

.admin-workspace__hero {
  padding: 28px 30px;
  margin-bottom: 24px !important;
  background: #fff;
  border: 1px solid #e1e6eb;
  border-radius: 14px;
}

.admin-workspace__hero h1 {
  font-size: 2rem;
}

.admin-workspace__section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 0 0 14px;
}

.admin-workspace__section-heading h2 {
  margin: 3px 0 0;
  font-size: 1.45rem;
}

.admin-workspace__section-heading > span {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-workspace .admin-auction-list {
  gap: 12px;
}

.admin-workspace .admin-auction-card {
  gap: 22px;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.admin-workspace .admin-auction-card__heading h2 {
  margin: 3px 0 10px;
  font-size: 1.25rem;
}

.admin-workspace .admin-auction-meta {
  gap: 6px 18px;
  font-size: 0.88rem;
}

.admin-workspace .admin-auction-actions {
  gap: 7px;
  max-width: 400px;
}

.admin-workspace .admin-auction-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .admin-workspace {
    padding-left: 14px;
    padding-right: 14px;
  }

  .admin-workspace__hero {
    padding: 22px 18px;
  }

  .admin-workspace__section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* GMD portal lot management table */
.gmd-lot-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
}

.gmd-lot-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.gmd-lot-table th {
  padding: 11px 12px;
  background: #f5f7f9;
  border-bottom: 1px solid #dfe5eb;
  color: #52606d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.gmd-lot-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf0f3;
  color: #263746;
  font-size: 0.84rem;
  vertical-align: middle;
}

.gmd-lot-table tbody tr:last-child td {
  border-bottom: 0;
}

.gmd-lot-table tbody tr:hover {
  background: #fafbfd;
}

.gmd-lot-table__number {
  width: 58px;
}

.gmd-lot-table__photo {
  width: 74px;
}

.gmd-lot-table__thumbnail {
  width: 58px;
  height: 46px;
  display: block;
  object-fit: cover;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  background: #f3f4f6;
}

.gmd-lot-table__no-photo {
  width: 58px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd3dc;
  border-radius: 6px;
  color: #8a97a5;
  font-size: 0.62rem;
  text-align: center;
}

.gmd-lot-table__item {
  min-width: 230px;
}

.gmd-lot-table__item strong {
  display: block;
  color: #142b3e;
  font-size: 0.88rem;
  line-height: 1.3;
}

.gmd-lot-table__item small {
  display: block;
  margin-top: 4px;
  color: #74808c;
  font-size: 0.72rem;
}

.gmd-lot-status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf2f7;
  color: var(--tenant-primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gmd-lot-table__money {
  font-weight: 700;
  white-space: nowrap;
}

.gmd-lot-table__actions {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.gmd-lot-table__actions .admin-small-button {
  min-height: 32px;
  margin-top: 0;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.gmd-lot-table__actions form {
  margin: 0;
}

@media (max-width: 900px) {
  .gmd-lot-table-wrap {
    border-radius: 8px;
  }
}

/* GMD auction portal workspace */
.gmd-portal-page {
  max-width: none;
  padding-top: 22px;
}

.gmd-auction-workspace {
  display: grid;
  gap: 22px;
}

.gmd-back-link {
  display: inline-flex;
  width: fit-content;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gmd-auction-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.gmd-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gmd-title-line h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.gmd-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #19713f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.gmd-auction-meta {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
}

.gmd-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gmd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.gmd-kpi-card {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.gmd-kpi-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.gmd-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 25px;
  line-height: 1.1;
}

.gmd-auction-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #e4e7ec;
}

.gmd-portal-tab {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.gmd-portal-tab.is-active {
  border-bottom-color: #b42318;
  color: #101828;
}

.gmd-portal-tab.is-disabled {
  cursor: default;
}

.gmd-auction-tools {
  margin-top: -4px;
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #f9fafb;
}

@media (max-width: 1200px) {
  .gmd-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gmd-auction-heading {
    flex-direction: column;
  }

  .gmd-heading-actions {
    justify-content: flex-start;
  }

  .gmd-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gmd-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* GMD lot management filters */
.gmd-lot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.gmd-lot-filter {
  appearance: none;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gmd-lot-filter:hover {
  border-color: #98a2b3;
}

.gmd-lot-filter.is-active {
  border-color: #173d61;
  background: #173d61;
  color: #fff;
}

/* GMD Edit Auction portal */
.gmd-edit-auction-page {
  max-width: none;
  padding-top: 22px;
}

.gmd-edit-auction-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.gmd-edit-auction-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 18px 0 24px;
}

.gmd-edit-auction-header h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.gmd-edit-section-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 24px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe3e8;
}

.gmd-edit-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gmd-edit-section-nav a:hover {
  border-bottom-color: #d21c2b;
  color: #101828;
}

.gmd-edit-auction-shell .admin-form {
  max-width: none;
}

.gmd-edit-auction-shell .admin-form-section {
  border-color: #d0d5dd;
  border-radius: 12px;
  background: #fff;
}

.gmd-edit-auction-shell .admin-form-section legend {
  padding: 0 10px;
}

@media (max-width: 800px) {
  .gmd-edit-auction-header {
    flex-direction: column;
  }
}

/* GMD Edit Auction section cards */
.gmd-edit-auction-shell .admin-form {
  display: grid;
  gap: 22px;
}

.gmd-edit-card {
  scroll-margin-top: 110px;
  padding: 24px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
}

.gmd-edit-card-heading {
  margin-bottom: 18px;
}

.gmd-edit-card-heading .eyebrow {
  margin-bottom: 4px;
}

.gmd-edit-card-heading h2 {
  margin: 0;
  font-size: 24px;
}

.gmd-edit-auction-shell fieldset.gmd-edit-card {
  margin: 0;
}

.gmd-edit-auction-shell fieldset.gmd-edit-card legend {
  font-size: 20px;
  font-weight: 800;
}

.gmd-edit-auction-shell #auction-details {
  display: grid;
  gap: 18px;
}

.gmd-edit-auction-shell #publishing {
  display: grid;
  gap: 18px;
}

.gmd-edit-section-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #eef1f4;
}

/* GMD Edit Auction polish */
.gmd-edit-auction-shell fieldset.gmd-edit-card {
  min-width: 0;
}

.gmd-edit-auction-shell fieldset.gmd-edit-card legend {
  width: auto;
  max-width: none;
  white-space: nowrap;
  padding: 0 10px;
  margin-left: 10px;
  line-height: 1.2;
}

.gmd-edit-auction-shell #closing-bidding,
.gmd-edit-auction-shell #billing-taxes,
.gmd-edit-auction-shell #payments {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .gmd-edit-auction-shell #closing-bidding {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-edit-auction-shell #closing-bidding legend {
    grid-column: 1 / -1;
  }

  .gmd-edit-auction-shell #billing-taxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-edit-auction-shell #billing-taxes legend {
    grid-column: 1 / -1;
  }

  .gmd-edit-auction-shell #billing-taxes .checkbox-row {
    grid-column: 1 / -1;
  }

  .gmd-edit-auction-shell #payments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-edit-auction-shell #payments legend {
    grid-column: 1 / -1;
  }

  .gmd-edit-auction-shell #payments textarea,
  .gmd-edit-auction-shell #payments .checkbox-row {
    grid-column: 1 / -1;
  }
}

/* GMD Edit Lot portal */
.gmd-edit-lot-page {
  max-width: none;
  padding-top: 22px;
}

.gmd-edit-lot-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.gmd-edit-lot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 18px 0 24px;
}

.gmd-edit-lot-header h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.gmd-edit-lot-shell .admin-form {
  display: grid;
  gap: 22px;
  max-width: none;
}

.gmd-edit-lot-shell #lot-details,
.gmd-edit-lot-shell #lot-photos,
.gmd-edit-lot-shell #lot-bidding,
.gmd-edit-lot-shell #lot-publishing {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .gmd-edit-lot-shell #lot-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-edit-lot-shell #lot-details .gmd-edit-card-heading,
  .gmd-edit-lot-shell #lot-details label:nth-of-type(2),
  .gmd-edit-lot-shell #lot-details label:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .gmd-edit-lot-shell #lot-bidding {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-edit-lot-shell #lot-bidding .gmd-edit-card-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .gmd-edit-lot-header {
    flex-direction: column;
  }
}

/* GMD Live Bidding portal */
.gmd-live-bidding-page {
  max-width: none;
}

.gmd-live-header {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
}

.gmd-live-kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gmd-live-bidding-page .live-bidding-list {
  display: grid;
  gap: 20px;
}

.gmd-live-bidding-page .live-bidding-card {
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.gmd-live-bidding-page .live-bidding-heading {
  padding: 18px 20px;
  border-bottom: 1px solid #eaecf0;
  background: #f8fafc;
}

.gmd-live-bidding-page .live-bidding-heading h2 {
  margin: 2px 0 0;
}

.gmd-live-bidding-page .live-bidding-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid #eaecf0;
}

.gmd-live-bidding-page .live-bidding-summary > div {
  padding: 16px 20px;
  border-right: 1px solid #eaecf0;
}

.gmd-live-bidding-page .live-bidding-summary > div:last-child {
  border-right: 0;
}

.gmd-live-bidding-page .live-bidding-summary span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.gmd-live-bidding-page .live-bidding-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.gmd-live-bidding-page .live-lot-result,
.gmd-live-bidding-page .live-high-bidder,
.gmd-live-bidding-page .admin-proxy-section {
  margin: 18px 20px;
  padding: 18px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fff;
}

.gmd-live-bidding-page .live-lot-result {
  background: #f8fafc;
}

.gmd-live-bidding-page .live-lot-result h3,
.gmd-live-bidding-page .live-high-bidder h3,
.gmd-live-bidding-page .admin-proxy-section h3 {
  margin-top: 0;
}

.gmd-live-bidding-page .admin-proxy-table-wrap {
  overflow-x: auto;
}

.gmd-live-bidding-page .admin-proxy-table {
  width: 100%;
}

@media (max-width: 1100px) {
  .gmd-live-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gmd-live-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-live-bidding-page .live-bidding-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gmd-live-bidding-page .live-bidding-summary > div:nth-child(2) {
    border-right: 0;
  }
}

/* GMD portal sidebar v2 */
.gmd-portal-sidebar {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
}

.gmd-portal-sidebar .admin-sidebar__nav {
  flex: 1;
}

.gmd-sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gmd-sidebar-footer span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gmd-sidebar-footer strong {
  color: #fff;
  font-size: 13px;
}

.gmd-portal-sidebar .admin-sidebar__link.is-disabled {
  opacity: 0.42;
}

.gmd-portal-sidebar .admin-sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.13);
}

/* GMD dashboard density polish */
.gmd-portal-sidebar {
  min-height: auto;
  padding-bottom: 18px;
}

.gmd-portal-sidebar .admin-sidebar__nav {
  display: grid;
  gap: 4px;
}

.gmd-portal-sidebar .admin-sidebar__link {
  min-height: 38px;
  padding: 8px 12px;
}

.gmd-portal-sidebar .admin-sidebar__link.is-disabled {
  opacity: 0.5;
}

.gmd-sidebar-footer {
  margin-top: 14px;
  padding-top: 14px;
}

.admin-workspace__hero {
  padding: 26px 30px;
}

.admin-workspace__hero h1 {
  margin-bottom: 6px;
}

.admin-workspace__section-heading {
  margin-top: 12px;
  margin-bottom: 10px;
}

.admin-auction-list {
  gap: 12px;
}

.admin-auction-card {
  padding: 20px;
}

.admin-auction-card__heading h2 {
  margin-bottom: 6px;
}

.admin-auction-actions {
  gap: 8px;
}

.admin-auction-actions .button {
  padding: 10px 13px;
  min-height: 40px;
}

@media (min-width: 1100px) {
  .admin-auction-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-auction-actions {
    max-width: 420px;
    justify-content: flex-end;
  }
}


/* Lot photo drag-and-drop uploader */
.lot-photo-uploader {
  margin-top: 18px;
}

.lot-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lot-photo-dropzone {
  display: flex;
  min-height: 150px;
  padding: 28px;
  border: 2px dashed #aab3bf;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.lot-photo-dropzone:hover,
.lot-photo-dropzone:focus,
.lot-photo-dropzone.is-dragging {
  border-color: #4b5563;
  background: #eef2f6;
  outline: none;
}

.lot-photo-dropzone.is-dragging {
  transform: scale(1.01);
}

.lot-photo-dropzone strong {
  font-size: 18px;
}

.lot-photo-dropzone span,
.lot-photo-dropzone small {
  color: #667085;
}

.lot-photo-selection {
  margin-top: 20px;
}

.lot-photo-selection__heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lot-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.lot-photo-preview-card {
  overflow: hidden;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  background: #fff;
}

.lot-photo-preview-card__image {
  display: flex;
  height: 120px;
  align-items: center;
  justify-content: center;
  background: #edf0f3;
}

.lot-photo-preview-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-photo-preview-card__placeholder {
  font-weight: 700;
  color: #667085;
}

.lot-photo-preview-card__details {
  display: flex;
  min-width: 0;
  padding: 9px 10px;
  align-items: center;
  gap: 8px;
}

.lot-photo-preview-card__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lot-photo-preview-card__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .lot-photo-selection__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lot-photo-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* GMD customer-facing auction shell refinement */

.tenant-global-medical-devices {
  --gmd-navy: #202d61;
  --gmd-navy-dark: #18244f;
  --gmd-blue: #16a7e8;
  --gmd-light: #f5f7fa;
}

.tenant-global-medical-devices .market-header__top {
  background: var(--gmd-navy);
}

.tenant-global-medical-devices .market-header__inner {
  min-height: 112px;
}

.tenant-global-medical-devices .market-search input {
  border-color: rgba(255, 255, 255, 0.2);
}

.tenant-global-medical-devices .market-search button {
  background: var(--gmd-blue);
}

.tenant-global-medical-devices .market-category-nav {
  display: block;
  border-bottom: 1px solid #e3e7ec;
  background: #ffffff;
}

.tenant-global-medical-devices .market-category-nav__inner {
  justify-content: center;
  gap: 0;
}

.tenant-global-medical-devices .market-category-nav a {
  position: relative;
  padding: 1rem 1.8rem;
  color: #1d2430;
  font-weight: 700;
}

.tenant-global-medical-devices .market-category-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34%;
  width: 2px;
  height: 32%;
  background: var(--gmd-blue);
}

.tenant-global-medical-devices .market-category-nav a:hover,
.tenant-global-medical-devices .market-category-nav a:focus {
  color: var(--gmd-blue);
}

.tenant-global-medical-devices .gmd-event-home {
  width: min(1380px, calc(100% - 3rem));
}

.tenant-global-medical-devices .gmd-event-intro h1,
.tenant-global-medical-devices .gmd-event-section__heading h2 {
  color: var(--gmd-navy);
}

.tenant-global-medical-devices .gmd-event-intro > a,
.tenant-global-medical-devices .gmd-event-card__status,
.tenant-global-medical-devices .gmd-live-categories__grid span {
  color: var(--gmd-blue);
}

.tenant-global-medical-devices .gmd-live-inventory-search button,
.tenant-global-medical-devices .gmd-event-card__button {
  background: var(--gmd-blue);
}

.tenant-global-medical-devices .market-footer {
  background: var(--gmd-navy);
}

.tenant-global-medical-devices .market-footer__main {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.tenant-global-medical-devices .market-footer__column a:hover,
.tenant-global-medical-devices .market-footer__column a:focus {
  color: var(--gmd-blue);
}

.tenant-global-medical-devices .gmd-footer-note {
  max-width: 250px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

@media (max-width: 720px) {

  .tenant-global-medical-devices .market-header__inner {
    min-height: 76px;
  }

  .tenant-global-medical-devices .market-category-nav {
    overflow-x: auto;
  }

  .tenant-global-medical-devices .market-category-nav__inner {
    width: max-content;
    justify-content: flex-start;
  }

  .tenant-global-medical-devices .market-category-nav a {
    padding: 0.85rem 1rem;
    white-space: nowrap;
  }

}


/* Lot question messaging */

.lot-question-panel {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  padding: 2rem;
  box-sizing: border-box;
  border: 1px solid #d9e2e9;
  border-radius: 8px;
  background: #ffffff;
}

.lot-question-panel__heading {
  margin-bottom: 1.5rem;
}

.lot-question-panel__heading h2 {
  margin: 0.25rem 0 0.5rem;
  color: var(--tenant-secondary);
  font-size: 1.6rem;
}

.lot-question-panel__heading p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #667482;
}

.lot-question-form {
  display: grid;
  gap: 1rem;
}

.lot-question-form__identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lot-question-form label {
  display: grid;
  gap: 0.4rem;
}

.lot-question-form label > span {
  color: #263442;
  font-size: 0.82rem;
  font-weight: 800;
}

.lot-question-form input,
.lot-question-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  background: #ffffff;
  color: #17212b;
  font: inherit;
}

.lot-question-form textarea {
  min-height: 130px;
  resize: vertical;
}

.lot-question-form input:focus,
.lot-question-form textarea:focus {
  border-color: var(--tenant-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 167, 232, 0.12);
}

.lot-question-form__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.lot-question-form__footer small {
  color: #71808f;
}

.lot-question-submit {
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 5px;
  background: var(--tenant-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tenant-global-medical-devices
.lot-question-submit {
  background: #16a7e8;
}

.lot-question-message {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  font-weight: 700;
}

.lot-question-message--success {
  border: 1px solid #b9dec8;
  background: #eefaf2;
  color: #21643a;
}

.lot-question-message--error {
  border: 1px solid #e5c0c0;
  background: #fff3f3;
  color: #8c2929;
}

@media (max-width: 720px) {

  .lot-question-panel {
    width: calc(100% - 1.2rem);
    margin-top: 1rem;
    padding: 1.25rem;
  }

  .lot-question-form__identity {
    grid-template-columns: 1fr;
  }

  .lot-question-form__footer {
    align-items: flex-start;
    flex-direction: column;
  }

}


/* Admin buyer messaging */

.admin-message-page {
  background: #f5f7fa;
  min-height: calc(100vh - 80px);
}

.admin-message-main {
  min-width: 0;
  padding: 2rem;
}

.admin-message-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.admin-message-header h1 {
  margin: 0.2rem 0 0.5rem;
  color: #14243b;
  font-size: 2rem;
}

.admin-message-header p:last-child {
  max-width: 700px;
  margin: 0;
  color: #697887;
}

.admin-message-count {
  min-width: 130px;
  padding: 1rem 1.2rem;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.admin-message-count strong,
.admin-message-count span {
  display: block;
}

.admin-message-count strong {
  color: #14243b;
  font-size: 1.8rem;
}

.admin-message-count span {
  margin-top: 0.2rem;
  color: #748291;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-message-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 10px;
  background: #ffffff;
}

.admin-message-list {
  overflow-y: auto;
  border-right: 1px solid #e3e8ed;
  background: #f8fafc;
}

.admin-message-list-item {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid #e3e8ed;
  color: inherit;
  text-decoration: none;
}

.admin-message-list-item:hover,
.admin-message-list-item.is-active {
  background: #ffffff;
}

.admin-message-list-item.is-active {
  box-shadow: inset 4px 0 0 var(--tenant-accent);
}

.admin-message-list-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.admin-message-list-item h2 {
  margin: 0.5rem 0 0.3rem;
  color: #203146;
  font-size: 0.95rem;
  line-height: 1.3;
}

.admin-message-bidder {
  margin: 0 0 0.45rem;
  color: #536475;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-message-preview {
  margin: 0 0 0.6rem;
  color: #71808f;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-message-list-item small {
  color: #8794a0;
}

.admin-message-status {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e7edf3;
  color: #526273;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-message-status--open {
  background: #fff1cf;
  color: #8b6411;
}

.admin-message-status--answered {
  background: #e6f5ed;
  color: #236642;
}

.admin-message-status--closed {
  background: #e7e9ed;
  color: #5d6671;
}

.admin-message-thread {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-message-placeholder {
  margin: auto;
  padding: 3rem;
  text-align: center;
  color: #748291;
}

.admin-message-placeholder__icon {
  margin-bottom: 1rem;
  color: var(--tenant-accent);
  font-size: 3rem;
}

.admin-message-placeholder h2 {
  margin-bottom: 0.4rem;
  color: #203146;
}

.admin-message-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e3e8ed;
}

.admin-message-thread-header h2 {
  margin: 0.2rem 0 0.3rem;
  color: #203146;
}

.admin-message-thread-header p {
  margin: 0;
  color: #71808f;
}

.admin-message-view-lot {
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ccd6df;
  border-radius: 5px;
  color: #30455a;
  font-weight: 800;
  text-decoration: none;
}

.admin-message-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #f7f9fb;
}

.admin-message-bubble {
  max-width: 760px;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dae2e8;
  border-radius: 9px;
  background: #ffffff;
}

.admin-message-bubble--admin {
  margin-left: auto;
  border-color: #b9d8ea;
  background: #eef8fd;
}

.admin-message-bubble__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: #71808f;
  font-size: 0.75rem;
}

.admin-message-bubble__meta strong {
  color: #31465a;
}

.admin-message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  color: #25384b;
  line-height: 1.55;
}

.admin-message-reply {
  padding: 1rem 1.5rem 0.5rem;
  border-top: 1px solid #e3e8ed;
  background: #ffffff;
}

.admin-message-reply label {
  display: grid;
  gap: 0.4rem;
}

.admin-message-reply label > span {
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-message-reply textarea {
  width: 100%;
  min-height: 110px;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  font: inherit;
  resize: vertical;
}

.admin-message-reply__actions {
  margin-top: 0.7rem;
}

.admin-message-close {
  padding: 0.25rem 1.5rem 1.25rem;
}

.admin-message-close button {
  border: 0;
  background: transparent;
  color: #758392;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-message-empty {
  padding: 1.5rem;
  color: #71808f;
}

.admin-message-empty strong {
  color: #31465a;
}

.admin-message-notice {
  margin: 1rem 1.5rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 5px;
}

.admin-message-notice--success {
  background: #eef9f2;
  color: #26623d;
}

.admin-message-notice--error {
  background: #fff0f0;
  color: #8b3030;
}

.admin-message-closed {
  margin: 1rem 1.5rem 1.5rem;
  padding: 0.9rem;
  border-radius: 5px;
  background: #eef1f4;
  color: #667482;
  font-weight: 800;
}

.tenant-global-medical-devices
.admin-message-list-item.is-active {
  box-shadow: inset 4px 0 0 #16a7e8;
}

.tenant-global-medical-devices
.admin-message-placeholder__icon {
  color: #16a7e8;
}

@media (max-width: 980px) {

  .admin-message-main {
    padding: 1rem;
  }

  .admin-message-layout {
    grid-template-columns: 1fr;
  }

  .admin-message-list {
    max-height: 300px;
    border-right: 0;
    border-bottom: 1px solid #e3e8ed;
  }

}

@media (max-width: 720px) {

  .admin-message-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-message-count {
    width: 100%;
    box-sizing: border-box;
  }

  .admin-message-thread-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-message-bubble {
    max-width: 100%;
  }

}


/* Buyer account messaging */

.buyer-message-page {
  min-height: 650px;
  background: #f5f7fa;
}

.buyer-message-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.buyer-message-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.buyer-message-heading h1 {
  margin: 0.25rem 0 0.5rem;
  color: var(--tenant-secondary);
  font-size: 2rem;
}

.buyer-message-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: #697887;
}

.buyer-message-back,
.buyer-message-view-lot {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ccd6df;
  border-radius: 5px;
  background: #ffffff;
  color: #31465a;
  font-weight: 800;
  text-decoration: none;
}

.buyer-message-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 9px;
  background: #ffffff;
}

.buyer-message-list {
  overflow-y: auto;
  border-right: 1px solid #e2e8ed;
  background: #f8fafc;
}

.buyer-message-list-item {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid #e2e8ed;
  color: inherit;
  text-decoration: none;
}

.buyer-message-list-item:hover,
.buyer-message-list-item.is-active {
  background: #ffffff;
}

.buyer-message-list-item.is-active {
  box-shadow:
    inset 4px 0 0 var(--tenant-accent);
}

.buyer-message-list-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.buyer-message-list-item h2 {
  margin: 0.5rem 0 0.4rem;
  color: #24364a;
  font-size: 0.95rem;
}

.buyer-message-list-item p {
  margin: 0 0 0.55rem;
  color: #71808f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.buyer-message-list-item small {
  color: #8794a0;
}

.buyer-message-new {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e5f5ec;
  color: #276844;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-message-thread {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.buyer-message-placeholder {
  margin: auto;
  padding: 3rem;
  text-align: center;
  color: #71808f;
}

.buyer-message-placeholder__icon {
  margin-bottom: 0.8rem;
  color: var(--tenant-accent);
  font-size: 3rem;
}

.buyer-message-placeholder h2 {
  margin-bottom: 0.4rem;
  color: #24364a;
}

.buyer-message-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8ed;
}

.buyer-message-thread-header h2 {
  margin: 0.2rem 0 0.3rem;
  color: #24364a;
}

.buyer-message-thread-header p {
  margin: 0;
  color: #71808f;
}

.buyer-message-history {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #f7f9fb;
}

.buyer-message-bubble {
  max-width: 720px;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dae2e8;
  border-radius: 9px;
  background: #ffffff;
}

.buyer-message-bubble--bidder {
  margin-left: auto;
  border-color: #bedbec;
  background: #eef8fd;
}

.buyer-message-bubble__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: #748291;
  font-size: 0.75rem;
}

.buyer-message-bubble__meta strong {
  color: #31465a;
}

.buyer-message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  color: #25384b;
  line-height: 1.55;
}

.buyer-message-reply {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e2e8ed;
}

.buyer-message-reply label {
  display: grid;
  gap: 0.4rem;
}

.buyer-message-reply label > span {
  font-size: 0.8rem;
  font-weight: 900;
}

.buyer-message-reply textarea {
  width: 100%;
  min-height: 105px;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid #cbd5df;
  border-radius: 5px;
  font: inherit;
  resize: vertical;
}

.buyer-message-reply button {
  justify-self: start;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 5px;
  background: var(--tenant-accent);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.buyer-message-empty {
  padding: 1.5rem;
  color: #71808f;
}

.buyer-message-empty strong {
  color: #31465a;
}

.buyer-message-notice {
  margin: 1rem 1.5rem 0;
  padding: 0.8rem 0.9rem;
  border-radius: 5px;
}

.buyer-message-notice--success {
  background: #eef9f2;
  color: #26623d;
}

.buyer-message-notice--error {
  background: #fff0f0;
  color: #8b3030;
}

.buyer-message-closed {
  margin: 1rem 1.5rem 1.5rem;
  padding: 0.9rem;
  border-radius: 5px;
  background: #eef1f4;
  color: #667482;
  font-weight: 800;
}

.tenant-global-medical-devices
.buyer-message-list-item.is-active {
  box-shadow:
    inset 4px 0 0 #16a7e8;
}

.tenant-global-medical-devices
.buyer-message-placeholder__icon {
  color: #16a7e8;
}

.tenant-global-medical-devices
.buyer-message-reply button {
  background: #16a7e8;
}

@media (max-width: 900px) {

  .buyer-message-layout {
    grid-template-columns: 1fr;
  }

  .buyer-message-list {
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #e2e8ed;
  }

}

@media (max-width: 720px) {

  .buyer-message-shell {
    width: calc(100% - 1.2rem);
    padding-top: 1.5rem;
  }

  .buyer-message-heading,
  .buyer-message-thread-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .buyer-message-bubble {
    max-width: 100%;
  }

}

/* AuctionCoder Marketing CRM */
.marketing-stat-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:0 0 34px;
}

.marketing-stat-card {
  display:flex;
  min-height:150px;
  padding:22px;
  flex-direction:column;
  justify-content:center;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
  color:#1d2c3a;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(22,38,55,.05);
}

.marketing-stat-card span {
  color:#64788a;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.marketing-stat-card strong {
  margin:7px 0 2px;
  color:#18244f;
  font-size:38px;
  line-height:1;
}

.marketing-stat-card small {
  color:#7b8b98;
}

.marketing-campaign-grid {
  display:grid;
  gap:16px;
}

.marketing-campaign-card {
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:space-between;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-campaign-card h2 {
  margin:4px 0 8px;
}

.marketing-campaign-card p {
  margin:5px 0;
}

.marketing-campaign-card small {
  color:#718394;
}

.marketing-campaign-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 30px;
}

.marketing-campaign-summary > div {
  padding:18px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:12px;
}

.marketing-campaign-summary span {
  display:block;
  margin-bottom:5px;
  color:#718394;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.marketing-campaign-summary strong {
  color:#18244f;
}

.marketing-lot-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.marketing-lot-card {
  overflow:hidden;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-lot-card__image {
  display:flex;
  height:190px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#eaf3f9;
  color:#658096;
}

.marketing-lot-card__image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.marketing-lot-card__body {
  padding:18px;
}

.marketing-lot-card__body h3 {
  margin:5px 0 10px;
  color:#18244f;
}

.marketing-lot-card__body code {
  display:block;
  margin-top:12px;
  overflow-wrap:anywhere;
  color:#617486;
  font-size:11px;
}

.marketing-table-wrap {
  overflow-x:auto;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-table {
  width:100%;
  border-collapse:collapse;
}

.marketing-table th,
.marketing-table td {
  padding:14px 16px;
  border-bottom:1px solid #e7edf1;
  text-align:left;
  vertical-align:top;
}

.marketing-table th {
  background:#f5f8fa;
  color:#4d6274;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}

@media (max-width:900px) {
  .marketing-stat-grid,
  .marketing-campaign-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px) {
  .marketing-stat-grid,
  .marketing-campaign-summary,
  .marketing-lot-grid {
    grid-template-columns:1fr;
  }

  .marketing-campaign-card {
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Marketing campaign product editor */
.marketing-save-notice {
  margin:0 0 22px;
  padding:13px 16px;
  background:#e8f7ee;
  border:1px solid #b8e1c8;
  border-radius:10px;
  color:#235b39;
  font-weight:700;
}

.marketing-editor-toolbar {
  display:flex;
  gap:20px;
  align-items:center;
  justify-content:space-between;
  margin:0 0 18px;
  padding:16px 18px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:12px;
}

.marketing-editor-toolbar strong {
  display:block;
  color:#18244f;
}

.marketing-editor-toolbar span {
  display:block;
  margin-top:3px;
  color:#718394;
  font-size:13px;
}

.marketing-lot-card.is-selected {
  border-color:#168fd1;
  box-shadow:
    0 0 0 2px rgba(22,143,209,.10),
    0 8px 24px rgba(22,38,55,.06);
}

.marketing-lot-select {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:11px 14px;
  background:#f5f9fc;
  border-bottom:1px solid #dce5eb;
}

.marketing-lot-select label {
  display:flex;
  gap:8px;
  align-items:center;
  color:#314a5e;
  font-size:12px;
  font-weight:700;
}

.marketing-lot-select input[type="checkbox"] {
  width:18px;
  height:18px;
  margin:0;
}

.marketing-sort-field input {
  width:62px;
  padding:6px 7px;
  border:1px solid #cad8e2;
  border-radius:6px;
  background:#fff;
}

.marketing-editor-bottom {
  display:flex;
  justify-content:flex-end;
  padding:24px 0 10px;
}

@media (max-width:680px) {
  .marketing-editor-toolbar {
    align-items:flex-start;
    flex-direction:column;
  }

  .marketing-lot-select {
    align-items:flex-start;
    flex-direction:column;
  }
}

/* Marketing contact CSV import */
.marketing-import-panel {
  display:grid;
  grid-template-columns:
    minmax(0,1fr)
    minmax(320px,.8fr);
  gap:28px;
  margin:0 0 30px;
  padding:24px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-import-panel h2 {
  margin:5px 0 8px;
  color:#18244f;
}

.marketing-import-panel p {
  margin:0 0 8px;
  color:#617486;
}

.marketing-import-help {
  font-size:13px;
}

.marketing-import-panel form {
  display:grid;
  gap:14px;
}

.marketing-import-panel label {
  display:grid;
  gap:6px;
}

.marketing-import-panel label span {
  color:#435a6d;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-import-panel input[type="text"],
.marketing-import-panel input[type="file"] {
  width:100%;
  box-sizing:border-box;
  padding:10px 11px;
  background:#fff;
  border:1px solid #cbd9e3;
  border-radius:8px;
}

@media (max-width:760px) {
  .marketing-import-panel {
    grid-template-columns:1fr;
  }
}

/* Marketing campaign audience */
.marketing-audience-panel {
  margin:0 0 32px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-audience-panel__heading h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-audience-panel__heading p {
  margin:0;
  color:#617486;
}

.marketing-audience-panel form {
  display:flex;
  gap:14px;
  align-items:flex-end;
  margin-top:18px;
  padding:16px;
  background:#f5f9fc;
  border:1px solid #e0e8ee;
  border-radius:10px;
}

.marketing-audience-select {
  display:grid;
  flex:1;
  gap:6px;
}

.marketing-audience-select > span {
  color:#435a6d;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-audience-select select {
  width:100%;
  min-height:42px;
  padding:8px 10px;
  background:#fff;
  border:1px solid #c9d7e1;
  border-radius:8px;
  color:#263d51;
}

.marketing-audience-list {
  display:grid;
  gap:10px;
  margin-top:16px;
}

.marketing-audience-list__item {
  display:flex;
  gap:18px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid #dce5eb;
  border-radius:10px;
}

.marketing-audience-list__item.is-selected {
  border-color:#168fd1;
  box-shadow:
    inset 4px 0 0 #168fd1;
}

.marketing-audience-list__item > div:first-child {
  display:grid;
  gap:3px;
}

.marketing-audience-list__item strong {
  color:#18244f;
}

.marketing-audience-list__item span {
  color:#718394;
  font-size:12px;
}

.marketing-audience-counts {
  display:flex;
  gap:22px;
}

.marketing-audience-counts span {
  display:grid;
  text-align:center;
}

.marketing-audience-counts strong {
  font-size:18px;
}

.marketing-audience-empty {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:16px;
  padding:15px;
  background:#f5f9fc;
  border-radius:10px;
}

.marketing-audience-empty span {
  flex:1;
  color:#617486;
  font-size:13px;
}

@media (max-width:700px) {
  .marketing-audience-panel form,
  .marketing-audience-list__item,
  .marketing-audience-empty {
    align-items:stretch;
    flex-direction:column;
  }

  .marketing-audience-counts {
    justify-content:flex-start;
  }
}

/* Marketing test email */
.marketing-test-panel {
  display:grid;
  grid-template-columns:
    minmax(220px,.65fr)
    minmax(0,1.35fr);
  gap:26px;
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-test-panel h2 {
  margin:4px 0 7px;
  color:#18244f;
}

.marketing-test-panel p {
  margin:0;
  color:#617486;
  line-height:1.5;
}

.marketing-test-panel form {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:end;
}

.marketing-test-panel label {
  display:grid;
  gap:6px;
}

.marketing-test-panel label span {
  color:#435a6d;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-test-panel input {
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  padding:9px 10px;
  background:#fff;
  border:1px solid #c9d7e1;
  border-radius:8px;
}

.marketing-test-panel button {
  grid-column:1 / -1;
  justify-self:end;
}

.marketing-test-status {
  grid-column:1 / -1;
  color:#617486;
  font-size:12px;
  text-align:right;
}

.marketing-test-error {
  margin:0 0 20px;
  padding:13px 16px;
  background:#fff2f2;
  border:1px solid #efc4c8;
  border-radius:10px;
  color:#8b2630;
  font-weight:700;
}

@media (max-width:900px) {
  .marketing-test-panel {
    grid-template-columns:1fr;
  }
}

@media (max-width:700px) {
  .marketing-test-panel form {
    grid-template-columns:1fr;
  }

  .marketing-test-panel button {
    justify-self:stretch;
  }
}

/* Marketing test email */
.marketing-test-panel {
  display:grid;
  grid-template-columns:
    minmax(220px,.65fr)
    minmax(0,1.35fr);
  gap:26px;
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-test-panel h2 {
  margin:4px 0 7px;
  color:#18244f;
}

.marketing-test-panel p {
  margin:0;
  color:#617486;
  line-height:1.5;
}

.marketing-test-panel form {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  align-items:end;
}

.marketing-test-panel label {
  display:grid;
  gap:6px;
}

.marketing-test-panel label span {
  color:#435a6d;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-test-panel input {
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  padding:9px 10px;
  background:#fff;
  border:1px solid #c9d7e1;
  border-radius:8px;
}

.marketing-test-panel button {
  grid-column:1 / -1;
  justify-self:end;
}

.marketing-test-status {
  grid-column:1 / -1;
  color:#617486;
  font-size:12px;
  text-align:right;
}

.marketing-test-error {
  margin:0 0 20px;
  padding:13px 16px;
  background:#fff2f2;
  border:1px solid #efc4c8;
  border-radius:10px;
  color:#8b2630;
  font-weight:700;
}

@media (max-width:900px) {
  .marketing-test-panel {
    grid-template-columns:1fr;
  }
}

@media (max-width:700px) {
  .marketing-test-panel form {
    grid-template-columns:1fr;
  }

  .marketing-test-panel button {
    justify-self:stretch;
  }
}

/* Marketing campaign settings */
.marketing-settings-panel {
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-settings-panel__heading h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-settings-panel__heading p {
  margin:0;
  color:#617486;
}

.marketing-settings-panel form {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.marketing-settings-panel label {
  display:grid;
  gap:6px;
}

.marketing-settings-panel label > span {
  color:#435a6d;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-settings-panel input {
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  padding:9px 10px;
  background:#fff;
  border:1px solid #c9d7e1;
  border-radius:8px;
  color:#263d51;
}

.marketing-settings-wide {
  grid-column:1 / -1;
}

.marketing-settings-actions {
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-end;
  padding-top:3px;
}

@media (max-width:780px) {
  .marketing-settings-panel form {
    grid-template-columns:1fr;
  }

  .marketing-settings-wide,
  .marketing-settings-actions {
    grid-column:1;
  }

  .marketing-settings-actions {
    justify-content:stretch;
  }

  .marketing-settings-actions .button {
    width:100%;
  }
}

/* Marketing send readiness */
.marketing-readiness-panel {
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-readiness-header {
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
}

.marketing-readiness-header h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-readiness-header p {
  margin:0;
  color:#617486;
}

.marketing-readiness-status {
  padding:8px 12px;
  border-radius:999px;
  background:#fff0f1;
  border:1px solid #efc6ca;
  color:#9b2631;
  font-size:11px;
  font-weight:800;
  letter-spacing:.07em;
}

.marketing-readiness-status.is-ready {
  background:#eaf7ef;
  border-color:#b8dfc5;
  color:#24683c;
}

.marketing-readiness-grid {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.marketing-readiness-grid article {
  min-height:92px;
  box-sizing:border-box;
  padding:15px;
  background:#f7f9fb;
  border:1px solid #dce5eb;
  border-left:4px solid #c5d0d8;
  border-radius:9px;
}

.marketing-readiness-grid article.is-pass {
  border-left-color:#36a05c;
}

.marketing-readiness-grid article.is-fail {
  border-left-color:#c84a56;
}

.marketing-readiness-grid span {
  display:block;
  color:#718394;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.marketing-readiness-grid strong {
  display:block;
  margin-top:7px;
  color:#18244f;
  font-size:21px;
}

.marketing-readiness-grid small {
  display:block;
  margin-top:3px;
  color:#718394;
  font-size:11px;
}

.marketing-readiness-note {
  margin-top:16px;
  padding:12px 14px;
  background:#fff4f4;
  border-radius:8px;
  color:#8b3540;
  font-size:13px;
  font-weight:700;
}

.marketing-readiness-note.is-ready {
  background:#edf8f1;
  color:#286640;
}

@media (max-width:800px) {
  .marketing-readiness-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px) {
  .marketing-readiness-header {
    flex-direction:column;
  }

  .marketing-readiness-grid {
    grid-template-columns:1fr;
  }
}

/* Marketing send readiness */
.marketing-readiness-panel {
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-readiness-header {
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
}

.marketing-readiness-header h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-readiness-header p {
  margin:0;
  color:#617486;
}

.marketing-readiness-status {
  padding:8px 12px;
  border-radius:999px;
  background:#fff0f1;
  border:1px solid #efc6ca;
  color:#9b2631;
  font-size:11px;
  font-weight:800;
  letter-spacing:.07em;
}

.marketing-readiness-status.is-ready {
  background:#eaf7ef;
  border-color:#b8dfc5;
  color:#24683c;
}

.marketing-readiness-grid {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.marketing-readiness-grid article {
  min-height:92px;
  box-sizing:border-box;
  padding:15px;
  background:#f7f9fb;
  border:1px solid #dce5eb;
  border-left:4px solid #c5d0d8;
  border-radius:9px;
}

.marketing-readiness-grid article.is-pass {
  border-left-color:#36a05c;
}

.marketing-readiness-grid article.is-fail {
  border-left-color:#c84a56;
}

.marketing-readiness-grid span {
  display:block;
  color:#718394;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.marketing-readiness-grid strong {
  display:block;
  margin-top:7px;
  color:#18244f;
  font-size:21px;
}

.marketing-readiness-grid small {
  display:block;
  margin-top:3px;
  color:#718394;
  font-size:11px;
}

.marketing-readiness-note {
  margin-top:16px;
  padding:12px 14px;
  background:#fff4f4;
  border-radius:8px;
  color:#8b3540;
  font-size:13px;
  font-weight:700;
}

.marketing-readiness-note.is-ready {
  background:#edf8f1;
  color:#286640;
}

@media (max-width:800px) {
  .marketing-readiness-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px) {
  .marketing-readiness-header {
    flex-direction:column;
  }

  .marketing-readiness-grid {
    grid-template-columns:1fr;
  }
}

/* Marketing campaign queue */
.marketing-queue-panel {
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-queue-panel__heading h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-queue-panel__heading p {
  margin:0;
  color:#617486;
}

.marketing-queue-summary {
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}

.marketing-queue-summary > div {
  padding:14px;
  background:#f5f8fa;
  border:1px solid #dce5eb;
  border-radius:9px;
}

.marketing-queue-summary span {
  display:block;
  color:#718394;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}

.marketing-queue-summary strong {
  display:block;
  margin-top:5px;
  color:#18244f;
  font-size:22px;
}

.marketing-queue-panel form {
  display:flex;
  gap:12px;
  align-items:flex-end;
  margin-top:16px;
}

.marketing-queue-panel form label {
  flex:1;
  display:grid;
  gap:6px;
}

.marketing-queue-panel form label span {
  color:#435a6d;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}

.marketing-queue-panel form input {
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  padding:9px 10px;
  border:1px solid #c9d7e1;
  border-radius:8px;
}

.marketing-queue-warning {
  margin:14px 0 0;
  color:#7b6a3d;
  font-size:12px;
  line-height:1.5;
}

@media (max-width:700px) {
  .marketing-queue-summary {
    grid-template-columns:1fr;
  }

  .marketing-queue-panel form {
    flex-direction:column;
    align-items:stretch;
  }
}

/* Marketing send history */
.marketing-send-history {
  margin:0 0 28px;
  padding:22px;
  background:#fff;
  border:1px solid #dce5eb;
  border-radius:14px;
}

.marketing-send-history__heading h2 {
  margin:4px 0 6px;
  color:#18244f;
}

.marketing-send-history__heading p {
  margin:0;
  color:#617486;
}

.marketing-send-history__table-wrap {
  overflow-x:auto;
  margin-top:18px;
}

.marketing-send-history__table {
  width:100%;
  border-collapse:collapse;
  white-space:nowrap;
}

.marketing-send-history__table th {
  padding:10px 9px;
  border-bottom:1px solid #d9e3ea;
  color:#718394;
  font-size:10px;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.marketing-send-history__table td {
  padding:11px 9px;
  border-bottom:1px solid #edf1f4;
  color:#364e61;
  font-size:12px;
}

.marketing-job-status {
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#eef2f5;
  color:#52697b;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
}

.marketing-job-status--queued {
  background:#fff6df;
  color:#83631c;
}

.marketing-job-status--processing {
  background:#e7f2fb;
  color:#24608b;
}

.marketing-job-status--completed {
  background:#eaf7ef;
  color:#24683c;
}

.marketing-job-status--failed {
  background:#fff0f1;
  color:#9b2631;
}

.marketing-job-status--cancelled {
  background:#f1f1f3;
  color:#60636b;
}

.marketing-send-history__empty {
  margin-top:18px;
  padding:18px;
  background:#f6f8fa;
  border-radius:9px;
  color:#718394;
  font-size:13px;
}


/* GMD mobile event card correction */
@media (max-width: 720px) {
  .tenant-global-medical-devices .gmd-event-home {
    width: calc(100% - 2rem);
  }

  .tenant-global-medical-devices .gmd-event-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .tenant-global-medical-devices .gmd-event-card {
    width: 100%;
    min-width: 0;
  }

  .tenant-global-medical-devices .gmd-event-card__body {
    padding: 1rem 1.05rem 1.15rem;
  }

  .tenant-global-medical-devices .gmd-event-card__body h3 {
    min-height: 0;
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .tenant-global-medical-devices .gmd-event-card__button {
    width: 100%;
    margin-top: 0.85rem;
  }

  .tenant-global-medical-devices .market-footer__brand img {
    width: 92px;
    height: 92px;
  }
}

/* ==========================================================
   GMD — POWERED BY AUCTIONCODER
   ========================================================== */

.tenant-global-medical-devices .gmd-powered-by-auctioncoder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tenant-global-medical-devices .gmd-powered-by-auctioncoder a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.tenant-global-medical-devices .gmd-powered-by-auctioncoder a:hover,
.tenant-global-medical-devices .gmd-powered-by-auctioncoder a:focus {
  color: #ffffff;
  text-decoration: none;
}
