* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --muted: #5a6783;
  --border: #d9e2f1;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --danger: #b91c1c;
  --shadow: 0 8px 22px rgba(31, 41, 55, 0.08);
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 10% 0%, #e8f1ff 0%, var(--bg) 35%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.4;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.95));
  border-bottom: 1px solid #dbe6fb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.2px;
  text-decoration: none;
  flex: 0 0 auto;
}

.header-menu-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  background: #f8fbff;
  cursor: pointer;
}

.header-menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #1e3a8a;
}

.header-nav-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.header-nav-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.header-nav a,
.header-nav-dropdown-toggle {
  margin-left: 0;
  text-decoration: none;
  color: #2f3f61;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.header-nav a:hover,
.header-nav-dropdown-toggle:hover,
.header-nav-dropdown.is-open .header-nav-dropdown-toggle {
  background: #edf3ff;
  color: var(--primary-dark);
  border-color: #d2e2ff;
}

.header-nav-dropdown {
  position: relative;
}

.header-nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.85em;
  opacity: 0.75;
}

.header-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #dbe6fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.header-nav-dropdown-menu[hidden] {
  display: none;
}

.header-nav-dropdown-menu a {
  display: block;
  margin: 0;
  white-space: nowrap;
}

.header-nav-dropdown.is-active .header-nav-dropdown-toggle,
.header-nav a.is-active {
  background: #edf3ff;
  color: var(--primary-dark);
  border-color: #d2e2ff;
}

.header-nav .user-badge {
  margin-left: 0;
}

.user-badge {
  margin-left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f0ff;
  font-size: 12px;
  color: var(--primary-dark);
  border: 1px solid #cfe0ff;
}

.page {
  max-width: 1400px;
  margin: 16px auto;
  padding: 0 10px 28px;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid #dbe6fb;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(241, 246, 255, 0.95));
}

.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 12px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-inner a {
  text-decoration: none;
  color: #2f3f61;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.site-footer-inner a:hover {
  background: #edf3ff;
  color: var(--primary-dark);
  border-color: #d2e2ff;
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(20, 32, 58, 0.94);
  color: #f4f7ff;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.28);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent-text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-consent-link {
  color: #c9dcff;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent-btn-primary {
  background: var(--primary, #2f6fed);
  border-color: var(--primary, #2f6fed);
  color: #fff;
}

.cookie-consent-btn-secondary {
  background: transparent;
  border-color: rgba(244, 247, 255, 0.45);
  color: #f4f7ff;
}

.legal-page .legal-article {
  max-width: 48rem;
}

.legal-page .legal-article h2 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.15rem;
}

.legal-page .legal-article p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

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

.card {
  background: var(--surface);
  border: 1px solid #d7e4fb;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.09);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.16);
  border-color: #bcd3fb;
}

.card.muted {
  opacity: 0.75;
}

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

.catalog-page {
  display: grid;
  gap: 12px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.catalog-filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow-x: hidden;
}

.catalog-filters-panel .filters {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
  width: 100%;
  min-width: 0;
}

.catalog-filters-panel h3 {
  margin: 0 0 10px;
}

.catalog-filter-group {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.catalog-filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.catalog-filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  margin: 0;
}

.catalog-filters-panel .catalog-filter-field.is-active select {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-color: #c9dcff;
}

.catalog-filters-panel .catalog-filter-field.is-active select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.catalog-filters-panel .catalog-filter-field.is-active.inline-checkbox {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border: 1px solid #c9dcff;
  border-radius: 8px;
  padding: 8px 10px;
}

.catalog-filters-panel select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.catalog-filters-panel .catalog-filters-submit {
  width: 100%;
  align-self: stretch;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  min-height: 48px;
}

.catalog-filter-field-label {
  font-size: 14px;
  line-height: 1.2;
}

.catalog-filter-year-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.catalog-multi-select {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.catalog-multi-select.is-open {
  z-index: 50;
}

.catalog-sidebar:has(.catalog-multi-select.is-open) {
  overflow: visible;
}

.filters .catalog-filter-field.catalog-multi-select {
  display: grid;
  gap: 6px;
  font-size: 14px;
  min-width: 0;
}

.catalog-multi-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  transform: translateY(-35%);
  pointer-events: none;
}

.catalog-multi-select-trigger:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.catalog-filters-panel .catalog-filter-field.is-active .catalog-multi-select-trigger {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-color: #c9dcff;
}

.catalog-multi-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  z-index: 60;
  min-width: 100%;
  width: max-content;
  max-width: min(420px, calc(100vw - 24px));
  padding: 4px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(45, 45, 45, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-height: 280px;
  overflow-y: auto;
  color: #fff;
}

.catalog-multi-select-menu.is-fit-content {
  max-height: none;
  overflow-y: visible;
}

.catalog-multi-select.is-open .catalog-multi-select-menu {
  display: grid;
  gap: 0;
}

.filters label.catalog-multi-select-row,
.filters label.catalog-multi-select-row-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: auto;
  min-width: 0;
  margin: 0;
}

.catalog-multi-select-row {
  padding: 6px 12px;
  font-size: 15px;
  line-height: 1.15;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}

.catalog-multi-select-row-sub {
  padding-left: 28px;
}

.catalog-multi-select-row-region {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 6px 6px 12px;
  min-height: 0;
}

.catalog-multi-select-row-main {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  gap: 0;
}

.catalog-multi-select-expand {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  align-self: center;
}

.catalog-multi-select-expand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #94a3b8;
  transform: translate(-50%, -40%);
  transition: transform 0.15s ease;
}

.catalog-multi-select-region-group.is-expanded .catalog-multi-select-expand::before {
  transform: translate(-50%, -60%) rotate(180deg);
}

.catalog-multi-select-expand:hover {
  background: rgba(255, 255, 255, 0.08);
}

.catalog-multi-select-region-cities {
  display: grid;
  gap: 0;
}

.catalog-multi-select-region-cities[hidden] {
  display: none !important;
}

.catalog-multi-select-row.is-selected {
  background: rgba(0, 122, 255, 0.88);
}

.catalog-multi-select-mark {
  flex: 0 0 22px;
  width: 22px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-multi-select-row.is-selected .catalog-multi-select-mark {
  background: center / 13px 10px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 10'%3E%3Cpath fill='%23fff' d='M4.8 9.5 0.5 5.2 1.6 4.1 4.8 7.3 11.4 0.7 12.5 1.8z'/%3E%3C/svg%3E");
}

.catalog-multi-select-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.catalog-multi-select-label {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.catalog-sidebar h3 {
  margin: 0 0 8px;
}

.catalog-main {
  min-width: 0;
  background: var(--surface);
  border: 1px solid #d7e4fb;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
  padding: 14px;
}

.catalog-main > h1:first-child,
.catalog-main > h2:first-child {
  margin-top: 0;
}

.catalog-main-head {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border: 1px solid #c9dcff;
  border-radius: 16px;
  padding: 16px 14px;
  margin-bottom: 14px;
}

.listings-market-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}

.listings-market-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  background: #fff;
}

.listings-market-tab.is-active {
  border-color: transparent;
  background: #1f3b2c;
  color: #fff;
}

.catalog-main-head h1,
.catalog-main-head h2 {
  margin: 0 0 6px;
  color: #1e3a8a;
}

.catalog-main-head .hint {
  margin: 0;
}

.catalog-step-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.catalog-step-label {
  margin: 0;
}

.catalog-view-switch {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
  white-space: nowrap;
}

.catalog-view-switch:hover {
  text-decoration: underline;
}

.catalog-make-selectable {
  position: relative;
  cursor: default;
}

.catalog-make-check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.catalog-make-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.catalog-make-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.catalog-makes-actions {
  margin-top: 12px;
}

.header-beta-link {
  color: #7c3aed;
  font-weight: 600;
}

.header-theme-menu {
  min-width: 240px;
  padding: 6px;
}

.header-theme-option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.header-theme-option:hover,
.header-theme-option:focus-visible {
  background: #edf3ff;
  color: #1d4ed8;
}

.header-theme-option.is-active {
  background: #e0edff;
  color: #1d4ed8;
}

body.theme-admin .header-theme-option {
  color: #e8eef8;
}

body.theme-admin .header-theme-option:hover,
body.theme-admin .header-theme-option:focus-visible,
body.theme-admin .header-theme-option.is-active {
  background: rgba(0, 168, 255, 0.18);
  color: #ffffff;
}

.admin-vin-check-page .admin-vin-check-main {
  width: 100%;
  max-width: none;
}

.admin-vin-check-feed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-vin-check-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 10px;
}

.admin-vin-check-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0;
}

.admin-vin-found-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 16px 20px;
  align-items: start;
}

.admin-vin-found-head-main h1 {
  margin: 0 0 6px;
}

.admin-vin-stats-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #bfd6f7;
  border-radius: 14px;
  padding: 12px;
}

.admin-vin-stats-panel-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-vin-stats-range-form {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-vin-stats-range-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  color: #334155;
}

.admin-vin-stats-range-field input[type="date"] {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.admin-vin-stats-range-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-vin-stats-apply {
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.admin-vin-stats-list {
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.admin-vin-stats-day {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.admin-vin-stats-day:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-vin-stats-day h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: #0f172a;
}

.admin-vin-stats-accounts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.admin-vin-stats-accounts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: #1e293b;
}

.admin-vin-stats-account {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-vin-stats-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0f172a;
}

.admin-vin-stats-total,
.admin-vin-stats-grand-total {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: #0f172a;
}

.admin-vin-stats-empty {
  margin: 0;
}

@media (max-width: 900px) {
  .admin-vin-found-head {
    grid-template-columns: 1fr;
  }
}

.admin-vin-found-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
}

.admin-vin-found-link:hover {
  text-decoration: underline;
}

.admin-vin-found-added {
  white-space: nowrap;
  font-size: 13px;
}

.admin-vin-date-filter-th {
  position: relative;
  vertical-align: top;
}

.admin-vin-date-filter-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.admin-vin-date-filter-trigger:hover,
.admin-vin-date-filter-trigger:focus-visible {
  color: #1d4ed8;
}

.admin-vin-date-filter-trigger.is-active {
  color: #1d4ed8;
}

.admin-vin-date-filter-value,
.admin-vin-date-filter-hint {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.admin-vin-date-filter-trigger.is-active .admin-vin-date-filter-value {
  color: #1d4ed8;
}

.admin-vin-date-filter-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 280px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f8;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.admin-vin-date-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-vin-date-nav {
  width: 28px;
  height: 28px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.admin-vin-date-nav:hover,
.admin-vin-date-nav:focus-visible {
  background: #eef4ff;
  border-color: #bfdbfe;
}

.admin-vin-date-weekdays,
.admin-vin-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.admin-vin-date-weekdays {
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

.admin-vin-date-cell {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.admin-vin-date-cell.is-empty {
  pointer-events: none;
}

.admin-vin-date-cell:hover:not(.is-empty),
.admin-vin-date-cell:focus-visible:not(.is-empty) {
  background: #eef4ff;
}

.admin-vin-date-cell.is-today {
  box-shadow: inset 0 0 0 1px #93c5fd;
}

.admin-vin-date-cell.is-in-range {
  background: #dbeafe;
}

.admin-vin-date-cell.is-start,
.admin-vin-date-cell.is-end {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.admin-vin-date-filter-help {
  margin: 10px 0 8px;
  font-size: 11px;
  line-height: 1.35;
}

.admin-vin-date-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-vin-found-table-wrap {
  overflow: visible;
}

.admin-vin-found-photo-cell {
  width: 92px;
}

.admin-vin-found-photo-thumb {
  display: block;
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.admin-vin-found-photo-empty {
  color: #94a3b8;
}

.admin-vin-found-added {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-vin-code-cell {
  position: relative;
  white-space: nowrap;
}

.admin-vin-code-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-vin-code-btn:hover,
.admin-vin-code-btn:focus-visible {
  color: #1d4ed8;
}

.admin-vin-copy-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 25;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #c9dcff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.admin-vin-copy-action {
  border: 0;
  background: #eef4ff;
  color: #1e3a8a;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.admin-vin-copy-action:hover,
.admin-vin-copy-action:focus-visible {
  background: #dbeafe;
}

.admin-vin-account-cell {
  font-size: 13px;
  white-space: nowrap;
}

.admin-vin-import-missing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.admin-vin-no-import {
  color: #64748b;
  font-weight: 600;
}

.admin-vin-customs-retry {
  font-size: 12px;
}

.admin-vin-customs-retry-error {
  display: block;
  max-width: 220px;
  line-height: 1.3;
}

.admin-vin-check-stats {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  line-height: 1.45;
}

.listing-vin-check-added {
  margin: 0 0 4px;
  font-size: 12px;
}

.listing-vin-check-card .listing-description-wrap {
  position: relative;
  margin: 6px 0;
}

.listing-description-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #c9dcff;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow: auto;
}

.listing-description-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.listing-description-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: transparent;
}

.listing-vin-check-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8eef8;
}

.listing-vin-check-vin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.listing-vin-check-vin .listing-vin-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.listing-vin-check-date {
  margin-top: 4px;
  min-height: 1.2em;
}

.listing-vin-check-date-value {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.vin-check-error-btn,
.vin-check-data-error-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #dc2626;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vin-check-error-label,
.vin-check-data-error-wrap {
  position: relative;
}

.vin-check-error-popover,
.vin-check-data-error-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 25;
  min-width: 220px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(127, 29, 29, 0.12);
}

.catalog-beta-page {
  width: 100%;
}

.catalog-beta-main {
  width: 100%;
  max-width: none;
}

.catalog-beta-makes-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

.catalog-beta-page .catalog-beta-makes-grid .home-make-card {
  padding: 16px 10px 12px;
  min-height: 0;
}

.catalog-beta-page .catalog-beta-makes-grid .make-logo,
.catalog-beta-page .catalog-beta-makes-grid .home-make-fallback {
  width: 100%;
  max-width: 132px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.catalog-beta-page .catalog-beta-makes-grid .home-make-fallback {
  font-size: 2.4rem;
}

.catalog-beta-page .catalog-beta-makes-grid .home-make-card strong {
  font-size: 0.92rem;
}

.catalog-beta-make-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.catalog-beta-actions {
  margin-top: 18px;
}

.catalog-beta-actions .catalog-go-models-btn {
  font-weight: 600;
}

.catalog-beta-selected-makes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.catalog-beta-selected-makes-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.catalog-beta-make-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #c9dcff;
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 600;
}

.catalog-beta-make-chip-all {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.catalog-beta-text-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 132px;
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
  box-shadow: var(--shadow);
}

.catalog-beta-model-card {
  text-decoration: none;
  color: inherit;
}

.catalog-beta-model-card:hover .catalog-beta-text-tile {
  border-color: #93c5fd;
  background: #f0f6ff;
}

.catalog-beta-skip-model .catalog-beta-text-tile {
  background: #f8fafc;
  color: #475569;
}

.catalog-beta-model-make {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.2;
}

.catalog-beta-stub {
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
}

.catalog-go-models-btn {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
}

.catalog-go-models-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.offers-panel {
  margin-top: 18px;
}

.modifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
  align-items: start;
}

.modifications-actions {
  margin-bottom: 12px;
}

.modifications-table-section + .modifications-table-section {
  margin-top: 18px;
}

.modifications-table-section-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a8a;
}

.modifications-table-wrap {
  overflow-x: auto;
  border: 1px solid #d7e4fb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06);
}

.modifications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.modifications-table thead th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #475569;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-bottom: 1px solid #c9dcff;
  white-space: nowrap;
}

.modifications-table tbody td,
.modifications-table tbody th {
  padding: 9px 10px;
  border-bottom: 1px solid #e8eef8;
  vertical-align: middle;
}

.modifications-table tbody tr:last-child td,
.modifications-table tbody tr:last-child th {
  border-bottom: none;
}

.modifications-table-row:hover td,
.modifications-table-row:hover th {
  background: #f8fbff;
}

.modifications-table-col-select {
  width: 36px;
  text-align: center;
}

.modifications-table-name {
  width: 34%;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

.modifications-table-name a {
  color: #1d4ed8;
  text-decoration: none;
}

.modifications-table-name a:hover {
  text-decoration: underline;
}

.modifications-table-name .catalog-admin-rating {
  margin: 4px 0 0;
}

.modifications-table tbody td:not(.modifications-table-col-select) {
  color: #334155;
  white-space: nowrap;
}

.modifications-table tbody td:nth-child(3),
.modifications-table tbody td:nth-child(4),
.modifications-table tbody td:nth-child(5),
.modifications-table tbody td:nth-child(6),
.modifications-table tbody td:nth-child(7) {
  width: 11%;
}

.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;
}

.offers-panel-right {
  margin-top: 0;
}

.offers-panel-right h2 {
  margin-top: 0;
}

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

.offer-feed-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.offer-feed-thumb-wrap {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}

.offer-feed-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.offer-feed-body {
  min-width: 0;
}

.offer-feed-body h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.offer-feed-modification {
  margin: 0 0 6px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #475569;
}

.offer-feed-body p {
  margin: 3px 0;
  font-size: 0.84rem;
}

.offer-feed-body .actions-row {
  margin-top: 8px;
  gap: 6px;
}

.offer-feed-body .actions-row a {
  font-size: 0.82rem;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.filters-sidebar {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.quick-jump {
  grid-template-columns: 1fr;
}

.quick-jump .actions-row {
  align-self: auto;
}

.filters label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  min-width: 0;
}

.filters input,
.filters select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  background: var(--surface-soft);
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.15;
  min-height: 0;
}

.filters input:focus,
.filters select:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.filters button {
  align-self: end;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.filters button:hover {
  opacity: 0.92;
}

.filters .catalog-multi-select-trigger {
  align-self: stretch;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 32px 8px 8px;
  background: var(--surface-soft);
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-weight: 400;
  margin: 0;
  min-height: 0;
}

.catalog-page .filters select,
.catalog-page .filters .catalog-multi-select-trigger {
  padding-top: 11px;
  padding-bottom: 11px;
  padding-left: 10px;
  font-size: 15px;
  line-height: 1.15;
  min-height: 0;
}

.catalog-page .filters .catalog-multi-select-trigger {
  padding-right: 32px;
}

.catalog-multi-select-trigger-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: #bcd3fb;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.14);
}

.avby-listing-card .catalog-cover {
  height: 100%;
}

.listing-photo-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.listing-photo-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.catalog-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  margin-bottom: 8px;
}

.card-cover-link {
  display: block;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: #eef2f7;
}

.card-cover-link .catalog-cover {
  height: 100%;
  margin-bottom: 0;
  border-radius: 0;
  transition: transform 0.15s ease;
}

.card-cover-link:hover .catalog-cover {
  transform: scale(1.03);
}

.listing-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.listing-spec-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d5e4fb;
  background: #f2f7ff;
  color: #1e3a8a;
  font-size: 12px;
}

.catalog.listings-feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.listings-feed .listing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
}

.listings-feed .listing-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
}

.listings-feed .listing-card p {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.3;
}

.listings-feed .card-cover-link {
  margin-bottom: 6px;
}

.listings-feed-gallery {
  position: relative;
  margin-bottom: 6px;
}

.listings-feed-gallery .card-cover-link {
  margin-bottom: 0;
}

.listings-feed-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 52px;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.72;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.listings-feed-gallery-nav svg {
  display: block;
  width: 18px;
  height: 18px;
}

.listings-feed-gallery-nav:hover,
.listings-feed-gallery-nav:focus-visible {
  background: rgba(15, 23, 42, 0.62);
  opacity: 1;
  outline: none;
}

.listings-feed-gallery-prev {
  left: 0;
  border-radius: 0 8px 8px 0;
}

.listings-feed-gallery-next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.listings-feed-gallery:hover .listings-feed-gallery-nav {
  opacity: 0.92;
}

.listings-feed .listing-spec-tags {
  margin-top: 4px;
  gap: 4px;
}

.listings-feed .listing-spec-tags span {
  padding: 2px 6px;
  font-size: 11px;
}

.listings-feed .listings-feed-source {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.listings-feed .listing-customs-info {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
}

.make-logo-wrap {
  position: relative;
  width: 100%;
  height: 90px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
}

.catalog-make-card {
  padding: 14px 10px;
}

.catalog-makes-grid {
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 10px;
}

.catalog-page .catalog-makes-grid .home-make-card {
  padding: 12px 8px 10px;
  gap: 6px;
}

.catalog-page .catalog-makes-grid .make-logo,
.catalog-page .catalog-makes-grid .home-make-fallback {
  width: 76px;
  height: 76px;
}

.catalog-page .catalog-makes-grid .home-make-fallback {
  font-size: 1.6rem;
}

.catalog-page .catalog-makes-grid .home-make-card strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.catalog-page .filters select {
  padding: 11px 10px;
  font-size: 15px;
  line-height: 1.15;
  min-height: 0;
}

.catalog-page .vehicle-hierarchy-field {
  font-size: 15px;
}

.catalog-page .vehicle-hierarchy-label {
  font-weight: 600;
  color: #334155;
}

.catalog-page .vehicle-hierarchy-field select {
  padding: 9px 10px;
  min-height: 40px;
  font-size: 15px;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-color: #c9dcff;
}

.catalog-page .vehicle-hierarchy-field select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.catalog-page .vehicle-hierarchy-field select:disabled {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-color: #c9dcff;
  opacity: 1;
  color: #64748b;
  cursor: not-allowed;
}

.catalog-page .vehicle-hierarchy-remove {
  width: 28px;
  height: 28px;
  min-height: 28px;
  font-size: 0.95rem;
}

.catalog-page .vehicle-hierarchy-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px;
}

.catalog-make-card .make-logo-wrap:hover,
.catalog-make-card .make-logo-wrap:focus-visible {
  border-color: #93c5fd;
  background: #f0f6ff;
}

.catalog-make-card .make-logo-wrap::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.2);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 4;
}

.catalog-make-card .make-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #172033;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 4;
}

.catalog-make-card .make-logo-wrap:hover::after,
.catalog-make-card .make-logo-wrap:focus-visible::after,
.catalog-make-card .make-logo-wrap:hover::before,
.catalog-make-card .make-logo-wrap:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.catalog-make-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 1.25rem;
  font-weight: 700;
}

.vehicle-filters-top {
  width: 100%;
  min-width: 0;
}

.vehicle-filters-top.catalog-filters-panel {
  padding: 14px;
}

.vehicle-hierarchy-filters {
  min-width: 0;
}

.vehicle-hierarchy-head {
  display: none;
}

.vehicle-hierarchy-add {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vehicle-hierarchy-add:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.vehicle-hierarchy-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-hierarchy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: end;
}

.vehicle-hierarchy-field {
  display: grid;
  gap: 4px;
  font-size: 14px;
  min-width: 0;
}

.vehicle-hierarchy-label {
  color: inherit;
  line-height: 1.2;
}

.vehicle-hierarchy-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c9dcff;
  border-radius: 8px;
  padding: 9px 10px;
  min-height: 40px;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  background-clip: padding-box;
}

.vehicle-hierarchy-field select:disabled {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  border-color: #c9dcff;
  opacity: 1;
  color: #64748b;
  cursor: not-allowed;
}

.vehicle-hierarchy-field select:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.vehicle-hierarchy-remove {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: var(--surface-soft);
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  align-self: end;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.vehicle-hierarchy-remove:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.vehicle-hierarchy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.vehicle-hierarchy-submit {
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.vehicle-hierarchy-actions .page-link,
.vehicle-hierarchy-actions .vehicle-hierarchy-reset {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
}

.vehicle-hierarchy-submit:hover {
  opacity: 0.92;
}

@media (max-width: 900px) {
  .vehicle-hierarchy-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px;
  }

  .catalog-page .vehicle-hierarchy-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px;
  }
}

@media (max-width: 640px) {
  .vehicle-hierarchy-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "make model"
      "generation remove";
  }

  .vehicle-hierarchy-field:nth-child(1) {
    grid-area: make;
  }

  .vehicle-hierarchy-field:nth-child(2) {
    grid-area: model;
  }

  .vehicle-hierarchy-field:nth-child(3) {
    grid-area: generation;
  }

  .vehicle-hierarchy-remove {
    grid-area: remove;
    justify-self: end;
  }

  .catalog.listings-feed {
    grid-template-columns: 1fr;
  }

  .admin-vin-check-feed {
    grid-template-columns: 1fr;
  }
}

.make-logo {
  max-width: 150px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.generation-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.generation-mini-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-soft);
}

.generation-mini-card:hover {
  border-color: #a8bde9;
  background: #f0f6ff;
}

.generation-mini-cover {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
}

.generation-mini-info {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.listing-list {
  padding-left: 18px;
}

.listing-list li {
  margin-bottom: 8px;
}

.listing-list span {
  margin-left: 8px;
  color: #475569;
}

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 10px;
  max-width: 700px;
  box-shadow: var(--shadow);
}

.form label {
  display: grid;
  gap: 6px;
}

.form input,
.form textarea,
.form select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
}

.form button {
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.hint {
  color: var(--muted);
}

.result {
  margin-top: 12px;
  background: #0b1020;
  color: #dbeafe;
  border-radius: 8px;
  padding: 12px;
  white-space: pre-wrap;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.users-table th,
.users-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.users-table th {
  background: var(--surface-soft);
}

.users-table button {
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.admin-nav a.active,
.admin-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-rating-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-rating-form select {
  min-width: 110px;
}

.admin-rating-form button.admin-rating-clear {
  background: #fff;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.admin-rating-form button.admin-rating-clear:disabled {
  opacity: 0.45;
  cursor: default;
}

.admin-rating-status {
  margin-top: 6px;
  font-size: 12px;
  color: #166534;
}

.admin-rating-status.is-error {
  color: var(--danger);
}

.admin-years-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.admin-years-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-years-inputs input {
  width: 72px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.admin-years-sep {
  color: var(--muted);
  flex-shrink: 0;
}

.admin-years-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-years-form button.admin-years-sync {
  background: #fff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.admin-years-status {
  margin-top: 6px;
  font-size: 12px;
  color: #166534;
}

.admin-years-status.is-error {
  color: var(--danger);
}

.admin-ratings-row-hidden td {
  opacity: 0.72;
}

.admin-catalog-visibility-btn {
  margin-top: 8px;
}

.admin-catalog-visibility-status {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #166534;
}

.admin-catalog-visibility-status.is-error {
  color: var(--danger);
}

.admin-ratings-photo-cell {
  padding: 0;
  vertical-align: stretch;
  height: 1px;
}

.admin-ratings-photo-wrap {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 100%;
}

.admin-ratings-photo-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1 1 46%;
  padding: 12px 8px 12px 10px;
  min-width: 0;
}

.admin-ratings-photo-media {
  flex: 1 1 54%;
  min-width: 0;
  max-width: 54%;
  align-self: stretch;
  display: flex;
  overflow: hidden;
  border-left: 1px solid var(--border);
}

.admin-ratings-photo-thumb {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
  background: #f8fafc;
}

.admin-ratings-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  border-radius: 0;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
}

.admin-ratings-replace-photo-btn,
.admin-ratings-all-photos-link {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.admin-ratings-photo-status {
  margin-top: 2px;
  font-size: 11px;
  color: #166534;
  line-height: 1.25;
}

.admin-ratings-photo-status.is-error {
  color: var(--danger);
}

.admin-analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-analytics-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-analytics-tabs a.active,
.admin-analytics-tabs a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-vin-table-wrap {
  overflow-x: auto;
  margin: 8px 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-vin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-vin-table th,
.admin-vin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
  white-space: normal;
}

.admin-vin-table th {
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-vin-table.admin-ratings-table {
  table-layout: fixed;
}

.admin-vin-table.admin-ratings-table th,
.admin-vin-table.admin-ratings-table td {
  padding: 12px 10px;
  overflow-wrap: anywhere;
}

.admin-vin-table.admin-ratings-table th {
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
}

.admin-ratings-rating-head {
  overflow: visible;
}

.admin-ratings-rating-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  cursor: pointer;
}

.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter-trigger:hover,
.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter-trigger:focus,
.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter-trigger:focus-visible {
  background: transparent;
  color: inherit;
  opacity: 1;
}

.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter.is-active .admin-ratings-rating-filter-trigger {
  padding: 4px 10px 4px 12px;
  border: 1px solid #c9dcff;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  color: #1e3a8a;
}

.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter.is-active .admin-ratings-rating-filter-trigger:hover,
.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter.is-active .admin-ratings-rating-filter-trigger:focus,
.admin-vin-table.admin-ratings-table .admin-ratings-rating-filter.is-active .admin-ratings-rating-filter-trigger:focus-visible {
  background: linear-gradient(180deg, #eef4ff 0%, #e2ecff 100%);
  color: #1e3a8a;
}

.admin-ratings-rating-filter-label {
  white-space: nowrap;
}

.admin-ratings-rating-filter-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(191, 219, 254, 0.35);
  position: relative;
}

.admin-ratings-rating-filter.is-active .admin-ratings-rating-filter-arrow {
  background: transparent;
}

.admin-ratings-rating-filter-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #64748b;
  transform: translate(-50%, -35%);
  transition: transform 0.15s ease;
}

.admin-ratings-rating-filter.is-open .admin-ratings-rating-filter-arrow::after {
  transform: translate(-50%, -55%) rotate(180deg);
}

.admin-ratings-rating-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 148px;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.admin-ratings-rating-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 4px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
}

.admin-ratings-rating-filter-option input {
  width: auto;
  margin: 0;
}

.admin-vin-table.admin-ratings-table th:nth-child(1),
.admin-vin-table.admin-ratings-table td:nth-child(1) {
  width: 7%;
}

.admin-vin-table.admin-ratings-table th:nth-child(2),
.admin-vin-table.admin-ratings-table td:nth-child(2) {
  width: 7%;
}

.admin-vin-table.admin-ratings-table th:nth-child(3),
.admin-vin-table.admin-ratings-table td:nth-child(3) {
  width: 20%;
}

.admin-vin-table.admin-ratings-table th:nth-child(4),
.admin-vin-table.admin-ratings-table td:nth-child(4) {
  width: 12%;
}

.admin-vin-table.admin-ratings-table th:nth-child(5),
.admin-vin-table.admin-ratings-table td:nth-child(5) {
  width: 10%;
}

.admin-vin-table.admin-ratings-table th:nth-child(6),
.admin-vin-table.admin-ratings-table td:nth-child(6) {
  width: 22%;
}

.admin-vin-table.admin-ratings-table th:nth-child(7),
.admin-vin-table.admin-ratings-table td:nth-child(7) {
  width: 22%;
}

.admin-vin-table.admin-ratings-table td:nth-child(4),
.admin-vin-table.admin-ratings-table td:nth-child(5) {
  white-space: nowrap;
}

.admin-vin-table.admin-ratings-table .admin-ratings-photo-cell {
  padding: 0;
  vertical-align: stretch;
  height: 1px;
}

.admin-vin-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.admin-vin-sort:hover,
.admin-vin-sort.is-active {
  color: var(--primary);
}

.admin-vin-sort-arrow {
  font-size: 0.85em;
  opacity: 0.55;
}

.admin-vin-sort.is-active .admin-vin-sort-arrow {
  opacity: 1;
}

.admin-vin-import-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-vin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-vin-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.admin-vin-listing-title {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.admin-vin-listing-title:hover {
  text-decoration: underline;
}

.admin-vin-listing-meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.admin-vin-code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.admin-vin-customs .status-pill {
  margin-bottom: 6px;
}

.admin-vin-subline {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.4;
}

.admin-vin-dates {
  min-width: 180px;
}

.admin-vin-date-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: baseline;
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-vin-date-row + .admin-vin-date-row {
  margin-top: 4px;
}

.admin-vin-date-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.admin-stat-card .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.admin-stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-stat-card .sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-stat-card .sub a {
  color: inherit;
  text-decoration: underline;
}

.archived-listings-table .status-pill {
  white-space: nowrap;
}

.admin-listings-column-wrap {
  margin-top: 16px;
}

.admin-listings-column {
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
}

.admin-listings-column h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.status-pill.missing-byn-price {
  background: #fff4e5;
  color: #9a6700;
  border: 1px solid #f0d7a4;
}

.listings-without-byn-table .status-pill {
  white-space: nowrap;
}

.filters-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 16px 0;
}

.filters-inline label {
  display: grid;
  gap: 6px;
}

.actions-row .btn-link.active {
  font-weight: 700;
  text-decoration: underline;
}

.admin-analytics-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.admin-analytics-columns h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.admin-last-success {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.admin-last-success h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.admin-last-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.admin-alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.admin-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.running {
  background: #dbeafe;
  color: #1e40af;
}

.status-pill.confirmed {
  background: #dcfce7;
  color: #166534;
}

.status-pill.phone_verified {
  background: #dbeafe;
  color: #1e40af;
}

.status-pill.mailtm_only,
.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.admin-actions-bar {
  margin: 14px 0;
  align-items: center;
}

.login-mode-row {
  grid-column: 1 / -1;
  gap: 16px;
}

.admin-account-form {
  margin: 16px 0 20px;
}

.admin-account-form h2 {
  margin-top: 0;
}

.admin-advanced-block {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-soft);
}

.admin-advanced-block summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-log-toolbar {
  margin-bottom: 12px;
}

.filters.admin-ratings-filters {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(120px, 0.7fr) auto;
  align-items: end;
}

.admin-ratings-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.filters.admin-ratings-filters .admin-ratings-filter-actions .page-link {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .filters.admin-ratings-filters {
    grid-template-columns: 1fr;
  }
}

.admin-log-view {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  max-height: 70vh;
  overflow: auto;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.listing-vin-admin {
  margin-top: 0.35rem;
}

.listing-vin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.listing-vin-value {
  margin: 0.35rem 0 0;
}

.listing-customs-info,
.listing-customs-admin {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

.catalog-admin-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.catalog-admin-rating--compact {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}

.catalog-admin-rating-label {
  color: var(--muted, #64748b);
}

.catalog-admin-rating-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.82em;
  line-height: 1.35;
}

.catalog-admin-rating-value--1 {
  background: #dcfce7;
  color: #166534;
}

.catalog-admin-rating-value--2 {
  background: #fef3c7;
  color: #92400e;
}

.catalog-admin-rating-value--3 {
  background: #fee2e2;
  color: #991b1b;
}

.catalog-admin-rating-missing {
  color: var(--muted, #94a3b8);
  font-style: italic;
}

.btn-link-like {
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.btn-link-like.danger {
  color: #b91c1c;
}

.account-row-actions {
  margin-top: 0;
}

.login-account-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.account-login-status {
  margin-top: 6px;
  max-width: 280px;
  line-height: 1.35;
  color: #1e3a8a;
}

.account-row-in-progress {
  background: #f8fbff;
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.account-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avby-accounts-table td {
  vertical-align: top;
}

.admin-vin-daily-section {
  margin: 1.25rem 0 1.75rem;
}

.admin-vin-daily-section .table-scroll {
  overflow-x: auto;
}

.avby-vin-daily-table th.num,
.avby-vin-daily-table td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.avby-vin-daily-table td.is-positive {
  font-weight: 600;
}

.avby-vin-daily-table .totals-row td {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.sync-table {
  font-size: 0.88rem;
}

.sync-table th,
.sync-table td {
  white-space: nowrap;
}

.avby-accounts-table .account-status-cell {
  white-space: normal;
  min-width: 220px;
  max-width: 420px;
}

.account-error-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.account-row-has-error {
  background: #fff7f7;
}

.account-row-highlight {
  outline: 2px solid #f87171;
  outline-offset: -2px;
}

.sync-error {
  margin-top: 4px;
  color: #b91c1c;
  font-size: 0.75rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actions-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions-row button,
.btn-link {
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
}

.btn-link.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.actions-row button.danger {
  background: linear-gradient(180deg, #dc2626, #b91c1c);
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.inline-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.inline-checkbox input {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin-top: 2px;
}

.dropzone {
  border: 2px dashed #93b4f7;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #f5f9ff;
  display: grid;
  gap: 6px;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--primary);
  background: #e7f0ff;
}

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

.upload-toolbar button {
  border: none;
  border-radius: 8px;
  background: #51627f;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
}

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

.preview-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface);
  display: grid;
  gap: 6px;
}

.preview-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.preview-card p {
  margin: 0;
  font-size: 12px;
  color: #334155;
  word-break: break-word;
}

.preview-card button {
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 6px 8px;
  cursor: pointer;
}

.progress-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.2s ease;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.detail-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dbe3ea;
}

.detail-cover-photo {
  height: 360px;
  margin-bottom: 12px;
}

.photo-link {
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.photo-link .detail-photo,
.photo-link .detail-cover-photo,
.photo-link .listing-gallery-thumb {
  margin-bottom: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.photo-link:hover .detail-photo,
.photo-link:hover .detail-cover-photo,
.photo-link:hover .listing-gallery-thumb {
  transform: scale(1.02);
}

.listing-source-link {
  margin: 4px 0 0;
}

.listing-source-link a {
  color: var(--primary);
  text-decoration: none;
}

.listing-source-link a:hover {
  text-decoration: underline;
}

.listing-detail-page {
  padding: 18px;
}

.listing-detail-header {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(180px, 240px);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.listing-detail-heading {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  align-self: center;
}

.listing-detail-header-price {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  max-width: 100%;
  text-align: right;
  padding-left: 12px;
}

.listing-detail-header-price .listing-price {
  white-space: normal;
  max-width: 100%;
}

.listing-detail-header-price .listing-price-values {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: end;
  column-gap: 0.85em;
  row-gap: 6px;
  align-items: baseline;
}

.listing-detail-header-price .listing-price-has-conversions .listing-price-primary {
  grid-column: 1 / -1;
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

.listing-detail-header-price .listing-price-has-conversions .listing-price-converted-rub {
  grid-column: 1;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.listing-detail-header-price .listing-price-has-conversions .listing-price-converted-usd {
  grid-column: 2;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.listing-detail-header-price .listing-price-has-conversions .listing-price-tooltip {
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
}

.listing-detail-header-price .listing-price:not(.listing-price-has-conversions) .listing-price-primary {
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

.listing-detail-header-price .byn-sign {
  width: 0.55em;
  height: 0.65em;
  vertical-align: -0.05em;
  opacity: 0.92;
}

.listing-detail-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #1e3a8a;
}

.listing-detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(180px, 240px);
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: stretch;
}

.listing-detail-specs {
  min-width: 0;
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
}

.listing-detail-catalog-link {
  display: block;
  margin-bottom: 14px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #c9dcff;
  background: #f8fbff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.listing-detail-catalog-link:hover {
  background: #eef4ff;
  border-color: #93c5fd;
}

.listing-spec-list {
  margin: 0;
  display: grid;
  gap: 0;
}

.listing-spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef5;
}

.listing-spec-row:first-child {
  padding-top: 0;
}

.listing-spec-row dt {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}

.listing-spec-row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 600;
}

.listing-price {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  cursor: help;
  outline: none;
}

.listing-price-values {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.35em 0.75em;
  max-width: 100%;
}

.listing-price-byn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

.byn-sign {
  display: inline-block;
  width: 0.62em;
  height: 0.72em;
  flex-shrink: 0;
  vertical-align: -0.08em;
}

.listing-price-primary {
  font-weight: 400;
  color: #475569;
}

.listing-price-converted {
  white-space: nowrap;
  flex-shrink: 0;
}

.listing-price-converted-rub {
  font-size: 1.12em;
  font-weight: 700;
  color: #0f172a;
}

.listing-price-converted-usd {
  font-size: 0.92em;
  font-weight: 500;
  color: #64748b;
}

.listing-price-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 120;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 32px));
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  pointer-events: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.listing-price-has-conversions.is-price-tooltip-open .listing-price-tooltip,
.listing-price-has-conversions:hover .listing-price-tooltip,
.listing-price-has-conversions:focus-within .listing-price-tooltip {
  display: block;
}

.listing-detail-header:has(.listing-price-has-conversions.is-price-tooltip-open),
.listing-detail-header:has(.listing-price-has-conversions:hover),
.listing-detail-header:has(.listing-price-has-conversions:focus-within) {
  position: relative;
  z-index: 30;
}

.listing-price-tooltip-primary {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  color: #475569;
}

.listing-price-tooltip-converted {
  margin: 0 0 4px;
  line-height: 1.25;
  white-space: nowrap;
}

.listing-price-tooltip-converted-rub {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.listing-price-tooltip-converted-usd {
  font-size: 18px;
  font-weight: 500;
  color: #64748b;
}

.listing-price-tooltip-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
  white-space: normal;
  overflow-wrap: break-word;
}

.offer-feed-price .listing-price {
  display: inline-flex;
}

.offer-feed-price {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.offer-feed-price:has(.listing-price-has-conversions) {
  overflow: visible;
}

.offer-feed-price p {
  white-space: nowrap;
}

.listings-feed .listings-feed-price {
  margin-top: auto;
  padding-top: 10px;
  margin-left: -10px;
  margin-right: -10px;
  margin-bottom: -10px;
  width: calc(100% + 20px);
  max-width: none;
}

.listings-feed .listings-feed-price {
  overflow: visible;
}

.listings-feed .listings-feed-price .listing-price {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #cfe0fb;
  border-bottom: none;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  cursor: help;
}

.listings-feed .listings-feed-price .listing-price-values {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.listings-feed .listings-feed-price .listing-price-has-conversions .listing-price-tooltip {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.listings-feed .listings-feed-price .listing-price-primary,
.listings-feed .listings-feed-price .listing-price-converted {
  flex: 0 1 auto;
  min-width: 0;
}

.listings-feed .listing-card:has(.listing-price-has-conversions.is-price-tooltip-open),
.listings-feed .listing-card:has(.listing-price-has-conversions:hover),
.listings-feed .listing-card:has(.listing-price-has-conversions:focus-within) {
  position: relative;
  z-index: 25;
}

.listings-feed .listings-feed-price .listing-price-primary {
  font-size: 17px;
  font-weight: 700;
  color: #1e3a8a;
}

.listings-feed .listings-feed-price .listing-price-converted-rub {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.listings-feed .listings-feed-price .listing-price-converted-usd {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.listing-spec-row-icon dd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-spec-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #64748b;
}

.listing-spec-icon svg,
.listing-spec-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.listing-spec-icon img {
  object-fit: contain;
}

.listing-detail-specs .listing-customs-info,
.listing-detail-specs .listing-admin-meta {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.listing-detail-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding-top: 0;
}

.listing-detail-side-action {
  display: block;
  text-align: center;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid #c9dcff;
  background: #f8fbff;
  color: #1e3a8a;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.listing-detail-side-action:hover {
  background: #eef4ff;
  border-color: #93c5fd;
}

.listing-detail-side-action-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.listing-detail-side-action-primary:hover {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border-color: transparent;
  color: #fff;
}

.listing-detail-center {
  min-width: 0;
  padding-left: 0;
  grid-column: 2;
  grid-row: 1;
}

.listing-detail-ad-slot {
  min-height: 320px;
  grid-column: 3;
  grid-row: 1;
}

.listing-gallery {
  margin-bottom: 0;
}

.listing-gallery-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.listing-gallery-main-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  background: #eef2f7;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 4 / 3;
}

.listing-gallery-active-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.listing-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  width: 100%;
  box-sizing: border-box;
}

.listing-gallery-thumb-btn {
  flex: 0 0 calc((100% - 32px) / 5);
  min-width: 72px;
  max-width: 96px;
  aspect-ratio: 4 / 3;
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid #dbe3ea;
  border-radius: 8px;
  background: #eef2f7;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-gallery-thumb-btn:hover,
.listing-gallery-thumb-btn:focus-visible {
  opacity: 1;
  border-color: #93c5fd;
}

.listing-gallery-thumb-btn.is-active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.listing-gallery-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #eef2f7;
}

.listing-detail-description {
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid #e8eef5;
}

.listing-detail-description-title {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
  color: #1e3a8a;
}

.listing-detail-description-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-wrap;
}

.listing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.92);
}

.listing-lightbox[hidden] {
  display: none !important;
}

body.listing-lightbox-open {
  overflow: hidden;
}

.listing-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(96vw, 1400px);
  max-height: 90vh;
}

.listing-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.listing-lightbox-close,
.listing-lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.listing-lightbox-close:hover,
.listing-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.listing-lightbox-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.listing-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 72px;
  border-radius: 10px;
  font-size: 34px;
  line-height: 1;
}

.listing-lightbox-prev {
  left: 18px;
}

.listing-lightbox-next {
  right: 18px;
}

.pager {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.pager-nav-prev {
  justify-self: start;
}

.pager-nav-next {
  justify-self: end;
}

.pager-summary {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.page-link {
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: background-color 0.15s ease;
}

.page-link:hover {
  background: #eaf1ff;
}

.page-link.disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
}

.compare-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.compare-table th,
.compare-table td {
  border: 1px solid #e2e8f0;
  padding: 10px;
  vertical-align: top;
  min-width: 180px;
}

.compare-table th:first-child,
.compare-table td:first-child {
  min-width: 220px;
  background: #f8fafc;
}

.compare-table td.compare-better {
  background: #dcfce7;
  color: #14532d;
}

.compare-table td.compare-worse {
  background: #fee2e2;
  color: #7f1d1d;
}

.compare-section-row td {
  background: linear-gradient(180deg, #e6efff, #dbeafe);
  color: #1e40af;
  font-weight: 700;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.45px;
  font-size: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 3px solid #bfdbfe;
}

.spec-section-title {
  margin: 26px 0 10px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.55px;
  color: #1d4ed8;
  font-size: 19px;
  font-weight: 800;
  padding: 8px 12px;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  border-radius: 8px;
}

.specs-wrap {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
}

.specs-wrap h2 {
  margin-top: 4px;
}

.spec-section-body {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.home-hero {
  background: linear-gradient(180deg, #eaf1ff 0%, #dce8fb 100%);
  border: 1px solid #c9dcff;
  border-radius: 22px;
  padding: 34px 24px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: 0 16px 34px rgba(30, 64, 175, 0.12);
}

.home-badge {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #1d4ed8;
  background: #dbeafe;
}

.home-hero h1 {
  margin: 0 0 10px;
  font-size: 52px;
  line-height: 1.05;
  color: #1e3a8a;
}

.home-subtitle {
  max-width: 720px;
  margin: 0 auto 16px;
  color: #54637f;
}

.home-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.home-stats div {
  background: rgba(255, 255, 255, 0.52);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #d5e4fb;
}

.home-stats strong {
  display: block;
  font-size: 30px;
  color: #1e3a8a;
  line-height: 1;
}

.home-stats span {
  font-size: 12px;
  color: #54637f;
}

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

.home-link {
  display: inline-block;
  margin-top: 8px;
  color: #1d4ed8;
  font-weight: 600;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 4px;
}

.home-actions-quick {
  margin-top: 0;
}

.home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.home-actions .btn-primary {
  background: #1d4ed8;
  color: #fff;
}

.home-actions .btn-primary:hover {
  background: #1e40af;
}

.home-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a8a;
  border-color: #c9dcff;
}

.home-actions .btn-secondary:hover {
  background: #fff;
}

.home-feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.12);
}

.home-section {
  margin-top: 28px;
}

.home-section-makes {
  margin-top: 12px;
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #1e3a8a;
}

.home-makes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.home-make-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow: var(--shadow);
}

.home-make-card:hover {
  border-color: #93c5fd;
}

.home-make-card .make-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.home-make-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 1.2rem;
  font-weight: 700;
}

.home-make-card strong {
  font-size: 0.92rem;
}

.home-make-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.home-listings-feed {
  margin-top: 4px;
}

.home-how {
  margin-top: 32px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.home-how h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.home-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: #54637f;
  line-height: 1.55;
}

.home-steps li + li {
  margin-top: 10px;
}

.home-steps strong {
  color: #1e3a8a;
}

@media (max-width: 1200px) {
  .catalog.listings-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .header {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
  }

  .header .brand {
    font-size: 24px;
  }

  .header-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #dbe6fb;
  }

  .header-nav-wrap.is-open {
    display: flex;
  }

  .header-nav-row,
  .header-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .header-nav a,
  .header-nav-dropdown-toggle,
  .header-nav .user-badge {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  .header-nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  .header-nav-dropdown-menu[hidden] {
    display: none;
  }

  body.header-nav-open {
    overflow: hidden;
  }

  .page {
    margin-top: 10px;
    padding: 0 8px 24px;
  }

  .grid,
  .catalog,
  .filters,
  .photo-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .catalog.listings-feed {
    grid-template-columns: 1fr;
  }

  .home-search,
  .home-stats,
  .home-features,
  .home-makes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-makes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .catalog-beta-makes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-beta-page .catalog-beta-makes-grid .make-logo,
  .catalog-beta-page .catalog-beta-makes-grid .home-make-fallback,
  .catalog-beta-text-tile {
    max-width: 100%;
  }

  .catalog-beta-page .catalog-beta-makes-grid .home-make-fallback {
    font-size: 1.6rem;
  }

  .catalog-page .catalog-makes-grid .make-logo,
  .catalog-page .catalog-makes-grid .home-make-fallback {
    width: 48px;
    height: 48px;
  }

  .catalog-page .catalog-makes-grid .home-make-card strong {
    font-size: 0.68rem;
  }

  .home-hero {
    padding: 16px 14px;
    margin-bottom: 10px;
    border-radius: 16px;
  }

  .home-hero h1 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .home-subtitle {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .home-actions {
    margin-top: 0;
  }

  .home-make-card {
    padding: 10px 6px;
    gap: 4px;
  }

  .home-make-card .make-logo,
  .home-make-fallback {
    width: 40px;
    height: 40px;
  }

  .home-make-card strong {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .home-section {
    margin-top: 18px;
  }

  .home-section-makes {
    margin-top: 10px;
  }

  .home-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .catalog-sidebar {
    position: static;
  }

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

  .generation-mini-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    justify-content: center;
  }

  .listing-detail-header {
    grid-template-columns: 1fr;
  }

  .listing-detail-heading,
  .listing-detail-header-price {
    grid-column: 1;
    grid-row: auto;
  }

  .listing-detail-header-price {
    max-width: none;
    padding-left: 0;
    text-align: left;
  }

  .listing-detail-header-price .listing-price-values {
    justify-content: start;
  }

  .listing-detail-header-price .listing-price-has-conversions .listing-price-tooltip {
    left: 0;
    right: auto;
  }

  .listing-detail-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .listing-detail-specs,
  .listing-detail-center,
  .listing-detail-ad-slot,
  .listing-detail-description {
    grid-column: 1;
    grid-row: auto;
  }

  .listing-detail-center {
    padding-left: 0;
  }

  .listing-detail-ad-slot {
    display: none;
  }

  .listing-detail-side-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .listing-detail-side-action {
    flex: 1 1 auto;
  }

  .listing-gallery-main-btn {
    aspect-ratio: 4 / 3;
  }

  .listing-gallery-thumb-btn {
    flex-basis: 72px;
    min-width: 72px;
    max-width: 72px;
  }

  .listing-lightbox-nav {
    width: 38px;
    height: 56px;
    font-size: 28px;
  }

  .pager {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .pager-nav-prev,
  .pager-nav-next {
    justify-self: center;
  }

  .pager-summary {
    white-space: normal;
    order: -1;
  }
}

.guide-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 4px 40px;
  line-height: 1.55;
}

.guide-header {
  margin-bottom: 24px;
}

.guide-header h1 {
  margin: 8px 0 12px;
  font-size: 1.75rem;
  line-height: 1.25;
}

.guide-lead {
  color: #3a4a66;
  font-size: 1.05rem;
}

.guide-section {
  margin: 0 0 28px;
}

.guide-section h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.guide-section h3 {
  margin: 16px 0 6px;
  font-size: 1.05rem;
}

.guide-section ol,
.guide-section ul {
  padding-left: 1.25rem;
}

.guide-section li {
  margin: 6px 0;
}

.guide-section .btn-primary,
.guide-section .btn-secondary {
  display: inline-block;
  margin: 8px 8px 0 0;
}
