.product-nav {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-nav a {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 9px 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}
.product-nav a:hover { color: var(--teal-dark); background: var(--teal-soft); }
.product-nav a[aria-current="page"] { border-color: var(--line); border-bottom-color: white; background: white; color: var(--teal-dark); }
.section-nav--sub { border-top: 1px solid #eef2f4; }
.survey-refresh { min-width: 220px; display: grid; justify-items: end; gap: 8px; }
.survey-refresh .snapshot { margin: 0; }
.refresh-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.ai-summary { margin: 0 0 18px; padding: 16px; border-left: 4px solid var(--teal); border-radius: 8px; background: var(--teal-soft); color: var(--ink); }
.ai-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ai-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.ai-card h3 { margin-bottom: 8px; }
.ai-card p:last-child, .ai-card ul:last-child { margin-bottom: 0; }
.ai-finding + .ai-finding { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-evidence { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.ai-meta { margin-top: 14px; color: var(--muted); font-size: 11px; }
.scope-grid { margin: 0 0 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.scope-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.scope-card span, .scope-card small { display: block; color: var(--muted); font-size: 11px; }
.scope-card span { font-weight: 760; }
.scope-card strong { display: block; margin: 5px 0 2px; color: var(--navy); font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cohort-toolbar { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.cohort-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.cohort-switch button { min-height: 40px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; color: #405965; font-size: 12px; font-weight: 760; }
.cohort-switch button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.survey-domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.result-panel { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.result-panel h3 { margin-bottom: 10px; }
.result-panel:last-child { grid-column: 1 / -1; }
.denominator { margin: 0 0 9px; color: var(--muted); font-size: 11px; font-weight: 720; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: white; }
.survey-table { width: 100%; min-width: 430px; border-collapse: collapse; color: var(--ink); font-size: 11px; }
.survey-table caption { padding: 8px 10px; caption-side: top; color: var(--muted); text-align: left; }
.survey-table th, .survey-table td { padding: 9px 10px; border-bottom: 1px solid #e8eef0; text-align: left; vertical-align: top; }
.survey-table th { color: #415c69; font-weight: 760; }
.survey-table td.numeric, .survey-table th.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.survey-table tbody tr:last-child > * { border-bottom: 0; }
.jse-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.jse-wave { min-width: 0; padding: 21px; }
.jse-wave h3 { margin-bottom: 12px; font-size: 19px; }
.jse-counts { margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.jse-counts div { min-width: 0; padding: 10px; border-radius: 9px; background: var(--sky-soft); }
.jse-counts dt { color: var(--muted); font-size: 9px; }
.jse-counts dd { margin: 2px 0 0; color: var(--navy); font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.jse-summary { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.jse-summary span { padding: 5px 8px; border-radius: 7px; background: var(--teal-soft); color: var(--teal-dark); font-size: 11px; font-weight: 720; }
.histogram { min-height: 126px; padding: 10px 8px 2px; display: grid; grid-template-columns: repeat(6, minmax(30px, 1fr)); align-items: end; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.histogram__bar { min-width: 0; display: grid; align-content: end; gap: 4px; text-align: center; }
.histogram__bar b { color: var(--teal-dark); font-size: 10px; }
.histogram__fill { min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, #43a39c, #0b706c); }
.histogram__bar small { color: var(--muted); font-size: 8px; overflow-wrap: anywhere; }
.jse-wave .table-wrap { margin-top: 12px; }
.jse-wave .survey-table { min-width: 360px; }
#jse-note { margin-top: 0; }
#jse-note p:last-child { margin-bottom: 0; }
@media (max-width: 920px) {
  .scope-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .survey-domain-grid { grid-template-columns: minmax(0, 1fr); }
  .result-panel:last-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .product-nav { padding: 0 17px; }
  .survey-refresh { width: 100%; justify-items: stretch; }
  .survey-refresh .snapshot, .refresh-status { text-align: left; }
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .scope-card { padding: 12px; }
  .scope-card strong { font-size: 23px; }
  .cohort-toolbar { align-items: flex-start; flex-direction: column; }
  .cohort-switch { width: 100%; justify-content: flex-start; }
  .cohort-switch button { flex: 1 1 145px; white-space: normal; }
  .jse-grid { grid-template-columns: minmax(0, 1fr); }
  .jse-wave { padding: 17px; }
}
@media (max-width: 420px) {
  .brand-lockup strong { font-size: 16px; }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .jse-counts { grid-template-columns: minmax(0, 1fr); }
  .histogram { gap: 3px; }
  .histogram__bar small { font-size: 7px; }
}
@media print {
  .product-nav, .section-nav--sub, .cohort-switch { display: none !important; }
  .survey-domain-grid, .jse-grid { display: block; }
  .result-panel, .jse-wave { margin-bottom: 14px; break-inside: avoid; }
}
