.insight-preview-tag {
  font-size: 10px;
  background: #eef1fa;
  color: #546384;
  border: 1px solid #dce2ee;
  border-radius: 20px;
  padding: 6px 10px;
}
.insight-rules-button {
  font: inherit;
  font-size: 11px;
  border: 1px solid #cdd9d0;
  border-radius: 10px;
  background: #f4f8f1;
  color: var(--green);
  padding: 9px 11px;
  cursor: pointer;
  min-width: 0;
}
.insight-reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 15px 0 21px;
  padding: 18px;
  background: #eff2f8;
  border: 1px solid #d9e0eb;
  border-radius: 17px;
}
.insight-reference > div {
  min-width: 0;
}
.insight-reference small {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #65748a;
}
.insight-reference strong {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 7px;
  color: #435b76;
  overflow-wrap: anywhere;
}
.insight-reference p {
  font-size: 10px;
  color: #687789;
  line-height: 1.6;
  margin-bottom: 0;
}
.insight-rank.preliminary {
  background: #f4f5f8;
  border-style: dashed;
}
.insight-badge.provisional,
.insight-badge.no_reference {
  background: #eceef5;
  color: #5e6c88;
}
.insight-reasons ul {
  padding-left: 17px;
  margin-bottom: 8px;
}
.insight-reasons li {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 5px;
}
.insight-reasons small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.insight-rules h2 {
  font-size: 19px;
}
.insight-rules h3 {
  font-size: 15px;
  margin-top: 24px;
}
.insight-rules p {
  font-size: 12px;
  line-height: 1.8;
}
@media (max-width: 500px) {
  .insight-reference {
    grid-template-columns: minmax(0, 1fr);
  }
  .insight-rank-person .insight-badge {
    font-size: 9px;
  }
  .insight-person > header .insight-badge {
    max-width: 100%;
  }
}
.insight-hero {
  padding: 26px;
  border-radius: 22px;
  background: #244d40;
  color: #fff;
  margin: 20px 0 26px;
}
.insight-eyebrow {
  font-size: 10px;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.insight-hero > .insight-eyebrow {
  color: #c8dcb6;
}
.insight-hero h2 {
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.16;
  margin: 13px 0 17px;
  letter-spacing: -0.025em;
}
.insight-hero > p {
  font-size: 13px;
  line-height: 1.7;
  color: #e2eae1;
  max-width: 700px;
}
.insight-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid #ffffff29;
  padding-top: 19px;
  margin-top: 20px;
}
.insight-meta > span {
  font-size: 10px;
  color: #dce6d9;
}
.insight-meta b {
  display: block;
  font-size: 23px;
  color: #fff;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.insight-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  margin: 22px 0;
}
.insight-section-head {
  margin: 22px 0 15px;
}
.insight-section > .insight-section-head:first-child {
  margin-top: 0;
}
.insight-section-head h2 {
  margin: 0 0 6px;
  font-size: 21px;
}
.insight-section-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.insight-section-head small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.insight-leaderboard {
  display: grid;
  gap: 9px;
}
.insight-rank {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 75px;
  gap: 11px;
  align-items: center;
  background: #f6f8f2;
  border: 1px solid #e1e7dc;
  border-radius: 15px;
  padding: 15px 12px;
  text-align: left;
  font: inherit;
  color: var(--green);
  width: 100%;
  min-width: 0;
  cursor: pointer;
}
.insight-rank:hover {
  background: #eef4e8;
}
.insight-place {
  font-size: 15px;
  color: #778470;
}
.insight-rank-person {
  min-width: 0;
}
.insight-rank-person > b {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.insight-rank-person > small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 8px;
}
.insight-score {
  text-align: right;
  align-self: center;
}
.insight-score b {
  font-size: 27px;
  line-height: 1.1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.insight-score small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.insight-badge {
  display: inline-flex;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  background: #edf0eb;
  color: #5f6e60;
  font-size: 10px;
  padding: 6px 8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.insight-badge.above {
  background: #e4eedb;
  color: #396043;
}
.insight-badge.below {
  background: #fbf0d9;
  color: #82662c;
}
.insight-badge.low_coverage,
.insight-badge.small_sample {
  background: #edf0f3;
  color: #63707e;
}
.insight-excluded {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.insight-excluded summary {
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
  min-height: 28px;
}
.insight-excluded > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.insight-excluded b {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.insight-excluded span,
.insight-excluded small,
.insight-excluded p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.insight-person {
  scroll-margin-top: 18px;
}
.insight-person > header {
  align-items: flex-start;
}
.insight-person > header .insight-badge {
  max-width: 140px;
  flex: 0 0 auto;
}
.insight-person h3 {
  font-size: 15px;
  margin: 21px 0 12px;
}
.insight-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.insight-metric {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9f4;
}
.insight-metric > span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  min-height: 30px;
  line-height: 1.4;
}
.insight-metric strong {
  font-size: 25px;
  color: var(--green);
  display: block;
  margin: 7px 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.insight-metric small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}
.insight-formula,
.insight-history {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.7;
}
.insight-formula summary {
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
}
.insight-formula p,
.insight-history p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.insight-history {
  background: #f4f5f9;
  border-color: #e1e4ee;
}
.insight-history > b {
  color: #53647e;
  font-size: 12px;
}
.insight-history p {
  margin-bottom: 0;
}
.insight-time-group h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin: 20px 0 10px;
}
.insight-time-head,
.insight-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.insight-time-head {
  font-size: 9px;
  color: var(--muted);
  padding: 0 9px 8px;
}
.insight-time-row {
  padding: 12px 9px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.insight-time-row > div {
  min-width: 0;
}
.insight-time-row strong {
  font-size: 15px;
  color: var(--green);
  display: block;
  font-variant-numeric: tabular-nums;
}
.insight-time-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.insight-time-label > b {
  font-size: 11px;
  line-height: 1.5;
  display: block;
}
.insight-time-row.watch {
  background: #fcf4e3;
  border-top-color: #e8dbbc;
  border-radius: 8px;
}
.insight-time-row.watch .insight-time-label small {
  color: #8c6b28;
}
.insight-time-row.insufficient {
  background: #f7f8f8;
}
.insight-time-row.insufficient strong {
  color: #7d8980;
}
.insight-observation {
  border-left: 3px solid #c8a45d;
  background: #fcf6ea;
  border-radius: 0 10px 10px 0;
  padding: 14px;
  margin-top: 15px;
  color: #6f5b34;
}
.insight-observation > b {
  font-size: 12px;
  line-height: 1.6;
}
.insight-observation p {
  font-size: 11px;
  line-height: 1.7;
}
.insight-observation small {
  font-size: 10px;
  line-height: 1.6;
  display: block;
}
.insight-digests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.insight-digests > article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
}
.insight-digests .insight-eyebrow {
  color: #6e7c61;
}
.insight-digests h3 {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}
.insight-digests p {
  font-size: 12px;
  line-height: 1.8;
}
.insight-digests details {
  font-size: 11px;
  color: var(--green);
  margin: 12px 0;
}
.insight-digests summary {
  cursor: pointer;
}
.insight-digests small {
  font-size: 10px;
  line-height: 1.6;
  display: block;
  color: var(--muted);
}
.insight-rules li {
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 8px;
}
@media (max-width: 500px) {
  .insight-digests {
    grid-template-columns: minmax(0, 1fr);
  }
  .insight-section {
    padding: 16px;
  }
  .insight-hero {
    padding: 21px;
  }
  .insight-rank {
    grid-template-columns: 19px minmax(0, 1fr) 63px;
    gap: 8px;
  }
  .insight-score b {
    font-size: 24px;
  }
  .insight-person > header {
    flex-wrap: wrap;
  }
  .insight-person > header .insight-badge {
    max-width: 100%;
  }
  .insight-metric {
    padding: 12px;
  }
  .insight-metric strong {
    font-size: 23px;
  }
  .cashier-tabs button {
    padding: 9px 5px;
    font-size: 11px;
  }
}
