/* ============================================================
   scoutaxis.css — Unified Component + Icon System (Apr 2026)
   Layered on top of existing theme. Do not redefine brand tokens.
   References only: primary (accent), surface, border, text, muted.
   ============================================================ */

/* ───────── 1. Root tokens referenced system-wide ───────── */
:root {
  --sa-icon-radius-sm: 7px;
  --sa-icon-radius: 10px;
  --sa-icon-radius-lg: 14px;
  --sa-icon-shadow: 0 4px 12px rgba(0,0,0,.30), 0 1px 0 rgba(255,255,255,.06) inset;
  --sa-icon-shadow-sm: 0 2px 6px rgba(0,0,0,.30);

  --sa-grad-fade: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  --sa-ring-accent: 0 0 0 1px rgba(0,196,106,.35), 0 0 0 4px rgba(0,196,106,.12);
  --sa-ring-soft: 0 0 0 1px rgba(255,255,255,.12);

  --sa-surface-1: rgba(255,255,255,.02);
  --sa-surface-2: rgba(255,255,255,.035);
  --sa-surface-3: rgba(255,255,255,.055);
  --sa-line-1: rgba(255,255,255,.06);
  --sa-line-2: rgba(255,255,255,.10);
  --sa-line-3: rgba(255,255,255,.16);

  --sa-dur-fast: 140ms;
  --sa-dur: 200ms;
  --sa-ease: cubic-bezier(.22,.61,.36,1);
}

/* ───────── 2. Icon Primitive (PNG squircle) ─────────
   Core reusable <span class="sa-ico sa-ico-crown"></span>
   Used wherever a branded 1:1 visual icon belongs.
   --size controls scale per usage.
*/
.sa-ico {
  --size: 36px;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  isolation: isolate;
}
.sa-ico.is-xxl  { --size: 120px; }
.sa-ico.is-xl   { --size: 88px; }
.sa-ico.is-lg   { --size: 64px; }
.sa-ico.is-md   { --size: 48px; }
.sa-ico.is-sm   { --size: 32px; }
.sa-ico.is-xs   { --size: 24px; }
.sa-ico.is-flush { /* no-op — icons never have external box-shadow */ }

.sa-ico-bell     { background-image: url("/assets/icons/SABell.png"); }
.sa-ico-events   { background-image: url("/assets/icons/SACalander.png"); }
.sa-ico-calendar { background-image: url("/assets/icons/SACalander.png"); }
.sa-ico-compare  { background-image: url("/assets/icons/SACompare.png"); }
.sa-ico-crown    { background-image: url("/assets/icons/SACrown.png"); }
.sa-ico-watch    { background-image: url("/assets/icons/SAEYE.png"); }
.sa-ico-eye      { background-image: url("/assets/icons/SAEYE.png"); }
.sa-ico-graph    { background-image: url("/assets/icons/SAGraph.png"); }
.sa-ico-stats    { background-image: url("/assets/icons/SAGraph.png"); }

/* Tier badge squircles — already self-contained graphics, never wrap in a box */
.sa-tier {
  --size: 32px;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
}
.sa-tier.is-lg  { --size: 48px; }
.sa-tier.is-xl  { --size: 72px; }
.sa-tier.is-sm  { --size: 24px; }
.sa-tier-S { background-image: url("/assets/icons/SATierS.png"); }
.sa-tier-A { background-image: url("/assets/icons/SATierA.png"); }
.sa-tier-B { background-image: url("/assets/icons/SATierB.png"); }
.sa-tier-C { background-image: url("/assets/icons/SATierC.png"); }
.sa-tier-D { background-image: url("/assets/icons/SATierD.png"); }
.sa-tier-E { background-image: url("/assets/icons/SATierE.png"); }
.sa-tier-F { background-image: url("/assets/icons/SATierF.png"); }

/* Region pill icons (horizontal) */
.sa-region {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0;
  border-radius: 999px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  aspect-ratio: 3.2 / 1;
  width: auto;
  min-width: 76px;
}
.sa-region.is-lg { height: 36px; min-width: 108px; }
.sa-region.is-sm { height: 20px; min-width: 60px; }
.sa-region-NAC { background-image: url("/assets/icons/NACIcon.png"); }
.sa-region-NAW { background-image: url("/assets/icons/NAWicon.png"); }
.sa-region-EU  { background-image: url("/assets/icons/EUIcon2.png"); }
.sa-region-EU-wide { background-image: url("/assets/icons/EUIcon.png"); aspect-ratio: 3.2 / 1; }

/* ───────── 3. Inline SVG icon utility — used where PNG squircle is too heavy ─────────
   For inline text icons (breadcrumbs, list items, micro-buttons).
*/
.sa-svg {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -2px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────── 4. Icon tile — DEPRECATED
   Icons are their own self-contained graphics (PNG squircles). Don't wrap
   them in boxes. Kept as a no-op wrapper so legacy references still pass
   through, but adds no chrome.
*/
.sa-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: inherit;
}
.sa-tile.is-sm,
.sa-tile.is-lg,
.sa-tile.is-neutral,
.sa-tile.is-warn,
.sa-tile.is-danger { background: transparent; border: 0; box-shadow: none; }

/* ───────── 5. Component: Module Card (generic reusable panel) ─────────
   .sa-module / .sa-module-head / .sa-module-body / .sa-module-foot
   Replaces ad-hoc boxes across the site.
*/
.sa-module {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--sa-surface-2);
  border: 1px solid var(--sa-line-1);
  border-radius: 16px;
  transition: border-color var(--sa-dur) var(--sa-ease), transform var(--sa-dur) var(--sa-ease);
}
.sa-module:hover { border-color: var(--sa-line-2); }
.sa-module.is-flush { padding: 0; }
.sa-module.is-tight { padding: 14px; gap: 10px; }
.sa-module.is-lg    { padding: 26px; gap: 18px; border-radius: 20px; }
.sa-module.is-accent {
  border-color: rgba(0,196,106,.28);
  background: linear-gradient(180deg, rgba(0,196,106,.07), rgba(0,196,106,.02));
}
.sa-module.is-static:hover { border-color: var(--sa-line-1); }

.sa-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.sa-module-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sa-module-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text, #f0f0f0);
  line-height: 1.25;
}
.sa-module-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary, #888);
  margin-bottom: 4px;
  display: block;
}
.sa-module-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #888);
}

.sa-module-body { display: flex; flex-direction: column; gap: 12px; }
.sa-module-foot {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--sa-line-1);
}

/* ───────── 6. Component: Stat / KPI tile (reusable) ───────── */
.sa-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--sa-surface-2);
  border: 1px solid var(--sa-line-1);
  border-radius: 14px;
  min-width: 0;
}
.sa-stat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary, #888);
}
.sa-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text, #f0f0f0);
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sa-stat-sub { font-size: 12px; color: var(--text-secondary, #888); }
.sa-stat.is-accent { border-color: rgba(0,196,106,.28); background: linear-gradient(180deg, rgba(0,196,106,.07), rgba(0,196,106,.02)); }
.sa-stat.is-accent .sa-stat-value { color: var(--accent, #00c46a); }

.sa-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* ───────── 7. Component: Pill / Badge / Status ───────── */
.sa-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--sa-line-2);
  color: var(--text-secondary, #888);
  white-space: nowrap;
}
.sa-pill.is-lg { height: 28px; padding: 0 12px; font-size: 12px; }
.sa-pill.is-accent { background: rgba(0,196,106,.12); border-color: rgba(0,196,106,.32); color: #42e39a; }
.sa-pill.is-warn   { background: rgba(255,191,71,.10); border-color: rgba(255,191,71,.30); color: #ffcf74; }
.sa-pill.is-danger { background: rgba(232,69,74,.10); border-color: rgba(232,69,74,.32); color: #ff8a83; }
.sa-pill.is-soft   { background: rgba(255,255,255,.05); color: var(--text, #f0f0f0); }
.sa-pill .sa-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .9;
}

/* ───────── 8. Component: Empty / No-data / Loading state ───────── */
.sa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
  min-height: 180px;
  border: 1px dashed var(--sa-line-2);
  border-radius: 16px;
  background: rgba(255,255,255,.015);
}
.sa-empty-icon { opacity: .95; }
.sa-empty-icon.sa-ico { --size: 64px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sa-empty-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text, #f0f0f0);
}
.sa-empty-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #888);
  max-width: 360px;
  line-height: 1.5;
}
.sa-empty-actions { display: flex; gap: 10px; margin-top: 4px; }

.sa-loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--accent, #00c46a);
  animation: sa-spin .8s linear infinite;
}
@keyframes sa-spin { to { transform: rotate(360deg); } }

.sa-skel {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: sa-shimmer 1.6s linear infinite;
}
@keyframes sa-shimmer { to { background-position: -200% 0; } }

/* ───────── 9. Component: Button (reusable) ───────── */
.sa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #07110c;
  background: var(--accent, #00c46a);
  border: 1px solid var(--accent, #00c46a);
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--sa-dur) var(--sa-ease), transform var(--sa-dur) var(--sa-ease);
  white-space: nowrap;
}
.sa-button:hover { filter: brightness(1.08); }
.sa-button:active { transform: translateY(1px); }
.sa-button.is-ghost {
  background: transparent;
  color: var(--text, #f0f0f0);
  border-color: var(--sa-line-2);
}
.sa-button.is-ghost:hover { border-color: var(--sa-line-3); background: rgba(255,255,255,.03); }
.sa-button.is-subtle {
  background: rgba(255,255,255,.04);
  color: var(--text, #f0f0f0);
  border-color: transparent;
}
.sa-button.is-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.sa-button.is-lg { height: 48px; padding: 0 22px; font-size: 14px; border-radius: 12px; }
.sa-button.is-block { width: 100%; }
.sa-button:disabled { opacity: .48; cursor: not-allowed; }

/* ───────── 10. Layout: SectionGroup / SectionRow ───────── */
.sa-section-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sa-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.sa-section-row h2, .sa-section-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--text, #f0f0f0);
}
.sa-section-row .sa-section-row-meta {
  font-size: 12px;
  color: var(--text-secondary, #888);
}

/* Reusable grid variants */
.sa-grid { display: grid; gap: 16px; }
.sa-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sa-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.sa-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sa-grid.cols-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sa-grid.cols-auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sa-grid.cols-auto-lg { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 960px) {
  .sa-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .sa-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sa-grid.cols-2, .sa-grid.cols-3, .sa-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ───────── 11. Sidebar Icon Enhancements (app + admin) ─────────
   Upgrade existing .nav-btn to feel Apple/Duolingo-ish.
   Group gutters, spacing, hover state, active rail indicator.
*/
.app-shell .sidebar {
  padding-top: 14px !important;
}
.app-shell .sidebar-nav { gap: 2px !important; }
.app-shell .sidebar-section-label {
  font-size: 10px !important;
  letter-spacing: .14em !important;
  padding: 14px 16px 6px !important;
  color: var(--text-secondary, #888) !important;
  opacity: .82 !important;
}
.app-shell .nav-btn {
  position: relative;
  height: 38px;
  padding: 0 12px !important;
  margin: 0 8px !important;
  border-radius: 10px !important;
  gap: 12px !important;
  transition: background var(--sa-dur) var(--sa-ease), color var(--sa-dur) var(--sa-ease) !important;
}
.app-shell .nav-btn:hover {
  background: rgba(255,255,255,.04) !important;
}
.app-shell .nav-btn.active,
.app-shell .nav-btn[aria-current="page"] {
  background: rgba(0,196,106,.10) !important;
  color: var(--accent, #00c46a) !important;
}
.app-shell .nav-btn.active::before,
.app-shell .nav-btn[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent, #00c46a);
  box-shadow: 0 0 12px rgba(0,196,106,.45);
}
.app-shell .nav-btn .nav-icon {
  width: 18px !important;
  height: 18px !important;
  opacity: .88;
  transition: opacity var(--sa-dur) var(--sa-ease);
}
.app-shell .nav-btn.active .nav-icon { opacity: 1; }

/* ───────── 12. Sidebar Footer Profile pill ───────── */
.app-shell .sidebar-footer .profile-btn,
.app-shell .sidebar-footer .user-btn {
  border-radius: 12px;
  transition: background var(--sa-dur) var(--sa-ease);
}

/* ───────── 13. Page Topbar upgrade ───────── */
.app-shell .page-topbar {
  padding: 22px 28px 16px !important;
  border-bottom: 1px solid var(--sa-line-1) !important;
}
.app-shell .page-topbar-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}
.app-shell .page-topbar-sub {
  font-size: 13px !important;
  color: var(--text-secondary, #888) !important;
  margin-top: 4px !important;
}

/* ───────── 14. Stat-tile upgrade (inside admin + app) ─────────
   Don't rewrite markup; re-skin existing .stats-strip / .stat-tile.
*/
.app-shell .stats-strip,
.app-shell .admin-stats-strip {
  gap: 12px !important;
}
.app-shell .stat-tile {
  position: relative;
  padding: 18px 18px 18px 20px !important;
  border-radius: 14px !important;
  background: var(--sa-surface-2) !important;
  border: 1px solid var(--sa-line-1) !important;
  overflow: hidden;
  transition: border-color var(--sa-dur) var(--sa-ease), transform var(--sa-dur) var(--sa-ease);
}
.app-shell .stat-tile:hover {
  border-color: var(--sa-line-2) !important;
  transform: translateY(-1px);
}
.app-shell .stat-tile-val {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
  font-variant-numeric: tabular-nums;
}
.app-shell .stat-tile-label,
.app-shell .stat-tile-label-top {
  font-size: 11px !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--text-secondary, #888) !important;
  font-weight: 600;
}

/* Injected icon support: JS may add <span class="sa-ico ..."> as first child */
.app-shell .stat-tile > .sa-ico:first-child,
.app-shell .stat-tile > .sa-tile:first-child {
  position: absolute;
  right: 14px;
  top: 14px;
  opacity: .95;
}

/* ───────── 15. Generic card upgrade (.card / .info-panel) ───────── */
.app-shell .card {
  border-radius: 16px !important;
  border: 1px solid var(--sa-line-1) !important;
  background: var(--sa-surface-2) !important;
  padding: 20px !important;
}
.app-shell .card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-shell .card-title::before { display: none !important; } /* remove old accent bar */

/* ───────── 16. Empty state inside app (.empty .icon) upgrade ───────── */
.app-shell .empty {
  padding: 36px 20px !important;
  border-radius: 14px !important;
  border: 1px dashed var(--sa-line-2) !important;
  background: rgba(255,255,255,.015) !important;
  text-align: center;
}
.app-shell .empty .icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 14px !important;
  border-radius: 16px !important;
  background-size: cover !important;
  background-position: center !important;
  background-image: url("/assets/icons/SAGraph.png") !important;
  opacity: .9 !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.35) !important;
}
.app-shell .empty p {
  color: var(--text-secondary, #888) !important;
  font-size: 13px !important;
}

/* ───────── 17. Marketing: feature card icon chips upgrade ─────────
   The landing page has .sa-icon-chip divs containing SVG. Turn them
   into soft squircles that echo the PNG icon style.
*/
.sa-icon-chip {
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(0,196,106,.18), rgba(0,196,106,.06)) !important;
  border: 1px solid rgba(0,196,106,.25) !important;
  color: #42e39a !important;
  box-shadow: 0 4px 18px rgba(0,196,106,.14) !important;
}

/* Marketing mini-KPI decoration hook */
.sa-mini-kpi { position: relative; }

/* Landing: optional row of brand icon tiles */
.sa-icon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.sa-icon-row-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border-radius: 16px;
  border: 1px solid var(--sa-line-1);
  background: var(--sa-surface-1);
  text-align: center;
  transition: border-color var(--sa-dur) var(--sa-ease), transform var(--sa-dur) var(--sa-ease);
}
.sa-icon-row-item:hover { border-color: var(--sa-line-2); transform: translateY(-1px); }
.sa-icon-row-item strong {
  font-size: 13px; font-weight: 700; color: var(--text, #f0f0f0); letter-spacing: -.005em;
}
.sa-icon-row-item span { font-size: 11px; color: var(--text-secondary, #888); }

/* ───────── 18. Dashboard Quick-Action (Duolingo-style big taps) ───────── */
.sa-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.sa-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--sa-surface-2);
  border: 1px solid var(--sa-line-1);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--sa-dur) var(--sa-ease), transform var(--sa-dur) var(--sa-ease), background var(--sa-dur) var(--sa-ease);
  min-height: 72px;
}
.sa-quick:hover {
  border-color: rgba(0,196,106,.30);
  background: var(--sa-surface-3);
  transform: translateY(-1px);
}
.sa-quick-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sa-quick-title { font-size: 14px; font-weight: 700; color: var(--text, #f0f0f0); letter-spacing: -.005em; }
.sa-quick-sub   { font-size: 12px; color: var(--text-secondary, #888); }
.sa-quick-chev {
  margin-left: auto;
  color: var(--text-secondary, #888);
  transition: transform var(--sa-dur) var(--sa-ease), color var(--sa-dur) var(--sa-ease);
}
.sa-quick:hover .sa-quick-chev { transform: translateX(2px); color: var(--accent, #00c46a); }

/* ───────── 19. Apple/Duolingo-style Summary Card Row ─────────
   Used on dashboard top: big number + label + tile icon, airy.
*/
.sa-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.sa-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--sa-line-1);
  transition: border-color var(--sa-dur) var(--sa-ease);
}
.sa-summary:hover { border-color: var(--sa-line-2); }
.sa-summary-tile { grid-row: 1 / span 2; }
.sa-summary-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-secondary, #888);
}
.sa-summary-value {
  font-size: 26px; font-weight: 800; letter-spacing: -.025em;
  color: var(--text, #f0f0f0);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.sa-summary.is-accent { border-color: rgba(0,196,106,.28); background: linear-gradient(180deg, rgba(0,196,106,.10), rgba(0,196,106,.02)); }
.sa-summary.is-accent .sa-summary-value { color: var(--accent, #00c46a); }

/* ───────── 20. Sidebar Admin-shortcut Tile List ───────── */
.sa-shortcut-list { display: grid; gap: 8px; }
.sa-shortcut {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--sa-dur) var(--sa-ease), border-color var(--sa-dur) var(--sa-ease);
}
.sa-shortcut:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--sa-line-1);
}
.sa-shortcut-label { font-size: 13px; font-weight: 600; color: var(--text, #f0f0f0); }
.sa-shortcut-meta  { font-size: 11px; color: var(--text-secondary, #888); }

/* ───────── 21. Fantasy Picks: rebuilt component system ─────────
   Scoped under .fx-* — only loaded by fantasy-make-picks page.
   Full definitions below drive the rebuilt make-picks experience.
*/
.fx-page {
  --fx-surface:  rgba(255,255,255,.03);
  --fx-surface2: rgba(255,255,255,.05);
  --fx-line:     rgba(255,255,255,.08);
  --fx-line-2:   rgba(255,255,255,.14);
  --fx-text:     #f3f5f7;
  --fx-muted:    rgba(243,245,247,.6);
  --fx-muted-2:  rgba(243,245,247,.42);
  --fx-accent:   #00c46a;
  --fx-accent-2: #2ce78e;
  --fx-warn:     #ffbf47;
  --fx-danger:   #ff7a73;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fx-text);
}
.fx-shell { max-width: 1180px; margin: 0 auto; padding: 24px 22px 80px; }

/* Page header */
.fx-page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
  padding: 28px 28px 24px;
  border-radius: 22px;
  border: 1px solid var(--fx-line);
  background:
    radial-gradient(1000px 240px at 90% -20%, rgba(0,196,106,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  margin-bottom: 22px;
}
.fx-page-header-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fx-accent);
  margin-bottom: 12px;
}
.fx-page-header-kicker .sa-ico { --size: 22px; }
.fx-page-header h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.06;
  color: var(--fx-text);
}
.fx-page-header h1 span { color: var(--fx-accent); }
.fx-page-header p.fx-page-header-sub {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fx-muted);
  max-width: 560px;
}
.fx-page-header-meta {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.fx-page-header-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(0,196,106,.28);
  background: rgba(0,196,106,.10);
  color: var(--fx-accent);
  font-size: 12px; font-weight: 600;
}
@media (max-width: 880px) {
  .fx-page-header { grid-template-columns: 1fr; padding: 22px; }
  .fx-page-header-meta { align-items: flex-start; }
}

/* Tabs (state strip for picks flow) */
.fx-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.03);
  margin-bottom: 18px;
  overflow-x: auto;
  max-width: 100%;
}
.fx-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px; font-weight: 600;
  color: var(--fx-muted);
  background: transparent; border: 0; cursor: pointer;
  white-space: nowrap;
  transition: color var(--sa-dur) var(--sa-ease), background var(--sa-dur) var(--sa-ease);
}
.fx-tab:hover { color: var(--fx-text); }
.fx-tab.is-active {
  color: var(--fx-text);
  background: rgba(255,255,255,.06);
}

/* Filters row */
.fx-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.fx-filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.03);
  color: var(--fx-muted);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: border-color var(--sa-dur) var(--sa-ease), color var(--sa-dur) var(--sa-ease), background var(--sa-dur) var(--sa-ease);
}
.fx-filter-chip:hover { border-color: var(--fx-line-2); color: var(--fx-text); }
.fx-filter-chip.is-active {
  background: rgba(0,196,106,.12);
  border-color: rgba(0,196,106,.32);
  color: var(--fx-accent);
}
.fx-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 220px; max-width: 340px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.03);
  color: var(--fx-text);
}
.fx-search:focus-within { border-color: rgba(0,196,106,.4); }
.fx-search input {
  flex: 1; height: 100%; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--fx-text); font-size: 13px; font-family: inherit;
}
.fx-search input::placeholder { color: var(--fx-muted-2); }

/* Event card */
.fx-event-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  margin-bottom: 18px;
}
.fx-event-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.fx-event-mark .sa-ico { --size: 72px; }
.fx-event-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-event-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fx-muted);
}
.fx-event-title {
  margin: 0;
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  color: var(--fx-text); line-height: 1.15;
}
.fx-event-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--fx-muted);
}
.fx-event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.fx-event-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.fx-lock-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--fx-line-2);
  background: rgba(255,255,255,.04);
  color: var(--fx-text);
  font-size: 12px; font-weight: 600;
}
.fx-lock-pill.is-live  { color: var(--fx-warn);  border-color: rgba(255,191,71,.32); background: rgba(255,191,71,.10); }
.fx-lock-pill.is-open  { color: var(--fx-accent); border-color: rgba(0,196,106,.32); background: rgba(0,196,106,.10); }
.fx-lock-pill.is-locked{ color: var(--fx-danger); border-color: rgba(255,122,115,.32); background: rgba(255,122,115,.08); }
.fx-lock-pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: fx-pulse 2s ease-in-out infinite;
}
@keyframes fx-pulse { 50% { opacity: .45; } }

@media (max-width: 720px) {
  .fx-event-card { grid-template-columns: 1fr; }
  .fx-event-actions { flex-direction: row; align-items: center; }
}

/* Two-pane builder layout */
.fx-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 1020px) { .fx-builder { grid-template-columns: 1fr; } }

/* Pool (left) */
.fx-pool {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.fx-pool-head {
  display: flex;
  align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fx-line);
}
.fx-pool-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 15px; font-weight: 700;
  letter-spacing: -.005em; color: var(--fx-text);
}
.fx-pool-count {
  font-size: 12px; color: var(--fx-muted); font-variant-numeric: tabular-nums;
}
.fx-pool-list {
  display: flex; flex-direction: column;
  max-height: 560px; overflow-y: auto;
  padding: 8px;
}
.fx-pool-list::-webkit-scrollbar { width: 8px; }
.fx-pool-list::-webkit-scrollbar-thumb { background: var(--fx-line); border-radius: 4px; }

/* Player row inside the pool */
.fx-player {
  display: grid;
  grid-template-columns: 24px 36px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--sa-dur) var(--sa-ease), border-color var(--sa-dur) var(--sa-ease);
  border: 1px solid transparent;
}
.fx-player:hover { background: rgba(255,255,255,.04); border-color: var(--fx-line); }
.fx-player-rank {
  font-size: 12px; font-weight: 700; color: var(--fx-muted);
  font-variant-numeric: tabular-nums;
}
.fx-player-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--fx-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--fx-text);
}
.fx-player-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fx-player-name {
  font-size: 13px; font-weight: 700; letter-spacing: -.005em;
  color: var(--fx-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-player-meta {
  font-size: 11px; color: var(--fx-muted); display: flex; gap: 8px; align-items: center;
}
.fx-player-stats {
  display: flex; gap: 10px;
  font-size: 11px; color: var(--fx-muted); font-variant-numeric: tabular-nums;
}
.fx-player-stats b { color: var(--fx-text); font-weight: 700; }
.fx-player-select {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--fx-line-2);
  background: rgba(255,255,255,.03);
  color: var(--fx-text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--sa-dur) var(--sa-ease);
}
.fx-player-select:hover { border-color: var(--fx-accent); color: var(--fx-accent); }
.fx-player.is-selected {
  background: rgba(0,196,106,.08);
  border-color: rgba(0,196,106,.30);
}
.fx-player.is-selected .fx-player-select { background: var(--fx-accent); border-color: var(--fx-accent); color: #062012; }
.fx-player.is-locked { opacity: .42; pointer-events: none; }

/* Picks panel (right) */
.fx-picks {
  position: sticky; top: 16px;
  display: flex; flex-direction: column; gap: 14px;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: linear-gradient(180deg, rgba(0,196,106,.08), rgba(255,255,255,.015));
  padding: 18px;
}
.fx-picks-head { display: flex; align-items: center; justify-content: space-between; }
.fx-picks-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 15px; font-weight: 700; color: var(--fx-text);
}
.fx-picks-progress {
  font-size: 12px; font-weight: 600; color: var(--fx-muted);
  font-variant-numeric: tabular-nums;
}
.fx-picks-progress b { color: var(--fx-accent); }
.fx-picks-track {
  height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.fx-picks-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--fx-accent), var(--fx-accent-2));
  border-radius: 3px;
  transition: width var(--sa-dur) var(--sa-ease);
}
.fx-picks-list { display: flex; flex-direction: column; gap: 6px; }
.fx-pick-slot {
  display: grid;
  grid-template-columns: 26px 32px 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--fx-line);
  background: rgba(255,255,255,.02);
  min-height: 48px;
  font-size: 12px;
}
.fx-pick-slot.is-filled { border-style: solid; background: rgba(255,255,255,.05); }
.fx-pick-slot-num {
  font-size: 11px; font-weight: 800; color: var(--fx-muted);
  font-variant-numeric: tabular-nums;
}
.fx-pick-slot.is-filled .fx-pick-slot-num { color: var(--fx-accent); }
.fx-pick-slot-avatar {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--fx-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.fx-pick-slot-placeholder {
  color: var(--fx-muted-2); font-size: 12px; font-style: italic;
}
.fx-pick-slot-name { font-size: 13px; font-weight: 700; color: var(--fx-text); }
.fx-pick-slot-remove {
  width: 24px; height: 24px; border-radius: 7px;
  border: 0; background: transparent; color: var(--fx-muted);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.fx-pick-slot-remove:hover { color: var(--fx-danger); background: rgba(255,255,255,.05); }
.fx-pick-slot-move {
  display: inline-flex; flex-direction: column; gap: 2px; margin-left: 6px;
}
.fx-pick-slot-move button {
  width: 18px; height: 14px; border: 0; background: transparent;
  color: var(--fx-muted); cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.fx-pick-slot-move button:hover { color: var(--fx-text); background: rgba(255,255,255,.06); }

/* Score summary */
.fx-score-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.2);
  border: 1px solid var(--fx-line);
}
.fx-score-cell { display: flex; flex-direction: column; gap: 2px; }
.fx-score-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fx-muted); font-weight: 700; }
.fx-score-value { font-size: 15px; font-weight: 800; color: var(--fx-text); font-variant-numeric: tabular-nums; }

/* Confirm/review sheet */
.fx-confirm-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,196,106,.25);
  background: linear-gradient(180deg, rgba(0,196,106,.10), rgba(0,196,106,.02));
}
.fx-confirm-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--fx-muted); margin-bottom: 8px;
}
.fx-confirm-row b { color: var(--fx-text); font-weight: 700; }

/* Compare block */
.fx-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.02);
}
.fx-compare-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fx-compare-col h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--fx-text);
  display: flex; align-items: center; gap: 8px;
}
.fx-compare-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.fx-compare-row-label { font-size: 12px; color: var(--fx-muted); }
.fx-compare-row-value { font-size: 13px; font-weight: 700; color: var(--fx-text); font-variant-numeric: tabular-nums; }
.fx-compare-row-value.is-better { color: var(--fx-accent); }

/* CTA band */
.fx-cta-band {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,196,106,.14), rgba(0,196,106,.03) 60%, rgba(255,255,255,.02));
  border: 1px solid rgba(0,196,106,.26);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.fx-cta-band h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.fx-cta-band p { margin: 4px 0 0; font-size: 13px; color: var(--fx-muted); }
@media (max-width: 720px) { .fx-cta-band { grid-template-columns: 1fr; } }

/* History list (previous picks) */
.fx-history {
  border-radius: 16px;
  border: 1px solid var(--fx-line);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.fx-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--fx-line);
  font-size: 13px;
}
.fx-history-row:first-child { border-top: 0; }
.fx-history-ev { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-history-name { font-weight: 700; color: var(--fx-text); letter-spacing: -.005em; }
.fx-history-meta { font-size: 12px; color: var(--fx-muted); }
.fx-history-pts { font-weight: 800; color: var(--fx-accent); font-variant-numeric: tabular-nums; }

/* ───────── 22. Focus / A11y / Micro ───────── */
:where(.sa-button, .sa-quick, .sa-shortcut, .fx-tab, .fx-filter-chip, .fx-player-select, .fx-player):focus-visible {
  outline: 2px solid var(--accent, #00c46a);
  outline-offset: 2px;
}

/* ───────── 23. Landing: public search icon accent ───────── */
.sa-search-icon {
  background: linear-gradient(180deg, rgba(0,196,106,.18), rgba(0,196,106,.06));
  border: 1px solid rgba(0,196,106,.25);
  border-radius: 10px;
  color: var(--accent, #00c46a);
}

/* ───────── 24. Reveal animation parity for new sections ───────── */
.sa-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--sa-ease), transform .5s var(--sa-ease);
}
.sa-reveal.is-visible { opacity: 1; transform: none; }

/* ───────── 25. Utility ───────── */
.sa-hstack { display: flex; align-items: center; gap: 10px; }
.sa-vstack { display: flex; flex-direction: column; gap: 10px; }
.sa-spacer { flex: 1; }
.sa-divider { height: 1px; background: var(--sa-line-1); margin: 14px 0; border: 0; }
.sa-mono   { font-variant-numeric: tabular-nums; }
.sa-muted  { color: var(--text-secondary, #888); }
.sa-accent-text { color: var(--accent, #00c46a); }

/* ───────── 26. Admin/App Welcome Hero (Apple × Duolingo) ─────────
   Injected by scoutaxis.js decorateAdminDashboard() on #page-admin and
   #page-rankings. Soft hero band + quick-action grid.
*/
.sa-admin-welcome,
.sa-app-welcome {
  position: relative;
  margin: 0 0 24px;
  padding: 24px 26px 22px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 50% 70% at 8% 15%, rgba(0,196,106,.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid var(--sa-line-2);
  overflow: hidden;
}
.sa-admin-welcome::after,
.sa-app-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px rgba(0,0,0,.25);
}

.sa-admin-welcome-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.sa-admin-welcome-head > div {
  min-width: 0;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-admin-welcome-title {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text, #f0f0f0);
  line-height: 1.15;
}
.sa-admin-welcome-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary, #888);
  line-height: 1.5;
  max-width: 62ch;
}

.sa-admin-welcome-actions {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.sa-admin-welcome-actions .sa-quick {
  background: rgba(255,255,255,.04);
  border-color: var(--sa-line-2);
  min-height: 68px;
}
.sa-admin-welcome-actions .sa-quick:hover {
  background: rgba(0,196,106,.06);
  border-color: rgba(0,196,106,.28);
}

/* App dashboard variant (simpler, no quick actions grid by default) */
.sa-app-welcome {
  padding: 22px 24px 20px;
}
.sa-app-welcome .sa-admin-welcome-title { font-size: 22px; }

/* ───────── 27. Responsive safety ───────── */
@media (max-width: 960px) {
  .sa-admin-welcome,
  .sa-app-welcome { padding: 20px 20px 18px; border-radius: 16px; }
  .sa-admin-welcome-title { font-size: 22px; }
}
@media (max-width: 640px) {
  .sa-module { padding: 16px; }
  .sa-summary { padding: 16px; }
  .fx-shell { padding: 18px 14px 60px; }
  .fx-page-header { padding: 20px; }
  .fx-event-card { padding: 14px; }
  .sa-admin-welcome,
  .sa-app-welcome { padding: 18px; margin-bottom: 18px; }
  .sa-admin-welcome-title { font-size: 20px; }
  .sa-admin-welcome-sub { font-size: 13px; }
  .sa-admin-welcome-actions { grid-template-columns: 1fr; }
}
