/* Product component styles shared unchanged with the public report examples.
   Container queries respond to the available panel width, not the page type. */
.customer-overview { container: customer-overview / inline-size; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; font-family: var(--font-ui); line-height: 1.65; }
.customer-overview *, .customer-overview *::before, .customer-overview *::after { box-sizing: border-box; }
.customer-overview h2, .customer-overview h3, .customer-overview p, .customer-overview dl, .customer-overview dd { margin: 0; }
.co-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.co-header { padding: 28px 32px 22px; }
.customer-overview .co-eyebrow { color: var(--text-muted); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.customer-overview .co-name { color: var(--text); font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.customer-overview .co-description { font-size: 14px; margin-top: 10px; }
/* With the name suppressed (the SPA, where the page <h1> carries it) the
   description is the card's first real line, so it takes the weight the name
   was holding — otherwise the card opens on an eyebrow and nothing else. */
.customer-overview .co-description-lead { font-size: 16px; line-height: 1.5; margin-top: 4px; color: var(--text); }
.customer-overview .co-provenance { color: var(--text-muted); font-size: 12px; margin-top: 10px; }
.co-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 28px; padding: 28px 32px 24px; min-width: 340px; }
.co-signals dt { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.co-signals dd { color: var(--text); line-height: 1.35; overflow-wrap: anywhere; }
.co-signals .co-score { font-size: 32px; font-weight: 500; letter-spacing: -.025em; }
.co-signals .co-risk-label { font-size: 20px; text-transform: capitalize; padding-top: 6px; }
.co-traits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0 32px 22px; font-size: 12px; color: var(--text-muted); }
.co-traits strong { font-weight: 400; color: var(--text); text-transform: capitalize; }
.customer-overview .co-good { color: var(--green); }
.customer-overview .co-watch { color: var(--amber-text, var(--amber)); }
.customer-overview .co-risk { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.co-quality { padding: 16px 32px; border-block: 1px solid var(--border); border-left: 3px solid var(--orange); font-size: 13px; }
.co-quality strong { display: block; margin-bottom: 5px; font-weight: 500; }
.co-quality p + p { margin-top: 6px; }
.co-body { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.co-story, .co-actions { min-width: 0; padding: 28px 32px; }
.co-actions { border-left: 1px solid var(--border); }
.customer-overview h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.co-narrative { font-size: 15px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.co-narrative-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.co-story-toggle { display: block; margin-top: 12px; padding: 4px 0; border: 0; background: transparent; color: var(--amber-text, var(--amber)); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.co-empty { font-size: 14px; color: var(--text-muted); }
.co-evidence { display: inline-block; margin-top: 22px; color: var(--amber-text, var(--amber)); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.co-count { color: var(--text-muted); margin-left: 5px; font-weight: 400; }
.co-action + .co-action { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 18px; }
.co-action summary { cursor: pointer; list-style-position: outside; margin-left: 16px; padding-left: 4px; font-size: 14px; }
.co-action summary::marker { color: var(--text-muted); font-size: 11px; }
.co-action-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-muted); font-size: 11px; text-transform: capitalize; margin-bottom: 7px; }
.co-action-title { font-size: 15px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.co-rationale { margin: 12px 0 0 20px; padding-left: 14px; border-left: 2px solid var(--amber); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.customer-overview :focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
@container customer-overview (max-width: 640px) {
  .co-summary { display: block; }
  .co-header { padding: 24px 24px 20px; }
  .co-signals { min-width: 0; padding: 0 24px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .co-body { grid-template-columns: 1fr; }
  .co-story, .co-actions { padding: 22px 24px; }
  .co-actions { border-left: 0; border-top: 1px solid var(--border); }
  .co-quality { padding: 14px 24px; }
  .co-traits { padding-inline: 24px; }
  .customer-overview .co-name { font-size: 25px; }
  .co-narrative { font-size: 14px; }
}
@container customer-overview (max-width: 340px) {
  .co-header, .co-story, .co-actions { padding: 20px; }
  .co-signals { padding-inline: 20px; }
  .co-quality { padding-inline: 20px; }
  .co-traits { padding-inline: 20px; }
}
