.report-shell {
  display: grid;
  gap: 0;
}

.report-kicker {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.report-hero-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 8px 0 30px;
}

.report-primary-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  color: #fff;
  background: #172033;
  border-radius: 12px;
}

.report-primary-score .report-kicker { color: #b8c1cf; }
.report-primary-score strong {
  display: block;
  margin: 3px 0;
  font-size: 2.55rem;
  line-height: 1;
  letter-spacing: -0.05em;
}
.report-primary-score > span:last-child {
  color: #cbd2dc;
  font-size: 0.82rem;
}

.report-summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.report-summary-copy h3 {
  margin: 0 0 10px;
  color: #172033;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}
.report-summary-copy p {
  max-width: 68ch;
  margin: 0;
  color: #475467;
  font-size: 1rem;
  line-height: 1.65;
}
.report-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: #667085;
  font-size: 0.82rem;
}
.report-inline-metrics strong { color: #172033; }

.report-section {
  padding: 30px 0;
  border-top: 1px solid #e4e7ec;
}
.report-section-heading { margin-bottom: 18px; }
.report-section-heading h3,
.report-section h3 {
  margin: 0;
  color: #172033;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.report-priority-section { padding-top: 32px; }
.priority-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.priority-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  background: #f8f9fb;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
.priority-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #2457d6;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 750;
}
.priority-list p {
  margin: 3px 0 0;
  color: #344054;
  line-height: 1.55;
}

.rewrite-list { display: grid; gap: 14px; }
.rewrite-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
}
.rewrite-card-heading {
  padding: 9px 14px;
  color: #667085;
  background: #f8f9fb;
  border-bottom: 1px solid #e4e7ec;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rewrite-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 16px;
}
.rewrite-block {
  min-width: 0;
  padding: 13px 14px;
  border-radius: 8px;
}
.rewrite-before { background: #fff6f5; border: 1px solid #f2d2cf; }
.rewrite-after { background: #f1fbf7; border: 1px solid #c8e8da; }
.rewrite-label {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rewrite-block p {
  margin: 0;
  color: #344054;
  line-height: 1.55;
  white-space: pre-wrap;
}
.rewrite-arrow {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 1.2rem;
}

.keyword-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}
.keyword-heading p {
  margin: 0;
  color: #667085;
  font-size: 0.78rem;
}
.keyword-priority-panel { display: grid; gap: 18px; }
.keyword-group {
  min-width: 0;
  padding: 16px;
  background: #fafbfc;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
.keyword-group-missing {
  background: #fff9f8;
  border-color: #f0d7d4;
}
.keyword-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kw-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.kw-section-header h4 {
  margin: 0;
  color: #344054;
  font-size: 0.9rem;
}
.kw-section-count {
  padding: 1px 7px;
  color: #667085;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 0.7rem;
}
.kw-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kw-tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.kw-present { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.kw-maybe { color: #854d0e; background: #fffbeb; border-color: #fde68a; }
.kw-missing { color: #991b1b; background: #fff1f1; border-color: #fecaca; }
.kw-maybe-note { margin: 8px 0 0; color: #78716c; font-size: 0.74rem; }

.report-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.insight-column h3 { margin-bottom: 10px; font-size: 1rem; }
.insight-column ul { margin: 0; padding-left: 20px; }
.insight-column li { margin-bottom: 8px; color: #344054; }

.report-accordion {
  border-top: 1px solid #e4e7ec;
}
.report-accordion summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.report-accordion summary::-webkit-details-marker { display: none; }
.report-accordion summary span:first-child { display: grid; gap: 3px; }
.report-accordion summary strong { color: #172033; font-size: 1rem; }
.report-accordion summary small { color: #667085; font-size: 0.78rem; }
.accordion-chevron {
  color: #667085;
  font-size: 1.15rem;
  transition: transform 140ms ease;
}
.report-accordion[open] .accordion-chevron { transform: rotate(180deg); }
.report-accordion-content { padding: 0 0 26px; }

.report-score-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(130px, 0.8fr));
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
.report-meter-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border-left: 1px solid #e4e7ec;
}
.report-meter-card:first-child { border-left: 0; }
.report-meter-label { margin-bottom: 8px; color: #667085; font-size: 0.82rem; font-weight: 650; }
.report-meter-value { margin-top: 8px; color: #172033; font-size: 1.35rem; font-weight: 760; }
.report-meter-subvalue { margin-top: 3px; color: #667085; font-size: 0.76rem; }
.report-progress { height: 6px; overflow: hidden; background: #e9edf3; border-radius: 999px; }
.report-progress span { display: block; height: 100%; background: #2457d6; }
.report-progress-match span { background: #16856b; }
.report-toggle-row { display: flex; gap: 5px; margin-bottom: 10px; }
.report-toggle-btn {
  padding: 4px 8px;
  color: #667085;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}
.report-toggle-btn.is-active { color: #1d46ad; background: #eef3ff; border-color: #9db4ef; }

.report-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.report-detail-grid h3 { margin: 0 0 12px; color: #344054; font-size: 0.95rem; }
.report-grammar-group + .report-grammar-group { margin-top: 14px; }
.report-grammar-group h4 { margin-bottom: 7px; }
.report-grammar-group ul { margin: 0; padding-left: 19px; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th,
.report-table td { padding: 9px 6px; text-align: left; border-bottom: 1px solid #e7edf3; font-size: 0.84rem; }

.report-interview { border-top: 1px solid #e4e7ec; }
.report-interview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.report-interview-col {
  padding: 16px;
  background: #fafbfc;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
}
.report-interview-col h4 { margin: 0 0 9px; color: #344054; font-size: 0.9rem; }
.report-interview-col ol { margin: 0; padding-left: 19px; }
.report-interview-col li { margin-bottom: 7px; color: #344054; font-size: 0.86rem; line-height: 1.5; }
.report-interview-col--full { grid-column: 1 / -1; }

.report-banner {
  margin-bottom: 18px;
  padding: 10px 12px;
  color: #7a4b00;
  background: #fff8e8;
  border: 1px solid #f3d99a;
  border-radius: 8px;
  font-size: 0.84rem;
}
.report-empty { color: #667085; font-style: italic; }
.report-watermark {
  padding-top: 16px;
  color: #98a2b3;
  border-top: 1px solid #e4e7ec;
  font-size: 0.74rem;
  text-align: right;
}

@media (max-width: 760px) {
  .report-hero-summary,
  .keyword-secondary-grid,
  .report-insights,
  .report-detail-grid,
  .report-interview-grid,
  .report-score-grid { grid-template-columns: 1fr; }

  .report-primary-score { min-height: 150px; }
  .keyword-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .rewrite-pair { grid-template-columns: 1fr; }
  .rewrite-arrow { transform: rotate(90deg); }
  .report-meter-card { border-top: 1px solid #e4e7ec; border-left: 0; }
  .report-meter-card:first-child { border-top: 0; }
  .report-interview-col--full { grid-column: auto; }
}
