/* The report, as the extension's side panel draws it. Sliced from
   apps/extension/panel/panel.css (the panel's own chrome left out) so a
   check on the website looks like a check in the panel. Regenerate from
   that file when the panel changes. */
:root { --radius-lg: 16px; --radius-sm: 8px; --radius-pill: 999px; --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
.app-result .note { font-size: 13px; color: var(--slate); line-height: 1.5; margin: 0; }
.status {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--slate);
  padding: 24px 2px;
}
.status .step { opacity: 0.35; transition: opacity 0.3s ease; padding: 3px 0; }
.status .step.on { opacity: 1; color: var(--ink); font-weight: 500; }
.status .step.done { opacity: 0.55; }

.error {
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--mist);
}
.error h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.error p { margin: 0; font-size: 13px; color: var(--slate); line-height: 1.5; }

.cta {
  all: unset;
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  padding: 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cta:hover { background: #000; }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
/* ── product photo ───────────────────────────────────────── */

.product-shot {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--mist);
  margin-bottom: 16px;
}
.product-shot[hidden] { display: none; }

/* ── verdict stamp ───────────────────────────────────────── */
/* A soft tinted card, not a stark ruled banner — the colour still carries
 * the signal, it just doesn't have to shout to do it. */

.stamp {
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: 18px;
  background: var(--white);
}
.stamp[data-verdict='buy'] { background: color-mix(in srgb, var(--green) 10%, var(--white)); }
.stamp[data-verdict='skip'] { background: color-mix(in srgb, var(--red) 8%, var(--white)); }
.stamp[data-verdict='depends'] { background: color-mix(in srgb, var(--amber) 10%, var(--white)); }

.stamp-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stamp[data-verdict='buy'] .stamp-label { color: var(--green); }
.stamp[data-verdict='skip'] .stamp-label { color: var(--red); }
.stamp[data-verdict='depends'] .stamp-label { color: var(--amber); }

.stamp-reason {
  margin: 8px 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.stamp-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.sep { margin: 0 6px; }

/* ── blocks ──────────────────────────────────────────────── */

.block { padding: 18px 0; border-top: 1px solid var(--mist); }
.block[hidden] { display: none; }
.stamp + .block { border-top: none; padding-top: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 12px;
}

.rows { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: 0 0 0 1px var(--mist);
}
.row-main { grid-column: 1; }
.row-title { font-size: 14px; font-weight: 500; }
.row-note { font-size: 13px; color: var(--slate); margin-top: 2px; line-height: 1.45; }

.src {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--mist);
}
.src:hover { color: var(--ink); border-color: var(--slate); }

/* signature: four segments, filled by strength of evidence */
.meter { grid-column: 2; display: flex; gap: 3px; align-items: flex-start; padding-top: 4px; }
.meter i {
  width: 13px;
  height: 5px;
  background: var(--mist);
  border-radius: 3px;
}
/* A real 0-4 scale: none 0, weak 1, mixed 2, strong 4. Length alone has to
 * separate all four states, because colour cannot be the only signal —
 * "weak" and "none" previously both filled exactly one pip and differed by
 * hue alone, which is indistinguishable to a red-green colourblind reader
 * at 13x5px, and left the bar saying the same thing for thin evidence and
 * for none at all. "none" fills zero pips and tints the empty track red
 * instead, so the absence reads as the finding it is. */
.meter[data-support='strong'] i:nth-child(-n + 4) { background: var(--green); }
.meter[data-support='mixed'] i:nth-child(-n + 2) { background: var(--amber); }
.meter[data-support='weak'] i:nth-child(-n + 1) { background: var(--amber); }
.meter[data-support='none'] i { background: color-mix(in srgb, var(--red) 28%, var(--mist)); }

.tag {
  grid-column: 2;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-decoration: none;
}
.tag[data-rating='clean'] { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tag[data-rating='caution'] { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.tag[data-rating='avoid'] { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }

/* A tag backed by a source is a real link; one without is still explained,
 * just on hover/focus rather than by a link that would point nowhere real. */
.tag-link,
.tag-tip { cursor: pointer; }
.tag-link:hover,
.tag-tip:hover,
.tag-link:focus-visible,
.tag-tip:focus-visible { filter: brightness(0.92); }
.tag-tip:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }

.tag[data-tooltip] { position: relative; }
.tag[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: max-content;
  max-width: 200px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.tag[data-tooltip]:hover::after,
.tag[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── brand ───────────────────────────────────────────────── */

.brand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.light { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.light[data-rating='green'] { background: var(--green); }
.light[data-rating='yellow'] { background: var(--amber); }
.light[data-rating='red'] { background: var(--red); }
/* Deliberately not green/amber/red — "unchecked" is not a finding, it's an
 * admission this scan skipped brand research. A signal color here would
 * misread as a verified result. */
.light[data-rating='unchecked'] { background: var(--mist); }
.brand-label { font-size: 14px; font-weight: 500; }

.event {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--mist);
  padding: 10px 14px;
  margin-bottom: 8px;
}
.event-title { font-size: 13px; }
.event-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── alternatives ────────────────────────────────────────── */
/* This block leads the report (right after the verdict), so its CTA needs
 * to read as the primary action, not a quiet secondary link. */

.alt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 0 0 1px var(--mist);
}
.alt-title { font-size: 14px; font-weight: 600; }
/* Neutral, not signal-colored — this is a price/quality comparison, not a
 * safety rating, so it stays out of the green/amber/red vocabulary. */
.alt-comparison {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  margin-top: 6px;
}
.alt-why { font-size: 13px; color: var(--slate); margin-top: 6px; }

/* One CTA per retail destination — Amazon, Google, Walmart — each in that
 * brand's own real color, so the destination is legible at a glance and
 * not just from the label text. */
.alt-links { display: flex; flex-wrap: wrap; gap: 8px; }
.alt-link {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease;
}
/* Each brand's real background/text color, declared here rather than set
 * inline from JS — a class-based rule like this can never be quietly beaten
 * by an inherited `color` the way an ad-hoc `all: unset` reset elsewhere
 * on the page could otherwise clash with an inline style. */
/* A network without a mark of its own -- a brand's store, an untyped link --
 * reads as a plain neutral button; the branded rules below override it. */
.alt-link { background: var(--paper); color: var(--ink); }
.alt-link[data-network="amazon"] { background: #131a22; color: #ffffff; }
.alt-link[data-network="google"] { background: #ffffff; color: #3c4043; }
.alt-link[data-network="walmart"] { background: #0071ce; color: #ffffff; }
.alt-link--bordered { box-shadow: 0 0 0 1px var(--mist); }
.alt-link:hover { filter: brightness(0.94); }
.alt-link--bordered:hover { filter: none; background: var(--paper) !important; }
.alt-link:active { transform: scale(0.97); }
.alt-link:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.alt-link-icon { width: 15px; height: 15px; flex: none; display: inline-flex; }
.alt-link-icon svg { width: 100%; height: 100%; display: block; }

/* ── progressive disclosure ──────────────────────────────────
 * Ingredients and manufacturer are real information, just not what most
 * people need on the first look — collapsed by default, one click away. */

.more-toggle {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  padding: 14px 0;
}
.more-toggle::after { content: ' ⌄'; }
.more-toggle[aria-expanded='true']::after { content: ' ⌃'; }
.more-toggle:hover { color: var(--ink); }
.more-toggle:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; border-radius: var(--radius-sm); }
.more-detail[hidden] { display: none; }

.chatter { margin: 0; padding-left: 18px; }
.chatter li { font-size: 13px; color: var(--slate); margin-bottom: 6px; line-height: 1.5; }

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 0 4px;
  margin: 0;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── MVP states, drawn in the tokens above ──────────────────────
.quota-counter { font-size: 13px; color: var(--slate); margin: 12px 0 0; line-height: 1.5; }
.error .quota-counter { margin-top: 8px; }

/* A plain, unlinked source line, in the same type as .src. */
.src-plain { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.stamp [data-stale] { margin-top: 8px; }

/* An alternative card that is a link keeps the card's own colour. */
.alt[href] { color: inherit; text-decoration: none; cursor: pointer; }
.alt[href]:hover { box-shadow: 0 0 0 1px var(--slate); }
.alt[href]:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.alt .src { display: inline-block; margin-top: 6px; }
.affiliate-statement { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }

/* The feedback row under the disclaimer: one muted line, links in .src type. */
.report-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0 12px;
}
.thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.thumbs-q, .thumbs-done { margin: 0; }
.thumb {
  all: unset;
  cursor: pointer;
  font-size: 12px;
  color: var(--slate);
  border-bottom: 1px solid var(--mist);
}
.thumb:hover { color: var(--ink); border-color: var(--slate); }
.thumb:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }

/* A text link that is a button. Same type as .hint, underlined like .src. */
.linkish {
  all: unset;
  display: inline-block;
  cursor: pointer;
  font-size: 13px;
  color: var(--slate);
  border-bottom: 1px solid var(--mist);
  margin-top: 14px;
}
.linkish:hover { color: var(--ink); border-color: var(--slate); }
.linkish:focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.report-foot .linkish { font-size: 12px; margin-top: 0; }
.error .linkish { margin-top: 10px; }

/* Contract error screens reuse the error card; the retry button follows it. */
.scan-error .cta-note { font-size: 13px; color: var(--slate); margin: 10px 0 0; }

.more-note { margin: 8px 0 0; font-size: 13px; color: var(--slate); }
.empty .cta { margin-top: 14px; }
.cta--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mist); }
.cta--ghost:hover { background: var(--paper); }
.alt-price { color: var(--green); font-weight: 600; white-space: nowrap; }
.product-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.product-line [data-product-name] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.product-price { flex: none; font-variant-numeric: tabular-nums; color: var(--slate); }
.history-rating.tone-good { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.history-rating.tone-mixed { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.history-rating.tone-bad { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }

/* Source verification marks and catalog badges on the legacy report. */
.verify { display: block; margin-top: 3px; font-size: 11px; color: var(--slate); }
.verify-verified { color: var(--green); }
.verify-unreachable, .verify-irrelevant { color: var(--amber); }
.badge-catalog {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--mist);
  color: var(--slate);
  text-decoration: none;
}

