/* ============================================================
   Report page: weekly brief layout. Everything is scoped under .rx so it
   cannot leak into the shared header/footer or other pages. Works in both
   the site's light and dark themes; the overview panel is deliberately
   dark in both (the page's focal "object").
   ============================================================ */
.rx{
  --rx-sans: "Inter", "Poppins", system-ui, -apple-system, sans-serif;
  --rx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rx-ease: cubic-bezier(.16, 1, .3, 1);
  --rx-radius: 18px;
  --rx-accent: var(--blue);
  font-family: var(--rx-sans);
  padding-bottom: 56px;
}
.rx .num, .rx b, .rx-big{ font-variant-numeric: tabular-nums; }

/* ---------- labels ---------- */
.rx-label{
  display:inline-flex; align-items:center; gap:7px;
  font:500 10.5px/1 var(--rx-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3);
}
.rx-label svg.i{ width:13px; height:13px; }
.rx-formula{ margin-left:8px; font-size:11.5px; color:var(--ink-3); }

/* ---------- page head ---------- */
.rx-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding:34px 0 22px; border-bottom:1px solid var(--line);
}
.rx-kicker{
  display:inline-flex; align-items:center; gap:8px; margin-bottom:12px;
  font:500 11px/1 var(--rx-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3);
}
.rx-kicker i{ width:7px; height:7px; border-radius:50%; background:var(--green-hot); box-shadow:0 0 0 4px var(--green-soft); }
.rx-title{ font-family:var(--rx-sans); font-size:40px; font-weight:600; letter-spacing:-.035em; line-height:1.04; }
.rx-range{ margin-top:10px; font-size:14.5px; color:var(--ink-2); }
.rx-scope{ margin-top:4px; }
.rx-head > div{ min-width:0; max-width:100%; }
.rx-controls{ display:flex; gap:18px; flex-wrap:wrap; align-items:flex-end; min-width:0; max-width:100%; }
.rx-ctl{ display:flex; flex-direction:column; gap:8px; min-width:0; max-width:100%; }

/* ---------- section heads ---------- */
.rx-sec{ margin-top:44px; }
.rx-sec-head{ display:flex; align-items:baseline; gap:14px; margin-bottom:18px; flex-wrap:wrap; }
.rx-sec-num{ font:500 12px/1 var(--rx-mono); color:var(--ink-4); letter-spacing:.06em; }
.rx-sec-head h2{ font-family:var(--rx-sans); font-size:22px; font-weight:600; letter-spacing:-.025em; }
.rx-sec-head p{ font-size:13px; color:var(--ink-3); margin-left:auto; }

/* ---------- overview: the dark focal panel ---------- */
.rx-ov{
  position:relative; overflow:hidden; margin-top:26px;
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:0;
  background:#0A0C11; color:#F4F5F7; border-radius:24px;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 30px 60px -38px rgba(10,12,17,.65);
}
[data-theme="dark"] .rx-ov{ background:#08090C; border-color:rgba(255,255,255,.09); }
.rx-ov-glow{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(520px 260px at 8% 0%, rgba(20,55,190,.38), transparent 70%),
    radial-gradient(420px 240px at 100% 100%, rgba(0,229,81,.14), transparent 70%);
}
.rx-ov-main{ position:relative; padding:30px 32px; }
.rx-ov-kicker{
  display:inline-flex; align-items:center; gap:8px;
  font:500 11px/1 var(--rx-mono); letter-spacing:.09em; text-transform:uppercase; color:#8F97A6;
}
.rx-ov-kicker svg.i{ width:14px; height:14px; }
.rx-ov-num{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-top:18px; }
.rx-ov-num span{ font-size:84px; font-weight:600; letter-spacing:-.06em; line-height:.9; }
.rx-ov-num small{ font-size:15px; color:#B7BDC8; }
.rx-ov-meta{ margin-top:14px; min-height:22px; }
.rx-ov-split{ display:flex; gap:4px; height:8px; margin-top:26px; border-radius:99px; overflow:hidden; }
.rx-ov-split i{ display:block; min-width:4px; border-radius:99px; animation:rx-grow .9s var(--rx-ease) both; transform-origin:left; }
.rx-ov-legend{ display:flex; gap:18px; flex-wrap:wrap; margin-top:12px; font-size:12.5px; color:#B7BDC8; }
.rx-ov-legend span{ display:inline-flex; align-items:center; gap:7px; }
.rx-ov-legend i{ width:8px; height:8px; border-radius:2px; }
.rx-ov-legend b{ color:#fff; font-weight:600; }
.rx-ov-legend em{ font-style:normal; font-family:var(--rx-mono); font-size:11px; color:#7E8696; }
.rx-ov-cells{
  position:relative; display:grid; grid-template-columns:1fr 1fr;
  border-left:1px solid rgba(255,255,255,.07);
}
.rx-ov-cell{ padding:24px 26px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.rx-ov-cell:nth-child(odd){ border-right:1px solid rgba(255,255,255,.07); }
.rx-ov-cell:nth-child(-n+2){ border-bottom:1px solid rgba(255,255,255,.07); }
.rx-ov-label{
  display:inline-flex; align-items:center; gap:7px;
  font:500 10.5px/1 var(--rx-mono); letter-spacing:.08em; text-transform:uppercase; color:#8F97A6;
}
.rx-ov-label svg.i{ width:13px; height:13px; }
.rx-ov-cell b{ font-size:30px; font-weight:600; letter-spacing:-.04em; line-height:1.05; color:#fff; }
.rx-ov-cell b.is-bad{ color:#FF7A98; }
.rx-ov-cell small{ font-size:12px; color:#7E8696; }
.rx-ov .rx-delta.is-up{ background:rgba(47,216,107,.12); color:#3BE07A; box-shadow:inset 0 0 0 1px rgba(47,216,107,.28); }
.rx-ov .rx-delta.is-down{ background:rgba(255,92,130,.12); color:#FF7A98; box-shadow:inset 0 0 0 1px rgba(255,92,130,.28); }
.rx-ov .rx-delta em{ color:#8F97A6; }
.rx-skel-text{ opacity:.4; }

/* ---------- delta chip ---------- */
.rx-delta{
  display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:99px;
  font:600 12px/1 var(--rx-sans);
}
.rx-delta svg.i{ width:13px; height:13px; }
.rx-delta em{ font-style:normal; font-weight:500; color:var(--ink-3); }
.rx-delta.is-up{ background:var(--green-soft); color:var(--green); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 25%,transparent); }
.rx-delta.is-down{ background:var(--coral-soft); color:var(--coral); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--coral) 25%,transparent); }

/* ---------- SMM panels ---------- */
.rx-pair{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.rx-panel{
  position:relative; min-width:0;
  background:var(--card); border:1px solid var(--line); border-radius:var(--rx-radius);
  padding:24px; transition:transform .3s var(--rx-ease), border-color .3s var(--rx-ease), box-shadow .3s var(--rx-ease);
}
.rx-panel::before{
  content:""; position:absolute; left:24px; right:24px; top:-1px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, var(--rx-accent), transparent 80%);
}
.rx-panel:hover{ transform:translateY(-2px); border-color:var(--line-2); box-shadow:var(--shadow); }
.rx-panel-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.rx-chip{
  display:inline-flex; align-items:center; gap:7px; padding:6px 11px; border-radius:99px;
  font:600 12px/1 var(--rx-sans); color:var(--rx-accent);
  background:color-mix(in srgb, var(--rx-accent) 10%, transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--rx-accent) 28%, transparent);
}
.rx-chip svg.i{ width:14px; height:14px; }
.rx-owner{ margin-top:10px; font-size:14px; font-weight:600; color:var(--ink); }
.rx-owner span{ font-weight:400; color:var(--ink-3); margin-left:4px; }
.rx-ring{ flex:none; margin-top:-4px; }

.rx-hero{ margin-top:22px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.rx-hero-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:12px; }
.rx-big{
  font:600 64px/0.95 var(--rx-sans); letter-spacing:-.055em; color:var(--ink);
  background:none; border:0; padding:0; cursor:pointer;
  text-decoration:underline; text-decoration-color:transparent; text-underline-offset:8px; text-decoration-thickness:2px;
  transition:text-decoration-color .25s var(--rx-ease);
}
.rx-big:hover, .rx-big:focus-visible{ text-decoration-color:color-mix(in srgb, var(--rx-accent) 55%, transparent); outline:none; }
.rx-big.is-static{ cursor:default; }
.rx-big.is-static:hover{ text-decoration-color:transparent; }
.rx-subline{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:14px; }
.rx-link, .rx-soft{
  display:inline-flex; align-items:center; gap:6px; font:500 13px/1.3 var(--rx-sans); color:var(--ink-2);
}
.rx-link svg.i, .rx-soft svg.i{ width:14px; height:14px; }
.rx-link{ background:none; border:0; padding:0; cursor:pointer; }
.rx-link:disabled{ cursor:default; color:var(--green); }
.rx-link.is-bad{ color:var(--coral); text-decoration:underline dotted; text-underline-offset:4px; }
.rx-soft{ color:var(--ink-3); }

.rx-block{ margin-top:22px; }
.rx-block > .rx-label{ margin-bottom:12px; }
.rx-empty{ font-size:13px; color:var(--ink-3); }

/* brand rows */
.rx-rows{ display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.rx-row{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:11px 14px; font-size:13.5px; }
.rx-row + .rx-row{ border-top:1px solid var(--line); }
.rx-row-name{ display:inline-flex; align-items:center; gap:9px; font-weight:600; min-width:0; }
.rx-dot{ width:8px; height:8px; border-radius:50%; flex:none; }
.rx-row-val{ color:var(--ink-3); font-size:12.5px; }
.rx-row-val b{ color:var(--ink); font-size:15px; font-weight:600; margin-right:3px; }
.rx-row-tag{ font:600 11px/1 var(--rx-sans); padding:5px 8px; border-radius:99px; white-space:nowrap; }
.rx-row-tag.is-bad{ color:var(--coral); background:var(--coral-soft); }
.rx-row-tag.is-good{ color:var(--green); background:var(--green-soft); }

/* platform bars */
.rx-bars{ display:flex; flex-direction:column; gap:10px; }
.rx-bar{ display:grid; grid-template-columns:minmax(120px,1.1fr) minmax(0,2fr) 40px; align-items:center; gap:12px; font-size:13px; }
.rx-bar-name{ display:inline-flex; align-items:center; gap:8px; color:var(--ink-2); min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rx-bar-name svg.i{ width:14px; height:14px; color:var(--ink-3); }
.rx-bar-track{ display:block; height:6px; border-radius:99px; background:var(--paper-2); overflow:hidden; }
.rx-bar-track i{ display:block; height:100%; border-radius:99px; background:var(--rx-accent); animation:rx-grow .9s var(--rx-ease) both; transform-origin:left; }
.rx-bar-val{ text-align:right; font-weight:600; }

/* day strip */
.rx-days{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.rx-days.is-month{ grid-template-columns:repeat(auto-fill,minmax(58px,1fr)); }
.rx-day{
  display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 4px 9px;
  border:1px solid var(--line); border-radius:12px; background:var(--card); min-width:0;
}
.rx-day.is-weekend{ background:var(--card-2); border-style:dashed; }
.rx-day-name{ font:500 10px/1 var(--rx-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.rx-day-date{ font-size:11px; color:var(--ink-3); }
.rx-day-bar{ position:relative; width:8px; height:46px; border-radius:99px; background:var(--paper-2); overflow:hidden; display:flex; align-items:flex-end; }
.rx-day-bar i{ display:block; width:100%; border-radius:99px; animation:rx-rise .9s var(--rx-ease) both; transform-origin:bottom; }
.rx-day-count{ font-size:16px; font-weight:600; letter-spacing:-.02em; }
.rx-day-split{ font:500 10.5px/1 var(--rx-mono); color:var(--ink-3); white-space:nowrap; }
.rx-day-split i{ font-style:normal; margin:0 3px; color:var(--ink-4); }
.rx-legend{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; margin-top:10px; font-size:12px; color:var(--ink-3); }
.rx-legend span{ display:inline-flex; align-items:center; gap:6px; }
.rx-legend i{ width:8px; height:8px; border-radius:2px; }
.rx-legend-note{ margin-left:auto; font-family:var(--rx-mono); font-size:10.5px; }

/* ---------- engagement ---------- */
/* Hairlines drawn as each cell's right and bottom edge (the outer ones are
   clipped by the rounded frame), so cells can wrap to any number of rows and
   leftover space stays card-coloured instead of showing a grey filler. */
.rx-metrics{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  margin-top:20px; border:1px solid var(--line); border-radius:14px; overflow:hidden;
}
.rx-metric{ display:flex; flex-direction:column; gap:7px; padding:14px 14px 13px; min-width:0; box-shadow:1px 0 0 var(--line), 0 1px 0 var(--line); }
.rx-metric-ic{
  width:28px; height:28px; border-radius:8px; display:grid; place-items:center;
  color:var(--rx-accent); background:color-mix(in srgb, var(--rx-accent) 11%, transparent);
}
.rx-metric-ic svg.i{ width:15px; height:15px; }
.rx-metric-label{ font:500 10px/1 var(--rx-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
.rx-metric b{ font-size:19px; font-weight:600; letter-spacing:-.03em; white-space:nowrap; }
.rx-metric.is-na b{ color:var(--ink-4); }
.rx-metric.is-na .rx-metric-ic{ color:var(--ink-4); background:var(--paper-2); }

.rx-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:12px; }
.rx-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.rx-table th{
  text-align:right; padding:10px 9px; white-space:nowrap;
  font:500 9.5px/1 var(--rx-mono); letter-spacing:.05em; text-transform:uppercase; color:var(--ink-3);
  background:var(--card-2); border-bottom:1px solid var(--line);
}
.rx-table th svg.i{ width:11px; height:11px; margin-right:3px; vertical-align:-2px; }
.rx-table th:first-child, .rx-table td:first-child{ text-align:left; }
.rx-table td{ padding:11px 9px; text-align:right; white-space:nowrap; }
.rx-table tr + tr td{ border-top:1px solid var(--line); }
.rx-plat{ display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.rx-plat svg.i{ width:15px; height:15px; color:var(--ink-2); }
.rx-td-eng{ min-width:84px; }
.rx-td-eng b{ display:block; font-size:14px; font-weight:600; }
.rx-td-eng .rx-bar-track{ margin-top:6px; height:4px; }
.rx-na{ color:var(--ink-4); }
.rx-footnote{ display:flex; align-items:flex-start; gap:7px; margin-top:16px; font-size:12.5px; color:var(--ink-3); line-height:1.5; }
.rx-footnote svg.i{ width:14px; height:14px; margin-top:2px; color:var(--amber); }

.rx-combined{ margin-top:16px; }
.rx-combined-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.rx-stamp{ display:inline-flex; align-items:center; gap:6px; font:500 11px/1 var(--rx-mono); color:var(--ink-3); }
.rx-stamp svg.i{ width:13px; height:13px; }
.rx-cms{ display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); margin-top:18px; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.rx-cm{ padding:14px 16px; display:flex; flex-direction:column; gap:9px; min-width:0; box-shadow:1px 0 0 var(--line), 0 1px 0 var(--line); }
.rx-cm b{ font-size:22px; font-weight:600; letter-spacing:-.035em; }
.rx-cm:first-child b{ color:var(--blue); }

.rx-chart{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:10px; align-items:end;
  height:200px; padding:16px 14px 12px; border:1px solid var(--line); border-radius:14px; background:var(--card-2);
}
.rx-col{ display:flex; flex-direction:column; align-items:center; gap:7px; height:100%; min-width:0; }
.rx-col b{ font-size:11.5px; font-weight:600; color:var(--ink-2); white-space:nowrap; }
.rx-col-bar{ flex:1; width:100%; max-width:46px; display:flex; align-items:flex-end; }
.rx-col-bar i{
  display:block; width:100%; border-radius:8px 8px 3px 3px;
  background:color-mix(in srgb, var(--blue) 30%, var(--card-2));
  animation:rx-rise .9s var(--rx-ease) both; transform-origin:bottom;
}
.rx-col.is-on .rx-col-bar i{ background:linear-gradient(180deg, var(--blue), color-mix(in srgb, var(--blue) 70%, var(--green-hot))); }
.rx-col.is-on b{ color:var(--ink); }
.rx-col-label{ font:500 10px/1 var(--rx-mono); color:var(--ink-3); white-space:nowrap; }

/* ---------- notes ---------- */
.rx-note{ font-size:13.5px; line-height:1.65; color:var(--ink-2); }
.rx-notes{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.rx-notes .rx-panel::before{ display:none; }
.rx-notes h3{ display:flex; align-items:center; gap:8px; font-family:var(--rx-sans); font-size:14px; font-weight:600; margin-bottom:8px; }
.rx-notes h3 svg.i{ width:15px; height:15px; color:var(--ink-3); }
.rx-notes p{ font-size:13px; line-height:1.65; color:var(--ink-2); }
.rx-notes p + p{ margin-top:8px; }

/* ---------- motion ---------- */
@keyframes rx-grow{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
@keyframes rx-rise{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
@media (prefers-reduced-motion: reduce){
  .rx-bar-track i, .rx-day-bar i, .rx-col-bar i, .rx-ov-split i{ animation:none; }
  .rx-panel{ transition:none; }
}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .rx-ov{ grid-template-columns:1fr; }
  .rx-ov-cells{ border-left:0; border-top:1px solid rgba(255,255,255,.07); }
  .rx-pair{ grid-template-columns:1fr; }
  .rx-notes{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .rx-head{ padding-top:24px; }
  .rx-title{ font-size:30px; }
  .rx-controls, .rx-ctl{ width:100%; }
  .rx-ov-main{ padding:24px 20px; }
  .rx-ov-num span{ font-size:60px; }
  .rx-ov-cell{ padding:18px 18px; }
  .rx-ov-cell b{ font-size:24px; }
  .rx-panel{ padding:18px; }
  .rx-panel::before{ left:18px; right:18px; }
  .rx-big{ font-size:52px; }
  .rx-metrics{ grid-template-columns:repeat(auto-fit,minmax(124px,1fr)); }
  .rx-metric b{ font-size:18px; }
  .rx-bar{ grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) 32px; gap:8px; }
  .rx-days{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .rx-chart{ gap:5px; padding:12px 8px 10px; }
  .rx-col b{ font-size:10px; }
  .rx-col-label{ font-size:9px; }
  .rx-sec-head p{ margin-left:0; flex-basis:100%; }
  .rx-legend-note{ margin-left:0; }
}
