:root {
  --ink: #17221e;
  --muted: #69766f;
  --line: #dfe7e2;
  --paper: #ffffff;
  --canvas: #f3f6f2;
  --green: #184f3c;
  --green-deep: #0c392a;
  --lime: #d7f255;
  --warm: #f5efe3;
  --shadow: 0 18px 54px rgba(28, 55, 43, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
button, input, select { font: inherit; }
.page-shell { min-height: 100vh; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 18%, rgba(215,242,85,.18), transparent 27%),
    linear-gradient(128deg, var(--green-deep), #18513c 62%, #226349);
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255,255,255,.025), 0 0 0 144px rgba(255,255,255,.018);
}

.topbar, .hero-copy, main, footer {
  width: min(1420px, calc(100% - 56px));
  margin-inline: auto;
}
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 10px 4px 10px 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
}
.source-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  color: rgba(255,255,255,.86);
  background: rgba(0,0,0,.1);
  font-size: 12px;
}
.source-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.source-demo .source-dot { background: #ffc66d; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font: 700 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: .2em;
}
h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.subtitle { max-width: 760px; margin: 16px 0 24px; color: rgba(255,255,255,.72); font-size: 15px; }
.search-panel { max-width: 780px; }
.search-box {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px 9px 18px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.search-mode { display: flex; gap: 7px; align-items: center; margin: 12px 0 0; padding: 0; border: 0; }
.search-mode legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-mode label { cursor: pointer; }
.search-mode input { position: absolute; opacity: 0; pointer-events: none; }
.search-mode span { display: block; padding: 7px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; color: rgba(255,255,255,.72); background: rgba(0,0,0,.08); font-size: 11px; }
.search-mode input:checked + span { color: var(--green-deep); border-color: var(--lime); background: var(--lime); font-weight: 700; }
.search-mode input:focus-visible + span { outline: 2px solid white; outline-offset: 2px; }
.search-mode small { margin-left: 4px; color: rgba(255,255,255,.58); font-size: 11px; }
.search-box svg { width: 22px; fill: none; stroke: #678074; stroke-linecap: round; stroke-width: 1.8; }
.search-box textarea { width: 100%; height: 48px; max-height: 180px; padding: 12px 2px; border: 0; outline: 0; resize: none; overflow-y: auto; color: var(--ink); background: transparent; font: inherit; font-size: 16px; line-height: 24px; }
.search-box > button {
  padding: 13px 24px;
  border: 0;
  border-radius: 10px;
  color: var(--green-deep);
  background: var(--lime);
  font-weight: 700;
  cursor: pointer;
}
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search-input-hint { margin: 9px 0 0; color: rgba(255,255,255,.66); font-size: 12px; }
.compare-form textarea { width: 100%; min-height: 94px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; background: white; color: var(--ink); font: inherit; }
.compare-form > button { margin-top: 9px; padding: 9px 15px; border: 0; border-radius: 8px; background: var(--lime); color: var(--green-deep); font-weight: 700; cursor: pointer; }
.compare-form { max-width: 780px; }
.compare-input-wrap { position: relative; }
.recent-searches { position: absolute; top: calc(100% + 5px); left: 0; z-index: 20; display: grid; width: 100%; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); box-shadow: 0 12px 32px rgba(12,57,42,.2); }
.recent-searches[hidden] { display: none; }
.recent-searches strong { padding: 8px 10px 5px; color: var(--muted); font-size: 11px; }
.recent-search-item { width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.recent-search-item:hover, .recent-search-item:focus-visible { outline: 0; background: #eef5e9; }
.compare-missing { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.search-hints span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; color: rgba(255,255,255,.65); font-size: 11px; }
.attribute-entry, .attribute-back { display: inline-flex; margin-top: 16px; color: var(--lime); font-size: 13px; font-weight: 700; text-decoration: none; }
.attribute-back { margin-top: 0; color: white; }
.attribute-entry:hover, .attribute-back:hover { text-decoration: underline; }
.attribute-hero { overflow: visible; }
.attribute-hero::after { display: none; }
.attribute-hero .hero-copy { padding-bottom: 46px; }
.attribute-panel { max-width: 1200px; margin-top: 24px; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.1); }
.attribute-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; color: rgba(255,255,255,.85); font-size: 13px; }
.attribute-toolbar select { min-width: 145px; padding: 9px 12px; border: 1px solid #c8d8cd; border-radius: 8px; background: white; color: var(--ink); }
.attribute-toolbar span { margin-left: auto; color: rgba(255,255,255,.72); }
.attribute-row { display: grid; grid-template-columns: minmax(215px, 2fr) minmax(160px, 1.25fr) minmax(160px, 1.35fr) minmax(120px, .9fr) auto; gap: 10px; align-items: end; margin-bottom: 10px; padding: 12px; border-radius: 11px; background: rgba(255,255,255,.1); }
.attribute-row.suggestions-open { position: relative; z-index: 5; }
.attribute-row-no-value { grid-template-columns: minmax(215px, 2fr) minmax(160px, 1.25fr) auto; }
.attribute-row label { display: grid; gap: 5px; min-width: 0; color: rgba(255,255,255,.86); font-size: 11px; font-weight: 600; }
.attribute-row input, .attribute-row select { min-width: 0; width: 100%; height: 42px; padding: 9px 11px; border: 1px solid #cbdacf; border-radius: 8px; outline: 0; background: white; color: var(--ink); font-size: 13px; }
.attribute-row input:focus-visible, .attribute-row select:focus-visible { border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.attribute-field-control { position: relative; display: flex; flex-wrap: wrap; gap: 5px; }
.attribute-field-control input { flex: 1 1 0; width: auto; }
.attribute-field-suggestions { position: absolute; top: calc(100% + 5px); left: 0; z-index: 6; display: grid; grid-template-columns: 1fr; width: min(420px, calc(100vw - 48px)); max-height: min(560px, 65vh); overflow-y: auto; gap: 2px 8px; padding: 8px; border: 1px solid #cbdacf; border-radius: 8px; background: white; box-shadow: 0 10px 24px rgba(12,57,42,.18); }
.attribute-field-suggestions.quick-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(500px, calc(100vw - 48px)); }
.attribute-field-suggestions.browse-all { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(960px, calc(100vw - 48px)); }
.attribute-suggestion { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 5px; background: white; color: var(--ink); font-size: 12px; text-align: left; cursor: pointer; }
.attribute-suggestion:hover, .attribute-suggestion:focus-visible { outline: 0; background: #eaf4ea; }
.attribute-suggestion-source { display: block; margin-top: 2px; color: #667e71; font-size: 11px; }
.attribute-suggestion-group { grid-column: 1 / -1; display: block; padding: 9px 10px 4px; color: #517365; font-size: 12px; font-weight: 700; background: #f1f6f2; }
.attribute-show-all { grid-column: 1 / -1; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #d4e2d6; border-radius: 5px; background: #f1f6f2; color: #214d3b; font-size: 12px; text-align: center; cursor: pointer; }
.attribute-show-all:hover, .attribute-show-all:focus-visible { background: #e1eddf; outline: 2px solid #95b6a1; }
.attribute-value-choices { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; max-height: 180px; overflow: auto; }
.attribute-value-choices[hidden] { display: none; }
.attribute-value-choices > small { flex-basis: 100%; color: #e0eee5; font-size: 12px; }
.attribute-value-choice { display: grid; gap: 2px; min-width: 100px; border: 1px solid #91b4a1; border-radius: 7px; padding: 7px 10px; background: #f4f8f3; color: #143e30; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.attribute-choice-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.attribute-choice-count { color: #5d7869; font-size: 10px; line-height: 1.2; }
.attribute-value-choice:hover, .attribute-value-choice:focus-visible { background: #d5ef63; }
#attribute-preview { color: #eff7dc; font-size: 13px; flex-basis: 100%; }
.attribute-add { order: 1; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--lime); border-radius: 8px; background: var(--lime); color: var(--green-deep); font-size: 23px; line-height: 1; cursor: pointer; }
.attribute-add:disabled { opacity: .45; cursor: not-allowed; }
.attribute-remove { height: 42px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: white; font-size: 12px; cursor: pointer; }
.attribute-hint { grid-column: 1 / -1; min-height: 15px; color: rgba(255,255,255,.74); font-size: 11px; }
.attribute-browse-fields { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.attribute-browse-fields:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.attribute-row [hidden] { display: none !important; }
.attribute-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; }
.attribute-actions button { padding: 11px 22px; border: 0; border-radius: 9px; background: var(--lime); color: var(--green-deep); font-weight: 700; cursor: pointer; }
.attribute-actions a { color: white; font-size: 12px; }
.attribute-caution { max-width: 1000px; margin: 12px 0 0; color: rgba(255,255,255,.68); font-size: 12px; }
.attribute-result-card .summary-content { padding-block: 3px; }
.attribute-matches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.attribute-matches span { display: inline-block; max-width: 100%; padding: 5px 8px; border-radius: 6px; background: #edf5ed; color: #315644; font-size: 11px; overflow-wrap: anywhere; }
.attribute-matches b { font-weight: 700; }
.attribute-copy-panel { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.attribute-copy-panel p { margin: 0 0 10px; font-size: 13px; }
.attribute-copy-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.attribute-copy-buttons button:disabled { opacity: .55; cursor: wait; }
.attribute-copy-panel small { color: var(--muted); font-size: 12px; }
.attribute-copy-panel .attribute-copy-status { margin: 10px 0 0; color: var(--green); }
.attribute-copy-manual { width: 100%; min-height: 140px; margin-top: 10px; }
.attribute-view-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.attribute-view-switch a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; }
.attribute-view-switch a[aria-current="page"] { border-color: var(--green); background: var(--green); color: white; }
.attribute-view-switch a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.attribute-table-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.attribute-table-status { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.attribute-table-tools { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.attribute-table-tools[hidden], .attribute-horizontal-scrollbar[hidden], .attribute-header-menu[hidden] { display: none; }
.attribute-table-tools button, .attribute-column-picker summary, .attribute-header-menu button { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: white; color: var(--green); font: inherit; font-size: 12px; cursor: pointer; }
.attribute-column-picker { position: relative; z-index: 6; }
.attribute-column-picker summary { list-style: none; }
.attribute-column-picker summary::-webkit-details-marker { display: none; }
.attribute-column-popover { position: absolute; top: calc(100% + 6px); left: 0; width: 210px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.attribute-column-options { display: grid; gap: 5px; max-height: 270px; overflow: auto; }
.attribute-column-options label { display: flex; gap: 7px; align-items: center; font-size: 12px; overflow-wrap: anywhere; }
.attribute-show-all-columns { margin-top: 8px; }
.attribute-table-scroll { max-width: 100%; max-height: 70vh; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
.attribute-table-scroll[hidden], .attribute-cell-detail[hidden] { display: none; }
.attribute-horizontal-scrollbar { position: fixed; bottom: 0; z-index: 12; height: 18px; overflow-x: auto; overflow-y: hidden; background: #dfe8e0; border: 1px solid #aebfb2; box-sizing: border-box; }
.attribute-horizontal-scrollbar > div { height: 1px; }
.attribute-header-menu { position: fixed; z-index: 20; width: 290px; max-height: min(520px, 80vh); display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 12px 30px rgba(0,0,0,.18); color: var(--ink); font-size: 12px; }
.attribute-header-menu-title { font-size: 13px; overflow-wrap: anywhere; }
.attribute-header-menu label { display: grid; gap: 4px; }
.attribute-filter-search { width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 5px; }
.attribute-filter-actions, .attribute-filter-footer { display: flex; gap: 6px; }
.attribute-filter-values { min-height: 70px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; padding: 5px; }
.attribute-filter-values label { display: flex; align-items: flex-start; gap: 6px; padding: 4px; overflow-wrap: anywhere; }
.attribute-filter-values input { flex: 0 0 auto; }
.attribute-filter-value-name { flex: 1 1 auto; min-width: 0; }
.attribute-filter-value-count { flex: 0 0 auto; margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.attribute-filter-hint { color: var(--muted); }
.attribute-filter-footer .attribute-filter-apply { background: var(--green); color: white; }
.attribute-table-scroll:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.attribute-data-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; min-width: 0; font-size: 12px; }
.attribute-data-table th, .attribute-data-table td { box-sizing: border-box; padding: 7px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow: hidden; }
.attribute-data-table thead th { position: sticky; top: 0; z-index: 2; height: 42px; background: #eaf1eb; color: var(--green-deep); white-space: nowrap; }
.attribute-data-table thead th { padding-left: 5px; padding-right: 5px; }
.attribute-header-cell { display: flex; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; }
.attribute-header-cell span { overflow: hidden; text-overflow: ellipsis; }
.attribute-header-cell button { display: grid; place-items: center; flex: 0 0 12px; width: 12px; height: 14px; border: 1px solid #b9d0bf; border-radius: 3px; padding: 0; background: #f7faf7; color: var(--green); cursor: pointer; }
.attribute-header-cell button::after { content: ''; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; transform: translateY(1px); }
.attribute-header-cell button.is-filtered { border-color: var(--green); background: var(--lime); }
.attribute-data-table .attribute-table-record { height: 52px; }
.attribute-data-table .attribute-table-record td[data-column] { cursor: pointer; }
.attribute-cell-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.attribute-table-spacer td { padding: 0; border: 0; line-height: 0; }
.attribute-data-table tbody tr:nth-child(even) { background: #f8faf8; }
.attribute-data-table tbody .attribute-table-record:hover { background: #edf5ed; }
.attribute-data-table .attribute-sku-column { position: sticky; left: 0; z-index: 1; background: white; box-shadow: 2px 0 4px rgba(0,0,0,.08); overflow-wrap: anywhere; }
.attribute-data-table .attribute-table-record .attribute-sku-column a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.attribute-data-table tbody tr:nth-child(even) .attribute-sku-column { background: #f8faf8; }
.attribute-data-table tbody .attribute-table-record:hover .attribute-sku-column { background: #edf5ed; }
.attribute-data-table thead .attribute-sku-column { z-index: 3; background: #eaf1eb; }
.attribute-data-table .attribute-filter-column { background-color: rgba(213,239,99,.16); }
.attribute-data-table a { color: var(--green); font-weight: 700; }
.attribute-cell-detail { position: fixed; z-index: 30; box-sizing: border-box; width: min(440px, calc(100vw - 16px)); max-height: min(60vh, 480px); overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 12px 32px rgba(0,0,0,.2); font-size: 13px; }
.attribute-cell-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.attribute-cell-detail-head strong { overflow-wrap: anywhere; }
.attribute-cell-detail-head button { flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.attribute-cell-detail p { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.attribute-row { grid-template-columns: minmax(215px, 2fr) minmax(160px, 1.25fr) minmax(85px, .65fr) minmax(160px, 1.35fr) minmax(120px, .9fr) auto; }
.attribute-toolbar [hidden] { display: none !important; }
@media (max-width: 1100px) { .attribute-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .attribute-field-suggestions.browse-all { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(650px, calc(100vw - 48px)); } }
@media (max-width: 560px) { .attribute-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .attribute-field-suggestions.browse-all, .attribute-field-suggestions.quick-picks { grid-template-columns: 1fr; } }

main { padding: 46px 0 76px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.results-head .section-kicker { color: #768b80; }
.results-head h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.result-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.result-meta span, .result-meta a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.6); text-decoration: none; }

.record-list { display: grid; gap: 18px; }
.summary-list { display: grid; gap: 10px; }
.summary-card { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.summary-card > img, .summary-image-empty { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 8px; background: #eef3ee; object-fit: contain; }
.summary-image-empty { display: grid; place-items: center; color: #8e9c94; font-size: 11px; }
.summary-content { min-width: 0; flex: 1; }
.summary-content h3 { margin: 0 0 5px; color: var(--green); font-size: 16px; overflow-wrap: anywhere; }
.summary-content p { margin: 0 0 3px; font-size: 12px; }
.summary-content small { color: var(--muted); font-size: 11px; }
.summary-open, .pagination a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--green); font-size: 12px; text-decoration: none; white-space: nowrap; }
.summary-open:hover, .pagination a:hover { background: #f1f6f2; }
.unassigned-box-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.unassigned-box-field { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.unassigned-box-field strong { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.unassigned-box-field span { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.product-card {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.product-visual { padding: 22px; background: #eef3ee; border-right: 1px solid var(--line); }
.image-frame { aspect-ratio: 1; overflow: hidden; border: 1px solid #d9e2dc; border-radius: 13px; background: white; }
.image-frame img { width: 100%; height: 100%; object-fit: contain; }
.image-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.image-thumb { aspect-ratio: 1; overflow: hidden; padding: 2px; border: 1px solid #d6dfda; border-radius: 7px; background: white; cursor: pointer; }
.image-thumb.is-active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.image-thumb img { width: 100%; height: 100%; object-fit: contain; }
.image-empty { display: grid; width: 100%; height: 100%; place-items: center; color: #8e9c94; background: linear-gradient(145deg, #fff, #f2f5f2); font-size: 12px; }
.row-number { display: block; margin-top: 12px; color: #85938b; text-align: center; font-size: 11px; }

.product-content { min-width: 0; padding: 24px 28px 28px; }
.product-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.product-titlebar p { margin: 0 0 4px; color: #829088; font: 700 9px/1.4 "DM Sans", sans-serif; letter-spacing: .17em; }
.product-titlebar h3 { margin: 0; color: var(--green); font: 700 23px/1.25 "DM Sans", "Noto Sans SC", sans-serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; padding: 8px 12px; color: var(--green); border: 1px solid #cfdcd5; border-radius: 8px; background: white; cursor: pointer; font-size: 12px; }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 18px 26px; padding-top: 22px; }
.identifier-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  padding: 18px 0;
}
.identifier-strip div { padding: 11px 13px; border: 1px solid #e2e9e5; border-radius: 10px; background: #f7faf7; }
.identifier-strip span { display: block; margin-bottom: 4px; color: #819087; font-size: 10px; }
.identifier-strip strong { color: #244d3d; font: 600 12px/1.5 "DM Sans", "Noto Sans SC", sans-serif; overflow-wrap: anywhere; }
.missing-value, .field-row.is-missing dd { color: #a1aaa5; font-weight: 400; }
.fixed-section { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fixed-section h4 { margin: 0 0 12px; color: #60776c; font-size: 11px; letter-spacing: .12em; }
.fixed-field-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); column-gap: 28px; margin: 0; }
.detail-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.detail-panel-header { padding: 17px 20px 14px; border-bottom: 1px solid #e2e9e5; background: #f8faf8; }
.detail-panel-header h4 { margin: 0; color: #4f6f60; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.detail-group-list { padding: 0 20px; }
.detail-group { padding: 18px 0; }
.detail-group-primary { padding-top: 20px; }
.detail-group + .detail-group { border-top: 1px solid #e2e9e5; }
.detail-group h5 { margin: 0 0 12px; color: #60776c; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.detail-group .field-row[data-label="产品描述"] { grid-column: 1 / -1; margin-bottom: 5px; padding: 0 0 16px; }
.detail-group .field-row[data-label="产品描述"] dd { line-height: 1.75; }
.detail-group .field-row { align-items: center; min-height: 58px; }
.detail-group .field-row dt,
.detail-group .field-row dd { align-self: center; }
.child-section { margin-top: 14px; }
.child-table-wrap { width: 100%; overflow-x: visible; }
.child-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.child-table .child-sku-column { width: 10%; }
.child-table .component-type-column { width: 8%; }
.child-table .box-content-column { width: 10%; }
.child-table .package-dimensions-column { width: 16%; }
.child-table .metric-column { width: 8%; }
.child-table .material-column { width: 20%; }
.child-table .product-description-column { width: 22%; }
.child-table .package-extra-column { width: 18%; }
.child-table th, .child-table td { padding: 8px 6px; border-bottom: 1px solid #e2e9e5; text-align: left; vertical-align: top; }
.child-table th { color: #718078; background: #f1f5f2; font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center; vertical-align: middle; overflow-wrap: anywhere; white-space: normal; }
.child-table td { color: #26342d; line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.child-table td.package-compact-cell { text-align: center; vertical-align: middle; }
.child-table .cell-value { white-space: pre-line; }
.child-table .measurement-lines { display: flex; flex-direction: column; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.child-table .measurement-lines span { display: block; white-space: nowrap; }
.child-table .child-sku-cell { color: var(--green); white-space: normal; }
.child-table .child-sku-cell a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.child-table .component-type-cell { color: #43584d; font-weight: 600; text-align: center; vertical-align: middle; }
.child-table .package-dimensions-cell { font-variant-numeric: tabular-nums; }
.bundle-parent-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #dce7e0; border-radius: 12px; background: #f5f9f6; }
.bundle-parent-note > span { color: #6b7b72; font-size: 12px; font-weight: 600; }
.bundle-parent-note a { display: inline-flex; align-items: center; gap: 8px; color: var(--green); text-decoration: none; }
.bundle-parent-note small { color: #68776f; font-weight: 500; }
.child-table .box-content-cell { text-align: center; vertical-align: middle; }
.cell-media-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.cell-media { position: relative; display: block; width: min(100%, 150px); min-height: 96px; height: auto; overflow: visible; border: 1px solid #d8e1dc; border-radius: 8px; background: #f5f8f6; }
.cell-media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 7px; background: #fff; }
.cell-media span { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; color: #89958f; font-size: 10px; text-align: center; }
.cell-link { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cell-link::after { content: "↗"; font-size: 11px; }
.child-table .material-cell { color: #4c473d; background: #fcfaf5; line-height: 1.6; }
.child-table .product-description-cell { color: #34483e; background: #f7faf8; line-height: 1.55; }
.child-table .description-text { white-space: pre-line; }
.child-table .package-extra-cell { vertical-align: middle; text-align: center; }
.package-extra-list { display: grid; gap: 4px; justify-items: center; }
.package-extra-list div { display: grid; gap: 1px; justify-items: center; }
.package-extra-list span { color: #78877f; font-size: 10px; line-height: 1.35; }
.package-extra-list strong { color: #34483e; font-size: 12px; font-weight: 500; line-height: 1.55; white-space: pre-line; }
.child-table td.is-missing { color: #a1aaa5; font-weight: 400; }
.child-table tbody tr:last-child td { border-bottom: 0; }
.field-group h4 { margin: 0 0 10px; color: #789084; font-size: 11px; letter-spacing: .12em; }
.field-group dl { margin: 0; }
.field-group[data-group="其他信息"] { grid-column: 1 / -1; }
.field-group[data-group="其他信息"] dl { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); column-gap: 26px; }
.field-row { display: grid; grid-template-columns: minmax(82px, .7fr) minmax(110px, 1.3fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed #e7ece9; font-size: 12px; line-height: 1.55; }
.field-row dt { color: #7a8780; }
.field-row dd { margin: 0; color: #26342d; font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.field-row a { text-underline-offset: 3px; }

.empty-state { padding: 76px 24px; border: 1px dashed #ccd8d1; border-radius: 18px; background: rgba(255,255,255,.55); text-align: center; }
.start-state { padding-block: 62px; }
.empty-icon { font-size: 44px; color: #8ba096; }
.empty-state h3 { margin: 8px 0 6px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.empty-state a { font-weight: 600; }
footer { padding: 22px 0 36px; color: #829088; border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 1080px) {
  .child-table-wrap { overflow-x: auto; }
  .child-table { min-width: 960px; }
  .attribute-row { grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr) minmax(160px, 1fr); }
  .attribute-row-no-value { grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr) auto; }
  .attribute-row .attribute-remove { grid-column: 3; }
  .group-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .fixed-field-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .field-group[data-group="其他信息"] dl { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .detail-group .field-row[data-label="产品描述"] { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .summary-card { flex-wrap: wrap; }
  .summary-content { flex-basis: calc(100% - 88px); }
  .summary-open { margin-left: auto; }
}
@media (max-width: 760px) {
  .attribute-panel { padding: 12px; }
  .attribute-row { grid-template-columns: 1fr 1fr; }
  .attribute-row-no-value { grid-template-columns: 1fr 1fr; }
  .attribute-field-label { grid-column: 1 / -1; }
  .attribute-row .attribute-remove { grid-column: auto; }
  .attribute-row .attribute-value-label { grid-column: 1 / -1; }
  .attribute-toolbar span { margin-left: 0; width: 100%; }
  .topbar, .hero-copy, main, footer { width: min(100% - 28px, 1420px); }
  .hero-copy { padding: 38px 0 44px; }
  .source-pill { display: none; }
  .search-box { grid-template-columns: 22px 1fr; }
  .search-box > button { grid-column: 1 / -1; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .product-card { grid-template-columns: 1fr; }
  .product-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .image-frame { max-width: 230px; margin-inline: auto; }
  .product-content { padding: 22px 18px; }
  .group-grid { grid-template-columns: 1fr; }
  .fixed-field-grid { grid-template-columns: 1fr; }
  .child-table-wrap { overflow: visible; }
  .child-table { min-width: 0; }
  .child-table,
  .child-table tbody,
  .child-table tr,
  .child-table td { display: block; width: 100%; min-width: 0; }
  .child-table colgroup,
  .child-table thead { display: none; }
  .child-table tbody tr { margin-bottom: 14px; overflow: hidden; border: 1px solid #e2e9e5; border-radius: 10px; background: #fff; }
  .child-table tbody tr:last-child { margin-bottom: 0; }
  .child-table td { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); gap: 12px; height: auto; min-height: 0; padding: 10px 12px; border-bottom: 1px dashed #e2e9e5; }
  .child-table td.package-compact-cell { text-align: left; }
  .child-table .measurement-lines { align-items: flex-start; }
  .child-table td::before { content: attr(data-label); color: #718078; font-size: 11px; font-weight: 600; white-space: normal; }
  .child-table .material-cell,
  .child-table .product-description-cell,
  .child-table .package-extra-cell { height: auto; min-height: 0; }
  .child-table .package-extra-cell { text-align: left; }
  .package-extra-list,
  .package-extra-list div { justify-items: start; }
  .identifier-strip { grid-template-columns: 1fr; }
  .field-group[data-group="其他信息"] dl { grid-template-columns: 1fr; }
  .detail-group-list { padding: 0 16px; }
  .detail-group .field-row[data-label="产品描述"] { grid-column: auto; }
}
.sofa-variant-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.sofa-variant-links a { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.sofa-variants { margin-top: 16px; }
.sofa-variants summary { cursor: pointer; font-size: 12px; line-height: 1.55; }
.sofa-packing-fields { margin: 0; }
.sofa-packing-fields > div { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sofa-packing-fields dt { color: #718078; margin-bottom: 8px; }
.sofa-packing-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .product-card { animation: rise .36s ease both; }
  .product-card:nth-child(2) { animation-delay: .06s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
}
