/* catalog: rules only catalog's pages use, linked-set safe (no rule here can tie with a rule that loads before it); original order. */
/* When open, the menu is portaled to <body> and positioned (top/left set in
   JS) so it escapes the horizontally-scrolling .table-wrap's overflow clip —
   which otherwise cut off the menu on the last/only product row. */
.row-menu--float {
  position: fixed;
  top: auto;
  left: auto;
  z-index: 1000;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}
.row-menu-item.danger { color: var(--hm-danger); }

.row-menu-sep {
  height: 1px;
  margin: 4px 0;
  background: var(--hm-line);
}

/* Category chip — quiet, rounded, secondary. */
.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: var(--hm-radius-control);
  font-size: var(--hm-fs-label);
  font-weight: 400;
  color: var(--hm-ink);
  background: var(--hm-neutral);
  border: 1px solid var(--hm-line);
}
.job-status-ico { font-size: var(--hm-fs-label); line-height: 1; flex: 0 0 auto; }
.products-table td .job-status-ico { display: inline-flex; margin-top: 0; }

.inline-pil {
  display: grid;
  gap: 14px;
}

.inline-pil .terminal-window {
  margin-top: 0;
}

.pil-editor-section legend {
  padding: 0;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  font-weight: 600;
}

.pil-json-editor {
  display: grid;
  gap: 8px;
}

.json-editor {
  min-height: 260px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--hm-fs-label);
  white-space: pre;
  overflow: auto;
}

.batch-history-item span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.batch-history-item strong {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-history-item small,
.batch-history-meta span:not(.batch-status) {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.batch-detail-wrap {
  min-width: 0;
}

.batch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* a long file name or link shortens inside the card; it never widens the page */
  gap: 12px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-card);
  padding: 16px;
  background: var(--hm-surface-glass);
}

.batch-summary,
.batch-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.batch-summary div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}

.batch-summary strong {
  color: var(--hm-ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-summary span,
.batch-counts span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.batch-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: var(--hm-radius-pill);
  padding: 0 10px;
  font-size: var(--hm-fs-label);
  font-weight: 600;
  /* A longer language's sentence (German, French) wraps inside its pill instead of running out of the card. */
  max-width: 100%;
  min-width: 0;
  padding-block: 4px;
  line-height: 1.3;
  white-space: normal; /* the history item is a button, which never breaks its label */
  overflow-wrap: anywhere;
}

.batch-status.success {
  color: var(--hm-success);
  background: var(--hm-success-tint);
}

.batch-status.warning {
  color: var(--hm-pending);
  background: var(--hm-sand);
}

.batch-status.info {
  color: var(--hm-primary);
  background: var(--hm-mint);
}

.batch-status.danger {
  color: var(--hm-danger);
  background: var(--hm-danger-soft);
}

.batch-row-groups {
  display: grid;
  gap: 14px;
}

.batch-row-group {
  display: grid;
  gap: 8px;
}

.batch-row-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.batch-row-group-heading strong {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.batch-row-group-heading span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.batch-rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.batch-rows li:hover {
  background: var(--hm-surface-glass);
  border-color: var(--hm-line);
}

.batch-rows li.success {
  border-left: 4px solid var(--hm-success);
}

.batch-rows li.warning {
  border-left: 4px solid var(--hm-pending);
}

.batch-rows li.info {
  border-left: 4px solid var(--hm-primary);
}

.batch-rows li.danger {
  border-left: 4px solid var(--hm-danger);
}

.batch-rows span,
.batch-rows em,
.batch-rows strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.batch-rows span,
.batch-rows em {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-style: normal;
}

.batch-rows strong {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.batch-actions {
  display: flex;
  flex-wrap: wrap; /* three buttons don't fit one row on a phone */
  justify-content: flex-end;
  gap: 10px;
}
.draft-needs, .draft-change, .draft-diff, .draft-where, .draft-why, .draft-confirm, .draft-done { margin: 0 0 16px; }
.draft-needs h3, .draft-change h3, .draft-diff h3, .draft-where h3, .draft-confirm h3, .draft-done h3 { font-size: var(--hm-fs-meta); margin: 0 0 8px; }
.draft-entry { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 12px; margin: 0 0 12px; display: grid; gap: 10px; min-width: 0; }
.draft-entry legend { font-weight: 600; padding: 0 4px; }
.draft-origin { display: inline-block; font-size: var(--hm-fs-label); color: var(--hm-pending); }
.draft-field { display: grid; gap: 4px; min-width: 0; }
.draft-field label { font-weight: 400; }
.draft-field input, .draft-field textarea, .draft-field select { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-control); background: var(--hm-surface); color: var(--hm-ink); min-width: 0; }
.draft-field input:focus-visible, .draft-field textarea:focus-visible, .draft-field select:focus-visible { outline: none; box-shadow: var(--hm-shadow-focus); border-color: var(--hm-primary); }
.draft-field [aria-invalid="true"] { border-color: var(--hm-danger); }
.draft-field textarea { resize: vertical; min-height: 64px; }
.draft-optional, .draft-help { color: var(--hm-muted); font-size: var(--hm-fs-meta); font-weight: 400; }
.draft-error { color: var(--hm-danger); font-size: var(--hm-fs-label); }
.draft-diff-cols ul { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.draft-diff-label { font-size: var(--hm-fs-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--hm-muted); }
.draft-dest { margin: 0; }
.draft-confirm-list, .draft-applied { padding-left: 18px; overflow-wrap: anywhere; }
/* QN+DX §2.3 — the facts a merchant states (draft editor and Information page). */
.draft-facts { margin: 0 0 16px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 8px 12px; }
.draft-facts summary { cursor: pointer; font-weight: 600; }
.fact-list { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.fact-list li { margin: 0 0 4px; }
.fact-row { border: 1px dashed var(--hm-line); border-radius: var(--hm-radius-control); padding: 10px; display: grid; gap: 8px; min-width: 0; margin: 0; }
.fact-name { display: block; }
.fact-unknown { display: flex; gap: 6px; align-items: center; font-size: var(--hm-fs-label); }
.facts-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.draft-ai h3 { font-size: var(--hm-fs-meta); margin: 0; }
.draft-ai .draft-help, .draft-ai .draft-notice { margin: 0; }
.draft-ai > .text-button { justify-self: start; }
.draft-ai-result { display: grid; gap: 6px; padding: 8px 10px; border-radius: var(--hm-radius-control); background: var(--hm-neutral); min-width: 0; }
.draft-ai-result p { margin: 0; }
.draft-ai-result ul { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.draft-ai-result .text-button { justify-self: start; }
.draft-reread .draft-help, .draft-reread .draft-notice { margin: 0; overflow-wrap: anywhere; }
.draft-dev pre { max-height: 240px; overflow: auto; font-family: var(--hm-font-mono); font-size: var(--hm-fs-label); background: var(--hm-neutral); padding: 8px; }
.products-table td .pb-category-changed { display: block; margin: 4px 0 0; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; }

.lock-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: var(--hm-fs-label); font-weight: 600;
  color: var(--hm-pending); background: var(--hm-sand); padding: 2px 7px; border-radius: var(--hm-radius-pill);
  vertical-align: middle; margin-left: 6px; text-transform: none; letter-spacing: 0;
}
.product-cell--locked > strong { color: var(--hm-ink); }
.confirm-input:focus { outline: none; border-color: var(--hm-primary); box-shadow: 0 0 0 3px var(--hm-focus-ring); }

/* PIL editor — tabbed Fields / JSON, with repeatable use-case & FAQ rows */
.pil-editor-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--hm-line);
}
.pil-editor-tab {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: var(--hm-fs-meta);
  color: var(--hm-muted);
  padding: 9px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pil-tabpanel[hidden] { display: none; }
.draft-limits .draft-help[data-draft-external-agent] { font-size: var(--hm-fs-label); }
.ux-shell .pil-ro-note { margin: 0 0 12px; font-size: var(--hm-fs-label); }
.pil-row-src { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: -2px; font-size: var(--hm-fs-label); }
.pil-src, .pil-issue { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: var(--hm-radius-pill); border: 1px solid var(--hm-line); color: var(--hm-muted); }
.pil-issue { color: var(--hm-pending); border-style: dashed; }
.pil-src-ref { flex-basis: 100%; }
.pil-src-ref summary { cursor: pointer; color: var(--hm-primary); }
.pil-src-ref p { margin: 4px 0; color: var(--hm-ink); }

/* ── UX-E B2b-2 · Information: the template-wording banner and the terms notice's own action ── */
.pil-template-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--hm-pending-line); border-radius: var(--hm-radius-card);
  background: var(--hm-sand);
}
.pil-template-banner p { margin: 0; font-size: var(--hm-fs-meta); line-height: 1.5; }
.check-again-notice { padding: 8px 10px; border: 1px solid var(--hm-pending-line); border-radius: var(--hm-radius-control); background: var(--hm-sand); }
.check-again-group > summary { cursor: pointer; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-ink); }
.check-again-group ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-again-page, .check-again-yours { color: var(--hm-ink); }
.batch-rows { max-height: 480px; overflow-y: auto; }
.batch-rows em a { color: var(--hm-primary); text-decoration: underline; text-underline-offset: 2px; }
.batch-row-fix { display: block; margin-top: 2px; color: var(--hm-muted); font-style: normal; }
.batch-row-details { margin-top: 4px; font-style: normal; }
.batch-row-details summary { cursor: pointer; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.batch-row-details code { display: block; margin-top: 4px; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: var(--hm-fs-label); } /* a plain sentence now, not a code line */
/* The outcome column is the part a merchant acts on: it wraps and is read in full (the SKU and link columns may still
   shorten). */
.batch-rows em,
.batch-rows em .batch-row-fix { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.pil-field > span > .pil-estimated { font-style: normal; font-weight: 400; color: var(--hm-muted); } /* a fit is an estimate */
/* UX-E completion S3 · UX-18 / 19 / 20: a row says what's missing and who added it; the list says how it is sorted. */
.products-table .row-top-issue { display: block; margin-top: 2px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-pending); }
.pil-row-question > span { font-weight: 600; }
.pp-col { min-width: 0; }
.pp-col-title { margin: 0 0 8px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.pp-changes { margin: 0; padding-left: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; font-size: var(--hm-fs-meta); }
.pp-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-neutral); color: var(--hm-ink); }
.confirm-actions .pp-publish-quiet { background: transparent; border-color: var(--hm-line); color: var(--hm-ink); }
.confirm-actions .pp-publish-quiet:hover { background: var(--hm-neutral); }

/* ── QN+DX step 10 · UI-R05: the cleanup draft, its banner, and prices that don't agree ── */
.pil-cleanup-banner, .pil-price-check {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--hm-pending-line); border-radius: var(--hm-radius-card);
  background: var(--hm-sand); min-width: 0;
}
.pil-cleanup-banner p, .pil-price-check p { margin: 0; font-size: var(--hm-fs-meta); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.pil-price-check ul { flex-basis: 100%; margin: 0; padding-left: 18px; font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.cleanup-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.cleanup-item { padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); min-width: 0; }
.cleanup-head { margin: 0 0 4px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.cleanup-line { margin: 0; font-size: var(--hm-fs-meta); line-height: 1.5; overflow-wrap: anywhere; }
.cleanup-line del { color: var(--hm-muted); text-decoration-thickness: 1.5px; }
.cleanup-why { margin: 4px 0 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.draft-asked h3 { margin: 0 0 4px; font-size: var(--hm-fs-label); color: var(--hm-muted); font-weight: 600; }
.draft-asked ul { margin: 0; padding-left: 18px; }
.draft-asked li { overflow-wrap: anywhere; }
.info-cat b { font-size: var(--hm-fs-meta); font-weight: 600; }
.info-cat:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.info-side-label:first-child { margin-top: 0; }
.info-dirty { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.info-dirty.info-dirty-on { color: var(--hm-pending); }
.info-side .pil-editor-actions { display: grid; gap: var(--hm-space-2); margin: 0; padding: 0; border: 0; }
.info-side .pil-editor-actions button[type="submit"] { width: 100%; }
.info-side .pil-save-line { display: flex; align-items: center; gap: 6px; }
 .info-side .pil-save-line button[type="submit"] { width: auto; flex: 0 1 auto; }
.info-layout .pil-editor-tabs { display: none; }
/* One category at a time. */
.info-layout:not([data-info-category="identity"]) .info-main [data-info-cat="identity"],
.info-layout:not([data-info-category="specs"]) .info-main [data-info-cat="specs"],
.info-layout:not([data-info-category="answers"]) .info-main [data-info-cat="answers"],
.info-layout:not([data-info-category="terms"]) .info-main [data-info-cat="terms"] { display: none; }
/* Inside the Information card the form is not a second card, and its field rows take as many columns as fit. */
.info-layout .info-identity-head { margin: 0 0 var(--hm-space-2); }
/* A form drawn as a card clips to its rounded corners; here it is a bare column, so it must not: the clip took the corner off the first heading and would cut a focus ring on any left-edge field. */
.info-main [data-info-cat][tabindex="-1"]:focus { outline: none; } /* a section focused after a link into it: where focus is, not a ring round the whole section */
.info-layout .pil-editor-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.info-layout .pil-editor-grid input, .info-layout .pil-editor-grid select { width: 100%; min-width: 0; box-sizing: border-box; }
.info-layout .pil-editor-section > legend { font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); margin-bottom: var(--hm-space-2); }
.inline-pil.info-layout { grid-template-columns: minmax(0, 1fr); }
.info-side .inline-detail-actions .text-button:hover { text-decoration: underline; }
.ux-shell .ux-prod-id { display: flex; align-items: flex-start; gap: var(--hm-space-3); }
.ux-shell .ux-prod-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .products-table .col-info .category-chip { display: inline-flex; width: auto; margin: 0; } /* no top margin: both pills on one centre (assist 20f41019) */
.info-layout[data-info-category="sources"] .info-side [data-info-save],
.info-layout[data-info-category="sources"] .info-side [data-pil-dirty] { display: none; }
.sp-section h3 { margin: 0 0 var(--hm-space-2); }
.sp-section [data-sp-header] { margin: 0 0 var(--hm-space-3); font-size: var(--hm-fs-meta); }
.sp-add button { min-height: var(--hm-control-height); }
.sp-page-details summary { min-height: var(--hm-control-height); display: flex; align-items: center; cursor: pointer; font-size: var(--hm-fs-label); font-weight: 600; }
.sp-facts { margin: var(--hm-space-1) 0; padding-left: var(--hm-space-4); font-size: var(--hm-fs-meta); }
.sp-card h4 { margin: 0 0 var(--hm-space-1); font-size: var(--hm-fs-body); font-weight: 600; }
.sp-check b, .sp-card p b { font-weight: 600; }
/* S4-fix (organize2): the card to fill in takes the shell's attention tokens (as a pending status); a differs card stays plain. */
.sp-card[data-sp-card="pages_disagree"], .sp-card[data-sp-undecided="pages_disagree"] { border-color: var(--hm-pending-line); background: var(--hm-sand); }
.sp-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); margin: var(--hm-space-2) 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: var(--hm-space-1); margin: var(--hm-space-1) 0; }
.sp-chip { display: inline-flex; align-items: center; gap: var(--hm-space-1); padding: 2px var(--hm-space-2); border-radius: var(--hm-radius-pill); background: var(--hm-neutral); font-size: var(--hm-fs-label); }
.sp-check { margin: 0 0 var(--hm-space-3); }
/* assist-sonnect F2b ①: "Open in Consistency" is an inline link in the header sentence, with the S4-fix hit area. */
.sp-section .sp-cr-link { position: relative; display: inline; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-ink); white-space: nowrap; }
.sp-check .sp-card { margin: var(--hm-space-2) 0; }
.sp-cand { border-top: 1px solid var(--hm-line); padding: var(--hm-space-2) 0 0; margin: var(--hm-space-2) 0 0; }
.sp-cand p { margin: 0; }
.sp-cand .sp-actions { margin: var(--hm-space-1) 0 0; }
.fc-row-note, .product-cell .fc-row-note, .ux-prod-text .fc-row-note { display: block; white-space: normal; font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.ux-shell .pb-sub { display: block; color: var(--hm-muted); font-size: var(--hm-fs-meta); line-height: var(--hm-lh-title); }
.ux-shell.nav3 .products-table .pb-thumb { display: grid; place-items: center; align-self: flex-start; }
.ux-shell.nav3 .pb-legend { padding: 0 0 var(--hm-space-3); border-bottom: 0; }
.ux-shell.nav3 .products-table td.product-cell .ux-prod-id { align-items: center; }
.ux-shell.nav3 .products-table .pb-thumb { align-self: center; }
.ux-shell .ov-evidence h3 { margin: 0; font-size: var(--hm-fs-section); line-height: var(--hm-lh-title); font-weight: 600; }
.ov-ev-all:hover { color: var(--hm-primary-hover); text-decoration: underline; }
.ov-ev-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 var(--hm-space-6); margin: 0; padding: 0; list-style: none; }
.ov-ev-list li { display: flex; justify-content: space-between; gap: var(--hm-space-3); padding: 10px 0; border-top: 1px solid var(--hm-line); }
.ov-ev-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ov-ev-foot { grid-column: 1 / -1; margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ux-shell.nav3 .ux-products-card.is-stacked .products-table td.product-cell .ux-prod-text { flex: 1 1 0; min-width: 0; } /* the name and its line use the whole of line 1 (no width carried over from the table's column) */
.ux-shell.nav3 .ux-products-card.is-stacked .products-table td.product-cell .pb-sub { width: auto; min-width: 0; }
.rd-section .rd-summary { margin: var(--hm-space-3) 0 var(--hm-space-2); color: var(--hm-muted); }
.rd-section .rd-pages { list-style: none; margin: 0 0 var(--hm-space-3); padding: 0; display: grid; gap: var(--hm-space-2); }
.rd-section .rd-page { overflow-wrap: anywhere; }
.rd-card { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); color: var(--hm-ink); padding: var(--hm-space-3); margin: var(--hm-space-3) 0; display: grid; gap: var(--hm-space-2); }
.rd-card .rd-head { display: flex; gap: var(--hm-space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rd-card .rd-head h4 { margin: 0; overflow-wrap: anywhere; }
.rd-card p { margin: 0; overflow-wrap: anywhere; }
.rd-card .rd-row { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: var(--hm-space-2) var(--hm-space-3); }
.rd-card .rd-row[data-rd-place="rendered_text"] { background: var(--hm-mint); }
.rd-card .rd-row[data-rd-place="raw_text"] { background: var(--hm-sand); }
.rd-card .rd-quote { margin: var(--hm-space-1) 0 0; padding: 0 0 0 var(--hm-space-3); border-left: 3px solid var(--hm-line); overflow-wrap: anywhere; }
.rd-card .rd-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.rd-captured-host { margin: var(--hm-space-3) 0; display: grid; gap: var(--hm-space-2); }
.rd-captured h5 { margin: 0; }
.rd-captured .rd-content { max-height: 24em; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: var(--hm-space-3); background: var(--hm-surface); color: var(--hm-ink); }
.rd-section .rd-check p { margin: 0; }
.rd-section .rd-alert { margin: var(--hm-space-2) 0; padding: var(--hm-space-2) var(--hm-space-3); border-radius: var(--hm-radius-control); background: var(--hm-sand); color: var(--hm-danger); }
.rd-accuracy { margin: var(--hm-space-4) 0; display: grid; gap: var(--hm-space-2); }
.rd-accuracy h3 { margin: 0; }
.rd-accuracy p { margin: 0; overflow-wrap: anywhere; }
.rd-accuracy .rd-tag { display: inline-block; padding: 0 var(--hm-space-2); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-ink); }
.rd-accuracy .rd-alert { padding: var(--hm-space-2) var(--hm-space-3); border-radius: var(--hm-radius-control); background: var(--hm-sand); color: var(--hm-danger); }
.rd-accuracy .rd-summary { color: var(--hm-muted); }
.rd-accuracy a { color: var(--hm-primary); overflow-wrap: anywhere; }
.rd-accuracy .rd-notchecked { margin: 0; padding-left: 1.2em; }
.rd-accuracy .rd-notchecked li { overflow-wrap: anywhere; }
.info-layout .pil-editor-section .pil-add-row { margin-bottom: var(--hm-space-4); }

/* Walk fixes: a line of Information that wraps instead of being cut at the edge of a text box. */
.pil-row textarea[data-oneline], .pil-field textarea[data-oneline], .pil-faq-field textarea[data-oneline] {
  width: 100%; box-sizing: border-box; min-height: var(--hm-control-height); padding: 8px 10px; resize: none; overflow: hidden;
  color: var(--hm-ink); background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); field-sizing: content;
}
.pil-row textarea[data-oneline]:focus, .pil-field textarea[data-oneline]:focus, .pil-faq-field textarea[data-oneline]:focus { outline: none; border-color: var(--hm-primary); box-shadow: 0 0 0 3px var(--hm-focus-ring); }
.not-stated-group { margin: var(--hm-space-1) 0 var(--hm-space-3); }
.sp-consistency-inline::before { content: "Consistency: "; color: var(--hm-muted); }

/* 2.8.1 Information: every part is read text with one Edit button; Edit opens only that part (product-pages mock, page 2). */
.pil-part { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: var(--hm-space-3); margin: 0 0 var(--hm-space-3); background: var(--hm-surface); min-width: 0; }
.pil-part-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--hm-space-3); margin: 0 0 var(--hm-space-2); }
.pil-part-head h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.pil-part-count { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: var(--hm-radius-pill); background: var(--hm-primary-tint); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; text-align: center; }
.pil-part-edit { display: none; }
.pil-part[data-part-state="editing"] .pil-part-edit { display: block; }
.pil-part[data-part-state="editing"] .pil-part-read { display: none; }
.pil-part-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); margin-top: var(--hm-space-3); }
.pil-part-facts { display: grid; gap: var(--hm-space-2); margin: 0; }
.pil-part-facts > div { display: grid; grid-template-columns: minmax(7em, 14em) minmax(0, 1fr); gap: var(--hm-space-3); }
.pil-part-facts dt { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.pil-part-facts dd { margin: 0; overflow-wrap: anywhere; }
.pil-part-lines { margin: 0; padding-left: 1.2em; display: grid; gap: var(--hm-space-2); }
.pil-part-lines li { overflow-wrap: anywhere; }
.pil-part-lines li small { display: block; }
.pil-part-empty { margin: 0; }
.pil-part-saved { margin: var(--hm-space-2) 0 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-success); }
.pil-part-saved::before { content: "\2713\00a0"; }
.pil-row-lead { font-weight: 600; color: var(--hm-ink); white-space: nowrap; padding-top: 6px; }
.pil-part-lines .pil-row-lead { padding-top: 0; }
.pil-row[data-pil-row="line"][data-pil-lead] { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
/* The Buyer answers are six pages, one open at a time: Best for · Not for · Pros · Cons · Use cases · FAQ. */
.pil-type-tabs { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); margin: 0 0 var(--hm-space-3); }
.pil-type-tab { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hm-control-height); padding: 0 var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-ink); font: inherit; cursor: pointer; }
.pil-type-tab.active { border-color: var(--hm-primary); background: var(--hm-primary-tint); font-weight: 600; }
.pil-type-tab:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.info-layout:not([data-info-type="best_for"]) [data-pil-part="best_for"],
.info-layout:not([data-info-type="not_for"]) [data-pil-part="not_for"],
.info-layout:not([data-info-type="pros"]) [data-pil-part="pros"],
.info-layout:not([data-info-type="cons"]) [data-pil-part="cons"],
.info-layout:not([data-info-type="use_cases"]) [data-pil-part="use_cases"],
.info-layout:not([data-info-type="faq"]) [data-pil-part="faq"] { display: none; }
.pil-part .pil-lines-label { display: none; }
@media (max-width: 520px) { .pil-part-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .pil-part-head { flex-wrap: wrap; } }
.pil-part[data-part-state="editing"] .pil-part-edit-btn { display: none; }
.fact-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
