:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --line: #dde4ef;
  --line-soft: #e7edf6;
  --text: #0d1833;
  --text-muted: #647695;
  --accent: #2f6cf4;
  --accent-soft: #ecf2ff;
  --ok: #1d9e73;
  --danger: #c34f4f;
  --shadow-soft: 0 12px 34px rgba(16, 35, 70, 0.08);
  --shadow-sm: 0 6px 18px rgba(18, 39, 74, 0.08);
  --chart-trend: #294984;
  --chart-trend-point: #2f6cf4;
  --chart-trend-soft: rgba(47, 108, 244, 0.14);
  --chart-brand: rgba(47, 108, 244, 0.45);
  --chart-brand-line: rgba(47, 108, 244, 0.82);
  --font-sans: "Plus Jakarta Sans", "Noto Sans", sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 108, 244, 0.45) rgba(47, 108, 244, 0.1);
  /* iOS Safari: makes click events bubble from non-interactive elements */
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

body.auth-pending main.page {
  position: relative;
  min-height: 720px;
}

body.auth-pending main.page > * {
  visibility: hidden;
  pointer-events: none;
}

body.auth-pending main.page::before {
  content: "";
  position: absolute;
  z-index: 20;
  top: 34px;
  right: 0;
  left: 0;
  height: min(520px, calc(100vh - 150px));
  min-height: 360px;
  border: 1px solid rgba(23, 59, 120, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%) 0 0 / 220% 100%,
    radial-gradient(circle at 76% 28%, rgba(47, 108, 244, 0.08), transparent 31%),
    linear-gradient(145deg, #f8faff, #eef3fb);
  box-shadow: var(--shadow-soft);
  animation: access-shell-pulse 1.4s ease-in-out infinite;
}

body.auth-pending.public-preview-ready main.page > * {
  visibility: visible;
  pointer-events: auto;
}

body.auth-pending.public-preview-ready main.page::before {
  display: none;
}

body.auth-pending .access-paywall,
body.auth-pending .premium-locked-value,
body.auth-pending .searchable-option-locked {
  display: none !important;
}

@keyframes access-shell-pulse {
  0%, 100% { background-position: 100% 0, 0 0, 0 0; opacity: 0.78; }
  50% { background-position: -100% 0, 0 0, 0 0; opacity: 1; }
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: rgba(47, 108, 244, 0.1);
}

body::-webkit-scrollbar-thumb {
  background: rgba(47, 108, 244, 0.45);
  border-radius: 999px;
}

.language-menu {
  display: inline-flex;
  align-items: center;
}

body.modal-open {
  overflow: hidden;
}

.account-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.account-modal[hidden] {
  display: none;
}

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 48, 0.58);
  backdrop-filter: blur(8px);
}

.account-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(88dvh, 780px);
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(23, 59, 120, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(10, 32, 70, 0.24);
}

.account-auth-card {
  width: min(520px, 100%);
  padding: 0;
  overflow: hidden;
}

.account-auth-layout {
  display: block;
  min-height: 0;
}

.account-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  color: rgba(255, 255, 255, 0.8);
  background:
    radial-gradient(circle at 86% 12%, rgba(94, 147, 255, 0.48), transparent 34%),
    linear-gradient(150deg, #102b5c 0%, #173f83 58%, #235fca 100%);
}

.account-auth-monogram {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.account-auth-brand p {
  margin: 0 0 10px;
  color: #a9c8ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account-auth-brand h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  line-height: 0.98;
}

.account-auth-brand ul {
  display: grid;
  gap: 12px;
  margin: 34px 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.5;
}

.account-auth-brand li {
  position: relative;
  padding-left: 25px;
}

.account-auth-brand li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #8fdbbd;
  font-weight: 900;
}

.account-auth-brand small {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  line-height: 1.5;
}

.account-auth-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 42px 36px 32px;
}

.billing-card,
.admin-card,
.trial-request-card {
  width: min(100%, 720px);
}

.trial-request-card {
  width: min(100%, 540px);
}

.account-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #173b78;
  background: #eef3fb;
  font-size: 1.35rem;
  cursor: pointer;
}

.account-eyebrow,
.access-paywall-badge {
  margin: 0 0 8px;
  color: #5577ad;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-modal-card h2 {
  margin: 0 0 22px;
  color: #173b78;
}

.account-intro {
  margin: -12px 0 22px;
  color: #647695;
  font-size: 0.88rem;
  line-height: 1.6;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 12px;
  background: #eef3fb;
}

.account-tabs button,
.price-picker button {
  border: 0;
  border-radius: 9px;
  color: #496184;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.account-tabs button {
  padding: 10px;
}

.account-tabs button.is-active,
.price-picker button.is-active {
  color: #173b78;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 59, 120, 0.12);
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form[hidden] {
  display: none;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #314b70;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-form input,
.account-form textarea,
.admin-search input,
.admin-user-card input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #ccd7e8;
  border-radius: 10px;
  color: #18365f;
  background: #fff;
  font: inherit;
}

.account-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.account-form label small {
  color: #7c8da7;
  font-size: inherit;
  font-weight: 500;
}

.account-form input::placeholder,
.account-form textarea::placeholder {
  color: #9aa8bb;
}

.password-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.password-input-wrap input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #7183a0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(47, 108, 244, 0.18);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle-eye-off,
.password-toggle.is-visible .password-toggle-eye {
  display: none;
}

.password-toggle.is-visible .password-toggle-eye-off {
  display: block;
}

.account-form input:focus-visible,
.account-form textarea:focus-visible,
.admin-search input:focus-visible,
.admin-user-card input:focus-visible {
  border-color: var(--accent);
  outline: 3px solid rgba(47, 108, 244, 0.14);
}

.account-form > button,
.account-actions button,
.access-paywall button,
.admin-search button,
.admin-user-card button {
  padding: 11px 16px;
  border: 1px solid #173b78;
  border-radius: 10px;
  color: #fff;
  background: #173b78;
  font-weight: 800;
  cursor: pointer;
}

.account-form > button:disabled,
.account-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.account-form .account-link-button,
.account-actions .account-link-button {
  border-color: transparent;
  color: #476894;
  background: transparent;
}

.account-checkbox {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 500 !important;
  line-height: 1.45;
}

.account-checkbox input {
  width: 16px;
  margin-top: 2px;
}

.account-checkbox a,
.footer-legal-links a {
  color: #1f4b91;
  text-underline-offset: 2px;
}

.field-help {
  color: #687895;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.phone-input-group {
  display: grid;
  grid-template-columns: minmax(102px, 0.36fr) minmax(0, 1fr);
  gap: 8px;
}

.phone-input-group select,
.phone-input-group input {
  min-width: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.footer-legal-links a {
  font-size: 0.82rem;
}

.footer-payment-logos {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin-top: 16px;
}

.footer-payment-provider {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-payment-provider a {
  color: inherit;
  font-weight: 800;
}

.registration-legal-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.registration-legal-copy {
  color: #425a7d;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.55;
}

.legal-inline-link {
  display: inline;
  padding: 0;
  border: 0;
  color: #245bd4;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-inline-link:hover {
  color: #173b78;
}

.legal-inline-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(47, 108, 244, 0.18);
  outline-offset: 2px;
}

.legal-modal {
  z-index: 1300;
}

.legal-card {
  width: min(100%, 720px);
  max-height: min(90dvh, 820px);
}

.legal-card h2 {
  margin-bottom: 4px;
}

.legal-effective-date {
  margin: 0 0 20px;
  color: #70819c;
  font-size: 0.78rem;
}

.legal-tabs {
  position: sticky;
  top: -32px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px;
  border-radius: 12px;
  background: #eef3fb;
}

.legal-tabs button {
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: #496184;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.legal-tabs button[aria-selected="true"] {
  color: #173b78;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 59, 120, 0.12);
}

.legal-document[hidden] {
  display: none;
}

.legal-document h3 {
  margin: 0 0 16px;
  color: #173b78;
  font-size: 1.25rem;
}

.legal-document h4 {
  margin: 20px 0 6px;
  color: #243d63;
  font-size: 0.88rem;
}

.legal-document p {
  margin: 0;
  color: #5d708e;
  font-size: 0.82rem;
  line-height: 1.7;
}

.account-message {
  min-height: 20px;
  margin: 14px 0 0;
  color: #2a8465;
  font-size: 0.8rem;
}

.account-message.is-error {
  color: #b23c45;
}

.account-email {
  margin: 3px 0 0;
  color: #657794;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.account-support {
  margin: 18px 0 0;
  color: #657794;
  font-size: 0.82rem;
  text-align: center;
}

.account-support a,
.footer-copy a {
  color: #476894;
  font-weight: 700;
  text-decoration: none;
}

.account-support a:hover,
.footer-copy a:hover {
  text-decoration: underline;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 0 22px;
}

.account-identity h2 {
  margin: 0;
}

.account-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #c9d8f2;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #173b78, #2f6cf4);
  box-shadow: 0 8px 18px rgba(47, 108, 244, 0.2);
  font-size: 1.05rem;
  font-weight: 800;
}

.account-access-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  padding: 17px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  color: #526783;
  background: #f7f9fc;
}

.account-access-card.is-premium {
  border-color: rgba(29, 158, 115, 0.25);
  background: linear-gradient(145deg, #f3fbf8, #f8fbff);
}

.account-status-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #8a9ab1;
  font-size: 0.86rem;
  font-weight: 900;
}

.is-premium .account-status-icon {
  background: var(--ok);
  box-shadow: 0 6px 16px rgba(29, 158, 115, 0.2);
}

.account-access-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-access-card strong {
  color: #173b78;
}

.account-access-card span {
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.account-actions button {
  width: 100%;
}

.account-actions button:only-child,
.account-actions .account-link-button:last-child {
  grid-column: 1 / -1;
}

.account-actions .danger,
.admin-user-card .danger {
  border-color: #c84d58;
  color: #c13e49;
  background: #fff5f6;
}

.price-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 14px;
  background: #eef3fb;
}

.price-picker.single-price {
  grid-template-columns: 1fr;
  text-align: center;
}

.price-picker.single-price strong {
  padding: 14px 8px;
  border-radius: 9px;
  color: #173b78;
  background: #fff;
  box-shadow: 0 5px 16px rgba(23, 59, 120, 0.12);
  font-size: 1rem;
}

.price-picker button {
  padding: 14px 8px;
  font-size: 1rem;
}

.price-picker small {
  display: block;
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 600;
}

.billing-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #75561b;
  background: #fff8e8;
  font-size: 0.75rem;
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-form-grid .wide {
  grid-column: 1 / -1;
}

.admin-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-user-results {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-user-card {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #d8e1ee;
  border-radius: 13px;
  color: #61728b;
  font-size: 0.78rem;
}

.admin-user-card strong {
  color: #173b78;
  font-size: 0.9rem;
}

.admin-user-card form {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 7px;
  margin-top: 8px;
}

.access-paywall {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: -18px 18px 18px;
  padding: 52px 22px 26px;
  border: 1px solid #cfdaea;
  border-radius: 0 0 18px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(47, 108, 244, 0.14), transparent 58%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.86), #fff 32%);
}

.access-paywall[hidden] {
  display: none;
}

.section-paywall {
  margin: 24px 0 0;
  padding-top: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 59, 120, 0.1);
}

.access-paywall::before {
  content: "";
  width: 28px;
  height: 22px;
  margin-bottom: 3px;
  border: 2px solid #2f6cf4;
  border-radius: 7px;
  background: #eef4ff;
  box-shadow: 0 7px 18px rgba(47, 108, 244, 0.16);
}

.access-paywall::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 50%;
  width: 14px;
  height: 13px;
  border: 2px solid #2f6cf4;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  transform: translateX(-50%);
}

.access-paywall-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}

.access-paywall-actions .is-secondary {
  border-color: #c9d7ed;
  color: #294b80;
  background: #f4f7fc;
}

.access-paywall h3,
.access-paywall p {
  margin: 0;
}

.access-paywall h3 {
  color: #173b78;
}

.access-paywall p {
  max-width: 540px;
  color: #687991;
}

body.free-access #loadMoreBtn,
body.free-access #downloadBtn {
  display: none;
}

body.free-access .live-auctions-section,
body.free-access .seller-analysis-section,
body.free-access .model-directory-view {
  position: relative;
}

.admin-request-section {
  margin-bottom: 18px;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-section-heading h3 {
  margin: 0;
  color: #173b78;
  font-size: 1rem;
}

.admin-section-heading .account-link-button {
  width: auto;
  padding: 6px 9px;
}

.admin-request-results {
  display: grid;
  max-height: 380px;
  gap: 10px;
  overflow-y: auto;
}

.admin-request-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid #d8e1ee;
  border-radius: 13px;
  background: #f8faff;
}

.admin-request-card strong {
  color: #173b78;
}

.admin-request-card p,
.admin-request-card span {
  margin: 0;
  color: #61728b;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-request-actions {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 7px;
  margin-top: 4px;
}

.admin-request-actions input {
  min-width: 0;
  padding: 10px;
  border: 1px solid #ccd7e8;
  border-radius: 10px;
  color: #18365f;
  background: #fff;
}

.admin-request-actions button {
  padding: 10px 13px;
  border: 1px solid #173b78;
  border-radius: 10px;
  color: #fff;
  background: #173b78;
  font-weight: 800;
  cursor: pointer;
}

.admin-request-actions .danger {
  border-color: #c84d58;
  color: #c13e49;
  background: #fff5f6;
}

.admin-empty-state {
  padding: 18px;
  border: 1px dashed #cbd7e8;
  border-radius: 12px;
  color: #71829b;
  text-align: center;
  font-size: 0.8rem;
}

.admin-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: #8291a8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-divider::before,
.admin-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dce4ef;
}

body.free-access .live-auctions-section > .section-paywall,
body.free-access .model-directory-view > .section-paywall {
  position: relative;
  z-index: 4;
  margin-top: -155px;
}

body.free-access .seller-analysis-section > .section-paywall {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}

body.free-access .model-detail-paywall {
  position: relative;
  z-index: 4;
  margin-top: -92px;
}

body.free-access #resultsPaywall {
  z-index: 4;
  margin-top: -82px;
}

body.free-access .access-paywall {
  border-top-color: transparent;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 108, 244, 0.1), transparent 55%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9) 24%, #fff 48%);
}

.premium-locked-value {
  display: inline-block;
  color: #28476f !important;
  filter: blur(7px);
  opacity: 0.62;
  pointer-events: none;
  user-select: none;
}

.preview-fade-row,
.preview-fade-card,
.preview-fade-soft,
.preview-fade-hard,
.preview-fade-deep,
.preview-gradient-card {
  pointer-events: none;
  user-select: none;
}

.preview-fade-soft {
  filter: blur(1.25px);
  opacity: 0.9;
}

.preview-fade-hard {
  filter: blur(3.75px);
  opacity: 0.6;
}

.preview-fade-deep {
  filter: blur(11px);
  opacity: 0.14;
}

.preview-gradient-card {
  position: relative;
  overflow: hidden;
}

.preview-gradient-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(242, 246, 252, 0.02) 0%, rgba(242, 246, 252, 0.14) 32%, rgba(242, 246, 252, 0.48) 68%, rgba(242, 246, 252, 0.94) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 22%, rgba(0,0,0,0.34) 48%, rgba(0,0,0,0.76) 76%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.08) 22%, rgba(0,0,0,0.34) 48%, rgba(0,0,0,0.76) 76%, #000 100%);
}

.preview-fake-photo {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 9px;
  background: linear-gradient(145deg, #cbd7e8, #f2f5fa);
}

body.free-access #categorizedListingsPanel,
body.free-access .model-directory-view,
body.free-access .model-sales-section,
body.free-access .live-auctions-section {
  overflow: hidden;
}

body.free-access #categorizedListingsPanel::after,
body.free-access .model-directory-view::after,
body.free-access .model-sales-section::after,
body.free-access .live-auctions-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 230px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(248, 250, 253, 0), rgba(248, 250, 253, 0.3) 30%, rgba(248, 250, 253, 0.94) 78%, #f8fafd 100%);
}

body.free-access #categorizedListingsPanel,
body.free-access .model-sales-section,
body.free-access .live-auctions-section { position: relative; }

.locked-live-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
}

.locked-live-media {
  display: block;
  aspect-ratio: 1.3;
  background: linear-gradient(135deg, #dbe4f2, #f2f5fa 48%, #ced9e8);
}

.locked-live-copy {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.locked-live-copy i {
  display: block;
  width: 72%;
  height: 9px;
  border-radius: 999px;
  background: #d9e2ef;
}

.locked-live-copy i:nth-child(2) { width: 90%; }
.locked-live-copy i:nth-child(3) { width: 48%; }
.locked-live-copy-1 i:first-child { width: 64%; }
.locked-live-copy-1 i:nth-child(2) { width: 78%; }
.locked-live-copy-2 i:first-child { width: 56%; }

.model-preview-placeholder .model-card-media {
  background: linear-gradient(145deg, #cbd7e8, #f2f5fa 55%, #d6e0ed);
}

.model-preview-placeholder .model-card-body { gap: 12px; }
.model-preview-placeholder .model-card-body i {
  display: block;
  width: 68%;
  height: 10px;
  border-radius: 999px;
  background: #c9d5e5;
}
.model-preview-placeholder .model-card-body i:nth-child(2) { width: 88%; }
.model-preview-placeholder .model-card-body i:nth-child(3) { width: 48%; margin-top: auto; }

.locked-chart-preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(to bottom, transparent 24%, #e2e9f3 25%, transparent 26%, transparent 49%, #e2e9f3 50%, transparent 51%, transparent 74%, #e2e9f3 75%, transparent 76%),
    #f8faff;
}
.locked-chart-preview span {
  position: absolute;
  bottom: 42px;
  width: 15%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(to top, rgba(47, 108, 244, 0.22), rgba(47, 108, 244, 0.06));
  filter: blur(6px);
}
.locked-chart-preview span:nth-child(1) { left: 5%; height: 34%; }
.locked-chart-preview span:nth-child(2) { left: 24%; height: 58%; }
.locked-chart-preview span:nth-child(3) { left: 43%; height: 44%; }
.locked-chart-preview span:nth-child(4) { left: 62%; height: 72%; }
.locked-chart-preview span:nth-child(5) { left: 81%; height: 61%; }
.locked-chart-preview i {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  padding: 11px 16px;
  border: 1px solid #cdd9eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #244a83;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 28px rgba(19, 45, 87, 0.12);
}

body.free-access .model-reference-field { position: relative; }
body.free-access .model-reference-field select { cursor: not-allowed; opacity: 0.76; }
body.free-access .model-range-tabs { opacity: 0.5; pointer-events: none; }
body.free-access .model-reference-grid { overflow: hidden; }
body.free-access .model-reference-grid .preview-fade-row { margin-top: -2px; }
body.free-access .model-active-lots-grid,
body.free-access #modelActiveLotsGrid { position: relative; overflow: hidden; max-height: 250px; }
body.free-access #modelActiveLotsGrid::after,
body.free-access #modelSalesList::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.98));
}
body.free-access #modelSalesList { position: relative; overflow: hidden; max-height: 325px; }

.seller-search-bar.is-locked-control::after {
  content: "🔒";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}
.seller-search-bar.is-locked-control input { padding-right: 52px; background: #f4f7fb; cursor: not-allowed; }
.searchable-option-locked {
  justify-content: space-between;
  margin-top: 6px;
  border-top: 1px solid #d9e3f2;
  background: linear-gradient(180deg, rgba(241, 246, 253, 0.94), #fff);
  color: #6d82a2;
  cursor: not-allowed;
  opacity: 0.88;
}
.searchable-option-locked:disabled { color: #6d82a2; opacity: 0.88; }
.searchable-option-lock { margin-left: 12px; font-size: 0.82rem; }
.seller-preview-card { cursor: default; pointer-events: none; }
.seller-preview-card .seller-top-identity strong {
  filter: blur(6px);
  opacity: 0.62;
  user-select: none;
}
body.free-access .seller-profile { display: none; }

.landing-intro,
.market-insights-section,
.landing-cta,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  .account-modal {
    padding: 10px;
  }

  .account-modal-card {
    padding: 26px 18px;
    border-radius: 17px;
  }

  .account-auth-card {
    padding: 0;
    max-height: calc(100dvh - 20px);
  }

  .account-auth-layout {
    display: block;
    min-height: 0;
  }

  .account-auth-brand {
    display: block;
    padding: 24px 22px 20px;
  }

  .account-auth-monogram,
  .account-auth-brand ul,
  .account-auth-brand small {
    display: none;
  }

  .account-auth-brand p {
    margin-bottom: 5px;
  }

  .account-auth-brand h3 {
    max-width: 300px;
    font-size: 1.55rem;
    line-height: 1.02;
  }

  .account-auth-content,
  .account-auth-card:not(.is-signed-out) .account-auth-content {
    padding: 26px 20px 20px;
  }

  .account-modal-close {
    top: 10px;
    right: 10px;
  }

  .price-picker,
  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-form-grid .wide {
    grid-column: auto;
  }

  .admin-user-card form {
    grid-template-columns: 1fr;
  }

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

  .admin-request-actions input {
    grid-column: 1 / -1;
  }
}

.language-select {
  min-width: 108px;
  height: 32px;
  border: 1px solid rgba(156, 174, 204, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #173663;
  padding: 4px 30px 4px 12px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(5px);
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(47, 108, 244, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 108, 244, 0.1);
}

.header-language-menu {
  margin-left: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}

.header-inner {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 33px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(25, 76, 185, 0.28);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(145deg, #3f82ff 0%, #1f5ddb 48%, #123b98 100%);
  box-shadow: 0 6px 15px rgba(25, 76, 185, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover .logo-mark {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(25, 76, 185, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.logo-symbol {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-strap {
  fill: rgba(255, 255, 255, 0.26);
}

.logo-dial {
  fill: rgba(8, 37, 103, 0.34);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.1;
}

.logo-tick {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 0.9;
  stroke-linecap: round;
}

.logo-graph {
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-graph-point {
  fill: #8ed6ff;
  stroke: #fff;
  stroke-width: 0.7;
}

.logo-text {
  color: #121d38;
  font-size: clamp(1.15rem, 1.55vw, 1.6rem);
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
  flex: 1;
}

/* ---- Editorial landing page, adapted to the current blue dashboard theme ---- */
body.lots-view .home-only,
body.models-view .home-only,
body.live-view .home-only,
body.seller-view .home-only {
  display: none;
}

.hero.home-only {
  min-height: 790px;
  display: block;
  border: 0;
  background: #102d5c;
  isolation: isolate;
}

.hero.home-only::after {
  position: absolute;
  right: -180px;
  bottom: -270px;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(111, 157, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(47, 108, 244, 0.035);
  content: "";
}

.hero.home-only .hero-backdrop {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 31, 68, 0.97) 0%, rgba(17, 46, 94, 0.88) 43%, rgba(27, 68, 125, 0.43) 75%, rgba(11, 33, 70, 0.76) 100%),
    linear-gradient(0deg, rgba(9, 29, 64, 0.84) 0%, transparent 46%),
    url("assets/hero/watch-dial-macro-v2.webp") 72% center / cover no-repeat;
  filter: saturate(0.78) contrast(1.05);
  transform: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 72px));
  min-height: 790px;
  margin: 0 auto;
  padding: 84px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.hero.home-only .hero-content {
  width: auto;
  padding: 0;
  text-align: left;
}

.hero.home-only .hero-chip,
.landing-kicker,
.market-card-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8fb0ff;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero.home-only .hero-chip::before,
.landing-kicker::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero.home-only .hero-content h1 {
  max-width: 760px;
  margin: 28px 0 0;
  color: #f7f9ff;
  font-family: var(--font-sans);
  font-size: clamp(3.9rem, 6.4vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero.home-only .hero-content h1 span,
.hero.home-only .hero-content h1 em {
  display: block;
}

.hero.home-only .hero-content h1 em {
  color: #8fb0ff;
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero.home-only .hero-content > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(235, 242, 255, 0.72);
  font-size: clamp(0.98rem, 1.25vw, 1.17rem);
  line-height: 1.75;
}

.hero-action-row {
  max-width: 700px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero.home-only .hero-search {
  width: auto;
  min-width: 0;
  flex: 1 1 500px;
  margin: 0;
  padding: 6px 6px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(15, 37, 84, 0.62);
  box-shadow: 0 18px 48px rgba(1, 7, 23, 0.26);
  backdrop-filter: blur(14px);
}

.hero.home-only #searchInput {
  min-height: 46px;
  color: #f8faff;
  font-size: 0.86rem;
}

.hero.home-only #searchInput::placeholder {
  color: rgba(235, 242, 255, 0.58);
}

.hero.home-only .hero-search button {
  width: auto;
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 10px;
  background: #4f7ff3;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero.home-only .hero-search button:hover {
  background: #6b94f7;
}

.hero-secondary-link {
  flex: 0 0 auto;
  color: rgba(242, 246, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hero-secondary-link b {
  margin-left: 8px;
  color: #8fb0ff;
  font-weight: inherit;
}

.hero-secondary-link:hover {
  color: #fff;
}

.hero-proof {
  margin-top: 27px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: rgba(226, 235, 255, 0.48);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-proof span + span::before {
  margin-right: 18px;
  color: rgba(143, 176, 255, 0.85);
  content: "•";
}

.hero-market-card {
  align-self: end;
  margin-bottom: 10px;
  padding: 24px;
  border: 1px solid rgba(180, 204, 255, 0.23);
  border-radius: 22px;
  background: rgba(18, 49, 99, 0.87);
  box-shadow: 0 32px 80px rgba(0, 5, 20, 0.38);
  backdrop-filter: blur(22px);
}

.market-card-topline,
.market-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.market-card-topline strong {
  display: block;
  margin-top: 8px;
  color: #f7f9ff;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.market-live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(228, 237, 255, 0.56);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.market-live-label i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #4dd6a5;
  box-shadow: 0 0 0 4px rgba(77, 214, 165, 0.12);
}

.hero-market-card .market-summary-grid {
  margin: 24px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(191, 210, 255, 0.14);
  border-left: 1px solid rgba(191, 210, 255, 0.14);
}

.hero-market-card .market-summary-card {
  padding: 17px;
  border: 0;
  border-right: 1px solid rgba(191, 210, 255, 0.14);
  border-bottom: 1px solid rgba(191, 210, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.hero-market-card .market-summary-card > span,
.hero-market-card .market-summary-card small {
  color: rgba(226, 235, 255, 0.48);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-market-card .market-summary-card strong {
  display: block;
  margin: 10px 0 7px;
  color: #f4f7ff;
  font-family: var(--font-sans);
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  font-weight: 650;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.market-card-footer {
  color: rgba(226, 235, 255, 0.38);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-ribbon {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
  padding: 20px max(36px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid #d9e2f1;
  background: #edf2fb;
}

.brand-ribbon > span {
  flex: 0 0 auto;
  color: #7789a7;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-ribbon > div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand-ribbon a {
  color: #263c65;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
}

.brand-ribbon a:hover {
  color: var(--accent);
}

.landing-intro {
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
  padding: 118px 0 108px;
  display: grid;
  grid-template-columns: minmax(330px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(70px, 9vw, 130px);
}

.landing-kicker {
  margin: 0;
  color: #3568d3;
}

.landing-intro-copy h2,
.market-insights-header h2,
.landing-cta h2 {
  margin: 24px 0 0;
  color: #111e3b;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.landing-intro-copy h2 em {
  color: #3568d3;
  font-weight: 600;
}

.landing-intro-copy > p:last-child {
  max-width: 570px;
  margin: 32px 0 0;
  color: #647695;
  font-size: 1rem;
  line-height: 1.82;
}

.landing-pillars {
  border-top: 1px solid #cfd9e8;
}

.landing-pillars article {
  position: relative;
  padding: 30px 0 32px 138px;
  border-bottom: 1px solid #cfd9e8;
}

.landing-pillars article > span {
  position: absolute;
  top: 35px;
  left: 0;
  color: #7890b6;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.landing-pillars h3 {
  margin: 0;
  color: #152545;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  font-weight: 700;
}

.landing-pillars p {
  max-width: 500px;
  margin: 11px 0 0;
  color: #6e7f9c;
  font-size: 0.88rem;
  line-height: 1.7;
}

.market-insights-section.home-only {
  width: 100%;
  margin: 0;
  padding: 108px max(36px, calc((100vw - 1240px) / 2));
  background: linear-gradient(145deg, #173b6d 0%, #28558f 100%);
}

.market-insights-header {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 60px;
}

.market-insights-header .landing-kicker {
  color: #8fb0ff;
}

.market-insights-header h2 {
  color: #f3f6ff;
}

.market-insights-header > p {
  margin: 0 0 5px;
  color: rgba(225, 235, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.75;
}

.market-insights-section.home-only .market-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.market-insights-section.home-only .market-chart-card {
  min-height: 310px;
  padding: 25px;
  border-color: rgba(181, 205, 255, 0.14);
  border-radius: 18px;
  background: rgba(20, 51, 100, 0.82);
  box-shadow: 0 24px 50px rgba(1, 8, 25, 0.18);
}

.market-insights-section.home-only .market-brand-card {
  grid-column: 1 / -1;
}

.market-insights-section.home-only .market-chart-heading h3 {
  color: #edf2ff;
  font-family: var(--font-serif);
  font-size: 1.24rem;
}

.market-insights-section.home-only .market-chart-heading span,
.market-insights-section.home-only .market-bar-label,
.market-insights-section.home-only .market-bar-value,
.market-insights-section.home-only .market-chart-empty {
  color: rgba(225, 235, 255, 0.5);
}

.market-insights-section.home-only .market-chart-gridline {
  stroke: rgba(210, 224, 255, 0.1);
}

.market-insights-section.home-only .market-line-path {
  stroke: #7da4ff;
}

.market-insights-section.home-only .market-line-area {
  fill: rgba(88, 132, 234, 0.18);
}

.market-insights-section.home-only .market-line-point {
  fill: #1d4478;
  stroke: #8fb0ff;
}

.market-insights-section.home-only .market-line-chart .market-chart-label {
  font-size: 10px;
}

.market-insights-section.home-only .market-column-bar,
.market-insights-section.home-only .market-bar-fill,
.market-insights-section.home-only .market-brand-list .market-bar-fill {
  fill: #668fe9;
  background: linear-gradient(90deg, #3b69ce, #82a7fa);
}

.market-insights-section.home-only .market-chart-value,
.market-insights-section.home-only .market-chart-label {
  fill: rgba(229, 237, 255, 0.68);
}

.market-insights-section.home-only .market-bar-track {
  background: rgba(218, 231, 255, 0.1);
}

.landing-cta {
  width: min(1240px, calc(100% - 72px));
  margin: 92px auto;
  padding: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: 60px;
  overflow: hidden;
  border: 1px solid #cfdbef;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(88, 132, 234, 0.18), transparent 34%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.landing-cta h2 {
  max-width: 720px;
  font-size: clamp(2.9rem, 4.8vw, 4.8rem);
}

.landing-plan-copy {
  min-width: 0;
  max-width: 760px;
}

.landing-plan-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: #526783;
  font-size: 0.98rem;
  line-height: 1.8;
}

.landing-plan-features {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #243d63;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.landing-plan-features li {
  position: relative;
  padding-left: 24px;
}

.landing-plan-features li::before {
  position: absolute;
  left: 0;
  color: #2f6cf4;
  content: "✓";
}

.landing-plan-disclaimer {
  max-width: 720px;
  margin: 24px 0 0;
  color: #73839b;
  font-size: 0.78rem;
  line-height: 1.7;
}

.landing-plan-card {
  width: 100%;
  min-width: 0;
  max-width: 390px;
  padding: 32px;
  border: 1px solid #c7d6ee;
  border-radius: 20px;
  background: #f7f9fd;
  box-shadow: 0 18px 45px rgba(23, 59, 120, 0.1);
}

.landing-plan-card > span {
  color: #60799e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 14px 0 18px;
}

.landing-plan-price strong {
  color: #173b78;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
}

.landing-plan-price small,
.landing-plan-card > p:not(.landing-plan-price, .landing-plan-provider) {
  color: #60728d;
  font-size: 0.78rem;
  line-height: 1.65;
}

.landing-plan-card .landing-cta-primary {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid #315fc4;
  border-radius: 12px;
  color: #fff;
  background: #2f6cf4;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.landing-plan-card .landing-cta-primary:hover {
  background: #245bd4;
}

.landing-plan-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
}

.landing-plan-legal a,
.landing-plan-provider a {
  color: #315fc4;
  font-size: 0.72rem;
  font-weight: 700;
  text-underline-offset: 2px;
}

.landing-plan-provider {
  margin: 18px 0 0;
  color: #71819a;
  font-size: 0.7rem;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .hero-shell {
    width: min(100% - 44px, 1050px);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.76fr);
    gap: 42px;
  }

  .hero-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero.home-only .hero-search {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 900px) {
  .hero.home-only,
  .hero-shell {
    min-height: auto;
  }

  .hero-shell {
    width: calc(100% - 38px);
    padding: 88px 0 70px;
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero.home-only .hero-content h1 {
    font-size: clamp(3.75rem, 12vw, 6.1rem);
  }

  .hero-market-card {
    width: min(100%, 620px);
    margin: 0 0 0 auto;
  }

  .brand-ribbon {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 26px 24px;
  }

  .brand-ribbon > div {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
  }

  .brand-ribbon a {
    white-space: nowrap;
  }

  .landing-intro {
    width: calc(100% - 40px);
    padding: 90px 0;
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .market-insights-section.home-only {
    padding: 88px 22px;
  }

  .market-insights-header {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .market-insights-section.home-only .market-chart-grid {
    grid-template-columns: 1fr;
  }

  .market-insights-section.home-only .market-brand-card {
    grid-column: auto;
  }

  .landing-cta {
    width: calc(100% - 40px);
    margin: 72px auto;
    padding: 50px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .landing-plan-card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    width: calc(100% - 28px);
    padding: 66px 0 50px;
    gap: 44px;
  }

  .hero.home-only .hero-content h1 {
    margin-top: 22px;
    font-size: clamp(3.1rem, 15.5vw, 4.7rem);
    line-height: 0.96;
  }

  .hero.home-only .hero-content > p {
    margin-top: 22px;
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .hero-action-row {
    margin-top: 25px;
    gap: 18px;
  }

  .hero.home-only .hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 14px;
  }

  .hero.home-only .hero-search button {
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .hero.home-only .hero-search button span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .hero-proof {
    gap: 10px 16px;
  }

  .hero-proof span + span::before {
    display: none;
  }

  .hero-market-card {
    padding: 17px;
    border-radius: 17px;
  }

  .market-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-market-card .market-summary-card {
    padding: 14px 12px;
  }

  .market-card-footer span:last-child {
    display: none;
  }

  .brand-ribbon {
    gap: 16px;
    padding: 22px 18px;
  }

  .brand-ribbon > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .brand-ribbon a {
    min-width: 0;
    font-size: 0.76rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .landing-intro-copy h2,
  .market-insights-header h2,
  .landing-cta h2 {
    font-size: clamp(2.65rem, 12.5vw, 3.8rem);
  }

  .landing-pillars article {
    padding: 27px 0;
  }

  .landing-pillars article > span {
    position: static;
    display: block;
    margin-bottom: 14px;
  }

  .market-insights-section.home-only .market-chart-card {
    padding: 18px 14px;
  }

  .landing-cta {
    width: calc(100% - 28px);
    padding: 34px 22px;
    border-radius: 20px;
  }

  .landing-plan-card {
    width: 100%;
    padding: 26px 20px;
  }
}

.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbd7ea;
  border-radius: 12px;
  background: var(--surface);
  color: #22385f;
  cursor: pointer;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  color: #637390;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #22385f;
}

.main-nav a.is-active {
  color: #245bd4;
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #cbd7ea;
  border-radius: 999px;
  background: var(--surface);
  color: #334a70;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.header-login-btn.is-authenticated {
  border-color: rgba(29, 158, 115, 0.35);
  color: #167a5a;
  background: #f0faf6;
}

.header-login-btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.68;
}

.header-login-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.header-login-btn:focus-visible {
  outline: 3px solid rgba(47, 108, 244, 0.22);
  outline-offset: 2px;
}

.page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(74vh, 760px);
  display: grid;
  place-items: center;
  border-bottom: 1px solid #d7e0ee;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      rgba(6, 17, 39, 0.88) 0%,
      rgba(9, 28, 68, 0.78) 50%,
      rgba(6, 17, 39, 0.92) 100%
    ),
    url("./assets/hero/watch-dial-macro-v2.webp")
      center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(920px, calc(100% - 28px));
  color: #f5f8ff;
  padding: 42px 0;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(245, 248, 255, 0.9);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-content h1 {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(3rem, 6vw, 5.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #f4f7ff;
}

.hero-content h1 > span {
  display: block;
}

.hero-content p {
  margin: 16px auto 0;
  color: rgba(235, 242, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.8rem);
  max-width: 700px;
  line-height: 1.45;
}

.hero-search {
  margin: 24px auto 0;
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(19, 34, 73, 0.66);
  padding: 8px 8px 8px 18px;
  box-shadow: 0 16px 40px rgba(3, 8, 20, 0.26);
}

#searchInput {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #f5f8ff;
  font-size: 1.01rem;
}

#searchInput::placeholder {
  color: rgba(235, 242, 255, 0.72);
}

.hero-search button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
}

.trending,
.results-section,
.footer-inner {
  width: min(1380px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.trending {
  padding-top: 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  color: #111e3b;
}

.section-head p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.section-head a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.trend-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 18px;
}

.watch-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: #3362d4;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.change {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.change.up {
  background: rgba(29, 158, 115, 0.13);
  color: #1b8d67;
}

.change.down {
  background: rgba(195, 79, 79, 0.13);
  color: #bf4e4e;
}

.watch-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.watch-card h3 {
  margin: 11px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0e1a35;
}

.watch-card p {
  margin: 4px 0 2px;
  color: #667895;
  font-size: 0.92rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--surface);
}

.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 0 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.results-section {
  margin-top: 34px;
  margin-bottom: 38px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.results-section[hidden] {
  display: none;
}

.results-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.results-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f1e3d;
}

.results-banner {
  margin-top: 14px;
  border: 1px solid #d7e3fb;
  background: #f2f6ff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.results-banner-label {
  font-weight: 800;
  color: #1d4fb5;
}

#resultsBanner {
  color: #3a4d70;
  font-size: 0.9rem;
}

.btn-primary {
  border: none;
  border-radius: 10px;
  height: 44px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #2559d1;
}

.btn-ghost {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  background: #fff;
  color: #22385f;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.search-row .btn-ghost {
  height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* ---- Search studio modal ---- */
.studio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0px, 3vw, 28px);
  overflow-y: auto;
  animation: saatFade 0.15s ease;
}

.studio-modal:not([hidden]) {
  display: flex;
}

.studio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, 0.55);
}

.studio-modal-card {
  position: relative;
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow: visible;
  margin-top: min(6vh, 60px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(6, 14, 30, 0.28);
  padding: 22px;
  animation: saatPop 0.2s cubic-bezier(0.16, 0.84, 0.44, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 108, 244, 0.42) rgba(47, 108, 244, 0.08);
}

.studio-modal-card::-webkit-scrollbar {
  width: 10px;
}

.studio-modal-card::-webkit-scrollbar-track {
  background: rgba(47, 108, 244, 0.08);
}

.studio-modal-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(47, 108, 244, 0.42);
}

.studio-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.studio-modal-close:hover {
  background: var(--accent-soft);
}

@keyframes saatPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes saatFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.search-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: end;
}

.search-row input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #c9d4e6;
  background: #fff;
  color: #1f355a;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.search-row input:focus {
  outline: 2px solid rgba(47, 108, 244, 0.24);
  outline-offset: 1px;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-right: 44px;
}

.studio-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0f1e3d;
}

.studio-header p {
  margin: 0;
  color: var(--ok);
  font-size: 0.88rem;
  font-weight: 600;
}

.upload-row {
  display: none;
}

.upload-main {
  flex: 1 1 620px;
}

.upload-main label {
  display: block;
  color: #22385f;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 7px;
}

#fileInput {
  width: 100%;
  border: 1px dashed #bac8dd;
  border-radius: 12px;
  padding: 11px;
  background: #f7faff;
  color: #23395d;
  font: inherit;
}

.help-text {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

#downloadBtn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: #122347;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#downloadBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.filter-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(6, minmax(125px, 1fr));
  gap: 10px;
}

.filter-row > label:has(.searchable-select.is-open) {
  position: relative;
  z-index: 31;
}

.results-actions {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-search-input {
  flex: 1;
  width: auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.results-search-input:focus {
  outline: 2px solid rgba(47, 108, 244, 0.2);
  border-color: #9db4e4;
}

.hero {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ---- Home market insights ---- */
.market-insights-section {
  width: min(1100px, calc(100% - 56px));
  margin: 36px auto 48px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.market-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.market-summary-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.market-summary-card > span,
.market-summary-card small {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-summary-card > span { font-weight: 700; }
.market-summary-card strong {
  display: block;
  margin: 9px 0 6px;
  overflow: hidden;
  color: #132249;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.market-chart-card {
  min-height: 282px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.market-brand-card { grid-column: 1 / -1; min-height: auto; }
.market-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.market-chart-heading h3 {
  margin: 0;
  color: #132249;
  font-size: 0.96rem;
}
.market-chart-heading span {
  color: var(--text-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.market-bar-chart,
.market-brand-list {
  display: grid;
  gap: 12px;
}
.market-bar-chart { min-height: 210px; }
.market-svg-chart {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}
.market-chart-gridline { stroke: #e7edf7; stroke-width: 1; stroke-dasharray: 3 5; }
.market-line-path {
  fill: none;
  stroke: #2f6cf4;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market-line-area {
  fill: rgba(47, 108, 244, 0.14);
}
.market-line-point { fill: #fff; stroke: #2f6cf4; stroke-width: 3; }
.market-column-bar { fill: #2f6cf4; }
.market-chart-value {
  fill: #253a62;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
}
.market-chart-label {
  fill: #607391;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.market-bar-entry {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.market-brand-list .market-bar-entry { grid-template-columns: minmax(115px, 0.55fr) minmax(0, 1fr) auto; }
.market-bar-label,
.market-bar-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-bar-label { color: #607391; font-size: 0.75rem; }
.market-bar-value { color: #253a62; font-size: 0.77rem; }
.market-bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0fa;
}
.market-bar-fill {
  display: block;
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6cf4, #769dff);
}
.market-brand-list .market-bar-fill { background: linear-gradient(90deg, #294984, #4f7de0); }
.market-chart-empty { margin: 42px 0; color: var(--text-muted); font-size: 0.86rem; text-align: center; }

body.lots-view .hero,
body.lots-view .market-insights-section,
body.lots-view .footer,
body.seller-view .market-insights-section {
  display: none;
}
body.home-view .results-section { display: none; }
body.lots-view .results-section {
  width: min(1280px, calc(100% - 56px));
  margin: 38px auto 48px;
}

/* ---- Model intelligence ---- */
.model-explorer-section[hidden] { display: none; }
body.models-view .page {
  min-height: calc(100vh - 74px);
  background: #f4f7fb;
}
body.models-view .hero,
body.models-view .market-insights-section,
body.models-view #resultsSection,
body.models-view .live-auctions-section,
body.models-view .seller-analysis-section,
body.models-view .footer {
  display: none;
}
.model-explorer-section {
  width: min(1320px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px 0 76px;
}
.model-directory-view[hidden],
.model-detail-view[hidden] { display: none; }
.model-directory-hero {
  position: relative;
  min-height: 270px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(78, 121, 214, 0.46), transparent 32%),
    radial-gradient(circle at 12% 100%, rgba(198, 166, 101, 0.18), transparent 36%),
    linear-gradient(135deg, #0b1730, #142b55 65%, #18366b);
  color: #fff;
  box-shadow: 0 26px 70px rgba(13, 33, 69, 0.2);
}
.model-directory-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, 0.025), 0 0 0 124px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.model-directory-hero > * { position: relative; z-index: 1; }
.model-eyebrow,
.model-section-kicker {
  margin: 0 0 10px;
  color: #c7a868;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.model-directory-hero h1,
.model-detail-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.035em;
}
.model-directory-hero > div:first-child > p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(236, 242, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}
.model-directory-hero-note {
  min-width: 210px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.model-directory-hero-note span,
.model-directory-hero-note strong { display: block; }
.model-directory-hero-note span { color: rgba(236, 242, 255, 0.62); font-size: 0.72rem; }
.model-directory-hero-note strong { margin-top: 6px; font-family: var(--font-serif); font-size: 1.25rem; }
.model-directory-kpis {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: -22px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: 0 16px 42px rgba(16, 35, 70, 0.12);
}
.model-directory-kpis article {
  min-width: 0;
  padding: 20px 22px;
  background: #fff;
}
.model-directory-kpis span { display: block; color: var(--text-muted); font-size: 0.74rem; font-weight: 700; }
.model-directory-kpis strong { display: block; margin-top: 7px; color: #102345; font-size: 1.65rem; }
.model-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(170px, 0.3fr) minmax(210px, 0.34fr);
  align-items: end;
  gap: 14px;
  margin-top: 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.model-directory-toolbar label,
.model-reference-field { text-transform: none; letter-spacing: 0; }
.model-directory-toolbar label > span,
.model-reference-field > span {
  display: block;
  margin-bottom: 7px;
  color: #607391;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.model-directory-toolbar input,
.model-directory-toolbar select,
.model-reference-field select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ccd7e9;
  border-radius: 12px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 0.88rem;
}
.model-directory-toolbar input:focus,
.model-directory-toolbar select:focus,
.model-reference-field select:focus {
  outline: 3px solid rgba(47, 108, 244, 0.14);
  border-color: #8aa9e7;
}
.model-directory-toolbar .searchable-select {
  width: 100%;
  margin-top: 0;
}
.model-directory-toolbar .searchable-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #ccd7e9;
  border-radius: 12px;
  background: #fff;
  color: #172746;
  font: inherit;
  font-size: 0.88rem;
}
.model-directory-toolbar .searchable-menu {
  z-index: 60;
}
.model-directory-heading,
.model-lots-head,
.model-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.model-directory-heading { margin: 44px 0 20px; }
.model-directory-heading h2,
.model-panel-head h2,
.model-lots-head h2 {
  margin: 0;
  color: #112348;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
}
.model-directory-heading > span,
.model-lots-head > span {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.model-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.model-directory-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.model-directory-card:hover {
  transform: translateY(-5px);
  border-color: #aebfdd;
  box-shadow: 0 22px 48px rgba(16, 35, 70, 0.15);
}
.model-directory-card:focus-visible { outline: 3px solid rgba(47, 108, 244, 0.3); outline-offset: 3px; }
.model-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #edf2fa, #dfe7f5);
}
.model-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.38s ease;
}
.model-directory-card:hover .model-card-media img { transform: scale(1.035); }
.model-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(27, 54, 101, 0.22);
  font-family: var(--font-serif);
  font-size: 5rem;
}
.model-card-body { display: flex; flex-direction: column; min-height: 170px; padding: 17px 18px 18px; }
.model-card-brand {
  overflow: hidden;
  color: #2f6cf4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.model-card-body > strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  color: #112348;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.1;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.model-card-price { display: block; margin-top: auto; padding-top: 16px; color: #112348; font-size: 1.13rem; font-weight: 800; }
.model-card-body > small { margin-top: 2px; color: var(--text-muted); font-size: 0.67rem; }
.model-card-meta { margin-top: 11px; color: #647795; font-size: 0.72rem; }
.model-directory-empty,
.model-chart-empty,
.model-lots-empty,
.model-reference-empty {
  margin: 0;
  padding: 34px;
  border: 1px dashed #c9d6e8;
  border-radius: 14px;
  color: var(--text-muted);
  text-align: center;
}
.model-directory-empty { grid-column: 1 / -1; }
.model-directory-more-row { margin-top: 28px; text-align: center; }
.model-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}
.model-pagination[hidden] { display: none; }
.model-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #c5d1e4;
  border-radius: 999px;
  background: #fff;
  color: #294a82;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.model-pagination button:hover:not(:disabled),
.model-pagination button.is-current {
  border-color: #2f6cf4;
  background: #2f6cf4;
  color: #fff;
}
.model-pagination button:disabled { cursor: default; opacity: 0.38; }
.model-pagination-gap { min-width: 22px; color: var(--text-muted); text-align: center; }
.model-secondary-button,
.model-back-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #bdcae0;
  border-radius: 999px;
  background: #fff;
  color: #294a82;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.model-secondary-button:hover,
.model-back-button:hover { border-color: #2f6cf4; color: #2f6cf4; }
.model-secondary-button[hidden] { display: none; }

.model-back-button { margin-bottom: 18px; }
.model-detail-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.12fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 16%, rgba(65, 105, 190, 0.42), transparent 34%),
    linear-gradient(135deg, #09152d, #142b55 72%, #17376d);
  color: #fff;
  box-shadow: 0 26px 70px rgba(13, 33, 69, 0.2);
}
.model-detail-copy > p:not(.model-eyebrow) {
  max-width: 590px;
  margin: 20px 0 0;
  color: rgba(236, 242, 255, 0.72);
  line-height: 1.7;
}
.model-reference-field { display: block; max-width: 420px; margin-top: 30px; }
.model-reference-field > span { color: rgba(236, 242, 255, 0.62); }
.model-reference-field .searchable-select { width: 100%; margin-top: 0; }
.model-reference-field .searchable-trigger {
  min-height: 48px;
  border-color: rgba(155, 184, 232, 0.7);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.active-search-summary {
  flex: 1 0 100%;
  margin: 2px 0 0;
  color: #4b6285;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.45;
}
.model-reference-field .searchable-trigger.has-value { color: #fff; }
.model-reference-field .searchable-trigger-chevron { color: rgba(255, 255, 255, 0.72); }
.model-reference-field .searchable-select.is-open .searchable-trigger {
  border-color: #7ba5f7;
  box-shadow: 0 0 0 3px rgba(47, 108, 244, 0.22);
}
.model-reference-field .searchable-menu { color: #172746; }
.model-reference-field select {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}
.model-reference-field select option { color: #172746; background: #fff; }
.model-detail-signal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  max-width: 520px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.model-detail-signal > span { color: rgba(236, 242, 255, 0.58); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.model-detail-signal > strong { color: #d6ba80; font-size: 1.08rem; }
.model-detail-signal > strong.is-rising { color: #8de0bd; }
.model-detail-signal > strong.is-cooling { color: #f0a7a2; }
.model-detail-signal > small { grid-column: 1 / -1; color: rgba(236, 242, 255, 0.62); font-size: 0.72rem; }
.model-hero-figure { min-width: 0; margin: 0; }
.model-hero-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}
.model-hero-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.model-hero-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,0.22); font-family: var(--font-serif); font-size: 8rem; }
.model-hero-placeholder[hidden],
.model-hero-image-wrap img[hidden] { display: none; }
.model-hero-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 39, 0.82);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.model-hero-figure figcaption { margin-top: 11px; color: rgba(236, 242, 255, 0.55); font-size: 0.68rem; text-align: center; }
.model-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.model-metric-grid article {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.model-metric-grid span { display: block; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; }
.model-metric-grid strong { display: block; overflow: hidden; margin-top: 8px; color: #102345; font-size: 1.14rem; text-overflow: ellipsis; white-space: nowrap; }
.model-insight-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr); gap: 18px; }
.model-panel,
.model-lots-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.model-panel-head { align-items: flex-start; }
.model-reference-price-label {
  padding-top: 5px;
  color: #245bd4;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.model-panel-summary { margin: 12px 0 0; color: var(--text-muted); font-size: 0.78rem; }
.model-range-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 999px; background: #edf2fa; }
.model-range-tabs button {
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5a6e8c;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}
.model-range-tabs button.is-active { background: #fff; color: #245bd4; box-shadow: 0 3px 10px rgba(22, 53, 103, 0.12); }
.model-price-trend { min-height: 300px; margin-top: 12px; }
.model-trend-svg { width: 100%; height: 310px; display: block; overflow: visible; }
.model-chart-gridline { stroke: #dfe7f3; stroke-width: 1; stroke-dasharray: 4 6; }
.model-trend-area { fill: rgba(47, 108, 244, 0.11); }
.model-trend-line { fill: none; stroke: #2f6cf4; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.model-trend-point { fill: #fff; stroke: #2f6cf4; stroke-width: 2.5; }
.model-chart-axis { fill: #6a7c98; font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.model-chart-empty { margin-top: 36px; }
.model-reference-grid { display: grid; gap: 9px; margin-top: 22px; max-height: 390px; overflow-y: auto; padding-right: 3px; }
.model-reference-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px 13px;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #f9fbfe;
  color: #172746;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.model-reference-card:hover,
.model-reference-card.is-active { border-color: #8facdf; background: #eef4ff; }
.model-reference-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-reference-card > span { color: #245bd4; font-size: 0.85rem; font-weight: 800; }
.model-reference-card small { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.68rem; }
.model-lots-section { margin-top: 18px; }
.model-lots-head { margin-bottom: 17px; }
.model-lot-list { display: grid; gap: 8px; }
.model-lot-row {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(190px, 1.2fr) minmax(130px, 0.75fr) minmax(130px, 0.65fr) minmax(130px, 0.7fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 11px 13px 11px 16px;
  border: 1px solid #dfe6f1;
  border-radius: 13px;
  background: #fff;
  color: #172746;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.model-lot-row .model-lot-thumb { width: 54px; height: 54px; border-radius: 9px; }
.model-lot-row:hover { transform: translateX(3px); border-color: #aebfdd; background: #f8faff; }
.model-lot-identity,
.model-lot-price,
.model-lot-date { min-width: 0; display: flex; flex-direction: column; }
.model-lot-identity strong { overflow: hidden; color: #102345; font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }
.model-lot-identity small,
.model-lot-price small,
.model-lot-date small { color: var(--text-muted); font-size: 0.67rem; }
.model-lot-price strong,
.model-lot-date strong { margin-top: 3px; color: #102345; font-size: 0.86rem; }
.model-lot-activity { color: #5f7391; font-size: 0.74rem; }
.model-lot-action { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf3ff; color: #245bd4; font-weight: 800; }
.model-sales-section .model-directory-more-row { margin-top: 18px; }

@media (max-width: 1180px) {
  .model-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-insight-grid { grid-template-columns: 1fr; }
  .model-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
}

@media (max-width: 900px) {
  .model-explorer-section { width: calc(100% - 22px); }
  .model-directory-hero { min-height: 250px; align-items: flex-start; flex-direction: column; }
  .model-directory-hero-note { min-width: 0; }
  .model-directory-toolbar { grid-template-columns: minmax(0, 1fr) minmax(170px, 0.45fr); }
  .model-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-detail-hero { grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr); gap: 28px; }
  .model-lot-row { grid-template-columns: 50px minmax(160px, 1fr) minmax(110px, 0.7fr) minmax(120px, 0.65fr) 34px; }
  .model-lot-row .model-lot-thumb { width: 50px; height: 50px; }
  .model-lot-date { display: none; }
}

@media (max-width: 640px) {
  .model-explorer-section { width: calc(100% - 14px); padding: 10px 0 38px; }
  .model-directory-hero { min-height: 310px; padding: 30px 22px; border-radius: 20px; }
  .model-directory-hero h1,
  .model-detail-hero h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .model-directory-hero > div:first-child > p:last-child { margin-top: 16px; font-size: 0.9rem; }
  .model-directory-kpis { width: calc(100% - 18px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -14px; border-radius: 14px; }
  .model-directory-kpis article { padding: 14px; }
  .model-directory-kpis strong { font-size: 1.3rem; }
  .model-directory-toolbar { grid-template-columns: 1fr; gap: 11px; margin-top: 26px; padding: 13px; border-radius: 14px; }
  .model-search-field { grid-column: auto; }
  .model-directory-heading { align-items: flex-start; margin-top: 30px; }
  .model-directory-heading > span { display: none; }
  .model-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .model-directory-card { border-radius: 14px; }
  .model-card-body { min-height: 145px; padding: 12px; }
  .model-card-body > strong { font-size: 1rem; }
  .model-card-price { padding-top: 12px; font-size: 0.95rem; }
  .model-card-meta { font-size: 0.62rem; }
  .model-back-button { margin: 4px 0 12px; }
  .model-detail-hero { grid-template-columns: 1fr; gap: 28px; padding: 30px 22px; border-radius: 20px; }
  .model-hero-figure { width: min(100%, 420px); margin: 0 auto; }
  .model-detail-signal { grid-template-columns: 1fr; }
  .model-detail-signal > small { grid-column: auto; }
  .model-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
  .model-metric-grid article { padding: 13px; border-radius: 12px; }
  .model-metric-grid strong { font-size: 0.94rem; }
  .model-panel,
  .model-lots-section { padding: 15px; border-radius: 15px; }
  .model-insight-grid > .model-panel,
  .model-price-trend,
  .model-reference-grid { min-width: 0; width: 100%; }
  .model-panel-head { align-items: flex-start; flex-direction: column; }
  .model-range-tabs { width: 100%; overflow-x: auto; }
  .model-range-tabs button { flex: 1 0 auto; }
  .model-price-trend { min-height: 0; overflow: hidden; }
  .model-trend-svg { width: 100%; min-width: 0; max-width: 100%; height: auto; aspect-ratio: 900 / 330; overflow: hidden; }
  .model-reference-grid {
    grid-template-columns: 1fr;
    max-height: 235px;
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
  }
  .model-reference-card { gap: 3px 8px; padding: 8px 10px; }
  .model-reference-card strong { font-size: 0.9rem; }
  .model-reference-card > span { font-size: 0.78rem; }
  .model-reference-card small { font-size: 0.64rem; }
  .model-lots-head { align-items: flex-start; }
  .model-lots-head > span { display: none; }
  .model-lot-row { grid-template-columns: 44px minmax(0, 1fr) auto 30px; gap: 9px; min-height: 62px; padding: 9px; }
  .model-lot-row .model-lot-thumb { width: 44px; height: 44px; border-radius: 7px; }
  .model-lot-activity,
  .model-lot-date { display: none; }
  .model-lot-price { align-items: flex-end; }
  .model-lot-price strong { font-size: 0.78rem; }
}

/* ---- Live auction market ---- */
.live-auctions-section[hidden] { display: none; }
body.live-view .page {
  min-height: calc(100vh - 74px);
  background: var(--bg);
}
body.live-view .hero,
body.live-view .market-insights-section,
body.live-view #resultsSection,
body.live-view .seller-analysis-section,
body.live-view .footer {
  display: none;
}
.live-auctions-section {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding: 42px 0 70px;
  color: var(--text);
}
.live-auctions-head { margin-bottom: 28px; }
.live-auctions-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.live-auctions-head h2 {
  margin: 0;
  color: #132249;
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  line-height: 0.95;
}
.live-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px);
  gap: 16px;
  margin-bottom: 28px;
}
.live-summary-grid article {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.live-summary-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.live-summary-grid strong {
  color: #132249;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}
.live-sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.live-sort-tabs button,
.live-load-more {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #cbd7ea;
  border-radius: 999px;
  background: var(--surface);
  color: #435879;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.live-sort-tabs button:hover,
.live-load-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.live-sort-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.live-auction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 20px;
}
.live-auction-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.live-auction-card:hover {
  transform: translateY(-4px);
  border-color: #b7c8e7;
  box-shadow: 0 18px 42px rgba(16, 35, 70, 0.14);
}
.live-auction-card:focus-visible {
  outline: 3px solid rgba(47, 108, 244, 0.28);
  outline-offset: 3px;
}
.live-auction-media {
  position: relative;
  display: block;
  aspect-ratio: 1.08;
  overflow: hidden;
  background: #eaf1fc;
}
.live-auction-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.live-auction-card:hover .live-auction-media img { transform: scale(1.025); }
.live-countdown,
.live-watched {
  position: absolute;
  top: 13px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(19, 34, 73, 0.88);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.live-countdown { left: 13px; }
.live-watched {
  right: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--danger);
}
.live-heart-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.live-auction-card-body {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  padding: 15px 16px 16px;
}
.live-auction-brand {
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-auction-title {
  display: -webkit-box;
  overflow: hidden;
  color: #132249;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.live-auction-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.live-auction-card-footer strong { color: #132249; font-size: 1.14rem; }
.live-auction-card-footer span { color: var(--text-muted); font-size: 0.76rem; }
.live-load-more-row { margin-top: 32px; text-align: center; }
.live-load-more { min-width: 160px; }
.live-load-more[hidden] { display: none; }
.live-auction-empty {
  grid-column: 1 / -1;
  margin: 56px 0;
  color: var(--text-muted);
  text-align: center;
}

.seller-analysis-section {
  width: min(1100px, calc(100% - 56px));
  margin: 28px auto 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.seller-analysis-section[hidden] { display: none; }
body.seller-view .hero,
body.seller-view #resultsSection,
body.seller-view .footer {
  display: none;
}
body.seller-view .seller-analysis-section {
  margin-top: 24px;
}
.seller-analysis-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.seller-analysis-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seller-analysis-head h2 { margin: 0; font-size: 1.8rem; color: #132249; }
.seller-analysis-head > p { margin: 0; color: var(--text-muted); font-size: 0.86rem; }
.seller-search-bar {
  position: relative;
  margin-top: 20px;
}
.seller-search-bar input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  text-transform: none;
}
.seller-search-bar input:focus { outline: 2px solid rgba(47, 108, 244, 0.2); border-color: #9db4e4; }
.seller-search-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: min(440px, 58vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(12, 28, 60, 0.18);
}
.seller-search-results[hidden] { display: none; }
.seller-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.seller-search-result:hover,
.seller-search-result:focus-visible { background: var(--accent-soft); outline: none; }
.seller-search-group-label {
  padding: 9px 12px 5px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seller-country-result .seller-search-result-icon { color: var(--accent); }
.seller-search-result-icon { color: var(--text-muted); font-size: 1.2rem; }
.seller-search-result-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.seller-search-result-meta { color: var(--text-muted); font-size: 0.76rem; white-space: nowrap; }
.seller-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.seller-kpi {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}
.seller-kpi span { display: block; color: var(--text-muted); font-size: 0.78rem; }
.seller-kpi strong { display: block; margin-top: 7px; color: #102345; font-size: 1.8rem; }
.seller-top-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.seller-top-section[hidden] { display: none; }
.seller-top-head p {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.seller-top-head h3 {
  margin: 0;
  color: #132249;
  font-family: var(--font-serif);
  font-size: 1.55rem;
}
.seller-top-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.seller-top-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.seller-top-card:hover,
.seller-top-card:focus-visible {
  border-color: #aac0e9;
  background: var(--accent-soft);
  outline: none;
  transform: translateY(-1px);
}
.seller-top-rank {
  color: #7c91b4;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}
.seller-top-identity,
.seller-top-activity {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.seller-top-identity strong {
  overflow: hidden;
  color: #14274a;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seller-top-identity small,
.seller-top-activity small {
  color: var(--text-muted);
  font-size: 0.68rem;
}
.seller-top-activity {
  justify-items: end;
  text-align: right;
}
.seller-top-activity strong {
  color: #245bd4;
  font-size: 1.05rem;
}
.seller-profile {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.seller-profile[hidden] { display: none; }
.seller-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.seller-profile-head p { margin: 0 0 4px; color: var(--accent); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.seller-profile-head h2 { margin: 0; color: #132249; font-size: 1.8rem; }
.seller-profile-head span { display: block; margin-top: 4px; color: var(--text-muted); }
.seller-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}
.seller-profile-metrics article { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.seller-profile-metrics span { display: block; color: var(--text-muted); font-size: 0.78rem; }
.seller-profile-metrics strong { display: block; margin-top: 6px; color: #102345; font-size: 1.45rem; }
.seller-profile > h3 { margin: 0 0 12px; color: #132249; }
.seller-lot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.seller-lot-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.seller-lot-card:hover,
.seller-lot-card:focus-visible {
  border-color: #9cb7e7;
  box-shadow: 0 12px 28px rgba(18, 39, 74, 0.13);
  outline: none;
  transform: translateY(-2px);
}
.seller-lot-card img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; background: var(--surface-soft); }
.seller-lot-card-body { padding: 11px 13px; }
.seller-lot-card h4 { margin: 0; color: #132249; font-size: 0.95rem; line-height: 1.35; }
.seller-lot-card-meta { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--text-muted); font-size: 0.78rem; }
.seller-lot-card-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seller-lot-external {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(12, 25, 52, 0.78);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(5px);
}
.seller-lot-external svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seller-lot-external:hover { background: var(--accent); }
.seller-lot-external:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.72); outline-offset: 2px; }
.seller-lot-favorites {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(12, 25, 52, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(5px);
}
.seller-lot-favorites svg { width: 15px; height: 15px; fill: currentColor; }
.seller-lot-actions { display: flex; justify-content: flex-end; margin-top: 11px; }
.seller-lot-detail {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #b9c9e5;
  border-radius: 8px;
  background: var(--surface);
  color: #245bd4;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}
.seller-lot-detail:hover { background: var(--accent-soft); }

@media (max-width: 720px) {
  .seller-top-list { grid-template-columns: 1fr; }
  .seller-top-card { padding: 12px; }
}

label {
  color: #627593;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

select,
.filter-row > label > input,
.searchable-trigger {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #c9d4e6;
  background: #fff;
  color: #1f355a;
  font: inherit;
}

select:focus,
.filter-row > label > input:focus,
.searchable-trigger:focus-visible,
.searchable-select-search:focus,
#fileInput:focus {
  outline: 2px solid rgba(47, 108, 244, 0.24);
  outline-offset: 1px;
}

.native-filter-select {
  display: none;
}

.searchable-select {
  position: relative;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f355a;
}

.searchable-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  cursor: pointer;
  min-height: 42px;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.searchable-trigger:disabled {
  cursor: not-allowed;
}

.searchable-trigger.has-value {
  color: #18335f;
}

.searchable-trigger-chevron {
  font-size: 0.75rem;
  color: #6f83a7;
}

.searchable-select.is-open .searchable-trigger {
  border-color: #97b0d8;
  box-shadow: 0 0 0 2px rgba(47, 108, 244, 0.12);
}

.searchable-select.is-disabled .searchable-trigger {
  background: #f3f6fb;
  border-color: #d9e1ee;
  color: #8697b3;
  box-shadow: none;
}

.searchable-select.is-disabled .searchable-trigger-chevron {
  color: #9aabc4;
}

.searchable-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c9d4e6;
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 8px;
  z-index: 30;
}

.searchable-select-search {
  width: 100%;
  margin-top: 0;
  border-radius: 8px;
  border: 1px solid #c9d4e6;
  padding: 9px 10px;
  font: inherit;
  color: #21385f;
  background: #f9fbff;
  text-transform: none;
  letter-spacing: normal;
}

.searchable-options {
  margin-top: 7px;
  max-height: min(220px, 40vh);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  contain: layout paint;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (pointer: coarse) {
  .studio-modal,
  .studio-modal-card {
    animation: none;
  }

  .searchable-menu {
    box-shadow: 0 8px 20px rgba(16, 35, 70, 0.14);
  }
}

.searchable-option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d3459;
  font: inherit;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.searchable-option:hover {
  background: rgba(47, 108, 244, 0.08);
}

.searchable-option.is-selected {
  background: #edf3ff;
  color: #1d4fb5;
  font-weight: 700;
}

.searchable-option-mark {
  font-size: 0.67rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2c60ca;
}

.searchable-option-empty {
  padding: 8px 10px;
  color: #6f83a7;
  font-size: 0.82rem;
}

.kpi-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.kpi p {
  margin: 0;
  color: #6e81a0;
  font-size: 0.8rem;
}

.kpi h2 {
  margin: 8px 0 0;
  color: #102345;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.charts-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.chart-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 12px;
}

.chart-panel h3 {
  margin: 2px 0 10px;
  color: #13244a;
  font-size: 0.95rem;
}

.chart-box {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vh, 320px);
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

.table-panel {
  margin-top: 12px;
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.table-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lots-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f8fd;
}

.lots-view-option {
  display: inline-grid;
  width: 32px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5f7290;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.lots-view-option svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lots-view-option:hover {
  color: #245bd4;
}

.lots-view-option.is-active {
  color: #173b78;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(16, 35, 70, 0.1);
}

.table-head h3 {
  margin: 0;
  color: #112344;
  font-size: 1.05rem;
}

.table-head p {
  margin: 0;
  color: #687c9b;
  font-size: 0.85rem;
}

.results-sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #526581;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

#resultsSortSelect {
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: #22385f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

#resultsSortSelect:focus {
  outline: 2px solid rgba(47, 108, 244, 0.2);
  border-color: #9db4e4;
}

.table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: none;
  overflow-y: visible;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 108, 244, 0.42) rgba(47, 108, 244, 0.08);
}

.table-wrap::-webkit-scrollbar {
  width: 10px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(47, 108, 244, 0.08);
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(47, 108, 244, 0.42);
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.84rem;
}

/* Fixed column plan: photo | brand | model | reference | price | year | date |
   set type | outcome. A colgroup keeps headers and body cells on the same
   track and reserves enough space for thumbnails without overlapping Brand. */
#resultsTable col.col-photo { width: 76px; }
#resultsTable col.col-brand { width: 9.5%; }
#resultsTable col.col-model { width: 14%; }
#resultsTable col.col-reference { width: 22%; }
#resultsTable col.col-price { width: 10%; }
#resultsTable col.col-year { width: 9.5%; }
#resultsTable col.col-date { width: 11%; }
#resultsTable col.col-set { width: 8%; }
#resultsTable col.col-outcome { width: 8%; }

#resultsTable td:nth-child(6),
#resultsTable td:nth-child(7) {
  white-space: nowrap;
}

#resultsTable td:nth-child(6) {
  font-weight: 700;
  color: #102345;
}

.th-photo,
.td-photo {
  width: auto;
}

.td-photo {
  padding: 8px;
  overflow: hidden;
}

.row-thumb {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #eaf1fc;
}

#resultsTable .cell-brand {
  overflow-wrap: normal;
  word-break: normal;
}

.row-thumb-empty {
  background: #eaf1fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aebcd6' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='m21 17-5.5-5.5L11 16'/%3E%3C/svg%3E") center/28px no-repeat;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e7edf6;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf1fc;
  color: #5b708f;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
}

.sortable-th-label {
  display: inline-block;
  vertical-align: middle;
}

.sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.72rem;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.02em);
}

.sortable-th:hover {
  color: #2c4f88;
}

.sortable-th.is-active-sort {
  color: #1f4585;
}

a {
  color: #2f6cf4;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(29, 158, 115, 0.14);
  border: 1px solid rgba(29, 158, 115, 0.26);
  color: #1b8d67;
  font-size: 0.74rem;
}

.pill.warning {
  background: rgba(47, 108, 244, 0.12);
  border-color: rgba(47, 108, 244, 0.26);
  color: #2d61c9;
}

.pill.danger {
  background: rgba(195, 79, 79, 0.12);
  border-color: rgba(195, 79, 79, 0.26);
  color: #ab4141;
}

.footer {
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 30px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-mark {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #132249;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
}

.footer-copy {
  display: grid;
  gap: 4px;
  text-align: right;
}

@media (max-width: 1200px) {
  .live-auction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trend-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .filter-row {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

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

@media (max-width: 900px) {
  .seller-analysis-section { width: calc(100% - 22px); }
  .market-insights-section,
  body.lots-view .results-section,
  .live-auctions-section { width: calc(100% - 22px); }
  .live-auction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-chart-grid { grid-template-columns: 1fr; }
  .market-brand-card { grid-column: auto; }
  .seller-analysis-head { align-items: flex-start; flex-direction: column; }
  .seller-kpi-grid { grid-template-columns: 1fr; }
  .seller-profile-head { flex-direction: column; }
  .seller-profile-metrics { grid-template-columns: 1fr; }
  .seller-lot-grid { grid-template-columns: 1fr; }

  .header-inner {
    min-height: 74px;
    width: calc(100% - 22px);
    position: relative;
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .mobile-nav-toggle {
    display: grid;
    order: -1;
    margin-left: 0;
  }

  .header-actions {
    margin-left: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 32px rgba(16, 35, 70, 0.14);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: var(--accent-soft);
  }

  .main-nav a.is-active::after {
    display: none;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-content h1 {
    line-height: 0.95;
  }

  .trending,
  .results-section,
  .footer-inner {
    width: calc(100% - 22px);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-row > label:first-child {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }

  table {
    min-width: 860px;
  }
}

@media (max-width: 640px) {
  .live-auctions-section { padding-top: 30px; }
  .live-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .live-sort-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .live-sort-tabs button { flex: 0 0 auto; }
  .live-auction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .live-auction-media { aspect-ratio: 1.18; }
  .market-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .market-summary-card { padding: 14px; }
  .header-inner {
    width: calc(100% - 12px);
    min-height: 84px;
    gap: 5px;
    padding-top: 8px;
  }

  .brand {
    gap: 7px;
  }

  .logo-mark {
    width: 32px;
    height: 26px;
    border-radius: 7px;
    font-size: 0.58rem;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .header-actions {
    margin-left: 0;
    gap: 4px;
  }

  .mobile-nav-toggle {
    margin-left: 0;
  }

  .header-language-menu {
    margin-left: 0;
  }

  .language-select {
    min-width: 88px;
    height: 27px;
    padding: 2px 24px 2px 8px;
    font-size: 0.65rem;
  }

  .header-login-btn {
    min-height: 27px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .hero-chip {
    font-size: 0.65rem;
  }

  .hero {
    min-height: 62vh;
  }

  .hero-content {
    padding: 30px 0 20px;
  }

  .hero-content h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-search {
    padding-left: 12px;
  }

  .hero-search button {
    width: 40px;
    height: 40px;
  }

  #searchInput {
    font-size: 0.95rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .studio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .upload-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .upload-main {
    flex: 1 1 auto;
  }

  #downloadBtn {
    width: 100%;
  }

  .trend-grid,
  .filter-row,
  .kpi-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row > label:first-child {
    grid-column: auto;
  }

  .search-row .btn-primary,
  .search-row .btn-ghost {
    width: 100%;
  }

  .studio-modal-card {
    margin-top: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 0;
    padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 48px));
    scroll-padding-bottom: max(72px, calc(env(safe-area-inset-bottom) + 48px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .studio-modal-card .searchable-select.is-open .searchable-menu {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 6px;
  }

  .results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .results-actions {
    width: 100%;
  }

  .results-search-input {
    flex: 1;
    width: auto;
  }

  .table-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .table-head-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .results-sort-label { width: 100%; }
  #resultsSortSelect { min-width: 0; max-width: 100%; }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 8px 7px;
  }

  th {
    font-size: 0.68rem;
  }

  /* Lots is intentionally denser on phones while remaining part of the
     page's normal scroll flow. */
  body.lots-view .results-section {
    width: calc(100% - 10px);
    margin-top: 9px;
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 12px;
  }

  body.lots-view .results-head {
    gap: 5px;
  }

  body.lots-view .results-head h2 {
    font-size: 1rem;
  }

  body.lots-view .active-search-summary {
    margin-top: 3px;
    font-size: 0.68rem;
  }

  body.lots-view .results-actions {
    gap: 5px;
  }

  body.lots-view .results-search-input {
    min-height: 32px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 0.75rem;
  }

  body.lots-view .results-actions .btn-ghost {
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  body.lots-view .results-banner {
    margin-top: 7px;
    padding: 7px 9px;
    gap: 3px 8px;
    border-radius: 9px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  body.lots-view #resultsBanner {
    font-size: 0.7rem;
  }

  body.lots-view .kpi-grid {
    margin-top: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.lots-view .kpi {
    min-height: 54px;
    padding: 7px 8px;
    border-radius: 8px;
  }

  body.lots-view .kpi p {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  body.lots-view .kpi h2 {
    margin-top: 3px;
    font-size: 1.05rem;
    line-height: 1.1;
  }

  body.lots-view .table-panel {
    margin-top: 7px;
  }

  body.lots-view .table-head {
    flex-flow: row wrap;
    align-items: center;
    gap: 4px 7px;
  }

  body.lots-view .table-head h3 {
    font-size: 0.82rem;
  }

  body.lots-view .table-head-actions {
    width: auto;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  body.lots-view #tableMeta,
  body.lots-view .results-sort-label > span {
    display: none;
  }

  body.lots-view .results-sort-label {
    width: auto;
  }

  body.lots-view #resultsSortSelect {
    width: min(148px, 46vw);
    min-height: 30px;
    padding: 0 24px 0 8px;
    border-radius: 7px;
    font-size: 0.67rem;
  }

  body.lots-view .table-wrap {
    margin-top: 5px;
    max-height: none;
    overflow-y: visible;
    border-radius: 8px;
  }

  body.lots-view table {
    min-width: 460px;
    font-size: 0.6rem;
  }

  body.lots-view #resultsTable th:nth-child(1) { width: 28px; }
  body.lots-view #resultsTable th:nth-child(2) { width: 36px; }
  body.lots-view #resultsTable th:nth-child(3) { width: 10%; }
  body.lots-view #resultsTable th:nth-child(4) { width: 17%; }
  body.lots-view #resultsTable th:nth-child(5) { width: 15%; }
  body.lots-view #resultsTable th:nth-child(6) { width: 14%; }
  body.lots-view #resultsTable th:nth-child(7) { width: 12%; }
  body.lots-view #resultsTable th:nth-child(8) { width: 9%; }
  body.lots-view #resultsTable th:nth-child(9) { width: 14%; }

  body.lots-view th,
  body.lots-view td {
    padding: 5px 4px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  body.lots-view #resultsTable td:nth-child(5) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.lots-view th {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }

  body.lots-view .th-photo,
  body.lots-view .td-photo {
    width: 36px;
  }

  body.lots-view .td-photo {
    padding: 4px;
  }

  body.lots-view .row-thumb {
    width: 28px;
    height: 28px;
    border-radius: 5px;
  }

  body.lots-view .pill {
    padding: 2px 5px;
    font-size: 0.58rem;
  }

  body.lots-view .pagination-row {
    padding-top: 6px;
  }

  body.lots-view .pagination-row .btn-ghost {
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.68rem;
  }
}

/* ---- Clickable table rows ---- */
#resultsTable tbody tr.row-clickable {
  cursor: pointer;
}

/* ---- Lot detail modal ---- */
.lot-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 3vw, 32px);
}
.lot-modal:not([hidden]) {
  display: flex;
}
.lot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, 0.62);
  backdrop-filter: blur(4px);
}
.lot-modal-card {
  position: relative;
  width: min(1040px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.lot-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.lot-modal-close:hover {
  background: var(--accent-soft);
}
.lot-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 34px);
  padding: clamp(18px, 3vw, 34px);
}
@media (max-width: 820px) {
  .lot-modal-body {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.lot-gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lotMainImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease;
  transform-origin: center;
}
.lot-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 24, 51, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lot-nav:hover {
  background: rgba(13, 24, 51, 0.8);
}
.lot-prev { left: 10px; }
.lot-next { right: 10px; }
.lot-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.lot-zoom-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.lot-zoom-btn:hover { background: var(--accent-soft); }
.lot-counter { margin-left: 6px; }
.lot-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.lot-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
  cursor: pointer;
}
.lot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lot-thumb.is-active {
  border-color: var(--accent);
}

/* Info side */
.lot-info h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
.lot-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
}
.lot-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 18px;
}
.lot-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.lot-external-link:hover {
  background: #245bd4;
}
.lot-external-link[hidden] {
  display: none;
}
.lot-sale-date {
  margin-left: auto;
  color: #526581;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}
.lot-sale-date[hidden] {
  display: none;
}
@media (max-width: 520px) {
  .lot-action-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .lot-sale-date { margin-left: 0; }
}
.lot-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.lot-spec {
  background: var(--surface);
  padding: 12px 14px;
}
.lot-spec-wide {
  grid-column: 1 / -1;
}
.lot-spec-label {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lot-spec-value {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-word;
}
@media (max-width: 640px) {
  .lot-modal {
    align-items: stretch;
    padding: 0;
  }

  .lot-modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    border: 0;
    border-radius: 0;
  }

  .lot-modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px 10px 22px;
  }

  .lot-gallery,
  .lot-info {
    width: 100%;
    min-width: 0;
  }

  .lot-modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 19px;
  }

  .lot-gallery-main {
    height: clamp(190px, 32dvh, 280px);
    aspect-ratio: auto;
    border-radius: 10px;
  }

  #lotMainImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .lot-nav {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .lot-prev { left: 6px; }
  .lot-next { right: 6px; }

  .lot-gallery-controls {
    gap: 7px;
    margin: 7px 0;
    font-size: 0.75rem;
  }

  .lot-zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 15px;
  }

  .lot-thumbs {
    gap: 6px;
    padding-bottom: 3px;
  }

  .lot-thumb {
    width: 46px;
    height: 46px;
    border-radius: 7px;
  }

  .lot-info h2 {
    margin-bottom: 3px;
    font-size: 1.22rem;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    overflow: hidden;
  }

  .lot-subtitle {
    margin-bottom: 10px;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .lot-action-row {
    align-items: center;
    flex-flow: row wrap;
    gap: 6px 10px;
    margin: -2px 0 10px;
  }

  .lot-external-link {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .lot-sale-date {
    margin-left: auto;
    font-size: 0.7rem;
  }

  .lot-spec-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    border-radius: 9px;
  }

  .lot-spec {
    min-width: 0;
    padding: 8px 9px;
  }

  .lot-spec-label {
    margin-bottom: 2px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .lot-spec-value {
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

}

/* Final phone layout: keep every primary action and lot card inside the viewport. */
@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 16px);
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 7px 0;
  }

  .mobile-nav-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .brand { min-width: 0; }
  .logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions { min-width: 0; margin-left: auto; }
  .language-select {
    width: 78px;
    min-width: 0;
    height: 34px;
    padding-right: 20px;
  }
  .header-login-btn {
    min-width: 36px;
    min-height: 34px;
    justify-content: center;
    padding: 0 9px;
  }
  .main-nav {
    top: calc(100% - 1px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.lots-view .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  body.lots-view #resultsTable,
  body.lots-view #resultsTable tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  body.lots-view #resultsTable thead { display: none; }
  body.lots-view #resultsTable tbody { display: grid; gap: 8px; }
  body.lots-view #resultsTable tbody tr {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 88px;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    grid-template-areas:
      "photo brand outcome"
      "photo model model"
      "photo reference price"
      "year date set";
    gap: 4px 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 35, 70, 0.05);
  }
  body.lots-view #resultsTable td {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.lots-view #resultsTable .td-photo {
    grid-area: photo;
    align-self: center;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 9px;
    background: #eaf1fc;
  }
  body.lots-view #resultsTable .row-thumb {
    width: 68px;
    height: 68px;
    min-height: 0;
    border-radius: 9px;
    object-fit: cover;
    object-position: center;
  }
  body.lots-view #resultsTable .cell-brand {
    grid-area: brand;
    color: #173b78;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  body.lots-view #resultsTable .cell-model {
    grid-area: model;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 750;
  }
  body.lots-view #resultsTable .cell-reference {
    grid-area: reference;
    color: var(--text-muted);
    font-size: 0.66rem;
  }
  body.lots-view #resultsTable .cell-price {
    grid-area: price;
    color: #18365f;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: right;
  }
  body.lots-view #resultsTable .cell-year,
  body.lots-view #resultsTable .cell-date,
  body.lots-view #resultsTable .cell-set {
    margin-top: 3px;
    padding-top: 6px;
    border-top: 1px solid var(--line-soft);
    color: #6c7d96;
    font-size: 0.61rem;
  }
  body.lots-view #resultsTable .cell-year { grid-area: year; }
  body.lots-view #resultsTable .cell-date { grid-area: date; }
  body.lots-view #resultsTable .cell-set { grid-area: set; text-align: right; }
  body.lots-view #resultsTable td.cell-outcome {
    display: block;
    grid-area: outcome;
    overflow: visible;
  }
  body.lots-view #resultsTable .cell-year::before,
  body.lots-view #resultsTable .cell-date::before,
  body.lots-view #resultsTable .cell-set::before {
    content: attr(data-label) ": ";
    color: #9aa8bb;
    font-weight: 600;
  }
  body.lots-view .access-paywall {
    margin-right: 0;
    margin-left: 0;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 410px) {
  .logo-text { max-width: 92px; font-size: 0.92rem; }
  .language-select { width: 66px; font-size: 0.6rem; }
}

/* ---- Selectable Lots views ---- */
@media (min-width: 641px) {
  body.lots-view.lots-layout-cards .table-wrap {
    overflow: visible;
    border: 0;
  }

  body.lots-view.lots-layout-cards #resultsTable,
  body.lots-view.lots-layout-cards #resultsTable tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.lots-view.lots-layout-cards #resultsTable thead {
    display: none;
  }

  body.lots-view.lots-layout-cards #resultsTable tbody {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  body.lots-view.lots-layout-cards #resultsTable tbody tr {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "photo photo"
      "brand outcome"
      "model model"
      "reference reference"
      "price price"
      "date date"
      "year set";
    gap: 7px 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(16, 35, 70, 0.07);
  }

  body.lots-view.lots-layout-cards #resultsTable td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.lots-view.lots-layout-cards #resultsTable .td-photo {
    grid-area: photo;
    align-self: stretch;
    overflow: hidden;
  }

  body.lots-view.lots-layout-cards #resultsTable .row-thumb {
    width: 100%;
    height: auto;
    min-height: 145px;
    aspect-ratio: 1;
    border-radius: 11px;
    object-fit: cover;
    object-position: center;
    background: #eef2f7;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-brand {
    grid-area: brand;
    color: #245bd4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-model {
    display: -webkit-box;
    grid-area: model;
    overflow: hidden;
    color: #132249;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-reference {
    grid-area: reference;
    color: var(--text-muted);
    font-size: 0.74rem;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-price {
    grid-area: price;
    color: #18365f;
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-year,
  body.lots-view.lots-layout-cards #resultsTable .cell-date,
  body.lots-view.lots-layout-cards #resultsTable .cell-set {
    padding-top: 7px;
    border-top: 1px solid var(--line-soft);
    color: #6c7d96;
    font-size: 0.68rem;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-year { grid-area: year; }
  body.lots-view.lots-layout-cards #resultsTable .cell-date { grid-area: date; }
  body.lots-view.lots-layout-cards #resultsTable .cell-set {
    grid-area: set;
    text-align: right;
  }

  body.lots-view.lots-layout-cards #resultsTable td.cell-outcome {
    display: block;
    grid-area: outcome;
    overflow: visible;
    text-align: right;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-reference::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-price::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-year::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-date::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-set::before {
    display: block;
    margin-bottom: 2px;
    color: #9aa8bb;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  body.lots-view.lots-layout-cards #resultsTable .cell-reference::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-price::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-year::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-date::before,
  body.lots-view.lots-layout-cards #resultsTable .cell-set::before {
    content: attr(data-label);
  }
}

@media (min-width: 641px) and (max-width: 1200px) {
  body.lots-view.lots-layout-cards #resultsTable tbody {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.lots-view.lots-layout-cards #resultsTable tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.lots-view .lots-view-toggle {
    gap: 2px;
  }

  body.lots-view .lots-view-option {
    min-height: 28px;
    width: 30px;
  }

  body.lots-view.lots-layout-list .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  body.lots-view.lots-layout-list #resultsTable {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.lots-view.lots-layout-list #resultsTable thead {
    display: none;
  }

  body.lots-view.lots-layout-list #resultsTable tbody {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 5px;
  }

  body.lots-view.lots-layout-list #resultsTable tbody tr {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 70px;
    grid-template-columns: 54px minmax(0, 1fr) minmax(72px, 92px);
    grid-template-areas:
      "photo brand outcome"
      "photo model price"
      "photo reference price"
      "photo date price";
    gap: 3px 8px;
    align-items: center;
    padding: 7px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 35, 70, 0.04);
  }

  body.lots-view.lots-layout-list #resultsTable td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.lots-view.lots-layout-list #resultsTable .td-photo {
    grid-area: photo;
    align-self: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 8px;
    background: #eaf1fc;
  }

  body.lots-view.lots-layout-list #resultsTable .row-thumb {
    width: 54px;
    height: 54px;
    min-height: 0;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-brand {
    grid-area: brand;
    color: #173b78;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-model {
    grid-area: model;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 750;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-reference {
    grid-area: reference;
    color: var(--text-muted);
    font-size: 0.61rem;
  }
  body.lots-view.lots-layout-list #resultsTable .cell-date {
    grid-area: date;
    color: var(--text-muted);
    font-size: 0.58rem;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-price {
    grid-area: price;
    width: 100%;
    color: #18365f;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: right;
    white-space: nowrap;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-year,
  body.lots-view.lots-layout-list #resultsTable .cell-set {
    display: none;
  }

  body.lots-view.lots-layout-list #resultsTable td.cell-outcome {
    display: block;
    grid-area: outcome;
    overflow: hidden;
    text-align: right;
  }

  body.lots-view.lots-layout-list #resultsTable .cell-outcome .pill {
    max-width: 100%;
    padding: 2px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.54rem;
  }
}
