/* aeo: rules only aeo's pages use, linked-set safe (no rule here can tie with a rule that loads before it); original order. */
/* Processing badge: amber tone + inline spinner so "running" reads clearly. */
.state-badge--processing {
  color: var(--hm-pending) !important;
  background: var(--hm-sand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.simulator-empty strong .spinner { margin-right: 7px; color: var(--hm-pending); }

.inline-report {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: visible;
}

.simulator-panel {
  display: grid;
  gap: 16px;
}

.simulator-heading-row h3,
.simulator-history h4 {
  margin: 0 0 4px;
}

.simulator-workflow li > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: var(--hm-radius-pill);
  color: var(--hm-primary);
  background: var(--hm-mint);
  font-weight: 600;
}

.simulator-workflow li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.simulator-workflow small {
  color: var(--hm-muted);
  line-height: 1.45;
}

.simulator-metrics > div,
.simulator-providers,
.simulator-form,
.simulator-history,
.simulator-question-details,
.simulator-empty,
.simulator-error {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}

.simulator-metrics > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.simulator-metrics span,
.simulator-metrics small,
.simulator-form label > span,
.simulator-form-actions > span,
.simulator-providers span,
.simulator-history span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.simulator-metrics strong {
  color: var(--hm-primary);
  font-size: var(--hm-fs-section);
}

.simulator-metrics small {
  line-height: 1.45;
}

.simulator-interpretation {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--hm-primary);
  background: var(--hm-mint);
}

.simulator-interpretation > div {
  display: grid;
  gap: 2px;
}

.simulator-interpretation span {
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
}

.simulator-interpretation p {
  margin: 0;
  color: var(--hm-muted);
  line-height: 1.5;
}

.simulator-interpretation p strong {
  color: var(--hm-ink);
}

.simulator-interpretation.pending {
  border-left-color: var(--hm-pending);
  background: var(--hm-sand);
}

.simulator-question-details {
  overflow: hidden;
}

.simulator-question-details summary > span:first-child {
  display: inline-grid;
  gap: 2px;
}

.simulator-question-details summary small,
.simulator-question-details summary > span:last-child {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.simulator-question-details[open] summary {
  border-bottom: 1px solid var(--hm-line);
}

.simulator-question-list {
  display: grid;
  max-height: 560px;
  margin: 0;
  padding: 0 14px;
  overflow-y: auto;
  list-style: none;
}

.simulator-question-list > li:last-child {
  border-bottom: 0;
}

.simulator-question-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.simulator-question-copy > span {
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
}

.simulator-question-copy strong,
.simulator-question-copy small {
  overflow-wrap: anywhere;
}

.simulator-question-copy small {
  color: var(--hm-muted);
  line-height: 1.4;
}

.simulator-query-outcome {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  color: var(--hm-muted);
  background: var(--hm-surface);
  font-size: var(--hm-fs-label);
}

.simulator-query-outcome strong {
  color: var(--hm-ink);
}

.simulator-provider-details {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}

.simulator-provider-details summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
}

.simulator-provider-details[open] summary {
  border-bottom: 1px solid var(--hm-line);
}

.simulator-providers,
.simulator-history {
  display: grid;
  gap: 0;
  padding: 0 14px;
}

.simulator-providers > div:last-child,
.simulator-history > div:last-child {
  border-bottom: 0;
}

.simulator-providers strong,
.simulator-providers span:nth-child(2) {
  overflow-wrap: anywhere;
}

.simulator-form {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.simulator-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.simulator-form-heading > div {
  display: grid;
  gap: 4px;
}

.simulator-form-heading strong {
  font-size: var(--hm-fs-body);
}

.simulator-form-heading span:not(.simulator-step),
.simulator-suggestions > span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 400;
}

.simulator-suggestions {
  display: grid;
  gap: 8px;
}

.simulator-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simulator-query-button:hover,
.simulator-query-button:focus-visible {
  border-color: var(--hm-primary);
  color: var(--hm-primary);
  background: var(--hm-mint);
}

.simulator-query-button span {
  color: var(--hm-primary);
  font-size: var(--hm-fs-body);
}

.simulator-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.simulator-form textarea {
  width: 100%;
  resize: vertical;
}

.simulator-empty,
.simulator-error {
  padding: 14px 16px;
}

.simulator-empty {
  display: grid;
  place-items: initial;
  gap: 4px;
  min-height: 0;
  font-family: inherit;
}

.simulator-empty strong {
  color: var(--hm-ink);
}

.simulator-error {
  color: var(--hm-danger);
  border-color: var(--hm-danger-line);
  background: var(--hm-danger-soft);
}

.simulator-history code {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.timeline-heading-row h3 {
  margin-bottom: 4px;
}

.timeline-legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--hm-primary);
}

.timeline-legend .aeo::before { background: var(--hm-primary-muted); } /* the swatches are the lines' own colours: the AEO line is the muted cyan, readiness the full one */
.timeline-legend .readiness::before { background: var(--hm-primary); }
.timeline-legend .focus::before { height: 10px; width: 10px; border-radius: var(--hm-radius-pill); background: var(--hm-pending); }
.timeline-legend .version::before { height: 12px; width: 2px; background: var(--hm-ink); } /* UX-43 */

.timeline-chart-wrap {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}

.timeline-chart text {
  fill: var(--hm-muted);
  font: var(--hm-fs-label) var(--hm-font-sans); /* UX-E B2a */
}

.timeline-grid-line { stroke: var(--hm-on-dark); stroke-width: 1; }
.timeline-series { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.timeline-series-aeo { stroke: var(--hm-primary-muted); }
.timeline-series-readiness { stroke: var(--hm-primary); }
.timeline-dot { stroke: var(--hm-on-dark); stroke-width: 2; }
.timeline-dot-aeo { fill: var(--hm-primary); }
/* UX-C S4-1 · M18: causation disclaimer (above the fold), event tags, publish rows, deep-link focus. */
.timeline-causation { margin: 0 0 14px; padding: 9px 12px; border-radius: var(--hm-radius-control); background: var(--hm-sand); color: var(--hm-pending); font-size: var(--hm-fs-meta); line-height: 1.45; border: 1px solid var(--hm-pending-line); }
.timeline-dot-focus { fill: var(--hm-pending); stroke: var(--hm-pending); }
/* UX-43: where the scoring version changes the lines break; a solid rule and a label mark the spot. */
.timeline-version-break { stroke: var(--hm-muted); stroke-width: 2; }
.timeline-chart .timeline-version-label { fill: var(--hm-ink); font-weight: 600; paint-order: stroke; stroke: var(--hm-on-dark); stroke-width: 4px; stroke-linejoin: round; }
.timeline-event .timeline-version-change { color: var(--hm-muted); font-weight: 600; }
.timeline-chart .timeline-version-tag { fill: var(--hm-ink); font-size: var(--hm-fs-label); font-weight: 600; }
.timeline-version-key li { display: inline-flex; align-items: baseline; gap: 6px; }
.timeline-tag-method { background: var(--hm-mint); color: var(--hm-primary); }
.timeline-tag-change { background: var(--hm-mint); color: var(--hm-primary); }
.timeline-tag-rollback { background: var(--hm-sand); color: var(--hm-pending); }
.timeline-tag-focus { background: var(--hm-sand); color: var(--hm-pending); }
.timeline-event-focus { background: var(--hm-neutral); }
.timeline-publish-state { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 12px 0; padding: 8px 12px; border: 1px solid var(--hm-line); border-left: 3px solid var(--hm-primary); border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); }
.timeline-publish-state time { font-weight: 600; }
.timeline-publish-dot { width: 8px; height: 8px; border-radius: var(--hm-radius-pill); background: var(--hm-primary); align-self: center; flex: 0 0 auto; }
/* UX-C S5-1 · M14/M18: publish/withdraw event rows on History (both public pages). */
.timeline-publish { display: grid; gap: 6px; margin: 10px 0; }
.timeline-publish-row { display: flex; gap: 12px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--hm-line); border-left: 3px solid var(--hm-primary); border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); }
.timeline-publish-row time { color: var(--hm-muted); font-size: var(--hm-fs-label); white-space: nowrap; }

.timeline-events {
  display: grid;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  overflow: hidden;
}

.timeline-event:last-child { border-bottom: 0; }
.timeline-event > div { display: grid; gap: 3px; min-width: 0; }
.timeline-event-score { justify-items: end; }
.timeline-event-score strong { font-size: var(--hm-fs-body); }
.timeline-event-score .positive { color: var(--hm-success); }
.timeline-event-score .negative { color: var(--hm-danger); }
.timeline-empty { padding: 28px; border: 1px dashed var(--hm-line-strong); border-radius: var(--hm-radius-control); color: var(--hm-muted); text-align: center; }

.inline-score-card .score-ring {
  width: 92px;
  font-size: var(--hm-fs-kpi);
}

.inline-subsection {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.radar-card {
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
  padding: 12px 36px; /* the labels ("Explainability") stand outside the drawing and need the room */
}

.radar-card svg {
  width: min(100%, 260px);
  aspect-ratio: 1;
  overflow: visible;
}

.radar-grid circle,
.radar-grid line {
  fill: none;
  stroke: var(--hm-line);
  stroke-width: 1;
}

.radar-grid text {
  fill: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
}

.radar-shape {
  fill: var(--hm-primary);
  stroke: none;
}

.radar-outline {
  fill: none;
  stroke: var(--hm-primary);
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--hm-focus-ring));
}

.report-meta > summary {
  cursor: pointer;
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.report-meta > summary::-webkit-details-marker {
  display: none;
}

.report-meta > summary::before {
  content: "▸ ";
  font-size: var(--hm-fs-label);
}

.report-meta[open] > summary::before {
  content: "▾ ";
}

.report-meta > p {
  margin: 4px 0 0;
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.aio-publish-header h3 {
  margin: 2px 0 4px;
}

.aio-title-end { white-space: nowrap; } /* the last word and its (i) wrap together, never the (i) alone */
.aio-publish-header .eyebrow {
  margin-bottom: 0;
}

.aio-status-published {
  color: var(--hm-success);
  border-color: var(--hm-success-line);
  background: var(--hm-success-tint);
}

.aio-status-draft {
  color: var(--hm-ink);
  background: var(--hm-surface-glass);
}
.aio-withdrawn { margin: 4px 0 10px; font-size: var(--hm-fs-meta); color: var(--hm-pending); }
.aio-withdrawn code { font-size: var(--hm-fs-label); }

.aio-quality-warning,
.aio-quality-ready {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--hm-radius-control);
  font-size: var(--hm-fs-meta);
}

.aio-quality-warning {
  border: 1px solid var(--hm-pending-line);
  background: var(--hm-sand);
  color: var(--hm-pending);
}

.aio-quality-warning ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.aio-quality-warning li {
  margin: 4px 0;
}

.aio-quality-ready {
  border: 1px solid var(--hm-success-line);
  background: var(--hm-success-tint);
  color: var(--hm-success);
}

/* UX-C S5-1 · M14: published version stamp + drift on the AIO panel. */
.aio-version { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-mint); }
.aio-version-line { margin: 0; font-size: var(--hm-fs-meta); }
.aio-version-line code { font-size: var(--hm-fs-label); }
.aio-version-drift { margin: 6px 0 0; font-size: var(--hm-fs-meta); color: var(--hm-pending); }
.aio-version-same { margin: 6px 0 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); } /* UX-E B1 · UX-37 */
.aio-update-blocked { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-pending); } /* UX-E B1 · UX-37 */

.aio-url-field {
  display: grid;
  gap: 8px;
}

.aio-crawler-health {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
}

.aio-crawler-header h4,
.aio-crawler-header p {
  margin: 0;
}

.aio-crawler-header p {
  margin-top: 4px;
}

.aio-crawler-state-observed,
.aio-crawler-observed.seen {
  color: var(--hm-success);
  border-color: var(--hm-success-line);
  background: var(--hm-success-tint);
}

.aio-crawler-state-awaiting_crawl,
.aio-crawler-state-not_published,
.aio-crawler-state-unavailable,
.aio-crawler-observed.not-seen {
  color: var(--hm-ink);
  background: var(--hm-surface-glass);
}

.aio-crawler-summary {
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  color: var(--hm-muted);
  font-size: var(--hm-fs-meta);
  flex-wrap: wrap;
}

.aio-crawler-summary strong {
  color: var(--hm-ink);
  font-size: var(--hm-fs-body);
}

.aio-crawler-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hm-line);
}

.aio-crawler-list li:last-child {
  border-bottom: 0;
}

.aio-crawler-list strong {
  color: var(--hm-ink);
}

.aio-publish-actions .muted,
.aio-publish-note {
  margin: 0;
}

.aio-publish-note {
  padding-top: 12px;
  border-top: 1px solid var(--hm-line);
}

.evidence-product-overview h2,
.evidence-product-overview p {
  margin: 0;
}

.evidence-product-overview h2 {
  margin: 3px 0 5px;
  font-size: var(--hm-fs-body);
}

.evidence-overview-metrics dt {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.evidence-overview-metrics dd {
  margin: 0;
  color: var(--hm-ink);
  font-size: var(--hm-fs-body);
  font-weight: 600;
}

.inline-subsection-heading h3 {
  margin: 2px 0 4px;
}

.inline-subsection-heading .eyebrow {
  margin-bottom: 0;
}

.evidence-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
}

.evidence-form-heading h4,
.verified-claim-heading h4 {
  margin: 0;
  font-size: var(--hm-fs-body);
}

.evidence-form-heading p,
.verified-claim-heading p {
  margin: 4px 0 0;
}

.evidence-form label,
.evidence-item-main {
  min-width: 0;
}

.field-optional {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.evidence-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.evidence-form-actions .muted {
  margin: 0;
}

.evidence-item-main {
  display: grid;
  gap: 7px;
}

.evidence-item-heading,
.evidence-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.evidence-meta span {
  white-space: nowrap;
}

.evidence-meta {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.evidence-meta a {
  color: var(--hm-primary);
  font-weight: 600;
}

.evidence-refresh-state {
  margin: 0;
  color: var(--hm-muted);
  font-size: var(--hm-fs-meta);
  line-height: 1.45;
}

.evidence-refresh-state span {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.evidence-modal-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-neutral);
}

.evidence-modal-summary > span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
}

.evidence-modal-summary p,
.evidence-detail-empty {
  margin: 0;
  line-height: 1.55;
}

.evidence-detail-group {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}

.evidence-detail-group h5 {
  margin: 0 0 8px;
  font-size: var(--hm-fs-label);
}

.evidence-detail-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.evidence-detail-group li {
  color: var(--hm-ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.evidence-detail-group li + li {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--hm-line);
}

.evidence-modal .claim-modal-footer {
  justify-content: space-between;
}

.verified-claim-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--hm-primary-line);
  border-left: 3px solid var(--hm-primary);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface-glass);
}

.verified-claim-guidance {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px dashed var(--hm-line-strong);
  border-radius: var(--hm-radius-control);
  color: var(--hm-ink);
  background: var(--hm-neutral);
}

.verified-claim-guidance span {
  color: var(--hm-muted);
  line-height: 1.5;
}

.claim-summary-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
}

.claim-summary-item strong {
  font-size: var(--hm-fs-section);
}

.claim-summary-item span,
.claim-checked-at,
.claim-audit-meta,
.claim-alignment-list li > span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.claim-checked-at {
  margin: 0;
  line-height: 1.5;
}

/* 2.8.1.4F: the AI judge's press: how many statements it has not read, the press and its price; what a press took stays under it */
.claim-judge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-neutral);
}

.claim-judge p,
.claim-judge-took,
.claim-judge-took p {
  margin: 0;
}

.claim-judge-result {
  flex: 1 0 100%;
  color: var(--hm-ink);
  font-size: var(--hm-fs-body);
}

.claim-judge-took {
  display: grid;
  gap: 4px;
}

.claim-judge-took,
.claim-judge .price {
  color: var(--hm-muted);
  font-size: var(--hm-fs-meta);
}

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

.claim-group + .claim-group {
  margin-top: 10px;
}

.claim-group-title {
  margin: 0;
  font-size: var(--hm-fs-meta);
}

.claim-group-title span {
  color: var(--hm-muted);
  font-weight: 600;
}

.claim-item-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.claim-next-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  line-height: 1.5;
}

.claim-source-kind {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.claim-source-count {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  white-space: nowrap;
}

.claim-status,
.claim-relation {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-neutral);
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  white-space: nowrap;
}
.claim-modal-header > .icon-button { position: static; flex: none; } /* the × sits on the title's centre line, not 8px below it */

/* UX-67: where a claim the merchant wrote came from, under the claim itself. */
.claim-origin {
  color: var(--hm-muted);
  display: block;
  font-size: var(--hm-fs-label);
  margin-top: 2px;
}

.claim-modal-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.claim-modal-header h4,
.claim-modal-alignments h5 {
  margin: 0;
}

.claim-modal-header h4 {
  font-size: var(--hm-fs-body);
}

.claim-modal-claim {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-neutral);
}

.claim-modal-claim > span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
}

.claim-modal-claim p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.claim-modal-alignments {
  display: grid;
  gap: 10px;
}

.claim-audit-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.claim-audit-meta code {
  padding: 2px 6px;
  border-radius: var(--hm-radius-control);
  background: var(--hm-neutral);
  overflow-wrap: anywhere;
}

.claim-alignment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.claim-alignment-list li {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--hm-radius-control);
  background: var(--hm-neutral);
}

.claim-alignment-list li > div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.claim-alignment-list p,
.claim-no-evidence {
  margin: 0;
  color: var(--hm-ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

/* 2.8.1.3F: a source inside the claim-details step card is plain text on the card, not a grey box of its own */
.claim-step .claim-alignment-list li.claim-step-source { display: block; padding: 0; background: none; }
.claim-step .claim-alignment-list li.claim-step-source > div { display: flex; }
.claim-step .claim-alignment-list li.claim-step-source p { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.claim-step .claim-source-kind { padding: 1px 8px; border-radius: var(--hm-radius-pill); background: var(--hm-neutral); font-weight: 600; }
.claim-step .claim-no-evidence { color: var(--hm-muted); font-size: var(--hm-fs-meta); }

.evidence-readonly-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--hm-line-strong);
  border-radius: var(--hm-radius-control);
}

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

.permission-list {
  display: grid;
  gap: 10px;
}

.permission-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  padding: 14px;
  background: var(--hm-surface-glass);
}

.permission-item div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.permission-item strong {
  color: var(--hm-ink);
  overflow-wrap: anywhere;
}

.permission-item span,
.permission-item time {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}
/* the progress is a band round the edge and the figure sits in a plain centre: a thin sector of the pie never cuts through its digits */
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: var(--hm-radius-pill); background: var(--hm-surface); }
.score-ring > span { position: relative; }

.fix-list {
  display: grid;
  gap: 12px;
}

.fix-content {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.fix-detail {
  color: var(--hm-muted);
  font-size: var(--hm-fs-meta);
}

.fix-steps {
  margin: 3px 0 0;
  padding-left: 20px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.55;
}

.fix-steps li + li {
  margin-top: 5px;
}

/* Inline Optimize Workbench — AI auto-fill on a priority fix */
.fix-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.fix-ai-btn:hover:not(:disabled) { background: var(--hm-mint); }
.fix-optimize { margin-top: 10px; }
.fix-ai-err { color: var(--hm-danger); font-size: var(--hm-fs-meta); margin: 6px 0 0; }
.optimize-proposal {
  border: 1px solid var(--hm-line);
  border-left: 3px solid var(--hm-primary);
  border-radius: var(--hm-radius-card);
  padding: 12px 14px;
  background: var(--hm-surface);
}
.optimize-proposal-head {
  font-size: var(--hm-fs-label);
  color: var(--hm-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.optimize-proposal-head code {
  background: var(--hm-mint);
  border-radius: var(--hm-radius-control);
  padding: 0 5px;
}
.fix-ai-badge {
  font-family: var(--hm-font-mono);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--hm-radius-pill);
  background: color-mix(in srgb, var(--hm-primary) 15%, transparent);
  color: var(--hm-primary);
}
.fix-ai-badge.warn {
  background: color-mix(in srgb, var(--hm-pending) 16%, transparent);
  color: var(--hm-pending);
}
.optimize-proposal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.fix-ai-approve {
  border: 0;
  background: var(--hm-primary);
  color: var(--hm-on-dark);
  border-radius: var(--hm-radius-control);
  padding: 8px 15px;
  font-weight: 600;
  font-size: var(--hm-fs-meta);
  cursor: pointer;
}
.fix-ai-approve:hover:not(:disabled) { background: var(--hm-primary-hover); } /* UX-E B2a: hover follows the green primary */
.diff-row.diff-add code { flex: 1; min-width: 0; }
.diff-adopt {
  flex: 0 0 auto;
  border: 1px solid var(--hm-primary);
  background: var(--hm-mint);
  color: var(--hm-primary);
  border-radius: var(--hm-radius-control);
  padding: 3px 11px;
  font-weight: 600;
  font-size: var(--hm-fs-label);
  cursor: pointer;
}
.diff-adopt:hover:not(:disabled) { background: var(--hm-mint); }
.adopt-edit-input:focus {
  outline: none;
  border-color: var(--hm-primary);
  box-shadow: 0 0 0 3px var(--hm-focus-ring);
}
.fix-manual-btn:hover:not(:disabled) { border-color: var(--hm-primary-line); background: var(--hm-mint); }
/* Inline "Add manually" form */
.optimize-manual {
  border: 1px solid var(--hm-line);
  border-left: 3px solid var(--hm-primary);
  border-radius: var(--hm-radius-card);
  padding: 14px 16px;
  background: var(--hm-surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mf-field { display: flex; flex-direction: column; gap: 5px; }
.mf-field > span { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-ink); }
.mf-field > span em { font-weight: 400; color: var(--hm-muted); font-style: normal; }
.mf-field input,
.mf-field textarea {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  padding: 9px 11px;
  font: inherit;
  color: var(--hm-ink);
  background: var(--hm-surface);
  resize: vertical;
}
.mf-field input:focus,
.mf-field textarea:focus {
  outline: none;
  border-color: var(--hm-primary);
  box-shadow: 0 0 0 3px var(--hm-focus-ring);
}

.fix-diff {
  min-width: 0;
}

.diff-viewer.empty-diff {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.diff-row code {
  color: var(--hm-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit; /* a merchant's own words (a suggestion, "nothing yet"), not code: the app's face */
  font-size: var(--hm-fs-meta);
  line-height: 1.45;
}

/* the box's own note: the same circled i as an (i) button, not a bare letter */
.diff-row .diff-note-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-pill); font-style: italic; font-weight: 400; line-height: 1; }

.diff-add {
  background: var(--hm-success-tint);
}

.diff-add span {
  color: var(--hm-success);
}

.diff-context {
  background: var(--hm-success-tint);
}

.diff-context span {
  color: var(--hm-success);
}
.changeset-inbox .inbox-summary { color: var(--hm-muted); margin: 0; }
.changeset-group .pill { background: var(--hm-neutral); color: var(--hm-primary); padding: 2px 10px; border-radius: var(--hm-radius-pill); font-size: var(--hm-fs-label); }
.changeset-list { display: grid; gap: 12px; }
.changeset-card header > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.changeset-card .cs-rationale { margin: 8px 0; font-size: var(--hm-fs-meta); line-height: 1.5; color: var(--hm-ink); white-space: pre-wrap; }
.changeset-card .cs-deltas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.changeset-card.status-pending_review { border-left: 3px solid var(--hm-pending); }
.changeset-card.status-executed { border-left: 3px solid var(--hm-primary); }
.changeset-card.status-rolled_back { border-left: 3px solid var(--hm-line-strong); }
.changeset-card.status-rejected { border-left: 3px solid var(--hm-danger-line); }
.changeset-card.status-failed { border-left: 3px solid var(--hm-danger); }
.badge-executed { background: var(--hm-success-tint); color: var(--hm-success); }
.badge-rejected { background: var(--hm-danger-soft); color: var(--hm-danger); }
.badge-approved { background: var(--hm-success-tint); color: var(--hm-success); }
.badge-measured { background: var(--hm-success-tint); color: var(--hm-success); }
.badge-predicted { background: var(--hm-sand); color: var(--hm-pending); }

.delta-chip { font-size: var(--hm-fs-label); padding: 2px 8px; border-radius: var(--hm-radius-control); font-variant-numeric: tabular-nums; } /* UX-E completion S3: words now, not metric codes */
.delta-chip.up { background: var(--hm-success-tint); color: var(--hm-success); }
.delta-chip.down { background: var(--hm-danger-soft); color: var(--hm-danger); }

.competitive-card { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 16px 18px; background: var(--hm-surface); margin-bottom: 16px; }
.competitive-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.competitive-card.sparse .empty-copy { color: var(--hm-muted); font-size: var(--hm-fs-meta); margin: 0; }
.competitive-bars { display: grid; gap: 10px; }
.competitive-bar { display: grid; grid-template-columns: 1fr; gap: 4px; }
.competitive-bar .metric-label { display: flex; justify-content: space-between; font-size: var(--hm-fs-label); }
.competitive-bar .metric-label .muted { color: var(--hm-muted); }
.competitive-bar .bar-track { position: relative; height: 8px; background: var(--hm-neutral); border-radius: var(--hm-radius-control); overflow: hidden; }
.competitive-bar .bar-fill { position: absolute; left: 0; top: 0; height: 100%; background: linear-gradient(90deg, var(--hm-primary-line), var(--hm-primary)); border-radius: var(--hm-radius-control); }
.competitive-bar .bar-marker { position: absolute; top: -2px; width: 2px; height: 12px; background: var(--hm-ink); }
.competitive-bar .bar-empty { padding: 0 8px; font-size: var(--hm-fs-label); color: var(--hm-muted); line-height: 8px; }

/* Batch 5.5 — Inbox legend / glossary */
.inbox-legend { margin: 8px 0 16px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 10px 14px; background: var(--hm-neutral); }
.inbox-legend summary { cursor: pointer; font-weight: 400; font-size: var(--hm-fs-label); user-select: none; }
.inbox-legend summary .muted { color: var(--hm-muted); font-weight: 400; margin-left: 6px; font-size: var(--hm-fs-label); }
.inbox-legend[open] summary { margin-bottom: 12px; }
.inbox-legend .legend-section h4 { font-size: var(--hm-fs-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--hm-muted); margin: 0 0 6px; }
.inbox-legend dl { display: grid; grid-template-columns: max-content 1fr; column-gap: 10px; row-gap: 4px; margin: 0; font-size: var(--hm-fs-meta); align-items: baseline; }
.inbox-legend dt { font-weight: 600; color: var(--hm-ink); white-space: nowrap; }
.inbox-legend dd { margin: 0; color: var(--hm-ink); }
.inbox-legend .unit-badge { display: inline-block; padding: 0 4px; margin-left: 2px; border-radius: var(--hm-radius-control); background: var(--hm-neutral); font-size: var(--hm-fs-label); font-family: var(--hm-font-mono); }

/* Batch 6 — Review & approve modal */
.modal-overlay { position: fixed; inset: 0; background: var(--hm-overlay); z-index: 1000; display: grid; place-items: center; padding: 16px; }
.modal-close:hover { color: var(--hm-ink); }
.modal-context { padding: 12px 20px; border-bottom: 1px solid var(--hm-line); background: var(--hm-neutral); font-size: var(--hm-fs-label); }
.modal-context p { margin: 0 0 4px; }
.modal-context .cs-rationale { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; font-size: var(--hm-fs-label); }
.modal-hint { color: var(--hm-muted); margin: 0 0 12px; }
.modal-body .diff-preview { background: var(--hm-neutral); padding: 12px; border-radius: var(--hm-radius-control); font-family: var(--hm-font-mono); font-size: var(--hm-fs-label); overflow-x: auto; max-height: 400px; overflow-y: auto; margin: 0; }
.cs-readiness { margin: 6px 0; padding: 8px 10px; border-left: 3px solid var(--hm-pending); background: var(--hm-sand); font-size: var(--hm-fs-label); }
.cs-readiness p { margin: 0; }
.draft-discard { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--hm-radius-control); background: var(--hm-sand); }
.draft-discard p { margin: 0; flex: 1 1 200px; }
.stat-tile .stat-label { font-size: var(--hm-fs-label); color: var(--hm-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.brand-missing-alert { margin: 0; color: var(--hm-danger); font-size: var(--hm-fs-label); overflow-wrap: anywhere; min-width: 0; }
.brand-missing-alert a { color: inherit; text-decoration: underline; }

/* ---- Simulator: shareable result card ("brag" prompt) ---- */
.simulator-share {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 16px 0 4px; padding: 16px 18px; border-radius: var(--hm-radius-card);
  background: var(--hm-mint);
  border: 1px solid var(--hm-primary-line);
}
.simulator-share-copy strong { display: block; color: var(--hm-primary); font-size: var(--hm-fs-body); }
.simulator-share-copy span { display: block; color: var(--hm-ink); font-size: var(--hm-fs-label); margin-top: 2px; }
.simulator-share-btn {
  flex: 0 0 auto; border: none; cursor: pointer; border-radius: var(--hm-radius-control);
  background: var(--hm-primary); color: var(--hm-on-dark); font-weight: 600; font-size: var(--hm-fs-meta);
  padding: 11px 18px; white-space: nowrap;
}
.simulator-share-btn:hover { background: var(--hm-primary); }

/* ---- Share modal ---- */
.share-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--hm-overlay); backdrop-filter: blur(3px);
}
.share-modal {
  width: 100%; max-width: 460px; background: var(--hm-surface); border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-card); padding: 24px; position: relative; box-shadow: 0 30px 80px -30px var(--hm-shadow-color-strong);
}
.share-modal-sub { margin: 0 0 16px; color: var(--hm-ink); font-size: var(--hm-fs-meta); }
.share-modal-close {
  position: absolute; top: 14px; right: 14px; border: none; background: transparent; cursor: pointer;
  font-size: var(--hm-fs-body); color: var(--hm-muted); line-height: 1;
}
.share-modal-preview { border-radius: var(--hm-radius-card); overflow: hidden; border: 1px solid var(--hm-line); margin-bottom: 16px; }
.share-modal-preview img { display: block; width: 100%; height: auto; }
.share-modal-linkrow { display: flex; gap: 8px; margin-bottom: 14px; }
.share-modal-linkrow input {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control);
  padding: 10px 12px; font-size: var(--hm-fs-meta); color: var(--hm-ink); background: var(--hm-neutral);
}
.share-copy-btn {
  flex: 0 0 auto; border: 1px solid var(--hm-primary); background: var(--hm-primary); color: var(--hm-on-dark);
  border-radius: var(--hm-radius-control); padding: 10px 16px; font-weight: 600; cursor: pointer; font-size: var(--hm-fs-meta);
}
.share-modal-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.share-net {
  flex: 1 1 0; text-align: center; text-decoration: none; border-radius: var(--hm-radius-control); padding: 12px;
  font-weight: 600; font-size: var(--hm-fs-meta);
}
.share-net-x { background: var(--hm-ink); color: var(--hm-on-dark); }
.share-net-li { background: var(--hm-brand-linkedin); color: var(--hm-on-dark); }
.share-net:hover { opacity: 0.92; }
@media (max-width: 520px) {
  .simulator-share { flex-direction: column; align-items: stretch; }
  .simulator-share-btn { width: 100%; }
}
.overview-hero {
  background: var(--hm-surface);
  border: 1px solid var(--hm-line);
  border-left: 4px solid var(--hm-muted);
  border-radius: var(--hm-radius-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 2px var(--hm-shadow-color-faint);
  min-width: 0;
}
.overview-hero.score-band-strong { border-left-color: var(--hm-primary); }
.overview-hero.score-band-mid    { border-left-color: var(--hm-pending); }
.overview-hero.score-band-weak   { border-left-color: var(--hm-danger); }
.overview-hero .stat-label {
  font-size: var(--hm-fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hm-muted);
  margin: 0;
}
.overview-hero-score span { font-size: var(--hm-fs-body); color: var(--hm-muted); font-weight: 600; }
.overview-hero .score-band {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: var(--hm-radius-pill);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}
.overview-hero .score-band.score-band-strong { color: var(--hm-success); background: var(--hm-success-tint); }
.overview-hero .score-band.score-band-mid    { color: var(--hm-pending);  background: var(--hm-sand); }
.overview-hero .score-band.score-band-weak   { color: var(--hm-danger); background: var(--hm-danger-soft); }
.overview-hero-sub { font-size: var(--hm-fs-meta); color: var(--hm-ink); margin: 2px 0 0; }
.overview-kpis .kpi-warn strong { color: var(--hm-pending); }
.overview-kpis article {
  min-height: 80px;
  padding: 12px 14px;
}
.overview-kpis article span,
.overview-kpis .stat-label {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  line-height: 1.3;
  -webkit-line-clamp: 2;
}
.overview-panel .empty-inline {
  margin: 0;
  padding: 6px 0 2px;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: var(--hm-fs-label);
  line-height: 1.4;
}
.overview-panel .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  min-width: 0;
}
.overview-panel .panel-heading h2 {
  font-size: var(--hm-fs-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--hm-ink);
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dist-bar {
  display: flex;
  height: 14px;
  border-radius: var(--hm-radius-pill);
  overflow: hidden;
  background: var(--hm-neutral);
}
.dist-seg { display: block; height: 100%; }
.dist-seg.dist-strong, .dot.dist-strong { background: var(--hm-primary); }
.dist-seg.dist-mid,    .dot.dist-mid    { background: var(--hm-pending); }
.dist-seg.dist-weak,   .dot.dist-weak   { background: var(--hm-danger); }
.dist-legend {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dist-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--hm-fs-label);
  color: var(--hm-ink);
}
.dist-legend li b { margin-left: auto; color: var(--hm-ink); font-variant-numeric: tabular-nums; }

.ov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ov-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--hm-line);
  min-height: 0;
}
.ov-list-item:first-child { border-top: 0; padding-top: 2px; }
.ov-item-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
}
.ov-item-name {
  font-size: var(--hm-fs-meta);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hm-ink);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-item-link:hover .ov-item-name { color: var(--hm-primary); }
.ov-item-meta { font-size: var(--hm-fs-label); color: var(--hm-muted); text-transform: capitalize; line-height: 1.3; }

.overview-skeleton { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.overview-skeleton span {
  display: block;
  height: 92px;
  border-radius: var(--hm-radius-card);
  background: var(--hm-neutral);
  background-size: 400% 100%;
  animation: ov-shimmer 1.4s ease infinite;
}
.simulator-saved-questions > span {
  display: block;
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hm-muted);
  margin-bottom: 8px;
}
.simulator-saved-questions ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.simulator-saved-questions li {
  font-size: var(--hm-fs-meta);
  color: var(--hm-ink);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.simulator-saved-questions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--hm-primary);
  font-weight: 600;
}
.crc-q { margin: 6px 0 0; font-size: var(--hm-fs-body); font-weight: 600; line-height: 1.35; color: var(--hm-ink); }
.crc-band { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 12px 0; padding: 10px 14px; border-radius: var(--hm-radius-control); border: 1px solid var(--hm-line); }
.crc-band span { font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.crc-rows { display: flex; flex-direction: column; gap: 8px; }
.crc-verdict { font-size: var(--hm-fs-meta); color: var(--hm-ink); flex: 1 1 12rem; }
.crc-pill { font-size: var(--hm-fs-label); font-weight: 600; padding: 4px 11px; border-radius: var(--hm-radius-pill); flex: 0 0 auto; white-space: nowrap; }
.results-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ---- Shopper-facing consumer page (Topic 1A) inline gallery editor ---- */
.cpg-editor { margin-top: 18px; border-top: 1px solid var(--hm-line); padding-top: 16px; }
.cpg-galtitle { margin: 0 0 4px; font-weight: 600; font-size: var(--hm-fs-body); }
.cpg-galtitle .muted { font-weight: 400; }
/* visual thumbnail gallery */
.cpg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 14px 0 12px; }
.cpg-empty { grid-column: 1 / -1; color: var(--hm-muted); font-size: var(--hm-fs-meta); text-align: center; padding: 18px; border: 1px dashed var(--hm-line); border-radius: var(--hm-radius-card); margin: 0; }
.cpg-tile { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); overflow: hidden; background: var(--hm-surface); }
.cpg-tile.main { border-color: var(--hm-primary); box-shadow: 0 0 0 1px var(--hm-primary); }
.cpg-tile img { width: 100%; height: 100%; object-fit: contain; background: var(--hm-surface); padding: 6px; }
.cpg-mainbadge { position: absolute; left: 6px; bottom: 6px; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-on-dark); background: var(--hm-primary); border-radius: var(--hm-radius-control); padding: 2px 7px; }
.cpg-mainbtn { position: absolute; left: 6px; bottom: 6px; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-primary); background: var(--hm-surface-glass); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 2px 7px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.cpg-tile:hover .cpg-mainbtn { opacity: 1; }
.cpg-tiledel { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: var(--hm-radius-pill); border: 0; background: var(--hm-ink); color: var(--hm-on-dark); font-size: var(--hm-fs-label); line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cpg-tiledel:hover { background: var(--hm-danger); }
.cpg-addurl:focus { outline: none; border-color: var(--hm-primary); box-shadow: 0 0 0 3px var(--hm-focus-ring); }
.cpg-addurlbtn:hover:not(:disabled) { border-color: var(--hm-primary-line); }
.cpg-addnote { min-height: 1.1em; margin: 8px 0 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.cpg-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cpg-live { margin-top: 18px; border-top: 1px solid var(--hm-line); padding-top: 16px; }
.cpg-open:hover { text-decoration: underline; }

/* ---- AI Visibility trend (ai-visibility-trend P0) ---- */
.viz-panel { background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 22px 24px; max-width: 900px; }
.viz-empty { color: var(--hm-muted); font-size: var(--hm-fs-body); line-height: 1.6; padding: 12px 0; }
.viz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.viz-unit { font-size: var(--hm-fs-section); font-weight: 600; margin-left: 2px; color: var(--hm-muted); }
.viz-sub { margin-top: 6px; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.viz-delta { font-weight: 600; margin-left: 6px; }
.viz-delta.positive { color: var(--hm-success); }
.viz-delta.negative { color: var(--hm-danger); }
.viz-legend { font-size: var(--hm-fs-label); color: var(--hm-muted); display: flex; align-items: center; gap: 6px; }
.viz-legend-line { display: inline-block; width: 16px; height: 3px; border-radius: var(--hm-radius-control); background: var(--hm-ink); }
.viz-chart-wrap { overflow-x: auto; }
.viz-chart { width: 100%; height: auto; }
.viz-chart text { font-size: var(--hm-fs-label); fill: var(--hm-muted); }
.viz-grid { stroke: var(--hm-line); stroke-width: 1; }
.viz-series { fill: none; stroke: var(--hm-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.viz-dot { fill: var(--hm-ink); }
.viz-engines { margin-top: 18px; }
.viz-engines h4 { margin: 0 0 10px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.viz-engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.viz-engine { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); }
.viz-engine-name { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.viz-engine-val { font-size: var(--hm-fs-section); font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.viz-engine-val small { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); margin-left: 4px; }
.viz-card--empty { background: var(--hm-neutral); color: var(--hm-ink); }
.viz-card .viz-big { color: var(--hm-on-dark); font-size: var(--hm-fs-kpi); }
.viz-card .viz-unit { color: var(--hm-on-dark); }
.viz-card .viz-sub { color: var(--hm-on-dark); }
.viz-card .viz-series { stroke: var(--hm-on-dark); stroke-width: 2.5; }
.viz-card .viz-dot { fill: var(--hm-on-dark); }
.viz-card .viz-grid { stroke: var(--hm-on-dark-muted); }
.viz-card .viz-chart text { fill: var(--hm-on-dark); font-size: var(--hm-fs-label); }
.viz-card .viz-legend {
  color: var(--hm-on-dark);
  margin: 4px 0 8px;
  gap: 12px;
}
.viz-card .viz-legend-line { background: var(--hm-primary-line); }
.viz-card .viz-delta.positive { color: var(--hm-on-dark-good); }
.viz-card .viz-delta.negative { color: var(--hm-on-dark-bad); }
.viz-mini-name { font-size: var(--hm-fs-label); color: var(--hm-on-dark); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-mini-val { font-size: var(--hm-fs-section); font-weight: 600; }

/* ---- AI Visibility multi-metric (P0 upgrade) ---- */
.viz-stats { display: flex; gap: 28px; margin: 10px 0 18px; flex-wrap: wrap; }
.viz-stat { display: flex; flex-direction: column; gap: 2px; }
.viz-stat-label { font-size: var(--hm-fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hm-muted); }
.viz-stat-val { font-size: var(--hm-fs-kpi); font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.viz-stat small { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.viz-legend { display: flex; gap: 16px; }
.viz-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.viz-legend-line--top3 { background: var(--hm-primary-line); }
.viz-series--top3 { fill: none; stroke: var(--hm-on-dark); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.viz-foot { margin: 16px 0 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }

/* ---- Visibility drop alerts (骤降告警, P2) ---- */
.viz-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--hm-radius-card); margin: 0 0 18px; border: 1px solid; }
.viz-alert-icon { font-size: var(--hm-fs-body); line-height: 1.4; }
.viz-alert-body strong { font-size: var(--hm-fs-body); }
.viz-alert-body > strong { display: block; margin-bottom: 2px; }
.viz-alert-body p { margin: 0 0 6px; font-size: var(--hm-fs-label); line-height: 1.45; }
.viz-alert-body p:last-child { margin-bottom: 0; }
.viz-alert-advice { opacity: 0.95; }
.viz-alert-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.viz-alert-btn { font-size: var(--hm-fs-label); }
.viz-card-alert-mark {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.45em;
  border-radius: var(--hm-radius-control);
  background: currentColor;
  vertical-align: 0.05em;
  opacity: 0.85;
}
.viz-card-alert { margin: 4px 0 16px; padding: 9px 13px; border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); background: var(--hm-sand); border: 1px solid var(--hm-pending-line); color: var(--hm-ink); text-align: left; }
.viz-card-alert strong { color: var(--hm-on-dark); }
.viz-card-alert--btn { display: flex; align-items: center; gap: 6px; width: 100%; cursor: pointer; font: inherit; font-size: var(--hm-fs-meta); transition: background .12s ease, border-color .12s ease; }
.viz-card-alert--btn:hover { background: var(--hm-sand); border-color: var(--hm-pending-line); }
.viz-card-alert--btn:focus-visible { outline: 2px solid var(--hm-pending-line); outline-offset: 2px; }
.viz-card-alert-cta { margin-left: auto; font-weight: 600; color: var(--hm-on-dark); white-space: nowrap; }

/* ---- Citations as the 4th metric (P2) — teal to read apart from navy inclusion ---- */
.viz-cite { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hm-line); }
.viz-chart-wrap--cite { margin-bottom: 10px; }
.viz-series--cite { fill: none; stroke: var(--hm-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.viz-chart--cite .viz-dot { fill: var(--hm-primary); }
.viz-cite .viz-foot { margin-top: 12px; }

/* ---- Imported GSC data (P2) — indigo, "real Google" signal ---- */
.viz-gsc { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hm-line); }
.viz-gsc .viz-stats { margin: 6px 0 12px; gap: 22px; }
.viz-chart-wrap--gsc { margin-bottom: 6px; }
.viz-series--gsc { fill: none; stroke: var(--hm-primary-muted); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.viz-chart--gsc .viz-dot { fill: var(--hm-primary); }
.gsc-import > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: var(--hm-fs-meta); color: var(--hm-ink); list-style: none; }
.gsc-import > summary::-webkit-details-marker { display: none; }
.gsc-import[open] > summary { border-bottom: 1px solid var(--hm-line); }
.gsc-import-status { margin: 10px 0 0 !important; font-size: var(--hm-fs-label); min-height: 1.1em; }
.gsc-import-status.error { color: var(--hm-danger); }
.gsc-import-status.success { color: var(--hm-success); }

/* ---- Visibility chart hover tooltip ---- */
.viz-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--hm-ink); color: var(--hm-on-dark); padding: 8px 11px; border-radius: var(--hm-radius-control); font-size: var(--hm-fs-label); line-height: 1.35; pointer-events: none; z-index: 20; white-space: nowrap; box-shadow: 0 10px 28px var(--hm-shadow-color-strong); max-width: min(92vw, 320px); }
.viz-tip--below { transform: translate(-50%, 12px); }
.viz-tip[hidden] { display: none; }
.viz-tip-date { font-weight: 600; margin-bottom: 4px; }
.viz-tip > div { display: flex; justify-content: space-between; gap: 16px; }
.viz-tip span { color: var(--hm-on-dark); }
.viz-tip strong { font-variant-numeric: tabular-nums; }
.viz-tip-samples { color: var(--hm-on-dark); margin-top: 4px; font-size: var(--hm-fs-label); }
.viz-dot { cursor: pointer; transition: r .1s ease; }
.viz-dot:hover, .viz-dot:focus { r: 6; outline: none; }
.funnel-banner { padding: 12px 16px; border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); line-height: 1.45; border: 1px solid transparent; }
.funnel-banner--shadow { background: var(--hm-mint); border-color: var(--hm-primary-line); color: var(--hm-primary); }
.funnel-banner--shadow strong { color: var(--hm-primary-hover); }
.funnel-banner--enforce { background: var(--hm-sand); border-color: var(--hm-pending-line); color: var(--hm-pending); }
.funnel-window { font-size: var(--hm-fs-label); }
.funnel-window strong { color: var(--hm-ink); }
.funnel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.funnel-card { background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 14px 16px; display: grid; gap: 6px; box-shadow: var(--hm-shadow-sm); }
.funnel-card-k { font-size: var(--hm-fs-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--hm-muted); }
.funnel-card-v { font-size: var(--hm-fs-section); font-weight: 600; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
.funnel-card-v--sm { font-size: var(--hm-fs-meta); font-weight: 600; line-height: 1.35; }
.funnel-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.funnel-stage { font-size: var(--hm-fs-label); padding: 4px 10px; border-radius: var(--hm-radius-pill); border: 1px solid var(--hm-line); font-variant-numeric: tabular-nums; }
.funnel-stage--on { background: var(--hm-focus-ring); border-color: var(--hm-primary-line); color: var(--hm-primary); }
.funnel-stage--off { background: var(--hm-neutral); color: var(--hm-muted); }
.funnel-table th, .funnel-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--hm-line); }
.funnel-table th { font-size: var(--hm-fs-label); text-transform: none; letter-spacing: 0; color: var(--hm-muted); font-weight: 600; }
.funnel-table .funnel-num { text-align: right; font-variant-numeric: tabular-nums; }
.funnel-table--rates td:first-child { color: var(--hm-muted); width: 40%; }
.funnel-table code, .funnel-chain code, .funnel-layer code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--hm-fs-label); }
.funnel-fidelity { font-size: var(--hm-fs-label); }
/* drill-down reason chains */
.funnel-explain { display: grid; gap: 12px; }
.funnel-fidelity-note { background: var(--hm-sand); border: 1px solid var(--hm-pending-line); color: var(--hm-pending); border-radius: var(--hm-radius-control); padding: 8px 12px; font-size: var(--hm-fs-label); }
.funnel-chain { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 12px 14px; background: var(--hm-surface); }
.funnel-chain-head { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-ink); margin-bottom: 8px; }
.funnel-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.funnel-layer { font-size: var(--hm-fs-label); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.funnel-layer-stage { min-width: 84px; color: var(--hm-muted); }
.funnel-verdict { font-size: var(--hm-fs-label); padding: 1px 8px; border-radius: var(--hm-radius-pill); }
.funnel-verdict--pass { background: var(--hm-success-tint); color: var(--hm-success); }
.funnel-verdict--fail { background: var(--hm-danger-soft); color: var(--hm-danger); }
.funnel-verdict--wouldfail { background: var(--hm-sand); color: var(--hm-pending); }

/* ── Observability — dashboard time-series + what-if (1d S3) ───────────────────────── */
.obs-dashboard { display: grid; gap: 20px; max-width: 960px; }
.obs-num { text-align: right; font-variant-numeric: tabular-nums; }
.obs-axis { stroke: var(--hm-line); stroke-width: 1; }
.obs-bar { fill: var(--hm-primary); }
.obs-bar--zero { fill: var(--hm-line); }
.obs-bar-n { fill: var(--hm-muted); font-size: var(--hm-fs-label); font-variant-numeric: tabular-nums; }
.obs-bar-x { fill: var(--hm-muted); font-size: var(--hm-fs-label); }
/* what-if */
.obs-whatif { display: grid; gap: 12px; max-width: 960px; }
.obs-banner--sim { background: var(--hm-sand); border: 1px solid var(--hm-pending-line); color: var(--hm-pending); }
.obs-recomputed { font-size: var(--hm-fs-label); }
.obs-notes { display: grid; gap: 6px; }
.obs-note { background: var(--hm-sand); border: 1px solid var(--hm-pending-line); color: var(--hm-pending); border-radius: var(--hm-radius-control); padding: 8px 12px; font-size: var(--hm-fs-label); }
.obs-ver { font-size: var(--hm-fs-label); }
.obs-ver-latest { background: var(--hm-sand); color: var(--hm-pending); border-radius: var(--hm-radius-control); padding: 1px 8px; font-size: var(--hm-fs-label); font-weight: 600; }
.obs-cand { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 12px 14px; background: var(--hm-surface); }
.obs-cand-head { font-size: var(--hm-fs-meta); color: var(--hm-ink); margin-bottom: 6px; }
.obs-flip { background: var(--hm-mint); color: var(--hm-primary); border-radius: var(--hm-radius-control); padding: 1px 8px; font-size: var(--hm-fs-label); }
.obs-suggested { font-size: var(--hm-fs-label); background: var(--hm-focus-ring); border: 1px solid var(--hm-primary-line); color: var(--hm-primary); border-radius: var(--hm-radius-control); padding: 6px 10px; margin: 6px 0; }
.obs-layers { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.obs-layer { font-size: var(--hm-fs-label); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.obs-layer-stage { min-width: 84px; color: var(--hm-muted); }
.obs-carried { font-size: var(--hm-fs-label); color: var(--hm-muted); font-style: italic; }
.obs-layer--recomputed .obs-layer-stage { color: var(--hm-primary-hover); font-weight: 600; }
/* 1d GPT-6 R3/R7/R8 additions */
.obs-notrecomputed { font-size: var(--hm-fs-label); color: var(--hm-muted); font-style: italic; }
.obs-ver-pinned { background: var(--hm-mint); color: var(--hm-primary); border-radius: var(--hm-radius-control); padding: 1px 8px; font-size: var(--hm-fs-label); font-weight: 600; }
.obs-winner { font-size: var(--hm-fs-label); background: var(--hm-focus-ring); border: 1px solid var(--hm-primary-line); color: var(--hm-primary); border-radius: var(--hm-radius-control); padding: 6px 10px; }
.ux-shell .ux-search-icon { display: inline-flex; color: var(--hm-muted); flex: none; }
.ux-shell .ux-workbench .status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 17px; }
.ux-shell .ux-workbench .status-line .btn.ghost { margin-left: auto; }
.ux-shell .ux-workbench .ux-subhead { margin: 0 0 4px; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.ux-shell .ux-workbench .ux-cardnote { margin: 18px 0 0; color: var(--hm-muted); font-size: var(--hm-fs-body); }
/* A2-3: Workbench view switcher (Priorities · Drafts · Activity) + the Drafts and Activity lists. */
.ux-shell .ux-wbtabs { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--hm-line); flex-wrap: wrap; }
.ux-shell .ux-wbtab { appearance: none; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--hm-muted); font: inherit; font-size: var(--hm-fs-meta); font-weight: 600; padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.ux-shell .ux-wbtab:hover { color: var(--hm-ink); }
.ux-shell .ux-wbtab-active { color: var(--hm-primary); border-bottom-color: var(--hm-primary); }
.ux-shell .ux-wbtab:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; border-radius: var(--hm-radius-control); }
.ux-shell .ux-drafts { display: grid; gap: 12px; margin-top: 18px; }
.ux-shell .ux-actlist { display: grid; gap: 8px; }
.ux-shell .ux-actmeta { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .ux-srchead { margin: 0 0 2px; font-size: var(--hm-fs-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--hm-muted); font-weight: 600; }
.ux-shell .ux-srcrow { display: flex; align-items: center; gap: 10px; font-size: var(--hm-fs-meta); flex-wrap: wrap; }
/* B2-4: a background item that conflicts with another active one of the same singleton type. */
.ux-shell .ctx-card-conflict { border-color: var(--hm-pending); }
.ux-shell .ux-conflict { color: var(--hm-pending); font-weight: 600; }
.ux-shell .ux-empty { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 18px; color: var(--hm-muted); font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); }
.ux-shell .ux-scoring-change a { margin-left: 4px; }
.pil-terms-note { margin: 8px 0 0; font-size: var(--hm-fs-label); }
.pil-price-line .tag { align-self: end; margin-bottom: 6px; } /* S2: where a price line came from */
/* UX-D S1b: the scoring version in plain sight, and the buyer-question evidence report. */
.ux-shell .ux-version, .inline-report .ux-version { margin: 6px 0 0; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .ux-intents-summary { margin: 6px 0 0; font-size: var(--hm-fs-body); color: var(--hm-ink); }
.ux-shell .ux-intent-list, .inline-report .ux-intent-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ux-shell .ux-intent { border-top: 1px solid var(--hm-line); padding-top: 10px; }
.ux-shell .ux-intent-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ux-shell .ux-intent p { margin: 6px 0 0; color: var(--hm-muted); font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.ux-shell .ux-intent-k { font-weight: 600; color: var(--hm-ink); margin-right: 4px; }
.ux-shell .ux-intent-where { font-size: var(--hm-fs-meta); }
.ux-shell .ux-intent-near { margin-top: 6px; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ux-shell .ux-intent-near ul { margin: 6px 0 0; padding-left: 18px; }
/* Coverage (R2): "Checked N of M" + Load more, sits in the status line. */
.ux-shell .ux-workbench .ux-coverage { font-size: var(--hm-fs-label); color: var(--hm-muted); line-height: var(--hm-lh-body); }
.ux-shell .ux-workbench .status-line .btn.ghost[data-action="workbench-load-more"] { margin-left: 0; }
.ux-shell .ux-ws-diagmeta td { padding: 6px 0; border-bottom: 1px solid var(--hm-line); vertical-align: top; }
.ux-shell .ux-ws-diagmeta td:first-child { color: var(--hm-muted); width: 42%; }
.ux-shell .ux-diag-flags { display: block; margin-top: 4px; font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: 0.02em; color: var(--hm-pending); }
.ux-shell .ux-ws-fixhdr { font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hm-muted); margin: 18px 0 8px; }
/* A2-2 (M03): the product-workspace breadcrumb "Workbench › <product> › <subpage>" replaces the old
   bare "← Workbench" back link (its first crumb still routes home). */
.ux-shell .ux-workspace .ux-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--hm-fs-label); color: var(--hm-muted); margin-bottom: 10px; }
.ux-shell .ux-workspace .ux-crumbs a { color: var(--hm-primary); text-decoration: none; }
.ux-shell .ux-workspace .ux-crumbs a:hover { text-decoration: underline; }
.ux-shell .ux-workspace .ux-crumb-sep { color: var(--hm-muted); opacity: 0.55; }
.ux-shell .ux-workspace .ux-crumb-current { color: var(--hm-ink); font-weight: 600; }
.ux-shell .ux-menu-sep { height: 1px; background: var(--hm-line); margin: 4px 2px; }
.ux-shell .ux-ws-actions { list-style: none; margin: 0; padding: 0; }
.ux-shell .ux-ws-actions li { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 14px 16px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ux-shell .ux-ws-actions li strong { font-size: var(--hm-fs-body); color: var(--hm-ink); }
.ux-shell .ux-ws-actions li span { font-size: var(--hm-fs-label); color: var(--hm-muted); }
/* UX-C S3 · destination state card (§4a.2): the finding's single-proposal state — a status tag + one line,
   no ETA. Reuses the .tag tones (mint/sand/neutral). Left rule keys the tone: green=applied/improved,
   amber=needs attention, neutral=in-progress/inconclusive. */
.ux-shell .ux-dest { padding: 14px 16px; border: 1px solid var(--hm-line); border-left: 3px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); margin-top: 16px; }
.ux-shell .ux-dest .tag { margin-bottom: 8px; }
.ux-shell .ux-dest-line { margin: 0; color: var(--hm-ink); font-size: var(--hm-fs-body); line-height: 1.5; }
/* UX-E completion S3 · UX-24: the follow-up card names the draft it follows. */
.ux-shell .ux-dest-draft { margin: 0 0 8px; color: var(--hm-muted); font-size: var(--hm-fs-meta); line-height: 1.5; }
.ux-shell .ux-dest-draft strong { color: var(--hm-ink); }
.ux-shell .ux-dest-progress { margin: 8px 0 0; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.ux-shell .ux-dest-recover { margin: 8px 0 0; color: var(--hm-pending); font-size: var(--hm-fs-meta); }
.ux-shell .ux-dest-actions { margin-top: 10px; } /* S5-1 · #6: "Draft again" on a rejected / rolled_back card */
/* UX-C S4-2 · 补 6 三态分离: the coarse stage strip (试算/套用/真实改善) above the fine state. */
.ux-shell .ux-dest-stage { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hm-line); }
.ux-shell .ux-dest-stage .tag { margin-bottom: 0; align-self: flex-start; }
.ux-shell .ux-dest-stage-note { color: var(--hm-muted); font-size: var(--hm-fs-label); line-height: 1.45; }
/* Publishing destination sub-tabs (Answer-engine page / Shopper page / Amazon export). */
.ux-shell .ux-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ux-shell .ux-subtabs a { color: var(--hm-muted); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); font-size: var(--hm-fs-label); padding: 6px 14px; text-decoration: none; font-weight: 400; }
.ux-shell .ux-subtabs a:hover { color: var(--hm-ink); }
.ux-shell .ux-subtabs a.ux-sub-active { background: var(--hm-mint); color: var(--hm-primary); border-color: var(--hm-mint); font-weight: 600; }

/* UX-B S3 · Agent policy · Business context panel. Reuses the .workcard shell for each row; these only
   add the create row + the per-row meta line + the action group. Scoped to .ux-shell so OFF is unchanged. */
.ux-shell .ux-agent-policy .ctx-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.ux-shell .ux-agent-policy .ctx-form select,
.ux-shell .ux-agent-policy .ctx-form input[type="text"] { padding: 9px 11px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); font-size: var(--hm-fs-label); background: var(--hm-surface); color: var(--hm-ink); }
.ux-shell .ux-agent-policy .ctx-form input[type="text"] { flex: 1 1 260px; }
.ux-shell .ctx-card .ctx-meta { font-size: var(--hm-fs-label); color: var(--hm-muted); margin: 6px 0 0; }
.ux-shell .ctx-card .ctx-actions { display: flex; gap: 8px; align-items: center; }
.diff-row.ba-row code { flex: 1 1 14rem; min-width: 0; }
.ba-source { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ba-source a { color: inherit; text-decoration: underline; }
.diff-row.diff-missing code { color: var(--hm-muted); }
.diff-add-manual:hover { background: var(--hm-mint); }
.s1-field-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s1-field-chip {
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: inherit;
  border-radius: var(--hm-radius-pill);
  padding: 4px 11px;
  font-size: var(--hm-fs-label);
  cursor: pointer;
}
.s1-field-chip:focus-visible, .diff-add-manual:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.s1-draft-outcome {
  border: 1px solid var(--hm-line);
  border-left: 3px solid var(--hm-primary);
  border-radius: var(--hm-radius-control);
  padding: 10px 14px;
  margin: 6px 0 10px;
  background: var(--hm-surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.s1-draft-outcome p { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.s1-draft-outcome[data-state="unknown"],
.s1-draft-outcome[data-state="source_gone"],
.s1-draft-outcome[data-state="forbidden"],
.s1-draft-outcome[data-state="not_found"],
.s1-draft-outcome[data-state="conflict"],
.s1-draft-outcome[data-state="rejected"] { border-left-color: var(--hm-danger); }
.ux-draftrow-noroute { font-size: var(--hm-fs-meta); color: var(--hm-muted); }
/* F3C-TRACE T1c: "After this change" on a buyer question (the approved mock's change scene) — tokens only */
.trace-section { margin-top: var(--hm-space-4); }
.trace-section h2 { margin: 0 0 var(--hm-space-3); }
.trace-link + .trace-link { margin-top: var(--hm-space-5); padding-top: var(--hm-space-5); border-top: 1px solid var(--hm-line); }
.trace-row { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-3) var(--hm-space-4); flex-wrap: wrap; }
.trace-row h3 { margin: 0; font-size: var(--hm-fs-section); }
.trace-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--hm-space-3); margin: var(--hm-space-4) 0; }
.trace-time { padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); min-width: 0; }
.trace-time b, .trace-time span { display: block; overflow-wrap: anywhere; }
.trace-time span { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.trace-way { margin-top: var(--hm-space-4); padding-top: var(--hm-space-4); border-top: 1px solid var(--hm-line); }
.trace-way h3 { font-size: var(--hm-fs-body); }
.trace-round { padding: var(--hm-space-4); background: var(--hm-neutral); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); min-width: 0; }
.trace-round p { margin: var(--hm-space-3) 0; }
.trace-metric strong { display: block; font-size: var(--hm-fs-kpi); }
.trace-label { display: block; font-size: var(--hm-fs-label); font-weight: 600; text-transform: uppercase; color: var(--hm-muted); }
.trace-reasons { margin: 0 0 var(--hm-space-2); padding-left: 1.2em; }
.trace-reasons li { overflow-wrap: anywhere; }
.trace-actions { display: flex; gap: var(--hm-space-2); flex-wrap: wrap; margin-top: var(--hm-space-4); }
.trace-section [data-trace-read-status] { margin-bottom: var(--hm-space-1); }

/* UX-E B1 · UX-01 — Results source index: one wrapping row of links to the cards below. Cards get scroll-margin so the
   heading isn't tucked under the sticky top bar, and a visible focus ring when the index moves focus to them. */
.results-index { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0; }
.results-index a { min-height: var(--hm-control-height); display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); color: inherit; font-size: var(--hm-fs-label); font-weight: 600; text-decoration: none; }
.results-index a:hover,
.results-index a:focus-visible { border-color: currentColor; }

/* UX-E B1 · UX-23 — the Overview's "now" line, and a draft's time labels: reasoning as prepared. */
.ux-ws-now { margin: 0 0 8px; font-size: var(--hm-fs-meta); color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.cs-rationale-when { font-weight: 600; color: var(--hm-muted); }
.pil-src-legacy { color: var(--hm-pending); border-color: var(--hm-pending-line); background: var(--hm-sand); }
.pil-terms-unconfirmed { display: grid; gap: 6px; justify-items: start; margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--hm-pending); background: var(--hm-sand); }
.pil-terms-unconfirmed p { margin: 0; font-size: var(--hm-fs-meta); }

/* Results › Advanced diagnostics (D6) */
.results-advanced { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-3); margin: var(--hm-space-2) 0 var(--hm-space-4); font-size: var(--hm-fs-label); }
.results-advanced a { color: var(--hm-primary); font-weight: 600; }

/* ── UX-E B2b-2 · Agent checks (UX-66 / UX-67): the schedule reads as a sentence; context is added by task ── */
.ctx-schedule-form { align-items: end; }
.ctx-field { display: grid; gap: 4px; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); }
.ctx-field select, .ctx-field input { min-height: var(--hm-control-height); }
.ctx-schedule-state { font-size: var(--hm-fs-label); color: var(--hm-pending); }
.ctx-confirm-choice { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; font-size: var(--hm-fs-label); }
.ctx-confirm-choice legend { padding: 0; font-weight: 600; color: var(--hm-muted); }
.ctx-confirm-choice label { display: flex; align-items: center; gap: 6px; font-weight: 400; }

/* ── UX-E B3 · items 1, 3, 6, 8 — Results states and the two controls that had no rule at all ───────────────────── */

/* Item 1 · a controlled test in flight. The three metric slots keep their places as labelled skeletons, so the card
   does not jump when the numbers arrive and nothing claims to have been measured while it is still measuring. */
.results-runstate { margin: 0 0 8px; }
.ux-resolved-list a { color: var(--hm-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── UX-E completion S2 · Workbench ───────────────────────────────────────────────────────────────────────────────── */
/* UX-12: the Drafts tab carries the one "waiting for review" number. */
.ux-wbtab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: var(--hm-space-1); padding: 0 6px; border-radius: var(--hm-radius-pill); background: var(--hm-mint); color: var(--hm-primary); font-size: var(--hm-fs-label); font-weight: 600; line-height: 1; }
/* UX-13: what the two actions do, in plain sight (not a tooltip). */
.ux-action-notes { margin: 0 0 var(--hm-space-4); font-size: var(--hm-fs-label); line-height: 1.5; color: var(--hm-muted); }
.ux-actrow-found > summary::-webkit-details-marker { display: none; }
.ux-actnote { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-actrow-found .ux-actnote strong { color: var(--hm-ink); }
.ux-actrow-none .ux-actnote { font-style: italic; }
.ux-actproducts { margin: var(--hm-space-2) 0 0; padding: 0 0 0 var(--hm-space-4); display: grid; gap: var(--hm-space-1); font-size: var(--hm-fs-meta); }
.ux-actproducts a { color: var(--hm-primary); font-weight: 600; }
/* UX-E completion S9 · A4: where a stated term came from — the page's structured data, or the sentence in its text. */
.pil-term-src { margin: 0; font-size: var(--hm-fs-label); overflow-wrap: anywhere; }
.pil-plans { margin-top: var(--hm-space-3); }
.pil-plans-note { margin: var(--hm-space-2) 0 0; font-size: var(--hm-fs-label); }
.pil-terms-all { margin-top: var(--hm-space-3); }

/* ── UX-E completion S6 · UX-36: Publishing opens on where the product is public — one row per destination, its state,
   the live version and the one next step; the peer comparison follows the panel, folded. ── */
.pub-summary { display: grid; gap: 8px; margin-bottom: 16px; }
.pub-dest-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.pub-dest-main strong { font-size: var(--hm-fs-body); }
.pub-dest-state { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); }
.pub-dest-version, .pub-dest-note { flex-basis: 100%; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.pub-dest-action:hover { border-color: var(--hm-primary); }
.pub-peers { margin-top: 16px; }
.pub-peers > summary { cursor: pointer; min-height: var(--hm-control-height); display: flex; align-items: center; font-weight: 600; color: var(--hm-ink); }

/* ── UX-E completion S7 · Results: when a record ran and what it covers (UX-47), the questions a check asked (UX-46),
   one small chart per series (UX-48), how fresh the data is (UX-49), and one spend line per card with a button (UX-50). ── */
.results-when, .results-quota, .results-fresh { margin: 0; color: var(--hm-ink); font-size: var(--hm-fs-label); }
.results-cost-note { margin: 12px 0 8px; }
.results-behind { color: var(--hm-pending); }
.results-questions { margin: 8px 0 12px; }
.results-questions > summary { cursor: pointer; min-height: var(--hm-control-height); display: flex; align-items: center; font-weight: 600; color: var(--hm-primary); }
.results-questions ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.results-questions li { line-height: 1.45; overflow-wrap: anywhere; }
.results-questions small { display: block; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.results-question { color: var(--hm-ink); }
.results-chart { display: block; width: 100%; max-width: 360px; height: 64px; margin: 6px 0; color: var(--hm-primary); }
.results-chart-axis { color: var(--hm-line-strong); }
.ux-shell .pub-dest-changes { display: block; }
.ux-shell .pub-dest-changes-open { display: inline-flex; align-items: center; min-height: var(--hm-control-height); color: var(--hm-primary); font-size: var(--hm-fs-meta); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ux-shell .pub-dest-changes-open:hover { color: var(--hm-primary-hover); }

/* UX-E completion S7 · C1 / UX-51: a list of recommendation decisions — each opens its reason chain in place. */
.decision-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.decision-head { margin: 0 0 4px; color: var(--hm-ink); }
.decision-outcome { margin: 0 0 4px; }
.decision-products { margin: 0 0 4px; padding-left: 18px; display: grid; gap: 2px; }
.decision-why, [data-action="decisions-earlier"] { min-height: var(--hm-control-height); }
.results-decisions { margin-top: 14px; border-top: 1px solid var(--hm-line); padding-top: 10px; min-width: 0; }
.results-decisions h4 { margin: 0 0 4px; font-size: var(--hm-fs-meta); }
.ux-shell .c82-head h3 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.ux-shell .c82-head p { margin: 4px 0 0; font-size: var(--hm-fs-meta); line-height: 1.5; }
.ux-shell .c82-head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ux-shell .c82-notice { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--hm-radius-control); background: var(--hm-mint); font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .c82-error { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--hm-radius-control); background: var(--hm-danger-soft); font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .c82-cards, .ux-shell .c82-change-cards { display: grid; gap: 12px; margin-top: 12px; }
.ux-shell .c82-card, .ux-shell .c82-change-card { display: block; min-width: 0; }
.ux-shell .c82-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ux-shell .c82-card-head h4 { flex: 1 1 100%; margin: 4px 0 0; font-size: var(--hm-fs-body); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .c82-why { font-size: var(--hm-fs-label); color: var(--hm-muted); font-weight: 600; }
.ux-shell .c82-part h5 { margin: 0 0 6px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.ux-shell .c82-lines, .ux-shell .c82-fields, .ux-shell .c82-changes-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ux-shell .c82-lines .c82-groups { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.ux-shell .c82-more > .c82-actions { margin-top: var(--hm-space-2); }
.ux-shell .c82-problems h5 { margin: 0 0 4px; }
.ux-shell .c82-problems ul { margin: 0; padding-left: 18px; }
.ux-shell .c82-product-line a { color: var(--hm-primary); font-weight: 600; }

/* ---- C.8.2 + 2h S4 · Results › AI buying opportunities (observation.js) ---- */
.ux-shell .obs-body { display: grid; gap: 10px; min-width: 0; }
.ux-shell .obs-body p { margin: 0; }
.ux-shell .obs-why { font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.ux-shell .obs-notice { padding: 8px 12px; border-radius: var(--hm-radius-control); background: var(--hm-mint); font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-banner { padding: 8px 12px; border-radius: var(--hm-radius-control); border: 1px solid var(--hm-line); background: var(--hm-neutral); font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-banner-warn { background: var(--hm-sand); border-color: var(--hm-pending-line); }
.ux-shell .obs-banner-bad { background: var(--hm-danger-soft); border-color: var(--hm-danger-line); }
.ux-shell .obs-banner ul { margin: 4px 0 0; padding-left: 18px; }
.ux-shell .obs-banner[data-obs-names-changed] p { margin: 0; }
.ux-shell .obs-banner[data-obs-names-changed] p + p { margin-top: 4px; }
.ux-shell .obs-empty h4, .ux-shell .obs-step-head h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-empty { display: grid; gap: 8px; }
.ux-shell .obs-empty p { font-size: var(--hm-fs-meta); line-height: 1.5; }
.ux-shell .obs-step, .ux-shell .obs-round, .ux-shell .obs-set { display: grid; gap: 10px; min-width: 0; }
.ux-shell .obs-round + .obs-earlier, .ux-shell .obs-set + .obs-round { margin-top: 6px; }
.ux-shell .obs-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.ux-shell .obs-qs { margin: 0; padding-left: 22px; display: grid; gap: 2px; }
.ux-shell .obs-q-meta, .ux-shell .obs-q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.ux-shell .obs-q-meta .obs-muted { display: inline; font-size: var(--hm-fs-label); }
.ux-shell .obs-add { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); }
.ux-shell .obs-ways { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.ux-shell .obs-ways legend { padding: 0; margin-bottom: 4px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.ux-shell .obs-way { display: flex; align-items: flex-start; gap: 10px; min-height: var(--hm-touch-target); padding: 6px 8px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); color: var(--hm-ink); cursor: pointer; min-width: 0; }
.ux-shell .obs-way input { margin-top: 3px; flex: 0 0 auto; }
.ux-shell .obs-way > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .obs-way-off { cursor: not-allowed; opacity: 0.7; }
.ux-shell .obs-kv dt { font-weight: 600; color: var(--hm-ink); }
.ux-shell .obs-kv dd { margin: 0; color: var(--hm-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ux-shell .obs-actions .ux-ws-basis, .ux-shell .imp-actions .ux-ws-basis { margin: 0; } /* a note beside a button is on the button's centre, not a paragraph with margins */
.ux-shell .obs-import h5 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.ux-shell .obs-check { display: flex; align-items: center; gap: 8px; font-size: var(--hm-fs-meta); color: var(--hm-ink); min-height: var(--hm-touch-target); }
.ux-shell .obs-earlier { font-size: var(--hm-fs-meta); }
.ux-shell .obs-earlier > summary { min-height: var(--hm-control-height); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--hm-primary); }
.ux-shell .obs-earlier ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.ux-shell .obs-part { display: grid; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--hm-line); }
.ux-shell .obs-part:focus { outline: none; box-shadow: var(--hm-shadow-focus); border-radius: var(--hm-radius-control); }
.ux-shell .obs-report-wrap { max-width: 100%; overflow-x: auto; }
.ux-shell .obs-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ux-shell .obs-answer-body { grid-column: 1; display: grid; gap: 4px; min-width: 0; }
.ux-shell .obs-answer-q { grid-column: 1; font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-answer-meta { grid-column: 1; font-size: var(--hm-fs-meta); color: var(--hm-muted); overflow-wrap: anywhere; }
.ux-shell .obs-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-reasons, .ux-shell .obs-opps, .ux-shell .obs-summary, .ux-shell .obs-cites, .ux-shell .obs-reading { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .obs-method { font-size: var(--hm-fs-label); }
.ux-shell .c82-obs-line a, .ux-shell [data-c82-line="ai_observation"] a { white-space: nowrap; }
.obs-fix { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; font-size: var(--hm-fs-meta); }
.obs-fix legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.obs-fix label { display: flex; align-items: center; gap: 8px; min-height: var(--hm-touch-target); }
.ux-shell .obs-bg > summary { cursor: pointer; min-height: var(--hm-control-height); display: flex; align-items: center; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.ux-shell .obs-bg-fields legend { padding: 0; margin-bottom: 4px; }
.ux-shell .obs-bg-product, .ux-shell .obs-bg-targeted, .ux-shell .obs-ask-why { display: flex; align-items: flex-start; gap: 10px; min-height: var(--hm-touch-target); font-size: var(--hm-fs-meta); color: var(--hm-ink); min-width: 0; }
.ux-shell .obs-bg-product input, .ux-shell .obs-bg-targeted input, .ux-shell .obs-ask-why input { margin-top: 3px; flex: 0 0 auto; }
.ux-shell .obs-bg-product > span, .ux-shell .obs-bg-targeted > span, .ux-shell .obs-ask-why > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .obs-bg-status, .ux-shell .obs-bg-sent { display: grid; gap: 8px; min-width: 0; }
.ux-shell .obs-bg-sent > p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.ux-shell .obs-bg-sent > p .obs-sub { display: inline; }
.ux-shell .obs-bg-parts .obs-bg-text { flex: 1 1 100%; min-width: 0; }
.ux-shell .obs-bg-text > summary, .obs-followup > summary, .obs-bg-sent-drawer > summary { cursor: pointer; min-height: var(--hm-control-height); display: flex; align-items: center; font-weight: 600; color: var(--hm-primary); }
.ux-shell .obs-weighed-head .obs-sub { display: inline; }
.obs-lineage { display: grid; gap: 6px; margin: 8px 0; min-width: 0; }
.obs-lineage .obs-sub { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.obs-lineage ul { list-style: none; padding-left: 0; }
.obs-followup, .obs-bg-sent-drawer { display: grid; gap: 6px; padding: 8px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); min-width: 0; }
.ux-shell .c82-ai-weighed { font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .c82-weighed-grid > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.ux-shell .c82-weighed-grid h5 { margin: 0; }
.ux-shell .c82-weighed-grid ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.opp-prepare .obs-muted { font-size: var(--hm-fs-meta); }
.opp-prepare fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 0; }
.opp-prepare legend { padding: 0; margin-bottom: 4px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.opp-prepare .opp-criteria ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opp-prepare .opp-criteria input, .opp-prepare .opp-targets input { margin-top: 3px; flex: 0 0 auto; }
.opp-prepare textarea { width: 100%; max-width: 100%; box-sizing: border-box; font-size: var(--hm-fs-body); }
.ux-shell .c82-next-rounds h6 { font-weight: 600; }
.ux-shell .c82-fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; min-width: 0; }
.ux-shell .c82-fieldset legend { padding: 0; margin-bottom: 4px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.opp-prepare-main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.opp-prepare-plan { min-width: 0; }
.study-plan-preview, .ux-shell .study-plan { margin-top: 10px; display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); min-width: 0; overflow-wrap: anywhere; }
.study-plan-preview { margin-top: 0; }
.study-plan-preview h5, .ux-shell .study-plan h6 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.study-plan-preview h5 .muted, .ux-shell .study-plan h6 .muted { color: var(--hm-muted); font-weight: 400; }
.study-plan-summary { margin: 0; display: grid; gap: 0; min-width: 0; }
.study-plan-summary dt { font-weight: 600; color: var(--hm-muted); }
.study-plan-summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--hm-ink); }
.study-plan-summary ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.study-plan-editor { display: grid; gap: 10px; min-width: 0; }
.study-plan-editor textarea { width: 100%; max-width: 100%; box-sizing: border-box; font-size: var(--hm-fs-body); }
.study-fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; min-width: 0; }
.study-fieldset legend { padding: 0; margin-bottom: 4px; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.study-fieldset .c82-check { align-items: flex-start; overflow-wrap: anywhere; min-width: 0; }
.study-windows { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.study-history > summary { min-height: var(--hm-control-height); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--hm-primary); }
.study-history ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--hm-fs-meta); }
.ux-shell .study-plan .btn { justify-self: start; }
.ux-shell .study-plan .obs-notice { margin: 0; }
/* L2 — what buyers need to know: the round report's block, the drawer's marks and a check by hand. */
.study-coverage { margin-top: 12px; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); min-width: 0; overflow-wrap: anywhere; }
.study-coverage h5, .study-drawer-cov h5 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.study-cov-bar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-cov-bar strong { font-variant-numeric: tabular-nums; }
.study-cov-point { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--hm-line); min-width: 0; }
.study-cov-point h6 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.study-cov-listing { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-table-wrap { max-width: 100%; overflow-x: auto; }
.study-cov-table thead th { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); border-top: 0; }
.study-cov-table .obs-sub { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.study-cov-open { white-space: normal; }
.study-cov-status { font-weight: 600; }
.study-cov-status[data-cov-status="covered"] { color: var(--hm-primary); }
.study-cov-status[data-cov-status="missing"] { color: var(--hm-pending); }
.study-cov-status[data-cov-status="misstated"] { color: var(--hm-danger); }
.study-cov-status[data-cov-status="unknown"], .study-cov-status[data-cov-status="not_applicable"] { color: var(--hm-muted); }
.study-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: var(--hm-radius-pill); background: var(--hm-neutral); color: var(--hm-ink); font-size: var(--hm-fs-label); font-weight: 600; }
.study-drawer-cov { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); min-width: 0; }
.study-check-form { display: grid; gap: 10px; min-width: 0; }
.study-check-status { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.study-check-words { margin: 0; padding: 4px 8px; border-left: 3px solid var(--hm-primary-line); background: var(--hm-surface); font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.study-check-form input[type="text"] { width: 100%; max-width: 100%; box-sizing: border-box; }
.study-changes-list { display: grid; gap: 8px; margin: 0 0 16px; padding: 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); min-width: 0; }
.study-changes-list h3 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.study-changes-list > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.study-watch { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--hm-line); min-width: 0; overflow-wrap: anywhere; }
.study-watch .obs-sub { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.study-changes { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); min-width: 0; overflow-wrap: anywhere; }
.study-cat-bar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-cat-bar strong { font-variant-numeric: tabular-nums; }
.study-cat-bar [data-cat="newly_wrong"] strong { color: var(--hm-danger); }
.study-cat-bar [data-cat="fixed"] strong, .study-cat-bar [data-cat="kept_right"] strong { color: var(--hm-primary); }
.study-ways { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--hm-fs-meta); }
.study-cat > summary { min-height: var(--hm-control-height); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--hm-primary); }
.study-cat ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--hm-fs-meta); }
.study-cat .obs-sub { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.study-excluded caption { text-align: left; font-size: var(--hm-fs-meta); font-weight: 600; padding: 4px 0; }
/* 2h-el · L4: the timeline (a card's, in place of the strategy's History; a Results round's) */
.study-timeline { margin-top: 10px; display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-bg); min-width: 0; overflow-wrap: anywhere; }
.study-timeline h6 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.study-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.study-chain li { display: grid; gap: 0; min-width: 0; padding: 4px 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-chain li[data-done="false"] { color: var(--hm-muted); border-style: dashed; background: transparent; }
.study-chain li[data-done="true"] { border-color: var(--hm-success-line); }
.study-chain .obs-sub { font-size: var(--hm-fs-label); color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.study-lane-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.study-lane[data-lane="commercial"] { background: var(--hm-sand); color: var(--hm-pending); }
.study-lane[data-lane="measurement"] { background: var(--hm-neutral); color: var(--hm-ink); }
.study-caveats { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-lane-col { display: grid; align-content: start; gap: 4px; min-width: 0; }
.study-lane-col h6 { font-size: var(--hm-fs-label); color: var(--hm-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.study-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.study-event time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hm-muted); }
.study-event .obs-sub { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-shell .study-timeline .btn { justify-self: start; }
.ux-shell .study-timeline .obs-notice { margin: 0; }
.study-review h6 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.study-review h6 .muted { color: var(--hm-muted); font-weight: 400; }
.study-review-part h6 { font-size: var(--hm-fs-label); color: var(--hm-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.study-review-part p, .study-review-part ul { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.study-review-part ul { padding-left: 18px; display: grid; gap: 4px; }
.study-review-part time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hm-muted); }
.study-review-part .obs-sub { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.study-review-part .study-review-steps { list-style: none; padding-left: 0; }
.study-review-steps li { display: grid; gap: 4px; justify-items: start; }
.ux-shell .study-review .btn { justify-self: start; }
.ux-shell .study-review .obs-notice, .ux-shell .study-review .obs-banner { margin: 0; }
.qh-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.qh-title { margin: 0; font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.qh-asked { margin: 0; color: var(--hm-muted); overflow-wrap: anywhere; }
.qh-asked summary { cursor: pointer; }
.qh-asked q { display: block; margin-top: 4px; color: var(--hm-ink); }
.qh-part { display: grid; gap: 4px; min-width: 0; }
.qh-part h6 { margin: 0; font-size: var(--hm-fs-label); text-transform: uppercase; letter-spacing: var(--hm-ls-caps); color: var(--hm-muted); font-weight: 600; }
.qh-part p { margin: 0; overflow-wrap: anywhere; }
.qh-list { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.qh-buyer-words { margin: 0; color: var(--hm-muted); overflow-wrap: anywhere; }
.qh-buyer-words summary { cursor: pointer; }
.qh-buyer-words .qh-list { margin-top: 4px; color: var(--hm-ink); }
.qh-list li { margin: 0 0 2px; }
.qh-inferred li { color: var(--hm-muted); }
.qh-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qh-form { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--hm-line-strong); border-radius: var(--hm-radius-control); min-width: 0; }
.qh-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.qh-form legend { font-weight: 600; padding: 0; margin: 0 0 4px; }
.qh-form input[type="text"], .qh-form textarea, .qh-form 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; }
.qh-form .btn, .qh-form .text-button { justify-self: start; }
.qh-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qh-option, .qh-check { display: flex; gap: 6px; align-items: center; }
.qh-batch { margin: 8px 0; }
.c82-asked { display: grid; gap: 6px; margin: 0 0 12px; }
.c82-asked h5 { margin: 0; }

/* ── QN+DX step 11 · UI-R06: a claim's parts, each with its own proof ── */
.claim-parts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.claim-parts li { display: grid; gap: 2px; padding-left: 10px; border-left: 2px solid var(--hm-line); min-width: 0; overflow-wrap: anywhere; }
.claim-part-text { font-size: var(--hm-fs-meta); }
.claim-part-meta { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.evidence-for { margin: 6px 0 0; font-size: var(--hm-fs-label); overflow-wrap: anywhere; }
.claim-parts li .text-button { justify-self: start; width: auto; }

/* ── QN+DX step 13 · UI-R09: a change in words; addresses as sites; the record under Technical details ── */
.c82-changes-list li { min-width: 0; overflow-wrap: anywhere; }
.c82-full, .c82-tech { margin-top: 2px; font-size: var(--hm-fs-label); }
.c82-full > summary, .c82-tech > summary { cursor: pointer; color: var(--hm-muted); }
.c82-url { overflow-wrap: anywhere; word-break: break-all; }
.c82-todo { margin: 4px 0 0; font-size: var(--hm-fs-label); font-weight: 600; }
.agent-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: var(--hm-radius-pill); background: var(--hm-primary); }
.ux-agent-trigger .agent-dot { width: 14px; height: 14px; }
.agent-eyebrow { margin: 0; font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: var(--hm-ls-caps); text-transform: uppercase; color: var(--hm-muted); }
.agent-head h2 { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: var(--hm-fs-section); line-height: 1.35; font-weight: 600; letter-spacing: var(--hm-ls-h2); }
.agent-head h2 .agent-dot { width: 18px; height: 18px; }
.agent-thumb { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--hm-radius-control); background: var(--hm-mint); color: var(--hm-primary); font-size: var(--hm-fs-label); font-weight: 600; }
.agent-product-text b, .agent-pick-text b { font-size: var(--hm-fs-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-context { flex: none; margin: 0 20px 12px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.agent-empty { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.agent-change { flex: none; font-size: var(--hm-fs-label); font-weight: 600; }

/* State 1 · choose a product. */
.agent-pick { display: flex; flex-direction: column; gap: 12px; }
.agent-pick-lead { margin: 0; font-size: var(--hm-fs-meta); line-height: 1.5; }
.agent-pick-select { width: 100%; min-height: var(--hm-control-height); padding: 8px 12px; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-control); background: var(--hm-surface); color: var(--hm-ink); font: inherit; font-size: var(--hm-fs-meta); }
.agent-pick-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); overflow: hidden; }
.agent-pick-list li + li { border-top: 1px solid var(--hm-line); }
.agent-pick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: var(--hm-surface); border: 0; text-align: left; font: inherit; color: var(--hm-ink); cursor: pointer; }
.agent-pick-item:hover { background: var(--hm-mint); }
.agent-tag { flex: none; padding: 2px 8px; border-radius: var(--hm-radius-pill); font-size: var(--hm-fs-label); font-weight: 600; }
.agent-recent { margin: auto 0 0; padding-top: 8px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.agent-recent .text-button { text-decoration: underline; }

/* State 2 · the conversation: the merchant's message right on green, the answer on the neutral — its facts table (a
   value, or an amber Not stated that takes none), one note, and where it came from. */
.agent-msg { display: flex; flex-direction: column; gap: 8px; max-width: 92%; }
.agent-msg-you { align-self: flex-end; align-items: flex-end; }
.agent-msg-agent { align-self: stretch; max-width: 100%; }
.agent-bubble { margin: 0; padding: 10px 14px; background: var(--hm-primary); color: var(--hm-on-dark); border-radius: var(--hm-radius-card); border-bottom-right-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); line-height: 1.45; overflow-wrap: anywhere; }
.agent-msg-status { margin: 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.agent-msg-failed .text-button { font-size: var(--hm-fs-label); text-decoration: underline; }
.agent-answer { padding: 12px 14px; background: var(--hm-neutral); border-radius: var(--hm-radius-card); border-top-left-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); line-height: 1.5; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.agent-answer-text, .agent-fact-note { margin: 0; }
.agent-facts h3 { margin: 0 0 4px; font-size: var(--hm-fs-meta); font-weight: 600; }
.agent-facts dl { margin: 0; }
.agent-fact-note { margin-top: 8px; }
.agent-from { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.agent-pill { padding: 2px 9px; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-ink); }

/* State 3 · not sure: four chips, each asks as it says. */
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chip { padding: 7px 14px; border: 1px solid var(--hm-primary-line); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-primary); font: inherit; font-size: var(--hm-fs-label); font-weight: 600; cursor: pointer; }
.agent-chip:hover { background: var(--hm-mint); }
.agent-prefill-note { margin: 4px 0 0; font-size: var(--hm-fs-label); } /* Information: a value an Agent fact card filled in */
.agent-card-text { margin: 0; font-size: var(--hm-fs-label); line-height: 1.45; }
.agent-choices { margin-top: 2px; }
.agent-choices .agent-chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.agent-card-link { font-weight: 600; color: var(--hm-primary); }
.agent-card-quiet, .agent-card-failed { background: var(--hm-surface); border-color: var(--hm-line); }
.agent-card-quiet p { margin: 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.agent-card-failed { align-items: flex-start; }
.agent-card-result { margin: 0; font-size: var(--hm-fs-label); overflow-wrap: anywhere; }
.investigation-step { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--hm-line); }
.investigation-step:first-of-type { padding-top: 0; border-top: 0; }
.investigation-choose { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.investigation-note { margin: 0; }
.investigation-item.is-open { border-color: var(--hm-primary-line); }
.investigation-item-title { margin: 0 0 4px; font-size: var(--hm-fs-body); font-weight: 600; }
.investigation-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--hm-radius-pill); background: var(--hm-neutral); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; vertical-align: middle; }
.investigation-counts { margin: 0 0 8px; padding: 0; list-style: none; }
.investigation-question.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-table--compact th, .hm-table--compact td { padding: var(--hm-space-1) var(--hm-space-2); overflow-wrap: anywhere; }
.investigation-fact-form .pil-field input { width: 100%; }
.agent-ref { display: flex; align-items: center; gap: 8px; text-align: left; width: 100%; padding: 9px 11px; background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); font: inherit; font-size: var(--hm-fs-label); color: var(--hm-ink); text-decoration: none; cursor: pointer; }
.agent-ref:hover { border-color: var(--hm-primary-line); box-shadow: 0 0 0 3px var(--hm-mint); }
.agent-ref-kind { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-primary); flex: none; }
.agent-ref-label { flex: 1 1 auto; }
.agent-ref-go { color: var(--hm-muted); flex: none; }
.agent-ref-gone { opacity: .7; cursor: default; flex-wrap: wrap; }
.agent-ref-gone:hover { border-color: var(--hm-line); box-shadow: none; }
.agent-ref-note { font-style: normal; font-size: var(--hm-fs-label); color: var(--hm-muted); flex-basis: 100%; }
.agent-composer { position: relative; display: block; margin: 0; }
.agent-composer textarea { display: block; width: 100%; box-sizing: border-box; resize: none; min-height: 64px; padding: 12px 56px 12px 14px; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-card); font: inherit; font-size: var(--hm-fs-meta); color: var(--hm-ink); background: var(--hm-surface); }
.agent-composer textarea:focus { outline: none; border-color: var(--hm-primary-line); box-shadow: var(--hm-shadow-focus); }
.agent-send { position: absolute; right: 10px; bottom: 10px; width: var(--hm-control-height); height: var(--hm-control-height); border: 0; border-radius: var(--hm-radius-control); background: var(--hm-primary); color: var(--hm-on-dark); font-size: var(--hm-fs-body); font-weight: 600; line-height: 1; cursor: pointer; }
.agent-privacy, .agent-readonly { margin: 0; color: var(--hm-muted); font-size: var(--hm-fs-label); line-height: 1.45; }
.agent-privacy a { color: inherit; text-decoration: underline; }
.ask-screen h3 { margin: 0; font-size: var(--hm-fs-section); color: var(--hm-ink); }
.ask-sub, .ask-small, .ask-meta { color: var(--hm-muted); font-size: var(--hm-fs-meta); margin: 0; }
.ask-title { display: flex; align-items: center; gap: var(--hm-space-2); }
.ask-title h1 { margin: 0; }
.ask-ctx { display: flex; align-items: center; gap: 10px; background: var(--hm-neutral); border-radius: var(--hm-radius-control); padding: 8px 10px; font-size: var(--hm-fs-label); min-width: 0; }
.ask-ctx > span { min-width: 0; overflow-wrap: anywhere; }
.ask-ctx .ask-link, .ask-ctx .ask-pick { margin-left: auto; }
.ask-pick select { max-width: 220px; }
.ask-product, .ask-other { margin: 14px 0 6px; max-width: 520px; }
.ask-field-label { display: block; margin: 0 0 6px; font-weight: 600; font-size: var(--hm-fs-label); }
.ask-product-one { margin: 0; }
.ask-about { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 12px; font-size: var(--hm-fs-body); }
.ask-about strong { font-weight: 600; }
.ask-product-error { margin: 6px 0 0; }
.ux-shell .ask-add-page { padding: 1px 10px; min-height: 0; font-size: var(--hm-fs-label); margin-left: 6px; vertical-align: baseline; }

.ask-error { color: var(--hm-danger); margin: 0; }
.ask-fold > summary { cursor: pointer; color: var(--hm-muted); font-size: var(--hm-fs-meta); font-weight: 600; }
.ask-fold[open] > summary { margin-bottom: 8px; }
.ask-suggest { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ask-field input, .ask-field textarea, .ask-fix input { width: 100%; box-sizing: border-box; border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-control); padding: 8px 10px; font: inherit; font-weight: 400; color: var(--hm-ink); }
.ask-summary { background: var(--hm-mint); border: 1px solid var(--hm-primary-line); border-radius: var(--hm-radius-card); padding: 14px 16px; display: grid; gap: 4px; }
.ask-summary b { font-size: var(--hm-fs-body); color: var(--hm-ink); font-weight: 600; }
.ask-next { border: 2px solid var(--hm-primary); border-radius: var(--hm-radius-card); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.ask-next h4, .ask-h4 { margin: 0; font-size: var(--hm-fs-body); color: var(--hm-ink); font-weight: 600; }
.ask-fix { display: grid; gap: 6px; }
.ask-fix label { font-size: var(--hm-fs-label); color: var(--hm-ink); font-weight: 600; }
.ask-more { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 4px 16px; }
.ask-it:first-child { border-top: 0; }
.ask-it > div { min-width: 0; flex: 1; }
.ask-it b { display: block; color: var(--hm-ink); }
.ask-it span { color: var(--hm-muted); overflow-wrap: anywhere; }
.ask-chip.warn { background: var(--hm-sand); color: var(--hm-pending); }
.ask-llm { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 12px 16px; min-width: 0; }
.ask-llm-warn { background: var(--hm-sand); border-color: var(--hm-pending-line); }
.ask-name { font-weight: 600; font-size: var(--hm-fs-body); color: var(--hm-ink); }
.ask-col { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 10px 12px; font-size: var(--hm-fs-label); min-width: 0; overflow-wrap: anywhere; }
.ask-col h5 { margin: 0 0 6px; font-size: var(--hm-fs-label); color: var(--hm-muted); text-transform: uppercase; font-weight: 600; letter-spacing: var(--hm-ls-caps); }
.ask-col p { margin: 0; }
.ask-details p { font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.ask-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ask-row a { color: var(--hm-primary); overflow-wrap: anywhere; }
.ask-list > .btn { justify-self: start; }
/* ux-layout step 1: with the sidebar beside it the page column is narrower at tablet width; the Publishing crawler box
   takes the column's width instead of its widest line's (it was 648px wide inside a 470px panel at 768px). */
.aio-crawler-health { grid-template-columns: minmax(0, 1fr); }
.aio-crawler-header > *, .aio-crawler-summary > * { min-width: 0; }
/* The crawler rows' five columns need ~650px; in a narrower box (the page column beside the sidebar) they take the
   phone layout — decided by the box's own width, not the window's. */
.aio-crawler-health { container-type: inline-size; }
.ev-list { display: grid; gap: var(--hm-space-1); align-content: start; background: var(--hm-surface); border-radius: var(--hm-radius-card); box-shadow: var(--hm-shadow-sm); padding: var(--hm-space-2); min-width: 0; }
.ev-row-text { display: grid; gap: 4px; min-width: 0; }
.ev-row-text b { font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.ev-row-text small { font-size: var(--hm-fs-meta); color: var(--hm-muted); display: block; overflow-wrap: anywhere; } /* a source's summary is shown whole: never cut with an ellipsis mid-sentence */
.ev-detail .evidence-item-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.ev-label { margin: var(--hm-space-2) 0 0; font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hm-muted); }
.ev-label:first-child { margin-top: 0; }
.ev-inline-groups { display: grid; gap: var(--hm-space-2); padding-left: var(--hm-space-3); border-left: 2px solid var(--hm-primary-line); }
.ev-inline-groups .evidence-detail-group h5 { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ev-inline-groups ul { margin: var(--hm-space-1) 0 0; padding-left: var(--hm-space-4); }
.ev-row-text { flex: 1 1 180px; }
.ev-list > * { min-width: 0; }
.ov-card > :first-child { margin-top: 0; }
.ov-card > :last-child { margin-bottom: 0; }
.ov-card .ux-ws-addon { border-top: 1px solid var(--hm-line); margin-top: var(--hm-space-4); padding-top: var(--hm-space-4); }
.ov-obs .ov-ask { margin-top: var(--hm-space-3); }
.ov-places { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-2); }
.ov-places li { display: grid; gap: 2px; padding-bottom: var(--hm-space-2); border-bottom: 1px solid var(--hm-line); }
.ov-places li:last-child { border-bottom: 0; padding-bottom: 0; }
.ov-places span { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ov-places a { overflow-wrap: anywhere; }
.pub-card .pub-summary { margin-bottom: 0; }
.pub-card.perm-card > h2:first-child { margin-top: 0; } /* the card's title starts 24px from its top, like every card (it sat 48px down) */
.pub-card .pub-dest { border: 0; border-bottom: 1px solid var(--hm-line); border-radius: 0; padding: var(--hm-space-3) 0; }
.pub-card .pub-dest:last-of-type { border-bottom: 0; }
.pub-detail .ux-pub-panel > :first-child { margin-top: 0; }
.ux-shell .ux-user-email { font-size: var(--hm-fs-meta); }
body.ux-shell .ux-topbar .ux-search .ux-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hist-layout:not([data-hist-show="all"]) .hist-part:not([data-hist-part]) { display: none; }
.hist-part > .ux-ws-addon { border: 0; margin: 0; padding: 0; }
.perm-card h2 { margin-top: 0; }
.wb-stat > span:first-child { display: grid; gap: var(--hm-space-2); min-width: 0; }
.wb-stat.active { box-shadow: inset 0 0 0 2px var(--hm-primary-line), var(--hm-shadow-sm); }
.wb-card > .c82-opps-slot > *:first-child, .wb-card > .ux-plan-batch-slot > *:first-child { margin-top: 0; }
.wb-cardhead h2 { margin: 0; font-size: var(--hm-fs-section); }
.wb-cardhead-title { display: inline-flex; align-items: center; gap: var(--hm-space-2); min-width: 0; } /* a card's title and its (i) stay together at the left of the head */
.wb-filter-btn.active { background: var(--hm-mint); color: var(--hm-primary); font-weight: 600; }
.wb-list:not([data-wb-show="all"]) .wb-row { display: none; }
.wb-list[data-wb-show="drafts"] .wb-row[data-wb-kind="drafts"], .wb-list[data-wb-show="check"] .wb-row[data-wb-kind="check"], .wb-list[data-wb-show="input"] .wb-row[data-wb-kind="input"] { display: block; }
.wb-list .wb-row + .wb-row { border-top: 1px solid var(--hm-line); }
.wb-checks .status-line { display: grid; justify-items: start; gap: var(--hm-space-2); }
/* ux-layout 3b: History's closed questions — each with "Open it again". */
.hist-layout[data-hist-show="questions"] .hist-part:not([data-hist-part="questions"]) { display: none; }
.hist-questions { list-style: none; margin: var(--hm-space-2) 0 0; padding: 0; display: grid; }
.hist-question { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-2); padding: var(--hm-space-3) 0; border-bottom: 1px solid var(--hm-line); }
.hist-question:last-child { border-bottom: 0; }
.hist-question-main { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
/* UXL3A-1: the count and the empty line follow the open filter. */
.wb-attention .wb-count { display: none; }
.wb-attention[data-wb-show="all"] .wb-count[data-wb-count-for="all"], .wb-attention[data-wb-show="drafts"] .wb-count[data-wb-count-for="drafts"],
.wb-attention[data-wb-show="check"] .wb-count[data-wb-count-for="check"], .wb-attention[data-wb-show="input"] .wb-count[data-wb-count-for="input"] { display: inline; }
.wb-list .wb-empty { display: none; margin: var(--hm-space-3) 0 0; }
.wb-list[data-wb-show="drafts"] .wb-empty[data-wb-empty-for="drafts"], .wb-list[data-wb-show="input"] .wb-empty[data-wb-empty-for="input"] { display: block; }
.wb-cardhead h2 { display: inline-flex; align-items: center; gap: var(--hm-space-2); }
.wb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); margin: 4px 0 6px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.wb-task-title { margin: 0 0 4px; font-size: var(--hm-fs-body); font-weight: 600; line-height: 1.4; color: var(--hm-ink); overflow-wrap: anywhere; }
.wb-recent-list { list-style: none; margin: 0; padding: 0; display: grid; }
.wb-recent-list li { display: flex; gap: var(--hm-space-3); align-items: flex-start; padding: var(--hm-space-3) 0; border-bottom: 1px solid var(--hm-line); }
.wb-recent-list li:last-child { border-bottom: 0; }
.wb-recent-text { display: grid; gap: 2px; min-width: 0; }
.wb-recent-text a { font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.wb-recent-text a:hover { text-decoration: underline; }
.wb-subline { font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.wb-agent-line { margin: 0 0 var(--hm-space-3); font-size: var(--hm-fs-meta); color: var(--hm-ink); }
.wb-main > .ux-scoring-notice, .wb-main > [data-scoring-notice] { margin: 0; }

/* ux-layout 3a (strictly the prototype): every kind of work is a row of Needs your attention; buyer questions are the
   "Check again" rows, adding questions and their states show on that view; the last check is the card's foot line; a
   question's card or suggested plans open in a side panel. */
.wb-list:not([data-wb-show="check"]) .wb-qtools, .wb-list:not([data-wb-show="check"]) .wb-qstate { display: none; }
.wb-list:not([data-wb-show="all"]) [data-wb-caughtup], .wb-list:has(.wb-row) [data-wb-caughtup] { display: none; }
.wb-qtools:empty { display: none; }
.wb-row > .ux-notice { margin: var(--hm-space-3) 0; }
.wb-attention > .wb-checks { margin-top: var(--hm-space-4); padding-top: var(--hm-space-4); border-top: 1px solid var(--hm-line); }
.wb-attention > .wb-checks .status-line { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hm-space-2); }
.wb-checks-state, .wb-checks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2) var(--hm-space-3); }
.wb-checks-run { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2) var(--hm-space-3); }
.wb-checks-actions > .btn.ghost:last-child { margin-inline-start: auto; } /* Check settings stands apart on the right, so the (i) before it reads as the actions' own */
.wb-attention > .wb-checks .wb-agent-line { margin: 0 0 var(--hm-space-2); }
.wb-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.wb-drawer::backdrop { background: var(--hm-overlay); }
.wb-drawer-head h2 { margin: 0; font-size: var(--hm-fs-section); }
.wb-drawer-body > .c82-card, .wb-drawer-body > .c82-fold { margin: 0; }
.ux-announce-dismiss:hover, .ux-announce-details:hover { background: none; text-decoration-thickness: 2px; }
.ux-shell .results-scope .results-picker select { min-height: var(--hm-control-height); max-width: 280px; }
.ux-shell .results-scope-note { flex: 1 1 260px; margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ux-shell .results-howto { display: inline-flex; align-items: center; gap: var(--hm-space-1); font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-primary); }
.ux-shell .results-ov-source:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.ux-shell .results-panel { display: grid; gap: var(--hm-space-5); }
.ux-shell .results-panel[hidden] { display: none; }
.ux-shell .results-ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--hm-space-3); margin-bottom: var(--hm-space-3); }
.ux-shell .results-ov-head h2 { margin: 0; font-size: var(--hm-fs-section); letter-spacing: var(--hm-ls-h2); font-weight: 600; }
.ux-shell .results-ov-question { padding-top: var(--hm-space-4); border-top: 1px solid var(--hm-line); overflow-wrap: anywhere; }
.ux-shell .results-ov-question h3 { margin: var(--hm-space-1) 0 var(--hm-space-2); font-size: var(--hm-fs-body); font-weight: 600; }
.ux-shell .results-ov-links { display: flex; flex-wrap: wrap; gap: var(--hm-space-2) var(--hm-space-5); margin-top: var(--hm-space-3); }
.ux-shell .results-ov-bars { display: flex; align-items: flex-end; gap: var(--hm-space-6); height: 120px; padding: 0 var(--hm-space-4) var(--hm-space-2); margin: var(--hm-space-2) 0 var(--hm-space-3); border-bottom: 1px solid var(--hm-line); }
.ux-shell .results-ov-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--hm-space-1); }
.ux-shell .results-ov-bar span { display: block; width: 100%; max-width: 64px; border-radius: var(--hm-radius-control) var(--hm-radius-control) 0 0; background: var(--hm-primary-line); }
.ux-shell .results-ov-bar:last-child span { background: var(--hm-primary); }
.ux-shell .results-ov-bar small { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-shell .results-ov-row { display: flex; align-items: center; gap: var(--hm-space-3); padding: var(--hm-space-4) 0; border-top: 1px solid var(--hm-line); }
.ux-shell .results-ov-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .results-ov-row p { margin: var(--hm-space-1) 0 0; }
.ux-shell .results-ov-source { appearance: none; display: flex; align-items: center; gap: var(--hm-space-3); width: 100%; min-height: var(--hm-touch-target); padding: var(--hm-space-4) 0; border: 0; border-bottom: 1px solid var(--hm-line); background: transparent; color: var(--hm-ink); font: inherit; font-size: var(--hm-fs-label); text-align: left; cursor: pointer; }
.ux-shell .results-ov-source { white-space: normal; }
.ux-shell .results-ov-source > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .results-ov-source > .tag { flex: none; }
.ux-shell .results-ov-source small { display: block; margin-top: var(--hm-space-1); font-size: var(--hm-fs-label); font-weight: 400; color: var(--hm-muted); }
.ux-shell .results-note, .ux-shell .results-ov-question p:not(.results-ov-eyebrow) { font-size: var(--hm-fs-meta); line-height: var(--hm-lh-body); }
.ux-shell .results-ov-card > .results-link { margin-top: var(--hm-space-3); }
/* ux-layout 3c (one path): what buyers are asking for, and the merchant's line. */
.ask-need { margin: 0 0 var(--hm-space-1); font-size: var(--hm-fs-body); font-weight: 600; color: var(--hm-ink); }
.ask-line { margin-top: var(--hm-space-3); }
.ask-line .ask-input { font-size: var(--hm-fs-body); padding: var(--hm-space-3); }
.ask-goes { display: block; margin-top: var(--hm-space-1); }
.ask-reasons { margin: var(--hm-space-2) 0 0; padding-left: var(--hm-space-5); color: var(--hm-ink); font-size: var(--hm-fs-label); }
.ux-shell .wb-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-3); margin-bottom: var(--hm-space-3); padding-bottom: var(--hm-space-3); border-bottom: 1px solid var(--hm-line); }
.ux-shell .wb-filter-row .wb-filter { margin: 0; padding: 0; border: 0; }
.ux-shell .wb-drafts .ux-draftrow:last-child { border-bottom: 0; }
.ux-shell .wb-drafts .ux-draftrow-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .wb-drafts .ux-draftrow[hidden], .ux-shell .wb-drafts [hidden] { display: none; }
.ux-shell .wb-activity .wb-filter { margin-bottom: var(--hm-space-3); }
.ux-shell .wb-tl-day { margin: var(--hm-space-4) 0 var(--hm-space-1); font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: var(--hm-ls-caps); text-transform: uppercase; color: var(--hm-muted); }
.ux-shell .wb-tl-row > .ux-actrow { flex: 1; min-width: 0; margin: 0; border: 0; padding: 0; background: transparent; }
.ux-shell .wb-activity[data-activity-show="check"] [data-activity-kind="import"], .ux-shell .wb-activity[data-activity-show="import"] [data-activity-kind="check"],
.ux-shell .wb-activity[data-activity-show="check"] [data-activity-state="import"], .ux-shell .wb-activity[data-activity-show="import"] [data-activity-state="check"] { display: none; }
.citation-lead { margin: 4px 0 0; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.citation-table tbody th { font-weight: 400; }
.citation-excerpt { margin: var(--hm-space-2) 0; padding: 10px 14px; border-left: 3px solid var(--hm-line); background: var(--hm-neutral); font-size: var(--hm-fs-meta); white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-searched > summary { cursor: pointer; min-height: var(--hm-control-height); display: flex; align-items: center; font-size: var(--hm-fs-meta); }

/* ux-layout K (Codex's Changes mock, 10-04): a rail of the products with changes (a select on a phone), the chosen
   product's head, three tabs that each show one kind of record, the change card with old and new side by side, and the
   next step beside it. */
.ux-shell .chg-scope { display: flex; align-items: center; gap: var(--hm-space-2); margin: 0; }
.ux-shell .chg-scope-pill { display: inline-block; padding: 4px 12px; border-radius: var(--hm-radius-pill); background: var(--hm-surface); border: 1px solid var(--hm-line); color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .wb-changes { min-width: 0; }
.ux-shell .chg-rail-head span { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .chg-rail-search input { width: 100%; min-height: var(--hm-control-height); box-sizing: border-box; }
.ux-shell .chg-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-1); }
.ux-shell .chg-rail-item { width: 100%; min-height: var(--hm-control-height); display: flex; align-items: center; gap: var(--hm-space-3); padding: var(--hm-space-2) var(--hm-space-2); border: 1px solid transparent; border-radius: var(--hm-radius-control); background: transparent; color: var(--hm-ink); font: inherit; text-align: left; white-space: normal; cursor: pointer; }
.ux-shell .chg-rail-item:hover { background: var(--hm-bg); }
.ux-shell .chg-rail-item.active { background: var(--hm-surface); border-color: var(--hm-primary-line); box-shadow: var(--hm-shadow-sm); }
.ux-shell .chg-rail-item:focus-visible, .ux-shell .chg-row:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.ux-shell .chg-rail-text { display: grid; gap: 2px; min-width: 0; }
.ux-shell .chg-rail-text strong { font-size: var(--hm-fs-meta); overflow-wrap: anywhere; font-weight: 600; }
.ux-shell .chg-rail-text small { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-shell .chg-rail-note, .ux-shell .chg-rail-none { margin: 0; padding: var(--hm-space-2) var(--hm-space-1) 0; border-top: 1px solid var(--hm-line); color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .chg-rail-none { border-top: 0; }
.ux-shell .chg-initial { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--hm-radius-control); background: var(--hm-mint); color: var(--hm-primary); font-size: var(--hm-fs-label); font-weight: 600; }
.ux-shell .chg-initial-lg { width: 48px; height: 48px; font-size: var(--hm-fs-section); }
.ux-shell .chg-body { display: grid; gap: var(--hm-space-4); min-width: 0; }
.ux-shell .chg-product-head { display: flex; align-items: center; gap: var(--hm-space-3); min-width: 0; }
.ux-shell .chg-product-name { min-width: 0; }
.ux-shell .chg-product-name h2 { margin: 0; font-size: var(--hm-fs-section); overflow-wrap: anywhere; font-weight: 600; letter-spacing: var(--hm-ls-h2); }
.ux-shell .chg-product-name p { margin: 2px 0 0; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .chg-open { margin-left: auto; white-space: nowrap; }
.ux-shell .chg-panel { display: grid; gap: var(--hm-space-4); min-width: 0; }
.ux-shell .chg-card h3 { margin: 0; font-size: var(--hm-fs-body); color: var(--hm-ink); font-weight: 600; }
.ux-shell .chg-change h3 { font-size: var(--hm-fs-section); font-weight: 600; letter-spacing: var(--hm-ls-h2); }
.ux-shell .chg-card p { margin: 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); overflow-wrap: anywhere; }
.ux-shell .chg-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-3); flex-wrap: wrap; }
.ux-shell .chg-date { color: var(--hm-muted); font-size: var(--hm-fs-label); white-space: nowrap; }
.ux-shell .chg-dest { display: flex; align-items: center; gap: var(--hm-space-2); color: var(--hm-muted); }
.ux-shell .chg-dest strong { color: var(--hm-ink); }
.ux-shell .chg-context, .ux-shell .chg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-3); padding-top: var(--hm-space-3); border-top: 1px solid var(--hm-line); font-size: var(--hm-fs-label); flex-wrap: wrap; }
.ux-shell .chg-after { background: var(--hm-mint); border: 1px solid var(--hm-primary-line); }
.ux-shell .chg-field { display: block; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-shell .chg-quiet { margin: 0; display: flex; align-items: center; gap: var(--hm-space-2); color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .chg-next { background: var(--hm-mint); border-color: var(--hm-primary-line); }
.ux-shell .chg-status { display: flex; align-items: center; gap: var(--hm-space-2); color: var(--hm-muted); }
.ux-shell .chg-card .chg-obs { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .chg-wide { width: 100%; box-sizing: border-box; }
.ux-shell .chg-side-row { display: flex; align-items: baseline; justify-content: space-between; }
.ux-shell .chg-amount { font-size: var(--hm-fs-section); color: var(--hm-ink); }
.ux-shell .chg-row-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .chg-basis { margin: 0; display: flex; align-items: center; gap: var(--hm-space-2); flex-wrap: wrap; font-size: var(--hm-fs-label); }
.ux-shell .chg-sources-head { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-3); flex-wrap: wrap; }
.ux-shell .chg-sources-head p { margin: 0; display: flex; align-items: center; gap: var(--hm-space-2); font-size: var(--hm-fs-label); }
.ux-shell .chg-empty { background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: var(--hm-space-5); display: grid; gap: var(--hm-space-2); justify-items: start; }
.ux-shell .chg-empty h3 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; }
.ux-shell .chg-empty p { margin: 0; color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .ux-bell-head { display: flex; align-items: center; justify-content: space-between; gap: var(--hm-space-3); }
.ux-shell .ux-bell-head h2 { margin: 0; font-size: var(--hm-fs-body); color: var(--hm-ink); font-weight: 600; }
.ux-shell .ux-bell-head h2:focus { outline: none; }
.ux-shell .ux-bell-sub { margin: 2px 0 var(--hm-space-3); color: var(--hm-muted); font-size: var(--hm-fs-label); line-height: var(--hm-lh-body); }
.ux-shell .ux-bell-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ux-shell .ux-bell-item { display: grid; gap: 4px; padding: var(--hm-space-3) 0; border-top: 1px solid var(--hm-line); justify-items: start; }
.ux-shell .ux-bell-meta { margin: 0; display: flex; align-items: center; gap: var(--hm-space-2); color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .ux-bell-new { padding: 0 8px; border-radius: var(--hm-radius-pill); background: var(--hm-mint); color: var(--hm-primary); font-weight: 600; }
.ux-shell .ux-bell-text { margin: 0; font-size: var(--hm-fs-label); line-height: var(--hm-lh-body); color: var(--hm-muted); overflow-wrap: anywhere; }
.ux-shell .ux-bell-item.unread .ux-bell-text { color: var(--hm-ink); }
.ux-shell .ux-bell-foot { margin: var(--hm-space-2) 0 0; padding-top: var(--hm-space-3); border-top: 1px solid var(--hm-line); font-size: var(--hm-fs-label); line-height: var(--hm-lh-body); }
body.ux-shell .hm-page-header .hm-eyebrow, .ux-shell .ov-eyebrow { font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: var(--hm-ls-caps); line-height: var(--hm-lh-body); }
.ux-shell .wb-cardhead h2 { font-size: var(--hm-fs-section); font-weight: 600; letter-spacing: var(--hm-ls-h2); line-height: var(--hm-lh-title); }
.ux-shell .wb-stat-label { font-size: var(--hm-fs-label); }
.ux-shell .wb-filter-btn { font-size: var(--hm-fs-label); font-weight: 400; }
.ux-shell .wb-filter-btn.active { font-weight: 600; }
.ux-shell .wb-task-title { font-size: var(--hm-fs-body); font-weight: 600; line-height: var(--hm-lh-title); }
.ux-shell .wb-task-detail, .ux-shell .wb-subline, .ux-shell .wb-agent-line, .ux-shell .wb-agent-line strong, .ux-shell .wb-recent-text a, .ux-shell .wb-recent-all, .ux-shell .ux-action-notes { font-size: var(--hm-fs-meta); line-height: var(--hm-lh-body); }
.ux-shell .wb-recent-text a, .ux-shell .wb-recent-all, .ux-shell .wb-note a { font-weight: 600; }
.ux-shell .wb-note, .ux-shell .wb-start p:not(.ov-eyebrow), .ux-shell .empty-inline { font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); }
.ux-shell .wb-meta { font-size: var(--hm-fs-label); }
.ux-shell .wb-drawer-head h2 { font-size: var(--hm-fs-section); font-weight: 600; letter-spacing: var(--hm-ls-h2); }
.ux-shell .chg-card p.chg-eyebrow, .ux-shell .chg-card p.chg-version-label { font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: var(--hm-ls-caps); }
.ux-shell :is(.hist-filter-btn).active, .ux-shell :is(.ux-subnav, .ux-subtabs) a.ux-sub-active { font-weight: 600; }
.ux-shell :is(.pub-card, .competitive-card, .ov-card) h2 { font-size: var(--hm-fs-section); font-weight: 600; letter-spacing: var(--hm-ls-h2); line-height: var(--hm-lh-title); }
.ux-shell .ux-workspace .ux-subnav a.ux-sub-active { font-weight: 600; }
.ux-shell :is(.cpg-galtitle, .ux-intent-k, .pub-dest-main strong, .fix-heading-row strong, details.ux-tech strong) { font-size: var(--hm-fs-body); font-weight: 600; }
/* ④: an "(optional)" hint is 12 wherever it is. */
.crd-form .ask-field small, .sp-flag .ask-field small { font-size: var(--hm-fs-label); }

/* Consistency report (Results › Consistency, design v1.4 §9; UI rulings in planning/ux/merchant-layout/
   consistency-report-ui-consistency-sonnet.md): console components and tokens only — no new colours. */
.cr-panel { display: grid; gap: var(--hm-space-3); }
.cr-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); }
.crd-chips { display: flex; flex-wrap: wrap; gap: var(--hm-space-1); }
.crd .crd-meta, .crd .crd-after { margin: 0; }
.crd-h { margin: var(--hm-space-2) 0 0; font-size: var(--hm-fs-body); }
.crd-pages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-3); }
.crd-page-differs { border-color: var(--hm-pending-line); background: var(--hm-sand); }
.crd-page-url, .crd-page-meta { margin: var(--hm-space-1) 0 0; font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.crd-flags, .crd-suggest { margin: 0; font-size: var(--hm-fs-label); overflow-wrap: anywhere; }
.crd [data-crd-notice] a { position: relative; display: inline-block; color: var(--hm-ink); font-weight: 600; } /* ⑤ */
/* ③ ④: hints read as hints; fields at Ask's size. */
.crd-form .ask-field small, .sp-flag .ask-field small { font-weight: 400; }
.crd .hm-version-summary > div:first-child dd { font-weight: 600; font-size: var(--hm-fs-body); }
.crd .crd-h { font-size: var(--hm-fs-body); font-weight: 600; }
.crd .crd-after strong { font-weight: 600; }
.crd [tabindex="-1"]:focus { outline: none; }
.crd-suggest strong { font-weight: 600; }
.crd-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.crd-form { display: grid; gap: var(--hm-space-2); }
.cr-schedule-line { margin: 0; font-size: var(--hm-fs-meta); color: var(--hm-ink); overflow-wrap: anywhere; }
.cr-schedule-line strong { font-weight: 600; }
/* assist-sonnect ③ ②: one inline-link pattern — as Source pages' "Open in Consistency" (12/600 ink, the hit area below). */
.ux-shell .cr-schedule .cr-schedule-change { position: relative; display: inline; background: none; border: 0; padding: 0; min-height: 0; height: auto; font-family: inherit; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-primary); text-decoration: none; cursor: pointer; white-space: nowrap; } /* a link's colour, not body text */
.ux-shell .cr-schedule .ctx-form { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); align-items: end; margin: var(--hm-space-2) 0 var(--hm-space-1); }
.ux-shell .cr-schedule [data-cr-schedule-error] { flex-basis: 100%; margin: 0; font-size: var(--hm-fs-meta); } /* ③: as every sand notice */
.cr-unchecked { margin-top: var(--hm-space-1); font-size: var(--hm-fs-label); }
/* CR-IR5: "Showing N of M · Load more" — the Load more link is the one inline-link pattern. */
.ux-shell .cr-showing { margin: 0; }
.ux-shell .cr-panel .ux-coverage { font-size: var(--hm-fs-label); color: var(--hm-muted); line-height: var(--hm-lh-body); } /* F5 ①: as Workbench */
.ux-shell .cr-stats .cr-count-none { color: var(--hm-muted); } /* F5 ③: not counted yet */
.ux-shell .cr-showing .cr-more { position: relative; display: inline; background: none; border: 0; padding: 0; min-height: 0; height: auto; font-family: inherit; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-ink); cursor: pointer; }
.cr-unchecked p { margin: var(--hm-space-1) 0 0; overflow-wrap: anywhere; }
.cr-stats .wb-stat-sub { display: block; margin-top: 2px; font-size: var(--hm-fs-label); color: var(--hm-muted); font-weight: 400; }
.cr-table td strong { font-weight: 600; } /* ⑧ */
.ux-shell .cr-filters { justify-content: flex-start; } /* ⑤: pickers sit next to the status pills */
.ux-shell .cr-filters .results-picker select { min-height: var(--hm-control-height); max-width: 280px; }
.cr-card-chips { display: flex; flex-wrap: wrap; gap: var(--hm-space-1); margin-bottom: var(--hm-space-2); }
.cr-card-body { min-width: 0; }
.cr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--hm-space-3); }
.cr-table td { vertical-align: top; }
.cr-table td small.muted { font-size: var(--hm-fs-label); }
.cr-table td .tag + .tag { margin-left: var(--hm-space-1); }

/* F2B B3-2 · the research start form (mock f2b-b3-mock-v0.3 ①; ui-check fold-in): the fieldsets take the F2A
   two-option treatment, each radio sits on its choice's first line, Start and Cancel stand together, the quiet
   actions (+ add, Cancel, Back) are borderless links at the control height. */
.ux-shell .rs-start .truth-choices { margin-top: var(--hm-space-3); }
.ux-shell .rs-market { display: flex; flex-wrap: wrap; gap: 8px; }
.ux-shell .rs-market > legend { width: 100%; }

/* F2B B3-3 · research progress (mock f2b-b3-mock-v0.3 ②): the run's bar (title, state, Stop) and its five stages as a
   plain list — a mark, the stage and its server counts, a time on the right; one spinner, on the running stage. */
.ux-shell .rs-run-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-3); }
.ux-shell .rs-run-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); min-width: 0; }
.ux-shell .rs-run-title strong { overflow-wrap: anywhere; }
.ux-shell .rs-stages { list-style: none; max-width: 720px; margin: var(--hm-space-3) 0 0; padding: 0; }
.ux-shell .rs-stage-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border-radius: var(--hm-radius-pill); border: 1px solid var(--hm-line); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; }
.ux-shell .rs-stage-text { display: grid; gap: 2px; min-width: 0; }
.ux-shell .rs-stage-text strong { font-weight: 600; }
.ux-shell .rs-stage-text small { color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 400; }
.ux-shell .rs-stage-at { margin-left: auto; padding-left: var(--hm-space-2); color: var(--hm-muted); font-size: var(--hm-fs-label); white-space: nowrap; }
.ux-shell .rs-stage[data-status="input"] .rs-stage-at { color: var(--hm-pending); font-weight: 600; }
.ux-shell .rs-stage[data-status="failed"] .rs-stage-text small, .ux-shell .rs-stage[data-status="failed"] .rs-stage-at { color: var(--hm-pending); }
.ux-shell .rs-needs h3 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; }
.ux-shell .rs-needs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* F2B B3-4 · research results frame (mock v0.3 ③): the bar with Check again at its end, the console's results tabs
   (short labels on a phone), a context column beside the panel at desktop width (hidden on a phone), the states. */
.ux-shell .rs-results-again { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); }
.ux-shell .rs-results-head { margin-bottom: var(--hm-space-4); }
.ux-shell .rs-context div { display: grid; gap: 2px; }
.ux-shell .rs-context dt { order: 2; color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 400; }
.ux-shell .rs-context dd { order: 1; margin: 0; font-size: var(--hm-fs-label); overflow-wrap: anywhere; }
.ux-shell .rs-empty { padding: var(--hm-space-5) 0; text-align: center; }
.ux-shell .rs-empty h3 { margin: 0 0 var(--hm-space-2); font-size: var(--hm-fs-body); }
.ux-shell .rs-failed { max-width: 720px; padding: 10px 12px; border: 1px solid var(--hm-danger-line); border-radius: var(--hm-radius-control); background: var(--hm-danger-soft); }
.ux-shell .rs-failed h3 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; }
.ux-shell .rs-failed p { margin: 4px 0 0; font-size: var(--hm-fs-label); color: var(--hm-ink); }
.ux-shell .rs-schedule p { margin: 0; }
.ux-shell .rs-schedule-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ux-shell .rs-schedule-toggle { display: inline-flex; align-items: center; gap: 8px; }
.ux-shell .rs-schedule-when .ctx-field { display: grid; gap: 4px; font-weight: 600; }
.ux-shell .rs-schedule-zone { align-self: center; }
.ux-shell .rs-schedule-confirm { padding: 10px 12px; border: 1px solid var(--hm-primary-line); border-radius: var(--hm-radius-control); background: var(--hm-mint); }
.ux-shell .rs-schedule-problem { font-size: var(--hm-fs-meta); }

/* F2B B4-1e · recheck picker (mock f2b-b4-recheck-picker-mock-v0.1): a "Recheck weekly" tick column in the contact list
   and a tick row on each phone card; the count line above; read-only ticks dimmed; the schedule row's two-way choice. */
.ux-shell .rs-recheck-head { display: grid; gap: 8px; margin: 0 0 var(--hm-space-3); }
.ux-shell .rs-recheck-head p { margin: 0; }
.ux-shell .rs-recheck-box input, .ux-shell .rs-recheck-tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--hm-primary); }
.ux-shell .rs-recheck-box.is-readonly, .ux-shell .rs-recheck-tick.is-readonly { opacity: .55; cursor: default; }
.ux-shell .rs-cards { display: grid; gap: var(--hm-space-3); min-width: 0; }
.ux-shell .rs-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ux-shell .rs-card-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ux-shell .rs-card h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; }
.ux-shell .rs-detail { display: grid; gap: var(--hm-space-3); padding: 14px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); }
.ux-shell .rs-detail h3 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; }
.ux-shell .rs-quote p, .ux-shell .rs-source p, .ux-shell .rs-gap p { margin: 2px 0 0; }
.ux-shell .rs-quote-head { margin: 0; font-weight: 600; color: var(--hm-ink); }
.ux-shell .rs-card p, .ux-shell .rs-detail p, .ux-shell .rs-card-chips .ux-ws-basis { margin: 0; }
/* The workspace body styles an h3 as a small uppercase section label; these are titles (mock v0.3), in sentence case. */
.ux-shell .ux-ws-body .rs-detail h3, .ux-shell .ux-ws-body .rs-needs h3, .ux-shell .ux-ws-body .rs-empty h3, .ux-shell .ux-ws-body .rs-failed h3 { text-transform: none; letter-spacing: normal; color: var(--hm-ink); font-weight: 600; margin: 0; }
.ux-shell .ux-ws-body .rs-detail h3, .ux-shell .ux-ws-body .rs-empty h3 { font-size: var(--hm-fs-body); }
.ux-shell .ux-ws-body .rs-card h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--hm-ink); }
.ux-shell .ux-ws-body .rs-needs h3, .ux-shell .ux-ws-body .rs-failed h3 { font-size: var(--hm-fs-meta); }
.ux-shell .rs-contact > summary { display: flex; align-items: center; min-height: var(--hm-control-height); font-size: var(--hm-fs-meta); font-weight: 600; cursor: pointer; }
.ux-shell .rs-contact[open] { padding-bottom: 10px; }
.ux-shell .rs-contact p { margin: 6px 0 0; }
.ux-shell .rs-mails { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--hm-fs-label); }
.ux-shell .rs-mails li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.ux-shell .rs-material { display: grid; gap: 10px; }
.ux-shell .rs-material textarea { min-height: 120px; resize: vertical; }
.ux-shell .rs-contacts-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--hm-space-3); padding: 10px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); }
.ux-shell .ux-ws-body .rs-contacts-bar h3 { margin: 0; font-size: var(--hm-fs-meta); font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--hm-ink); }
.ux-shell .rs-contacts-bar p, .ux-shell .rs-contacts > p { margin: 0; }
.ux-shell .rs-table th { text-align: left; font-weight: 600; color: var(--hm-muted); white-space: nowrap; padding: 8px 10px; border-bottom: 1px solid var(--hm-line); }
.ux-shell .rs-table td { padding: 8px 10px; border-bottom: 1px solid var(--hm-line); vertical-align: middle; overflow-wrap: break-word; min-width: 80px; }
.ux-shell .rs-table .tag { white-space: nowrap; }
.ux-shell .rs-results-cols.is-wide { grid-template-columns: minmax(0, 1fr); }
.ux-shell .rs-table tr[aria-current="true"] td { background: var(--hm-mint); }
.ux-shell .rs-follow { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--hm-primary); border-radius: var(--hm-radius-card); background: var(--hm-surface); }
.ux-shell .ux-ws-body .rs-follow h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; text-transform: none; letter-spacing: normal; color: var(--hm-ink); }
.ux-shell .rs-follow p { margin: 0; }
.ux-shell .rs-follow-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ux-shell [data-research-data-tab] > p, .ux-shell [data-research-sources-tab] > p { margin: 0 0 8px; }
.ux-shell [data-research-data-tab] > .rs-data-scroll + p, .ux-shell [data-research-sources-tab] > .rs-data-scroll + p { margin-top: 8px; }
.aidu-main h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--hm-space-3); }
.aidu-main p { margin: 0 0 var(--hm-space-3); }
.aidu-title { margin-top: var(--hm-space-2); }
.aidu-facts dt { color: var(--hm-muted); font-size: var(--hm-fs-body); font-weight: 400; }
.aidu-consent span { font-size: var(--hm-fs-body); font-weight: 400; } /* body size, regular, as the mock (assist on 94b8d4f2) */
.aidu-facts a, .aidu-main .svc-note a { color: var(--hm-primary); font-weight: 600; }
.aidu-consent { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: var(--hm-space-2) 0; margin: var(--hm-space-3) 0 0; cursor: pointer; } /* the whole row is the tap target (test3 P3 on 4a6bad1f) */
.aidu-side { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: var(--hm-space-4); }
.aidu-side h3 { margin: 0 0 var(--hm-space-3); }
.aidu-side ul { margin: 0 0 var(--hm-space-3); padding-left: 18px; }
.aidu-side li { margin-bottom: var(--hm-space-2); }
/* the activity is its own card beside the setting (mock v0.3 frame B; coder2 on assist P3-5); stacked below on phones */
.aidu-aside { display: grid; gap: var(--hm-space-4); align-content: start; min-width: 0; }
.aidu-activity { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: var(--hm-space-4); min-width: 0; }
.aidu-activity h3 { margin: 0 0 var(--hm-space-3); }
.aidu-activity ul { list-style: none; margin: 0; padding: 0; }
.aidu-activity-row { padding: var(--hm-space-3) 0; border-top: 1px solid var(--hm-line); }
.aidu-activity-row:first-child { border-top: 0; }
.aidu-activity-row p { margin: 0 0 var(--hm-space-1); overflow-wrap: anywhere; }
.ux-shell .rs-monitors h3 { margin: 0 0 var(--hm-space-2); font-size: var(--hm-fs-meta); font-weight: 600; }
.ux-shell .rs-monitors ul { list-style: none; margin: 0; padding: 0; }
.ux-shell .rs-monitors li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); min-height: var(--hm-touch-target); overflow-wrap: anywhere; }
.ux-shell .rs-monitor-card { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 12px 14px; margin: 0 0 10px; background: var(--hm-surface); }
.ux-shell .rs-monitor-sources { list-style: none; margin: var(--hm-space-2) 0 0; padding: 0; }
.ux-shell .rs-monitor-sources li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); padding: 4px 0; overflow-wrap: anywhere; }
.ux-shell .rs-page-draft h4 { margin: 4px 0 8px; font-size: var(--hm-fs-body); overflow-wrap: anywhere; }
.ux-shell .rs-page-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--hm-space-2); padding: 0; list-style: none; }
.ux-shell .rs-page-steps li { padding: 3px 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; }
.ux-shell .rs-page-steps li.is-done { color: var(--hm-success); }
.ux-shell .rs-page-steps li.is-on { border-color: var(--hm-primary-line); background: var(--hm-mint); color: var(--hm-primary); }
.ux-shell .rs-kv dt { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .rs-kv dd { margin: 0; overflow-wrap: anywhere; }
.ux-shell .rs-outline { margin: 4px 0 0; padding-left: 18px; }
.ux-shell .rs-page-text { margin: 0 0 var(--hm-space-2); padding: 8px 12px; border-left: 3px solid var(--hm-line-strong); border-radius: 0 var(--hm-radius-control) var(--hm-radius-control) 0; background: var(--hm-neutral); overflow-wrap: anywhere; white-space: pre-line; }
.ux-shell .rs-page-text.is-mine { border-left-color: var(--hm-primary); background: var(--hm-surface); }
.ux-shell .rs-page-text p { margin: 0 0 4px; }
.ux-shell .rs-page-form label, .ux-shell .rs-page-start > label, .ux-shell .rs-page-handoff label { display: block; margin: var(--hm-space-2) 0 4px; font-weight: 600; }
.ux-shell .rs-page-discard { margin: 0; padding: 0; border: 0; }
.ux-shell .rs-page-discard legend { font-weight: 600; margin-bottom: 4px; }
.ux-shell .rs-page-discard .rs-mode { display: flex; align-items: center; gap: 8px; min-height: var(--hm-touch-target); }
.obs-earlier li .f2a-pair { display: inline-flex; margin-top: 0; vertical-align: middle; }
.ask-row .f2a-pair a.text-button { font-weight: 600; }
.ux-shell .navim-card h2 { margin: 0; font-size: var(--hm-fs-section); line-height: 26px; font-weight: 600; color: var(--hm-ink); }
.ux-shell .navim-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.ux-shell .rs-return { margin: 0 0 var(--hm-space-3); }
.ux-shell .navim-row .tag { margin: var(--hm-space-1) 0 var(--hm-space-2); }
.ux-shell .navim-row-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); align-items: center; }
.ux-shell .navim-more { display: grid; justify-items: center; gap: var(--hm-space-2); }

/* NAVIM W1-9: a research card's competitor sentence (quoted, the page's title and domain after it) and the search-term
   eyebrow; the seen-on line stays secondary. */
.ux-shell .rs-card-quote { margin: 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); color: var(--hm-ink); overflow-wrap: anywhere; }
.ux-shell .rs-card-quote-src { color: var(--hm-muted); font-size: var(--hm-fs-label); }
.ux-shell .rs-card .rs-card-search, .ux-shell .rs-detail .rs-card-search { margin: 0; overflow-wrap: anywhere; text-transform: none; letter-spacing: normal; font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); } /* the buyer's term as typed, never in caps */

/* NAVIM W1-7 (ui-check): the Consistency page's Download at the right end of the how-to-read line; under it, right-
   aligned, on a phone (the button's own 44px rule). */
.ux-shell .cr-head-page { display: block; }
.ux-shell .cr-how-to-read { display: flex; align-items: center; gap: var(--hm-space-1); }
.ux-shell .imp-question { margin: 0 0 var(--hm-space-4); }
.ux-shell .imp-question .ov-eyebrow { margin: 0; }
.ux-shell .imp-question-text { margin: 0; font-size: var(--hm-fs-section); font-weight: 600; line-height: 1.4; color: var(--hm-ink); }
.ux-shell .imp-qline { margin: 0; }
.ux-shell .imp-question .tag { justify-self: start; }
.ux-shell .imp-main { display: grid; gap: var(--hm-space-5); min-width: 0; }
.ux-shell .imp-card h4 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; line-height: 1.4; }
.ux-shell .imp-basis { margin: 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); }
.ux-shell .imp-basis strong { color: var(--hm-ink); font-weight: 600; }
.ux-shell .imp-card-error { margin: 0; color: var(--hm-danger); }
.ux-shell .wb-imp-aside-q { margin: 0 0 var(--hm-space-2); font-size: var(--hm-fs-meta); line-height: var(--hm-lh-body); color: var(--hm-ink); }
.ux-shell .wb-imp-aside-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.ux-shell .wb-imp-aside .imp-notice-error { margin: var(--hm-space-2) 0 0; }
.ux-shell .imp-used h3 { font-size: var(--hm-fs-section); }
.ux-shell .imp-used .rs-table { width: 100%; }
.ux-shell .imp-used .ux-ws-basis { margin: 0; }
.ux-shell .imp-running .rs-run-head { margin: 0 0 var(--hm-space-2); }
/* W3-4: the Results cards — the round's ways, one line each, above the totals. */
.ux-shell .weighed-ways { margin: 0; padding-left: var(--hm-space-4); display: grid; gap: 2px; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ux-shell .weighed-cards { display: grid; gap: var(--hm-space-3); }
.ux-shell .imp-quotes-all { justify-self: start; }
.ux-shell .imp-in-panel .imp-used { position: static; }
.ux-shell .imp-panel-head { display: grid; gap: 6px; justify-items: start; margin: 0 0 var(--hm-space-3); }
.ux-shell .imp-panel-head .imp-allowance { text-align: left; }
.ux-shell .imp-panel-open { margin: var(--hm-space-3) 0 0; }
/* ui-check on 714c5a8d: in the panel's column the page's action slot starts at the left (not the page's end). */
.ux-shell .imp-in-panel .imp-head-action { justify-items: start; }
.ux-shell .imp-in-panel .imp-head-action .imp-allowance { text-align: left; }
.ux-shell .imp-batch-confirm { display: grid; gap: var(--hm-space-2); margin: 0 0 var(--hm-space-4); }
.ux-shell .imp-batch-confirm h2 { margin: 0; font-size: var(--hm-fs-section); }
.ux-shell .imp-batch-confirm .ux-ws-basis { margin: 0; }


/* NAVIM D3 F2 (mock v0.3): the question page's answer — one box, the facts it would save, its actions. */
.ux-shell .imp-lead { margin: var(--hm-space-2) 0 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); color: var(--hm-ink); }
.ux-shell .imp-see-answers { font-size: var(--hm-fs-label); }
.ux-shell .imp-aside-slot { margin: var(--hm-space-3) 0; }
.ux-shell .imp-answer { display: grid; gap: var(--hm-space-2); min-width: 0; }
.ux-shell .imp-answer-label { font-weight: 600; color: var(--hm-ink); font-size: var(--hm-fs-body); }
.ux-shell .imp-answer-labelrow { display: flex; align-items: center; gap: var(--hm-info-gap); min-width: 0; } /* the label and its (i) stay together */
.ux-shell .imp-answer textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.ux-shell .imp-answer textarea[readonly] { background: var(--hm-neutral); }
.ux-shell .imp-answer-facts h4 { margin: var(--hm-space-2) 0; }
/* 2.8.1: a saved or approved answer is read text with its state and one Edit button */
.ux-shell .imp-answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2) var(--hm-space-3); }
.ux-shell .imp-answer-head h3 { margin: 0; flex: 1 1 auto; min-width: 0; }
.ux-shell .imp-answer-state { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); }
.ux-shell .imp-answer-state-approved { color: var(--hm-success); }
.ux-shell .imp-answer-read { margin: 0; padding: var(--hm-space-2) var(--hm-space-3); border-left: 3px solid var(--hm-primary); background: var(--hm-neutral); border-radius: 0 var(--hm-radius-control) var(--hm-radius-control) 0; overflow-wrap: anywhere; }
.ux-shell .imp-answer-read p { margin: 0; }
.ux-shell .imp-facts { list-style: none; margin: 0 0 var(--hm-space-2); padding: 0; display: grid; gap: var(--hm-space-2); }
.ux-shell .imp-fact label { display: flex; gap: var(--hm-space-3); align-items: flex-start; padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); cursor: pointer; }
.ux-shell .imp-fact[data-state="unchanged"] label { cursor: default; padding-left: calc(var(--hm-space-3) + 18px + var(--hm-space-3)); }
.ux-shell .imp-fact label > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ux-shell .imp-fact[data-state="different"] .imp-fact-state { color: var(--hm-pending); }
.ux-shell .imp-facts-hint { margin: 0 0 var(--hm-space-2); }
.ux-shell .imp-fact-state { font-size: var(--hm-fs-label); color: var(--hm-muted); }
.ux-shell .imp-answer-sentences { margin: var(--hm-space-1) 0 0; padding-left: 1.2em; color: var(--hm-danger); font-size: var(--hm-fs-label); }
.ux-shell .imp-answer-error p { margin: 0; }

/* NAVIM D1 (mock v0.1): a draft waiting for review on its product's page — the problem, where it comes from, what it
   adds, what to do. A card that needs something has the pending edge. */
.ux-shell .dc-inbox { display: grid; gap: var(--hm-space-3); }
.ux-shell .dc-title { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; line-height: var(--hm-lh-title); color: var(--hm-ink); overflow-wrap: anywhere; }
/* D1-2: what to add, on the card (the draft editor's fields). */
.ux-shell .dc-next { display: grid; gap: var(--hm-space-2); padding: var(--hm-space-3); border: 1px solid var(--hm-pending-line); border-radius: var(--hm-radius-card); background: var(--hm-sand); min-width: 0; }
.ux-shell .dc-label { display: block; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); }
.ux-shell .dc-label small { display: block; font-weight: 400; font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ux-shell .dc-next input, .ux-shell .dc-next textarea, .ux-shell .dc-next select { width: 100%; min-width: 0; box-sizing: border-box; background: var(--hm-surface); }
.ux-shell .dc-facts { margin: 0; padding-left: 1.2em; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-prose); color: var(--hm-ink); }
.ux-shell .dc-sep { border: 0; border-top: 1px solid var(--hm-pending-line); margin: var(--hm-space-1) 0; width: 100%; }
.ux-shell .dc-title .tag { margin-left: var(--hm-space-1); vertical-align: middle; }
.ux-shell .dc-basis { padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-bg); min-width: 0; }
.ux-shell .dc-preview { padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); background: var(--hm-surface); min-width: 0; overflow-wrap: anywhere; }
.ux-shell .dc-field { font-weight: 600; color: var(--hm-ink); }
.wb-stat > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.ux-shell .wb-stat-label { font-size: var(--hm-fs-meta); }
.ux-shell .navim-row h4 .navim-row-link:hover { color: var(--hm-primary); text-decoration: underline; text-underline-offset: 2px; }
.ux-shell .navim-row h4 .navim-row-link:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; border-radius: var(--hm-radius-control); }
.ux-shell .rs-unsaved-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-3); }
.ux-shell .wb-layout .wb-list .wb-row { border-top: 1px solid var(--hm-line); }
.ux-shell .wb-layout .wb-list .wb-row + .wb-row { border-top: 1px solid var(--hm-line); }
.ux-shell .wb-task.wb-compact .wb-task-body { grid-column: 2; min-width: 0; }
.ux-shell .wb-compact .wb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); margin: 0 0 4px; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-title); color: var(--hm-muted); }
.ux-shell .wb-compact .wb-task-title { margin: 0; font-size: var(--hm-fs-body); line-height: var(--hm-lh-body); font-weight: 600; color: var(--hm-ink); }
.ux-shell .wb-compact .wb-task-detail { margin: 2px 0 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-title); color: var(--hm-muted); }
.ux-shell .wb-compact .wb-task-btn .ux-icon { width: var(--hm-icon-s); height: var(--hm-icon-s); }
.ux-shell .wb-layout .wb-stat[hidden] { display: none; }
.ux-shell .wb-layout .wb-stat-fc .wb-stat-icon { background: var(--hm-fc-tint); color: var(--hm-fc); }
.ux-shell .wb-layout .wb-stat-fc { color: inherit; text-decoration: none; }
.wb-list .wb-row.wb-row-off { display: none !important; }
.ux-shell .wb-recent-text .eng-tags { margin: 6px 0 2px; }
.ai-card > .results-note, .ai-card > .navim-card, .ai-card > .ux-notice { margin: var(--hm-space-4); }
.ai-row .f2a-pair { flex-wrap: nowrap; margin-top: 0; }
.ux-shell .ai-row:last-of-type { border-bottom: 0; }
.ai-qt { font-weight: 600; color: var(--hm-ink); text-decoration: none; overflow-wrap: anywhere; }
.ai-qt:hover { text-decoration: underline; }
.ai-qs { margin: 2px 0 0; font-size: var(--hm-fs-meta); line-height: var(--hm-lh-title); color: var(--hm-muted); }
.ai-engs .eng-tags { margin: 0; }
.ai-view { color: var(--hm-primary); font-weight: 600; white-space: nowrap; text-decoration: none; }
.ai-view:hover { color: var(--hm-primary-hover); text-decoration: underline; }
.ai-act .navim-row-actions { margin: 0; }
.ai-act .f2a-find-allowance { display: none; }
.ai-table[data-ai-show="ok"] .ai-row:not([data-ai-kind="ok"]) { display: none; }
.ai-page .navim-more { padding: var(--hm-space-3) 24px; }
.ux-shell .wb-drafts .ux-drafts { gap: 0; margin-top: 0; }
.ux-shell .wb-drafts .ux-draftrow-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--hm-space-2); }
.ux-shell .wb-drafts .ux-draftrow-line h3 { margin: 0; font-size: var(--hm-fs-body); line-height: var(--hm-lh-title); font-weight: 600; }
.ux-shell .wb-drafts .ux-draftrow-main p { margin: 2px 0 0; }
.ux-shell .wb-drafts .wb-group { margin: var(--hm-space-4) 0 var(--hm-space-1); }
.ux-shell .navim-rows .navim-row-actions:has(.f2a-find-allowance) { flex-direction: column; align-items: flex-end; gap: 2px; } /* Find improvements, then "Uses 1 credit · 7 of 10 left" under it, both at the right edge */
.ux-shell .navim-rows .navim-row-actions .f2a-find-allowance { margin: 0; text-align: right; }
.ux-shell .navim-rows .navim-row-actions a.btn::after { content: "\00a0→"; }
.ux-shell .chg-rows > li:last-child .chg-row { border-bottom: 0; }
.ux-shell .chg-rows .chg-row.active { background: var(--hm-hover); box-shadow: none; }
.ux-shell .wb-compact .wb-meta { margin-bottom: 2px; }
.ux-shell .wb-compact .wb-meta > span:first-child { line-height: 22px; } /* the product name is as tall as a pill, so the ring beside it sits on the same centre line however the line wraps */
.hm-section .ux-note { margin: 0; }
.ai-table[data-ai-show="attention"][data-ai-n-attention="0"] > .ai-th, .ai-table[data-ai-show="ok"][data-ai-n-ok="0"] > .ai-th { display: none; }
.f2a-find + .imp-allowance { margin-left: var(--hm-space-3); }
.ux-shell .hist-part > .ux-ws-addon > h3:first-child { margin-top: 0; } /* every History card's title sits the card's padding from its top */

/* The Workbench's two cards start their titles on one line (2.7.3.9: 6px apart): the same top padding as "Needs your attention". */
.ux-shell .wb-layout .wb-recent { padding-top: 18px; }

/* Keep the main-image action readable and discoverable on touch and keyboard. */
.cpg-tile:focus-within .cpg-mainbtn { opacity: 1; }
.cpg-mainbtn { max-width: calc(100% - 12px); white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
@media (hover: none) {
  .cpg-mainbtn { opacity: 1; }
}

/* Long localized simulator copy and original buyer questions must fit the workspace. */
.simulator-panel { min-width: 0; grid-template-columns: minmax(0, 1fr); overflow-wrap: anywhere; }
.simulator-panel > *, .simulator-form > *, .simulator-form-heading > div,
.simulator-suggestions, .simulator-suggestions > div, .simulator-heading-row > div { min-width: 0; }
.simulator-form { grid-template-columns: minmax(0, 1fr); }
.nav3-danger[open] > summary { margin-bottom: 0; }
.nav3-danger > .team-danger-row { margin: 0; padding: 14px 24px 20px; }

/* OWNRES fix1: a running check reads as running — the spinner beside "Checking…" (rows, the notice, the empty tab). */
.imp-checking { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-muted); }
.imp-checking .button-spinner, [data-imp-batch-progress] .button-spinner, [data-imp-waiting="checking"] h2 .button-spinner { width: 12px; vertical-align: -1px; }

/* QDEDUP: the other wordings merged into a row's question. */
.ux-shell .imp-also { margin-top: var(--hm-space-1); }
.ux-shell .navim-rows > .workcard.navim-row > div:first-child > .imp-also { order: 5; flex-basis: 100%; } /* QDEDUP: under the group's own title and line, never first in the row's flex order (2.8.1.2C walk) */
.ux-shell .imp-also ul { margin: 2px 0 0; padding-left: 1.1em; }
.ux-shell .imp-also li { overflow-wrap: anywhere; }

/* F3A A4b: Trends › What changed around this time — tokens only. */
.ev-block { margin: var(--hm-space-4) 0; display: grid; gap: var(--hm-space-2); }
.ev-block h3, .ev-block h4 { margin: 0; }
.ev-block p { margin: 0; overflow-wrap: anywhere; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-3); }
.ev-when, .ev-what { min-width: 0; overflow-wrap: anywhere; }
.ev-note { margin-top: var(--hm-space-1); }
.ev-actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); align-items: center; margin-top: var(--hm-space-2); }
.ev-form { display: grid; gap: var(--hm-space-2); padding: var(--hm-space-3); border: 1px solid var(--hm-primary-line); border-radius: var(--hm-radius-card); background: var(--hm-mint); color: var(--hm-ink); }
.ev-field { display: grid; gap: var(--hm-space-1); }
.ev-block .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); }
/* a draft's "Where this comes from": the check's words laid out — what it found, then its suggested steps as a list */
.dc-steps-h { margin: var(--hm-space-2) 0 var(--hm-space-1); color: var(--hm-muted); }
.dc-steps { margin: 0; padding-left: var(--hm-space-4); display: grid; gap: var(--hm-space-1); }
.ux-shell .navim-page .obs-report { gap: var(--hm-space-4); }
.ux-shell .navim-page .obs-actions [data-action="obs-report-close"] { display: none; }
.aio-crawler-list .aio-crawler-observed { justify-self: start; }

/* Walk fixes: the Workbench's foot is one wrapping row — the last check, the actions, Check settings and the (i) that says what the actions do — not a right-aligned link on a line of its own and an (i) alone below. */
.wb-attention > .wb-checks .status-line .btn.ghost { margin-left: 0; }
.wb-attention > .wb-checks .status-line > :is(.wb-checks-state, .wb-checks-actions) { align-self: stretch; } /* the rows span the line, so Check settings can stand at the right edge */
.wb-attention > .wb-checks .wb-checks-actions > .btn.ghost:last-child { margin-left: auto; }
.wb-checks-tail { display: inline-flex; align-items: center; gap: var(--hm-space-2) var(--hm-space-3); } /* the last action and the (i) about the actions never part */
.wb-attention > .wb-checks .ux-action-notes { margin: 0; }
.ux-intent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); margin-top: var(--hm-space-2); }
.ux-shell .cr-schedule .cr-schedule-change:hover { text-decoration: underline; text-underline-offset: 2px; background: none; color: var(--hm-primary-hover); }
/* Activity: its two empty boxes are not one box with a seam. */
.wb-activity-states { display: grid; gap: var(--hm-space-3); }
.ov-work > .ov-eyebrow + .ux-ws-addon { margin-top: 0; padding-top: 0; border-top: 0; }

/* A failed check draws no radar (failedCheckView leaves it no parts): the score card takes the row, and the empty-history sentence sits where the plot would be. */
.analysis-hero:not(:has(.radar-card)) { grid-template-columns: minmax(0, 1fr); }
.timeline-nothing { margin: 12px 0; }
.wb-recent .wb-recent-key .ai-marks { margin-left: 0; flex-basis: 100%; }
.fix[data-fix-step="locked"] .fix-rank { background: var(--hm-neutral); color: var(--hm-muted); box-shadow: none; }
.fix[data-fix-step="locked"] .fix-content > :not(.fix-heading-row) { opacity: 0.7; }
.fix[data-fix-step="done"] .fix-rank { background: var(--hm-success); box-shadow: none; }
.fix .fix-step-tag { flex: none; }
.fix-actions .fix-skip { margin-left: auto; }
.ux-shell .imp-answer-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2) var(--hm-space-3); }
.ux-shell .imp-answer-head h3 { margin: 0; flex: 1 1 auto; min-width: 0; }
.ux-shell .imp-answer-state { font-size: var(--hm-fs-label); font-weight: 600; color: var(--hm-muted); }
.ux-shell .imp-answer-state-approved { color: var(--hm-success); }
.ux-shell .imp-answer-read { margin: 0; padding: var(--hm-space-2) var(--hm-space-3); border-left: 3px solid var(--hm-primary); background: var(--hm-neutral); border-radius: 0 var(--hm-radius-control) var(--hm-radius-control) 0; overflow-wrap: anywhere; }
.ux-shell .imp-answer-read p { margin: 0; }

/* 2.8.0.1D: the product page's Open work rows (the Workbench's own rows, one action each), the things buyers search for, a plan row's one action */
.ov-openrows { display: grid; gap: 8px; }
.ov-searches summary { cursor: pointer; font-weight: 600; font-size: var(--hm-fs-body); }
.ov-searches .ov-openrows { margin-top: 8px; }
.ux-plan-q-act { margin-left: 6px; font-weight: 600; }
.ux-plan-q-missing { margin-left: 6px; color: var(--hm-muted); }

/* 2.8.0.1D: delete from the AI answers list — a checkbox beside the question (its own column, centred on the two lines), Delete as a quiet red link after Find improvements, one bar above the table */
.ai-bulk { display: flex; align-items: center; gap: var(--hm-space-4); padding: var(--hm-space-3) 24px; border-bottom: 1px solid var(--hm-line); font-size: var(--hm-fs-label); }
.ai-bulk-all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--hm-space-2); width: auto; cursor: pointer; }
.ai-q:has(> .ai-sel) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--hm-space-3); align-items: center; }
.ai-q > .ai-sel { grid-row: 1 / span 2; margin: 0; align-self: center; }
.ai-q > .ai-qt, .ai-q > .ai-qs { grid-column: 2; }
.ai-q:not(:has(> .ai-sel)) > .ai-qt, .ai-q:not(:has(> .ai-sel)) > .ai-qs { grid-column: auto; }
.ai-act .ai-del { display: block; margin-top: var(--hm-space-2); padding: 0; background: none; border: 0; color: var(--hm-danger); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.ai-act .ai-del:hover { text-decoration: underline; }

/* 2.8.1 · one step at a time (shared/step-card.js): the pattern of AI answers on To do, Information, the plan, Summary and Evidence */
.ov-step-result { margin: 4px 0 12px; font-weight: 600; }
.ov-step { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 16px 18px; background: var(--hm-surface); margin-bottom: 14px; }
.ov-step-no { margin: 0 0 2px; font-size: var(--hm-fs-label); letter-spacing: var(--hm-ls-caps); text-transform: uppercase; color: var(--hm-muted); }
.ov-step h3 { margin: 0 0 6px; font-size: var(--hm-fs-title); }
.ov-step-need { margin: 0 0 10px; }
.ov-step-kv { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 6px 14px; margin: 0 0 12px; }
.ov-step-kv dt { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.ov-step-kv dd { margin: 0; }
.ov-step-quote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--hm-primary); background: var(--hm-primary-tint); border-radius: 0 var(--hm-radius-control) var(--hm-radius-control) 0; }
.ov-step-quote p { margin: 0; }
.ov-step-body { margin: 0 0 12px; font-size: var(--hm-fs-meta); }
.ov-step-body ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.ov-step-body .item-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; margin-left: 6px; }
.info-needs { margin: 0 0 16px; }
.ov-step-more { margin: -4px 0 14px; font-size: var(--hm-fs-meta); }
.ov-step-by { font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.ov-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
/* 64zzq: the step lines open their step as the card; the box a page's list is drawn in changes no layout */
.ov-step-scope { display: contents; }
.ov-step-open { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ov-step-open:hover b, .ov-step-open:focus-visible b { text-decoration: underline; }
.ov-step-open:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; border-radius: var(--hm-radius-control); }
.ov-step-rest { margin: 6px 0 14px; }
.ov-step-rest h4 { margin: 14px 0 6px; font-size: var(--hm-fs-body); }
.ov-step-waits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-step-wait { display: flex; gap: 10px; padding: 8px 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); }
.ov-step-wait-no { flex: none; width: 1.6em; height: 1.6em; border-radius: var(--hm-radius-pill); background: var(--hm-line); display: grid; place-items: center; font-size: var(--hm-fs-meta); font-weight: 600; }
.ov-step-allset { padding: 12px 14px; border: 1px solid var(--hm-success-line); background: var(--hm-success-tint); border-radius: var(--hm-radius-control); margin: 0 0 14px; }
@media (max-width: 560px) { .ov-step-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ov-step-kv dd { margin-bottom: 8px; } }
.fix.ov-fix-host { display: block; border: 0; padding: 0; background: none; box-shadow: none; transition: none; }
.fix.ov-fix-host:hover { box-shadow: none; }
.ov-step .text-button { padding-inline: 0; }

/* 2.8.1 part two (Harvey 11-14, the mock): the shared card of the manual "add" forms — what it is · this is for · where it goes · one input and one action per step */
.add-card { display: grid; gap: var(--hm-space-3); }
.add-title { margin: 0; font-size: var(--hm-fs-title); }
.add-lede { margin: 0; }
.add-kv { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.add-kv dt { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.add-kv dd { margin: 0; min-width: 0; }
.add-step { display: grid; gap: var(--hm-space-2); padding-top: var(--hm-space-3); border-top: 1px solid var(--hm-line); }
.add-step-h { margin: 0; font-weight: 600; display: flex; align-items: center; gap: var(--hm-space-2); }
.add-n { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: var(--hm-radius-pill); background: var(--hm-primary-tint); color: var(--hm-primary); font-size: var(--hm-fs-meta); font-weight: 600; flex: none; }
.add-help { margin: 0; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.add-ex { margin: 0; padding: var(--hm-space-2) var(--hm-space-3); border: 1px dashed var(--hm-line); border-radius: var(--hm-radius-control); color: var(--hm-muted); font-size: var(--hm-fs-meta); overflow-wrap: anywhere; }
.add-kinds { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.add-kind { position: relative; }
.add-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.add-kind span { display: inline-block; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-pill); padding: 6px 14px; background: var(--hm-surface); }
.add-kind input:checked + span { background: var(--hm-primary-tint); border-color: var(--hm-primary); color: var(--hm-primary); font-weight: 600; }
.add-kind input:focus-visible + span { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.add-note { margin: var(--hm-space-2) 0 0; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.add-card .mf-field > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .add-kv { grid-template-columns: 1fr; } }
.add-card .draft-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the step's own heading is the visible label (draft editor) */
.draft-entry.add-card > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evidence-decide { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); }
/* 2.8.1.1: "Write it with AI" beside Edit on an Entered row; gone while the row is open for editing. On To do the title, the state chip, Edit and Write it with AI share one line (Harvey's note 1 on the mock): the two actions are plain words on the chip's centre line, at the right */
.pil-part[data-part-state="editing"] .pil-part-ai-btn { display: none; }
[data-todo-row] .pil-part-head { align-items: center; justify-content: flex-start; flex-wrap: wrap; }
[data-todo-row] .pil-part-head h4 { margin-right: var(--hm-space-2); }
[data-todo-row] .pil-part-head .pil-part-edit-btn { margin-left: auto; }
[data-todo-row] .pil-part-head .pil-part-edit-btn, [data-todo-row] .pil-part-head .pil-part-ai-btn { border: 0; background: none; box-shadow: none; padding: 0 var(--hm-space-1); min-height: 0; line-height: 1.4; }
/* 2.8.1.1: the product's Danger zone belongs to Summary, not under To do or Buyer questions */
.ux-ws-body:has([data-ov-show="todo"]) ~ .nav3-danger, .ux-ws-body:has([data-ov-show="questions"]) ~ .nav3-danger { display: none; }
.ux-plan-fold > summary { cursor: pointer; font-weight: 600; color: var(--hm-ink); }
.ux-plan-quiet .ux-plan-link { margin: 0; }
.fix-done { list-style: none; margin: 0 0 var(--hm-space-3); padding: 0; display: grid; gap: var(--hm-space-1); color: var(--hm-ink); }

/* 2.8.1.2: the Ask cards' buyer question line, "This question isn't relevant" and the collapsed Hidden (n) */
.ask-buyer-q { margin: var(--hm-space-1) 0 var(--hm-space-2); overflow-wrap: anywhere; }
.ask-dismiss-row { margin: var(--hm-space-2) 0 0; }
.ask-hidden { margin-top: var(--hm-space-3); color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.ask-hidden summary { cursor: pointer; }
.ask-hidden ul { margin: var(--hm-space-2) 0 0; padding-left: var(--hm-space-4); display: grid; gap: var(--hm-space-1); }
.ask-hidden li { overflow-wrap: anywhere; }
/* 2.8.1.3B · Find it for me (aeo/find-proof.js; mock planning/release-281/find-it-for-me-mock) — tokens only */
.fi-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.fi-group .price { font-size: var(--hm-fs-meta); color: var(--hm-muted); }
.fi-panel { border: 1px solid var(--hm-line); border-left: 3px solid var(--hm-primary); border-radius: var(--hm-radius-control); padding: 10px 14px; margin: 6px 0 10px; background: var(--hm-surface); display: flex; flex-direction: column; gap: 8px; }
.fi-panel p, .fi-panel h4 { margin: 0; }
.fi-panel .fi-head { font-size: var(--hm-fs-section); }
.fi-panel .msg.warn { color: var(--hm-ink); }
.fi-panel[data-find-proof-state="balance"], .fi-panel[data-find-proof-state="refused"], .fi-panel[data-find-proof-state="unknown"] { border-left-color: var(--hm-danger); }
.fi-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 10px 12px; }
.fi-row.fi-done { grid-template-columns: minmax(0, 1fr); }
.fi-row input[type="checkbox"] { margin: 2px 0 0; }
.fi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--hm-fs-meta); }
.fi-quote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--hm-primary-line); background: var(--hm-primary-tint); border-radius: 0 var(--hm-radius-control) var(--hm-radius-control) 0; overflow-wrap: anywhere; }
.fi-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid var(--hm-line); border-top-color: var(--hm-primary); border-radius: var(--hm-radius-pill); vertical-align: -2px; animation: fi-spin 0.9s linear infinite; }
@keyframes fi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fi-spin { animation: none; } }

/* 2.8.1.3E: the wallet's trial credit claim (billing/wallet-claim.js; mock planning/release-281/wallet-claim-mock) and the price beside a model press (aeo/content-price.js) */
.price[data-content-price-slot] { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.claim { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 0; padding: 10px 14px; border: 1px dashed var(--hm-primary); border-radius: var(--hm-radius-control); background: var(--hm-primary-tint); }
.claim.claim-ask { border-style: solid; border-color: var(--hm-line); background: var(--hm-surface); }
.claim p { margin: 0; }
.claim .claim-line { font-size: var(--hm-fs-section); }
.claim .note { color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.ok-line { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--hm-radius-control); border: 1px solid var(--hm-success-line); background: var(--hm-success-tint); color: var(--hm-success); font-size: var(--hm-fs-meta); }
.wallet-panel .balcard .fc-money { margin: 2px 0 6px; }
.wallet-panel .balcard .actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 10px; }
