/* Peer comparison uses the shared summary and findings hierarchy. */
#peer-matching-view.panel-view.is-active { display: block; height: 100%; overflow-y: auto; min-height: 0; }
.pm-shell, .pm-card, .pm-body, .pm-main { min-width: 0; }
.pm-shell [hidden] { display: none; }
.pm-main { padding: 24px var(--analysis-ui-inset); }
.pm-main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pm-main .analysis-ui-toolbar { padding-inline: 0; }
.pm-peer-item { border-bottom: 1px solid var(--analysis-ui-line); }
.pm-peer-row { width: 100%; display: flex; align-items: center; gap: 20px; border: 0; padding: 18px 0; background: #fff; color: #1d1d1b; text-align: left; cursor: pointer; }
.pm-peer-row:hover, .pm-peer-item.is-open .pm-peer-row { background: #f7f7f3; }
.pm-peer-rank { flex: 0 0 24px; color: #61615c; font-size: 14px; }
.pm-peer-mid { flex: 1; min-width: 0; }
.pm-peer-nameline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pm-peer-name { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.pm-peer-badge { padding: 2px 7px; border: 1px solid #e5e5df; border-radius: 4px; font-size: 12px; color: #61615c; }
.pm-peer-meta { font-size: 12px; color: #61615c; margin: 5px 0 0; }
.pm-peer-score { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; font-size: 14px; }
.pm-peer-detail { padding: 0 0 22px 44px; font-size: 15px; line-height: 1.6; }
.pm-peer-detail-label { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.pm-peer-detail p { margin: 8px 0; }
.pm-peer-domains, .pm-domains-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pm-domain-tag { display: inline-block; padding: 3px 8px; background: #f7f7f3; color: #61615c; font-size: 14px; border-radius: 4px; }
.pm-aside { margin: 0 var(--analysis-ui-inset) 32px; }
.pm-section { margin-top: 24px; }
.pm-section-label { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.pm-summary-text, .pm-sent-text { font-size: 15px; line-height: 1.6; max-width: 82ch; margin: 8px 0; }
.pm-toggle-btn { background: #fff; border: 1px solid #e5e5df; border-radius: 5px; padding: 6px 10px; cursor: pointer; color: #1d1d1b; }
.pm-year-value { font-size: 18px; }
.pm-year-source, .pm-sent-domains, .pm-peer-empty-note { font-size: 12px; color: #61615c; line-height: 1.6; }
.pm-sent-row { padding: 14px 0; border-bottom: 1px solid #e5e5df; }
.pm-sent-badge { font-size: 12px; font-weight: 600; color: #61615c; }
.pm-cluster-row { max-width: 640px; margin-bottom: 14px; }
.pm-cluster-head { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.pm-cluster-track { margin-top: 6px; height: 3px; background: #e5e5df; }
.pm-cluster-bar { height: 100%; background: #7a857c; }
.pm-spinner, .pm-error, .pm-empty { padding: 18px var(--analysis-ui-inset); color: #61615c; font-size: 15px; }
.pm-error { color: #934437; }
@media (max-width: 760px) {
  .pm-peer-row { gap: 10px; align-items: flex-start; }
  .pm-peer-score { gap: 6px; }
  .pm-peer-detail { padding-left: 0; }
  .pm-peer-rank { flex-basis: 18px; }
}
