/* ═════════════════════════════════════════════════════════════
   UPSHIFT MONTHLY REPORT  ·  TailAdmin-inspired, WordPress-safe
   All selectors scoped under .usr-report
   ═════════════════════════════════════════════════════════════ */

.usr-report {
  /* ─── Palette ───────────────────────────────────────── */
  --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-200:#bfdbfe; --blue-300:#93c5fd; --blue-400:#60a5fa;
  --blue-500:#3b82f6; --blue-600:#2563eb; --blue-700:#1d4ed8; --blue-800:#1e40af; --blue-900:#1e3a8a;

  --orange-50:#fff7ed; --orange-100:#ffedd5; --orange-200:#fed7aa; --orange-300:#fdba74; --orange-400:#fb923c;
  --orange-500:#f97316; --orange-600:#ea580c; --orange-700:#c2410c; --orange-800:#9a3412; --orange-900:#7c2d12;

  --green-50:#ecfdf5; --green-100:#d1fae5; --green-200:#a7f3d0; --green-300:#6ee7b7; --green-400:#34d399;
  --green-500:#10b981; --green-600:#059669; --green-700:#047857; --green-800:#065f46; --green-900:#064e3b;

  --purple-50:#faf5ff; --purple-100:#f3e8ff; --purple-200:#e9d5ff; --purple-300:#d8b4fe; --purple-400:#c084fc;
  --purple-500:#a855f7; --purple-600:#9333ea; --purple-700:#7e22ce; --purple-800:#6b21a8; --purple-900:#581c87;

  --red-50:#fef2f2; --red-100:#fee2e2; --red-200:#fecaca; --red-300:#fca5a5; --red-400:#f87171;
  --red-500:#ef4444; --red-600:#dc2626; --red-700:#b91c1c; --red-800:#991b1b; --red-900:#7f1d1d;

  --yellow-50:#fefce8; --yellow-100:#fef9c3; --yellow-200:#fef08a; --yellow-300:#fde047; --yellow-400:#facc15;
  --yellow-500:#eab308; --yellow-600:#ca8a04; --yellow-700:#a16207; --yellow-800:#854d0e; --yellow-900:#713f12;

  --grey-50:#f8fafc; --grey-100:#f1f5f9; --grey-200:#e2e8f0; --grey-300:#cbd5e1; --grey-400:#94a3b8;
  --grey-500:#64748b; --grey-600:#475569; --grey-700:#334155; --grey-800:#1e293b; --grey-900:#0f172a;

  /* ─── Semantic aliases (mapped onto the palette) ─────── */
  --brand:       var(--blue-500);
  --brand-2:     var(--blue-600);
  --brand-dark:  var(--blue-700);
  --brand-soft:  var(--blue-50);
  --navy:        var(--grey-800);
  --navy-2:      var(--grey-700);
  --slate-50:    var(--grey-50);
  --slate-100:   var(--grey-100);
  --slate-200:   var(--grey-200);
  --slate-300:   var(--grey-300);
  --slate-400:   var(--grey-400);
  --slate-500:   var(--grey-500);
  --slate-600:   var(--grey-600);
  --slate-700:   var(--grey-700);
  --slate-800:   var(--grey-800);
  --success:     var(--green-500);
  --success-soft:var(--green-50);
  --warning:     var(--yellow-500);
  --warning-soft:var(--yellow-50);
  --danger:      var(--red-500);
  --danger-soft: var(--red-50);
  --info:        var(--blue-500);
  --accent:      var(--purple-500);
  --accent-soft: var(--purple-50);
  --shadow-1: 0 1px 3px rgba(15,23,42,.04), 0 1px 2px rgba(15,23,42,.03);
  --shadow-2: 0 4px 6px -1px rgba(15,23,42,.06), 0 2px 4px -2px rgba(15,23,42,.04);
  --shadow-3: 0 10px 25px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.05);
  --shadow-4: 0 20px 40px -12px rgba(15,23,42,.18);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.4,0,.2,1);

  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--slate-700);
  background: #f1f5f9;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.usr-report *, .usr-report *::before, .usr-report *::after {
  box-sizing: border-box;
}
.usr-report h1, .usr-report h2, .usr-report h3, .usr-report h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
}
.usr-report p { margin: 0; }
.usr-report ul { margin: 0; padding: 0; list-style: none; }
.usr-report button { font-family: inherit; }

/* ─── Entrance animations ───────────────────────────────── */
@keyframes ur-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ur-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ur-grow-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes ur-grow-y {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes ur-pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(41,171,226,.55); }
  70%     { box-shadow: 0 0 0 10px rgba(41,171,226,0); }
}
@keyframes ur-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
@keyframes ur-spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes ur-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.usr-report .ur-reveal {
  opacity: 0;
  animation: ur-fade-up .7s var(--ease) forwards;
}
.usr-report .ur-reveal.d1 { animation-delay: .05s; }
.usr-report .ur-reveal.d2 { animation-delay: .12s; }
.usr-report .ur-reveal.d3 { animation-delay: .19s; }
.usr-report .ur-reveal.d4 { animation-delay: .26s; }
.usr-report .ur-reveal.d5 { animation-delay: .33s; }
.usr-report .ur-reveal.d6 { animation-delay: .40s; }

/* ═══════════════ HERO ═══════════════ */
.usr-report .ur-hero {
  position: relative;
  overflow: hidden;
  background: #1c2434;
  color: #fff;
  padding: 24px 32px 0;
}
.usr-report .ur-hero::before { content: none; }
.usr-report .ur-hero-blob { display: none; }

.usr-report .ur-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 12px;
}
.usr-report .ur-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.usr-report .ur-brand-mark {
  height: 44px;
  width: auto;
  color: #ffffff;                /* tints the dark parts of the SVG on the hero */
  transition: transform .4s var(--ease), filter .4s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(3,155,229,.28));
}
.usr-report .ur-brand-mark:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 8px 22px rgba(3,155,229,.55));
}
.usr-report .ur-brand-pipe {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.2);
}
.usr-report .ur-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(41,171,226,.15);
  border: 1px solid rgba(41,171,226,.35);
  color: #9fdcf5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.usr-report .ur-brand-tag .ur-pulse {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: ur-pulse-dot 2s infinite;
}

.usr-report .ur-hero-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 14px;
}
.usr-report .ur-hero-title .ur-grad {
  color: var(--brand);
}
.usr-report .ur-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 24px;
}
.usr-report .ur-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.usr-report .ur-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.usr-report .ur-hero-badge:hover {
  background: rgba(41,171,226,.18);
  border-color: rgba(41,171,226,.5);
  transform: translateY(-2px);
}
.usr-report .ur-hero-badge svg { width: 14px; height: 14px; }

.usr-report .ur-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.usr-report .ur-hero-stats-row {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 14px;
}
.usr-report .ur-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 10px;
  animation: ur-float 6s ease-in-out infinite;
}
.usr-report .ur-hero-visual img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 340px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)) drop-shadow(0 0 40px rgba(41,171,226,0.25));
  transition: transform .5s var(--ease);
}
.usr-report .ur-hero-visual:hover img {
  transform: scale(1.03) translateY(-4px);
}
.usr-report .ur-hero-visual-glow {
  position: absolute;
  inset: 10% 5%;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(41,171,226,0.45) 0%, rgba(41,171,226,0.15) 35%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
}
.usr-report .ur-hero-stat {
  position: relative;
  padding: 22px 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all .35s var(--ease);
}
.usr-report .ur-hero-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.usr-report .ur-hero-stat:hover {
  transform: translateY(-4px);
  background: rgba(41,171,226,.10);
  border-color: rgba(41,171,226,.4);
}
.usr-report .ur-hero-stat:hover::before { transform: scaleX(1); }
.usr-report .ur-hero-stat-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(41,171,226,.15);
  color: var(--brand);
  margin-bottom: 12px;
}
.usr-report .ur-hero-stat-icon svg { width: 20px; height: 20px; }
.usr-report .ur-hero-stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.usr-report .ur-hero-stat-lbl {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  letter-spacing: .03em;
}

/* hero section pills */
.usr-report .ur-hero-tabs {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.usr-report .ur-hero-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.usr-report .ur-hero-tab svg { width: 16px; height: 16px; }
.usr-report .ur-hero-tab:hover {
  background: rgba(41,171,226,.12);
  color: #fff;
  transform: translateY(-1px);
}

/* ═══════════════ ARCHIVE BAR ═══════════════ */
.usr-report .ur-archive {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-1);
}
.usr-report .ur-archive-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.usr-report .ur-archive-lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-500);
  margin-right: 6px;
}
.usr-report .ur-archive-lbl svg { width: 14px; height: 14px; }
.usr-report .ur-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.usr-report .ur-chip-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.usr-report .ur-chip-btn.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.usr-report .ur-chip-btn.is-active::after {
  content: "•";
  margin-left: 2px;
  color: var(--brand);
}

/* ═══════════════ MAIN ═══════════════ */
.usr-report .ur-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 90px;
}

/* ─── Section header ── */
.usr-report .ur-section { margin-bottom: 52px; }
.usr-report .ur-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.usr-report .ur-section-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -4px rgba(41,171,226,.45);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.usr-report .ur-section-icon:hover { transform: rotate(-6deg) scale(1.05); }
.usr-report .ur-section-icon svg { width: 22px; height: 22px; }
.usr-report .ur-section-title {
  font-size: 22px;
  font-weight: 800;
}
.usr-report .ur-section-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: .04em;
  margin-top: 2px;
}
.usr-report .ur-section-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid rgba(41,171,226,.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ─── Grid ── */
.usr-report .ur-grid { display: grid; gap: 18px; }
.usr-report .ur-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.usr-report .ur-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.usr-report .ur-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Card ── */
.usr-report .ur-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.usr-report .ur-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(41,171,226,.05);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.usr-report .ur-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41,171,226,.4);
  box-shadow: var(--shadow-3);
}
.usr-report .ur-card:hover::after { opacity: 1; }

.usr-report .ur-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.usr-report .ur-card-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.usr-report .ur-card-ico {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.usr-report .ur-card:hover .ur-card-ico { transform: scale(1.08) rotate(-4deg); }
.usr-report .ur-card-ico svg { width: 20px; height: 20px; }
.usr-report .ur-card-ico.is-amber { background: var(--warning-soft); color: var(--warning); }
.usr-report .ur-card-ico.is-green { background: var(--success-soft); color: var(--success); }
.usr-report .ur-card-ico.is-red   { background: var(--danger-soft);  color: var(--danger);  }
.usr-report .ur-card-ico.is-blue  { background: #eff6ff;             color: var(--info);    }
.usr-report .ur-card-ico.is-navy  { background: #eef2ff;             color: var(--navy);    }

.usr-report .ur-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.usr-report .ur-val.is-lg { font-size: 44px; }
.usr-report .ur-val.is-md { font-size: 26px; }
.usr-report .ur-val.is-amber { color: var(--warning); }
.usr-report .ur-val.is-green { color: var(--success); }
.usr-report .ur-val.is-red   { color: var(--danger);  }
.usr-report .ur-val.is-blue  { color: var(--info);    }

.usr-report .ur-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.usr-report .ur-delta svg { width: 12px; height: 12px; }
.usr-report .ur-delta.is-up   { background: var(--success-soft); color: #047857; }
.usr-report .ur-delta.is-down { background: var(--danger-soft);  color: #b91c1c; }
.usr-report .ur-delta.is-flat { background: var(--brand-soft);   color: var(--brand-dark); }
.usr-report .ur-ctx {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 8px;
}

/* accent card (was dark) — now matches default white card */
.usr-report .ur-card.is-dark {
  background: #fff;
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.usr-report .ur-card.is-dark::before { content: none; }
.usr-report .ur-card.is-dark > * { position: relative; z-index: 1; }
.usr-report .ur-card.is-dark .ur-card-lbl { color: var(--slate-500); }
.usr-report .ur-card.is-dark .ur-val { color: var(--navy); }
.usr-report .ur-card.is-dark .ur-ctx { color: var(--slate-500); }
.usr-report .ur-card.is-dark .ur-card-ico {
  background: var(--brand-soft);
  color: var(--brand);
}

/* sparkline (decorative) */
.usr-report .ur-spark {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 14px;
}

/* ─── Mini list (Finance Snapshot) ── */
.usr-report .ur-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.usr-report .ur-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.usr-report .ur-mini-row .lbl { color: var(--slate-500); }
.usr-report .ur-mini-row .val { font-weight: 700; color: var(--navy); }
.usr-report .ur-mini-row .val.amber { color: var(--warning); }

/* ─── Legend ── */
.usr-report .ur-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.usr-report .ur-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--slate-600);
  font-weight: 500;
}
.usr-report .ur-legend-dot {
  width: 12px; height: 12px;
  border-radius: 4px;
}

/* ─── Bar chart ── */
.usr-report .ur-chart-wrap { overflow-x: auto; }
.usr-report .ur-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 480px;
}
.usr-report .ur-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 64px;
  gap: 14px;
  align-items: center;
}
.usr-report .ur-bar-city {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
  text-align: right;
}
.usr-report .ur-bar-track {
  position: relative;
  height: 22px;
  background: var(--slate-100);
  border-radius: 8px;
  overflow: hidden;
}
.usr-report .ur-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 8px;
  transform-origin: left center;
  animation: ur-grow-x .9s var(--ease) both;
  transition: filter .25s var(--ease);
}
.usr-report .ur-bar-fill.year { background: rgba(41,171,226,.28); animation-delay: .05s; }
.usr-report .ur-bar-fill.prev { background: rgba(125,212,245,.85); animation-delay: .12s; }
.usr-report .ur-bar-fill.cur  {
  background: var(--brand);
  box-shadow: 0 1px 3px rgba(41,171,226,.4);
  animation-delay: .2s;
}
.usr-report .ur-bar-row:hover .ur-bar-fill { filter: brightness(1.07); }
.usr-report .ur-bar-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

/* ─── AM column chart ── */
.usr-report .ur-am-bars {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 180px;
  padding: 22px 8px 0;
  border-bottom: 1px solid var(--slate-200);
}
.usr-report .ur-am-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.usr-report .ur-am-bar-wrap {
  width: 100%;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
}
.usr-report .ur-am-bar {
  width: 44%;
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: ur-grow-y .8s var(--ease) both;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.usr-report .ur-am-bar.cur  { background: var(--brand); animation-delay: .1s; }
.usr-report .ur-am-bar.prev { background: var(--slate-200); animation-delay: 0s; }
.usr-report .ur-am-col:hover .ur-am-bar { filter: brightness(1.06); transform: scaleY(1.02); }
.usr-report .ur-am-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-600);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ─── Table ── */
.usr-report .ur-table-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
}
.usr-report .ur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.usr-report .ur-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid var(--slate-200);
}
.usr-report .ur-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  font-weight: 500;
  transition: background .2s var(--ease);
}
.usr-report .ur-table tr:last-child td { border-bottom: none; }
.usr-report .ur-table tbody tr:hover td { background: var(--brand-soft); }
.usr-report .ur-table tr.is-current td { background: rgba(41,171,226,.06); font-weight: 700; color: var(--navy); }
.usr-report .ur-table .ur-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.usr-report .ur-table .ur-pill.is-good   { background: var(--success-soft); color: #047857; }
.usr-report .ur-table .ur-pill.is-warn   { background: var(--warning-soft); color: #b45309; }

/* ─── Pill / chip ─── */
.usr-report .ur-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.usr-report .ur-tag.is-blue  { background: var(--brand-soft);   color: var(--brand-dark); }
.usr-report .ur-tag.is-green { background: var(--success-soft); color: #047857; }
.usr-report .ur-tag.is-red   { background: var(--danger-soft);  color: #b91c1c; }
.usr-report .ur-tag.is-amber { background: var(--warning-soft); color: #b45309; }

/* ─── Wins / Challenges ─── */
.usr-report .ur-wc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.usr-report .ur-wc {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid;
  transition: all .25s var(--ease);
}
.usr-report .ur-wc.is-wins {
  background: #ecfdf5;
  border-color: rgba(16,185,129,.25);
}
.usr-report .ur-wc.is-challenges {
  background: #fffbeb;
  border-color: rgba(245,158,11,.25);
}
.usr-report .ur-wc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.usr-report .ur-wc-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.usr-report .ur-wc-title .ur-wc-bullet {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.usr-report .ur-wc-title .ur-wc-bullet svg { width: 14px; height: 14px; }
.usr-report .ur-wc.is-wins .ur-wc-title { color: #047857; }
.usr-report .ur-wc.is-wins .ur-wc-bullet { background: var(--success); }
.usr-report .ur-wc.is-challenges .ur-wc-title { color: #b45309; }
.usr-report .ur-wc.is-challenges .ur-wc-bullet { background: var(--warning); }
.usr-report .ur-wc-list {
  display: flex; flex-direction: column; gap: 10px;
}
.usr-report .ur-wc-list li {
  font-size: 13.5px;
  color: var(--slate-700);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.usr-report .ur-wc-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.usr-report .ur-wc.is-wins .ur-wc-list li::before { background: var(--success); }
.usr-report .ur-wc.is-challenges .ur-wc-list li::before { background: var(--warning); }

/* ─── Squad header ── */
.usr-report .ur-squad-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.usr-report .ur-squad-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .15em;
  padding: 8px 14px;
  border-radius: 10px;
  color: #fff;
}
.usr-report .ur-squad-badge.nova { background: var(--navy); }
.usr-report .ur-squad-badge.netwatch { background: var(--brand); }
.usr-report .ur-squad-sub { color: var(--slate-500); font-size: 13px; font-weight: 500; }
.usr-report .ur-squad-copy {
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 20px;
}
.usr-report .ur-squad-copy strong { color: var(--navy); }

/* ─── Floating FAB ─── */
.usr-report .ur-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(41,171,226,.6), 0 4px 12px rgba(15,23,42,.18);
  transition: all .3s var(--ease);
}
.usr-report .ur-fab svg { width: 16px; height: 16px; }
.usr-report .ur-fab::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: ur-pulse-dot 2s infinite;
}
.usr-report .ur-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px -8px rgba(41,171,226,.7), 0 6px 16px rgba(15,23,42,.22);
}

/* ─── Modal ─── */
.usr-report .ur-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ur-fade-in .25s var(--ease);
}
.usr-report .ur-modal-overlay.is-open { display: flex; }
.usr-report .ur-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-4);
  animation: ur-fade-up .35s var(--ease);
}
.usr-report .ur-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.usr-report .ur-modal-close:hover { background: var(--slate-200); color: var(--navy); transform: rotate(90deg); }
.usr-report .ur-modal h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.usr-report .ur-modal p {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 22px;
}
.usr-report .ur-modal-list {
  display: flex; flex-direction: column; gap: 10px;
}
.usr-report .ur-modal-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  transition: all .2s var(--ease);
}
.usr-report .ur-modal-link:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateX(4px);
}
.usr-report .ur-modal-link .meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 2px;
}
.usr-report .ur-modal-link .arrow {
  color: var(--brand);
  font-size: 20px;
  transition: transform .2s var(--ease);
}
.usr-report .ur-modal-link:hover .arrow { transform: translateX(4px); }

/* ─── Footer ─── */
.usr-report .ur-footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--slate-500);
}
.usr-report .ur-footer strong { color: var(--navy); font-weight: 700; }

/* ─── Responsive ─── */
/* Global safety: prevent horizontal overflow on any screen */
html, body { max-width: 100%; overflow-x: hidden; }
.usr-report { width: 100%; max-width: 100%; overflow-x: hidden; }
.usr-report img, .usr-report svg, .usr-report video { max-width: 100%; height: auto; }

/* Tablet (≤980px) */
@media (max-width: 980px) {
  .usr-report .ur-hero-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 18px; }
  .usr-report .ur-hero-title { font-size: clamp(34px, 7vw, 52px); }
  .usr-report .ur-hero-visual { min-height: 220px; }
  .usr-report .ur-hero-visual img { max-height: 280px; }
  .usr-report .ur-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .usr-report .ur-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .usr-report .ur-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .usr-report .ur-bar-row { grid-template-columns: 100px 1fr 56px; gap: 10px; }
  .usr-report .ur-bar-city { font-size: 11px; }
  .usr-report .ur-am-bars { gap: 12px; height: 160px; }
  .usr-report .ur-am-name { font-size: 11px; }
}

/* Phone (≤640px) */
@media (max-width: 640px) {
  .usr-report { font-size: 13.5px; }
  .usr-report .ur-hero { padding: 20px 16px 0; }
  .usr-report .ur-hero-inner { gap: 18px; padding-bottom: 10px; }
  .usr-report .ur-archive-inner,
  .usr-report .ur-main { padding-left: 16px; padding-right: 16px; }
  .usr-report .ur-main { padding-top: 28px; padding-bottom: 48px; }
  .usr-report .ur-hero-stats-row { padding-bottom: 12px; }

  .usr-report .ur-hero-title { font-size: clamp(28px, 8.5vw, 40px); line-height: 1.05; }
  .usr-report .ur-hero-sub { font-size: 13.5px; }
  .usr-report .ur-hero-visual { min-height: 180px; padding: 4px; }
  .usr-report .ur-hero-visual img { max-height: 220px; }
  .usr-report .ur-hero-badge { font-size: 11px; padding: 6px 10px; }

  .usr-report .ur-grid.cols-2,
  .usr-report .ur-grid.cols-3,
  .usr-report .ur-grid.cols-4 { grid-template-columns: 1fr; gap: 14px; }
  .usr-report .ur-wc-grid { grid-template-columns: 1fr; }
  .usr-report .ur-hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .usr-report .ur-hero-stat { padding: 16px 14px; }
  .usr-report .ur-hero-stat-val { font-size: 24px; }
  .usr-report .ur-hero-stat-lbl { font-size: 11px; }
  .usr-report .ur-hero-stat-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .usr-report .ur-hero-stat-icon svg { width: 16px; height: 16px; }

  .usr-report .ur-section { margin-bottom: 36px; }
  .usr-report .ur-section-head { gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .usr-report .ur-section-icon { width: 36px; height: 36px; border-radius: 10px; }
  .usr-report .ur-section-icon svg { width: 18px; height: 18px; }
  .usr-report .ur-section-title { font-size: 18px; }
  .usr-report .ur-section-kicker { font-size: 11px; }
  .usr-report .ur-section-meta { margin-left: 0; font-size: 10px; padding: 5px 10px; order: 3; flex-basis: 100%; align-self: flex-start; max-width: max-content; }

  .usr-report .ur-card { padding: 16px; border-radius: 12px; }
  .usr-report .ur-card-head { margin-bottom: 12px; }
  .usr-report .ur-card-lbl { font-size: 10.5px; }
  .usr-report .ur-card-ico { width: 32px; height: 32px; border-radius: 8px; }
  .usr-report .ur-card-ico svg { width: 16px; height: 16px; }
  .usr-report .ur-val { font-size: 28px; }
  .usr-report .ur-val.is-lg { font-size: 36px; }
  .usr-report .ur-val.is-md { font-size: 24px; }

  /* Hero tabs: horizontally scrollable */
  .usr-report .ur-hero-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 14px; }
  .usr-report .ur-hero-tabs::-webkit-scrollbar { display: none; }
  .usr-report .ur-hero-tab { flex: 0 0 auto; font-size: 12px; padding: 8px 12px; }
  .usr-report .ur-hero-tab svg { width: 14px; height: 14px; }

  /* Tables: horizontal scroll instead of squish */
  .usr-report .ur-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .usr-report .ur-table { min-width: 480px; font-size: 12px; }
  .usr-report .ur-table th, .usr-report .ur-table td { padding: 10px 8px; }

  /* Revenue-by-market bar chart */
  .usr-report .ur-bar-row { grid-template-columns: 84px 1fr 46px; gap: 8px; }
  .usr-report .ur-bar-city { font-size: 10.5px; }
  .usr-report .ur-bar-num { font-size: 10.5px; }
  .usr-report .ur-bar-track { height: 16px; }
  .usr-report .ur-chart-wrap { padding: 4px 0; }
  .usr-report .ur-legend { gap: 10px; font-size: 11px; flex-wrap: wrap; }

  /* AM bar chart — let it scroll horizontally if too many columns */
  .usr-report .ur-am-bars { gap: 10px; height: 130px; padding: 14px 4px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .usr-report .ur-am-bars::-webkit-scrollbar { display: none; }
  .usr-report .ur-am-col { min-width: 44px; }
  .usr-report .ur-am-name { font-size: 10.5px; }
  .usr-report .ur-am-bar-wrap { gap: 3px; }
  .usr-report .ur-am-bar { width: 14px; }

  /* Squad/engineering blocks */
  .usr-report .ur-squad-head { flex-wrap: wrap; }
  .usr-report .ur-squad-badge { font-size: 11px; padding: 5px 10px; }
  .usr-report .ur-wc { padding: 14px; }
  .usr-report .ur-wc-list li { font-size: 12.5px; }

  /* Mini list rows */
  .usr-report .ur-mini-row { font-size: 12px; }

  /* PDF download button */
  .usr-report .ur-pdf-fab { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 12px; }
  .usr-report .ur-pdf-fab svg { width: 16px; height: 16px; }

  /* Footer */
  .usr-report .ur-footer { flex-direction: column; gap: 8px; text-align: center; padding: 22px 16px; font-size: 12px; }
}

/* Very narrow phones (≤380px): stack the hero stats too */
@media (max-width: 380px) {
  .usr-report .ur-hero-stats { grid-template-columns: 1fr; }
  .usr-report .ur-hero-title { font-size: 26px; }
  .usr-report .ur-val.is-lg { font-size: 30px; }
}

/* Auth gate mobile sizing */
@media (max-width: 480px) {
  .ur-auth-gate .ur-auth-card { padding: 28px 22px; width: min(360px, 92vw); border-radius: 14px; }
  .ur-auth-gate .ur-auth-logo { max-width: 130px; margin-bottom: 16px; }
  .ur-auth-gate h2 { font-size: 20px; margin-bottom: 18px; }
  .ur-auth-gate input[type="password"], .ur-auth-gate input[type="email"] { font-size: 16px; padding: 12px; }
  .ur-auth-gate button { font-size: 14px; padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .usr-report *, .usr-report *::before, .usr-report *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}

.usr-report .ur-pdf-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 12px 30px -8px rgba(41,171,226,.55), 0 4px 10px rgba(15,23,42,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.usr-report .ur-pdf-fab:hover {
  transform: translateY(-2px);
  background: var(--brand-2);
  box-shadow: 0 18px 40px -8px rgba(41,171,226,.7), 0 6px 14px rgba(15,23,42,.22);
}
.usr-report .ur-pdf-fab:disabled {
  opacity: .7;
  cursor: progress;
  transform: none;
}
body.ur-printing .usr-report .ur-pdf-fab { display: none !important; }

body.ur-printing .usr-report .ur-reveal,
body.ur-printing .usr-report [class*="ur-reveal"] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
body.ur-printing .usr-report .ur-bar-row {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
body.ur-printing .usr-report .ur-card:hover,
body.ur-printing .usr-report .ur-card { transform: none !important; }
body.ur-printing .usr-report .ur-hero-visual { animation: none !important; }
@media print {
  .usr-report .ur-reveal, .usr-report [class*="ur-reveal"] {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

@media print {
  .usr-report .ur-pdf-fab { display: none !important; }
}


@media print {
  @page { size: A3 portrait; margin: 10mm; }
  body { background: #fff !important; }
  .usr-report { background: #fff !important; }
  .usr-report .ur-pdf-fab { display: none !important; }
  .usr-report .ur-reveal, .usr-report [class*="ur-reveal"] {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .usr-report .ur-card { break-inside: avoid; page-break-inside: avoid; }
  .usr-report .ur-section { break-inside: avoid-page; }
}


.ur-auth-gate, .ur-auth-gate *, .ur-auth-gate *::before, .ur-auth-gate *::after {
  box-sizing: border-box;
}
.ur-auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1c2434 100%);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  animation: ur-fade-in .35s ease;
}
.ur-auth-gate .ur-auth-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  width: min(420px, 92vw);
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  color: #e2e8f0;
}

.ur-auth-gate .ur-auth-logo {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 4px 12px rgba(41,171,226,0.35));
}
.ur-auth-gate .ur-auth-icon {
  width: 52px; height: 52px;
  margin: 4px auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(41,171,226,0.15);
  color: #29abe2;
  border: 1px solid rgba(41,171,226,0.35);
}
.ur-auth-gate .ur-auth-icon svg { width: 26px; height: 26px; }
.ur-auth-gate h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 24px; color: #fff;
}
.ur-auth-gate p {
  font-size: 13.5px; color: #94a3b8; margin: 0 0 22px; line-height: 1.55;
}
.ur-auth-gate form {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 4px;
}
.ur-auth-gate input[type="password"], .ur-auth-gate input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ur-auth-gate input[type="password"]:focus, .ur-auth-gate input[type="email"]:focus {
  border-color: #29abe2;
  box-shadow: 0 0 0 3px rgba(41,171,226,0.2);
}
.ur-auth-gate button {
  padding: 12px 14px;
  background: #29abe2;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, transform .2s ease;
}
.ur-auth-gate button:hover { background: #1d8bbb; transform: translateY(-1px); }
.ur-auth-gate .ur-auth-error {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #f87171;
  font-weight: 500;
}
@media print { .ur-auth-gate { display: none !important; } }


.usr-report .ur-mini-row .val.green { color: var(--green-400); }
.usr-report .ur-mini-row .val.red { color: var(--red-400); }

