:root {
  color-scheme: light;
  --bg: #f3f3f0;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #ecece7;
  --text: #171917;
  --muted: #666b66;
  --subtle: #8a8f8a;
  --line: #dedfd9;
  --line-strong: #c9cbc4;
  --accent: #173f35;
  --accent-hover: #0f3028;
  --accent-soft: #dce9e4;
  --warm: #8b5b23;
  --warm-soft: #f2e5d2;
  --danger: #91433f;
  --danger-soft: #f5dedc;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 7px 24px rgba(25, 29, 26, 0.07);
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(23, 63, 53, 0.32);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(243, 243, 240, 0.94);
}

.header-inner,
.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  padding: max(18px, env(safe-area-inset-top)) 16px 15px;
}

.brand-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--warm);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 6.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.data-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
}

.summary span {
  position: relative;
}

.summary span:not(:last-child)::after {
  position: absolute;
  right: -11px;
  color: var(--line-strong);
  content: "·";
}

.summary strong {
  color: var(--text);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.page-shell {
  padding: 14px 12px calc(40px + env(safe-area-inset-bottom));
}

.view-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 420px;
  min-height: 52px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.view-tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.view-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(25, 29, 26, 0.08);
}

.catalog-tools {
  margin-top: 12px;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  padding: 0 48px 0 44px;
  appearance: none;
}

.search-wrap input::placeholder {
  color: var(--subtle);
}

.search-wrap input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 63, 53, 0.12);
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  transform: translateY(-54%);
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  pointer-events: none;
}

.clear-search {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.filter-trigger,
.sort-wrap select,
.secondary-button,
.primary-button,
.contact-button {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.filter-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.filter-trigger::before {
  content: "≡";
  transform: rotate(90deg);
  color: var(--muted);
  font-size: 1.1rem;
}

.filter-trigger.has-filters {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
}

.sort-wrap {
  min-width: 0;
}

.sort-wrap select,
.filter-body select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--text);
  padding: 0 34px 0 12px;
  cursor: pointer;
}

.quick-filters {
  display: flex;
  gap: 8px;
  margin: 11px -12px 0;
  padding: 0 12px 3px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 44px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 15px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.results-head {
  display: flex;
  min-height: 45px;
  align-items: end;
  justify-content: space-between;
  padding: 11px 2px 8px;
}

.results-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.text-button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.card-grid,
.seller-grid,
.loading-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.part-card,
.seller-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.part-card {
  cursor: pointer;
}

.part-card:focus-visible {
  outline-offset: 3px;
}

.card-media {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #deded8;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

button.card-media::after,
.detail-main-photo::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 18, 17, 0.7);
  color: white;
  content: "↗";
  font-size: 0.9rem;
}

.card-media img,
.detail-main-photo img,
.thumbnail-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.42), transparent 48%),
    var(--surface-soft);
  color: var(--subtle);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.placeholder-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.photo-count {
  position: absolute;
  right: 11px;
  bottom: 11px;
  border-radius: 999px;
  background: rgba(16, 18, 17, 0.76);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
}

.card-media .photo-count {
  right: auto;
  left: 11px;
}

.priority-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(247, 247, 244, 0.91);
  backdrop-filter: blur(5px);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.priority-high {
  background: rgba(243, 226, 203, 0.95);
  color: #754614;
}

.priority-medium {
  color: #425d51;
}

.priority-low {
  color: #707470;
}

.priority-badge.inline {
  position: static;
  display: inline-flex;
  align-items: center;
  border-color: var(--line);
  backdrop-filter: none;
}

.card-body {
  padding: 14px;
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.model-badge,
.category-label,
.platform-badge,
.freshness {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.model-badge {
  background: var(--text);
  color: var(--surface);
  padding: 3px 8px;
  letter-spacing: 0.02em;
}

.category-label {
  color: var(--muted);
}

.card-body h2 {
  display: -webkit-box;
  margin: 9px 0 9px;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.27rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.price {
  color: var(--text);
  font-size: 1.48rem;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-missing {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0;
}

.price-note {
  color: var(--muted);
  font-size: 0.72rem;
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.card-facts span {
  position: relative;
}

.card-facts span:not(:last-child)::after {
  position: absolute;
  right: -9px;
  color: var(--line-strong);
  content: "•";
}

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

.freshness {
  background: var(--surface-soft);
  color: var(--muted);
  padding: 3px 8px;
}

.freshness.fresh,
.freshness.today {
  background: var(--accent-soft);
  color: var(--accent);
}

.freshness.today::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2f8069;
  content: "";
}

.platform-badge {
  max-width: 54%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-badge::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--warm);
  content: "";
}

.seller-line {
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 13px;
}

.primary-button,
.secondary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 16px;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-hover);
}

.secondary-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  border-color: var(--muted);
}

.compact {
  min-height: 44px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.loading-grid {
  margin-top: 0;
}

.skeleton-card {
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.65) 44%, transparent 68%) 0 0 / 240% 100%,
    var(--surface-soft);
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  to { background-position: -240% 0; }
}

.empty-state,
.error-state {
  margin: 22px 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 46px 22px;
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.5rem;
}

.empty-state h2,
.error-state h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.empty-state p,
.error-state p {
  max-width: 520px;
  margin: 7px auto 19px;
  color: var(--muted);
  font-size: 0.86rem;
}

dialog {
  color: var(--text);
}

dialog::backdrop {
  background: rgba(8, 10, 9, 0.58);
  backdrop-filter: blur(2px);
}

.filter-dialog {
  width: 100%;
  max-width: none;
  max-height: min(88vh, 760px);
  margin: auto 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  padding: 0 0 env(safe-area-inset-bottom);
}

.sheet-head,
.detail-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 11px 15px;
}

.sheet-head h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.filter-body {
  max-height: calc(88vh - 142px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px 15px 22px;
}

.field-label,
fieldset legend {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.field-label:first-child {
  margin-top: 0;
}

.filter-body select {
  min-height: 48px;
  border-radius: 12px;
}

fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.check-grid label {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.check-grid input {
  accent-color: var(--accent);
}

.switch-list {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.switch-list label {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.88rem;
}

.switch-list label:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.switch-list input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.sheet-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 15px;
}

.detail-dialog {
  width: 100%;
  max-width: 760px;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  padding: 0;
}

.detail-shell {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail-topbar {
  position: sticky;
  z-index: 6;
  top: 0;
  min-height: 58px;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.94);
  padding: max(7px, env(safe-area-inset-top)) 12px 7px;
  backdrop-filter: blur(10px);
}

.detail-content {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.detail-gallery {
  min-height: 260px;
  background: var(--surface-soft);
}

.detail-main-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  background: var(--surface-soft);
  padding: 0;
  cursor: zoom-in;
}

.thumbnail-row {
  display: flex;
  gap: 7px;
  padding: 8px;
  overflow-x: auto;
}

.thumbnail-row button {
  width: 66px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 0;
  cursor: pointer;
}

.thumbnail-row button:first-child {
  border-color: var(--accent);
}

.detail-intro {
  padding: 18px 16px 10px;
}

.detail-intro h2 {
  margin: 10px 0 6px;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 7vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.original-title {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.detail-price strong {
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.detail-price span {
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-fresh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.detail-section {
  margin: 0 16px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 1.18rem;
}

.detail-section h4 {
  margin: 18px 0 8px;
  font-size: 0.78rem;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(104px, 37%) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.detail-row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.detail-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 650;
}

.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spec-chip {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 800;
}

.link-stack,
.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.link-stack > *,
.seller-actions > * {
  flex: 1 1 180px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.contact-button {
  min-height: 42px;
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
}

.contact-note {
  margin-top: 10px !important;
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 10px;
  overflow-wrap: anywhere;
}

.detail-sticky-actions {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  overflow: hidden;
  border: 0;
  background: #090a09;
  color: #fff;
  padding: 0;
}

.lightbox::backdrop {
  background: #090a09;
}

.lightbox-bar {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(rgba(0,0,0,0.68), transparent);
  font-size: 0.8rem;
  font-weight: 800;
}

.icon-button.on-dark {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.lightbox-stage {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  touch-action: pan-y pinch-zoom;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 44px;
  height: 54px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.gallery-arrow.previous {
  left: 8px;
}

.gallery-arrow.next {
  right: 8px;
}

.seller-card {
  padding: 17px;
}

.seller-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-card h2 {
  margin: 6px 0 2px;
  font-family: Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.16;
}

.seller-type,
.seller-notes,
.seller-categories {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.monitor-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #754614;
  padding: 5px 8px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.seller-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.seller-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.seller-facts .seller-categories,
.seller-facts .seller-notes {
  width: 100%;
  margin-top: 3px;
  line-height: 1.5;
}

.seller-facts .seller-notes {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.seller-card > .contact-actions {
  margin-top: 14px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 360px;
  margin: auto;
  border-radius: 12px;
  background: var(--text);
  color: var(--surface);
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
}

@media (min-width: 560px) {
  .header-inner {
    padding-right: 22px;
    padding-left: 22px;
  }

  .brand-row {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .page-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .quick-filters {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .card-grid,
  .seller-grid,
  .loading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-dialog {
    height: calc(100% - 30px);
    max-height: calc(100% - 30px);
    margin: 15px auto;
    border-radius: var(--radius-lg);
  }

  .detail-sticky-actions {
    right: max(0px, calc((100vw - 760px) / 2));
    left: max(0px, calc((100vw - 760px) / 2));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

@media (min-width: 840px) {
  .site-header {
    position: sticky;
    z-index: 10;
    top: 0;
    backdrop-filter: blur(12px);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand-row {
    display: block;
  }

  .data-status {
    display: block;
    margin-top: 5px;
  }

  .summary {
    margin: 0;
  }

  .page-shell {
    padding-top: 20px;
  }

  .catalog-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 10px;
  }

  .search-wrap {
    grid-column: 1;
  }

  .tool-row {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: 140px 190px;
    margin: 0;
  }

  .quick-filters {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
  }

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

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

  .filter-dialog {
    width: min(430px, calc(100% - 36px));
    max-height: calc(100vh - 40px);
    margin: auto;
    border-radius: var(--radius-lg);
  }

  .filter-body {
    max-height: calc(100vh - 190px);
  }
}

@media (min-width: 1180px) {
  .card-grid,
  .loading-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111312;
    --surface: #1a1d1b;
    --surface-raised: #1f2220;
    --surface-soft: #252925;
    --text: #f0f1ed;
    --muted: #a8aea8;
    --subtle: #878d87;
    --line: #303530;
    --line-strong: #444a44;
    --accent: #8bc3b0;
    --accent-hover: #a2d1c1;
    --accent-soft: #203a31;
    --warm: #dfad70;
    --warm-soft: #49351f;
    --shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  }

  .site-header {
    background: rgba(17, 19, 18, 0.94);
  }

  .model-badge {
    background: #eceeea;
    color: #1b1e1c;
  }

  .priority-badge {
    border-color: rgba(255,255,255,0.13);
    background: rgba(28, 31, 29, 0.92);
  }

  .priority-high,
  .monitor-badge {
    background: #49351f;
    color: #f1c48c;
  }

  .detail-topbar,
  .detail-sticky-actions {
    background: rgba(26, 29, 27, 0.94);
  }

  .skeleton-card {
    background:
      linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.055) 44%, transparent 68%) 0 0 / 240% 100%,
      var(--surface-soft);
  }
}
