:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f8;
  color: #172026;
  --blue: #4285f4;
  --blue-dark: #1a73e8;
  --blue-text: #ffffff;
  --green: #34a853;
  --green-dark: #188038;
  --green-text: #ffffff;
  --ink: #172026;
  --muted: #66727c;
  --line: #d9e0e4;
  --panel: #ffffff;
  --soft: #edf7ec;
  --warn: #fff5db;
  --bad: #ffe8e6;
  --button-soft: #f4f7f8;
  --button-soft-hover: #e8eef2;
  --tooltip-bg: #172026;
  --tip-border: #c8e9c4;
  --tip-focus: #3f6f10;
  --progress-track: #e0e7eb;
  --progress-logo: linear-gradient(90deg, #ea4335 0%, #fbbc05 28%, #34a853 58%, #4285f4 100%);
  --sample-action-bg: #f4f7f8;
  --google-title: #1a0dab;
  --google-green: #188038;
  --danger-text: #84241d;
  --warn-text: #8a6d1d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.35;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  backdrop-filter: blur(10px);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-link {
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
h1 { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: 0; }
.brand-title { display: block; font-size: 17px; line-height: 1.2; font-weight: 800; }
.brand p, .privacy, .status, .muted { color: var(--muted); }
.brand p { margin: 2px 0 0; }
main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  flex: 1 0 auto;
}
body.split-view main,
body.split-view .topbar-inner {
  max-width: min(1680px, calc(100vw - 36px));
}
.app-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.app-intro a { color: var(--blue-dark); font-weight: 700; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.source-panel { display: grid; gap: 12px; }
.channel-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 10px;
  justify-content: start;
}
.channel-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 86px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  white-space: normal;
  box-shadow: none;
}
.channel-card:hover {
  background: var(--button-soft);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}
.channel-card.active {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--panel) 88%, var(--blue));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 65%, transparent);
}
.channel-card strong,
.channel-card small,
.channel-card a {
  display: block;
}
.channel-card strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}
.channel-card small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 400;
}
.channel-card a {
  width: fit-content;
  margin-top: 7px;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.channel-card a:hover {
  text-decoration: underline;
}
.channel-logo {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--button-soft);
  border: 1px solid var(--line);
}
.google-channel-logo svg {
  width: 28px;
  height: 28px;
  display: block;
}
.microsoft-channel-logo {
  place-items: center;
  grid-template-columns: repeat(2, 12px);
  grid-template-rows: repeat(2, 12px);
  gap: 3px;
  align-content: center;
  justify-content: center;
}
.microsoft-channel-logo span {
  width: 12px;
  height: 12px;
  display: block;
}
.microsoft-channel-logo span:nth-child(1) { background: #f25022; }
.microsoft-channel-logo span:nth-child(2) { background: #7fba00; }
.microsoft-channel-logo span:nth-child(3) { background: #00a4ef; }
.microsoft-channel-logo span:nth-child(4) { background: #ffb900; }
.channel-field {
  display: grid;
  grid-template-columns: 180px minmax(220px, 360px);
  gap: 10px;
  align-items: center;
}
.channel-field label {
  margin: 0;
}
label { display: block; font-weight: 650; margin-bottom: 4px; }
.inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.options { display: grid; grid-template-columns: minmax(220px, 1fr) 120px; gap: 10px; align-items: end; }
.options label { margin: 0 0 5px; }
.xml-tag-group,
.preview-rows-group { display: grid; gap: 5px; }
input, button, select {
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  font: inherit;
}
input, select {
  background: var(--panel);
  color: var(--ink);
}
button {
  background: var(--blue);
  color: var(--blue-text);
  border-color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
button:disabled { opacity: .6; cursor: progress; }
.privacy { margin: 0; font-size: 11px; }
.progress { height: 7px; overflow: hidden; background: var(--progress-track); border-radius: 999px; }
#progressBar {
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: var(--progress-logo);
  box-shadow: 0 0 10px color-mix(in srgb, var(--blue) 18%, transparent);
  animation: progressMove 1.1s ease-in-out infinite;
}
@keyframes progressMove {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}
.status { min-height: 34px; padding: 9px 12px; background: var(--button-soft); border-radius: 8px; }
.results { display: grid; gap: 14px; }
body.split-view .results {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: start;
}
body.split-view .verdict-panel,
body.split-view .feedback-panel,
body.split-view .fields-panel {
  grid-column: 1;
}
body.split-view .preview-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow: auto;
}
.verdict-panel { display: grid; gap: 10px; }
.analysis-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.mapping, .product-quality { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-list { display: grid; gap: 6px; }
.spec-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--button-soft);
}
.spec-row span { color: var(--muted); }
.spec-row strong { overflow-wrap: anywhere; }
.badge, .quality {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--button-soft);
  font-size: 11px;
}
.suggestion { padding: 8px 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--tip-border); }
.suggestion.warning { background: var(--warn); border-color: #f0d488; }
#standardSuggestion + #verdict .verdict { margin-top: 10px; }
.verdict { padding: 10px; border-radius: 8px; border: 1px solid var(--line); }
.verdict h2, .panel h2 { margin: 0 0 8px; font-size: 14px; letter-spacing: 0; }
.verdict p { margin: 0; }
.verdict.ready { background: var(--soft); border-color: #c8e9c4; }
.verdict.needs_corrections, .verdict.not_acceptable, .verdict.wrong_structure { background: var(--bad); border-color: #f1b8b2; }
.groups { display: grid; gap: 8px; margin-bottom: 10px; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
summary { cursor: pointer; font-weight: 700; }
summary span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  min-height: 15px;
  margin-left: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--button-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  vertical-align: 1px;
  cursor: help;
  outline: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.info-tip:hover,
.info-tip:focus {
  background: var(--soft);
  border-color: var(--green);
  color: var(--tip-focus);
  box-shadow: 0 0 0 2px rgba(165, 207, 75, .16);
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 10;
  width: max-content;
  max-width: 270px;
  transform: translateX(-50%) translateY(2px);
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--tooltip-bg);
  color: var(--panel);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
.info-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  z-index: 11;
  width: 8px;
  height: 8px;
  background: var(--tooltip-bg);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}
.info-tip:hover::after,
.info-tip:focus::after,
.info-tip:hover::before,
.info-tip:focus::before {
  opacity: 1;
}
.info-tip:hover::after,
.info-tip:focus::after {
  transform: translateX(-50%) translateY(0);
}
.field-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-decoration: none;
  vertical-align: 1px;
}
.field-guide-link:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: color-mix(in srgb, var(--button-soft) 80%, var(--blue));
}
li { margin: 5px 0; }
li span { display: block; color: var(--muted); margin-top: 2px; }
#copyEmail { min-height: 28px; padding: 4px 9px; font-size: 11px; width: auto; }
.mapping { margin-bottom: 12px; }
.map-select, .standard-map-select {
  max-width: 170px;
  min-height: 26px;
  padding: 3px 5px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 11px;
  background: var(--panel);
  color: var(--ink);
}
.standard-map-select { max-width: 240px; width: 100%; }
.field-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.source-field-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.source-field-cell strong { overflow-wrap: anywhere; }
.id-check-toggle {
  min-height: 20px;
  height: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  border-color: #d4e4c1;
  background: var(--button-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.id-check-toggle:hover,
.id-check-toggle.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-text);
}
.id-check-toggle.active.good {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-text);
}
.id-check-toggle.active.warn {
  background: var(--warn);
  border-color: #e0b94f;
  color: var(--warn-text);
}
.id-check-toggle.active.bad {
  background: var(--bad);
  border-color: #f1a49c;
  color: var(--danger-text);
}
.inline-busy-row td {
  padding: 8px 10px;
  background: var(--button-soft);
}
.inline-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.inline-busy span {
  width: 42px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--progress-track);
  position: relative;
}
.inline-busy span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: var(--progress-logo);
  animation: inlineProgress 1s ease-in-out infinite;
}
@keyframes inlineProgress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(230%); }
}
.sample-box { position: relative; display: block; min-height: 18px; padding-right: 30px; }
.sample-value {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sample-fallback {
  display: block;
  margin-top: 2px;
  color: var(--ink);
}
.value-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity .12s ease;
}
.sample-box:hover .value-actions { opacity: 1; }
.value-actions button, .value-tool {
  min-height: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 1;
  background: var(--sample-action-bg);
  color: var(--ink);
  color: var(--ink);
  border-color: var(--line);
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--button-soft); font-size: 11px; }
td.sample { max-width: 420px; overflow-wrap: anywhere; color: var(--muted); }
.mapped-row td:first-child { border-left: 4px solid var(--green); }
.unmapped-row td:first-child { border-left: 4px solid #f0d488; }
.source-only-row td:first-child { border-left: 4px solid #c8d2d8; }
.map-missing { color: #8a6d1d; font-weight: 700; }
.section-row td {
  background: var(--button-soft);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
}
.preview { display: block; }
.fields-panel-head {
  position: sticky;
  top: 72px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 10px;
  margin: -2px 0 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.fields-panel-head h2 { margin: 0; }
.preview-nav { display: flex; align-items: center; gap: 8px; margin: 0; }
.field-preview-nav { flex: 0 0 auto; }
.preview-nav button { min-height: 28px; padding: 4px 9px; }
.product { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.product.google-product {
  background: linear-gradient(180deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 92%, var(--blue)) 100%);
}
.product.google-product .product-image {
  background: var(--panel);
}
.product.google-product .product-main h3 {
  color: var(--google-title);
}
.product.google-product .product-link {
  color: var(--google-green);
}
.google-shopping-panel {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(260px, .85fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
body.split-view .google-shopping-panel {
  grid-template-columns: 1fr;
}
body.split-view .google-main-image {
  min-height: 220px;
}
body.split-view .google-about {
  border-left: 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.google-visual {
  display: grid;
  gap: 10px;
}
.google-main-image {
  min-height: 260px;
  background: var(--panel);
}
.google-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.google-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  cursor: pointer;
}
.google-thumb:hover {
  border-color: #4285f4;
}
.google-thumb.active { border-color: #4285f4; box-shadow: 0 0 0 1px #4285f4 inset; }
.google-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.google-source {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 5px;
}
.google-offer h3 {
  color: var(--google-title);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.google-merchant {
  color: var(--muted);
  margin-bottom: 8px;
}
.google-price-row { margin-bottom: 8px; }
.sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--google-blue) 28%, var(--line));
  background: color-mix(in srgb, var(--google-blue) 9%, var(--panel));
  color: var(--google-blue);
  font-size: 11px;
  font-weight: 700;
}
.price-warning {
  color: var(--danger-text);
  font-size: 11px;
  font-weight: 700;
}
.google-link {
  margin-top: 2px;
  color: var(--google-green);
}
.google-availability {
  margin-top: 10px;
  font-weight: 750;
  text-transform: capitalize;
}
.google-availability.ok { color: var(--google-green); }
.google-availability.warn { color: var(--warn-text); }
.google-availability.bad { color: var(--danger-text); }
.google-about {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.category-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.category-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--tip-border);
  background: var(--soft);
  color: var(--google-green);
  font-size: 11px;
  font-weight: 800;
}
.category-pill.missing {
  border-color: color-mix(in srgb, var(--danger-text) 45%, var(--line));
  background: var(--bad);
  color: var(--danger-text);
}
.google-about h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.microsoft-shopping-panel {
  display: grid;
  gap: 14px;
}
.microsoft-main-image {
  width: 100%;
  max-height: 430px;
  background: #fff;
}
.microsoft-offer {
  display: grid;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.microsoft-source {
  color: var(--muted);
  font-size: 11px;
}
.microsoft-offer h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.22;
  font-weight: 650;
}
.microsoft-merchant {
  color: var(--muted);
  font-size: 13px;
}
.microsoft-visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 4px;
  background: #0f6cbd;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.microsoft-visit-link:hover {
  background: #115ea3;
  text-decoration: none;
}
.microsoft-availability {
  color: var(--muted);
  font-weight: 650;
  text-transform: capitalize;
}
.microsoft-availability.warn {
  color: var(--warn-text);
}
.microsoft-about {
  display: grid;
  gap: 12px;
}
.microsoft-about h3 {
  margin: 0;
  font-size: 15px;
}
.category-pill.microsoft-category {
  color: #0f6cbd;
  border-color: color-mix(in srgb, #0f6cbd 28%, var(--line));
  background: color-mix(in srgb, #0f6cbd 8%, var(--panel));
}
.google-attributes {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 8px 10px;
  font-size: 12px;
}
.google-attributes strong { color: var(--ink); }
.google-attributes span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.google-attributes .missing {
  color: var(--danger-text);
  font-weight: 750;
}
.product h3 { margin: 0 0 8px; font-size: 13px; }
.product-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.product-image {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--button-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image-empty { color: var(--muted); font-size: 12px; }
.product-main h3 { font-size: 17px; margin: 0 0 8px; }
.product-brandline {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 10px;
}
.product-price { font-size: 20px; font-weight: 800; }
.product-price-old {
  color: var(--muted);
  font-size: 13px;
}
.product-price-old.is-discount { text-decoration: line-through; }
.product-description {
  max-width: 780px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.product-description summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 400;
}
.product-description summary::marker { color: var(--muted); }
.product-description p { margin: 8px 0 0; }
.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 0;
}
.product-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-soft);
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
}
.product-facts span.is-warning {
  border-color: #f1b8b2;
  background: var(--bad);
  color: var(--danger-text);
}
.product-facts strong {
  color: var(--ink);
  font-weight: 700;
}
.product-main a.product-link { display: inline-flex; margin-top: 10px; color: var(--green-dark); font-weight: 700; }
.product-quality { margin-top: 12px; }
.quality.ok { background: var(--soft); border-color: #c8e9c4; }
.quality.warn { background: var(--warn); border-color: #f0d488; }
.quality.bad { background: var(--bad); border-color: #f1b8b2; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 5px 8px; font-size: 12px; }
.mapped-kv {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.kv strong { overflow-wrap: anywhere; }
.kv span { color: var(--muted); overflow-wrap: anywhere; }
#valueDialog { width: min(900px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
#valueDialog::backdrop { background: rgba(23, 32, 38, .35); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
#valueDialogBody { max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
#valueDialogBody img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
}
body.split-view .site-footer {
  max-width: min(1680px, calc(100vw - 36px));
}
.site-footer a {
  color: var(--muted);
  font-weight: 400;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  padding: 6px 8px;
  border-radius: 6px;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--button-soft);
}

.guide-main {
  max-width: 1120px;
  gap: 18px;
}
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.guide-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.guide-breadcrumb a:hover { text-decoration: underline; }
.guide-hero {
  display: grid;
  gap: 10px;
  padding: 24px 0 8px;
}
.guide-kicker {
  margin: 0;
  color: var(--google-green);
  font-weight: 650;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .06em;
}
.guide-hero h1 {
  max-width: 760px;
  font-size: 32px;
  line-height: 1.12;
  font-weight: 750;
}
.guide-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.seo-main {
  max-width: 1120px;
  gap: 18px;
}
.seo-hero {
  display: grid;
  gap: 10px;
  padding: 24px 0 8px;
}
.seo-kicker {
  margin: 0;
  color: var(--google-green);
  font-weight: 650;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .06em;
}
.seo-hero h1 {
  max-width: 820px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 750;
}
.seo-hero p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--tip-border);
  border-radius: 8px;
  background: var(--soft);
}
.seo-cta h2,
.seo-panel h2,
.section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.seo-cta p,
.seo-panel p,
.article-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.seo-panel {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.seo-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}
.seo-panel li + li { margin-top: 4px; }
.article-category,
.related-section {
  display: grid;
  gap: 10px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}
.section-head a:hover { text-decoration: underline; }
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.article-card {
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.article-card:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: 0 8px 24px rgba(23, 32, 38, .08);
  transform: translateY(-1px);
}
.article-card span {
  display: block;
  color: var(--google-green);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
}
.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.topic-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--button-soft);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.topic-list a:hover {
  border-color: var(--blue-dark);
}
.faq-section {
  display: grid;
  gap: 8px;
}
.faq-section details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 700;
}
.seo-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.help-main {
  max-width: 1060px;
  gap: 18px;
}
.help-hero {
  display: grid;
  gap: 9px;
  padding: 22px 0 4px;
}
.help-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.help-hero h1 {
  max-width: 800px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 750;
}
.help-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.help-index {
  display: grid;
  gap: 22px;
}
.help-index-group {
  display: grid;
  gap: 10px;
}
.help-index-group h2 {
  margin: 0;
  font-size: 18px;
}
.help-link-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.help-link-list a {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
}
.help-link-list a:first-child { border-top: 0; }
.help-link-list a:hover {
  background: var(--button-soft);
}
.help-link-list strong {
  font-size: 15px;
  line-height: 1.3;
}
.help-link-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 220px;
  gap: 34px;
  align-items: start;
}
.help-article {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.help-article-hero {
  padding-bottom: 0;
}
.help-section {
  display: grid;
  gap: 9px;
  max-width: 740px;
}
.help-section h2 {
  margin: 0;
  padding-top: 4px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
}
.help-section p,
.help-section li {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
.help-section p,
.help-section ul {
  margin: 0;
}
.help-section ul {
  padding-left: 22px;
}
.help-section li + li {
  margin-top: 6px;
}
.help-section a {
  color: var(--blue-dark);
  font-weight: 650;
}
.help-toc {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.help-toc strong {
  color: var(--ink);
  font-size: 12px;
}
.help-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
}
.help-toc a:hover {
  color: var(--blue-dark);
}
.help-soft-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  padding: 16px;
  border: 1px solid var(--tip-border);
  border-radius: 8px;
  background: var(--soft);
}
.help-soft-cta h2 {
  margin: 0;
  font-size: 18px;
}
.help-soft-cta p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}
.guide-actions,
.guide-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 340px));
  gap: 12px;
  justify-content: start;
}
.guide-tile {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.guide-tile:hover {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: 0 8px 24px rgba(23, 32, 38, .08);
  transform: translateY(-1px);
}
.guide-tile-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.guide-tile img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.google-guide-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.google-guide-mark svg {
  width: 25px;
  height: 25px;
  display: block;
}
.microsoft-guide-mark {
  width: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 3px;
  place-items: center;
  align-content: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.microsoft-guide-mark i {
  width: 10px;
  height: 10px;
  display: block;
}
.microsoft-guide-mark i:nth-child(1) { background: #f25022; }
.microsoft-guide-mark i:nth-child(2) { background: #7fba00; }
.microsoft-guide-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-guide-mark i:nth-child(4) { background: #ffb900; }
.guide-tile-kicker {
  color: var(--google-green);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.guide-tile strong {
  font-size: 16px;
  font-weight: 650;
}
.guide-tile span:last-child {
  color: var(--muted);
  line-height: 1.45;
}
.button-link,
.guide-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--blue-text);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
.button-link.secondary,
.guide-index a {
  border-color: var(--line);
  background: var(--button-soft);
  color: var(--ink);
  font-weight: 600;
}
.button-link:hover,
.guide-index a:hover {
  border-color: var(--blue-dark);
}
.guide-overview h2,
.guide-group h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.guide-group {
  display: grid;
  gap: 10px;
}
.guide-group > p {
  margin: 0;
  color: var(--muted);
  max-width: 820px;
}
.guide-accordions {
  display: grid;
  gap: 8px;
}
.guide-field {
  background: var(--panel);
}
.guide-field summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
}
.guide-field summary span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: inherit;
  margin-left: 0;
}
.guide-field summary code,
.guide-field-body code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--button-soft);
  font-size: 11px;
}
.guide-field summary em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.guide-field-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}
.guide-field-body p,
.guide-field-body ul {
  margin: 0;
}
.guide-field-body h3 {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
}
.guide-field-body a {
  color: var(--blue-dark);
  font-weight: 650;
}
.rule-matrix-main {
  max-width: 1200px;
}
.rule-matrix-hero h1 {
  max-width: 860px;
}
.rule-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.rule-stat {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
}
.rule-stat strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}
.rule-stat span {
  color: var(--muted);
  font-size: 12px;
}
.rule-priority,
.rule-section-index {
  display: grid;
  gap: 10px;
}
.rule-priority h2,
.rule-section-index h2,
.rule-group h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.rule-priority ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}
.rule-group {
  display: grid;
  gap: 12px;
}
.rule-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.rule-group-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 820px;
}
.rule-group-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.rule-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rule-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.rule-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rule-card-head h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 650;
}
.rule-card code {
  display: inline-flex;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--button-soft);
  font-size: 11px;
}
.rule-card p,
.rule-card ul {
  margin: 0;
}
.rule-card > p {
  color: var(--muted);
  line-height: 1.45;
}
.rule-card > h3 {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 650;
}
.rule-card ul {
  padding-left: 18px;
  line-height: 1.55;
}
.rule-card li + li {
  margin-top: 3px;
}
.rule-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rule-card-meta span,
.rule-priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.rule-priority-badge {
  color: var(--ink);
  white-space: nowrap;
}
.rule-doc-link {
  color: var(--blue-dark);
  font-weight: 650;
  width: fit-content;
}

@media (max-width: 760px) {
  .topbar, main, .site-footer { padding-left: 14px; padding-right: 14px; }
  .topbar-inner { align-items: center; }
  .topbar-inner { flex-wrap: wrap; }
  .brand { align-items: flex-start; }
  .brand { align-items: center; }
  .brand p { display: none; }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .guide-breadcrumb { display: none; }
  .inline, .options, .xml-tag-group, .channel-field, .channel-picker { grid-template-columns: 1fr; }
  .analysis-grid { grid-template-columns: 1fr; }
  body.split-view .results { grid-template-columns: 1fr; }
  body.split-view .preview-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
  }
  .google-shopping-panel { grid-template-columns: 1fr; }
  .google-about { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .product-hero { grid-template-columns: 1fr; }
  .product-image { max-width: 240px; }
  .options label { margin-top: 4px; }
  .guide-hero h1 { font-size: 25px; }
  .seo-hero h1 { font-size: 26px; }
  .seo-cta,
  .seo-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .seo-grid,
  .article-cards {
    grid-template-columns: 1fr;
  }
  .help-hero h1 { font-size: 26px; }
  .help-layout {
    display: block;
  }
  .help-toc {
    position: static;
    margin-top: 18px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .help-soft-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .guide-field summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .rule-summary,
  .rule-cards {
    grid-template-columns: 1fr;
  }
  .rule-group-head,
  .rule-card-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
