* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-text);
}
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); text-decoration: none; }
img { max-width: 100%; display: block; }
button, .btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
/* Без класса — нейтральная кнопка; вид задаёт компонент (.catalog-btn, .product-icon-btn, …) */
button {
  background: transparent;
  color: inherit;
}
/* Явные primary-действия */
.btn, a.btn, .btn-primary,
:is(.public-body, .account-body) button[type="submit"]:not(.secondary):not(.light):not(.danger):not(.header-logout-btn):not(.catalog-btn):not(.catalog-cat-tile):not(.catalog-view-btn):not(.catalog-extra-chip):not(.catalog-matrix-back):not(.catalog-matrix-link):not(.catalog-category-chip):not(.catalog-filters-close):not(.catalog-filters-toggle):not(.catalog-matrix-change):not(.product-icon-btn):not(.catalog-help-modal__submit):not(.auth-call-btn):not(.theme-toggle-btn):not(.site-nav-toggle):not(.account-sidebar-toggle):not(.m-tabbar-item):not(.toast-close) {
  background: var(--color-accent);
  color: #fff;
}
.btn:hover, a.btn:hover, .btn-primary:hover,
:is(.public-body, .account-body) button[type="submit"]:not(.secondary):not(.light):not(.danger):not(.header-logout-btn):not(.catalog-btn):not(.catalog-cat-tile):not(.catalog-view-btn):not(.catalog-extra-chip):not(.catalog-matrix-back):not(.catalog-matrix-link):not(.catalog-category-chip):not(.catalog-filters-close):not(.catalog-filters-toggle):not(.catalog-matrix-change):not(.product-icon-btn):not(.catalog-help-modal__submit):not(.auth-call-btn):not(.theme-toggle-btn):not(.site-nav-toggle):not(.account-sidebar-toggle):not(.m-tabbar-item):not(.toast-close):hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
button.secondary, .btn.light, .btn.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
button.catalog-btn:hover,
button.catalog-cat-tile:hover,
button.catalog-view-btn:hover,
button.catalog-extra-chip:hover,
button.catalog-matrix-back:hover,
button.catalog-matrix-link:hover,
button.catalog-category-chip:hover,
button.catalog-filters-close:hover,
button.catalog-filters-toggle:hover,
button.catalog-matrix-change:hover {
  transform: none;
}
button.secondary:hover, .btn.light:hover, .btn.secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-surface-3);
}
.btn-sm { padding: 8px 14px; font-size: var(--text-xs); }
.btn.danger, button.danger {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}
.btn.danger:hover, button.danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}
input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea { min-height: 120px; resize: vertical; }
label { display: block; margin-bottom: var(--space-2); font-weight: 600; font-size: var(--text-sm); }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: var(--space-7) 0; }
.compact-top { padding-top: var(--space-5); }
.soft-bg { background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-accent-soft) 100%); }
.mt-16 { margin-top: var(--space-4); }
.mt-24 { margin-top: var(--space-5); }
.small { font-size: var(--text-xs); }
.muted { color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; border: 1px solid transparent; }
.alert.success { background: var(--color-success-soft); color: #065f46; border-color: var(--color-success-border); }
.alert.error { background: var(--color-danger-soft); color: #991b1b; border-color: #fecaca; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.badge.success { background: var(--color-success-soft); color: var(--color-success); }
.badge.danger { background: var(--color-danger-soft); color: var(--color-danger); }
.badge.warn { background: #fff7ed; color: var(--color-warning); }
.badge.dark { background: var(--color-surface-2); color: var(--color-text-muted); }
.inline { display: inline; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.stack-form { display: grid; gap: 12px; }
.stack-form label input,
.stack-form label textarea,
.stack-form label select { margin-top: 6px; }
.form-group-label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 4px; }
.vehicle-selector-hint { margin: 0 0 8px; }
.vehicle-selector-footnote { margin: 8px 0 0; }
.vehicle-autocomplete-block .vehicle-autocomplete { margin-top: 8px; }
.vehicle-autocomplete-block .vehicle-ai-status { margin: 0; }
.form-group { margin-bottom: 16px; }
.form-grid-2, .form-grid-3, .compact-grid, .spec-grid, .request-grid, .stats-grid, .footer-grid, .category-grid, .product-grid, .split-grid, .benefit-list { display: grid; gap: 16px; }
.form-grid-2, .split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-grid { gap: 12px; }
.span-2 { grid-column: span 2; }
.checkbox-group { display: grid; gap: 10px; align-content: start; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.checkbox-inline input, .checkbox-group input { width: auto; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
th { font-size: 13px; color: #6b7280; }
.report { background: #0f172a; color: #dbeafe; padding: 16px; border-radius: 14px; overflow-x: auto; }

/* public */
.public-body,
.account-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.public-body { background: var(--color-bg); color: var(--color-text); }
.public-body > #app-content,
.account-body > .container.account-page {
  flex: 1 0 auto;
}
.public-body > .site-footer,
.account-body > .site-footer {
  flex-shrink: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(168px, 42vw);
  object-fit: contain;
}
.brand-logo--dark,
.brand-logo--mark {
  display: none;
}
[data-theme="dark"] .brand-logo--light {
  display: none;
}
[data-theme="dark"] .brand-logo--dark {
  display: block;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand strong, .brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand strong { font-size: 15px; line-height: 1.2; max-width: 180px; }
.brand small { color: #6b7280; font-size: 11px; line-height: 1.2; max-width: 180px; }
.sidebar-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}
.site-nav-group {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  flex-wrap: nowrap;
}
.site-nav-sep {
  width: 1px;
  height: 18px;
  background: #d1d5db;
  flex-shrink: 0;
}
.site-nav a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--color-text); text-decoration: none; }
.site-nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}
.site-nav-more {
  position: relative;
  flex-shrink: 0;
}
.site-nav-more > summary,
.site-nav-more-btn {
  list-style: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  user-select: none;
  background: transparent;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font: inherit;
}
.site-nav-more > summary::-webkit-details-marker { display: none; }
.site-nav-more > summary:hover,
.site-nav-more-btn:hover,
.site-nav-more.is-open > .site-nav-more-btn {
  color: var(--color-text);
}
.site-nav-more.is-open > .site-nav-more-btn {
  border-bottom-color: var(--color-accent);
}
.site-nav-more:not(.is-open) .site-nav-more-panel {
  display: none;
  pointer-events: none;
}
.site-nav-more.is-open .site-nav-more-panel {
  display: grid;
}
.site-nav-more.is-opening .site-nav-more-panel a {
  pointer-events: none;
}
.site-nav-more-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
  z-index: 80;
  gap: 2px;
}
.site-nav-more-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border-bottom: 0;
  color: var(--color-text);
}
.site-nav-more-panel a:hover {
  background: #f3f4f6;
  text-decoration: none;
}
.site-nav-more-panel a.active {
  background: #eff6ff;
  color: var(--color-accent-soft-text);
}
.contact-pill-label {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.header-cart-btn:hover {
  background: #f3f4f6;
  text-decoration: none;
}
.header-cart-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-accent-soft-text);
  background: #eff6ff;
}
.header-cart-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 180px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.contact-pill:hover {
  border-color: var(--color-accent-soft-border, #bfdbfe);
  color: var(--color-accent);
}
.user-avatar--staff {
  background: #fef3c7;
  color: #b45309;
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}
.header-logout-btn {
  padding: 8px 14px;
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.header-logout-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
  transform: none;
}
.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.site-header.is-nav-open .site-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-nav-open .site-nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-nav-open .site-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.theme-toggle-icon { font-size: 15px; line-height: 1; }
.theme-toggle-btn .theme-toggle-icon--moon { opacity: 0.45; }
.theme-toggle-btn.is-dark .theme-toggle-icon--sun { opacity: 0.45; }
.theme-toggle-btn.is-dark .theme-toggle-icon--moon { opacity: 1; }

/* account cabinet */
.account-body { background: #f8fafc; }
.account-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}
.account-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}
.account-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.account-topbar-site { padding: 8px 12px; font-size: 13px; }
.account-page { padding-top: 20px; padding-bottom: 28px; }
.account-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}
.account-sidebar-head { margin-bottom: 14px; }
.account-sidebar-name {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  margin-top: 4px;
}
.account-sidebar-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-nav {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.account-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  text-decoration: none;
}
.account-nav a:hover {
  background: #f3f4f6;
  text-decoration: none;
}
.account-nav a.active {
  background: #111827;
  color: #fff;
}
.account-content { min-width: 0; }
.order-action-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.order-action-card--cancel {
  background: #fff1f2;
  border-color: #fecaca;
}
.order-action-card--muted {
  background: #f8fafc;
}
.order-action-card .btn { width: 100%; justify-content: center; }
.account-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.account-page-head h1 { margin: 0 0 8px; }
.account-footer { margin-top: 8px; }
.account-sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.account-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.account-body.is-sidebar-open .account-sidebar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.account-body.is-sidebar-open .account-sidebar-toggle span:nth-child(2) { opacity: 0; }
.account-body.is-sidebar-open .account-sidebar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-section { padding: 48px 0 24px; background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 24px; align-items: start; }
.hero-section h1 { margin: 0 0 16px; font-size: 44px; line-height: 1.06; }
.lead { font-size: 18px; color: #475569; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-panel { padding: 24px; }
.feature-list { margin: 18px 0 0; padding-left: 18px; color: #475569; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h1, .section-head h2, .section-head h3 { margin: 0; }
.compact-head { margin-bottom: 12px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-card-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-card-body span { color: var(--color-text-muted); font-size: var(--text-sm); }
.stat-card strong { display: block; font-size: var(--text-xl); margin-bottom: 6px; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.product-image-wrap { display: block; aspect-ratio: 4 / 3; background: var(--color-surface-2); overflow: hidden; position: relative; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.product-card:hover .product-image { transform: scale(1.03); }
.product-body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.product-meta { color: var(--color-text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.product-body h3 { margin: 0; font-size: var(--text-base); font-family: var(--font-display); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 2); }
.product-body h3 a { color: var(--color-text); }
.product-body h3 a:hover { color: var(--color-accent); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-footer.wrap { flex-wrap: wrap; }
.split-grid { align-items: start; }
.benefit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.benefit-item { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
.benefit-item strong, .benefit-item span { display: block; }
.benefit-item span { color: #6b7280; margin-top: 6px; }
.form-card { padding: 24px; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.filter-panel { position: sticky; top: 72px; align-self: start; }
.catalog-summary { margin-bottom: 18px; color: #475569; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pagination a { min-width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
.pagination a.active { background: #111827; color: #fff; }
.breadcrumbs { margin-bottom: 16px; color: #6b7280; }
.detail-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.gallery { overflow: hidden; }
.detail-main-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(480px, 58vh);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: transparent;
}
.gallery.card { position: relative; }
.detail-gallery-column .gallery.card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.thumb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.thumb-image { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; background: #e5e7eb; }
.photo-carousel-editor { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.photo-carousel-preview { position: relative; border-radius: 16px; overflow: hidden; background: #e5e7eb; aspect-ratio: 4 / 3; }
.photo-carousel-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-carousel-preview-badge { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(17,24,39,.82); color: #fff; font-size: 12px; font-weight: 700; }
.photo-carousel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-carousel-item { border: 1px solid #dbeafe; border-radius: 14px; padding: 8px; background: #fff; cursor: grab; }
.photo-carousel-item.is-dragging { opacity: .55; }
.photo-carousel-item.is-primary { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.photo-carousel-item-pending { cursor: default; border-style: dashed; background: #f8fafc; }
.photo-carousel-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #e5e7eb; }
.photo-carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-carousel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.photo-carousel-actions .btn.small { padding: 5px 8px; font-size: 12px; }
.photo-carousel-pending-label { display: block; font-size: 11px; color: #64748b; line-height: 1.35; }
.photo-carousel-upload { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.photo-carousel-toolbar { display: grid; gap: 8px; }
@media (max-width: 900px) { .photo-carousel-editor { grid-template-columns: 1fr; } }
.detail-card h1 { margin-top: 8px; margin-bottom: 14px; font-size: 34px; }
.price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.price-big { font-size: 34px; }
.spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.info-box { background: #eff6ff; color: #1e3a8a; border-radius: 14px; padding: 14px; margin-top: 12px; }
.info-box.warn { background: #fff7ed; color: #9a3412; }
.contact-stack { display: grid; gap: 12px; }
.contact-card strong, .contact-card span { display: block; }
.contact-card span { margin-top: 8px; color: #475569; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.empty-card { text-align: center; padding: 40px; }

/* admin */
.admin-body { background: #eef2f7; }
.layout { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 55%, #111827 100%);
  color: #fff;
  padding: 18px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 12px 0 40px rgba(15,23,42,.08);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 2px; }
.sidebar-brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.sidebar-brand-text { min-width: 0; display: grid; gap: 2px; }
.sidebar-brand-text strong { font-size: 16px; line-height: 1.2; color: #f8fafc; }
.sidebar-brand-text small { color: #94a3b8; font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav { display: flex; flex-direction: column; gap: 0; min-height: 0; flex: 1; }
.admin-nav { overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 999px; }
.nav-primary { display: grid; gap: 4px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-sections { display: grid; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 10px;
  color: #cbd5e1; padding: 9px 12px; border-radius: 11px;
  text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.35;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.nav-link-child { padding: 7px 10px 7px 14px; font-size: 12.5px; font-weight: 550; border-radius: 9px; }
.nav-link-icon { width: 18px; text-align: center; opacity: .72; font-size: 12px; flex-shrink: 0; }
.nav-link-text { min-width: 0; }
.nav-link.active, .nav-link:hover { background: rgba(37,99,235,.18); color: #fff; }
.nav-link.active { box-shadow: inset 3px 0 0 #3b82f6; }
.nav-section { border-radius: 12px; background: rgba(255,255,255,.02); }
.nav-section-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: #e2e8f0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; text-align: left;
}
.nav-section-toggle:hover { background: rgba(255,255,255,.05); }
.nav-section-title { flex: 1; min-width: 0; }
.nav-section-chevron {
  width: 8px; height: 8px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg); transition: transform .18s ease; flex-shrink: 0; margin-top: -2px;
}
.nav-section.is-open .nav-section-chevron { transform: rotate(-135deg); margin-top: 2px; }
.nav-section-body { display: none; padding: 2px 6px 8px; }
.nav-section.is-open .nav-section-body { display: grid; gap: 2px; }
.nav-subgroup { display: grid; gap: 2px; margin-top: 4px; }
.nav-subgroup:first-child { margin-top: 0; }
.nav-subgroup-label {
  padding: 6px 10px 4px 14px; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(148,163,184,.85);
}
.nav-section--footer { margin-top: 6px; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; background: transparent; }
.sidebar .nav-count { margin-left: auto; background: #2563eb; font-size: 10px; min-width: 17px; height: 17px; }
.content { padding: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-topbar {
  padding: 16px 20px; margin: -8px -4px 20px;
  background: #fff; border: 1px solid rgba(203,213,225,.72);
  border-radius: 18px; box-shadow: 0 10px 28px rgba(15,23,42,.05);
}
.topbar-title { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.topbar-user { margin-top: 4px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, var(--color-bg) 0%, #eef2f7 100%); }
.login-card { width: min(440px, 100%); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); padding: 28px 28px 24px; }
.auth-body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--color-text); background: linear-gradient(180deg, var(--color-bg) 0%, #eef2f7 100%); }
.auth-page { display: grid; gap: 20px; }
.auth-page-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-soft-text); }
.auth-page-title { margin: 6px 0 0; font-size: 28px; line-height: 1.15; color: var(--color-text); }
.auth-page-lead { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--color-text-muted); }
.auth-shell { max-width: 480px; margin: 0 auto; }
.auth-shell-section { padding-top: 8px; padding-bottom: 32px; }
.auth-shell-section .auth-page { padding: 24px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-form { display: grid; gap: 14px; }
.auth-form .form-group { margin: 0; display: grid; gap: 6px; }
.auth-form .form-group > label { font-size: 13px; font-weight: 600; color: var(--color-text); text-transform: none; letter-spacing: normal; margin: 0; }
.auth-optional { font-weight: 500; color: var(--color-text-muted); font-size: 12px; }
.auth-input { min-height: 46px; width: 100%; box-sizing: border-box; }
.auth-segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px; border-radius: 14px; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.auth-segment-item { position: relative; margin: 0; cursor: pointer; }
.auth-segment-item input { position: absolute; opacity: 0; pointer-events: none; }
.auth-segment-item span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--color-text-muted); text-align: center; transition: background .15s, color .15s, box-shadow .15s; }
.auth-segment-item input:checked + span { background: #fff; color: var(--color-text); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.auth-segment-item input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.phone-field { display: flex; align-items: stretch; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: #fff; }
.phone-field-prefix { display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--color-text-muted); background: var(--color-surface-2); border-right: 1px solid var(--color-border); flex-shrink: 0; }
.phone-field-input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 46px; }
.auth-domain-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.auth-domain-badges span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-soft-text); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.auth-inline-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.auth-inline-btn { white-space: nowrap; min-height: 46px; padding-inline: 14px; }
.auth-call-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  box-shadow: none;
}
.auth-call-btn:hover:not(:disabled) { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.auth-call-btn:disabled { opacity: .72; cursor: not-allowed; color: #fff; }
.auth-call-btn__icon { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; color: #fff; }
.auth-call-btn__timer { font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; }
.auth-call-status--error,
.field-help.auth-call-status--error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.auth-reg-block[hidden] { display: none !important; }
.auth-reg-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 700;
}
.auth-reg-progress__item {
  color: var(--color-text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-surface-2);
}
.auth-reg-progress__item.is-active {
  color: var(--color-accent-soft-text);
  background: var(--color-accent-soft);
}
.auth-reg-progress__item.is-done { color: var(--color-text); }
.auth-reg-progress__sep {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: var(--color-border);
  min-width: 12px;
}
.auth-reg-back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--color-accent-soft-text);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 4px;
  cursor: pointer;
}
.auth-reg-back:hover { text-decoration: underline; }
.auth-reg-optional {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-2);
  overflow: hidden;
}
.auth-reg-optional summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
.auth-reg-optional summary::-webkit-details-marker { display: none; }
.auth-reg-optional__body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--color-border);
}
.auth-reg-optional .vehicle-selector-embedded { margin: 0; }
.auth-reg-optional .vehicle-ai-status:empty { display: none; }
.auth-info-panel { border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-2); overflow: hidden; }
.auth-info-panel summary { padding: 12px 14px; font-size: 13px; font-weight: 700; color: var(--color-text); cursor: pointer; list-style: none; }
.auth-info-panel summary::-webkit-details-marker { display: none; }
.auth-info-panel[open] summary { border-bottom: 1px solid var(--color-border); }
.auth-info-list { margin: 0; padding: 12px 14px 14px 28px; font-size: 13px; line-height: 1.5; color: var(--color-text-muted); }
.auth-remember { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-text); cursor: pointer; user-select: none; margin: 0; padding: 0; border: 0; background: transparent; text-transform: none; font-weight: 500; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--color-accent); flex-shrink: 0; }
.auth-submit { width: 100%; min-height: 48px; font-size: 15px; font-weight: 700; margin-top: 4px; color: #fff !important; }
.auth-page-oauth { display: grid; gap: 10px; padding-top: 4px; }
.auth-vk-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0077ff;
  color: #fff !important;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.auth-vk-btn:hover { background: #0066dd; color: #fff !important; }
.auth-page-links { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; font-size: 14px; flex-wrap: wrap; }
.auth-page-links--center { justify-content: center; align-items: center; }
.auth-page-links a { color: var(--color-accent-soft-text); font-weight: 600; text-decoration: none; }
.auth-page-links a:hover { color: var(--color-accent-hover); text-decoration: underline; }
.login-card .captcha-box { margin-top: 2px; }
.login-wrap .auth-remember,
.auth-page .auth-remember { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; text-transform: none; font-weight: 500; }
.request-list { display: grid; gap: 16px; }
.request-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 16px; }
.request-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.request-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.admin-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 20px; }

@media (max-width: 1100px) {
  .product-grid, .category-grid, .stats-grid, .benefit-list, .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .catalog-layout, .detail-layout, .form-grid-3, .row, .footer-grid { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { padding-bottom: 12px; }
  .brand strong, .brand small { max-width: 140px; }
  .site-nav a { font-size: 13px; }
  .contact-pill { max-width: 120px; }
}

@media (max-width: 900px) {
  .brand small { display: none; }
  .site-nav-sep { display: none; }
  .site-nav-group--meta { margin-left: 0; }
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar-toggle { display: inline-flex; }
  .account-topbar-logout { display: none; }
  .account-topbar-site { display: none; }
  .account-sidebar {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
    top: auto;
    position: static;
    margin-bottom: 0;
  }
  .account-body.is-sidebar-open .account-sidebar { display: block; }
  .account-page-head { flex-direction: column; align-items: stretch; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 20px, 1180px); }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 58px;
  }
  .site-nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 16px;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    padding: 12px 10px;
    border-bottom: 0;
    border-radius: 10px;
  }
  .site-nav-more > summary,
  .site-nav-more-btn {
    padding: 12px 10px;
    border-bottom: 0;
    border-radius: 10px;
    width: 100%;
    text-align: left;
  }
  .site-nav-more-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 4px 12px;
    background: transparent;
  }
  .site-nav-more:not(.is-open) .site-nav-more-panel {
    display: none;
  }
  .site-nav-more.is-open .site-nav-more-panel {
    display: grid;
  }
  .site-nav-more-panel a {
    padding: 10px 10px;
  }
  .site-nav a:hover { background: #f3f4f6; }
  .header-logout-btn { display: none; }
  .contact-pill--phone { display: none; }
  .hero-section h1 { font-size: 34px; }
  .product-grid, .category-grid, .stats-grid, .benefit-list, .spec-grid, .thumb-grid, .form-grid-2, .request-grid, .split-grid { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .site-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .site-footer-note { text-align: left; max-width: none; }
  .topbar, .section-head, .request-head { flex-direction: column; align-items: stretch; }
  .content { padding: 16px; }
}
.nav-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.product-icon-actions { display: flex; align-items: center; gap: 6px; }
.product-icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1;
  transform: none;
}
.product-icon-btn:hover,
.product-icon-btn.is-active {
  background: var(--color-accent-soft);
  border-color: #bfdbfe;
  color: var(--color-accent);
  transform: none;
}
.product-card-cta { flex-shrink: 0; }
.price-big, .product-footer strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); }
.site-footer {
  margin-top: 48px;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 28px 0 20px;
  align-items: start;
}
.site-footer-title {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}
.site-footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
}
.site-footer-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 168px;
}
.site-footer-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 36ch;
}
.site-footer-address {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  max-width: 34ch;
}
.contacts-lead { max-width: 58ch; }
.contacts-map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #f8fafc;
  aspect-ratio: 16 / 10;
}
.contacts-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contacts-map-card h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.contacts-map-link {
  margin: 10px 0 0;
  font-size: 13px;
}
.contacts-map-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.contacts-map-link a:hover { text-decoration: underline; }
[data-theme="dark"] .contacts-map-wrap {
  background: var(--color-surface-inset);
  border-color: var(--color-border);
}
[data-theme="dark"] .contacts-map-link a {
  color: #93c5fd;
}
.contact-card a { color: inherit; text-decoration: underline; }
.contact-card--messengers .site-messenger-links--stack { margin-top: 4px; }
.site-messenger-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.site-messenger-links--footer { margin-top: 4px; }
.site-messenger-phone { font-variant-numeric: tabular-nums; color: #475569; }
.site-messenger-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}
.site-messenger-chip--max { border-color: #e9d5ff; background: #faf5ff; color: #7e22ce; }
.site-messenger-chip--static { opacity: 0.92; }
.site-messenger-links--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-messenger-links--stack .site-messenger-phone { font-size: 15px; color: inherit; }
.m-sheet-messenger-block { display: grid; gap: 0; }
.site-footer-label {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.site-footer-nav {
  display: grid;
  gap: 6px;
}
.site-footer-link {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.site-footer-link:hover {
  color: #fff;
  text-decoration: none;
}
.site-footer-link--muted { color: #64748b; font-size: 13px; }
.site-footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.site-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 16px;
  font-size: 13px;
  color: #64748b;
}
.site-footer-note {
  text-align: right;
  max-width: 52ch;
}
.site-footer-custom { padding-bottom: 16px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #93c5fd; }
.site-footer p { color: var(--color-footer-text); }
.buy-box { border-top:1px solid #e5e7eb; padding-top:16px; }
.buy-row { display:grid; grid-template-columns: 140px 1fr; gap:16px; align-items:end; }
.buy-actions { display:flex; gap:12px; flex-wrap:wrap; }
.cart-layout, .checkout-layout, .account-layout, .auth-grid { display:grid; gap:24px; }
.cart-layout, .checkout-layout { grid-template-columns: 1.3fr .8fr; align-items:start; min-width:0; width:100%; }
.checkout-auth-notice--full { grid-column: 1 / -1; margin-bottom: 0; }
.account-layout, .auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cart-layout > .card, .checkout-layout > .card, .order-summary-card { min-width:0; max-width:100%; box-sizing:border-box; }
.order-summary-card { position:sticky; top:72px; align-self:start; overflow:hidden; }
.summary-row, .summary-item { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; align-items:flex-start; }
.summary-row span { min-width:0; }
.summary-row strong { flex-shrink:0; white-space:nowrap; }
.summary-row.total { padding-top:12px; border-top:1px solid #e5e7eb; font-size:18px; }
.summary-list { display:grid; gap:12px; margin-bottom:16px; }
.summary-item { flex-direction:column; padding-bottom:12px; border-bottom:1px solid #e5e7eb; }
.cart-item-cell { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.cart-item-copy { min-width:0; flex:1; }
.cart-item-copy strong, .cart-item-copy a { word-break:break-word; overflow-wrap:anywhere; }
.cart-thumb { width:88px; height:66px; object-fit:cover; border-radius:12px; background:#e5e7eb; flex-shrink:0; }
.cart-action-wrap--catalog { display:flex; flex-direction:column; gap:8px; width:100%; }
.cart-action-wrap--catalog .catalog-list-cart-form { margin:0; width:100%; }
.cart-action-wrap--catalog .catalog-list-cart-form--more .catalog-btn { width:100%; min-height:38px; }
.catalog-btn.active-toggle, button.active-toggle, a.btn.active-toggle { cursor:pointer; text-decoration:none; }
.cart-action-wrap--detail .mb-12 { margin-bottom:12px; }
.soft-panel { background:#f8fafc; }
.success-card { text-align:center; padding:44px; }
@media (max-width: 1100px) {
  .cart-layout, .checkout-layout, .account-layout, .auth-grid, .buy-row { grid-template-columns: 1fr; }
  .order-summary-card { position:static; }
}
@media (max-width: 720px) {
  .cart-layout, .checkout-layout { gap:16px; }
  .cart-layout .card, .order-summary-card { padding:14px; }
  .cart-table-wrap { overflow:visible; }
  .cart-table thead { display:none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display:block; width:100%; box-sizing:border-box; }
  .cart-table tr { padding:14px 0; border-bottom:1px solid #e5e7eb; }
  .cart-table tr:last-child { border-bottom:0; }
  .cart-table td { border:0; padding:8px 0; }
  .cart-table td.cart-cell-product { padding-top:0; }
  .cart-table td[data-label]::before {
    content:attr(data-label);
    display:block;
    margin-bottom:4px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
    color:#64748b;
  }
  .cart-table td.cart-cell-price,
  .cart-table td.cart-cell-qty,
  .cart-table td.cart-cell-sum {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
  }
  .cart-table td.cart-cell-price::before,
  .cart-table td.cart-cell-qty::before,
  .cart-table td.cart-cell-sum::before { margin-bottom:0; }
  .cart-table td.cart-cell-qty input { width:88px; max-width:100%; justify-self:end; }
  .cart-table td.cart-cell-actions { padding-top:4px; }
  .cart-table td.cart-cell-actions button { width:100%; }
  .cart-actions { flex-direction:column; align-items:stretch; }
  .cart-actions > * { width:100%; justify-content:center; text-align:center; }
  .order-summary-card .stack-form .btn,
  .order-summary-card .stack-form button { width:100%; }
  .order-summary-card .small.muted { overflow-wrap:anywhere; }
  .brand strong { max-width:min(46vw, 168px); }
}

.wrap-actions { flex-wrap: wrap; }
.text-right { text-align: right; }
.compact-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.center-actions { justify-content: center; }
.tag { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#e5e7eb; font-size:12px; margin:4px 6px 0 0; }
.vehicles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vehicle-block { padding:18px 0; border-top:1px solid #e5e7eb; }
.vehicle-block:first-child { border-top:none; }
.vehicle-model-row { padding:12px 0; }
.generation-tags { margin-top:8px; }
.news-grid { display:grid; gap:20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { overflow:hidden; }
.news-cover-wrap,
.article-cover-wrap { display:block; }
.news-cover-wrap.is-placeholder,
.article-cover-wrap.is-placeholder { background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); }
.news-cover, .article-cover { width:100%; height:220px; object-fit:cover; background:#e5e7eb; }
.news-cover-placeholder,
.article-cover.news-cover-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #e2e8f0 100%);
  color: #64748b;
}
.news-cover-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: #2563eb;
}
.news-cover-placeholder__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.news-body, .article-body { padding:18px; }
.article-card { overflow:hidden; }
.article-content { line-height:1.75; white-space:normal; }
.support-layout, .support-page-grid { display:grid; gap:24px; grid-template-columns: .95fr 1.25fr; }
.account-support-layout { display: grid; gap: 24px; }
.account-support-show { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.account-support-chat { display: flex; flex-direction: column; gap: 16px; }
.account-support-chat .support-thread { min-height: 360px; max-height: 560px; }
.account-support-form textarea { min-height: 120px; }
.account-support-meta { margin: 0; line-height: 1.5; }
.account-support-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.account-support-reply textarea { min-height: 96px; }
.account-support-send-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-support-tips h3 { margin: 0 0 12px; font-size: 15px; }
.account-support-thread-list { margin-top: 4px; }
.admin-support-grid { grid-template-columns: 1.35fr .65fr; }
.support-chat-card { display:flex; flex-direction:column; }
.support-sidebar {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
  align-self: start;
}
.support-sidebar h3 { margin: 0 0 12px; font-size: 15px; }
.support-chat-header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:16px; }
.support-thread-list { display:grid; gap:12px; }
.support-thread-card { display:flex; justify-content:space-between; gap:16px; padding:16px; border-radius:16px; background:#f8fafc; border:1px solid #e5e7eb; text-decoration:none; color:inherit; }
.support-thread-card:hover { border-color:#cbd5e1; transform:translateY(-1px); }
.support-thread { background:#f8fafc; border:1px solid #e5e7eb; border-radius:18px; padding:16px; min-height:420px; max-height:620px; overflow:auto; }
.support-messages { display:grid; gap:14px; }
.support-message { max-width:85%; padding:14px 16px; border-radius:18px; background:#fff; border:1px solid #e5e7eb; box-shadow:0 8px 20px rgba(15,23,42,.05); }
.support-message header { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.support-message.from-customer { margin-left:auto; background:#eff6ff; border-color:#bfdbfe; }
.support-message.from-manager { margin-right:auto; }
.message-body { line-height:1.6; }
.message-attachments { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.attachment-thumb img, .attachment-video { width:160px; height:120px; object-fit:cover; border-radius:14px; background:#111827; border:1px solid #dbe3ef; }
.support-sidebar .spec-list { display:grid; gap:10px; }
.donor-detail-layout { align-items:start; }
.donor-card .product-footer { align-items:center; }
.account-top-grid { grid-template-columns: 1.35fr .8fr; }
.account-profile-card__head { margin-bottom: 4px; }
.account-profile-card__head h3 { margin: 0 0 6px; }
.account-profile-form .form-group { display: grid; gap: 7px; }
.account-profile-form .form-group label { font-size: 13px; font-weight: 700; color: var(--color-text); }
.account-profile-form .auth-input,
.account-profile-form textarea.auth-input { min-height: 46px; width: 100%; box-sizing: border-box; border-radius: 12px; }
.account-profile-form textarea.auth-input { min-height: 96px; resize: vertical; padding-top: 12px; }
.account-profile-form .field-help { margin: 0; font-size: 12px; color: var(--color-text-muted); line-height: 1.45; }
.account-profile-form .field-help--ok { color: #15803d; }
.account-profile-contact__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.account-profile-contact__row .is-readonly {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--color-surface-2, #f8fafc);
  color: var(--color-text, #0f172a);
  cursor: default;
}
.account-profile-contact__action {
  flex: 0 0 auto;
  white-space: nowrap;
}
.profile-contact-change {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-surface-2, #f8fafc);
  display: grid;
  gap: 12px;
}
.profile-contact-change[hidden] { display: none !important; }
.profile-contact-change__lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted, #64748b);
}
.profile-contact-change__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-contact-change__status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.profile-contact-change__status.is-error { color: #b91c1c; }
.profile-contact-change__status.is-ok { color: #15803d; }
.account-profile-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.account-profile-form__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}
.account-profile-form__col .form-group,
.account-profile-form__phone-field {
  width: 100%;
  min-width: 0;
}
.account-profile-form__col .phone-field,
.account-profile-form__col .auth-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.account-profile-alert { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #fcd34d; background: #fffbeb; }
.account-profile-alert p { margin: 6px 0 0; color: #92400e; font-size: 13px; line-height: 1.45; }
.profile-phone-verify {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: rgba(239, 246, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-phone-verify__head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-phone-verify__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.profile-phone-verify__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.profile-phone-verify__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.profile-phone-verify__step[hidden] { display: none !important; }
.profile-phone-verify__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  cursor: pointer;
  min-width: 0;
  width: 100%;
}
.profile-phone-verify__consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: 0 0 16px;
  accent-color: var(--color-accent);
}
.profile-phone-verify__consent-text {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-phone-verify__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.profile-phone-verify__code-row {
  display: grid;
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.profile-phone-verify__code {
  min-height: 42px !important;
  width: 100%;
  padding-inline: 8px !important;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .28em;
  font-variant-numeric: tabular-nums;
}
.profile-phone-verify__btn {
  width: 100%;
  min-height: 42px;
  padding-inline: 14px;
  font-size: 13px;
  font-weight: 700;
}
.profile-phone-verify__btn--inline { width: auto; white-space: nowrap; }
.profile-phone-verify__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.profile-phone-verify__link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-phone-verify__link:hover { color: var(--color-accent-hover); }
.profile-phone-verify__link:disabled { opacity: .55; cursor: not-allowed; }
.profile-phone-verify__sep { color: var(--color-text-muted); font-size: 12px; }
.profile-phone-verify__status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.profile-phone-verify__status[hidden] { display: none !important; }
.profile-phone-verify__status.is-error { color: #b91c1c; }
.profile-phone-verify__status.is-ok { color: #15803d; }
@media (max-width: 768px) {
  .account-profile-form__row { grid-template-columns: 1fr; gap: 16px; }
  .account-profile-contact__row { flex-direction: column; }
  .account-profile-contact__action { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .profile-phone-verify__code-row { grid-template-columns: 1fr; }
  .profile-phone-verify__btn--inline { width: 100%; }
}
.profile-email-verify {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: grid;
  gap: 10px;
}
.profile-email-verify__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.profile-email-verify__note strong {
  color: var(--color-text);
  font-weight: 700;
}
.profile-email-verify__btn {
  width: fit-content;
  min-height: 38px;
  padding-inline: 14px;
  font-size: 13px;
  font-weight: 700;
}
.profile-email-verify__status {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
.profile-email-verify__status[hidden] { display: none !important; }
.profile-email-verify__status.is-error { color: #b91c1c; }
.profile-email-verify__status.is-ok { color: #15803d; }
.account-vk-linked { display: grid; gap: 6px; margin-top: 12px; }
.account-vk-linked__badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 700; }
.soft-panel code { background:#111827; color:#f8fafc; padding:2px 6px; border-radius:8px; }
@media (max-width: 1100px) {
  .support-layout, .support-page-grid, .account-support-show, .vehicles-grid, .news-grid, .account-top-grid, .compact-grid-3, .compact-news-grid { grid-template-columns: 1fr; }
}


.vehicle-selector { position: relative; }
.vehicle-field { position: relative; }
.vehicle-search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #0f172a; border: 1px solid #243042; border-radius: 12px; box-shadow: 0 18px 40px rgba(15,23,42,.35); max-height: 280px; overflow: auto; z-index: 30; display: none; }
.vehicle-search-results.open { display: block; }
.vehicle-search-option, .vehicle-search-empty { display: block; width: 100%; text-align: left; padding: 10px 12px; background: transparent; color: #e5e7eb; border: 0; border-bottom: 1px solid rgba(255,255,255,.04); cursor: pointer; }
.vehicle-search-option:hover { background: rgba(255,255,255,.06); }
.vehicle-search-empty { color: #9ca3af; cursor: default; }
.inline-btn { padding: 4px 10px; font-size: 12px; }
.vehicle-search-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vehicle-search-groups section h4 { margin-bottom: 10px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #111827; text-decoration: none; border: 1px solid #d1d5db; }
.pagination a.active { background: #111827; color: #fff; border-color: #111827; }

.permission-group { border-top: 1px solid #e5e7eb; padding-top: 18px; margin-top: 18px; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permission-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f8fafc; cursor: pointer; }
.permission-card:hover { border-color: #cbd5e1; background: #fff; }
.permission-card strong, .permission-card small, .permission-card code { display: block; }
.permission-card small { color: #64748b; margin: 4px 0 8px; line-height: 1.45; }
.permission-card code { font-size: 11px; color: #475569; }
@media (max-width: 900px) { .permission-grid { grid-template-columns: 1fr; } }
.nav-group{margin:18px 12px 6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.56)}
.sidebar nav a + .nav-group{margin-top:20px}
.actions .btn.small,.btn.small{padding:6px 10px;font-size:12px}
.quick-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.sensitive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.sensitive-card{height:100%}.sensitive-title{display:flex;gap:10px;align-items:center;margin-bottom:8px}.sensitive-icon{font-size:24px}.simple-toggle{align-self:end;padding:10px 0}.alert.info{background:#eef6ff;border:1px solid #bfdbfe;color:#1e3a8a;padding:12px;border-radius:12px}
.autocomplete-results { position: relative; margin-top: 8px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; display: none; box-shadow: 0 12px 28px rgba(15,23,42,.10); }
.autocomplete-results.is-open { display: block; }
.external-part-option { display: block; width: 100%; text-align: left; padding: 11px 13px; border: 0; border-bottom: 1px solid #eef2f7; background: #fff; color: #111827; cursor: pointer; }
.external-part-option:last-child { border-bottom: 0; }
.external-part-option:hover { background: #f8fafc; }
.external-part-option strong, .external-part-option span { display: block; }
.external-part-option span { color: #64748b; font-size: 12px; margin-top: 3px; }

/* usability pass 2026-04-25 */
.sidebar-search { background: #172033; color: #fff; border: 1px solid rgba(255,255,255,.1); margin-bottom: 0; border-radius: 12px; width: 100%; min-height: 40px; padding: 9px 12px; font-size: 13px; }
.sidebar-search::placeholder { color: #94a3b8; }
.sidebar-search:focus { outline: 0; border-color: rgba(59,130,246,.55); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.workspace-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-bottom:24px; }
.workspace-card { display:grid; gap:10px; padding:18px; border:1px solid #e5e7eb; border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(15,23,42,.06); text-decoration:none; color:inherit; }
.workspace-card:hover { border-color:#bfdbfe; background:#f8fbff; text-decoration:none; transform:translateY(-1px); }
.workspace-card strong { font-size:17px; }
.workspace-card small { color:#64748b; line-height:1.45; }
.workspace-card .workspace-icon { font-size:24px; }
.info-box { background:#eff6ff; color:#1e3a8a; border-radius:14px; padding:14px; margin-top:12px; border:1px solid #bfdbfe; }
.alert.info { background:#eef6ff;border:1px solid #bfdbfe;color:#1e3a8a;padding:12px;border-radius:12px; }
.permission-card button, button.permission-card { text-align:left; color:inherit; background:#f8fafc; font-weight:inherit; justify-content:flex-start; }
button.permission-card { width:100%; border:1px solid #e5e7eb; }
button.permission-card:hover { opacity:1; border-color:#cbd5e1; background:#fff; }

/* UX hints and TSD readability pass 2026-04-25 */
.field-help { display:block; margin-top:6px; color:#64748b; font-size:12px; line-height:1.45; font-weight:400; }
.help-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.help-card { display:grid; gap:6px; padding:14px; border:1px solid #dbe3ef; border-radius:16px; background:#f8fafc; }
.help-card strong { font-size:15px; }
.help-card span { color:#64748b; font-size:13px; line-height:1.45; }
.tsd-results { display:grid; gap:18px; }
.tsd-card { border:1px solid #dbe3ef; border-radius:18px; padding:16px; background:#fff; box-shadow:0 10px 24px rgba(15,23,42,.05); }
.tsd-card-head { display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:1px solid #e5e7eb; }
.tsd-card-head strong, .tsd-card-head span { display:block; }
.tsd-main-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:14px; margin-top:14px; }
.tsd-main-grid h4 { margin:0 0 6px; }
.tsd-operations { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:16px; }
.operation-card { border:1px solid #e5e7eb; border-radius:16px; padding:14px; background:#f8fafc; }
.operation-card h4 { margin:0 0 8px; }
.readable-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.readable-form .full, .operation-card .full { grid-column:1 / -1; }
.template-builder-panel { padding:14px; border:1px dashed #cbd5e1; border-radius:16px; background:#f8fafc; }
.doc-template-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size:13px; line-height:1.55; }
@media (max-width: 1100px) { .tsd-main-grid, .tsd-operations { grid-template-columns:1fr; } .readable-form { grid-template-columns:1fr; } }
.template-live-preview-wrap{border:1px solid #d8dee9;border-radius:16px;padding:14px;background:#f8fafc}
.template-live-preview{margin-top:10px;background:#fff;border:1px dashed #b8c2d1;border-radius:14px;padding:14px;min-height:90px;overflow:auto}
.template-live-preview .doc-notice,.template-live-preview .terms,.template-live-preview .checklist,.template-live-preview .mini-grid,.template-live-preview .blank-lines,.template-live-preview .part-passport,.template-live-preview .contract{border:1px solid #d1d5db;border-radius:12px;padding:10px;margin:8px 0;background:#fff}
.template-live-preview .checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.template-live-preview .mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px 14px}

/* client tools and payments pass 2026-04-25 */
.template-title { display:inline-block; color:#111827; background:#fff7ed; border:1px solid #fed7aa; border-left:5px solid #f97316; border-radius:14px; padding:10px 14px; margin:0 0 8px; }
.customer-part-actions { margin-top:16px; display:grid; gap:10px; padding:14px; border:1px solid #dbe3ef; border-radius:16px; background:#f8fafc; }
.customer-part-actions .actions { display:flex; gap:8px; flex-wrap:wrap; }
.favorite-card { border:1px solid #e5e7eb; border-radius:16px; padding:14px; background:#fff; display:grid; gap:8px; }
.favorite-card footer { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.account-notice { display:flex; justify-content:space-between; gap:12px; padding:12px; border:1px solid #dbeafe; background:#eff6ff; color:#1e3a8a; border-radius:14px; margin-bottom:10px; }
.payment-provider-grid { align-items:start; }
.payment-provider-card { background:#fff; border:1px solid #dbe3ef; }
.nested-card { box-shadow:none; }
.payment-draft-card { max-width:760px; margin:24px auto; }
.payment-method-hint { display:block; margin-top:6px; color:#64748b; font-size:12px; line-height:1.45; }
.audit-list { display:grid; gap:10px; }
.audit-item { padding:12px; border:1px solid #dbe3ef; background:#f8fafc; border-radius:14px; }
.mini-list { display:grid; gap:10px; }
.mini-list-item { padding:10px 12px; border:1px solid #e5e7eb; border-radius:12px; background:#f8fafc; display:grid; gap:4px; }

/* full audit improvements 2026-04-25 */
.compare-table th,.compare-table td{vertical-align:top;min-width:160px}.compare-thumb{width:120px;height:90px;object-fit:cover;border-radius:12px;border:1px solid #e5e7eb;background:#f8fafc}.active-toggle{border-color:#22c55e!important;background:#ecfdf5!important;color:#166534!important}.empty-card{border:1px dashed #cbd5e1;border-radius:18px;padding:22px;background:#f8fafc;text-align:center}.admin-simple-help{padding:14px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:16px;margin-bottom:16px}.simple-mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.simple-mode-card{display:block;padding:16px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;text-decoration:none;color:inherit;box-shadow:0 10px 22px rgba(15,23,42,.04)}.simple-mode-card:hover{border-color:#bfdbfe;background:#f8fbff;text-decoration:none}.table-wrap table th .column-hint{display:block;font-size:11px;font-weight:400;color:#64748b;margin-top:2px}

/* 20260425 notifications/popups */
.notification-popup-stack{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;flex-direction:column;gap:12px;max-width:min(420px,calc(100vw - 32px));}
.notification-popup-card{background:#fff;border:1px solid rgba(17,24,39,.12);border-radius:18px;box-shadow:0 20px 50px rgba(15,23,42,.18);padding:14px 16px;color:#111827;animation:notificationPop .18s ease-out;}
.notification-popup-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.notification-popup-head button{border:0;background:#f3f4f6;border-radius:999px;width:28px;height:28px;cursor:pointer;}
.notification-popup-date{font-size:12px;color:#6b7280;margin-top:3px;}
.notification-popup-card p{margin:10px 0 12px;line-height:1.45;}
.notification-popup-card .actions{display:flex;gap:8px;flex-wrap:wrap;}
.template-editor-collapsed summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.template-editor-collapsed summary::-webkit-details-marker{display:none;}
.template-editor-collapsed summary .btn{pointer-events:none;}
@keyframes notificationPop{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:640px){.notification-popup-stack{left:12px;right:12px;bottom:12px;}.notification-popup-card{border-radius:14px;}}

.support-active-agents{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;margin:12px 0;}
.procurement-step-row td{background:#fbfdff;border-top:0;}
.step-details{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#fff;}
.step-details summary{cursor:pointer;color:#0f172a;}
.procurement-step-form{margin-top:14px;}
.price-rules-card{background:linear-gradient(180deg,#fffaf0,#fff);}

/* support read/typing/status improvements 2026-04-25 */
.support-agent-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;}
.support-typing-indicator{margin:8px 0 10px;padding:8px 12px;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:999px;font-size:13px;}
.message-status{margin-top:6px;}
.procurement-history{display:grid;gap:10px;margin:12px 0;}
.procurement-history-item{border:1px solid #e5e7eb;border-radius:14px;padding:12px;background:#f8fafc;}
.procurement-history-item header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px;}
.procurement-history-item details{margin-top:8px;}
.procurement-next-step{border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:14px;margin-top:12px;}

/* global photo lightbox 2026-04-26 */
.photo-lightbox-open{overflow:hidden;}
.photo-lightbox{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:24px;}
.photo-lightbox.is-open{display:flex;}
.photo-lightbox-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.78);backdrop-filter:blur(8px);}
.photo-lightbox-dialog{position:relative;z-index:1;width:min(1120px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-items:center;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(15,23,42,.36);box-shadow:0 28px 90px rgba(0,0,0,.42);overflow:hidden;}
.photo-lightbox-image{display:block;max-width:100%;max-height:calc(100vh - 138px);object-fit:contain;background:#0f172a;}
.photo-lightbox-close,.photo-lightbox-nav{position:absolute;z-index:2;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(15,23,42,.72);box-shadow:0 12px 30px rgba(0,0,0,.22);transition:transform .16s ease,background .16s ease;}
.photo-lightbox-close:hover,.photo-lightbox-nav:hover{background:rgba(15,23,42,.92);transform:scale(1.04);}
.photo-lightbox-close{top:14px;right:14px;width:42px;height:42px;border-radius:999px;font-size:30px;line-height:1;}
.photo-lightbox-nav{top:50%;width:46px;height:58px;margin-top:-29px;border-radius:16px;font-size:42px;line-height:1;}
.photo-lightbox-nav.prev{left:14px;}
.photo-lightbox-nav.next{right:14px;}
.photo-lightbox-meta{width:100%;display:flex;justify-content:space-between;gap:14px;padding:14px 18px;color:#e5e7eb;background:linear-gradient(180deg,rgba(15,23,42,.22),rgba(15,23,42,.86));font-size:14px;}
.photo-lightbox-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.photo-lightbox-counter{flex:0 0 auto;color:#cbd5e1;}
a.attachment-thumb,img.detail-main-image,img.thumb-image,img.article-cover,img.news-cover,img.compare-thumb,img.cart-thumb{cursor:zoom-in;}
button.danger-light,.btn.danger-light{border-color:#fecaca!important;background:#fff1f2!important;color:#be123c!important;}
@media(max-width:640px){.photo-lightbox{padding:10px;}.photo-lightbox-dialog{border-radius:18px;}.photo-lightbox-image{max-height:calc(100vh - 112px);}.photo-lightbox-close{top:10px;right:10px;width:38px;height:38px;}.photo-lightbox-nav{width:40px;height:50px;font-size:34px;}.photo-lightbox-nav.prev{left:10px;}.photo-lightbox-nav.next{right:10px;}.photo-lightbox-meta{padding:12px;font-size:13px;}}

.support-reply-form.is-locked textarea,
.support-reply-form.is-locked input[type="file"] {
  background:#f1f5f9;
  cursor:not-allowed;
}
.support-reply-lock {
  border:1px dashed #cbd5e1;
  border-radius:14px;
  padding:12px 14px;
  background:#f8fafc;
  color:#64748b;
  font-size:14px;
}


/* home quick search vehicle autocomplete 2026-04-26 */
.vehicle-autocomplete{position:relative;display:grid;gap:6px;}
.vehicle-autocomplete-results{position:absolute;left:0;right:0;top:48px;z-index:30;background:#fff;border:1px solid #dbe3ef;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.16);overflow:hidden;max-height:280px;overflow-y:auto;}
.vehicle-autocomplete-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #eef2f7;background:#fff;color:#0f172a;padding:11px 13px;cursor:pointer;font:inherit;}
.vehicle-autocomplete-item:hover,.vehicle-autocomplete-item:focus{background:#f8fafc;outline:none;}
.vehicle-autocomplete-item:last-child{border-bottom:0;}
.vehicle-autocomplete-results.open{display:block;}
.vehicle-autocomplete-item.active{background:#eef6ff;outline:none;}
.vehicle-autocomplete-empty{padding:11px 13px;color:#64748b;background:#fff;font-size:14px;}
.vehicle-autocomplete-empty.is-error{color:#b91c1c;background:#fff1f2;}

/* Vehicle reference spoilers */
.vehicle-spoiler { padding:0; overflow:hidden; }
.vehicle-spoiler-summary,
.vehicle-model-summary { cursor:pointer; list-style:none; padding:16px 18px; }
.vehicle-spoiler-summary::-webkit-details-marker,
.vehicle-model-summary::-webkit-details-marker { display:none; }
.vehicle-summary-main { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.spoiler-caret { color:#64748b; font-weight:700; line-height:1.4; transition:transform .15s ease; }
.vehicle-spoiler[open] > .vehicle-spoiler-summary .spoiler-caret,
.vehicle-model-spoiler[open] > .vehicle-model-summary .spoiler-caret { transform:rotate(90deg); }
.vehicle-spoiler-body { padding:0 18px 16px 42px; border-top:1px solid #e5e7eb; background:#f8fafc; }
.vehicle-model-spoiler { border-bottom:1px solid #e5e7eb; }
.vehicle-model-spoiler:last-child { border-bottom:none; }
.vehicle-model-summary { padding:12px 0; }
.vehicle-model-body { padding:0 0 12px 28px; }
.vehicle-model-body .generation-tags { margin-top:0; }
@media (max-width: 720px) {
  .vehicle-spoiler-summary,
  .vehicle-model-summary { align-items:flex-start; flex-direction:column; }
  .vehicle-spoiler-body { padding-left:18px; }
  .vehicle-model-body { padding-left:0; }
}

.alert.warning { background:#fffbeb; border:1px solid #f59e0b; color:#78350f; }

/* Reports UI round21 */
.report-page{display:flex;flex-direction:column;gap:22px}.report-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff,#f8fbff)}.report-hero-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.report-section{width:100%;box-sizing:border-box;margin:0}.report-section h3,.report-section h4{margin-top:0}.report-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.report-full-width{grid-column:1/-1}.report-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.report-kpi-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.report-kpi-card{border:1px solid #e5e7eb;border-radius:16px;padding:15px;background:#f8fafc}.report-kpi-card strong{display:block;font-size:22px;line-height:1.25;margin-top:6px;color:#111827}.report-kpi-card p{margin:8px 0 0}.report-grid{display:grid;gap:20px}.report-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.report-subcard{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:16px;min-width:0}.report-table th{white-space:nowrap}.report-table td{vertical-align:top}.report-money-negative{color:#b91c1c;font-weight:700}.report-progress{height:8px;background:#eceff3;border-radius:999px;overflow:hidden;margin-top:8px;min-width:180px}.report-progress span{display:block;height:8px;background:#3b82f6;border-radius:999px}@media(max-width:980px){.report-hero{flex-direction:column}.report-hero-badges{justify-content:flex-start}.report-kpi-grid-4,.report-grid-2{grid-template-columns:1fr}}
.smart-search,.catalog-smart-search{position:relative}
.smart-search-results{position:absolute;z-index:80;left:0;right:0;max-height:360px;overflow:auto;margin-top:6px;padding:8px;background:#fff}
.smart-search-option{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef2f7;padding:10px 12px;cursor:pointer;border-radius:10px}
.smart-search-option:hover,.smart-search-option.is-active{background:#f6f7f9}
.smart-search-option strong,.smart-search-option span{display:block}
.smart-search-option span{font-size:12px;color:#667085;margin-top:2px}

/* Smart search commercial UX 2026-05-03 */
.smart-search,.catalog-smart-search{position:relative;z-index:20;}
.smart-search .input,.catalog-smart-search .input{width:100%;min-height:48px;border-radius:16px;border:1px solid #cbd5e1;background:#fff;padding:13px 15px;font-size:15px;box-shadow:0 8px 22px rgba(15,23,42,.04);transition:border-color .15s ease,box-shadow .15s ease;}
.smart-search .input:focus,.catalog-smart-search .input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 14px 34px rgba(15,23,42,.10);}
.smart-search-results{position:absolute;z-index:120;left:0;right:0;top:calc(100% + 8px);max-height:430px;overflow:auto;margin:0;padding:8px;background:#fff;border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.20);}
.smart-search-option{display:grid;width:100%;grid-template-columns:auto 1fr;gap:4px 10px;text-align:left;background:#fff;border:0;border-bottom:1px solid #eef2f7;padding:12px 13px;cursor:pointer;border-radius:14px;color:#0f172a;}
.smart-search-option:last-child{border-bottom:0;}
.smart-search-option:hover,.smart-search-option.is-active{background:#f0f7ff;}
.smart-search-option strong{display:block;font-size:14px;line-height:1.25;grid-column:2;}
.smart-search-option span{display:block;}
.smart-search-option > span:last-child{grid-column:2;font-size:12px;color:#64748b;line-height:1.35;margin-top:1px;}
.smart-search-type{grid-row:1 / span 2;grid-column:1;align-self:start;display:inline-flex!important;align-items:center;justify-content:center;min-width:74px;padding:4px 8px;border-radius:999px;background:#e0ecff;color:#1d4ed8;font-size:11px!important;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.02em;}
.autocomplete-empty{padding:13px 14px;color:#64748b;font-size:14px;}
.smart-search-detected{margin-top:8px;padding:8px 10px;border-radius:12px;background:#eef6ff;border:1px solid #bfdbfe;color:#1e3a8a;font-size:12px;font-weight:600;}
.filter-panel .catalog-smart-search{margin-bottom:4px;}
.hero-panel .smart-search-results{top:calc(100% + 30px);}
@media(max-width:720px){.smart-search-option{grid-template-columns:1fr}.smart-search-type,.smart-search-option strong,.smart-search-option > span:last-child{grid-column:1}.smart-search-type{width:max-content}.smart-search-results{max-height:360px}}

/* Battle-ready smart search UI 2026-05-03 */
.smart-search-form{gap:14px;}
.smart-search,.catalog-smart-search{position:relative;z-index:35;}
.smart-search::before,.catalog-smart-search::before{content:'🔎';position:absolute;left:16px;top:15px;z-index:2;font-size:17px;line-height:1;opacity:.72;pointer-events:none;}
.smart-search .input,.catalog-smart-search .input{height:56px;width:100%;border:1px solid rgba(148,163,184,.58);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);padding:15px 18px 15px 46px;font-size:16px;font-weight:600;letter-spacing:-.01em;color:#0f172a;box-shadow:0 14px 34px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.85);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;}
.smart-search .input::placeholder,.catalog-smart-search .input::placeholder{color:#94a3b8;font-weight:500;}
.smart-search .input:focus,.catalog-smart-search .input:focus{outline:0;border-color:#2563eb;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.13),0 22px 52px rgba(15,23,42,.16);transform:translateY(-1px);}
.catalog-smart-search{padding:12px;border-radius:24px;background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(14,165,233,.06));border:1px solid rgba(37,99,235,.14);box-shadow:0 14px 34px rgba(15,23,42,.07);}
.catalog-smart-search::before{left:28px;top:28px;}
.catalog-smart-search .input{box-shadow:0 10px 28px rgba(15,23,42,.08);}
.smart-search-results{position:absolute;z-index:220;left:0;right:0;top:calc(100% + 10px);max-height:470px;overflow:auto;margin:0;padding:10px;background:rgba(255,255,255,.98);border:1px solid rgba(203,213,225,.92);border-radius:22px;box-shadow:0 28px 74px rgba(15,23,42,.24);backdrop-filter:blur(12px);}
.catalog-smart-search .smart-search-results{left:12px;right:12px;top:calc(100% + 8px);}
.smart-search-option{display:grid;width:100%;grid-template-columns:96px 1fr auto;gap:4px 12px;align-items:center;text-align:left;background:transparent;border:0;border-bottom:1px solid rgba(226,232,240,.82);padding:13px 12px;cursor:pointer;border-radius:16px;color:#0f172a;transition:background .14s ease,transform .14s ease,box-shadow .14s ease;}
.smart-search-option:last-child{border-bottom:0;}
.smart-search-option:hover,.smart-search-option.is-active{background:linear-gradient(135deg,#eff6ff,#f8fafc);transform:translateY(-1px);box-shadow:0 10px 28px rgba(37,99,235,.10);}
.smart-search-option strong{display:block;font-size:15px;line-height:1.22;grid-column:2;color:#0f172a;}
.smart-search-option > span:last-child{grid-column:2 / span 2;display:block;font-size:12.5px;color:#64748b;line-height:1.35;margin-top:2px;}
.smart-search-type{grid-row:1 / span 2;grid-column:1;align-self:center;display:inline-flex!important;align-items:center;justify-content:center;width:88px;min-height:28px;padding:6px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px!important;font-weight:800;text-transform:uppercase;letter-spacing:.03em;}
.smart-search-option:nth-child(2n) .smart-search-type{background:#dcfce7;color:#166534;}
.smart-search-option:nth-child(3n) .smart-search-type{background:#fef3c7;color:#92400e;}
.autocomplete-empty{padding:16px;border-radius:16px;background:#f8fafc;color:#64748b;font-size:14px;border:1px dashed #cbd5e1;}
.smart-search-detected{margin-top:10px;padding:10px 12px;border-radius:14px;background:linear-gradient(135deg,#eff6ff,#ecfeff);border:1px solid #bfdbfe;color:#1e3a8a;font-size:12.5px;font-weight:800;box-shadow:0 8px 20px rgba(37,99,235,.08);}
.hero-panel .smart-search{margin-top:4px;}
.hero-panel .smart-search-results{top:calc(100% + 34px);}
.filter-panel .catalog-smart-search{margin-bottom:10px;}
@media(max-width:720px){.smart-search-option{grid-template-columns:1fr;gap:5px}.smart-search-type,.smart-search-option strong,.smart-search-option > span:last-child{grid-column:1}.smart-search-type{width:max-content}.smart-search-results{max-height:380px}.smart-search .input,.catalog-smart-search .input{height:52px;font-size:15px}.catalog-smart-search{padding:10px}.catalog-smart-search::before{left:26px;top:25px}}

.catalog-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filter-panel select,.filter-panel input.input{min-height:44px;border-radius:13px;border:1px solid #d6deea;background:#fff;color:#0f172a}
.filter-panel button[type="submit"]{border-radius:14px;font-weight:800}
@media(max-width:720px){.catalog-filter-row{grid-template-columns:1fr}}

/* Search+ battle UX */
.smart-search-form .smart-search,
.hero-panel .smart-search{border-radius:30px;background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(14,165,233,.08),rgba(255,255,255,.9));padding:14px;border:1px solid rgba(37,99,235,.16);box-shadow:0 26px 70px rgba(15,23,42,.14)}
.hero-panel .smart-search::before{left:31px;top:31px}
.hero-panel .smart-search .input{height:64px;border-radius:22px;font-size:17px;padding-left:52px;background:#fff}
.catalog-smart-search{background:linear-gradient(145deg,#eef6ff,#f8fbff 55%,#fff);border-color:#bfdbfe;box-shadow:0 18px 46px rgba(30,64,175,.13)}
.catalog-smart-search .input{border-radius:18px;background:#fff;font-size:16px}
.smart-filter-chips{display:flex;flex-wrap:wrap;gap:7px;margin:-2px 0 4px}
.smart-filter-chips span{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:12px;font-weight:800;line-height:1.1}
.smart-search-notice{margin:0 0 14px;padding:12px 14px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:13px;font-weight:700;box-shadow:0 10px 24px rgba(154,52,18,.06)}
.smart-search-results{padding:12px}
.smart-search-option{grid-template-columns:104px 1fr;position:relative;padding:15px 14px;border-radius:18px}
.smart-search-option::after{content:'Открыть';grid-column:2;justify-self:end;align-self:center;margin-top:-30px;padding:6px 10px;border-radius:999px;background:#0f172a;color:#fff;font-size:11px;font-weight:800;opacity:0;transform:translateX(4px);transition:.14s ease}
.smart-search-option:hover::after,.smart-search-option.is-active::after{opacity:1;transform:translateX(0)}
.smart-search-type{width:96px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.autocomplete-empty{padding:16px;border-radius:16px;background:#f8fafc;color:#64748b;font-size:13px;font-weight:700;text-align:center}
.filter-panel.card{border-radius:26px;box-shadow:0 22px 60px rgba(15,23,42,.08);border:1px solid rgba(226,232,240,.9)}
.filter-panel .stack-form select,.filter-panel .stack-form .input{min-height:46px;border-radius:13px;border-color:#cbd5e1;background:#fff;color:#0f172a;font-weight:600}
.filter-panel .stack-form button[type="submit"]{min-height:48px;border-radius:13px;font-weight:900;letter-spacing:.01em;box-shadow:0 12px 26px rgba(15,23,42,.15)}
.filter-panel .btn.light{border-radius:13px;font-weight:900;background:#e5e7eb;color:#0f172a}
@media(max-width:720px){.smart-search-option::after{display:none}.hero-panel .smart-search .input{height:56px;font-size:15px}.smart-filter-chips span{font-size:11.5px}}

/* Premium smart search redesign 2026-05-03 */
.search-hero-card{
  position:relative;
  overflow:visible;
  border:1px solid rgba(191,219,254,.95)!important;
  background:
    radial-gradient(circle at 14% 10%, rgba(59,130,246,.18), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(14,165,233,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96))!important;
  box-shadow:0 30px 90px rgba(15,23,42,.14)!important;
  border-radius:32px!important;
}
.search-hero-card::after{
  content:'';
  position:absolute;
  inset:auto 28px -22px 28px;
  height:34px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(37,99,235,.18),rgba(14,165,233,.10));
  filter:blur(18px);
  z-index:-1;
}
.search-card-head{margin-bottom:16px}
.search-card-head h3{margin:5px 0 6px;font-size:28px;line-height:1.05;letter-spacing:-.04em;color:#0f172a}
.search-card-head p{margin:0;color:#64748b;font-size:14px;line-height:1.45}
.search-kicker{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 11px;background:#eaf2ff;border:1px solid #bfdbfe;color:#1d4ed8;font-weight:900;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.search-kicker::before{content:'⚡'}
.premium-search-form{gap:12px!important}
.smart-search.premium-smart-search,.catalog-smart-search.premium-smart-search{
  isolation:isolate;
  padding:12px!important;
  border-radius:28px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(239,246,255,.92))!important;
  border:1px solid rgba(147,197,253,.68)!important;
  box-shadow:0 20px 50px rgba(30,64,175,.12), inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.smart-search.premium-smart-search::before,.catalog-smart-search.premium-smart-search::before{
  content:'🔎'!important;
  left:29px!important;
  top:36px!important;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,#dbeafe,#ecfeff);
  opacity:1!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.78),0 6px 16px rgba(37,99,235,.12);
}
.search-floating-label{display:block;margin:1px 8px 8px;color:#334155;font-size:12px;font-weight:900;letter-spacing:.02em}
.smart-search.premium-smart-search .input,.catalog-smart-search.premium-smart-search .input{
  height:62px!important;
  border-radius:20px!important;
  border:1px solid rgba(148,163,184,.52)!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  padding:17px 18px 17px 58px!important;
  font-size:17px!important;
  font-weight:900!important;
  color:#0b1220!important;
  box-shadow:0 12px 30px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.catalog-smart-search.premium-smart-search .input{height:58px!important;font-size:15.5px!important}
.smart-search.premium-smart-search .input:focus,.catalog-smart-search.premium-smart-search .input:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 5px rgba(37,99,235,.15),0 24px 60px rgba(37,99,235,.18), inset 0 1px 0 rgba(255,255,255,.96)!important;
  transform:none!important;
}
.smart-search.premium-smart-search.is-loading::after,.catalog-smart-search.premium-smart-search.is-loading::after{
  content:'';
  position:absolute;
  right:31px;
  top:37px;
  width:22px;
  height:22px;
  border-radius:50%;
  border:3px solid #dbeafe;
  border-top-color:#2563eb;
  animation:smartSpin .8s linear infinite;
  z-index:3;
}
@keyframes smartSpin{to{transform:rotate(360deg)}}
.search-help-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 8px 1px;color:#64748b;font-size:12px;font-weight:700}
.search-help-row.compact{font-size:11.5px;margin-top:8px}
.search-hotkey{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:4px 8px;border-radius:9px;background:#0f172a;color:#fff;font-size:11px;font-weight:900;box-shadow:0 8px 18px rgba(15,23,42,.16)}
.search-example-chips{display:flex;flex-wrap:wrap;gap:8px}
.search-example-chips button{appearance:none;border:1px solid #c7d2fe;background:linear-gradient(180deg,#fff,#eef6ff);color:#1e40af;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(30,64,175,.08);transition:transform .14s ease,box-shadow .14s ease,background .14s ease}
.search-example-chips button:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(30,64,175,.14);background:#fff}
.catalog-search-chips{margin:-2px 0 7px}
.search-submit{height:54px!important;border-radius:18px!important;font-size:15px!important;font-weight:950!important;letter-spacing:.01em!important;box-shadow:0 18px 36px rgba(15,23,42,.20)!important;background:linear-gradient(135deg,#0f172a,#1e3a8a)!important;color:#fff!important}
.smart-search-results{
  padding:10px!important;
  border-radius:24px!important;
  border:1px solid rgba(191,219,254,.92)!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 30px 90px rgba(15,23,42,.28),0 0 0 1px rgba(255,255,255,.55) inset!important;
  backdrop-filter:blur(18px)!important;
}
.smart-search.premium-smart-search .smart-search-results{top:calc(100% + 12px)!important}
.catalog-smart-search.premium-smart-search .smart-search-results{left:10px!important;right:10px!important;top:calc(100% + 10px)!important}
.smart-search-option{
  grid-template-columns:122px minmax(0,1fr)!important;
  gap:5px 13px!important;
  min-height:66px;
  border-bottom:0!important;
  margin:3px 0;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  border:1px solid rgba(226,232,240,.92)!important;
  border-radius:18px!important;
  box-shadow:0 8px 20px rgba(15,23,42,.045)!important;
}
.smart-search-option:hover,.smart-search-option.is-active{
  background:linear-gradient(135deg,#eff6ff,#fff)!important;
  border-color:#bfdbfe!important;
  box-shadow:0 18px 42px rgba(37,99,235,.14)!important;
}
.smart-search-option strong{font-size:15.5px!important;letter-spacing:-.02em;color:#0f172a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-search-option > span:last-child{font-size:12.5px!important;color:#64748b!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.smart-search-type{width:108px!important;min-height:34px!important;gap:6px!important;padding:7px 10px!important;border-radius:14px!important;background:linear-gradient(135deg,#dbeafe,#eff6ff)!important;color:#1d4ed8!important;text-transform:none!important;letter-spacing:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7)!important}
.smart-search-type i{font-style:normal;font-size:14px;line-height:1}
.smart-search-option:nth-child(2n) .smart-search-type{background:linear-gradient(135deg,#dcfce7,#f0fdf4)!important;color:#166534!important}
.smart-search-option:nth-child(3n) .smart-search-type{background:linear-gradient(135deg,#fef3c7,#fffbeb)!important;color:#92400e!important}
.smart-search-option:nth-child(4n) .smart-search-type{background:linear-gradient(135deg,#fce7f3,#fff1f2)!important;color:#9f1239!important}
.smart-search-option::after{content:'Перейти'!important;right:12px!important;background:linear-gradient(135deg,#0f172a,#1e3a8a)!important}
.autocomplete-empty{background:linear-gradient(135deg,#f8fafc,#fff)!important;border:1px dashed #bfdbfe!important;border-radius:18px!important;color:#475569!important;font-weight:800!important}
.smart-search-detected,.smart-filter-chips span{background:linear-gradient(135deg,#eaf2ff,#ecfeff)!important;border-color:#bfdbfe!important;box-shadow:0 10px 24px rgba(37,99,235,.08)!important}
@media(max-width:720px){
  .search-card-head h3{font-size:22px}
  .smart-search.premium-smart-search,.catalog-smart-search.premium-smart-search{padding:10px!important;border-radius:24px!important}
  .smart-search.premium-smart-search .input,.catalog-smart-search.premium-smart-search .input{height:56px!important;font-size:15px!important;padding-left:54px!important}
  .smart-search.premium-smart-search::before,.catalog-smart-search.premium-smart-search::before{left:25px!important;top:33px!important}
  .smart-search-option{grid-template-columns:1fr!important;min-height:auto}
  .smart-search-type{width:max-content!important}
  .search-help-row{align-items:flex-start;flex-direction:column;gap:6px}
}

/* === CLEAN SEARCH DESIGN FIX 2026-05-03 === */
.search-floating-label,
.search-help-row,
.search-hotkey{display:none!important}
.smart-search,
.catalog-smart-search,
.smart-search.premium-smart-search,
.catalog-smart-search.premium-smart-search{
  position:relative!important;
  padding:0!important;
  margin:0 0 12px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
  z-index:60!important;
}
.smart-search::before,
.catalog-smart-search::before,
.smart-search.premium-smart-search::before,
.catalog-smart-search.premium-smart-search::before{
  content:'🔎'!important;
  position:absolute!important;
  left:15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:20px!important;
  height:20px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:16px!important;
  opacity:.72!important;
  pointer-events:none!important;
  z-index:2!important;
}
.smart-search .input,
.catalog-smart-search .input,
.smart-search.premium-smart-search .input,
.catalog-smart-search.premium-smart-search .input{
  height:54px!important;
  min-height:54px!important;
  width:100%!important;
  padding:0 16px 0 46px!important;
  border-radius:16px!important;
  border:1px solid #cbd5e1!important;
  background:#fff!important;
  color:#0f172a!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:54px!important;
  box-shadow:0 10px 26px rgba(15,23,42,.07)!important;
  transform:none!important;
}
.smart-search .input:focus,
.catalog-smart-search .input:focus,
.smart-search.premium-smart-search .input:focus,
.catalog-smart-search.premium-smart-search .input:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12),0 14px 34px rgba(15,23,42,.12)!important;
  outline:0!important;
}
.smart-search-results,
.smart-search.premium-smart-search .smart-search-results,
.catalog-smart-search.premium-smart-search .smart-search-results,
.catalog-smart-search .smart-search-results{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% + 8px)!important;
  z-index:9999!important;
  width:auto!important;
  max-height:292px!important;
  overflow:auto!important;
  padding:6px!important;
  margin:0!important;
  background:#fff!important;
  border:1px solid #dbe3ef!important;
  border-radius:16px!important;
  box-shadow:0 24px 60px rgba(15,23,42,.22)!important;
  backdrop-filter:none!important;
}
.smart-search-option,
.smart-search-results .smart-search-option{
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr)!important;
  gap:3px 10px!important;
  align-items:center!important;
  min-height:52px!important;
  width:100%!important;
  padding:9px 10px!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:left!important;
}
.smart-search-option + .smart-search-option{margin-top:2px!important}
.smart-search-option:hover,
.smart-search-option.is-active{
  background:#f1f5ff!important;
  box-shadow:none!important;
  transform:none!important;
}
.smart-search-option::after{display:none!important;content:none!important}
.smart-search-type,
.smart-search-results .smart-search-type{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  width:auto!important;
  min-width:0!important;
  min-height:26px!important;
  padding:5px 7px!important;
  border-radius:999px!important;
  background:#eaf2ff!important;
  color:#1d4ed8!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}
.smart-search-type i{display:none!important}
.smart-search-option strong{
  grid-column:2!important;
  display:block!important;
  min-width:0!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.22!important;
  color:#0f172a!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.smart-search-option > span:last-child{
  grid-column:2!important;
  display:block!important;
  min-width:0!important;
  font-size:12px!important;
  line-height:1.25!important;
  color:#64748b!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.smart-search-detected{
  margin:8px 0 0!important;
  padding:9px 11px!important;
  border-radius:12px!important;
  background:#eef6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1e3a8a!important;
  font-size:12px!important;
  line-height:1.35!important;
  box-shadow:none!important;
}
.search-example-chips.catalog-search-chips,
.smart-filter-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  margin:0 0 12px!important;
}
.search-example-chips button,
.smart-filter-chips span{
  border-radius:999px!important;
  padding:6px 9px!important;
  font-size:12px!important;
  font-weight:800!important;
  background:#eef6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1d4ed8!important;
  box-shadow:none!important;
}
.filter-panel.card{overflow:visible!important}
.catalog-layout{align-items:start!important}
@media(max-width:720px){
  .smart-search-results{max-height:260px!important}
  .smart-search-option{grid-template-columns:68px minmax(0,1fr)!important;min-height:48px!important}
  .smart-search .input,.catalog-smart-search .input{height:50px!important;min-height:50px!important;line-height:50px!important;font-size:14px!important}
}

/* === NORMAL SEARCH UI FIX: wide, compact, commercial dropdown === */
.smart-search-results,
.smart-search.premium-smart-search .smart-search-results,
.catalog-smart-search.premium-smart-search .smart-search-results,
.catalog-smart-search .smart-search-results{
  left:0!important;
  right:auto!important;
  width:min(640px,calc(100vw - 48px))!important;
  max-height:420px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:8px!important;
  border-radius:18px!important;
  border:1px solid #d7e0ec!important;
  box-shadow:0 26px 70px rgba(15,23,42,.22)!important;
}
.filter-panel .smart-search-results,
.filter-panel .catalog-smart-search .smart-search-results{
  width:min(640px,calc(100vw - 64px))!important;
}
.smart-search-section-title{
  padding:8px 10px 5px!important;
  color:#64748b!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.smart-search-option,
.smart-search-results .smart-search-option{
  grid-template-columns:92px minmax(0,1fr)!important;
  min-height:46px!important;
  padding:8px 10px!important;
  gap:2px 12px!important;
  border-radius:12px!important;
}
.smart-search-type,
.smart-search-results .smart-search-type{
  min-height:24px!important;
  padding:5px 8px!important;
  border-radius:8px!important;
  background:#f1f5f9!important;
  color:#475569!important;
  font-size:11px!important;
  text-align:center!important;
}
.smart-search-option-part .smart-search-type{background:#ecfdf5!important;color:#047857!important}
.smart-search-option-general .smart-search-type{background:#eff6ff!important;color:#1d4ed8!important}
.smart-search-option-nomenclature .smart-search-type{background:#fff7ed!important;color:#c2410c!important}
.smart-search-option-vehicle .smart-search-type{background:#f5f3ff!important;color:#6d28d9!important}
.smart-search-option strong{
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.18!important;
}
.smart-search-option > span:last-child{
  font-size:12px!important;
  line-height:1.22!important;
}
.smart-search-option:hover,
.smart-search-option.is-active{
  background:#f8fafc!important;
}
.smart-search-results::-webkit-scrollbar{width:8px!important}
.smart-search-results::-webkit-scrollbar-track{background:transparent!important}
.smart-search-results::-webkit-scrollbar-thumb{background:#cbd5e1!important;border-radius:999px!important}
@media(max-width:760px){
  .smart-search-results,
  .filter-panel .smart-search-results,
  .catalog-smart-search .smart-search-results{
    width:calc(100vw - 28px)!important;
    max-height:360px!important;
  }
  .smart-search-option,
  .smart-search-results .smart-search-option{
    grid-template-columns:82px minmax(0,1fr)!important;
  }
}

/* Security captcha for login/registration */
.captcha-box { padding: 12px 14px; border: 1px solid #dbe3ef; border-radius: 14px; background: #f8fafc; display: grid; gap: 10px; min-width: 0; }
.captcha-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.captcha-box label { font-weight: 700; color: #0f172a; font-size: 13px; margin: 0; text-transform: none; letter-spacing: normal; }
.captcha-refresh-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #dbe3ef; border-radius: 10px; background: #fff; color: #2563eb; cursor: pointer; line-height: 0; }
.captcha-refresh-btn svg { display: block; width: 18px; height: 18px; }
.captcha-refresh-btn:hover { background: #eff6ff; border-color: #93c5fd; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--color-text-muted); cursor: pointer; }
.auth-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--color-accent); flex-shrink: 0; }
.auth-sub-label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--color-text); }
.auth-code-input { letter-spacing: .35em; font-size: 20px; font-weight: 700; text-align: center; max-width: 160px; }
.captcha-media { display: flex; justify-content: center; min-width: 0; }
.captcha-image { display: block; width: 100%; max-width: 220px; height: auto; aspect-ratio: 180 / 58; border: 1px solid #d8dde8; border-radius: 10px; background: #fff; object-fit: contain; }
.captcha-input { width: 100%; max-width: 100%; min-height: 46px; box-sizing: border-box; }

/* Yandex AI vehicle resolver / training UI 2026-06-27 */
.vehicle-ai-status{display:block;min-height:18px;margin:2px 0 0;line-height:1.35;}
.vehicle-ai-status.success-text{color:#166534;font-weight:650;}
.vehicle-ai-status.danger-text{color:#b91c1c;font-weight:650;}

/* === ADMIN FORM SYSTEM R19 2026-06-28 === */
.admin-body{
  --admin-surface:#ffffff;
  --admin-surface-soft:#f8fafc;
  --admin-border:#dbe3ef;
  --admin-border-strong:#cbd5e1;
  --admin-text:#0f172a;
  --admin-muted:#64748b;
  --admin-accent:#2563eb;
  --admin-accent-soft:#eff6ff;
  --admin-danger:#b91c1c;
  --admin-success:#166534;
  --admin-shadow:0 12px 34px rgba(15,23,42,.07);
}
.admin-body .content{min-width:0;padding:24px 28px 40px}
.admin-body .content > .section-head:first-child{margin-top:2px}
.admin-body .section-head{align-items:flex-start;margin-bottom:18px}
.admin-body .section-head > div:first-child{min-width:0}
.admin-body .section-head h1{font-size:30px;line-height:1.15;letter-spacing:-.02em;color:var(--admin-text)}
.admin-body .section-head h2{font-size:24px;line-height:1.2;color:var(--admin-text)}
.admin-body .section-head h3{font-size:19px;line-height:1.25;color:var(--admin-text)}
.admin-body .section-head p{max-width:900px;margin:8px 0 0;line-height:1.5}
.admin-body .compact-head{align-items:center;margin-bottom:16px}
.admin-body .card{border:1px solid rgba(203,213,225,.72);box-shadow:var(--admin-shadow);border-radius:18px;padding:20px}
.admin-body .card > h3:first-child,.admin-body .card > h4:first-child{margin-top:0}
.admin-body .nested-card{box-shadow:none;background:var(--admin-surface-soft)}
.admin-body .mt-8{margin-top:8px}.admin-body .mt-12{margin-top:12px}.admin-body .mt-16{margin-top:16px}.admin-body .mt-24{margin-top:24px}
.admin-body .mb-8{margin-bottom:8px}.admin-body .mb-12{margin-bottom:12px}.admin-body .mb-16{margin-bottom:16px}
.admin-body .kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 18px}
.admin-body .kpi{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:17px 18px;border:1px solid var(--admin-border);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 8px 22px rgba(15,23,42,.05)}
.admin-body .kpi span{color:var(--admin-muted);font-size:13px;font-weight:800}
.admin-body .kpi strong{font-size:27px;line-height:1;color:var(--admin-text)}
.admin-body .grid-form,.admin-body .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:start}
.admin-body .grid-form.compact-form{gap:12px 14px}
.admin-body .grid-form.readable-form{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-body .grid-form > .full-width,.admin-body .form-grid > .full-width,.admin-body .grid-form > .actions,.admin-body .form-grid > .actions,.admin-body .grid-form > .form-note{grid-column:1/-1}
.admin-body .form-grid-2,.admin-body .form-grid-3,.admin-body .compact-grid{align-items:start}
.admin-body .admin-form{display:grid;gap:16px}
.admin-body .admin-form.admin-form-grid:not(.grid-form):not(.stack-form):not(.form-grid-2):not(.form-grid-3){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;align-items:start}
.admin-body .admin-form.admin-form-grid > .card,.admin-body .admin-form.admin-form-grid > .actions,.admin-body .admin-form.admin-form-grid > .form-note,.admin-body .admin-form.admin-form-grid > .full-width{grid-column:1/-1}
.admin-body .admin-field,.admin-body .form-group,.admin-body .grid-form > label:not(.admin-choice),.admin-body .form-grid > label:not(.admin-choice),.admin-body .stack-form > label:not(.admin-choice){display:grid;gap:7px;min-width:0;margin:0;color:var(--admin-text);font-size:13px;font-weight:800;line-height:1.35}
.admin-body .form-group > label{margin:0;color:var(--admin-text);font-size:13px;font-weight:800;line-height:1.35}
.admin-body label[data-required="1"]::after,.admin-body .form-group.is-required > label::after{content:' *';color:#dc2626}
.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-body select,
.admin-body textarea{
  width:100%;min-width:0;border:1px solid var(--admin-border-strong);border-radius:12px;background:#fff;color:var(--admin-text);font:inherit;font-weight:600;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease
}
.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.admin-body select{min-height:46px;padding:10px 13px}
.admin-body textarea{min-height:116px;padding:12px 13px;line-height:1.5;resize:vertical}
.admin-body input::placeholder,.admin-body textarea::placeholder{color:#94a3b8;font-weight:500}
.admin-body input:focus,.admin-body select:focus,.admin-body textarea:focus{outline:0;border-color:var(--admin-accent);box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.admin-body input[readonly],.admin-body textarea[readonly],.admin-body select[readonly],.admin-body input:disabled,.admin-body textarea:disabled,.admin-body select:disabled{background:#f1f5f9;color:#64748b;cursor:not-allowed}
.admin-body input[type="file"]{padding:8px;background:#f8fafc}
.admin-body input[type="color"]{padding:4px;min-height:46px}
.admin-body .field-help,.admin-body .form-help,.admin-body .admin-field-help{display:block;margin:0;color:var(--admin-muted);font-size:12px;font-weight:500;line-height:1.45}
.admin-body .form-note{padding:12px 14px;border:1px solid #bfdbfe;border-left:4px solid var(--admin-accent);border-radius:12px;background:var(--admin-accent-soft);color:#1e3a8a;font-size:12px;line-height:1.5}
.admin-body .form-section{grid-column:1/-1;border:1px solid var(--admin-border);border-radius:16px;background:var(--admin-surface-soft);padding:16px}
.admin-body .form-section + .form-section{margin-top:2px}
.admin-body .form-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.admin-body .form-section-head h4{margin:0;font-size:16px;color:var(--admin-text)}
.admin-body .form-section-head p{margin:5px 0 0;color:var(--admin-muted);font-size:12px;line-height:1.45}
.admin-body .form-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;align-items:start}
.admin-body .form-section-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.admin-body .form-section-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-body .form-section-grid > .full-width{grid-column:1/-1}
.admin-body .admin-choice,.admin-body label:has(> input[type="checkbox"]),.admin-body label:has(> input[type="radio"]){display:flex;align-items:flex-start;gap:10px;min-width:0;margin:0;padding:11px 12px;border:1px solid var(--admin-border);border-radius:12px;background:#fff;color:var(--admin-text);font-size:13px;font-weight:700;line-height:1.35;cursor:pointer}
.admin-body .admin-choice:hover,.admin-body label:has(> input[type="checkbox"]):hover,.admin-body label:has(> input[type="radio"]):hover{border-color:#93c5fd;background:#f8fbff}
.admin-body .admin-choice input,.admin-body label:has(> input[type="checkbox"]) input,.admin-body label:has(> input[type="radio"]) input{flex:0 0 auto;width:18px;height:18px;margin:0;margin-top:1px;accent-color:var(--admin-accent)}
.admin-body .switch-control{display:flex;align-items:flex-start;gap:12px;padding:12px 13px;border:1px solid var(--admin-border);border-radius:13px;background:#fff;cursor:pointer}
.admin-body .switch-control input{position:absolute;opacity:0;pointer-events:none}
.admin-body .switch-ui{position:relative;flex:0 0 42px;width:42px;height:24px;margin-top:1px;border-radius:999px;background:#cbd5e1;transition:.18s ease}
.admin-body .switch-ui::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.2);transition:.18s ease}
.admin-body .switch-control input:checked + .switch-ui{background:var(--admin-accent)}
.admin-body .switch-control input:checked + .switch-ui::after{transform:translateX(18px)}
.admin-body .switch-control input:focus-visible + .switch-ui{box-shadow:0 0 0 4px rgba(37,99,235,.16)}
.admin-body .switch-copy{display:grid;gap:3px;min-width:0}
.admin-body .switch-copy strong{font-size:13px;color:var(--admin-text)}
.admin-body .switch-copy small{color:var(--admin-muted);font-size:12px;font-weight:500;line-height:1.4}
.admin-body .actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;padding-top:4px}
.admin-body .admin-form.is-long-form > .actions,.admin-body .grid-form.is-long-form > .actions{margin-top:2px;padding:14px 0 0;border-top:1px solid var(--admin-border)}
.admin-body button,.admin-body .btn{min-height:42px;border-radius:11px;padding:10px 16px;font-size:13px;font-weight:850;line-height:1.2;box-shadow:none;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}
.admin-body button:hover,.admin-body .btn:hover{opacity:1;transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.12)}
.admin-body button.secondary,.admin-body .btn.light,.admin-body .btn.secondary{border:1px solid #d6dde8;background:#eef2f7;color:#0f172a}
.admin-body button.danger,.admin-body .btn.danger{background:#b91c1c;color:#fff}
.admin-body button.small,.admin-body .btn.small{min-height:34px;padding:7px 11px;border-radius:9px;font-size:12px}
.admin-body .sidebar button.nav-section-toggle{background:rgba(37,99,235,.22)!important;color:#fff!important;border:0!important;min-height:unset!important;padding:10px 12px!important;font-weight:800!important;box-shadow:inset 3px 0 0 #3b82f6!important;transform:none!important}
.admin-body .sidebar .nav-section.is-open button.nav-section-toggle{background:rgba(37,99,235,.32)!important}
.admin-body .sidebar button.nav-section-toggle:hover{background:rgba(37,99,235,.36)!important;color:#fff!important;transform:none!important;box-shadow:inset 3px 0 0 #3b82f6!important}
.admin-body button.pc-copy-btn,
.admin-body button.dsc-copy-btn,
.admin-body button.ds-copy-btn{min-height:22px !important;padding:0 !important;border-radius:6px !important;font-size:12px !important;font-weight:600 !important;box-shadow:none !important;transform:none !important;color:#6b7280 !important;background:#f3f4f6 !important;border:0 !important}
.admin-body button.pc-copy-btn:hover,
.admin-body button.dsc-copy-btn:hover,
.admin-body button.ds-copy-btn:hover{transform:none !important;box-shadow:none !important;background:#e5e7eb !important;color:#374151 !important}
.admin-body button.pc-copy-btn.is-copied,
.admin-body button.dsc-copy-btn.is-copied,
.admin-body button.ds-copy-btn.is-copied{background:var(--color-success-soft);color:var(--color-success)}
.admin-body .inline-form,.admin-body .actions-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-body .inline-form > input:not([type="hidden"]),.admin-body .inline-form > select{width:auto;min-width:180px;flex:1 1 220px}
.admin-body form.inline,.admin-body form.inline-form,.admin-body td form,.admin-body th form{display:inline-flex;gap:8px;align-items:center;margin:0}
.admin-body form.inline input[type="hidden"],.admin-body form.inline-form input[type="hidden"]{display:none}
.admin-body .table-responsive,.admin-body .table-wrap,.admin-body .table-shell{overflow:auto;border:1px solid var(--admin-border);border-radius:14px;background:#fff}
.admin-body .table-responsive table,.admin-body .table-wrap table,.admin-body .table-shell table{margin:0;border-collapse:separate;border-spacing:0}
.admin-body .table-responsive th,.admin-body .table-wrap th,.admin-body .table-shell th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#475569;font-size:12px;font-weight:900;white-space:nowrap}
.admin-body .table-responsive tr:last-child td,.admin-body .table-wrap tr:last-child td,.admin-body .table-shell tr:last-child td{border-bottom:0}
.admin-body .text-danger{color:var(--admin-danger)}
.admin-body .status-warning{color:#9a3412}
.admin-body .secret-field{position:relative}
.admin-body .secret-field input{padding-right:46px}
.admin-body .secret-toggle{position:absolute;right:6px;bottom:6px;min-width:34px;width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:8px;background:#eef2f7;color:#475569;font-size:0}
.admin-body .secret-toggle::before{content:'👁';font-size:15px}
.admin-body .secret-toggle.is-visible::before{content:'🙈'}
.admin-body .localhost-warning{margin-top:6px;color:#9a3412;font-size:12px;font-weight:700}
.admin-body .topbar{padding:0 0 2px}
.admin-body .topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-body .topbar-actions form{margin:0}
.admin-body .sidebar-search{border-color:#334155;background:#172033;color:#fff;min-height:42px}
.admin-body .sidebar-search::placeholder{color:#94a3b8}
@media(max-width:1200px){
  .admin-body .form-section-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-body .form-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-body .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .admin-body .content{padding:20px 16px 34px}
  .admin-body .grid-form,.admin-body .form-grid,.admin-body .grid-form.readable-form,.admin-body .admin-form.admin-form-grid:not(.grid-form):not(.stack-form):not(.form-grid-2):not(.form-grid-3),.admin-body .form-section-grid,.admin-body .form-section-grid.cols-2,.admin-body .form-section-grid.cols-4{grid-template-columns:1fr}
  .admin-body .span-2,.admin-body .full-width{grid-column:auto!important}
}
@media(max-width:620px){
  .admin-body .kpi-grid{grid-template-columns:1fr}
  .admin-body .card{padding:16px;border-radius:15px}
  .admin-body .section-head h1{font-size:25px}
  .admin-body .actions > button,.admin-body .actions > .btn{width:100%}
}

/* === ADMIN NAV + DASHBOARD UI 2026-07-07 === */
.admin-body .sidebar-search{border-color:#334155;background:#172033;color:#fff;min-height:40px}
.admin-body .workspace-card{border-radius:16px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.admin-body .workspace-card:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(15,23,42,.08)}
.dashboard-page{display:grid;gap:20px}
.dashboard-hero{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.dashboard-hero-card{
  padding:16px 18px;border-radius:16px;border:1px solid rgba(203,213,225,.7);
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 8px 22px rgba(15,23,42,.05);
  display:grid;gap:6px;min-width:0
}
.dashboard-hero-card strong{font-size:24px;line-height:1.1;color:var(--admin-text);font-family:var(--font-display,Manrope,Inter,sans-serif)}
.dashboard-hero-card span{color:var(--admin-muted);font-size:12px;font-weight:700;line-height:1.35}
.dashboard-hero-card.is-accent{background:linear-gradient(135deg,#eff6ff,#dbeafe);border-color:#bfdbfe}
.dashboard-hero-card.is-accent strong{color:#1d4ed8}
.dashboard-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dashboard-group-card{
  border-radius:18px;overflow:hidden;border:1px solid rgba(203,213,225,.72);
  box-shadow:var(--admin-shadow);background:#fff
}
.dashboard-group-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px 12px;border-bottom:1px solid #eef2f7
}
.dashboard-group-head h3{margin:0;font-size:17px;display:flex;align-items:center;gap:10px}
.dashboard-group-head a{font-size:12px;font-weight:700;text-decoration:none;color:#2563eb}
.dashboard-group-icon{
  width:34px;height:34px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;
  font-size:16px;flex-shrink:0
}
.dashboard-group-icon--warehouse{background:#eff6ff;color:#2563eb}
.dashboard-group-icon--people{background:#f0fdf4;color:#16a34a}
.dashboard-group-icon--money{background:#fff7ed;color:#ea580c}
.dashboard-group-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 16px 16px}
.dashboard-stat{
  padding:12px 13px;border-radius:13px;background:#f8fafc;border:1px solid #e8edf3;display:grid;gap:5px;min-width:0
}
.dashboard-stat strong{font-size:18px;line-height:1.15;color:var(--admin-text)}
.dashboard-stat span{color:var(--admin-muted);font-size:11px;font-weight:700;line-height:1.35}
.dashboard-stat a{color:inherit;text-decoration:none}
.dashboard-stat a:hover{text-decoration:underline}
.dashboard-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard-workspace-lead{margin:0;color:var(--admin-muted);font-size:14px;line-height:1.5;max-width:760px}
.dashboard-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
@media(max-width:1400px){.dashboard-hero{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){
  .dashboard-groups,.dashboard-panel-grid{grid-template-columns:1fr}
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto;max-height:none;overflow:visible}
  .admin-nav{max-height:52vh}
}
@media(max-width:720px){
  .dashboard-hero{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-group-stats{grid-template-columns:1fr}
}

/* ——— Toast notifications ——— */
.toast-stack {
  position: fixed;
  top: calc(var(--header-height) + 12px);
  right: 16px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.28s ease;
}
.toast.is-leaving { animation: toast-out 0.22s ease forwards; }
.toast--success { border-color: var(--color-success-border); background: var(--color-success-soft); }
.toast--error { border-color: #fecaca; background: var(--color-danger-soft); }
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--color-surface);
}
.toast--success .toast-icon { color: var(--color-success); }
.toast--error .toast-icon { color: var(--color-danger); }
.toast-body strong { display: block; font-size: var(--text-sm); margin-bottom: 2px; }
.toast-body span { font-size: var(--text-sm); color: var(--color-text-muted); }
.toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 18px;
  transform: none;
}
.toast-close:hover { background: rgba(15, 23, 42, 0.06); transform: none; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-6px); }
}

/* Account nav refresh */
.account-nav a.active {
  background: var(--color-text);
  color: #fff;
}
.account-nav a:not(.active):hover {
  background: var(--color-surface-2);
}
.admin-stats.account-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .admin-stats.account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— Catalog market ——— */
.catalog-page-2026 {
  --cat-space-xs: 8px;
  --cat-space-sm: 12px;
  --cat-space-md: 20px;
  --cat-space-lg: 28px;
  --cat-space-xl: 40px;
  --cat-elev-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --cat-elev-2: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --cat-elev-3: 0 12px 28px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.05);
  --cat-surface-muted: #f8fafc;
  --cat-border-soft: #e8edf3;
  background: var(--color-bg);
}
.catalog-page-2026 button { transform: none; }
.catalog-page-2026 button:hover { transform: none; }
.catalog-page-2026 button.catalog-cat-tile,
.catalog-page-2026 button.catalog-view-btn,
.catalog-page-2026 button.catalog-extra-chip,
.catalog-page-2026 button.catalog-matrix-back,
.catalog-page-2026 button.catalog-matrix-link,
.catalog-page-2026 button.catalog-category-chip,
.catalog-page-2026 button.catalog-filters-close {
  background: transparent;
  color: inherit;
  border-color: transparent;
  box-shadow: none;
  padding: inherit;
}
.catalog-page-2026 button.catalog-category-chip {
  display: inline-flex !important;
  align-items: center;
  background: #fef9c3 !important;
  border: 1px solid #facc15 !important;
  color: #854d0e !important;
  padding: 7px 12px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}
.catalog-page-2026 button.catalog-matrix-link {
  display: block !important;
  width: 100%;
  padding: 5px 0 !important;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #2563eb !important;
  font-weight: 400 !important;
  justify-content: flex-start;
  text-align: left;
}
.catalog-page-2026 button.catalog-matrix-link:hover {
  color: #1d4ed8 !important;
  background: transparent !important;
  text-decoration: underline;
}
.catalog-page-2026 button.catalog-matrix-back {
  display: inline-flex !important;
  padding: 0 !important;
  margin: 0 0 4px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
}
.catalog-page-2026 button.catalog-matrix-back:hover {
  color: var(--color-accent) !important;
  background: transparent !important;
  text-decoration: underline;
}
.catalog-page-2026 button.catalog-matrix-back.catalog-btn-ghost {
  color: var(--color-accent-soft-text);
  font-weight: 600;
}
.catalog-page-2026 button.catalog-matrix-back.catalog-btn-ghost:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
}
.catalog-page-2026 button.catalog-cat-tile { background: var(--color-surface); border-color: var(--cat-border-soft); color: var(--color-text); }
.catalog-page-2026 button.catalog-view-btn { background: transparent; padding: 0; }
.catalog-page-2026 button.catalog-extra-chip { background: var(--color-surface); border: 1px solid var(--cat-border-soft); padding: 6px 12px; }
.catalog-page-2026 .catalog-btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.catalog-page-2026 .catalog-btn-primary:hover:not(:disabled):not(.is-disabled) { background: var(--btn-primary-bg-hover); color: var(--btn-primary-fg); }
.catalog-page-2026 .catalog-btn-secondary,
.catalog-page-2026 .catalog-btn-outline { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); }
.catalog-page-2026 .catalog-btn-secondary:hover:not(:disabled):not(.is-disabled),
.catalog-page-2026 .catalog-btn-outline:hover:not(:disabled):not(.is-disabled) { background: var(--btn-secondary-bg-hover); color: var(--btn-secondary-fg); }
.catalog-page-2026 .catalog-btn-ghost:hover:not(:disabled):not(.is-disabled) { background: var(--btn-ghost-bg-hover); color: var(--btn-ghost-fg-hover); }
.catalog-page-2026 .catalog-btn-cart { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-border); }
.catalog-page-2026 .catalog-btn-cart:hover:not(:disabled):not(.is-disabled) { background: var(--btn-primary-bg-hover); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg-hover); }
.catalog-page-2026 button.catalog-cat-tile:hover { background: var(--color-surface); color: inherit; }
.catalog-page-2026 button.catalog-view-btn.is-active { background: var(--color-accent-soft); color: var(--color-accent-soft-text); border-color: var(--color-accent-soft-border); }

.catalog-market-container { max-width: 1240px; }
.catalog-market-crumbs { margin-bottom: var(--cat-space-md); }
.catalog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.catalog-breadcrumbs a { color: var(--color-text-muted); font-weight: 500; }
.catalog-breadcrumbs a:hover { color: var(--color-accent); }
.catalog-breadcrumbs span { color: var(--color-surface-3); }
.catalog-breadcrumbs .is-current { color: var(--color-text); font-weight: 600; }

.catalog-market-form { display: flex; flex-direction: column; gap: var(--cat-space-lg); }

/* Без catalog-ref.css inline SVG не должны раздувать страницу */
.market-catalog .catalog-assurance-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.market-catalog .mu-trust-bar--catalog .mu-trust-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Scoped buttons — semantic design system (primary / secondary / ghost) */
.catalog-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.catalog-btn:focus-visible { outline: none; box-shadow: var(--btn-focus-ring); }
.catalog-btn:disabled,
.catalog-btn.is-disabled,
.catalog-btn[aria-disabled="true"] {
  opacity: var(--btn-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}
.catalog-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.catalog-btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: catalog-btn-spin .7s linear infinite;
}
@keyframes catalog-btn-spin { to { transform: rotate(360deg); } }

/* Primary — one main CTA per screen region */
.catalog-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}
.catalog-btn-primary:hover:not(:disabled):not(.is-disabled) {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
}

/* Secondary — outline actions */
.catalog-btn-secondary,
.catalog-btn-outline {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border-color: var(--btn-secondary-border);
  box-shadow: var(--shadow-sm);
}
.catalog-btn-secondary:hover:not(:disabled):not(.is-disabled),
.catalog-btn-outline:hover:not(:disabled):not(.is-disabled) {
  background: var(--btn-secondary-bg-hover);
  border-color: var(--color-surface-3);
  color: var(--btn-secondary-fg);
}

/* Ghost — text-only tertiary actions */
.catalog-btn-ghost {
  background: transparent;
  color: var(--btn-ghost-fg);
  border-color: transparent;
  min-height: 36px;
  padding: 0 10px;
  box-shadow: none;
}
.catalog-btn-ghost:hover:not(:disabled):not(.is-disabled) {
  background: var(--btn-ghost-bg-hover);
  color: var(--btn-ghost-fg-hover);
}

/* Cart CTA variant */
.catalog-btn-cart {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-border);
  min-width: 132px;
  box-shadow: var(--btn-primary-shadow);
}
.catalog-btn-cart:hover:not(:disabled):not(.is-disabled) {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
}

/* Unified cart stepper — compact fixed size, no layout jump */
.cart-stepper {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 132px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--btn-primary-border);
  background: var(--btn-primary-bg);
  box-shadow: var(--btn-primary-shadow);
  vertical-align: middle;
}
.cart-stepper__form {
  display: flex;
  width: 132px;
  height: 40px;
  margin: 0;
}
.cart-stepper__add {
  flex: 1;
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--btn-primary-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
  white-space: nowrap;
}
.cart-stepper__add:hover:not(:disabled) {
  background: var(--btn-primary-bg-hover);
}
.cart-stepper__btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--btn-primary-fg);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cart-stepper__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
}
.cart-stepper__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.cart-stepper__qty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--btn-primary-fg);
  background: rgba(255, 255, 255, 0.08);
  user-select: none;
}
.product-cart-slot {
  margin-top: auto;
  padding-top: 6px;
}
.cart-action-wrap--catalog {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.detail-buy-row .cart-stepper--mockup {
  flex: 0 0 auto;
  width: 132px;
}
.catalog-view-grid .catalog-card-actions,
.catalog-view-list .catalog-card-actions {
  align-items: flex-start;
}
.catalog-view-grid .cart-stepper,
.catalog-view-list .cart-stepper {
  width: 132px;
}
.cart-stepper--cart-page {
  width: 112px;
  height: 36px;
}
.cart-stepper--cart-page .cart-stepper__form,
.cart-stepper--cart-page .cart-stepper__btn {
  height: 36px;
}
.cart-stepper--cart-page .cart-stepper__btn {
  flex-basis: 36px;
  width: 36px;
  font-size: 16px;
}
.cart-stepper--cart-page .cart-stepper__qty {
  font-size: 13px;
}
.cart-row.is-syncing {
  opacity: 0.55;
  pointer-events: none;
}

.catalog-search-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--cat-space-sm); align-items: end;
  padding: var(--cat-space-md); background: var(--color-surface); border: 1px solid var(--cat-border-soft); border-radius: var(--radius-md); box-shadow: var(--cat-elev-2);
}
.catalog-search-unified { min-width: 0; }
.catalog-search-hint { margin: 6px 0 0; font-size: 11px; color: var(--color-text-muted); line-height: 1.35; }
.catalog-search-submit.is-disabled,
.catalog-search-submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none !important; }
.catalog-search-submit:disabled:hover { box-shadow: none; transform: none !important; }

.vehicle-cascade-stack { display: flex; flex-direction: column; gap: 8px; }
.vehicle-catalog-cascade .form-group { margin: 0; }
.vehicle-catalog-cascade .catalog-field-input { width: 100%; min-height: 40px; font-size: var(--text-sm); }
.vehicle-catalog-cascade select:disabled { opacity: .55; cursor: not-allowed; background: var(--cat-surface-muted); }

.catalog-trail-chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--cat-border-soft); background: var(--cat-surface-muted);
  font-size: 12px; font-weight: 600; color: var(--color-text); cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
button.catalog-trail-chip:hover { border-color: var(--color-accent-soft-border); background: var(--color-accent-soft); color: var(--color-accent-soft-text); }
.catalog-trail-chip.is-current { background: var(--color-accent-soft); color: var(--color-accent-soft-text); border-color: var(--color-accent-soft-border); cursor: default; }

.catalog-category-breadcrumb.catalog-category-steps,
.catalog-category-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
  margin: 0 0 var(--cat-space-sm); padding: 0;
  font-size: 13px; line-height: 1.4; color: var(--color-text-muted);
}
.catalog-category-crumb {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0;
  border: 0; background: transparent; font: inherit; font-weight: 500;
  color: var(--color-text-muted);
}
button.catalog-category-crumb.is-link {
  cursor: pointer; color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
button.catalog-category-crumb.is-link:hover {
  color: var(--color-accent);
  text-decoration: underline; text-underline-offset: 3px;
}
.catalog-category-crumb.is-current {
  font-weight: 700; color: var(--color-text); cursor: default;
}
.catalog-category-crumb-sep {
  display: inline-flex; align-items: center; margin: 0 8px;
  color: var(--color-surface-3); font-size: 14px; user-select: none;
}
.catalog-search-mode-notice { margin-top: 6px; }
.catalog-search-mode-badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
}
.catalog-empty-actions { margin-top: 16px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.catalog-results-stage { position: relative; min-height: 120px; }
.catalog-results-stage.is-dimmed { pointer-events: none; }
.catalog-results-stage.is-dimmed .catalog-list { opacity: 0.45; transition: opacity .2s ease; }
.catalog-results-stage.is-loading #catalogResultsList {
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.catalog-results-loading {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.72); backdrop-filter: blur(1px); border-radius: var(--radius-sm);
}
.catalog-results-stage.is-loading .catalog-results-loading { display: flex; }
.catalog-results-stage:not(.is-loading) .catalog-results-loading { display: none; }
.catalog-results-loading-spinner {
  width: 36px; height: 36px; border: 3px solid var(--color-border); border-top-color: var(--color-accent);
  border-radius: 50%; animation: catalog-spin .7s linear infinite;
}
.catalog-results-loading-overlay {
  width: 36px; height: 36px; border: 3px solid var(--color-border); border-top-color: var(--color-accent);
  border-radius: 50%; animation: catalog-spin .7s linear infinite;
}
@keyframes catalog-spin { to { transform: rotate(360deg); } }
.catalog-results-skeleton[hidden] { display: none !important; }
.catalog-results-stage.is-loading .catalog-results-skeleton {
  display: grid;
  width: 100%;
  min-height: 148px;
}
.catalog-results-skeleton { display: none; gap: var(--cat-space-md); margin-top: 0; }
.catalog-skeleton-card {
  height: 148px; border-radius: var(--radius-sm); background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%; animation: catalog-skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes catalog-skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.catalog-notice-warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.catalog-search-field { position: relative; min-width: 0; }
.catalog-field-label { display: block; margin-bottom: 6px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.catalog-field-input {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); font-size: var(--text-base); color: var(--color-text);
}
.catalog-field-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.catalog-search-submit {
  min-height: 52px; padding: 0 32px; font-size: var(--text-base); font-weight: 700; align-self: end;
  box-shadow: var(--btn-primary-shadow);
}
.catalog-page-2026 .catalog-btn-primary.catalog-search-submit:hover:not(:disabled):not(.is-disabled) {
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-1px);
}
.catalog-page-2026 .catalog-smart-search.premium-smart-search { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.catalog-page-2026 .catalog-smart-search::before { display: none !important; }
.catalog-page-2026 .smart-search-results { left: 0; right: 0; top: calc(100% + 6px); border-radius: var(--radius-sm); z-index: 30; }

.catalog-layout-2026 { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--cat-space-lg); align-items: start; }
.catalog-filters-toggle { display: none; width: 100%; }
.catalog-filter-badge { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; background: var(--btn-primary-bg); color: var(--btn-primary-fg); font-size: 11px; font-weight: 700; margin-left: 4px; }

.catalog-filters-panel { position: sticky; top: calc(var(--header-height) + 12px); z-index: 5; }
.catalog-sidebar-soft {
  background: var(--color-surface) !important;
  border: 1px solid var(--cat-border-soft) !important;
  box-shadow: var(--cat-elev-1) !important;
  padding: var(--cat-space-sm) var(--cat-space-sm) var(--cat-space-md) !important;
  border-radius: var(--radius-md) !important;
}
.catalog-sidebar-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--cat-space-xs); padding: 0 4px;
}
.catalog-filter-accordion { border-bottom: 1px solid var(--cat-border-soft); }
.catalog-filter-accordion:last-of-type { border-bottom: 0; }
.catalog-filter-accordion summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--color-text);
  padding: 10px 4px; list-style: none; user-select: none;
}
.catalog-filter-accordion summary::-webkit-details-marker { display: none; }
.catalog-filter-accordion-body { padding: 0 4px 12px; }
.catalog-filter-accordion .catalog-field-input { min-height: 40px; font-size: var(--text-sm); background: var(--cat-surface-muted); border-color: var(--cat-border-soft); }
.catalog-filter-accordion .catalog-segments { gap: 4px; }
.catalog-filter-accordion .catalog-segment { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.catalog-apply-btn { margin-top: var(--cat-space-sm) !important; min-height: 40px !important; font-size: 13px !important; box-shadow: none !important; border-color: var(--cat-border-soft) !important; }

.catalog-results-wrap { min-width: 0; background: transparent; border-radius: 0; padding: 0; box-shadow: none; border: 0; display: flex; flex-direction: column; gap: var(--cat-space-md); }
.catalog-market-toolbar { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.catalog-results-title { font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }

/* Product cards — marketplace grid (default) */
.catalog-view-grid.catalog-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: var(--cat-space-md);
}
.catalog-view-grid .catalog-product-card {
  display: flex; flex-direction: column; height: 100%;
  grid-template-columns: 1fr; gap: 0; padding: 0; border: 1px solid var(--cat-border-soft);
  border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface);
  box-shadow: var(--cat-elev-1);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.catalog-view-grid .catalog-product-card:hover {
  box-shadow: var(--cat-elev-3); transform: translateY(-4px); border-color: #cbd5e1;
}
.catalog-view-grid .catalog-list-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 0; position: relative; background: #f1f5f9; }
.catalog-view-grid .catalog-thumb-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-view-grid .catalog-list-body { padding: var(--cat-space-sm) var(--cat-space-sm) var(--cat-space-xs); gap: 6px; flex: 1; }
.catalog-view-grid .catalog-product-cat { font-size: 11px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.catalog-view-grid .catalog-list-title { font-size: var(--text-sm); font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-view-grid .catalog-list-aside {
  align-items: stretch; min-width: 0; padding: 0; border-top: 0; gap: 0; margin-top: auto;
}
.catalog-view-grid .catalog-card-commerce {
  background: var(--cat-surface-muted); border-top: 1px solid var(--cat-border-soft);
  padding: var(--cat-space-sm); gap: var(--cat-space-xs);
}
.catalog-view-grid .catalog-price-block { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.catalog-view-grid .catalog-list-price { font-size: 22px; font-weight: 800; text-align: left; color: var(--color-text); line-height: 1; }
.catalog-view-grid .catalog-price-currency { font-size: 15px; font-weight: 700; color: var(--color-text-muted); }
.catalog-view-grid .catalog-list-stock { font-size: 11px; font-weight: 600; text-align: right; }
.catalog-view-grid .catalog-list-snippet,
.catalog-view-grid .catalog-list-meta { display: none; }
.catalog-view-grid .catalog-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.catalog-view-grid .catalog-btn-cart-main { min-height: 40px; font-size: 13px; border-radius: 10px; }
.catalog-view-grid .catalog-btn-quick { display: none; }

.catalog-badge-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px);
}
.catalog-badge-used { background: rgba(255,255,255,.92); color: var(--color-text); box-shadow: var(--shadow-sm); }
.catalog-badge-stock { background: rgba(5,150,105,.92); color: #fff; }

.catalog-thumb-badges { display: none; }
.catalog-view-grid .catalog-thumb-badges { display: flex; }

/* List view */
.catalog-view-list.catalog-list { display: flex; flex-direction: column; gap: 0; }
.catalog-view-list .catalog-product-card {
  display: grid; grid-template-columns: 156px minmax(0, 1fr) auto; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--color-border); border-radius: 0; border-width: 0 0 1px;
  box-shadow: none;
}
.catalog-view-list .catalog-product-card:hover { background: linear-gradient(90deg, rgba(239,246,255,.5) 0%, transparent 70%); transform: none; box-shadow: none; }
.catalog-view-list .catalog-list-thumb { width: 156px; aspect-ratio: 1; border-radius: var(--radius-sm); position: relative; }
.catalog-view-list .catalog-thumb-badges { display: flex; position: absolute; top: 8px; left: 8px; }
.catalog-view-list .catalog-list-aside { min-width: 168px; }
.catalog-view-list .catalog-card-commerce {
  background: var(--cat-surface-muted); border: 1px solid var(--cat-border-soft); border-radius: var(--radius-sm);
  padding: var(--cat-space-sm); gap: var(--cat-space-xs);
}
.catalog-view-list .catalog-list-price { font-size: 26px; }
.catalog-view-list .catalog-btn-cart-main { width: 132px; }
.catalog-view-list .catalog-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.catalog-view-list .catalog-btn-quick { display: none; }

.catalog-card-commerce { display: flex; flex-direction: column; }
.catalog-price-block { display: flex; flex-direction: column; gap: 4px; }
.catalog-price-currency { font-size: .72em; font-weight: 700; color: var(--color-text-muted); }

.catalog-product-cat { font-size: var(--text-xs); font-weight: 600; color: var(--color-success); }
.catalog-list-title { font-weight: 700; }
.catalog-list-title a { color: var(--color-text); font-weight: 700; }
.catalog-list-price { font-weight: 800; color: var(--color-text); }
.catalog-list-specs { font-weight: 500; }
.catalog-list-snippet { font-weight: 400; }
.catalog-btn-cart-main { font-weight: 700; min-height: 42px; }
.catalog-filters-panel-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.catalog-filters-close { border: 0; background: transparent; font-size: 24px; color: var(--color-text-muted); cursor: pointer; line-height: 1; padding: 0; }
.catalog-filters-form { display: flex; flex-direction: column; gap: 0; }
.catalog-reset-inline { display: inline-block; margin-bottom: 12px; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent-soft-text); text-decoration: none; }
.catalog-reset-inline:hover { text-decoration: underline; }
.catalog-filter-block { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.catalog-filter-block:first-of-type { padding-top: 0; }
.catalog-filter-block-title { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.catalog-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.catalog-segments { display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-segment {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.catalog-segment input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.catalog-segment.is-active,
.catalog-segment:has(input:checked) { background: var(--color-accent-soft); border-color: var(--color-accent-soft-border); color: var(--color-accent-soft-text); }

.catalog-check-row { display: flex; align-items: center; gap: 8px; padding: 14px 0 4px; font-size: var(--text-sm); color: var(--color-text); cursor: pointer; }
.catalog-check-row input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.catalog-apply-btn { width: 100%; margin-top: 8px; }

.vehicle-catalog-compact .vehicle-selector-footnote,
.vehicle-catalog-compact .vehicle-selector-hint,
.vehicle-catalog-compact .vehicle-ai-status:empty { display: none; }
.vehicle-catalog-compact .vehicle-autocomplete-input { min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: var(--text-sm); width: 100%; }

/* Category panel — main area */
.catalog-category-panel {
  padding: var(--cat-space-md) var(--cat-space-md) var(--cat-space-sm) !important; margin-bottom: 0;
  border-radius: var(--radius-md) !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--cat-border-soft) !important;
  box-shadow: none !important;
}
.catalog-category-panel.is-complete {
  background: var(--color-surface) !important;
  border-color: var(--cat-border-soft) !important;
}
.catalog-category-head { margin-bottom: 10px; }
.catalog-category-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.catalog-category-step { font-size: 15px; font-weight: 700; color: var(--color-text); letter-spacing: -.01em; line-height: 1.3; margin: 0; }
.catalog-category-panel.is-complete .catalog-category-step { font-size: 16px; font-weight: 700; }

.catalog-matrix-grid { display: flex; flex-direction: column; gap: 10px; }
.catalog-matrix-back {
  align-self: flex-start; margin: 0 0 4px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 400; line-height: 1.4;
  color: #6b7280; text-decoration: none;
  transition: color var(--transition);
}
.catalog-matrix-back:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

.catalog-matrix-links {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 40px;
}
.catalog-matrix-links.is-compact { columns: 3; column-gap: 24px; }
.catalog-matrix-links > li {
  break-inside: avoid; margin: 0 0 2px; padding: 0;
}
.catalog-matrix-link {
  display: block; width: 100%; padding: 5px 0;
  border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  text-align: left; justify-content: flex-start;
  font-size: 14px; font-weight: 400; line-height: 1.35;
  color: #2563eb !important; cursor: pointer;
  transition: color var(--transition);
}
.catalog-matrix-link:hover {
  color: #1d4ed8 !important;
  background: transparent !important;
  text-decoration: underline; text-underline-offset: 2px;
}
.catalog-matrix-link-side.is-active { font-weight: 700; color: #1e40af; }

.catalog-matrix-sides { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cat-border-soft); }
.catalog-matrix-sides-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.catalog-matrix-empty { margin: 8px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

.catalog-category-chip-wrap { margin-top: 12px; }
.catalog-category-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 4px;
  border: 1px solid #facc15; background: #fef9c3;
  color: #854d0e; font-size: 13px; font-weight: 500; line-height: 1.2;
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
}
.catalog-category-chip:hover { background: #fef08a; border-color: #eab308; }
.catalog-category-chip-label { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-category-chip-close { font-size: 16px; line-height: 1; color: #a16207; font-weight: 400; }

.catalog-category-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: var(--cat-space-sm); font-size: var(--text-sm); color: var(--color-text-muted); }
.catalog-trail-item { padding: 3px 10px; background: var(--cat-surface-muted); border: 1px solid var(--cat-border-soft); border-radius: 999px; font-weight: 600; font-size: 12px; }
.catalog-trail-item.is-current { background: var(--color-accent-soft); color: var(--color-accent-soft-text); border-color: var(--color-accent-soft-border); }
.catalog-trail-sep { color: var(--color-surface-3); font-size: 12px; }

.catalog-matrix-grid { display: flex; flex-direction: column; gap: var(--cat-space-sm); }
.catalog-matrix-grid-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: var(--cat-space-xs); }
.catalog-matrix-grid-inner.is-compact { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
.catalog-matrix-back { align-self: flex-start; margin-bottom: 2px; font-size: 13px !important; }
.catalog-matrix-sides { display: flex; flex-direction: column; gap: var(--cat-space-xs); padding-top: var(--cat-space-sm); border-top: 1px dashed var(--cat-border-soft); }
.catalog-matrix-sides-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.catalog-matrix-empty { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* Category tiles — Ozon-style, not blue buttons */
.catalog-cat-tile {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  min-height: 64px; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--cat-border-soft); background: var(--color-surface); text-align: left;
  color: var(--color-text);
  cursor: pointer; box-shadow: var(--cat-elev-1);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.catalog-cat-tile-icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #eff6ff 0%, #f8fafc 100%);
  color: #2563eb;
  border: 1px solid #dbeafe;
}
.catalog-cat-tile-icon svg { display: block; width: 24px; height: 24px; }
.catalog-cat-tile-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 0; flex: 1 1 auto;
}
.catalog-cat-tile-name { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); line-height: 1.3; }
.catalog-cat-tile-count {
  display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px;
  border-radius: 999px; background: var(--cat-surface-muted); border: 1px solid var(--cat-border-soft);
  font-size: 11px; font-weight: 700; color: var(--color-text-muted); line-height: 1;
}
.catalog-cat-tile:hover {
  border-color: #cbd5e1; box-shadow: var(--cat-elev-2); transform: translateY(-1px);
}
.catalog-cat-tile:hover .catalog-cat-tile-name { color: var(--color-accent); }
.catalog-cat-tile.is-active {
  border-color: var(--color-accent); background: #fafcff;
  box-shadow: 0 0 0 2px rgba(37,99,235,.12), var(--cat-elev-2);
}
.catalog-cat-tile.is-active .catalog-cat-tile-name { color: var(--color-accent-soft-text); font-weight: 700; }
.catalog-cat-tile.is-active .catalog-cat-tile-count { background: var(--color-accent-soft); border-color: var(--color-accent-soft-border); color: var(--color-accent-soft-text); }
.catalog-cat-tile--compact { min-height: 48px; padding: 8px 12px; }
.catalog-cat-tile--compact .catalog-cat-tile-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 8px; }
.catalog-cat-tile--compact .catalog-cat-tile-icon svg { width: 18px; height: 18px; }
.catalog-cat-tile-side { min-height: 40px; }
.catalog-cat-tile-side .catalog-cat-tile-body { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
.catalog-cat-tile-side .catalog-cat-tile-count { margin-left: auto; }
.catalog-matrix-grid-inner { list-style: none; margin: 0; padding: 0; }

.catalog-results-toolbar-block {
  display: flex; flex-direction: column; gap: var(--cat-space-sm);
  padding: var(--cat-space-md); background: var(--color-surface);
  border: 1px solid var(--cat-border-soft); border-radius: var(--radius-md); box-shadow: var(--cat-elev-1);
}

.catalog-results-toolbar-block .catalog-extra-chips { margin-bottom: 0; }
.catalog-results-toolbar-block .catalog-notice { margin-bottom: 0; }

.catalog-market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--cat-space-sm); flex-wrap: wrap; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.catalog-results-title { margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; color: var(--color-text); letter-spacing: -.02em; }
.catalog-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.catalog-view-toggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.catalog-view-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer; padding: 0; }
.catalog-view-btn.is-active { background: var(--color-accent-soft); color: var(--color-accent-soft-text); border-color: var(--color-accent-soft-border); }
.catalog-sort-select { min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); padding: 0 12px; font-size: var(--text-sm); font-weight: 600; color: var(--color-text); background: var(--color-surface); cursor: pointer; }

.catalog-extra-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.catalog-extra-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); border-radius: 999px; padding: 6px 10px 6px 12px; font-size: var(--text-xs); font-weight: 600; cursor: pointer; max-width: 100%; }
.catalog-extra-chip-icon { font-size: 14px; line-height: 1; flex: 0 0 auto; }
.catalog-extra-chip-title { color: var(--color-text-muted); font-weight: 700; white-space: nowrap; }
.catalog-extra-chip-value { color: var(--color-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.catalog-extra-chip-close { color: var(--color-text-muted); font-size: 12px; line-height: 1; margin-left: 2px; }
.catalog-extra-chip:hover { border-color: var(--color-accent-soft-border); color: var(--color-accent-soft-text); background: var(--color-accent-soft); }
.catalog-extra-chip:hover .catalog-extra-chip-value { color: var(--color-accent-soft-text); }
.catalog-search-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.smart-search-conflict { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.catalog-notice { font-size: var(--text-sm); color: var(--color-text-muted); background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 12px; }

.catalog-list-thumb { display: block; overflow: hidden; background: var(--color-surface-2); position: relative; }
.catalog-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.catalog-list-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.catalog-list-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 140px; }
.catalog-list-title { margin: 0; line-height: 1.35; }
.catalog-list-title a:hover { color: var(--color-accent); }
.catalog-list-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.catalog-list-specs li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--color-surface-3); }
.catalog-list-snippet { margin: 2px 0 0; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-list-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: var(--text-xs); color: var(--color-text-muted); }
.catalog-list-price { letter-spacing: -.02em; white-space: nowrap; }
.catalog-list-stock { font-size: var(--text-sm); font-weight: 600; text-align: right; }
.catalog-list-stock.in-stock { color: var(--color-success); }
.catalog-list-stock.out-stock { color: var(--color-danger); }
.catalog-list-cart-form { margin: 0; }
.catalog-card-actions { display: flex; flex-direction: column; align-items: flex-start; }
.catalog-empty-card { padding: 48px 24px; text-align: center; border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }

body.catalog-filters-open::after { content: ''; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 110; }
@media (max-width: 767px) {
  body.catalog-filters-open::after,
  body.catalog-category-open::after {
    display: none !important;
    content: none !important;
  }
}
@media (max-width: 960px) {
  .catalog-layout-2026 { grid-template-columns: 1fr; }
  .catalog-filters-toggle { display: inline-flex; justify-content: center; }
  .catalog-filters-panel { position: fixed; inset: 0 auto 0 0; width: min(88vw, 320px); z-index: 120; transform: translateX(-105%); transition: transform .2s ease; overflow: auto; max-height: 100vh; top: 0; }
  .catalog-filters-panel.is-open { transform: translateX(0); }
  .catalog-filters-panel-head { display: flex; }
  .catalog-search-row { grid-template-columns: 1fr; }
  .catalog-search-submit { width: 100%; }
  .catalog-view-list .catalog-product-card { grid-template-columns: 120px minmax(0, 1fr); }
  .catalog-view-list .catalog-list-aside { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0; }
}
@media (max-width: 560px) {
  .catalog-matrix-links { columns: 1; }
  .catalog-matrix-links.is-compact { columns: 2; }
  .catalog-view-grid.catalog-list { grid-template-columns: 1fr; }
  .catalog-view-list .catalog-product-card { grid-template-columns: 1fr; }
  .catalog-view-list .catalog-list-thumb { width: 100%; aspect-ratio: 16/10; }
}

/* Part AI nomenclature choice — readable cards, not primary buttons */
.admin-body button.part-ai-choice,
button.part-ai-choice {
  display: block !important;
  width: 100%;
  min-height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 13px 14px !important;
  border: 1px solid #d6dbe5 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  transform: none !important;
  font-weight: 700;
  line-height: 1.35;
}
.admin-body button.part-ai-choice:hover,
.admin-body button.part-ai-choice:focus,
button.part-ai-choice:hover,
button.part-ai-choice:focus {
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
  color: #0f172a !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
}
.admin-body button.part-ai-choice strong,
button.part-ai-choice strong {
  display: block;
  font-size: 15px;
  color: #0f172a !important;
}
.admin-body button.part-ai-choice span:not(.part-ai-choice-badge),
button.part-ai-choice span:not(.part-ai-choice-badge) {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #475569 !important;
}
.admin-body button.part-ai-choice.is-new,
button.part-ai-choice.is-new {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
}
.admin-body button.part-ai-choice.is-new strong,
button.part-ai-choice.is-new strong {
  color: #166534 !important;
}
.admin-body button.part-ai-choice.is-new:hover,
.admin-body button.part-ai-choice.is-new:focus {
  border-color: #15803d !important;
  background: #dcfce7 !important;
}
.admin-body button.part-ai-manual-toggle,
button.part-ai-manual-toggle {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px dashed #64748b !important;
  box-shadow: none !important;
}
.admin-body button.part-ai-manual-toggle:hover,
button.part-ai-manual-toggle:hover {
  background: #f8fafc !important;
  border-color: #475569 !important;
  color: #0f172a !important;
  transform: none !important;
}

/* R2026.07 Donor Search — TZ layout */
.search-mode-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #f1f5f9; border-radius: 999px; width: fit-content;
}
.search-mode-tab {
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: #64748b; text-decoration: none; border: 0; background: transparent; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.search-mode-tab.active,
.search-mode-tab[aria-selected="true"] {
  background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.search-mode-switcher-inline { margin-bottom: 16px; }
.search-mode-switcher-inline .search-mode-tabs { margin-bottom: 12px; }
.donor-search-row { margin-top: 0; }
.search-example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-example-chip { border: 1px solid #dbeafe; background: #eff6ff; color: #1d4ed8; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.search-example-chip:hover { background: #dbeafe; }

.donor-filter-panel { margin: 12px 0 16px; }
.donor-filter-panel__toggle {
  display: none;
  list-style: none;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-weight: 700;
  font-size: 15px;
}
.donor-filter-panel__toggle::-webkit-details-marker { display: none; }
.donor-filter-panel__hint { font-weight: 500; }
@media (min-width: 768px) {
  .donor-filter-panel { margin: 16px 0 20px; }
  .donor-filter-panel__toggle { display: none !important; }
  .donor-filter-panel > .donor-filter-bar { display: grid !important; }
}

.donor-filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 10px;
  align-items: end;
  padding: 14px 16px; margin: 16px 0 20px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
}
.donor-filter-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.donor-filter-item-sm { max-width: none; }
.donor-filter-label { font-size: 12px; color: #64748b; font-weight: 600; }
.donor-filter-bar select:disabled,
.donor-filter-bar .catalog-field-input:disabled {
  opacity: .55; cursor: not-allowed; background: var(--cat-surface-muted, #f1f5f9);
}
.donor-filter-reset {
  align-self: end; justify-self: start;
  font-size: 14px; color: #2563eb; text-decoration: none; white-space: nowrap; padding: 11px 4px;
}
.donor-filter-reset:hover { text-decoration: underline; }
@media (max-width: 960px) {
  .donor-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .donor-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.donor-results-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.donor-results-title { margin: 0; font-size: 1.25rem; }
.donor-results-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.donor-view-toggle { display: inline-flex; border: 1px solid var(--color-border); border-radius: 8px; overflow: hidden; }
.donor-view-btn { border: 0; background: #fff; padding: 8px 12px; cursor: pointer; color: #64748b; }
.donor-view-btn.active { background: #0f172a; color: #fff; }
.donor-sort-label { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }

.donor-results-grid:not(.dc-results-grid) {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.donor-results-grid:not(.dc-results-grid).view-list { grid-template-columns: 1fr; }
.donor-results-grid.is-loading { opacity: .55; pointer-events: none; }
@media (max-width: 960px) { .donor-results-grid:not(.dc-results-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .donor-results-grid:not(.dc-results-grid) { grid-template-columns: 1fr; } }

.donor-result-card:not(.dc-donor-card) {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.donor-results-grid.view-list .donor-result-card:not(.dc-donor-card) { flex-direction: row; }
.donor-results-grid.view-list .donor-result-card:not(.dc-donor-card) .donor-result-image-wrap { width: 220px; flex-shrink: 0; }
.donor-result-image-wrap { display: block; aspect-ratio: 4/3; background: #e2e8f0; overflow: hidden; position: relative; }
.donor-result-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.donor-result-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.donor-result-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.donor-result-title a { color: inherit; text-decoration: none; }
.donor-result-title a:hover { color: #2563eb; }
.donor-result-spec { margin: 0; font-size: 14px; color: #475569; }
.donor-result-vin { margin: 0; }
.donor-result-progress-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #64748b; flex-wrap: wrap; }
.donor-result-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.donor-result-price strong { font-size: 1.1rem; }
.donor-result-cta { white-space: nowrap; }

.donor-progress-wrap { display: flex; flex-direction: column; gap: 4px; }
.donor-progress-wrap.compact { margin-top: 8px; }
.donor-progress-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.donor-progress-bar.large { height: 10px; }
.donor-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 999px; }

.donor-detail-layout { align-items: start; }

/* Donor detail page — reference layout (LADA Vesta mockup) */
.donor-page .container {
  width: min(100% - 32px, 1280px);
}
.donor-shell {
  padding: 24px 28px 28px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
  background: #fff;
}
.donor-ref-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 18px;
}
@media (max-width: 760px) {
  .donor-ref-hero { grid-template-columns: 1fr; }
}
.donor-ref-hero__thumb-wrap {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  text-decoration: none;
}
.donor-ref-hero__thumb {
  display: block;
  width: 148px;
  height: 112px;
  object-fit: cover;
}
@media (max-width: 760px) {
  .donor-ref-hero__thumb { width: 100%; height: auto; aspect-ratio: 4/3; }
}
.donor-ref-hero__body { min-width: 0; }
.donor-ref-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 900px) {
  .donor-ref-hero__top { flex-direction: column; }
}
.donor-ref-hero__identity { min-width: 0; flex: 1; }
.donor-ref-hero__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 8px;
}
.donor-ref-hero__title-row h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}
.donor-ref-hero__title-row .donor-status-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.donor-ref-hero__title-row .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.donor-ref-hero__specs,
.donor-ref-hero__meta {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}
.donor-ref-hero__meta { margin-bottom: 0; }
.donor-ref-hero__status {
  min-width: 240px;
  max-width: 280px;
  flex-shrink: 0;
  padding-top: 2px;
}
.donor-ref-hero__status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #64748b;
}
.donor-ref-hero__status-head strong { color: #16a34a; font-size: 14px; font-weight: 700; }
.donor-ref-hero__updated {
  margin-top: 8px;
  font-size: 13px;
  color: #94a3b8;
}

.donor-hero-gallery { position: relative; }
.donor-hero-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 14px;
  background: #e2e8f0;
  display: block;
}
.donor-hero-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.donor-hero-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  width: 72px;
  height: 54px;
  cursor: pointer;
  background: #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.donor-hero-gallery__thumb:hover { transform: none !important; }
.donor-hero-gallery__thumb.is-active { border-color: #2563eb; }
.donor-hero-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.donor-hero-gallery__all {
  margin-top: 12px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #2563eb !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none !important;
  transform: none !important;
}
.donor-hero-gallery__all:hover { color: #1d4ed8; }

.donor-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0;
}
.donor-spec-grid div { min-width: 0; }
.donor-spec-grid dt {
  margin: 0 0 2px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.donor-spec-grid dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.donor-hero-specs__progress {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.donor-hero-specs__progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #64748b;
}
.donor-hero-specs__progress-value { color: #16a34a; font-size: 14px; }

.donor-hero-about {
  height: 100%;
  min-height: 200px;
}
.donor-hero-about__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}
.donor-hero-about p { margin: 0; font-size: 14px; line-height: 1.6; color: #475569; }

.donor-shell .donor-tabs {
  margin: 0 -4px;
  padding: 0 4px;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}
.donor-shell__panels { padding-top: 22px; }
.donor-shell .donor-schema-hero {
  border: 0;
  box-shadow: none;
  margin: 0 -4px;
}
.donor-shell .donor-schema-hero__head { padding: 0 4px 0; }

.donor-parts-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .donor-parts-layout { grid-template-columns: 1fr; }
}
.donor-parts-sidebar {
  padding: 0;
  position: sticky;
  top: 84px;
}
.donor-parts-sidebar__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.donor-parts-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.donor-cat-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}
.donor-cat-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  transform: none !important;
}
.donor-cat-item.is-active {
  background: #eff6ff !important;
  color: #2563eb !important;
}
.donor-cat-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.donor-cat-item.is-active .donor-cat-item__icon { color: #2563eb; }
.donor-cat-item__label { min-width: 0; }
.donor-cat-item__count {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
}
.donor-cat-item.is-active .donor-cat-item__count { color: #2563eb; }
.donor-cat-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #64748b !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}
.donor-cat-reset:hover { color: #2563eb !important; background: none !important; transform: none !important; }
.donor-cat-reset svg { flex-shrink: 0; }

.donor-cat-mobile-open,
.donor-cat-sheet {
  display: none;
}

.donor-parts-main { min-width: 0; }
.donor-parts-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
@media (min-width: 1024px) {
  .donor-parts-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .donor-parts-toolbar__controls {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .donor-parts-search { max-width: 280px; }
}
.donor-parts-toolbar__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.donor-parts-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.donor-parts-search {
  flex: 1 1 240px;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.donor-parts-search svg { flex-shrink: 0; color: #94a3b8; }
.donor-parts-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #0f172a;
  outline: none;
}
.donor-parts-search input::placeholder { color: #94a3b8; }
.donor-parts-select {
  width: auto;
  min-width: 160px;
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  appearance: none;
}
.donor-parts-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}
.donor-parts-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}
.donor-parts-view-btn:hover { color: #64748b !important; background: transparent !important; transform: none !important; }
.donor-parts-view-btn.is-active {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.donor-parts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1180px) {
  .donor-parts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .donor-parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .donor-parts-grid { grid-template-columns: 1fr; }
}
.donor-parts-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.donor-parts-grid--list .donor-market-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: none;
}
.donor-parts-grid--list .donor-market-card:last-child { border-bottom: 0; }
.donor-parts-grid--list .donor-market-card__media { aspect-ratio: 1; }
.donor-parts-grid--list .donor-market-card:hover { transform: none; box-shadow: none; }

.donor-market-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.donor-market-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.donor-market-card[hidden] { display: none !important; }
.donor-market-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
  text-decoration: none;
}
.donor-market-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.donor-market-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #64748b;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
  pointer-events: none;
}
.donor-market-card__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(5, 150, 105, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.donor-market-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}
.donor-market-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.donor-market-card__title a {
  color: #0f172a;
  text-decoration: none;
}
.donor-market-card__title a:hover { color: #2563eb; }
.donor-market-card__state {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.donor-market-card__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.donor-market-card__price {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.donor-market-card__qty {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  text-align: right;
  white-space: nowrap;
}
.donor-parts-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.donor-parts-empty[hidden] { display: none !important; }
.donor-photo-strip {
  margin-bottom: 16px;
}
.donor-contact-btn { white-space: nowrap; }
.donor-share-btn { white-space: nowrap; }
.donor-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.donor-gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.donor-spec-panel { padding: 20px; }
.donor-empty { padding: 24px; text-align: center; }

.donor-spec-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.donor-spec-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.donor-spec-list span { color: #64748b; }
.donor-about-box { background: #eff6ff; border-color: #bfdbfe; }
.donor-status-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.donor-tabs {
  display: flex; gap: 0; margin-bottom: 0; flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 4px;
}
.donor-tab {
  border: 0; background: transparent !important; color: #64748b;
  padding: 14px 18px; border-radius: 0; cursor: pointer; font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  box-shadow: none !important; transform: none !important;
}
.donor-tab:hover { color: #0f172a; background: transparent !important; transform: none !important; }
.donor-tab.active {
  color: #2563eb; border-bottom-color: #2563eb; background: transparent !important;
}
.donor-tab-panel[hidden] { display: none !important; }
.donor-gallery-image { width: 100%; height: 220px; object-fit: cover; }
.donor-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.donor-source-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px; margin-top: 0;
}
.donor-source-title { margin: 0 0 12px; font-size: 1rem; color: var(--color-text); }
.donor-source-link { display: grid; grid-template-columns: 88px 1fr; gap: 12px; text-decoration: none; color: inherit; position: relative; }
.donor-source-image-wrap { position: relative; display: block; width: 88px; height: 66px; }
.donor-source-image { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; background: var(--color-surface-inset); }
.donor-source-open { display: inline-block; margin-top: 12px; color: var(--color-accent); font-weight: 600; text-decoration: none; }
.donor-source-open:hover { text-decoration: underline; }
.donor-other-list { margin: 8px 0 0; padding-left: 18px; }
.donor-other-list a { color: var(--color-accent); text-decoration: none; font-size: 14px; }
.donor-source-progress-label { color: var(--color-text-muted); font-size: 12px; }

/* Donor interactive schema — hero section */
.donor-schema-hero {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}
.donor-schema-hero__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 28px 0;
}
.donor-schema-body-badge {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: #64748b;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 6px 12px;
}
.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;
}
.donor-schema-hero__title {
  margin: 0 0 6px;
  font-size: 1.5rem;
}
.donor-schema-hero__subtitle { margin: 0; font-size: 14px; }

.donor-schema-hero__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 0;
  min-height: 760px;
  margin-top: 16px;
}
.donor-schema-hero--v3 .donor-schema-hero__layout,
.donor-schema-hero--ref .donor-schema-hero__layout {
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  min-height: 680px;
  margin-top: 0;
}
.donor-schema-hero--ref {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
}
@media (max-width: 1100px) {
  .donor-schema-hero--v3 .donor-schema-hero__layout,
  .donor-schema-hero--ref .donor-schema-hero__layout { grid-template-columns: 240px minmax(0, 1fr); }
  .donor-schema-hero--v3 .donor-schema-detail,
  .donor-schema-hero--ref .donor-schema-detail { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .donor-schema-hero__layout { grid-template-columns: 1fr; min-height: auto; }
  .donor-schema-hero--v3 .donor-schema-hero__layout { grid-template-columns: 1fr; }
  .donor-schema-info { grid-template-columns: 1fr; }
}

.donor-schema-nav {
  padding: 12px 16px 20px;
  border-right: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}
.donor-schema-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.donor-schema-nav__item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  transition: background .15s;
  outline: none;
}
.donor-schema-nav__item:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}
.donor-schema-nav__item:hover,
.donor-schema-nav__item.is-nav-hovered {
  background: #f1f5f9;
  box-shadow: none;
  transform: none;
}
.donor-schema-nav__label { font-size: 14px; font-weight: 500; color: #334155; }
.donor-schema-nav__count {
  font-size: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f1f5f9;
}
.donor-schema-nav__count-avail { font-weight: 700; color: #16a34a; }
.donor-schema-nav__count-avail--sold { color: #dc2626; }
.donor-schema-nav__count-avail--absent { color: #94a3b8; }
.donor-schema-nav__count-sep,
.donor-schema-nav__count-total { color: #94a3b8; font-weight: 500; }
.donor-schema-nav__side-note {
  margin: 10px 0 0;
  padding: 0 4px;
  line-height: 1.35;
  font-size: 11px;
}

.donor-schema-nav__all {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  background: #fff;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background .15s, border-color .15s;
}
.donor-schema-nav__all:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1d4ed8;
  text-decoration: none;
  transform: none;
}

.donor-schema-nav__icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: #f1f5f9 center/15px no-repeat;
}
.donor-schema-nav__icon--body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M4 16l2-5h12l2 5M6 16v2h12v-2'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--optics { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Ccircle cx='12' cy='12' r='4' stroke-width='1.8'/%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M2 12s3-6 10-6 10 6 10 6-3 6-10 6S2 12 2 12z'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--engine { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M8 8h8v8H8zM4 10h2M18 10h2M4 14h2M18 14h2'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--transmission { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Ccircle cx='7' cy='7' r='3' stroke-width='1.8'/%3E%3Ccircle cx='17' cy='17' r='3' stroke-width='1.8'/%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M10 7h4M7 10v4M17 10v4M10 17h4'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--interior { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M5 18V8l7-3 7 3v10'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--electrical { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M13 2L4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--suspension { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Ccircle cx='7' cy='17' r='3' stroke-width='1.8'/%3E%3Ccircle cx='17' cy='17' r='3' stroke-width='1.8'/%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M7 14V7h10v7'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--cooling { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M12 3v18M8 7l4-4 4 4M8 17l4 4 4-4'/%3E%3C/svg%3E"); }
.donor-schema-nav__icon--other { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }

.donor-schema-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: 740px;
  overflow: visible;
}

.donor-schema-canvas {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
}

.donor-schema-canvas--composite {
  position: relative;
  filter: drop-shadow(0 32px 56px rgba(15, 23, 42, .12));
}

.donor-schema-composite-stack {
  position: absolute;
  inset: 0;
}

.donor-schema-composite-stack > .donor-schema-artwork-img,
.donor-schema-composite-stack > .donor-schema-absent-overlay,
.donor-schema-composite-stack > .donor-schema-scene-dim,
.donor-schema-composite-stack > .donor-schema-tint,
.donor-schema-composite-stack > .donor-schema-hover-outline,
.donor-schema-composite-stack > .donor-schema-hit-layer,
.donor-schema-composite-stack > .donor-schema-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.donor-schema-artwork-img {
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.donor-schema-highlight,
.donor-schema-tint {
  pointer-events: none;
  z-index: 4;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .16s ease, filter .16s ease;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}

.donor-schema-absent-overlay {
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  user-select: none;
}

.donor-schema-mask-inspect-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(185, 28, 28, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}

.donor-schema-hero.donor-schema--mask-inspect .donor-schema-tint {
  opacity: 0 !important;
}

.donor-schema-hero.donor-schema--ready .donor-schema-absent-overlay.is-ready {
  opacity: 1;
}

.donor-schema-stage.is-highlighting .donor-schema-absent-overlay.is-ready {
  opacity: 0.85;
}

.donor-schema-absent-markers {
  pointer-events: none;
}

.donor-schema-absent-marker__halo {
  fill: #fff;
  fill-opacity: 0.9;
  stroke: #fecaca;
  stroke-width: 1.5;
}

.donor-schema-absent-marker__line {
  stroke: #dc2626;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.donor-schema-canvas.is-loading {
  cursor: wait;
}

.donor-schema-tint--absent-hover {
  filter: brightness(1.08) contrast(1.06) saturate(0.75) sepia(0.18);
  mix-blend-mode: normal;
}
.donor-schema-tint--available {
  filter: brightness(1.16) contrast(1.05) saturate(1.18);
  mix-blend-mode: normal;
}
.donor-schema-tint--sold {
  filter: brightness(0.92) contrast(1.04) saturate(0.82) sepia(0.22);
  mix-blend-mode: normal;
}
.donor-schema-tint--question {
  filter: brightness(1.1) contrast(1.03) saturate(1.08) sepia(0.12);
  mix-blend-mode: normal;
}
.donor-schema-stage.is-highlighting .donor-schema-tint {
  opacity: 0.88;
}
.donor-schema-stage.is-highlighting.is-selected-part .donor-schema-tint {
  opacity: 0.95;
  filter: brightness(1.22) contrast(1.08) saturate(1.28);
}

.donor-schema-car {
  z-index: 3;
  display: block;
  overflow: visible;
}
.donor-schema-car--overlay { filter: none; }
.donor-schema-car--composite { overflow: visible; }
.donor-schema-car--hits-only { background: transparent; }

/* Hit paths — invisible, mouse only */
.donor-schema-hit,
.donor-schema-part {
  cursor: pointer;
  fill: rgba(0, 0, 0, 0.001) !important;
  stroke: none !important;
  opacity: 0 !important;
  pointer-events: visiblePainted;
}

.donor-schema-part-group { pointer-events: none; }

.donor-schema-part--absent,
.donor-schema-part-group--absent .donor-schema-hit {
  pointer-events: none;
  cursor: default;
}

.donor-schema-hit-anchor {
  opacity: 0 !important;
  fill: transparent !important;
  stroke: none !important;
  pointer-events: none !important;
}

.donor-schema-info__absent h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.donor-schema-absent-list {
  margin: 8px 0 0;
  padding-left: 18px;
  max-height: 220px;
  overflow: auto;
}

.donor-schema-absent-list li {
  margin: 0 0 4px;
  font-size: 13px;
  color: #64748b;
}

/* Placeholder cards — catalog raster assets */
.product-image-wrap img[src*="/assets/placeholders/"],
.catalog-list-thumb img[src*="/assets/placeholders/"] {
  object-fit: contain;
  padding: 2%;
  background: #fff;
}

.media-missing-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  max-width: calc(100% - 16px);
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .88);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}
.media-missing-badge--compact {
  left: 4px;
  bottom: 4px;
  padding: 3px 6px;
  font-size: 9px;
  border-radius: 6px;
}
.media-missing-badge--gallery {
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  padding: 6px 12px;
}
.cart-thumb-wrap,
.compare-thumb-wrap {
  position: relative;
  display: inline-block;
}

/* Category board — spatial part layout per nav category */
.donor-schema-canvas--category-board {
  width: min(100%, 820px);
  aspect-ratio: auto !important;
  min-height: 420px;
  filter: none;
}
.donor-schema-category-board {
  position: relative;
  z-index: 2;
  padding: 4px 0 8px;
}
.donor-schema-category-board__title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
}
.donor-schema-category-board__stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, #f1f5f9 58%, #e2e8f0 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  overflow: visible;
}
.donor-schema-category-board__empty {
  margin: 24px 0;
  text-align: center;
}
.donor-schema-part-tile {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: center;
  font: inherit;
  color: inherit;
}
.donor-schema-part-tile--spatial {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 108px;
  z-index: 1;
}
.donor-schema-part-tile--spatial:hover,
.donor-schema-part-tile--spatial:focus-visible {
  z-index: 3;
}
.donor-schema-part-tile__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.donor-schema-part-tile--spatial:hover .donor-schema-part-tile__art,
.donor-schema-part-tile--spatial:focus-visible .donor-schema-part-tile__art {
  border-color: #22c55e;
  box-shadow: 0 14px 32px rgba(34, 197, 94, .18);
  transform: scale(1.04);
}
.donor-schema-part-tile--available .donor-schema-part-tile__art {
  border-color: #86efac;
}
.donor-schema-part-tile--absent {
  opacity: .78;
  cursor: default;
}
.donor-schema-part-tile--absent .donor-schema-part-tile__art {
  border-color: #fecaca;
  background: #fff7f7;
}
.donor-schema-part-tile--sold .donor-schema-part-tile__art {
  border-color: #fca5a5;
}
.donor-schema-part-tile__canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.donor-schema-part-tile__placeholder {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #e2e8f0;
}
.donor-schema-part-tile__caption {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.donor-schema-part-tile__label {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  color: #0f172a;
}
.donor-schema-part-tile__status {
  font-size: 10px;
  color: #64748b;
}
.donor-schema-part-tile--available .donor-schema-part-tile__status {
  color: #16a34a;
  font-weight: 600;
}
.donor-schema-filter-label {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
}
.donor-schema-hero.donor-schema--category-filter .donor-schema-artwork-img {
  filter: none;
  opacity: 1;
}
.donor-schema-part-group.is-filtered-out {
  opacity: 0.35;
  pointer-events: none;
}
.donor-schema-part-group.is-filter-active {
  opacity: 1;
}
.donor-schema-hero.donor-schema--category-filter .donor-schema-part-group.is-filter-active.is-nav-hovered,
.donor-schema-hero.donor-schema--category-filter .donor-schema-part-group.is-filter-active.is-hovered {
  opacity: 1;
}
.donor-schema-nav__item--catalog-only {
  opacity: 0.88;
}

/* Debug mask overlay canvas */
.donor-schema-debug-mask-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.donor-schema-debug-mask-overlay.is-ready {
  opacity: 1;
}
.donor-schema-debug-panel {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 25;
  width: min(320px, calc(100% - 16px));
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .92);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .28);
}
.donor-schema-debug-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.donor-schema-debug-panel__mode {
  font-size: 10px;
  color: #93c5fd;
  font-weight: 700;
  text-transform: uppercase;
}
.donor-schema-debug-panel__part {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.donor-schema-debug-panel__id {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  word-break: break-all;
}
.donor-schema-debug-panel__btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 6px;
  background: rgba(30, 41, 59, .8);
  color: #f8fafc;
  cursor: pointer;
}
.donor-schema-debug-panel__meta {
  display: grid;
  gap: 4px;
  margin: 0;
}
.donor-schema-debug-panel__meta div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px;
}
.donor-schema-debug-panel__meta dt {
  margin: 0;
  color: #94a3b8;
}
.donor-schema-debug-panel__meta dd {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.donor-schema-debug-panel__hint {
  margin: 8px 0 0;
}
.donor-schema-debug-panel__hit {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, .25);
}
.donor-schema-debug-panel__hit-title {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: #93c5fd;
}
.donor-schema-debug-panel__candidates-label {
  margin: 8px 0 4px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.donor-schema-debug-panel__candidates {
  margin: 0;
  max-height: 140px;
  overflow: auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .55);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Left nav — selected (click) */
.donor-schema-nav__item.is-nav-selected {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px rgba(45, 156, 108, .12);
}

/* Debug: URL ?schema_debug=1 only */
.donor-schema--debug .donor-schema-geometry,
.donor-schema--debug .donor-schema-hit,
.donor-schema--debug .donor-schema-part {
  visibility: visible !important;
  opacity: .35 !important;
  fill: rgba(239, 68, 68, .06) !important;
  stroke: rgba(220, 38, 38, .35) !important;
  stroke-width: 1 !important;
}
.donor-schema--debug .donor-schema-part--overlap,
.donor-schema--debug .donor-schema-hit--overlap {
  fill: rgba(239, 68, 68, .15) !important;
  stroke: #dc2626 !important;
}
.donor-schema--debug .donor-schema-debug-anchor {
  fill: #ef4444;
  stroke: #fff;
  stroke-width: 2px;
  pointer-events: none;
}
.donor-schema--debug .donor-schema-debug-label {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  fill: #1e40af;
  stroke: #fff;
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
}
.donor-schema-debug-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(30, 64, 175, .92);
  color: #fff;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  pointer-events: none;
}
.donor-schema-strategy-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 26;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(180, 83, 9, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  pointer-events: none;
  max-width: min(320px, calc(100% - 16px));
}

.donor-schema-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 10px));
  min-width: 160px;
  padding: 10px 14px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .14);
  pointer-events: none;
}
.donor-schema-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  transform: translateX(-50%) rotate(45deg);
}
.donor-schema-tooltip__title { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #0f172a; }
.donor-schema-tooltip__status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.donor-schema-tooltip__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.donor-schema-tooltip__status--available { color: #16a34a; }
.donor-schema-tooltip__status--available::before { background: #22c55e; }
.donor-schema-tooltip__status--sold { color: #dc2626; }
.donor-schema-tooltip__status--sold::before { background: #ef4444; }
.donor-schema-tooltip__status--absent { color: #64748b; }
.donor-schema-tooltip__status--absent::before { background: #94a3b8; }
.donor-schema-tooltip__meta { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }

.donor-schema-info {
  padding: 16px 18px 20px;
  border-left: 1px solid #eef2f7;
  background: #fafbfd;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-soft {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.donor-schema-info__hint { display: flex; gap: 12px; align-items: center; }
.donor-schema-info__hint p { margin: 0; font-size: 13px; color: #64748b; }
.donor-schema-info__mouse {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px;
  background: #eff6ff center/20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Crect x='8' y='4' width='8' height='14' rx='4' stroke-width='1.6'/%3E%3Cpath stroke-linecap='round' stroke-width='1.6' d='M12 8v3'/%3E%3C/svg%3E");
}
.donor-schema-info__legend h4,
.donor-schema-info__focus h4,
.donor-schema-info__progress-head { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #334155; }
.donor-schema-info__legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.donor-schema-info__legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--available { background: #22c55e; }
.dot--sold { background: #ef4444; }
.dot--absent {
  background: transparent;
  border: 1.5px solid #fecaca;
  position: relative;
}
.dot--absent::before,
.dot--absent::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 1.5px;
  background: #dc2626;
  border-radius: 1px;
}
.dot--absent::before { transform: translate(-50%, -50%) rotate(45deg); }
.dot--absent::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dot--question { background: #f59e0b; }
.donor-schema-info__focus-slot {
  position: relative;
  min-height: 88px;
}
.donor-schema-info__focus-empty,
.donor-schema-info__focus-body {
  position: absolute;
  inset: 0;
  transition: opacity .15s ease;
}
.donor-schema-info__focus-body {
  display: grid;
  gap: 6px;
  align-content: start;
  opacity: 0;
  pointer-events: none;
}
.donor-schema-info__focus.is-active .donor-schema-info__focus-body {
  opacity: 1;
  pointer-events: auto;
}
.donor-schema-info__focus-empty {
  margin: 0;
  opacity: 1;
}
.donor-schema-info__focus.is-active .donor-schema-info__focus-empty {
  opacity: 0;
  pointer-events: none;
}
.donor-schema-info__focus-title { font-size: 15px; }
.donor-schema-info__progress-head { display: flex; justify-content: space-between; align-items: center; }

.donor-schema-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 18px 20px 22px;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.donor-schema-stat {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf4;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.donor-schema-stat strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.donor-schema-stat__icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #f1f5f9 center/20px no-repeat;
}
.donor-schema-stat__icon--total { background-color: #eff6ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }
.donor-schema-stat__icon--available { background-color: #f0fdf4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2316a34a'%3E%3Cpath stroke-linecap='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); }
.donor-schema-stat__icon--sold { background-color: #fef2f2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626'%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M6 6l12 12M6 18L18 6'/%3E%3C/svg%3E"); }
.donor-schema-stat__icon--absent { background-color: #f8fafc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Crect x='5' y='8' width='14' height='10' rx='2' stroke-width='1.8'/%3E%3C/svg%3E"); }
.donor-schema-stat__icon--question { background-color: #fffbeb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Ccircle cx='12' cy='12' r='9' stroke-width='1.8'/%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M12 10v6M12 7h.01'/%3E%3C/svg%3E"); }
.donor-schema-stats__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  padding: 12px 20px;
  background: #fff;
  color: #2563eb;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background .15s, border-color .15s;
}
.donor-schema-stats__cta:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1d4ed8;
  text-decoration: none;
  transform: none;
}

/* Donor schema v3 / reference layout */
.donor-schema-nav__title,
.donor-schema-detail__heading {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.donor-schema-hero--ref .donor-schema-nav {
  padding: 18px 16px 20px;
  background: #f8fafc;
}
.donor-schema-nav__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.donor-schema-nav__catalog-hint {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
}
.donor-schema-nav__info {
  margin-top: 14px;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: #fff !important;
  border: 1px solid #e2e8f0;
}
.donor-schema-nav__info p { margin: 0; }

.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__label {
  color: #1d4ed8;
  font-weight: 700;
}
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__icon {
  background-color: #dbeafe;
}

.donor-schema-hero--ref .donor-schema-viewport {
  background: #fff;
  border-right: 0;
}
.donor-schema-hero--ref .donor-schema-viewport__head {
  padding: 16px 20px 12px;
}
.donor-schema-hero--ref .donor-schema-toolbar-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.donor-schema-hero--ref .donor-schema-toolbar-btn--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.donor-schema-toolbar-btn__icon {
  margin-right: 4px;
  opacity: .85;
}

.donor-schema-hero--ref .donor-schema-stage {
  min-height: 520px;
  padding: 8px 20px 56px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.donor-schema-stage__diagram {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.donor-schema-stage__hint {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.donor-schema-stage__hint-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dbeafe center/10px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-width='2' d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}

.donor-schema-catalog-panel {
  padding: 12px 8px 20px;
  min-height: 480px;
}
.donor-schema-catalog-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.donor-schema-catalog-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.donor-schema-catalog-panel__back {
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.donor-schema-catalog-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}
.donor-schema-catalog-item__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.donor-schema-catalog-item__btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}
.donor-schema-catalog-item__img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.donor-schema-catalog-item__title {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.donor-schema-detail__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.donor-schema-detail__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.donor-schema-detail__status--available { color: #15803d; }
.donor-schema-detail__status--available .donor-schema-detail__status-dot { background: #22c55e; }
.donor-schema-detail__status--sold { color: #dc2626; }
.donor-schema-detail__status--sold .donor-schema-detail__status-dot { background: #ef4444; }
.donor-schema-detail__status--absent { color: #64748b; }

.donor-schema-hero--ref .donor-schema-detail {
  background: #fff;
  padding: 18px 20px 20px;
}
.donor-schema-detail__progress {
  margin-top: auto;
}
.donor-schema-detail__actions .btn-outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.donor-schema-other {
  padding: 18px 20px 22px;
  border-top: 1px solid #eef2f7;
  background: #fafbfd;
}
.donor-schema-other__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.donor-schema-other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.donor-schema-other-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.donor-schema-other-card__media {
  display: flex;
  gap: 6px;
  min-height: 52px;
  margin-bottom: 10px;
}
.donor-schema-other-card__media img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
}
.donor-schema-other-card__placeholder {
  width: 42px;
  height: 42px;
}
.donor-schema-other-card__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.donor-schema-other-card__link {
  border: 0;
  background: none;
  padding: 0;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.donor-schema-hero--ref .donor-schema-tooltip {
  border-color: #dbeafe;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .12);
}
.donor-schema-hero--ref .donor-schema-stage.is-highlighting .donor-schema-tint {
  opacity: 0.92;
  filter: brightness(1.08) contrast(1.06) saturate(1.12);
  outline: 2px solid rgba(34, 197, 94, .55);
  outline-offset: -1px;
}

.donor-schema-nav__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.donor-schema-nav__catalog-link {
  align-self: flex-start;
  margin: 0 0 4px 34px;
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.donor-schema-nav__catalog-link:hover {
  text-decoration: underline;
}
.donor-schema-nav__item.is-nav-selected .donor-schema-nav__label {
  color: #15803d;
  font-weight: 700;
}

.donor-schema-viewport {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.donor-schema-viewport__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #eef2f7;
}
.donor-schema-viewport__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.donor-schema-viewport__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.donor-schema-toolbar-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.donor-schema-toolbar-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.donor-schema-toolbar-btn--primary {
  border-color: #86efac;
  background: #f0fdf4;
  color: #15803d;
}
.donor-schema-viewport__caption {
  margin: 0;
  padding: 8px 18px 14px;
}
.donor-schema-hero--v3 .donor-schema-stage {
  flex: 1;
  min-height: 560px;
  padding: 12px 18px 48px;
  overflow: hidden;
}
.donor-schema-stage__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform .18s ease;
}
.donor-schema-hero--v3 .donor-schema-canvas {
  width: min(100%, 460px);
}
.donor-schema-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
}
.donor-schema-zoom__btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.donor-schema-zoom__btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.donor-schema-detail {
  padding: 18px 20px 24px;
  border-left: 1px solid #eef2f7;
  background: #fafbfd;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.donor-schema-detail__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}
.donor-schema-detail__empty p { margin: 0; }
.donor-schema-detail__empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f1f5f9 center/24px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-width='1.8' d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
}
.donor-schema-detail__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donor-schema-detail__body[hidden],
.donor-schema-detail__empty[hidden] {
  display: none !important;
}

.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected {
  background: #2563eb;
  box-shadow: none;
}
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__label,
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__count,
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__count-avail,
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__count-total,
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__count-sep {
  color: #fff;
}
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__icon {
  background-color: rgba(255, 255, 255, .18);
  filter: brightness(0) invert(1);
}
.donor-schema-hero--ref .donor-schema-nav__item.is-nav-selected .donor-schema-nav__catalog-hint {
  color: rgba(255, 255, 255, .85);
}

.donor-schema-absent-markers {
  display: none;
}
.donor-schema-stage.is-highlighting .donor-schema-absent-markers.is-ready {
  display: block;
}

.donor-schema-hero--ref .donor-schema-stage.is-highlighting .donor-schema-tint {
  opacity: 0.95;
  filter: brightness(1.05) contrast(1.04) saturate(1.08);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .75);
}
.donor-schema-hero--ref .donor-schema-stage.is-highlighting .donor-schema-tint.donor-schema-tint--sold {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .55);
}
.donor-schema-hero--ref .donor-schema-stage.is-highlighting .donor-schema-tint.donor-schema-tint--absent-hover {
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .65);
}

.donor-schema-detail__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donor-schema-detail__name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.donor-schema-detail__status.success { background: #ecfdf5; color: #15803d; }
.donor-schema-detail__status.danger { background: #fef2f2; color: #dc2626; }
.donor-schema-detail__status.muted { background: #f1f5f9; color: #64748b; }
.donor-schema-detail__meta {
  margin: 0;
  display: grid;
  gap: 8px;
}
.donor-schema-detail__meta-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  font-size: 13px;
}
.donor-schema-detail__meta-row dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}
.donor-schema-detail__meta-row dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}
.donor-schema-detail__photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.donor-schema-detail__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.donor-schema-detail__photo img[hidden] {
  display: none;
}
.donor-schema-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donor-schema-detail__actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.donor-tabs-section { padding-top: 0; }
.donor-tabs-section .container { padding-top: 0; }

.badge.danger { background: #fef2f2; color: #dc2626; }

.detail-layout-with-donor { grid-template-columns: 1fr 1fr; }
@media (min-width: 1100px) {
  .detail-layout-with-donor:has(.donor-source-card) { grid-template-columns: 1.1fr .9fr 280px; }
  .detail-donor-column { position: sticky; top: 24px; align-self: start; }
}

/* Product detail — mockup layout */
.detail-layout-mockup { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
@media (min-width: 1100px) {
  .detail-layout-mockup.detail-layout-with-donor:has(.donor-source-card) {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(260px, 300px);
  }
}
.breadcrumbs-detail .breadcrumbs-sep { margin: 0 8px; color: #94a3b8; }
.detail-product-main h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}
.detail-stock-badge { margin-bottom: 18px; }
.detail-spec-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}
.detail-spec-list div {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.detail-spec-list dt {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.detail-spec-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}
.detail-price-block { margin: 0 0 18px; }
.detail-price-block .price-big {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
}
.detail-buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-buy-form { margin: 0; }
.detail-buy-btn {
  min-width: 132px;
  padding-inline: 20px;
}
button.detail-buy-btn,
a.detail-buy-btn {
  background: var(--color-accent);
  color: #fff;
  border-color: transparent;
}
button.detail-buy-btn.secondary,
a.detail-buy-btn.secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
button.detail-buy-btn:hover,
a.detail-buy-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
button.detail-buy-btn.secondary:hover,
a.detail-buy-btn.secondary:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.detail-help-submit {
  min-width: 132px;
  white-space: nowrap;
}
button.detail-help-submit {
  background: var(--color-accent);
  color: #fff;
  border-color: transparent;
}
button.detail-help-submit:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.detail-buy-oneclick {
  border-color: var(--color-accent) !important;
  color: var(--color-accent) !important;
  background: var(--color-surface) !important;
  box-shadow: none !important;
}
.detail-buy-oneclick:hover {
  background: var(--color-accent-soft) !important;
  color: var(--color-accent-hover, #1d4ed8) !important;
  transform: none;
}
.detail-wishlist-form { margin: 0; }
.product-icon-btn.detail-wishlist-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 18px;
}
.detail-extra {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.detail-trust-bar + .detail-info-panels { margin-top: 28px; }
.detail-extra-text { margin: 0; color: var(--color-text-secondary); }
.detail-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.detail-info-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.detail-info-panel {
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid transparent;
  min-height: 100%;
}
.detail-info-panel--ship {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.detail-info-panel--warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.detail-info-panel--ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.detail-info-panel--desc,
.detail-description-panel {
  margin-top: 16px;
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}
.detail-info-panels + .detail-description-panel { margin-top: 16px; }
.detail-trust-bar + .detail-description-panel { margin-top: 24px; }
.detail-info-panel--desc .detail-info-panel__head strong,
.detail-description-panel .detail-info-panel__head strong {
  color: var(--color-text);
}
.detail-info-panel--desc .detail-info-panel__body p,
.detail-description-panel .detail-info-panel__body p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.detail-info-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.detail-info-panel__head strong { font-size: 15px; }
.detail-info-panel__body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}
.detail-info-panel__body p:last-child { margin-bottom: 0; }
.detail-info-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.detail-info-panel__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.detail-info-panel__icon--ship {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-4.5 7-10a7 7 0 1 0-14 0c0 5.5 7 10 7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 21s7-4.5 7-10a7 7 0 1 0-14 0c0 5.5 7 10 7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E");
}
.detail-info-panel__icon--warn {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E");
}
.detail-info-panel__icon--ok {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l2.5 2.5L16 9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12l2.5 2.5L16 9'/%3E%3C/svg%3E");
}
.detail-info-panel__icon--desc {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M10 13h4M10 17h4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 3H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M10 13h4M10 17h4'/%3E%3C/svg%3E");
  background: #2563eb;
}
.detail-description {
  margin: 20px 0 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.detail-help-card {
  scroll-margin-top: 96px;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.detail-help-card__head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.detail-help-card__head p {
  margin: 0 0 20px;
  font-size: 15px;
}
.detail-help-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: center;
}
.detail-help-form .input {
  min-width: 0;
}
.detail-help-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.detail-help-foot__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-help-foot__icon {
  width: 18px;
  height: 18px;
  background: #64748b;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.detail-help-foot__icon--time {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.detail-help-foot__icon--phone {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6.5 4h3l1.5 4-2 1.5a11 11 0 0 0 5 5L17.5 13 21 14.5v3A2.5 2.5 0 0 1 18.5 20C10.5 20 4 13.5 4 5.5A2.5 2.5 0 0 1 6.5 4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6.5 4h3l1.5 4-2 1.5a11 11 0 0 0 5 5L17.5 13 21 14.5v3A2.5 2.5 0 0 1 18.5 20C10.5 20 4 13.5 4 5.5A2.5 2.5 0 0 1 6.5 4z'/%3E%3C/svg%3E");
}
.detail-help-note { margin-top: 12px; }
.detail-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.detail-trust-item strong,
.detail-trust-item span {
  display: block;
}
.detail-trust-item strong {
  font-size: 15px;
  margin-bottom: 4px;
}
.detail-trust-item span {
  color: #64748b;
  font-size: 14px;
}
.detail-trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
  position: relative;
}
.detail-trust-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: #2563eb;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.detail-trust-icon--warranty::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 9-4.5-.5-8-4-8-9V6l8-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
.detail-trust-icon--delivery::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h4l3 3v2h-7z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h4l3 3v2h-7z'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E");
}
.detail-trust-icon--return::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7h10a4 4 0 0 1 4 4v1'/%3E%3Cpath d='M14 7l3-3 3 3M20 17H10a4 4 0 0 1-4-4v-1'/%3E%3Cpath d='M10 17l-3 3-3-3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 7h10a4 4 0 0 1 4 4v1'/%3E%3Cpath d='M14 7l3-3 3 3M20 17H10a4 4 0 0 1-4-4v-1'/%3E%3Cpath d='M10 17l-3 3-3-3'/%3E%3C/svg%3E");
}
.donor-source-progress-label {
  color: #16a34a;
  font-weight: 600;
  font-size: 13px;
}
.donor-source-vin { margin: 4px 0 0; }
.donor-other-parts { margin-top: 16px; }
.donor-other-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.donor-other-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.donor-other-list li::before {
  content: '→';
  color: #2563eb;
  font-weight: 700;
  flex-shrink: 0;
}
.donor-other-more {
  display: inline-block;
  margin-top: 10px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.donor-other-more:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .detail-trust-bar { grid-template-columns: 1fr; gap: 16px; }
  .detail-info-panels { grid-template-columns: 1fr; }
  .detail-help-form__row { grid-template-columns: 1fr; }
  .detail-spec-list div { grid-template-columns: 1fr; gap: 2px; }
}
.donor-empty-state { grid-column: 1 / -1; padding: 32px; }
.catalog-search-mode-tabs { margin-bottom: 10px; }
.badge.muted { background: #f1f5f9; color: #64748b; }

/* Instant navigation — skeleton (view transitions disabled while SPA is off) */
.app-content {
  position: relative;
}
.app-content.is-app-loading > :not(.app-skeleton-overlay) {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}
.app-content[aria-busy="true"] { pointer-events: none; }
.app-skeleton-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(244, 246, 249, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}
.app-skeleton { display: grid; gap: 12px; padding: 4px 0; }
.app-skeleton-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.app-skeleton-card, .catalog-skeleton-card {
  min-height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 240% 100%;
  animation: app-skeleton-shimmer 1.2s ease-in-out infinite;
}
.app-skeleton-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.app-skeleton-media {
  min-height: 280px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 240% 100%;
  animation: app-skeleton-shimmer 1.2s ease-in-out infinite;
}
.app-skeleton-lines { display: grid; gap: 10px; align-content: start; }
.app-skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #eef2f7 90%);
  background-size: 240% 100%;
  animation: app-skeleton-shimmer 1.2s ease-in-out infinite;
}
.app-skeleton-line.short { width: 55%; }
@keyframes app-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
img[data-src] {
  background: #eef2f7;
  filter: blur(8px);
  transition: filter 0.35s ease, opacity 0.35s ease;
}
img[data-src].is-loaded, img.is-loaded {
  filter: none;
}
@media (max-width: 767px) {
  .app-skeleton-detail { grid-template-columns: 1fr; }
}
