.geo-report {
  --report-accent: #d49bff;
  --report-muted: #c2b5cc;
  --report-line: #ffffff20;
  --report-card: #15101b;
  margin-top: 0;
  background: #0c090f;
  border: 1px solid var(--report-line);
  border-radius: 20px;
  overflow: hidden;
  color: #f6effa;
  font-size: 15px;
}

.geo-report [hidden] { display: none !important; }
.geo-report-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding: 16px clamp(14px, 3vw, 30px);
  background: #15101b; border-bottom: 1px solid var(--report-line);
}
.geo-report-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.geo-report-brand span, .geo-report-meta { color: var(--report-muted); }
.geo-report-brand h3 { font-size: 17px; color: var(--report-accent); font-weight: 700; }
.geo-report-tabs { display: flex; gap: 4px; }
.geo-report-tabs button {
  padding: 7px 13px; border: 0; border-radius: 30px; background: transparent;
  color: var(--report-muted); cursor: pointer; font-size: 14px;
}
.geo-report-tabs button[aria-pressed="true"] { background: #ac47fb28; color: var(--report-accent); font-weight: 700; }
.geo-report-tabs button:focus-visible { outline: 2px solid var(--report-accent); outline-offset: 2px; }
.geo-report-example {
  box-sizing: border-box; width: fit-content; max-width: 100%;
  margin: clamp(32px, 4vw, 56px) auto clamp(32px, 4.4vw, 62px);
  padding: clamp(12px, 1.25vw, 15px) clamp(16px, 3.2vw, 38px); border-radius: 999px;
  background: #a84fda; color: #fff;
  font-size: clamp(15px, 1.55vw, 21px); font-weight: 500; line-height: 1.5; text-align: center;
}
.geo-report-body { padding: clamp(12px, 2.8vw, 30px); }
.geo-report-overview, .geo-metrics, .geo-chart-row, .geo-details-row { display: grid; gap: clamp(10px, 1.5vw, 18px); }
.geo-metrics, .geo-details-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.geo-chart-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.geo-details-row { margin-top: clamp(10px, 1.5vw, 18px); }
.geo-report-overview[hidden] + .geo-details-row { margin-top: 0; }
.geo-report-card { min-width: 0; padding: clamp(14px, 2vw, 26px); border-radius: 14px; border: 1px solid var(--report-line); background: var(--report-card); }
.geo-report-card h4 { font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; }
.geo-report-card h4 span { margin-right: 6px; color: var(--report-accent); font-size: .72em; }
.geo-report-meta { font-size: 13px; }
.geo-metric-value {
  display: flex; align-items: baseline; gap: 3px; margin-block: 5px;
  color: var(--report-accent); font-size: clamp(28px, 3.45vw, 49px); font-weight: 750; line-height: 1.2;
}
.geo-metric-value small { font-size: .58em; }
.geo-change { color: #d8baff; background: #ac47fb24; border-radius: 24px; padding: 3px 8px; white-space: nowrap; font-size: 11px; }
.geo-metric-value .geo-change { font-size: clamp(17px, 2vw, 27px); margin: 6px 0; padding: 4px 10px; }
.geo-trend { display: block; width: 100%; height: clamp(180px, 22vw, 310px); margin-top: 14px; }
.geo-donut {
  display: grid; place-items: center; width: min(70%, 175px); aspect-ratio: 1;
  margin: 25px auto 15px; border-radius: 50%;
  background: conic-gradient(var(--sub2) 0 var(--geo-donut-progress, 58.3%), #281c35 var(--geo-donut-progress, 58.3%) 100%);
}
.geo-donut > div { display: grid; align-content: center; text-align: center; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--report-card); }
.geo-donut strong { color: var(--report-accent); font-size: clamp(21px, 3vw, 37px); line-height: 1.25; }
.geo-donut > div > span, .geo-donut-caption { color: var(--report-muted); font-size: 12px; text-align: center; }
.geo-bars, .geo-ranking { display: grid; gap: 12px; margin-top: 16px; }
.geo-engine-bars li > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.geo-engine-bars b { margin-right: auto; }
.geo-bars strong, .geo-ranking strong { color: var(--report-accent); white-space: nowrap; font-size: 13px; }
.geo-report meter { display: block; width: 100%; height: 9px; border: 0; background: none; }
.geo-report meter::-webkit-meter-bar { border: 0; background: #2a2031; border-radius: 7px; }
.geo-report meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--main), var(--sub2)); border-radius: 7px; }
.geo-report meter::-moz-meter-bar { background: linear-gradient(90deg, var(--main), var(--sub2)); border-radius: 7px; }
.geo-ranking li, .geo-region-bars li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.geo-ranking li { padding: 4px 6px; border-radius: 7px; }
.geo-ranking li > span { color: var(--report-muted); font-size: 12px; }
.geo-ranking .geo-rank-highlight { background: #ac47fb21; color: var(--report-accent); }
.geo-region-bars li > span { color: var(--report-muted); white-space: nowrap; }
.geo-history { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.geo-history th, .geo-history td { padding: 14px 10px; border-bottom: 1px solid var(--report-line); text-align: left; }
.geo-history th { color: var(--report-muted); font-size: 13px; }
.geo-history th:first-child { width: 108px; }
.geo-history th:nth-child(2) { width: 148px; }
.geo-history th:last-child { width: 76px; }
.geo-history tbody td { color: #f6effa; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.geo-history-type { display: inline-block; padding: 3px 9px; border: 1px solid var(--report-line); border-radius: 999px; background: rgba(255, 255, 255, .04); font-size: 12px; }
.geo-history-type.is-published { border-color: var(--report-accent); color: var(--report-accent); background: transparent; }
.geo-history time, .geo-history-status { white-space: nowrap; }
.geo-history-status { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #ac47fb21; color: var(--report-accent); }

@media (max-width: 900px) {
  .geo-details-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .geo-history { display: block; }
  .geo-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .geo-history tbody { display: grid; gap: 10px; }
  .geo-history tbody tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    padding: 12px; border: 1px solid var(--report-line); border-radius: 10px;
  }
  .geo-history tbody td { padding: 0; border: 0; }
  .geo-history tbody td:first-child { color: var(--report-muted); font-size: 12px; }
  .geo-history tbody td:nth-child(3) { order: 1; flex-basis: 100%; line-height: 1.5; }
  .geo-history tbody td:last-child { margin-inline-start: auto; }
  .geo-history-type, .geo-history-status { padding-inline: 5px; font-size: 11px; }
  .geo-report-header { gap: 8px 12px; }
  .geo-report-tabs { order: 3; width: 100%; }
  .geo-report-tabs button { flex: 1; }
  .geo-chart-row, .geo-details-row { grid-template-columns: minmax(0, 1fr); }
  .geo-metrics { gap: 5px; }
  .geo-metrics .geo-report-card { padding: 9px 6px; }
  .geo-metrics dt, .geo-metrics .geo-report-meta { font-size: 11px; }
  .geo-metric-value { font-size: 24px; }
  .geo-metric-value .geo-change { font-size: 12px; padding: 2px 5px; }
  .geo-donut { width: 124px; }
}
