    :root {
      --bg-primary: #000000;
      --bg-secondary: #050505;
      --bg-tertiary: #0a0d0a;
      --bg-card: #0d100d;
      --bg-card-hover: #121512;

      /* Full-shell redesign tokens (PropAI Redesign.dc.html) */
      --pe-bg: #000000;
      --pe-surface: #0d100d;
      --pe-accent: #39ff6a;
      --pe-muted: #8a978c;
      --pe-text: #e7ece7;
      --pe-radius-card: 14px;
      --pe-radius-chip: 999px;

      --text-primary: #e7ece7;
      --text-secondary: #c4c9d4;
      --text-muted: #8a978c;

      --accent-green: #39ff6a;
      --accent-green-dim: rgba(57, 255, 106, 0.14);
      --accent-red: #f97373;
      --accent-red-dim: rgba(249, 115, 115, 0.15);
      /* Blue demoted — informational only; chrome stays black/green */
      --accent-blue: #7c8a7a;
      --accent-blue-dim: rgba(124, 138, 122, 0.18);
      --accent-gold: #fbbf24;
      --accent-gold-dim: rgba(251, 191, 36, 0.15);
      --accent-purple: #a3b18a;
      --accent-purple-dim: rgba(163, 177, 138, 0.18);
      --accent-orange: #fb923c;
      --accent-orange-dim: rgba(251, 146, 60, 0.15);

      --border-color: rgba(255, 255, 255, 0.08);
      --border-strong: rgba(255, 255, 255, 0.12);
      --surface-glass: rgba(13, 16, 13, 0.88);

      /* Layered shadow system */
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.22);
      --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
      --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
      --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.55);
      --site-shell-max: none;
      --site-shell-wide: none;
      --shell-gutter: clamp(12px, 2vw, 36px);
      --site-pad-desktop: 40px;

      /* Gradients — black/green only (mockup) */
      --gradient-hero: linear-gradient(135deg, #39ff6a 0%, #22c55e 100%);
      --gradient-card-hover: linear-gradient(135deg, rgba(57,255,106,0.12), rgba(13,16,13,0.4));

      /* Radius system */
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 18px;

      /* Native iOS SF Pro stack (Capacitor / Safari) */
      --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
      --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
      --font-brand: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
      --font-weight-regular: 400;
      --font-weight-semibold: 600;
      --font-weight-bold: 700;
      --font-weight-heavy: 800;
    }

    /* SF Pro roles — Heavy titles, Semibold labels, Regular descriptors */
    .pe-text-heavy,
    .logo-text,
    .startup-splash-title,
    .site-sidebar-brand-main,
    .propai-sidebar-brand,
    .pe-section-title,
    .pe-mode-tile-title,
    .propai-panel-title,
    .propai-feature-player,
    .propai-feature-marketline,
    .propai-feature-metric-value,
    .propai-market-name,
    .prop-player-name,
    .prop-value,
    .prop-edge-hero-val,
    .propai-deck-chip-val,
    .prop-stat-value,
    .site-summary-card strong,
    .summary-stat,
    .propai-cta,
    .prop-action-btn.prop-cta-primary {
      font-family: var(--font-display);
      font-weight: var(--font-weight-heavy);
      letter-spacing: -0.02em;
      color: #ffffff;
    }

    .pe-text-semibold,
    .pe-section-kicker,
    .pe-mode-tile-kicker,
    .propai-feature-kicker,
    .propai-feature-metric-label,
    .propai-feature-action-tag,
    .propai-deck-chip-lbl,
    .prop-stat-label,
    .prop-edge-hero-label,
    .propai-market-league,
    .site-summary-card small,
    .propai-feature-score-label,
    .propai-clv-pill,
    .filter-pill,
    .site-league-chip,
    .site-quick-chip {
      font-family: var(--font-ui);
      font-weight: var(--font-weight-semibold);
    }

    .pe-text-regular,
    .pe-mode-tile-desc,
    .propai-panel-subtitle,
    .propai-feature-meta,
    .propai-feature-matchup-detail,
    .propai-market-sub,
    .propai-feature-metric-sub,
    .propai-confidence-caption,
    .startup-splash-subtitle {
      font-family: var(--font-ui);
      font-weight: var(--font-weight-regular);
      color: rgba(255, 255, 255, 0.58);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

    html {
      scroll-behavior: auto;
      width: 100%;
      overflow-x: hidden;
      /* Without this, iOS Safari's automatic text-inflation heuristic boosts
         font size on some text blocks it decides are "too small to read"
         after dynamic content changes — inconsistently, per-element, not
         uniformly — which is exactly "some text is larger than other text"
         on otherwise-identical rows. */
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }
    body {
      font-family: var(--font-ui);
      font-weight: var(--font-weight-regular);
      font-synthesis: none;
      background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 197, 94, 0.09), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(56, 189, 248, 0.05), transparent 50%),
        #000000;
      color: var(--text-primary);
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
      overflow-y: auto;
      /* safe-area-inset-bottom is owned by the fixed nav; do not double-apply here */
      background-attachment: scroll;
      /* X-axis contained: horizontal chip strips (ledger dates, league filters)
         can chain their scroll past their own boundary into the body on iOS
         Safari, visually shifting the whole page right. Y stays auto — normal
         vertical bounce is intentional. */
      overscroll-behavior-x: contain;
      overscroll-behavior-y: auto;
      scroll-behavior: auto;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      -webkit-tap-highlight-color: transparent;
      letter-spacing: 0.01em;
    }

    /* Desktop only. Mobile uses the dynamic viewport unit from the critical
       mobile shell rules in <head>; keeping this min-height desktop-scoped
       prevents a second height owner from creating a gap below the nav. */
    @media (min-width: 1367px) {
      body {
        min-height: 100vh;
        min-height: 100dvh;
      }
    }

    .site-rebuild-shell {
      display: grid;
      grid-template-columns: 250px minmax(0, 1fr);
      gap: 24px;
      min-height: 100vh;
      padding: 18px;
    }

    .site-sidebar-shell {
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding: 20px 16px;
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(0, 0, 0, 0.98));
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: var(--shadow-lg);
      position: sticky;
      top: 18px;
      align-self: start;
      /* Own GPU layer — prevents iframe repaints from invalidating sidebar paint region */
      transform: translateZ(0);
      width: 100%;
      min-width: 0;
      min-height: calc(100vh - 36px);
      min-height: calc(100dvh - 36px);
      max-height: calc(100vh - 36px);
      max-height: calc(100dvh - 36px);
      overflow-x: hidden;
      overflow-y: hidden;
      box-sizing: border-box;
    }

    /* Toggle removed - nav menu always visible on desktop */
    /* Removed site-sidebar-hidden functionality */

    .site-sidebar-nav {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
    }

    .site-sidebar-nav::-webkit-scrollbar {
      width: 6px;
    }

    .site-sidebar-nav::-webkit-scrollbar-track {
      background: transparent;
    }

    .site-sidebar-nav::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.35);
      border-radius: 999px;
    }

    .site-sidebar-brand {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      flex: 0 0 auto;
      width: 100%;
      box-sizing: border-box;
      padding: 4px 4px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .site-sidebar-logo {
      position: relative;
      flex: 0 0 auto;
      min-width: 0;
    }

    .site-sidebar-logo::before {
      content: '';
      position: absolute;
      inset: -10px;
      border-radius: 22px;
      background:
        radial-gradient(circle at 40% 40%, rgba(57, 255, 20, 0.22), transparent 52%),
        radial-gradient(circle at 70% 70%, rgba(56, 189, 248, 0.12), transparent 58%);
      filter: blur(10px);
      opacity: 0.9;
      pointer-events: none;
    }

    .site-sidebar-logo .logo-icon {
      width: 48px;
      height: 48px;
      position: relative;
      z-index: 1;
      border: 1px solid rgba(57, 255, 20, 0.22);
      border-radius: 14px;
      box-shadow: 0 0 18px rgba(57, 255, 20, 0.22);
      background: #05080e url('/brand-shield.png') center/contain no-repeat;
      filter: none;
    }

    .site-sidebar-brand-copy {
      display: flex;
      flex-direction: column;
      min-width: 0;
      flex: 1 1 auto;
    }

    .site-sidebar-brand-main {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.045em;
      text-transform: lowercase;
      color: #ffffff;
      line-height: 1;
      text-shadow: 0 0 18px rgba(57, 255, 20, 0.18);
    }

    .site-sidebar-brand-main .pe-word-edge {
      color: #39ff14;
    }

    .site-sidebar-brand-sub {
      margin-top: 4px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: rgba(158, 174, 196, 0.85);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Remove toggle button from sidebar entirely */
    .site-sidebar-toggle {
      display: none !important;
    }

    .site-sidebar-nav,
    .site-sidebar-footer {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      width: 100%;
      box-sizing: border-box;
    }

    .site-sidebar-footer {
      margin-top: auto;
      flex-shrink: 0;
    }

    .site-shell-nav {
      display: flex !important;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      width: 100% !important;
      max-width: 100%;
      box-sizing: border-box;
      min-height: 44px;
      padding: 8px 10px;
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(34, 34, 45, 0.3);
      color: #9caabf;
      font-size: 13px;
      font-weight: 600;
      text-align: left;
      cursor: pointer;
      position: relative;
      transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .site-shell-nav::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 22px;
      background: linear-gradient(180deg, #7dff98, #39d98a);
      border-radius: 2px;
      opacity: 0;
      transition: opacity 0.18s ease;
    }

    .site-shell-nav:hover::before,
    .site-shell-nav.active::before {
      opacity: 1;
    }

    .site-shell-nav.active {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.10);
      border-color: rgba(255, 255, 255, 0.14);
      font-weight: 700;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    }

    .site-shell-nav:hover:not(.active) {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .propai-tool-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    .propai-tool-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 34px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }

    .propai-tool-btn.active,
    .propai-tool-btn:hover {
      color: var(--text-primary);
      border-color: rgba(34,197,94,0.28);
      background: rgba(34,197,94,0.1);
    }

    .propai-tool-btn svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
    }

    .propai-feature-propiq-hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      min-width: 104px;
    }

    .propai-feature-propiq-hero .propiq-container {
      width: 96px;
      min-height: 112px;
      gap: 4px;
    }

    .propai-feature-propiq-hero .propiq-number-display {
      font-size: 30px;
    }

    .propai-feature-propiq-tier {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent-green);
    }

    /* v7.51 PropAI Analyst Shell */
    .propai-analyst-shell {
      display: grid;
      gap: 22px;
      width: 100%;
    }

    .propai-analyst-hero-panel {
      container-type: inline-size;
    }

    .propai-analyst-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr) minmax(150px, 200px);
      grid-template-areas: "ticket evidence scores";
      gap: 20px clamp(16px, 2vw, 28px);
      align-items: start;
      width: 100%;
    }

    .propai-ticket-col {
      grid-area: ticket;
      display: grid;
      gap: 14px;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid rgba(91, 255, 137, 0.22);
      background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 48%),
        rgba(8, 18, 34, 0.92);
      min-width: 0;
      overflow: hidden;
    }

    .propai-ticket-col .propai-feature-art {
      min-height: 160px;
      max-height: 200px;
      width: 100%;
      border-radius: 14px;
    }

    .propai-ticket-col .propai-feature-art img,
    .propai-ticket-col .propai-feature-art .prop-headshot-fallback {
      object-fit: contain;
      object-position: center top;
      max-height: 200px;
    }

    .propai-ticket-col .propai-feature-player {
      font-size: clamp(18px, 2.2vw, 24px);
      word-break: break-word;
    }

    .propai-ticket-col .propai-feature-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .propai-ticket-col .propai-feature-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .propai-ticket-col .propai-cta,
    .propai-ticket-col .propai-secondary-cta {
      width: 100%;
      min-width: 0;
    }

    .propai-evidence-col {
      grid-area: evidence;
      display: grid;
      gap: 12px;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(7, 14, 28, 0.92);
      min-width: 0;
    }

    .propai-evidence-col h4 {
      margin: 0;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .propai-evidence-lede {
      margin: 0;
      font-size: 15px;
      line-height: 1.55;
      color: var(--text-primary);
    }

    .propai-evidence-charts {
      display: grid;
      gap: 12px;
    }

    .propai-evidence-charts .rich-mini-chart {
      margin-top: 4px;
    }

    .propai-evidence-risk ul {
      margin: 0;
      padding-left: 18px;
      font-size: 13px;
      line-height: 1.5;
      color: #f5b8b8;
    }

    .propai-score-rail {
      grid-area: scores;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      min-width: 118px;
      padding: 16px 12px;
      border-radius: 16px;
      border: 1px solid rgba(34, 197, 94, 0.2);
      background: rgba(6, 16, 28, 0.94);
    }

    .propai-score-rail .propiq-container {
      width: 92px;
      height: 92px;
    }

    .propai-score-rail .propai-confidence-ring {
      width: 96px;
      height: 96px;
    }

    .propai-analyst-secondary-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
      gap: 22px;
      align-items: stretch;
    }

    .propai-top-picks-strip {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 12px;
      width: 100%;
    }

    .propai-top-pick-card {
      flex: 1 1 160px;
      min-width: 0;
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.03);
      cursor: pointer;
      text-align: left;
    }

    .propai-top-pick-card.active,
    .propai-top-pick-card:hover {
      border-color: rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.08);
    }

    .propai-top-pick-thumb {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      overflow: hidden;
      background: rgba(255,255,255,0.06);
    }

    .propai-top-pick-thumb img,
    .propai-top-pick-thumb .prop-headshot-fallback {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .propai-top-pick-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .propai-top-pick-copy strong {
      font-size: 13px;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .propai-top-pick-copy span {
      font-size: 11px;
      color: var(--text-muted);
    }

    .propai-top-pick-scores {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    .propai-score-duo-inline {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .propai-score-duo-inline.mini .propiq-container--compact {
      width: 52px;
      height: 52px;
    }

    .propai-score-duo-inline.mini .propiq-container--compact .propiq-number-display {
      font-size: 18px;
    }

    .propai-score-duo-inline.mini .propiq-container--compact .propiq-badge-glow {
      width: 52px;
      height: 52px;
    }

    .propai-confidence-ring--compact {
      width: 52px;
      height: 52px;
    }

    .propai-confidence-ring--compact span {
      font-size: 13px;
    }

    .propai-confidence-ring--compact span small {
      font-size: 9px;
    }

    .propai-market-scores-duo,
    .propai-market-probs-duo {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      align-items: start;
      min-width: 0;
    }

    @media (min-width: 1367px) {
      .propai-market-scores-duo,
      .propai-market-probs-duo {
        display: contents;
      }

      .propai-analyst-secondary-row {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: stretch;
      }

      .propai-secondary-feed {
        display: flex;
        flex-direction: column;
        min-height: 100%;
      }

      .propai-top-picks-strip {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        align-content: start;
        width: 100%;
      }

      .propai-secondary-feed .propai-top-picks-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-content: start;
      }

      .propai-secondary-feed .propai-top-pick-card--deck {
        width: 100%;
        flex: none;
        min-width: 0;
      }

      .propai-top-pick-card {
        flex: none;
        min-height: 72px;
      }

      .propai-upcoming-stage .propai-slate-list {
        min-height: 280px;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      }

      .site-home-mid-grid {
        align-items: stretch;
      }

      .site-home-mid-grid .propai-upcoming-stage {
        height: 100%;
      }
    }

    .propai-chat-collapse {
      margin-top: 8px;
      border-top: 1px solid rgba(255,255,255,0.08);
      padding-top: 10px;
    }

    .propai-chat-collapse summary {
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-secondary);
      list-style: none;
    }

    .propai-chat-collapse[open] summary {
      margin-bottom: 10px;
      color: var(--accent-green);
    }

    .propai-slate-date-pill.stale {
      border-color: rgba(251, 191, 36, 0.35);
      background: rgba(251, 191, 36, 0.12);
      color: #fde68a;
    }

    .propai-slate-date-pill.stale strong {
      color: #fbbf24;
    }

    .propai-analyst-conversation-panel {
      padding: 0;
      overflow: hidden;
    }

    .propai-analyst-conversation-panel .propai-panel-header {
      padding-bottom: 8px;
    }

    .propai-analyst-conversation-panel .ai-chat-feed {
      min-height: 180px;
      max-height: 320px;
      overflow-y: auto;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(34, 197, 94, 0.22);
      background: rgba(6, 14, 28, 0.92);
    }

    body.propedge-chat-v2-mobile.propai-mode .propai-analyst-conversation-panel .ai-chat-feed {
      min-height: 0;
      max-height: none;
      border: none;
      border-radius: 0;
      background: transparent;
      padding: 12px 14px 20px;
    }

    .propai-analyst-conversation-panel .narrated-lede {
      font-size: 15px;
      line-height: 1.6;
    }

    .narrated-prop-head {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 8px;
    }

    .narrated-prop-head .narrated-prop-title {
      margin: 0;
      flex: 1;
      min-width: 0;
    }

    .narrated-prop-thumb {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      overflow: hidden;
      flex: 0 0 auto;
      background: rgba(255,255,255,0.06);
    }

    .narrated-prop-thumb img,
    .narrated-prop-thumb .prop-headshot-fallback {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    @media (max-width: 1100px) {
      .propai-analyst-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
          "ticket ticket"
          "scores scores"
          "evidence evidence";
      }

      .propai-score-rail {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
      }
    }

    /* Tablet/small desktop (701px–1280px): keep ticket+scores side-by-side, evidence below.
       Covers iPad mini landscape (1133px) + iPad Air landscape (1180px) with sidebar active. */
    @media (min-width: 701px) and (max-width: 1280px) {
      .propai-analyst-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(150px, 200px);
        grid-template-areas:
          "ticket scores"
          "evidence evidence";
      }

      .propai-score-rail {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: auto;
        min-width: 150px;
      }

      .propai-score-rail .propiq-container {
        width: 88px;
        height: 88px;
      }

      .propai-score-rail .propai-confidence-ring {
        width: 92px;
        height: 92px;
      }
    }

    @media (max-width: 700px) {
      .propai-analyst-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
          "ticket"
          "scores"
          "evidence";
      }
    }

    @container (max-width: 720px) {
      .propai-ticket-col .propai-feature-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .propai-rationale-block {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .propai-rationale-block h5 {
      margin: 0 0 8px;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .propai-rationale-block ul {
      margin: 0;
      padding-left: 18px;
      font-size: 15px;
      line-height: 1.55;
    }

    .propai-story-card li {
      font-size: 14px;
      line-height: 1.55;
    }

    .propai-slate-best-tag {
      display: inline-block;
      margin-right: 6px;
      padding: 2px 6px;
      border-radius: 999px;
      background: rgba(34,197,94,0.16);
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .narrated-analyst-report {
      display: grid;
      gap: 16px;
    }

    .narrated-lede {
      font-size: 16px;
      line-height: 1.65;
      color: var(--text-primary);
    }

    .narrated-slate-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .narrated-slate-chip {
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      font-size: 11px;
      color: var(--text-secondary);
    }

    .narrated-prop-inline {
      padding: 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.03);
    }

    .narrated-prop-inline .narrated-prop-title {
      font-size: 15px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .narrated-prop-inline .narrated-prop-body {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .narrated-trend-block,
    .narrated-risk-block {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-secondary);
    }

    .site-shell-nav:not(.active) {
      letter-spacing: 0.03em;
    }

    .site-shell-nav-icon {
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      color: #9caabf;
      box-shadow: none;
    }

    .site-shell-nav-icon svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .site-shell-nav-icon[data-shell-icon="home"] {
      color: #4ade80;
      background: rgba(34, 197, 94, 0.14);
      border-color: rgba(34, 197, 94, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="markets"] {
      color: #7cc8ff;
      background: rgba(56, 189, 248, 0.14);
      border-color: rgba(56, 189, 248, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="propai"] {
      color: #4ade80;
      background: rgba(34, 197, 94, 0.16);
      border-color: rgba(34, 197, 94, 0.32);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.18), inset 0 1px 0 rgba(255,255,255,0.03);
    }
    .site-shell-nav-icon[data-shell-icon="games"] {
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.14);
      border-color: rgba(56, 189, 248, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="news"] {
      color: #a78bfa;
      background: rgba(167, 139, 250, 0.14);
      border-color: rgba(167, 139, 250, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="injuries"] {
      color: #fb923c;
      background: rgba(251, 146, 60, 0.14);
      border-color: rgba(251, 146, 60, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="parlay"] {
      color: #fbbf24;
      background: rgba(251, 191, 36, 0.14);
      border-color: rgba(251, 191, 36, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="research"] {
      color: #818cf8;
      background: rgba(99, 102, 241, 0.14);
      border-color: rgba(99, 102, 241, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="pace"] {
      color: #fbbf24;
      background: rgba(245, 158, 11, 0.14);
      border-color: rgba(245, 158, 11, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="portfolio"] {
      color: #2dd4bf;
      background: rgba(45, 212, 191, 0.14);
      border-color: rgba(45, 212, 191, 0.28);
    }
    .site-shell-nav-icon[data-shell-icon="settings"],
    .site-shell-nav-icon[data-shell-icon="alerts"] {
      color: #8ea3c0;
      background: rgba(142, 163, 192, 0.08);
      border-color: rgba(142, 163, 192, 0.18);
    }

    /* Keep indicator inside the padded nav row (overflow-x:hidden on sidebar). */
    .site-shell-nav::before {
      left: 2px;
      top: 50%;
      bottom: auto;
      height: 22px;
      width: 3px;
      transform: translateY(-50%);
      border-radius: 2px;
    }

    .site-shell-nav:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.1);
    }

    .site-shell-nav:hover .site-shell-nav-icon,
    .site-shell-nav.active .site-shell-nav-icon {
      color: #ffffff;
      background: rgba(0, 0, 0, 0.15);
      border-color: rgba(255, 255, 255, 0.10);
      box-shadow: none;
    }

    .site-shell-nav.active[data-target-view="recommendations"] {
      color: #ffffff;
      background: rgba(34, 197, 94, 0.20);
      border-color: rgba(34, 197, 94, 0.25);
      box-shadow: 0 0 15px rgba(34, 197, 94, 0.30), inset 0 0 0 1px rgba(51, 63, 76, 0.6);
      font-weight: 700;
    }

    .site-shell-nav.active[data-target-view="pace"] {
      color: #ffffff;
      background: rgba(251, 191, 36, 0.20);
      border-color: rgba(251, 191, 36, 0.25);
      box-shadow: 0 0 15px rgba(251, 191, 36, 0.30), inset 0 0 0 1px rgba(51, 63, 76, 0.6);
      font-weight: 700;
    }

    .site-shell-nav.active[data-target-view="markets"] {
      color: #ffffff;
      background: rgba(125, 255, 152, 0.20);
      border-color: rgba(125, 255, 152, 0.25);
      box-shadow: 0 0 15px rgba(125, 255, 152, 0.30), inset 0 0 0 1px rgba(51, 63, 76, 0.6);
      font-weight: 700;
    }

    .site-shell-nav:not(.active) {
      display: flex !important;
      width: 100% !important;
      box-sizing: border-box;
    }

    .site-shell-nav:hover:not(.active) {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.12);
    }

    .site-shell-nav:not(.active) .site-shell-nav-icon {
      color: #ffffff;
      background: rgba(0, 0, 0, 0.15);
      border-color: rgba(255, 255, 255, 0.10);
      box-shadow: none;
    }

    .site-shell-nav.active {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.10);
      font-weight: 700;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
    }

    .site-shell-nav.active::before {
      opacity: 1;
      transform: translateY(-50%);
    }

    .site-shell-nav.subtle { color: #8ea3c0; }

    .site-shell-main {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    /* When sidebar is hidden, make main content take full width */
    /* Removed - sidebar toggle removed, nav always visible */
    /* .site-sidebar-hidden .site-shell-main {
      margin-left: 0 !important;
      padding-left: var(--pe-mobile-pad-x, 16px) !important;
      padding-right: var(--pe-mobile-pad-x, 16px) !important;
    } */

    .site-command-bar {
      padding: 18px 22px;
      border-radius: 24px;
      background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(7, 15, 28, 0.98), rgba(8, 17, 33, 0.98));
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: var(--shadow-lg);
      display: grid;
      gap: 16px;
    }

    .site-command-main {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: center;
    }

    .site-command-query {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 64px;
      padding: 0 14px;
      border-radius: 999px;
      background: rgba(5, 12, 24, 0.96);
      border: 1px solid rgba(255,255,255,0.08);
      position: relative;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    }

    .site-command-query::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(90deg, rgba(132, 170, 255, 0.85), rgba(34, 197, 94, 0.7), rgba(142, 68, 255, 0.72));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .site-command-query input {
      border: none;
      outline: none;
      background: transparent;
      color: var(--text-primary);
      font-size: 17px;
      min-width: 0;
    }

    .site-command-query input::placeholder { color: #8998b0; }
    .site-command-query-icon { color: #e0e5ff; font-size: 18px; }

    .site-command-send {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, #22c55e, #4ade80);
      color: #03110a;
      font-size: 18px;
      font-weight: 900;
      cursor: pointer;
    }

    .site-command-status {
      display: flex;
      gap: 12px;
      align-items: stretch;
    }

    .site-status-card {
      min-width: 118px;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(10, 18, 34, 0.84);
      border: 1px solid rgba(255,255,255,0.07);
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-primary);
    }

    .site-status-card small,
    .site-summary-card small {
      display: block;
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 4px;
      font-weight: 800;
    }

    .site-status-card strong {
      font-size: 15px;
      color: var(--text-primary);
      font-weight: 800;
    }

    .site-status-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--accent-green);
      box-shadow: 0 0 16px rgba(34,197,94,0.55);
      flex: 0 0 auto;
    }

    .site-command-meta {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      flex-wrap: wrap;
    }

    .site-league-switches,
    .site-quick-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .site-league-chip,
    .site-quick-chip {
      min-height: 36px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(10, 19, 34, 0.84);
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
    }

    .site-league-chip:active,
    .site-quick-chip:active {
      transform: scale(0.97);
    }

    .site-league-chip.active,
    .site-quick-chip:hover {
      color: var(--text-primary);
      background: rgba(34, 197, 94, 0.15);
      border-color: rgba(34,197,94,0.28);
    }

    .site-summary-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .site-summary-card {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(10, 18, 34, 0.84);
      border: 1px solid rgba(255,255,255,0.07);
    }

    .site-summary-card strong:not(.summary-stat) {
      font-size: 28px;
      font-weight: 900;
      color: var(--text-primary);
      display: block;
    }

    .site-summary-card strong.summary-stat {
      font-family: 'JetBrains Mono', monospace;
      font-size: 32px;
      font-weight: 900;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
      display: block;
    }

    .site-summary-card strong.summary-stat.green {
      color: #4ade80;
      text-shadow: 0 0 28px rgba(74, 222, 128, 0.65), 0 0 12px rgba(34, 197, 94, 0.45), 0 2px 10px rgba(0,0,0,0.35);
    }
    .site-summary-card strong.summary-stat.blue {
      color: #38bdf8;
      text-shadow: 0 0 28px rgba(56, 189, 248, 0.65), 0 0 12px rgba(56, 189, 248, 0.45), 0 2px 10px rgba(0,0,0,0.35);
    }
    .site-summary-card strong.summary-stat.gold {
      color: #fbbf24;
      text-shadow: 0 0 28px rgba(251, 191, 36, 0.65), 0 0 12px rgba(251, 191, 36, 0.45), 0 2px 10px rgba(0,0,0,0.35);
    }
    .site-summary-card strong.summary-stat.purple {
      color: #a78bfa;
      text-shadow: 0 0 28px rgba(167, 139, 250, 0.65), 0 0 12px rgba(167, 139, 250, 0.45), 0 2px 10px rgba(0,0,0,0.35);
    }

    .site-summary-card:has(.summary-stat.green) {
      background: rgba(34, 197, 94, 0.12);
      border-color: rgba(74, 222, 128, 0.24);
    }
    .site-summary-card:has(.summary-stat.blue) {
      background: rgba(56, 189, 248, 0.12);
      border-color: rgba(56, 189, 248, 0.24);
    }
    .site-summary-card:has(.summary-stat.gold) {
      background: rgba(251, 191, 36, 0.12);
      border-color: rgba(251, 191, 36, 0.24);
    }
    .site-summary-card:has(.summary-stat.purple) {
      background: rgba(167, 139, 250, 0.12);
      border-color: rgba(167, 139, 250, 0.24);
    }

    .site-shell-content {
      min-width: 0;
      display: grid;
      gap: 18px;
      padding-bottom: 48px;
    }

    @media (min-width: 900px) and (max-width: 1366px) {
      /* Laptop-specific fixes for cramped featured pick layout (900px-1366px) */
      .propai-featured-pick .propai-feature-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-template-areas:
          "art copy"
          "confidence confidence"
          "metrics metrics"
          "actions actions";
        gap: 14px 16px;
        padding: 18px;
      }

      .propai-featured-pick .propai-feature-art {
        min-height: 260px !important;
        max-height: 340px !important;
        aspect-ratio: unset !important;
      }

      .propai-featured-pick .propai-feature-copy {
        min-width: 0;
        display: grid;
        gap: 14px;
      }

      .propai-featured-pick .propai-feature-player {
        font-size: 28px !important;
      }

      .propai-featured-pick .propai-feature-matchup {
        font-size: 13px !important;
        padding: 8px 10px;
        min-height: auto;
      }

      .propai-featured-pick .propai-feature-marketline {
        font-size: 16px !important;
        padding: 10px 12px;
        min-height: auto;
      }

      .propai-featured-pick .propai-feature-metrics {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
        gap: 8px;
      }

      .propai-featured-pick .propai-feature-metric {
        padding: 8px 6px;
        gap: 4px;
      }

      .propai-featured-pick .propai-feature-metric-label {
        font-size: 9px;
      }

      .propai-featured-pick .propai-feature-metric-value {
        font-size: 24px !important;
      }

      .propai-featured-pick .propai-feature-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
      }

      .propai-featured-pick .propai-cta {
        font-size: 14px;
        padding: 10px 16px;
        min-width: 0;
      }

      /* Hide the secondary CTA on laptop to save space */
      .propai-featured-pick .propai-secondary-cta {
        display: none !important;
      }

      .propai-featured-pick .propai-feature-confidence {
        flex-direction: row;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 4px;
      }

      .propai-featured-pick .propai-feature-score-duo--compact {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
      }

      .propai-featured-pick .propai-confidence-ring {
        width: 88px;
        height: 88px;
      }

      .propai-featured-pick .propai-confidence-caption {
        max-width: none;
        font-size: 11px;
        text-align: right;
      }

      /* Adjust upcoming row for laptop */
      .propai-upcoming-row {
        grid-template-columns: 72px minmax(0, 1fr) 1fr !important;
        gap: 10px 12px;
      }

      .propai-upcoming-time {
        font-size: 12px;
      }

      .propai-upcoming-matchup {
        font-size: 18px;
      }

      .propai-upcoming-note {
        display: none !important;
      }
    }

    @media (min-width: 1367px) {
      .header,
      .stats-bar,
      .timestamp-bar,
      .sport-tabs,
      .nav-tabs {
        display: none !important;
      }

      .live-games,
      .filter-section,
      .sort-bar,
      .app-layout,
      .view-container.show {
        background:
          radial-gradient(circle at top right, rgba(34, 197, 94, 0.06), transparent 34%),
          linear-gradient(180deg, rgba(10, 18, 34, 0.97), rgba(5, 13, 25, 0.98));
        border: 1px solid rgba(108, 124, 177, 0.14);
        border-radius: 24px;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
        overflow: hidden;
      }

      /* Portfolio must grow with content and page-scroll — overflow:hidden on
         .view-container.show was clipping long bet lists below the viewport. */
      #portfolioContainer.view-container.show {
        overflow-x: hidden;
        overflow-y: clip;
        padding-bottom: 48px;
      }

      /* Desktop Home/Markets deck PropIQ — contain glow (mobile rule is max-width only). */
      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-propiq-hero {
        overflow: hidden;
        isolation: isolate;
        border-radius: 50%;
      }

      .live-games {
        padding: 28px 30px 24px;
      }

      .filter-section {
        padding: 18px 22px 16px;
        min-height: 0;
      }

      .filter-section::before {
        content: 'Browse Markets';
        display: block;
        margin-bottom: 14px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(226, 232, 240, 0.62);
      }

      .sort-bar {
        margin-bottom: 18px;
        padding: 16px 20px;
        border-radius: 18px;
      }

      .app-layout {
        padding: 20px;
      }

      .main-content {
        display: flex;
        flex-direction: column;
      }

      .props-container {
        padding: 0 0 120px;
        overflow-anchor: none;
      }

      .props-grid {
        gap: 22px;
      }

      .prop-card {
        border-radius: 24px;
        border-color: rgba(97, 120, 176, 0.16);
        background:
          radial-gradient(circle at top right, rgba(34, 197, 94, 0.04), transparent 30%),
          linear-gradient(180deg, rgba(12, 24, 43, 0.96), rgba(8, 17, 31, 0.98));
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
      }

      .prop-card:hover {
        transform: translateY(-6px) scale(1.01);
      }

      .view-container.show {
        padding: 28px;
        margin-bottom: 24px;
      }
    }

    @media (max-width: 1366px) {
      :root {
        --pe-design-ref-w: 440px;
        --pe-design-ref-h: 956px;
        --pe-mobile-pad-x: clamp(12px, 3.2vw, 20px);
      }

      html.site-mobile-active {
        /* Was rgb(3, 8, 18) — a leftover navy from an earlier theme. Higher
           specificity + !important than every other "force black" rule in
           this file, so it silently won and became the real page color:
           visible as the blue-tinted strip at the very bottom of the screen
           on notch/Dynamic-Island iPhones, wherever the fixed nav's own
           paint doesn't cover it down to the sub-pixel. */
        background: #000000;
        overscroll-behavior: none;
      }

      body.site-mobile-active {
        padding: 0 !important;
        overscroll-behavior: none;
        background: #000000 !important;
        background-image: none !important;
      }

      .site-rebuild-shell {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
      }

      .site-sidebar-shell {
        display: none;
      }

      .site-shell-main {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-width: 0;
        flex: 1 1 auto;
        min-height: 0;
        height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
      }

      /* Size board columns to content so .site-shell-main stays the one
         scroller. Their auto overflow makes min-height:auto resolve to 0,
         so as flex:1 items Chromium collapses them to slivers with an
         internal scrollbar; flex-basis:auto + shrink 0 forces content
         height in every engine. */
      .site-shell-content .app-layout,
      .app-layout .main-content {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
      }

      /* Every section in the main scroll column keeps its content height.
         Without this the column's huge negative free space crushes the
         shrinkable items (game board, sport tabs, filter row) into
         overlapping slivers. .site-shell-content is display:contents, so
         its children are the real flex items. */
      .site-shell-main > *,
      .site-shell-content > * {
        flex-shrink: 0;
      }

      .site-shell-content {
        display: contents;
      }

      /* Mobile shell scroll order (display:contents flattens .site-shell-content):
         1 logo → 2 command/summary → 3 game board → 4 league/tier chips → 5 feed.
         .pe-chip-strip previously had no order (default 0) so chips rendered ABOVE the logo. */
      .header {
        order: 1;
      }

      .site-command-bar {
        order: 2;
        display: grid;
        gap: 0;
        margin: 0;
        padding: 8px 12px 10px;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 105;
        flex-shrink: 0;
        isolation: isolate;
      }

      .site-command-main,
      .site-command-meta {
        display: none !important;
      }

      /* Mobile: hide desktop Ask/summary chrome on Home + secondary tabs.
         Markets keeps a compact summary strip under the logo. */
      body.site-mobile-active:not(.markets-mode) .site-command-bar {
        display: none !important;
      }

      body.site-mobile-active.markets-mode .site-command-main,
      body.site-mobile-active.markets-mode .site-command-meta {
        display: none !important;
      }

      body.site-mobile-active.markets-mode .site-command-bar {
        display: block !important;
        order: 2;
        padding: 8px 12px 10px;
        background: #000 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        position: relative;
        top: auto;
      }

      /* League/tier chip strip is Home-only — hide on Markets/Parlay/More views
         so pills never stack above the logo again. */
      body.site-mobile-active:not([data-pe-view="props"]) .pe-chip-strip {
        display: none !important;
      }

      body.site-mobile-active .header {
        order: 1;
        position: sticky !important;
        top: 0 !important;
        z-index: 200 !important;
        background: #000 !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
        contain: none;
      }

      body.site-mobile-active.markets-mode .live-games,
      body.site-mobile-active.markets-mode .pe-chip-strip,
      body.site-mobile-active.markets-mode #filterSection,
      body.site-mobile-active.markets-mode #sortBar {
        display: none !important;
      }

      body.site-mobile-active.markets-mode .app-layout,
      body.site-mobile-active.markets-mode #marketsContainer {
        order: 5;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
      }

      body.site-mobile-active.markets-mode .propai-markets-page {
        padding: 12px 0 24px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
      }

      body.site-mobile-active.markets-mode .propai-market-list,
      body.site-mobile-active.markets-mode #marketsBrowserList {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 10px !important;
      }

      .site-shell-main {
        overflow-x: hidden;
        min-width: 0;
        width: 100%;
        max-width: 100%;
      }

      .site-rebuild-shell {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
      }

      .site-command-bar {
        width: 100%;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
        contain: none;
      }

      .site-summary-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
      }

      .site-summary-card {
        padding: 8px 4px;
        border-radius: 12px;
        min-width: 0;
        overflow: hidden;
        text-align: center;
      }

      .site-summary-card strong.summary-stat {
        font-size: clamp(18px, 4.6vw, 24px);
        line-height: 1.1;
        text-shadow: none;
      }

      .site-summary-card:has(.summary-stat.green),
      .site-summary-card:has(.summary-stat.blue),
      .site-summary-card:has(.summary-stat.gold),
      .site-summary-card:has(.summary-stat.purple) {
        background: rgba(10, 18, 34, 0.94);
        border-color: rgba(255, 255, 255, 0.08);
      }

      .site-summary-card small {
        font-size: 9px;
        margin-bottom: 2px;
        letter-spacing: 0.06em;
      }

      .filter-section,
      .sport-tabs {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
      }

      .filter-pills,
      .sport-tabs {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        max-width: 100%;
        width: 100%;
        transform: none;
        will-change: auto;
        scroll-snap-type: x proximity;
      }

      .filter-pill,
      .sport-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
      }

      .stats-bar,
      .timestamp-bar {
        display: none !important;
      }

      .header {
        flex-shrink: 0;
        z-index: 110;
      }

      .live-games {
        order: 3;
        padding: 8px 12px 10px !important;
        margin: 0 !important;
      }

      .live-games-header {
        margin-bottom: 8px !important;
      }

      .live-games-scroll .live-game-card {
        min-width: 228px !important;
        width: 228px !important;
        padding: 14px 14px 12px !important;
      }

      .live-games-scroll .live-game-card .game-card-btn {
        min-height: 32px;
        padding: 6px 8px !important;
        font-size: 11px !important;
      }

      .pe-chip-strip {
        order: 4;
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
      }

      .pe-chip-strip .sport-tabs,
      .pe-chip-strip .filter-section {
        order: unset;
      }

      .filter-section {
        position: relative;
        z-index: 2;
      }

      .sort-bar,
      .app-layout,
      .view-container {
        order: 5;
      }

      /* PropAI: keep compact command strip under logo when needed */
      body.propai-mode .site-command-bar {
        top: 0;
        padding-top: 8px;
        padding-left: max(12px, env(safe-area-inset-left, 0px));
        padding-right: max(12px, env(safe-area-inset-right, 0px));
      }
    }

    @media (max-width: 380px) {
      .site-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 8px;
      }
    }

    /* Fixed body state for modals to prevent background jiggle */
    body.modal-open {
      overflow: hidden !important;
      overscroll-behavior: contain;
      /* Compensate for scrollbar removal to stop horizontal jumping */
      padding-right: var(--sb-width, 0px);
    }

    /* Premium Scrollbar Styling */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-secondary);
    }
    ::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, var(--accent-green), #1a3d24);
      border-radius: 10px;
      border: 2px solid var(--bg-secondary);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #39ff6a, #1a3d24);
      box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
    }

    /* Firefox scrollbar */
    * {
      scrollbar-color: var(--accent-green) var(--bg-secondary);
      scrollbar-width: thin;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 12px 16px;
      padding-top: max(18px, calc(16px + env(safe-area-inset-top)));
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
      /* Prevent header from shifting */
      contain: layout style;
      will-change: none;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(0, 0, 0, 0.92);
      box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }

    @media (min-width: 768px) {
      .header {
        padding: 16px 32px;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-left: max(32px, env(safe-area-inset-left));
        padding-right: max(32px, env(safe-area-inset-right));
      }
    }

    @media (min-width: 1367px) {
      .header {
        padding: 16px 40px;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
      }
    }

    @media (min-width: 1200px) {
      .header {
        padding: 16px 48px;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-left: max(48px, env(safe-area-inset-left));
        padding-right: max(48px, env(safe-area-inset-right));
      }
    }

    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
      max-width: var(--site-shell-max);
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .header-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex: 0 1 auto;
      min-width: 0;
      max-width: 54vw;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      position: relative;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
      position: relative;
      background: #05080e url('/brand-shield.png') center/contain no-repeat;
      border: 1px solid rgba(57, 255, 20, 0.22);
      border-radius: 12px;
      box-shadow: 0 0 18px rgba(57, 255, 20, 0.22);
      filter: none;
    }

    .logo-icon::before {
      display: none;
    }

    .logo-icon::after {
      display: none;
    }
    .logo-text {
      display: inline-block;
      position: static;
      width: auto;
      height: auto;
      margin: 0;
      padding: 0;
      overflow: visible;
      clip: auto;
      white-space: nowrap;
      border: 0;
      font-family: var(--font-brand);
      font-weight: 800;
      font-size: 22px;
      letter-spacing: -0.045em;
      line-height: 1;
      text-transform: lowercase;
      color: #ffffff;
      -webkit-text-fill-color: #ffffff;
      background: none;
      -webkit-background-clip: unset;
      background-clip: unset;
      text-shadow: 0 0 18px rgba(57, 255, 20, 0.18);
      animation: peWordmarkIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .logo-text .pe-word-edge {
      color: #39ff14;
      -webkit-text-fill-color: #39ff14;
    }

    @keyframes peWordmarkIn {
      from {
        opacity: 0;
        transform: translateX(-6px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .team-logo-fallback {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background: rgba(0, 240, 160, 0.10);
      border: 1px solid rgba(0, 240, 160, 0.22);
      color: var(--accent-green);
      font-size: 9px;
      font-weight: 900;
      letter-spacing: -0.2px;
      line-height: 1;
      vertical-align: middle;
    }

    @media (min-width: 768px) {
      .logo-text {
        font-size: 26px;
        letter-spacing: 0.2px;
      }
    }

    .live-indicator {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--accent-green-dim);
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      color: var(--accent-green);
      max-width: 140px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .live-dot {
      width: 6px;
      height: 6px;
      background: var(--accent-green);
      border-radius: 50%;
      animation: pulse 2s infinite;
      will-change: opacity, transform;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.8); }
    }

    /* Premium animation suite */
    @keyframes shimmer {
      0% { background-position: -1000px 0; }
      100% { background-position: 1000px 0; }
    }

    @keyframes badgePulse {
      0% { opacity: 0; transform: scale(0.8) translateY(4px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }

    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-20px); }
      to { opacity: 1; transform: translateX(0); }
    }

    @keyframes lineMovement {
      0% { border-color: var(--accent-green); }
      50% { border-color: rgba(0, 240, 160, 0.5); }
      100% { border-color: var(--accent-green); }
    }

    /* Stats Bar */
    .stats-bar {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      padding: 12px 16px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      width: 100%;
      max-width: var(--site-shell-max);
      margin: 0 auto;
    }

    @media (min-width: 768px) {
      .stats-bar {
        padding: 16px 0;
        gap: 16px;
        background: transparent;
        border-bottom: none;
      }
    }

    @media (min-width: 1200px) {
      .stats-bar {
        max-width: var(--site-shell-max);
        gap: 24px;
      }
    }

    .stat-box {
      text-align: center;
      padding: 8px 4px;
    }

    @media (min-width: 768px) {
      .stat-box {
        padding: 12px 16px;
        background: var(--bg-card);
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
      }
    }

    .stat-value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 22px;
      font-weight: 700;
      color: var(--accent-green);
    }

    .stat-value.blue { color: var(--accent-blue); }
    .stat-value.gold { color: var(--accent-gold); }
    .stat-value.purple { color: var(--accent-purple); }

    .stat-label {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-top: 2px;
    }

    /* Timestamp */
    .timestamp-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      padding: 8px 16px;
      font-size: 11px;
      color: var(--text-muted);
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      width: 100%;
      max-width: var(--site-shell-max);
      margin: 0 auto;
    }

    @media (min-width: 768px) {
      .timestamp-bar {
        padding: 12px 32px;
        font-size: 12px;
      }
    }

    .auto-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--bg-tertiary);
      border-radius: 20px;
      font-size: 10px;
      cursor: pointer;
    }

    .toggle-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-green);
      transition: all 0.2s;
    }

    .toggle-dot.off { background: var(--text-muted); }

    /* Live Games Ticker */
    .live-games {
      padding: 20px 16px;
      background: linear-gradient(180deg, rgba(0, 230, 118, 0.12) 0%, var(--bg-secondary) 100%);
      border-bottom: 3px solid rgba(0, 230, 118, 0.3);
      border-top: 3px solid rgba(0, 230, 118, 0.3);
      /* Prevent layout shift */
      contain: layout style;
      min-height: 160px;
      pointer-events: auto;
      touch-action: manipulation;
    }
    .live-games-scroll {
      touch-action: pan-x;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      pointer-events: auto;
    }
    .live-game-card {
      touch-action: manipulation;
      pointer-events: auto;
    }
    .live-games > * {
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    @media (min-width: 768px) {
      .live-games {
        padding: 24px 32px;
      }
    }

    @media (min-width: 1200px) {
      .live-games {
        padding: 28px 48px;
      }
    }

    .live-games-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    .live-games-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    @media (min-width: 768px) {
      .live-games-title {
        font-size: 14px;
      }
    }

    .hide-final-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      color: var(--text-muted);
      cursor: pointer;
    }

    .hide-final-toggle input { accent-color: var(--accent-green); }

    .live-games-scroll {
      display: flex;
      flex: 1;
      width: 100%;
      min-width: 0;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 8px;
      padding-left: 2px;
      padding-right: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(57, 255, 20, 0.45) transparent;
      min-height: 130px;
      /* Critical for iOS/mobile horizontal swipe */
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x;
      /* Prevent parent from stealing horizontal swipe */
      overscroll-behavior-x: contain;
      scroll-padding: 0 10px;
      scroll-behavior: auto;
      transform: translateZ(0);
    }

    @media (min-width: 768px) {
      .live-games-scroll {
        gap: 12px;
        /* Manual scrolling only — no auto-snap or smooth behavior */
        scroll-behavior: auto;
      }
    }

    @media (min-width: 1100px) {
      .live-games-scroll {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
      }
    }

    /* Thin scrollbar so mobile users can see the game board is swipeable */
    .live-games-scroll::-webkit-scrollbar {
      display: block;
      height: 4px;
      background: transparent;
    }

    .live-games-scroll::-webkit-scrollbar-thumb {
      background: rgba(57, 255, 20, 0.4);
      border-radius: 999px;
    }

    /* Portfolio must never bleed into PropAI / Markets */
    body.propai-mode #portfolioContainer,
    body.markets-mode #portfolioContainer,
    body.propai-mode #calibrationBacktest,
    body.markets-mode #calibrationBacktest {
      display: none !important;
      visibility: hidden !important;
      pointer-events: none !important;
      height: 0 !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    /* PropAI report readability on mobile */
    body.propai-mode .rich-game-rec {
      padding: 16px 14px 12px;
    }

    body.propai-mode .rich-game-rec-title {
      font-size: 16px;
      margin-bottom: 10px;
    }

    body.propai-mode .rich-game-rec .rich-inline-body,
    body.propai-mode .rich-inline-body,
    body.propai-mode .pe-rec-acc-body,
    body.propai-mode .pe-rec-frame-text {
      font-size: 14px;
      line-height: 1.7;
      color: #cbd5e1;
    }

    body.propai-mode .rich-game-rec .rich-inline-body p,
    body.propai-mode .rich-inline-body p,
    body.propai-mode .pe-rec-acc-body p {
      margin: 0 0 12px;
    }

    body.propai-mode .rich-game-rec .rich-inline-body p:last-child,
    body.propai-mode .rich-inline-body p:last-child,
    body.propai-mode .pe-rec-acc-body p:last-child {
      margin-bottom: 0;
    }

    body.propai-mode .rich-game-rec .rich-inline-body strong,
    body.propai-mode .rich-inline-body strong {
      display: inline;
      color: #86efac;
      font-weight: 800;
    }

    body.propai-mode .rich-game-rec-section {
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.propai-mode .rich-game-rec-section-label {
      display: block;
      margin: 0 0 6px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #22c55e;
    }

    /* Linemaker narrative — always single-column (fixes cramped side-by-side sections on mobile) */
    body.propai-mode .pe-lm-block,
    body.propai-mode .pe-lm-section-stack {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-width: 0;
    }

    body.propai-mode .pe-lm-prose,
    body.propai-mode .pe-lm-section-stack .rich-game-rec-section,
    body.propai-mode .rich-inline-body .rich-game-rec-section {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
    }

    body.propai-mode .rich-analyst-report {
      gap: 16px;
      padding-bottom: 8px;
    }

    body.propai-mode .pick-ticket {
      margin-bottom: 8px;
    }

    /* Hide empty featured/ladder chrome once the rich report is on screen (removes blank gap). */
    body.propai-mode .propai-analyst-shell:has(#aiChatMessages .rich-analyst-report) .propai-analyst-hero-panel,
    body.propai-mode .propai-analyst-shell:has(#aiChatMessages .rich-analyst-report) .propai-analyst-secondary-row,
    body.propai-mode .propai-analyst-shell:has(#aiChatMessages .rich-analyst-report) .propai-upcoming-stage {
      display: none !important;
    }

    .live-games-scroll::-webkit-scrollbar-track {
      background: transparent;
    }

    .live-games-scroll::-webkit-scrollbar-thumb {
      background: var(--accent-green);
      border-radius: 4px;
      opacity: 0.9;
    }

    .live-games-scroll::-webkit-scrollbar-thumb:hover {
      opacity: 1;
    }

    .live-games-scroll-wrap {
      position: relative;
      display: flex;
      align-items: center;
      gap: 0;
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
    }

    .ticker-arrow {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1.5px solid rgba(255,255,255,0.15);
      background: rgba(255,255,255,0.07);
      color: var(--text-primary);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, opacity 0.2s;
      z-index: 2;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    .ticker-arrow:hover { background: rgba(255,255,255,0.14); }
    .ticker-arrow:active { background: rgba(0,230,118,0.2); }
    .ticker-arrow.hidden { opacity: 0; pointer-events: none; }

    .ticker-arrow-left  { margin-right: 6px; }
    .ticker-arrow-right { margin-left: 6px; }

    .ticker-pause-btn {
      flex-shrink: 0;
      margin-left: 8px;
      padding: 6px 10px;
      background: rgba(0,240,160,0.15);
      border: 1px solid var(--accent-green);
      color: var(--accent-green);
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
    }

    .ticker-pause-btn:hover { background: rgba(0,240,160,0.25); }
    .ticker-pause-btn:active { background: rgba(0,240,160,0.35); }

    .live-game-card {
      touch-action: manipulation;
      scroll-snap-align: none;
      -webkit-tap-highlight-color: transparent;
      cursor: pointer;
      flex-shrink: 0;
      background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
      border: 2px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 18px 16px;
      min-width: 220px;
      cursor: pointer;
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
    }

    .live-game-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
      opacity: 0;
      transition: opacity 0.35s;
      pointer-events: none;
    }

    .live-game-card:hover, .live-game-card.active {
      border-color: var(--accent-green);
      background: linear-gradient(135deg, rgba(0,230,118,0.22), var(--bg-card-hover));
      box-shadow: 0 12px 32px rgba(0, 230, 118, 0.4), inset 0 1px 0 rgba(0,230,118,0.1);
      transform: translateY(-6px) scale(1.05);
    }

    .live-game-card:hover::before {
      opacity: 1;
    }

    .live-game-card > * {
      position: relative;
      z-index: 1;
    }

    /* Action buttons that appear on selected game card */
    .game-card-actions {
      display: flex;
      gap: 6px;
      width: 100%;
      position: relative;
      z-index: 5;
      pointer-events: auto;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.22s;
      opacity: 0;
    }
    .live-game-card.active .game-card-actions {
      max-height: 40px;
      opacity: 1;
    }
    .game-card-btn {
      flex: 1;
      position: relative;
      z-index: 6;
      padding: 6px 4px;
      border-radius: 8px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.4px;
      border: none;
      cursor: pointer;
      pointer-events: auto;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      white-space: nowrap;
      transition: transform 0.15s, background 0.15s;
    }
    .game-card-btn:active { transform: scale(0.94); }
    .game-card-btn.props-btn {
      background: rgba(0,230,118,0.18);
      color: var(--accent-green);
      border: 1px solid rgba(0,230,118,0.35);
    }
    .game-card-btn.live-btn {
      background: rgba(255,60,60,0.18);
      color: #ff6060;
      border: 1px solid rgba(255,60,60,0.35);
    }
    .game-card-btn.live-btn.upcoming {
      background: rgba(100,130,255,0.18);
      color: #8899ff;
      border: 1px solid rgba(100,130,255,0.35);
    }

    .live-game-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.5px;
      border: 1px solid rgba(255,255,255,0.1);
      min-width: 70px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .live-game-badge.nba { background: var(--accent-orange-dim); color: var(--accent-orange); }
    .live-game-badge.nhl { background: var(--accent-blue-dim); color: var(--accent-blue); }
    .live-game-badge.mlb { background: var(--accent-red-dim); color: var(--accent-red); }
    .live-game-badge.nfl { background: var(--accent-green-dim); color: var(--accent-green); }
    .live-game-badge.live { background: var(--accent-green-dim); color: var(--accent-green); }
    .live-game-badge.final { background: var(--bg-tertiary); color: var(--text-muted); }

    .live-game-teams {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 2px;
      letter-spacing: 0.2px;
      color: var(--text-primary);
      text-transform: uppercase;
      line-height: 1.2;
    }

    @media (min-width: 768px) {
      .live-game-teams {
        font-size: 15px;
      }
    }

    .live-game-score {
      font-family: 'JetBrains Mono', monospace;
      font-size: 18px;
      font-weight: 700;
      color: var(--accent-green);
      margin-bottom: 2px;
      text-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
      letter-spacing: 1px;
    }

    @media (min-width: 768px) {
      .live-game-score {
        font-size: 20px;
      }
    }

    .live-game-status {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 2px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .game-countdown {
      font-size: 11px;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      color: var(--accent-blue);
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .game-countdown.soon {
      color: var(--accent-gold);
      animation: countdownPulse 1.4s ease-in-out infinite;
    }
    @keyframes countdownPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.55; }
    }

    /* Sport Tabs */
    .sport-tabs {
      display: flex;
      gap: 4px;
      padding: 10px 12px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      overflow-x: auto;
      scrollbar-width: none;
      justify-content: center;
      flex-wrap: nowrap;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    @media (min-width: 768px) {
      .sport-tabs {
        padding: 12px 32px;
        gap: 8px;
      }
    }

    @media (min-width: 1200px) {
      .sport-tabs {
        padding: 12px 48px;
      }
    }

    .sport-tabs::-webkit-scrollbar { display: none; }

    .sport-tab {
      flex-shrink: 0;
      padding: 6px 12px;
      border-radius: var(--radius-md);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid var(--border-color);
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      white-space: nowrap;
    }

    @media (min-width: 768px) {
      .sport-tab {
        padding: 8px 18px;
        font-size: 13px;
        letter-spacing: 0.3px;
      }
    }

    .sport-tab.active {
      background: linear-gradient(135deg, var(--accent-green), rgb(50, 255, 150));
      color: var(--bg-primary);
      border-color: var(--accent-green);
      box-shadow: 0 6px 16px rgba(0, 230, 118, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
      transform: translateY(-2px);
      font-weight: 700;
      letter-spacing: 0.5px;
    }

    .sport-tab:not(.active):hover {
      background: var(--bg-card-hover);
      border-color: var(--accent-green);
      color: var(--accent-green);
      box-shadow: 0 2px 8px rgba(0, 230, 118, 0.2);
    }

    /* ════════════════════════════════════════════════════════════════ */
    /* AI CHAT INTERFACE STYLES                                        */
    /* ════════════════════════════════════════════════════════════════ */

    #aiChatMessages {
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.1) transparent;
    }

    #aiChatMessages::-webkit-scrollbar {
      width: 6px;
    }

    #aiChatMessages::-webkit-scrollbar-track {
      background: transparent;
    }

    #aiChatMessages::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
    }

    #recommendationsContainer {
      min-height: 0;
      padding: 0 0 48px;
      background: transparent;
      overflow: visible;
    }


    /* ── PropAI Analyst Desk (design handoff) ───────────────────────── */
    @keyframes livePulse { 0%{opacity:1} 50%{opacity:.3} 100%{opacity:1} }
    .pad-visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; border:0!important; }
    .propai-desk { display:flex; flex-direction:column; gap:0; min-height:0; background:var(--bg-primary,#000); color:var(--text-primary,#e7ece7); }
    .pad-masthead { display:flex; flex-direction:column; gap:12px; padding:14px 28px; border-bottom:2px solid var(--border-color,rgba(255,255,255,.12)); flex:none; }
    .pad-masthead-row1, .pad-masthead-row2 { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
    .pad-brand { display:flex; align-items:center; gap:10px; min-width:0; }
    .pad-logo { width:64px; height:64px; object-fit:contain; flex:none; border-radius:0; }
    .pad-wordmark { display:flex; flex-direction:column; line-height:1.15; min-width:0; }
    .pad-wordmark-title { font-family:var(--font-display,inherit); font-weight:800; font-size:19px; letter-spacing:-0.02em; white-space:nowrap; }
    .pad-wordmark-sub { font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--accent-green,#39ff6a); font-weight:800; white-space:nowrap; }
    .pad-live { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:800; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-green,#39ff6a); flex:none; }
    .pad-live-dot { width:7px; height:7px; border-radius:50%; background:var(--accent-green,#39ff6a); display:inline-block; animation:livePulse 1.6s ease-in-out infinite; }
    .pad-league-seg { display:flex; border:1px solid var(--border-color,rgba(255,255,255,.12)); overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
    .pad-league-btn { border:none; border-right:1px solid var(--border-color,rgba(255,255,255,.12)); background:transparent; color:var(--text-primary,#e7ece7); font-family:var(--font-display,inherit); font-weight:800; font-size:12px; padding:8px 14px; min-height:44px; cursor:pointer; flex:none; }
    .pad-league-btn:last-child { border-right:none; }
    .pad-league-btn.active { background:var(--accent-green,#39ff6a); color:#000; }
    .pad-watch-btn { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--border-color,rgba(255,255,255,.12)); background:transparent; padding:7px 14px; min-height:44px; font-family:var(--font-display,inherit); font-weight:800; font-size:12px; color:var(--text-primary,#e7ece7); cursor:pointer; border-radius:0; }
    .pad-slate-badge { font-size:11px; opacity:.7; }
    .pad-tab-strip { display:flex; border-bottom:2px solid var(--border-color,rgba(255,255,255,.12)); padding:0 28px; gap:30px; overflow-x:auto; flex:none; -webkit-overflow-scrolling:touch; }
    .pad-tab.propai-section-tab { border:none; background:transparent; color:var(--text-primary,#e7ece7); opacity:.6; font-family:var(--font-display,inherit); font-weight:800; font-size:13px; letter-spacing:0.03em; text-transform:uppercase; padding:14px 0; min-height:44px; cursor:pointer; border-radius:0; box-shadow:none; white-space:nowrap; }
    .pad-tab.propai-section-tab.active { opacity:1; color:var(--accent-green,#39ff6a); box-shadow:inset 0 -3px 0 var(--accent-green,#39ff6a); }
    .pad-surface { flex:1 1 auto; min-height:0; overflow:auto; padding:24px 28px calc(60px + env(safe-area-inset-bottom,0px)); max-width:1360px; margin:0 auto; width:100%; box-sizing:border-box; -webkit-overflow-scrolling:touch; }
    .pad-analyst-shell { display:flex; flex-direction:column; gap:20px; }
    .pad-ask-bar { border:1px solid var(--border-color,rgba(255,255,255,.12)); padding:16px; display:flex; flex-direction:column; gap:12px; background:var(--bg-card,#0d100d); border-radius:0; }
    .pad-ask-row { display:flex; gap:10px; }
    .pad-ask-input-wrap { flex:1; display:flex; align-items:center; gap:8px; border:1px solid var(--border-color,rgba(255,255,255,.12)); background:var(--bg-primary,#000); padding:0 12px; min-height:44px; }
    .pad-ask-input-wrap svg { opacity:.6; flex:none; }
    .pad-ask-input-wrap input { border:none; background:transparent; padding:10px 0; width:100%; color:var(--text-primary,#e7ece7); font-size:14px; outline:none; }
    .pad-ask-send { padding:0 18px; min-width:48px; min-height:44px; border:none; border-radius:0; background:var(--accent-green,#39ff6a); color:#000; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
    .pad-quick-prompts { display:flex; gap:8px; flex-wrap:wrap; }
    .pad-chip { cursor:pointer; padding:7px 13px; min-height:36px; background:transparent; border:1px solid var(--accent-green,#39ff6a); color:var(--accent-green,#39ff6a); font-size:12px; font-weight:600; border-radius:0; }
    .pad-analyst-columns { display:flex; gap:20px; align-items:stretch; }
    .pad-conversation { flex:0 0 340px; min-width:300px; max-height:660px; border:1px solid var(--border-color,rgba(255,255,255,.12)); display:flex; flex-direction:column; border-radius:0; background:transparent; }
    .pad-conversation-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:2px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-conversation-title { display:flex; align-items:center; gap:8px; font-family:var(--font-display,inherit); font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:0.04em; }
    .pad-icon-btn { border:none; background:transparent; cursor:pointer; color:var(--text-primary,#e7ece7); opacity:.55; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0; border-radius:0; }
    .pad-featured-col { flex:1 1 0; min-width:340px; display:flex; flex-direction:column; gap:16px; }
    .pad-featured-panel, .pad-featured-mount { border-radius:0; }
    .pad-featured-card { border:2px solid var(--border-color,rgba(255,255,255,.12)); padding:20px; display:flex; flex-direction:column; gap:16px; background:var(--bg-card,#0d100d); }
    .pad-featured-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
    .pad-featured-player { display:flex; gap:14px; align-items:center; }
    .pad-avatar { width:56px; height:56px; border:2px solid var(--text-primary,#e7ece7); display:flex; align-items:center; justify-content:center; font-family:var(--font-display,inherit); font-weight:800; font-size:17px; flex:none; overflow:hidden; }
    .pad-avatar img { width:100%; height:100%; object-fit:cover; }
    .pad-player-name { font-family:var(--font-display,inherit); font-weight:800; font-size:21px; letter-spacing:-0.01em; }
    .pad-player-meta { font-size:12px; opacity:.65; margin-top:2px; }
    .pad-verdict { display:inline-flex; align-items:center; font-family:var(--font-display,inherit); font-weight:800; font-size:11px; letter-spacing:0.04em; padding:4px 9px; border-radius:0; }
    .pad-verdict--strong { background:var(--accent-green,#39ff6a); color:#000; }
    .pad-verdict--mid { border:1.5px solid var(--accent-green,#39ff6a); color:var(--accent-green,#39ff6a); background:transparent; }
    .pad-verdict--low { background:rgba(255,255,255,.08); color:rgba(231,236,231,.7); }
    .pad-scoreboard { display:grid; grid-template-columns:repeat(3,1fr); border-top:2px solid var(--border-color,rgba(255,255,255,.12)); border-bottom:2px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-score-cell { padding:14px 4px; }
    .pad-score-cell + .pad-score-cell { border-left:1px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-score-label { font-size:10px; letter-spacing:0.08em; text-transform:uppercase; opacity:.55; }
    .pad-score-value { font-family:var(--font-display,inherit); font-weight:800; font-size:30px; margin-top:2px; }
    .pad-score-value--accent { color:var(--accent-green,#39ff6a); }
    .pad-mainline { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
    .pad-mainline-label, .pad-alt-label { font-size:10px; letter-spacing:0.08em; text-transform:uppercase; opacity:.55; margin-bottom:2px; }
    .pad-mainline-value { font-family:var(--font-display,inherit); font-weight:800; font-size:16px; }
    .pad-odds-tag { border:1px solid var(--border-color,rgba(255,255,255,.12)); padding:4px 8px; font-size:12px; font-weight:700; border-radius:0; }
    .pad-alt { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; border:1.5px solid var(--accent-green,#39ff6a); padding:10px 12px; }
    .pad-alt-label { color:var(--accent-green,#39ff6a); opacity:1; }
    .pad-alt-value { font-family:var(--font-display,inherit); font-weight:800; font-size:14px; }
    .pad-matchup-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; border:1px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-matchup-cell { padding:12px; border-right:1px solid var(--border-color,rgba(255,255,255,.12)); border-bottom:1px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-matchup-cell:nth-child(2n) { border-right:none; }
    .pad-matchup-cell:nth-last-child(-n+2) { border-bottom:none; }
    .pad-matchup-label { font-size:10px; letter-spacing:0.08em; text-transform:uppercase; opacity:.55; }
    .pad-matchup-value { font-size:13px; margin-top:4px; }
    .pad-trends { display:flex; flex-direction:column; gap:8px; }
    .pad-trends-labels { display:flex; justify-content:space-between; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; opacity:.6; }
    .pad-trend-bars { display:flex; gap:8px; }
    .pad-trend-track { flex:1; height:8px; background:rgba(255,255,255,.08); }
    .pad-trend-fill { height:100%; background:var(--accent-green,#39ff6a); }
    .pad-trend-caption { font-size:12px; opacity:.6; }
    .pad-ladder { width:100%; border-collapse:collapse; font-size:13px; }
    .pad-ladder th, .pad-ladder td { text-align:left; padding:8px 6px; border-bottom:1px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-ladder th { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; opacity:.55; font-weight:700; }
    .pad-ladder tr.is-current { background:rgba(57,255,106,0.12); font-weight:700; }
    .pad-take { border-left:3px solid var(--accent-green,#39ff6a); padding:2px 0 2px 14px; }
    .pad-take-label { font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent-green,#39ff6a); font-weight:800; margin-bottom:4px; }
    .pad-take-body { font-size:14px; line-height:1.6; font-style:italic; opacity:.92; }
    .pad-risks { display:flex; flex-direction:column; gap:6px; }
    .pad-risks-label { font-size:10px; letter-spacing:0.1em; text-transform:uppercase; opacity:.55; margin-bottom:2px; }
    .pad-risk-row { display:flex; gap:8px; font-size:13px; line-height:1.5; }
    .pad-risk-dot { width:6px; height:6px; background:var(--text-primary,#e7ece7); opacity:.4; margin-top:7px; flex:none; }
    .pad-actions { display:flex; gap:10px; flex-wrap:wrap; padding-top:4px; }
    .pad-btn { display:inline-flex; align-items:center; gap:8px; border:1px solid var(--border-color,rgba(255,255,255,.12)); background:transparent; color:var(--text-primary,#e7ece7); padding:10px 14px; min-height:44px; font-size:12px; font-weight:700; cursor:pointer; border-radius:0; }
    .pad-btn--ghost { border-color:transparent; opacity:.8; }
    .pad-btn.is-active { border-color:var(--accent-green,#39ff6a); color:var(--accent-green,#39ff6a); }
    .pad-strip-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
    .pad-top-picks-strip { display:flex; gap:12px; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
    .pad-top-card { flex:none; width:210px; border:1px solid var(--border-color,rgba(255,255,255,.12)); padding:12px; cursor:pointer; display:flex; flex-direction:column; gap:8px; background:transparent; color:inherit; text-align:left; border-radius:0; min-height:44px; }
    .pad-top-card.active { border-color:var(--accent-green,#39ff6a); }
    .pad-top-card-head { display:flex; justify-content:space-between; align-items:flex-start; }
    .pad-vs-btn { border:1px solid var(--border-color,rgba(255,255,255,.12)); background:transparent; cursor:pointer; padding:6px 8px; min-width:36px; min-height:36px; font-size:10px; font-weight:800; text-transform:uppercase; color:inherit; border-radius:0; }
    .pad-top-card-player { font-family:var(--font-display,inherit); font-weight:800; font-size:14px; }
    .pad-top-card-meta { font-size:11px; opacity:.6; }
    .pad-top-card-line { font-size:12px; font-weight:600; }
    .pad-top-card-stats { display:flex; justify-content:space-between; font-size:11px; opacity:.7; }
    .pad-compare-mount { border:2px solid var(--border-color,rgba(255,255,255,.12)); padding:16px; display:flex; flex-direction:column; gap:10px; }
    .pad-compare-mount[hidden] { display:none!important; }
    .pad-compare-title { font-family:var(--font-display,inherit); font-weight:800; font-size:13px; text-transform:uppercase; letter-spacing:0.04em; }
    .pad-bestbets-toolbar { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
    .pad-search { flex:1; min-width:220px; display:flex; align-items:center; gap:8px; border:1px solid var(--border-color,rgba(255,255,255,.12)); background:var(--bg-card,#0d100d); padding:0 12px; min-height:44px; }
    .pad-search input { border:none; background:transparent; padding:9px 0; width:100%; color:inherit; outline:none; }
    .pad-dir-seg { display:flex; border:1px solid var(--border-color,rgba(255,255,255,.12)); }
    .pad-dir-seg .propai-market-tab { border:none; border-radius:0; background:transparent; min-height:44px; }
    .pad-dir-seg .propai-market-tab.active { background:var(--accent-green,#39ff6a); color:#000; }
    .pad-table { width:100%; border-collapse:collapse; }
    .pad-table th, .pad-table td { text-align:left; padding:12px 8px; border-bottom:1px solid var(--border-color,rgba(255,255,255,.12)); vertical-align:middle; }
    .pad-table th { font-size:11px; text-transform:uppercase; letter-spacing:0.06em; opacity:.55; }
    .pad-table-iq { font-family:var(--font-display,inherit); font-weight:800; color:var(--accent-green,#39ff6a); }
    .pad-table-alt { font-size:12px; color:var(--accent-green,#39ff6a); }
    .pad-row-open { border:none; background:transparent; cursor:pointer; color:inherit; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
    .pad-slate-game { border:1px solid var(--border-color,rgba(255,255,255,.12)); padding:16px; display:flex; flex-direction:column; gap:10px; margin-bottom:14px; border-radius:0; }
    .pad-slate-game-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; }
    .pad-slate-game-title { font-family:var(--font-display,inherit); font-weight:800; font-size:16px; }
    .pad-slate-game-meta { font-size:12px; opacity:.6; }
    .pad-slate-plays { display:flex; gap:10px; flex-wrap:wrap; }
    .pad-slate-pill { border:1px solid var(--border-color,rgba(255,255,255,.12)); background:transparent; cursor:pointer; padding:8px 12px; min-height:44px; font-size:12px; text-align:left; color:inherit; border-radius:0; }
    .pad-slate-pill strong { font-weight:600; }
    .pad-slate-pill .pad-iq { color:var(--accent-green,#39ff6a); font-weight:800; }
    .pad-watch-row { border:1px solid var(--border-color,rgba(255,255,255,.12)); padding:14px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:10px; border-radius:0; }
    .pad-watch-row-title { font-weight:700; }
    .pad-watch-row-meta { font-size:12px; opacity:.6; margin-top:2px; }
    .pad-watch-row-actions { display:flex; gap:8px; }
    body.propai-mode .propai-desk .propai-section-stack { display:none; }
    body.propai-mode .propai-desk .propai-section-stack.propai-section-active { display:block; }
    body.propai-mode .propai-desk .propai-browser-panel.propai-section-active { display:flex; flex-direction:column; }
    /* Stack analyst columns below 900px (JS also toggles .pad-is-mobile) */
    .propai-desk.pad-is-mobile .pad-analyst-columns,
    .pad-analyst-columns.pad-stack { flex-direction:column; }
    .propai-desk.pad-is-mobile .pad-conversation,
    .pad-analyst-columns.pad-stack .pad-conversation { flex:1 1 auto; width:100%; max-width:none; max-height:420px; min-width:0; }
    .propai-desk.pad-is-mobile .pad-featured-col,
    .pad-analyst-columns.pad-stack .pad-featured-col { min-width:0; width:100%; }
    .propai-desk.pad-is-mobile .pad-masthead,
    .propai-desk.pad-is-mobile .pad-tab-strip,
    .propai-desk.pad-is-mobile .pad-surface { padding-left:16px; padding-right:16px; }
    .propai-desk.pad-is-mobile .pad-tab-strip { gap:20px; }
    .propai-desk.pad-is-mobile .pad-logo { width:48px; height:48px; }
    /* Capacitor / chat-v2: show full desk, not chat-only shell */
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-masthead,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab-strip,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-ask-bar,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-featured-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-top-plays-panel { display:flex !important; flex-direction:column; }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab-strip { display:flex !important; flex-direction:row; }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="markets"].propai-section-active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="slate"].propai-section-active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="watchlist"].propai-section-active { display:block !important; }
    @media (max-width: 899px) {
      .pad-analyst-columns { flex-direction:column; }
      .pad-conversation { flex:1 1 auto; width:100%; max-width:none; max-height:420px; min-width:0; }
      .pad-featured-col { min-width:0; width:100%; }
      .pad-masthead, .pad-tab-strip, .pad-surface { padding-left:16px; padding-right:16px; }
      .pad-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
    }



    /* Analyst Desk Best Bets: inline tab, not bottom sheet */
    .propai-desk .propai-browser-panel.pad-bestbets,
    .propai-desk #propAIBrowserPanel {
      position: static !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      transform: none !important;
      max-height: none !important;
      z-index: auto !important;
      overflow: visible !important;
      border-radius: 0 !important;
    }
    .propai-desk .propai-browser-backdrop {
      display: none !important;
    }

    /* Analyst Desk: beat legacy chat-v2 / mockup chrome that hid panels or rounded tabs */
    body.propai-mode .propai-desk .pad-tab-strip.propai-section-nav,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab-strip.propai-section-nav {
      display: flex !important;
      gap: 30px;
      padding: 0 28px;
      margin: 0;
      border-bottom: 2px solid var(--border-color, rgba(255,255,255,.12));
      border-radius: 0;
      overflow-x: auto;
    }
    body.propai-mode .propai-desk .pad-tab.propai-section-tab,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab.propai-section-tab {
      border: none !important;
      border-radius: 0 !important;
      background: transparent !important;
      padding: 14px 0 !important;
      box-shadow: none !important;
      color: var(--text-primary, #e7ece7);
      opacity: .6;
    }
    body.propai-mode .propai-desk .pad-tab.propai-section-tab.active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab.propai-section-tab.active {
      opacity: 1;
      color: var(--accent-green, #39ff6a) !important;
      background: transparent !important;
      box-shadow: inset 0 -3px 0 var(--accent-green, #39ff6a) !important;
      border: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-analyst-hero-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-top-plays-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-ask-bar,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-masthead {
      display: flex !important;
      flex-direction: column;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="markets"],
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="slate"],
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="watchlist"],
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="generative"] {
      display: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="markets"].propai-section-active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="slate"].propai-section-active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="watchlist"].propai-section-active,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-section-stack[data-propai-section="analyst"].propai-section-active {
      display: block !important;
    }


    /* Analyst Desk wins over chat-v2 / "Ask-only" chrome on Cap + mobile */
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-masthead,
    body.propai-mode .propai-desk .pad-masthead {
      display: flex !important;
      flex-direction: column !important;
    }
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-tab-strip.propai-section-nav {
      display: flex !important;
      flex-direction: row !important;
      flex-shrink: 0 !important;
    }
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-ask-bar,
    body.propai-mode .propai-desk .pad-ask-bar {
      display: flex !important;
      flex-direction: column !important;
    }
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-featured-panel,
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .propai-analyst-hero-panel,
    body.propai-mode .propai-desk .pad-featured-panel,
    body.propai-mode .propai-desk .propai-analyst-hero-panel.pad-featured-panel,
    body.propai-mode .propai-desk .pad-top-plays-panel,
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-top-plays-panel {
      display: flex !important;
      flex-direction: column !important;
    }
    body.propai-mode .propai-desk .propai-section-stack[data-propai-section="analyst"] .propai-analyst-hero-panel,
    body.propai-mode .propai-desk .propai-section-stack[data-propai-section="analyst"] .pad-top-plays-panel {
      display: flex !important;
      flex-direction: column !important;
    }
    /* Keep desk ask bar in-flow; chat-v2 bottom dock only when no desk */
    body.propai-mode.propedge-chat-v2-mobile .propai-desk #propaiChatComposerDock:empty {
      display: none !important;
    }
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-ask-row,
    body.propai-mode.propedge-chat-v2-mobile .propai-desk .pad-quick-prompts {
      display: flex !important;
    }

    /* Chat-first mobile Analyst tab: match propedge-generative-analyst's
       ChatShell — full-height message feed with the composer pinned at the
       bottom, not a dashboard with a capped 420px chat box. Featured pick /
       Top Plays move out of the way; they're desktop side-column content. */
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-featured-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .propai-analyst-hero-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-top-plays-panel,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-featured-col {
      display: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-analyst-columns {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      display: flex !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-conversation {
      flex: 1 1 auto !important;
      width: 100% !important;
      max-width: none !important;
      max-height: none !important;
      min-width: 0 !important;
      min-height: 0 !important;
    }
    /* Ask bar (input + starter-prompt chips) reorders to the bottom, after
       the columns, so it reads like ChatShell's pinned composer.
       margin-top:auto (not just flex-grow on the conversation column) is
       what actually guarantees this: it consumes all remaining space in
       .propai-analyst-shell and pushes the ask bar to the true bottom
       regardless of whether .pad-analyst-columns's own flex-grow succeeds
       through the rest of the (deeply nested) flex chain above it — on
       device this was confirmed to leave the ask bar stranded mid-screen
       with dead space below it instead of at the bottom. */
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-analyst-columns {
      order: 1 !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-ask-bar {
      order: 2 !important;
      flex: 0 0 auto !important;
      margin-top: auto !important;
    }
    /* The reference ChatShell is chat-only — no league filter row, no
       watchlist counter, no Analyst/Best Bets/Slate/Watchlist tab strip,
       and no duplicate "ask about tonight's board" hint sitting above the
       composer's own starter chips. Strip all of that dashboard chrome so
       the mobile Analyst tab is just the conversation + composer. */
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-masthead-row2,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-tab-strip.propai-section-nav,
    body.propedge-chat-v2-mobile.propai-mode .propai-desk #aiChatMessages .ai-empty-state {
      display: none !important;
    }

    .propai-unified {
      display: grid;
      gap: 16px;
      padding: 0;
    }

    .propai-analyst-intro {
      display: grid;
      gap: 16px;
      padding: 18px 20px;
      background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 17, 33, 0.98));
    }

    .propai-analyst-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      flex-wrap: wrap;
    }

    .propai-analyst-head .propai-title-block {
      min-width: 0;
    }

    .propai-analyst-meta {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .propai-analyst-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 40px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(11, 21, 37, 0.88);
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 800;
    }

    .propai-analyst-pill strong {
      color: var(--accent-green);
      font-size: 12px;
      font-weight: 900;
    }

    .propai-analyst-toolbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: start;
    }

    .propai-quick-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
      align-items: center;
    }

    .propai-page {
      display: grid;
      grid-template-columns: 264px minmax(0, 1fr);
      gap: 28px;
      padding: 24px 0 12px;
      min-height: calc(100dvh - 32px);
    }

    .propai-sidebar {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 18px 14px;
      background: linear-gradient(to bottom, #020617, #020617 40%, #030712);
      border: 1px solid rgba(15, 23, 42, 0.9);
      border-radius: 20px;
      box-shadow: var(--shadow-lg);
    }

    .propai-sidebar-logo {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .propai-sidebar-mark {
      width: 36px;
      height: 36px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 900;
      color: #fff;
      background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.65), transparent 58%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.7), transparent 62%),
        #07111f;
      box-shadow: var(--shadow-sm);
    }

    .propai-sidebar-mark--logo {
      background: #05080e url('/brand-shield.png') center/contain no-repeat;
      border: 1px solid rgba(57, 255, 20, 0.22);
      border-radius: 12px;
      box-shadow: 0 0 14px rgba(57, 255, 20, 0.22);
      filter: none;
      color: transparent;
      width: 40px;
      height: 40px;
    }

    .propai-sidebar-brand {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.045em;
      text-transform: lowercase;
      color: #ffffff;
    }
    .propai-sidebar-sub {
      font-size: 12px;
      font-weight: 800;
      color: var(--accent-green);
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .propai-sidebar-nav,
    .propai-sidebar-footer {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .propai-sidebar-footer { margin-top: auto; }

    .propai-side-item {
      display: flex;
      align-items: center;
      gap: 12px;
      border: none;
      background: transparent;
      color: #8fa1be;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 14px;
      text-align: left;
      cursor: pointer;
    }
    .propai-side-icon {
      width: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 800;
      opacity: 0.95;
      flex: 0 0 auto;
    }

    .propai-side-item:hover,
    .propai-side-item.active {
      background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.14));
      color: var(--text-primary);
      box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
    }

    .propai-side-item.subtle { color: var(--text-muted); }

    .propai-upsell {
      margin-top: 10px;
      padding: 14px;
      border-radius: 16px;
      background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.34), transparent 60%),
        #091323;
      border: 1px solid rgba(129, 140, 248, 0.4);
    }

    .propai-upsell-title { font-size: 13px; font-weight: 800; color: var(--text-primary); }
    .propai-upsell-copy { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }
    .propai-upsell-btn {
      margin-top: 10px;
      width: 100%;
      border: none;
      border-radius: 999px;
      padding: 8px 10px;
      font-size: 12px;
      font-weight: 800;
      color: #fff;
      background: linear-gradient(90deg, #6366f1, #a855f7);
      cursor: pointer;
    }

    .propai-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
    .panel {
      background: linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(5, 8, 14, 0.99));
      border-radius: 22px;
      border: 1px solid rgba(57, 255, 20, 0.12);
      box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      padding: 18px;
    }

    @media (min-width: 1367px) {
      .panel {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
    }

    .propai-topbar {
      padding: 22px 24px 18px;
      background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(12, 15, 22, 0.96), rgba(0, 0, 0, 0.98));
    }

    .propai-topbar-main {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 14px;
    }

    .propai-title-block { min-width: 0; }
    .propai-title {
      font-size: 28px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1.05;
    }
    .propai-title-accent { color: var(--accent-green); }
    .propai-beta {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 4px 8px;
      font-size: 11px;
      font-weight: 900;
      vertical-align: middle;
      margin-left: 10px;
      color: var(--accent-green);
      border: 1px solid rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.12);
    }
    .propai-subtitle {
      margin-top: 6px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .propai-topbar-status {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .propai-status-item {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      min-width: 104px;
      color: var(--text-muted);
      font-size: 12px;
      line-height: 1.35;
    }
    .propai-status-item strong { color: var(--text-primary); font-size: 13px; }
    .propai-status-dot {
      width: 9px; height: 9px; border-radius: 999px; background: var(--accent-green); margin-top: 5px;
      box-shadow: 0 0 18px rgba(34,197,94,0.5);
    }

    .propai-controls-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 0.95fr)) minmax(0, 2.9fr);
      gap: 16px;
      align-items: stretch;
      margin-bottom: 10px;
    }

    .propai-filter-card {
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(17, 28, 52, 0.92);
      border: 1px solid var(--border-color);
      display: grid;
      gap: 6px;
    }
    .propai-filter-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .08em;
      font-weight: 800;
    }
    .propai-filter-value {
      font-size: 20px;
      font-weight: 800;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .propai-filter-icon {
      width: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 13px;
      flex: 0 0 auto;
    }
    .propai-filter-value-green { color: var(--accent-green); }

    .propai-query-shell {
      min-width: 0;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(56, 189, 248, 0.18);
      background: linear-gradient(180deg, rgba(12, 24, 46, 0.96), rgba(8, 18, 36, 0.98));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
      isolation: isolate;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      position: relative;
    }
    .propai-query-shell::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      padding: 1px;
      background: linear-gradient(90deg, rgba(56,189,248,0.85), rgba(34,197,94,0.7), rgba(139,92,246,0.8));
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
      opacity: 0.75;
    }
    .propai-query-icon { font-size: 18px; color: #d2dbff; }
    .propai-query-shell #aiChatInput {
      min-height: 42px;
      padding: 0;
      border: none;
      background: transparent;
      font-size: 15px;
      color: var(--text-primary);
    }
    .propai-query-shell #aiChatInput::placeholder { color: #8e9bb1; }
    .propai-query-send {
      width: 40px;
      height: 40px;
      border: none;
      border-radius: 999px;
      background: linear-gradient(135deg, #22c55e, #4ade80);
      color: #03110a;
      font-size: 18px;
      font-weight: 900;
      cursor: pointer;
    }
    .propai-query-newchat {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
      margin-left: 6px;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      background: transparent;
      color: var(--text-secondary);
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
    }
    .propai-query-newchat:hover,
    .propai-query-newchat:active {
      color: #fff;
      border-color: var(--accent-green);
    }
    .propai-query-try {
      grid-column: 2 / span 2;
      color: var(--text-muted);
      font-size: 11px;
      margin-top: -2px;
    }

    .propai-scenarios {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .propai-scenarios-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: .12em;
      font-weight: 900;
    }
    .propai-scenario-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      color: var(--text-primary);
      background: rgba(15,23,42,0.9);
    }
    .propai-chip-icon {
      width: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      opacity: 0.95;
    }
    .propai-scenario-btn.green {
      border-color: rgba(34, 197, 94, 0.32);
      color: #adf9c5;
      background: rgba(34, 197, 94, 0.12);
    }
    .propai-scenario-btn.purple {
      border-color: rgba(99, 102, 241, 0.32);
      color: #d5d6ff;
      background: rgba(99, 102, 241, 0.12);
    }
    .propai-fast-inline {
      margin-left: auto;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 700;
    }

    .propai-grid {
      display: grid;
      grid-template-columns: minmax(300px, 0.98fr) minmax(480px, 1.52fr) minmax(320px, 1.08fr);
      gap: 24px;
      align-items: start;
    }
    .propai-panel { min-width: 0; }
    .propai-panel-center { display: grid; gap: 12px; }
    .propai-right-stack { display: grid; gap: 18px; }
    .propai-panel,
    .propai-right-stack > .panel {
      min-height: 0;
    }

    .propai-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 12px;
    }
    .propai-panel-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
    }
    .propai-new-chat-btn {
      flex-shrink: 0;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text-secondary);
      background: transparent;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm, 8px);
      cursor: pointer;
      white-space: nowrap;
    }
    .propai-new-chat-btn:hover {
      color: #fff;
      border-color: var(--accent-green);
    }
    .propai-panel-subtitle {
      font-family: var(--font-ui);
      font-size: 13px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.55);
      margin-top: 4px;
    }
    .propai-panel-highlight {
      font-size: 12px;
      color: var(--text-muted);
      text-align: right;
    }
    .propai-panel-highlight span {
      display: block;
      color: var(--accent-green);
      font-size: 18px;
      font-weight: 900;
      margin-top: 4px;
    }

    .propai-tab-strip {
      display: flex;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      padding-bottom: 10px;
      margin-bottom: 4px;
    }
    .propai-tab-btn {
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      padding-bottom: 6px;
    }
    .propai-tab-btn.active {
      color: var(--text-primary);
      box-shadow: inset 0 -2px 0 var(--accent-green);
    }

    .propai-slate-list,
    .propai-bestbets-list,
    .propai-list-rail {
      display: grid;
      gap: 12px;
    }

    .propai-slate-card {
      border: 1px solid rgba(148, 163, 184, 0.16);
      background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 16, 30, 0.98));
      border-radius: 16px;
      overflow: hidden;
    }
    .propai-slate-time {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 12px 6px;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 700;
    }
    .propai-slate-main {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 12px 12px;
    }
    .propai-slate-team,
    .propai-slate-teamrow {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .propai-slate-player,
    .propai-slate-headshot {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      object-fit: cover;
      background: rgba(255,255,255,0.04);
      flex: 0 0 auto;
    }
    .propai-slate-headshot--fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 20px;
    }
    .propai-slate-teamwrap { min-width: 0; display: grid; gap: 4px; }
    .propai-slate-team {
      color: var(--text-primary);
      font-size: 26px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .propai-slate-teamname { color: var(--text-primary); font-size: 28px; font-weight: 900; line-height: 1; }
    .propai-slate-teammeta { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
    .propai-slate-records {
      color: var(--text-muted);
      font-size: 12px;
    }
    .propai-slate-vs {
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 800;
    }
    .propai-slate-footer,
    .propai-slate-note-row {
      display: grid;
      gap: 8px;
      padding: 10px 12px 12px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .propai-slate-pill {
      display: inline-flex;
      width: fit-content;
      align-items: center;
      border-radius: 999px;
      padding: 3px 8px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(148,163,184,0.18);
      color: var(--text-muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
      font-weight: 800;
    }
    .propai-slate-note {
      display: flex;
      gap: 8px;
      align-items: center;
      font-size: 12px;
      color: var(--text-secondary);
    }
    .propai-slate-note span:first-child {
      display: inline-flex;
      min-width: 84px;
      justify-content: center;
      border-radius: 999px;
      padding: 3px 8px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(148,163,184,0.18);
      color: var(--text-muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .propai-bestbet-card {
      display: block;
      padding: 12px;
      border-radius: 18px;
      border: 1px solid rgba(148,163,184,0.16);
      background: linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(8, 16, 30, 0.98));
      text-align: left;
      cursor: pointer;
    }
    .propai-rank-badge,
    .propai-bestbet-rank {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(34,197,94,0.18);
      border: 1px solid rgba(34,197,94,0.32);
      color: #bdfecb;
      font-weight: 900;
      font-size: 18px;
      margin-bottom: 10px;
    }
    .propai-bet-main,
    .propai-bestbet-main {
      display: grid;
      grid-template-columns: 122px minmax(0, 1fr);
      gap: 14px;
      min-width: 0;
    }
    .propai-bet-headshot,
    .propai-bestbet-headshot,
    .propai-bestbet-main .prop-headshot-fallback {
      width: 122px;
      height: 122px;
      border-radius: 16px;
      object-fit: cover;
      background: rgba(255,255,255,0.04);
    }
    .ev-detail-rich-report .propai-bestbet-headshot {
      overflow: hidden;
      flex-shrink: 0;
    }
    .ev-detail-rich-report .propai-bestbet-headshot img {
      width: 100%;
      height: 100%;
      max-width: 122px;
      max-height: 122px;
      object-fit: cover;
      object-position: top center;
      display: block;
      border-radius: inherit;
    }
    .ev-detail-rich-report .propai-bestbet-game-card {
      padding: 14px 16px;
    }
    .ev-detail-rich-report .propai-bestbet-matchup {
      margin-top: 8px;
      font-size: 13px;
      line-height: 1.55;
      color: var(--text-secondary);
    }

    @media (max-width: 1400px) and (min-width: 900px) {
      .propai-slate-card {
        padding: 12px;
        gap: 8px;
      }

      .propai-slate-time {
        font-size: 10px;
        padding: 8px 10px 4px;
      }

      .propai-slate-main {
        gap: 10px;
        padding: 0 10px 10px;
      }

      .propai-slate-player,
      .propai-slate-headshot {
        width: 46px;
        height: 46px;
      }

      .propai-slate-team {
        font-size: 24px;
      }

      .propai-slate-teamname {
        font-size: 24px;
      }

      .propai-slate-teammeta {
        font-size: 11px;
      }

      .propai-slate-records {
        font-size: 10px;
      }

      .propai-slate-vs {
        font-size: 10px;
      }

      .propai-slate-footer,
      .propai-slate-note-row {
        gap: 6px;
        padding: 8px 10px 10px;
      }

      .propai-slate-pill {
        padding: 2px 6px;
        font-size: 9px;
      }

      .propai-slate-note {
        font-size: 10px;
        gap: 6px;
      }

      .propai-slate-note span:first-child {
        min-width: 70px;
        padding: 2px 6px;
        font-size: 8px;
      }

      .propai-bestbet-card {
        padding: 10px;
      }

      .propai-rank-badge,
      .propai-bestbet-rank {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-bottom: 8px;
      }

      .propai-bet-main,
      .propai-bestbet-main {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 12px;
      }

      .propai-bet-headshot,
      .propai-bestbet-headshot,
      .propai-bestbet-main .prop-headshot-fallback {
        width: 90px;
        height: 90px;
      }

      .propai-bestbet-matchup {
        font-size: 12px;
        margin-top: 6px;
      }

      .propai-bestbet-matchup strong {
        font-size: 9px;
      }

      .propai-bestbet-main .prop-headshot-fallback {
        width: 90px;
        height: 90px;
      }
    }

    .ev-detail-rich-report .propai-bestbet-matchup strong {
      color: var(--text-muted);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .ev-detail-rich-report .propai-ev-followups {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }
    .ev-detail-rich-report .propai-ev-followup-chip {
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 700;
      border: 1px solid rgba(148,163,184,0.22);
      background: rgba(255,255,255,0.04);
      color: var(--text-secondary);
      cursor: pointer;
    }
    .ev-detail-rich-report .propai-ev-followup-chip:hover {
      border-color: rgba(34,197,94,0.35);
      color: var(--accent-green);
    }
    .propai-bestbet-main .prop-headshot-fallback {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 40px;
    }
    .propai-bestbet-copy { min-width: 0; }
    .propai-bestbet-topline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .propai-bestbet-player,
    .propai-bet-player { font-size: 20px; font-weight: 900; color: var(--text-primary); }
    .propai-bestbet-subline { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
    .propai-bestbet-market { font-size: 16px; font-weight: 900; color: var(--text-primary); margin-top: 10px; }
    .propai-bestbet-tag {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }
    .propai-bestbet-tag.bet { background: rgba(34,197,94,0.18); color: var(--accent-green); }
    .propai-bestbet-tag.lean { background: rgba(251,146,60,0.16); color: var(--accent-orange); }
    .propai-bestbet-tag.pass { background: rgba(148,163,184,0.14); color: var(--text-muted); }
    .propai-bet-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
    .propai-bet-line { font-size: 16px; font-weight: 900; color: var(--text-primary); margin-top: 10px; }
    .propai-bet-line .accent { color: var(--accent-green); }
    .propai-bet-rationale {
      margin-top: 10px;
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.55;
    }
    .propai-bet-stats,
    .propai-bestbet-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      align-content: start;
      margin-top: 10px;
    }
    .propai-bestbet-stats span {
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 10px;
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .propai-bestbet-stats b {
      display: block;
      margin-bottom: 6px;
      color: var(--text-primary);
      font-size: 15px;
      font-weight: 900;
      text-transform: none;
      letter-spacing: 0;
    }
    .propai-bestbet-reasons {
      margin: 10px 0 0;
      padding-left: 18px;
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.5;
      display: grid;
      gap: 4px;
    }
    .propai-bestbet-reasons li::marker {
      color: var(--accent-green);
    }
    .propai-stat {
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 10px;
    }
    .propai-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
    .propai-stat-value { margin-top: 6px; font-size: 15px; font-weight: 900; color: var(--text-primary); }
    .propai-stat-value.good { color: var(--accent-green); }
    .propai-stat-value.warn { color: var(--accent-gold); }
    .propai-confidence-bar {
      margin-top: 8px;
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
    }
    .propai-confidence-fill {
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #22c55e, #84cc16);
    }

    .propai-risk-box,
    .propai-ladder-box {
      display: grid;
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 2px;
    }
    .propai-risk-title {
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 800;
    }
    .propai-risk-row,
    .propai-rail-row,
    .propai-risk-item,
    .propai-clv-item,
    .propai-watch-item,
    .propai-ladder-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 10px 12px;
    }
    .propai-risk-row {
      grid-template-columns: 1fr;
      color: var(--text-secondary);
      font-size: 12px;
    }
    .propai-rail-row {
      color: var(--text-secondary);
      font-size: 12px;
    }
    .propai-risk-item strong,
    .propai-clv-edge.good,
    .propai-watch-edge.good,
    .propai-ladder-edge.good { color: var(--accent-green); }
    .propai-risk-item.warn strong,
    .propai-clv-edge.bad { color: var(--accent-orange); }
    .propai-list-title { color: var(--text-primary); font-size: 13px; font-weight: 800; }
    .propai-list-sub { color: var(--text-muted); font-size: 12px; margin-top: 3px; }
    .propai-clv-edge,
    .propai-watch-edge,
    .propai-ladder-edge {
      font-size: 15px;
      font-weight: 900;
      color: var(--text-primary);
      white-space: nowrap;
    }
    .propai-ladder-box {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      width: 100%;
    }

    .propai-ladder-head {
      display: grid;
      grid-template-columns: minmax(60px, 1fr) repeat(4, minmax(60px, 1fr));
      gap: 8px;
      width: 100%;
      min-width: 340px;
      color: var(--text-muted);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .08em;
      padding: 0 4px;
    }
    .propai-ladder-row {
      grid-template-columns: minmax(60px, 1fr) repeat(4, minmax(60px, 1fr));
      width: 100%;
      min-width: 340px;
      font-size: 12px;
      color: var(--text-primary);
    }
    .propai-ladder-row.active {
      border-color: rgba(34,197,94,0.42);
      box-shadow: inset 0 0 0 1px rgba(34,197,94,0.28);
    }

    .propai-analysis-feed {
      padding: 0;
      min-height: 0;
      gap: 10px;
    }

    body.propai-mode .timestamp-bar,
    body.propai-mode .sport-tabs,
    body.propai-mode .stats-bar,
    body.propai-mode #filterSection,
    body.propai-mode #sortBar,
    body.propai-mode #propiqGradingGuide {
      display: none !important;
    }

    @media (min-width: 1367px) {
      body.propai-mode .nav-tabs {
        display: none !important;
      }

      /* PropAI uses the shared site sidebar + command bar, not a nested page shell. */
      body.propai-mode .propai-analyst-intro,
      body.propai-mode .propai-page,
      body.propai-mode .propai-sidebar,
      body.propai-mode .propai-topbar {
        display: none !important;
      }

      /* Ask PropAI: fill shell content — one scroll owner on #aiChatMessages */
      body.propai-mode .propai-section-stack[data-propai-section="analyst"] {
        display: flex !important;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
      }

      body.propai-mode .propai-section-stack[data-propai-section="analyst"] .propai-analyst-shell {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        gap: 0;
      }

      body.propai-mode .propai-analyst-conversation-panel {
        display: flex !important;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: hidden;
      }

      body.propai-mode .propai-analyst-conversation-panel .propai-panel-header {
        display: none !important;
      }

      body.propai-mode .propai-analyst-conversation-panel #aiChatMessages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 8px 4px 16px;
      }

      /* Show Ask PropAI composer on desktop even if dock was left outside the panel
         (Markets → Open PropAI Analyst used to land with an empty chat shell). */
      body.propai-mode .propai-chat-composer-dock,
      body.propai-mode .propai-analyst-conversation-panel .propai-chat-composer-dock {
        display: block !important;
        flex: 0 0 auto;
        margin-top: auto;
        padding: 10px 4px 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: var(--pe-bg, #000000);
      }

      body.propai-mode .propai-chat-composer-dock .propai-query-shell {
        display: flex !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
      }

      body.propai-mode .propai-chat-composer-dock .propai-query-try {
        display: none;
      }

      body.propai-mode .propai-chat-composer-dock #aiChatInput {
        flex: 1 1 auto;
        min-height: 44px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #e7ece7;
        padding: 10px 14px;
      }

      /* Ask PropAI welcome — glossy mock (header + Overs/Unders/Alts chips) */
      body.propai-mode .propai-chat-welcome,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome {
        text-align: left;
        padding: 14px 4px 18px;
        color: var(--pe-muted, #8a978c);
      }
      body.propai-mode .propai-chat-welcome--glossy .propai-chat-welcome-head,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome--glossy .propai-chat-welcome-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }
      body.propai-mode .propai-chat-welcome--glossy h2,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome--glossy h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -0.02em;
        color: var(--pe-text, #e7ece7);
      }
      body.propai-mode .propai-chat-welcome-sub,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-sub {
        margin: 2px 0 0;
        font-size: 11px;
        color: var(--pe-muted, #8a978c);
      }
      body.propai-mode .propai-chat-live-board,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-live-board {
        flex-shrink: 0;
        border: none;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #041208;
        background: var(--pe-accent, #39ff6a);
        box-shadow: 0 0 16px rgba(57, 255, 106, 0.35);
        cursor: pointer;
        touch-action: manipulation;
      }
      body.propai-mode .propai-chat-welcome-logo,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-logo {
        display: none !important;
      }
      body.propai-mode .propai-chat-welcome-starters,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-starters {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        max-width: none;
        margin: 0;
      }
      body.propai-mode .propai-chat-starter-chip,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-starter-chip {
        padding: 6px 11px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
        color: rgba(231, 236, 231, 0.72);
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(57, 255, 106, 0.18);
        pointer-events: auto;
      }
      body.propai-mode .propai-chat-starter-chip:hover,
      body.propai-mode .propai-chat-starter-chip:active,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-starter-chip:hover,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-starter-chip:active {
        border-color: rgba(57, 255, 106, 0.28);
        background: rgba(57, 255, 106, 0.1);
        color: var(--pe-text, #e7ece7);
      }
      body.propai-mode .propai-chat-welcome-hint,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-hint {
        margin: 16px 0 0;
        font-size: 12px;
        line-height: 1.45;
        color: var(--pe-muted, #8a978c);
      }

      /* Ask PropAI welcome starters — match mobile polish (desktop drops propedge-chat-v2-mobile). */
      body.propai-mode .propai-chat-welcome p:not(.propai-chat-welcome-sub):not(.propai-chat-welcome-hint) {
        margin: 0 0 18px;
        font-size: 14px;
        line-height: 1.55;
      }
      body.propai-mode .propai-chat-starter-chip--secondary {
        border-style: dashed;
        color: #94a3b8;
        font-weight: 500;
      }

      /* Ask PropAI = chat only — featured/ladder/slate chrome lives under Best Bets / Slate tabs */
      body.propai-mode .propai-section-stack[data-propai-section="analyst"] .propai-analyst-hero-panel,
      body.propai-mode .propai-section-stack[data-propai-section="analyst"] .propai-analyst-secondary-row,
      body.propai-mode .propai-section-stack[data-propai-section="analyst"] > .propai-analyst-shell > .propai-upcoming-stage {
        display: none !important;
      }

      body.propai-mode #recommendationsContainer {
        padding: 0 !important;
      }

      body.propai-mode .propai-unified {
        gap: 18px;
      }

      body.propai-mode .site-shell-content > .live-games {
        display: none !important;
      }

      body.propai-mode .site-shell-main {
        display: flex;
        flex-direction: column;
        min-height: 0;
      }

      body.propai-mode .site-shell-main > #recommendationsContainer {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
      }

      body.propai-mode #recommendationsContainer,
      body.propai-mode .propai-unified,
      body.propai-mode .propai-surface {
        display: flex !important; /* beat inline style="display:block" from view switcher */
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
      }

      body.propai-mode .site-shell-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
      }

      /* Desktop PropAI — shell surfaces (kill navy islands) */
      body.propai-mode .propai-panel,
      body.propai-mode .panel.propai-panel {
        background: var(--pe-surface, #0d100d);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
      }

      body.propai-mode .propai-ticket-col,
      body.propai-mode .propai-evidence-col,
      body.propai-mode .propai-score-col {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
      }

      body.propai-mode .propai-secondary-cta {
        background: rgba(255, 255, 255, 0.04);
        color: var(--pe-text, #e7ece7);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
      }

      body.propai-mode .propai-cta {
        background: var(--pe-accent, #39ff6a);
        color: #04240f;
        box-shadow: none;
      }

      body.propai-mode .propai-chat-starter-chip {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        color: var(--pe-text, #e7ece7);
      }

      body.propai-mode .propai-chat-starter-chip:hover {
        border-color: rgba(57, 255, 106, 0.35);
        background: rgba(57, 255, 106, 0.08);
        color: #e7ece7;
      }

      body.propai-mode .propai-upsell,
      body.propai-mode .propai-upsell-btn {
        display: none !important;
      }

      body.propai-mode .propai-section-stack[data-propai-section="markets"],
      body.propai-mode .propai-section-stack[data-propai-section="slate"] {
        width: 100%;
        max-width: none;
        gap: 14px;
      }

      body.propai-mode .propai-section-nav {
        margin-bottom: 8px;
        padding: 4px 0 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }

      body.propai-mode .propai-section-tab {
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        color: var(--pe-muted, #8a978c);
      }

      body.propai-mode .propai-section-tab.active {
        border-color: rgba(57, 255, 106, 0.3);
        background: rgba(57, 255, 106, 0.14);
        color: var(--pe-accent, #39ff6a);
        box-shadow: none;
      }

      /* Best Bets / Slate actions — match Markets desktop weight */
      body.propai-mode .propai-market-open {
        border-radius: 10px;
        min-height: 40px;
        font-weight: 800;
        box-shadow: none;
      }

      body.propai-mode .propai-slate-card,
      body.propai-mode .propai-upcoming-row {
        background: var(--pe-surface, #0d100d);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: none;
      }

      /* Redundant with Best Bets tab on desktop — intro scenario chips already hidden */
      body.propai-mode .propai-mobile-browse-trigger {
        display: none !important;
      }
    }

    .ai-header-panel {
      padding: 18px 18px 14px;
      background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(56, 189, 248, 0.05));
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .ai-topbar-main {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 10px;
    }

    .ai-topbar-status {
      display: flex;
      gap: 14px;
      font-size: 11px;
      color: var(--text-muted);
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .ai-topbar-status-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .ai-topbar-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--accent-green);
      box-shadow: 0 0 14px rgba(34,197,94,0.45);
    }

    .ai-topbar-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 10px;
      margin-bottom: 10px;
    }

    .ai-topbar-meta-item {
      display: grid;
      gap: 4px;
    }

    .ai-topbar-meta-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .ai-topbar-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 30px;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      background: rgba(15,23,42,0.9);
      color: var(--text-primary);
      padding: 6px 10px;
      font-size: 12px;
      font-weight: 700;
    }

    .ai-topbar-chip-green {
      border-color: rgba(34,197,94,0.55);
      color: var(--accent-green);
    }

    .ai-topbar-suggestions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .ai-topbar-suggest-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .ai-topbar-suggest-pill {
      border: none;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.85);
      color: var(--text-secondary);
      padding: 5px 10px;
      font-size: 11px;
      cursor: pointer;
    }

    .ai-title-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .ai-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.2px;
    }

    .ai-subtitle {
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.5;
      max-width: 720px;
    }

    .ai-method-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
      gap: 8px;
      margin-top: 14px;
    }

    .ai-method-chip {
      background: rgba(255,255,255,0.045);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px;
      padding: 8px 10px;
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 700;
    }

    .ai-quick-prompts {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 14px 18px 4px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .ai-quick-prompts::-webkit-scrollbar { display: none; }

    .ai-prompt-chip {
      flex: 0 0 auto;
      min-height: 36px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(0, 240, 160, 0.28);
      background: rgba(0, 240, 160, 0.08);
      color: var(--accent-green);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      cursor: pointer;
    }

    .ai-fast-mode-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 10px 18px 0;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      background: rgba(255,255,255,0.035);
    }
    .ai-fast-mode-copy {
      min-width: 0;
      color: var(--text-secondary);
      font-size: 11px;
      line-height: 1.45;
    }
    .ai-fast-mode-copy strong {
      color: var(--text-primary);
      font-size: 12px;
    }
    .ai-fast-toggle {
      flex: 0 0 auto;
      border: 1px solid rgba(68,136,255,0.3);
      background: rgba(68,136,255,0.12);
      color: var(--accent-blue);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
      touch-action: manipulation;
    }
    .ai-fast-toggle.active {
      color: #07110c;
      background: var(--accent-green);
      border-color: var(--accent-green);
      box-shadow: 0 0 18px rgba(0,230,118,0.24);
    }

    .ai-live-context {
      margin: 14px 18px 4px;
      display: grid;
      gap: 10px;
    }

    .ai-command-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
      gap: 12px;
      align-items: start;
      padding-right: 18px;
    }

    .ai-command-main {
      min-width: 0;
    }

    .ai-command-rail {
      position: sticky;
      top: 86px;
      display: grid;
      gap: 10px;
      align-self: start;
    }

    .ai-rail-card {
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      padding: 12px;
    }

    .ai-rail-label {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 8px;
    }

    .ai-rail-evidence > summary {
      cursor: pointer;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
    }

    .ai-live-row {
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      padding: 10px 12px;
      overflow: hidden;
    }

    .ai-live-label {
      color: var(--accent-green);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 8px;
    }

    .ai-live-ticker,
    .ai-live-games,
    .ai-live-props,
    .ai-live-signals {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .ai-live-ticker::-webkit-scrollbar,
    .ai-live-games::-webkit-scrollbar,
    .ai-live-props::-webkit-scrollbar,
    .ai-live-signals::-webkit-scrollbar { display: none; }

    .ai-live-chip,
    .ai-game-chip,
    .ai-prop-chip {
      flex: 0 0 auto;
      max-width: 340px;
      border: 1px solid rgba(0,240,160,0.16);
      background: rgba(9, 17, 32, 0.72);
      border-radius: 10px;
      padding: 9px 10px;
      color: var(--text-primary);
      font-size: 12px;
      line-height: 1.35;
    }

    .ai-live-chip {
      width: 310px;
      min-height: 126px;
      padding: 0;
      overflow: hidden;
      text-decoration: none;
      display: grid;
      grid-template-rows: 74px 1fr;
    }

    .ai-live-thumb {
      width: 100%;
      height: 74px;
      object-fit: cover;
      background: linear-gradient(135deg, rgba(0,230,118,0.14), rgba(68,136,255,0.12));
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .ai-live-chip-body {
      padding: 9px 10px 10px;
      display: grid;
      gap: 5px;
    }

    .ai-live-title {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .ai-live-summary {
      color: var(--text-muted);
      font-size: 10px;
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .ai-live-source,
    .ai-chip-meta {
      display: block;
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 4px;
    }

    .ai-prop-chip strong { color: var(--accent-green); }

    .ai-signal-chip {
      flex: 0 0 auto;
      border: 1px solid rgba(68,136,255,0.25);
      background: rgba(68,136,255,0.12);
      color: #b7d2ff;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      padding: 6px 10px;
      white-space: nowrap;
    }

    .ai-ticket-stack {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      width: 100%;
    }

    .ai-mini-ticket {
      border: 1px solid rgba(0,240,160,0.18);
      border-radius: 14px;
      background:
        linear-gradient(90deg, rgba(0,240,160,0.12) 0 5px, transparent 5px),
        linear-gradient(135deg, rgba(10,18,34,0.98), rgba(18,28,43,0.92));
      padding: 12px 12px 12px 16px;
      color: var(--text-primary);
      text-align: left;
      cursor: pointer;
      min-width: 0;
    }

    .ai-mini-ticket-top {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: start;
      margin-bottom: 10px;
    }

    .ai-mini-ticket-rank {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .ai-mini-ticket-action {
      border-radius: 999px;
      padding: 5px 8px;
      font-size: 10px;
      font-weight: 950;
      white-space: nowrap;
    }

    .ai-mini-ticket-action.bet {
      color: #06120e;
      background: var(--accent-green);
    }

    .ai-mini-ticket-action.lean {
      color: var(--accent-gold);
      background: rgba(255,184,92,0.14);
      border: 1px solid rgba(255,184,92,0.26);
    }

    .ai-mini-ticket-action.pass {
      color: var(--text-muted);
      background: rgba(255,255,255,0.07);
    }

    .ai-mini-ticket-player {
      color: var(--accent-green);
      font-size: 14px;
      font-weight: 950;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ai-mini-ticket-market {
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 850;
      line-height: 1.28;
      margin-top: 3px;
    }

    .ai-mini-ticket-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
      margin-top: 10px;
    }

    .ai-mini-ticket-metrics span {
      display: block;
      border-radius: 10px;
      background: rgba(0,0,0,0.20);
      border: 1px solid rgba(255,255,255,0.07);
      padding: 7px 6px;
      color: var(--text-secondary);
      font-size: 10px;
      font-weight: 850;
      text-align: center;
      min-width: 0;
    }

    .ai-mini-ticket-metrics b {
      display: block;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 950;
      margin-bottom: 2px;
    }

    .propai-surface {
      display: grid;
      gap: 22px;
      width: 100%;
    }

    .propai-feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
      gap: 22px;
      align-items: stretch;
    }

    .propai-detail-grid,
    .propai-support-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
      gap: 22px;
      align-items: stretch;
    }

    .propai-ticket-stage,
    .propai-market-stage,
    .propai-story-stage,
    .propai-upcoming-stage,
    .propai-browser-panel {
      overflow: hidden;
      container-type: inline-size;
    }

    .propai-ticket-stage .propai-panel,
    .propai-market-stage .propai-panel,
    .propai-story-stage .propai-panel,
    .propai-upcoming-stage .propai-panel {
      height: 100%;
    }

    .propai-featured-pick {
      display: grid;
      gap: 14px;
    }

    .propai-feature-hero {
      display: grid;
      grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
      grid-template-areas:
        "art copy"
        "confidence confidence";
      gap: 20px 24px;
      align-items: stretch;
      padding: 22px 24px;
      border-radius: 22px;
      border: 1px solid rgba(91, 255, 137, 0.24);
      background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 45%),
        linear-gradient(135deg, rgba(12, 30, 25, 0.98), rgba(7, 18, 34, 0.98));
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    }

    .propai-feature-art {
      grid-area: art;
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      min-height: 280px;
      min-width: 200px;
      aspect-ratio: 3 / 4;
      background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 48%),
        rgba(5, 8, 14, 0.98);
      display: flex;
      align-items: center;
      justify-content: center;
      isolation: isolate;
      box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.2), 0 12px 32px rgba(0, 0, 0, 0.35);
    }

    .propai-feature-art img,
    .propai-feature-art .prop-headshot-fallback,
    .propai-feature-art .prop-headshot {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
    }

    .propai-feature-badge-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .propai-feature-kicker,
    .propai-clv-pill,
    .propai-opportunity-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 28px;
      padding: 5px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .propai-feature-kicker {
      color: #b6f5c9;
      background: rgba(34, 197, 94, 0.14);
      border: 1px solid rgba(34, 197, 94, 0.32);
    }

    .propai-clv-pill {
      color: #dbfb97;
      background: rgba(163, 230, 53, 0.12);
      border: 1px solid rgba(163, 230, 53, 0.28);
    }

    .propai-feature-copy {
      grid-area: copy;
      min-width: 0;
      display: grid;
      gap: 14px;
      align-content: start;
    }

    .propai-feature-player {
      font-family: var(--font-display);
      font-size: clamp(26px, 3.2vw, 34px);
      font-weight: 800;
      line-height: 1.05;
      letter-spacing: -0.03em;
      color: #ffffff;
      text-transform: none;
    }

    .propai-feature-meta {
      font-family: var(--font-ui);
      font-size: 14px;
      color: rgba(255, 255, 255, 0.58);
      font-weight: 600;
      letter-spacing: 0.02em;
      text-transform: none;
    }

    .propai-feature-matchup {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 6px;
      min-height: 52px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(9, 20, 37, 0.78);
      border: 1px solid rgba(255,255,255,0.08);
      color: var(--text-primary);
      font-size: 15px;
      font-weight: 800;
    }

    .propai-feature-matchup-primary {
      font-size: 15px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      line-height: 1.25;
    }

    .propai-feature-matchup-detail {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      letter-spacing: 0.01em;
      line-height: 1.35;
    }

    .propai-feature-marketline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      min-height: 54px;
      padding: 14px 16px;
      border-radius: 14px;
      background: rgba(6, 18, 31, 0.88);
      border: 1px solid rgba(34, 197, 94, 0.2);
      font-family: var(--font-display);
      font-size: clamp(17px, 2vw, 22px);
      font-weight: 800;
      color: #ffffff;
      text-transform: none;
      letter-spacing: -0.02em;
    }

    .propai-feature-action-tag {
      font-family: var(--font-ui);
      color: #d8fbe4;
      background: rgba(34, 197, 94, 0.16);
      border: 1px solid rgba(34, 197, 94, 0.34);
      padding: 6px 11px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .propai-feature-action-tag--play {
      color: #d8fbe4;
      background: rgba(34, 197, 94, 0.18);
      border-color: rgba(34, 197, 94, 0.4);
    }

    .propai-feature-action-tag--watch {
      color: #fde68a;
      background: rgba(251, 191, 36, 0.12);
      border-color: rgba(251, 191, 36, 0.35);
    }

    .propai-feature-action-tag--pass,
    .propai-feature-action-tag--monitor {
      color: #cbd5e1;
      background: rgba(148, 163, 184, 0.12);
      border-color: rgba(148, 163, 184, 0.28);
    }

    .propai-feature-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
      gap: 12px;
    }

    .propai-feature-metric {
      min-width: 0;
      padding: 12px 10px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(9, 18, 34, 0.88);
      display: grid;
      gap: 6px;
      overflow: hidden;
    }

    .propai-feature-metric--compact {
      min-width: 0;
    }

    .propai-feature-metric-label {
      font-family: var(--font-ui);
      font-size: 11px;
      color: rgba(255, 255, 255, 0.55);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 700;
      line-height: 1.25;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .propai-feature-metric-value {
      font-family: var(--font-display);
      font-size: clamp(20px, 2.4vw, 26px);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
      line-height: 1.1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .propai-feature-metric-sub {
      display: block;
      margin-top: 3px;
      font-family: var(--font-ui);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.55);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .propai-feature-metric--edge {
      background: rgba(57, 255, 20, 0.14);
      border-color: rgba(57, 255, 20, 0.42);
      box-shadow: 0 0 22px rgba(57, 255, 20, 0.14);
    }
    .propai-feature-metric--edge .propai-feature-metric-label {
      color: rgba(57, 255, 20, 0.85);
    }
    .propai-feature-metric--edge .propai-feature-metric-value {
      font-size: clamp(26px, 3.2vw, 34px);
      color: #39ff14;
    }
    .propai-feature-metric--edge .propai-feature-metric-value.bad,
    .propai-feature-metric--edge .propai-feature-metric-value.is-negative {
      color: #f97373;
    }

    .propai-feature-metric--true {
      background: rgba(34, 197, 94, 0.12);
      border-color: rgba(34, 197, 94, 0.38);
    }
    .propai-feature-metric--true .propai-feature-metric-label {
      color: rgba(134, 239, 172, 0.9);
    }
    .propai-feature-metric--true .propai-feature-metric-value {
      font-size: clamp(24px, 2.8vw, 30px);
      color: #4ade80;
    }

    .propai-feature-metric--implied {
      background: rgba(167, 139, 250, 0.12);
      border-color: rgba(167, 139, 250, 0.4);
    }
    .propai-feature-metric--implied .propai-feature-metric-label {
      color: rgba(196, 181, 253, 0.9);
    }
    .propai-feature-metric--implied .propai-feature-metric-value {
      font-size: clamp(24px, 2.8vw, 30px);
      color: #c4b5fd;
    }

    .propai-feature-metric--season .propai-feature-metric-value {
      font-size: clamp(22px, 2.6vw, 28px);
      color: #ffffff;
    }

    .propai-feature-metric-value.good { color: var(--accent-green); }
    .propai-feature-metric-value.bad { color: var(--accent-red); }
    .propai-feature-metric--edge .propai-feature-metric-value.good { color: #39ff14; }
    .propai-feature-metric--true .propai-feature-metric-value.good { color: #4ade80; }
    .propai-feature-metric--implied .propai-feature-metric-value.purple { color: #c4b5fd; }
    .propai-clv-pill.is-flat {
      color: #c8d4ea;
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 255, 255, 0.12);
    }
    .propai-panel-highlight.is-negative span,
    .propai-panel-highlight span.is-negative {
      color: var(--accent-red);
    }
    .propai-feature-metric-value.purple { color: #ca92ff; }

    .propai-feature-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: nowrap;
    }

    .propai-feature-actions .propai-cta,
    .propai-feature-actions .propai-secondary-cta {
      flex: 1 1 0;
      min-width: 0;
      padding: 0 12px;
      font-size: 14px;
    }

    .propai-cta,
    .propai-secondary-cta,
    .propai-mobile-browse-trigger,
    .propai-browser-close {
      border: none;
      border-radius: 14px;
      min-height: 52px;
      padding: 0 20px;
      font-size: 15px;
      font-weight: 900;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
    }

    .propai-cta:active,
    .propai-secondary-cta:active,
    .propai-mobile-browse-trigger:active,
    .propai-browser-close:active {
      transform: scale(0.98);
    }

    .propai-cta {
      min-width: 180px;
      font-family: var(--font-display);
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #87f14a, #52d81a);
      color: #081407;
      box-shadow: 0 14px 32px rgba(82, 216, 26, 0.22);
    }

    .propai-secondary-cta {
      background: rgba(8, 18, 34, 0.88);
      color: var(--text-primary);
      border: 1px solid rgba(255,255,255,0.12);
    }

    .propai-feature-confidence {
      grid-area: confidence;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 16px;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    .propai-feature-score-duo {
      justify-content: center;
      gap: 24px 32px;
      flex-wrap: wrap;
    }

    .propai-feature-score-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      min-width: 112px;
    }

    .propai-feature-score-block--iq .propiq-container {
      width: 104px;
      min-height: 120px;
      gap: 4px;
    }

    .propai-feature-score-block--iq .propiq-number-display {
      font-size: 32px;
    }

    .propai-feature-score-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .propai-feature-score-block--iq .propai-feature-propiq-tier {
      margin-top: 2px;
    }

    .propai-feature-score-block--iq .propiq-container,
    .propai-feature-propiq-hero .propiq-container,
    .propai-market-propiq-hero {
      gap: 4px;
    }

    .propai-feature-score-block--iq .propiq-logo,
    .propai-feature-propiq-hero .propiq-logo,
    .propai-market-propiq-hero .propiq-logo {
      margin-top: 0;
    }

    .propai-confidence-ring {
      --ring-pct: 50%;
      flex: 0 0 auto;
      width: 112px;
      height: 112px;
      border-radius: 50%;
      background:
        radial-gradient(circle closest-side, rgba(7, 16, 30, 0.98) 72%, transparent 73% 100%),
        conic-gradient(#b6ff4d var(--ring-pct), rgba(255,255,255,0.08) 0);
      display: grid;
      place-items: center;
      box-shadow: inset 0 0 18px rgba(0,0,0,0.28);
    }

    .propai-confidence-ring span {
      display: grid;
      justify-items: center;
      gap: 2px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1;
    }

    .propai-confidence-ring small {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .propai-confidence-caption {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      text-align: left;
      max-width: 220px;
      line-height: 1.4;
    }

    @container (max-width: 680px) {
      .propai-feature-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
          "art"
          "copy"
          "confidence";
        padding: 18px;
      }

      .propai-feature-art {
        min-height: 220px;
        max-height: 280px;
      }

      .propai-feature-player {
        font-size: 22px;
      }

      .propai-feature-confidence.propai-feature-score-duo {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
      }

      .propai-feature-score-duo--compact .propai-feature-score-block--iq .propiq-container {
        width: 80px;
        height: 80px;
      }

      .propai-feature-score-duo--compact .propai-confidence-ring {
        width: 80px;
        height: 80px;
      }

      .propai-confidence-caption {
        max-width: none;
      }
    }

    @container (min-width: 681px) and (max-width: 920px) {
      .propai-feature-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .propai-story-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 12px;
      margin-bottom: 14px;
    }

    .propai-story-card {
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(8, 18, 34, 0.84);
    }

    .propai-story-card h4 {
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 900;
      color: var(--text-primary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .propai-story-card ul {
      margin: 0;
      padding-left: 18px;
      display: grid;
      gap: 8px;
      color: var(--text-secondary);
      font-size: 14px;
      line-height: 1.5;
    }

    .propai-story-card li::marker { color: var(--accent-green); }
    .propai-story-card.risk li::marker { color: var(--accent-orange); }

    .propai-story-prose {
      display: grid;
      gap: 14px;
      color: var(--text-secondary);
      font-size: 15px;
      line-height: 1.68;
    }

    .propai-story-prose p {
      margin: 0;
    }

    .propai-story-lede {
      color: var(--text-primary);
      font-size: 16px;
      font-weight: 650;
      line-height: 1.58;
    }

    .propai-story-kicker {
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .propai-story-plays strong,
    .propai-story-avoid strong,
    .propai-story-thesis strong {
      color: var(--text-primary);
      font-weight: 800;
    }

    .propai-story-plays {
      color: #bbf7d0;
    }

    .propai-story-avoid {
      color: #fde68a;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-story-prose {
      font-size: clamp(14px, 1.45vw, 16px);
      line-height: 1.7;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-story-lede {
      font-size: clamp(15px, 1.55vw, 17px);
    }
    .propai-story-meta {
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 8px;
      font-weight: 700;
    }

    .propai-upcoming-stage .propai-slate-list {
      display: grid;
      gap: 12px;
    }

    .propai-slate-game-row {
      cursor: pointer;
      transition: border-color 0.18s ease, background 0.18s ease;
    }

    .propai-slate-game-row:hover,
    .propai-slate-game-row.active {
      border-color: rgba(56, 189, 248, 0.34);
      background: rgba(56, 189, 248, 0.06);
    }

    .propai-slate-headline {
      grid-column: 1 / -1;
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.45;
      margin-top: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .propai-upcoming-stage .propai-upcoming-matchup {
      font-size: 15px;
      line-height: 1.35;
    }

    .propai-slate-prop-stack {
      grid-column: 1 / -1;
      display: grid;
      gap: 6px;
      margin-top: 8px;
    }

    .propai-slate-prop-chip {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      padding: 6px 10px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.03);
    }

    .propai-slate-prop-chip.muted {
      color: var(--text-muted);
      font-weight: 600;
    }

    .propai-upcoming-row {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 16, 30, 0.98));
    }

    .propai-upcoming-time {
      display: grid;
      gap: 4px;
      color: var(--text-primary);
      font-weight: 800;
      font-size: 14px;
    }

    .propai-upcoming-time small,
    .propai-upcoming-copy small {
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .propai-upcoming-copy {
      min-width: 0;
      display: grid;
      gap: 6px;
    }

    .propai-upcoming-matchup {
      font-size: 22px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1;
      letter-spacing: 0.02em;
    }

    .propai-upcoming-note {
      font-size: 13px;
      color: var(--text-secondary);
    }

    .propai-browser-panel {
      position: relative;
    }

    .propai-browser-toolbar {
      display: grid;
      gap: 12px;
    }

    .propai-browser-search {
      display: block;
      min-height: 44px;
      padding: 0;
      margin: 0;
      background: rgba(7, 18, 34, 0.9);
      border: none;
      /* iOS fix: disable expensive rendering during input */
      -webkit-appearance: none;
      -webkit-transform: translate3d(0, 0, 0);
      will-change: auto;
      contain: layout style paint;
    }

    .propai-browser-search input {
      display: block;
      width: 100%;
      min-width: 0;
      height: 44px;
      padding: 12px 14px;
      border: none;
      outline: none;
      background: transparent;
      color: var(--text-primary);
      font-size: 16px;
      -webkit-appearance: none;
      -webkit-user-select: text;
      user-select: text;
      margin: 0;
      font-family: inherit;
    }

    .propai-browser-search input::placeholder { color: var(--text-muted); }
    .propai-browser-search-icon { display: none; }

    .propai-browser-tabs {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .propai-market-tab {
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(15,23,42,0.9);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      touch-action: manipulation;
    }

    .propai-market-tab.active {
      color: var(--text-primary);
      background: rgba(34, 197, 94, 0.16);
      border-color: rgba(34, 197, 94, 0.3);
      box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.16) inset;
    }

    .propai-market-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }

    .propai-section-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 4px 0 2px;
    }

    .propai-section-tab {
      min-height: 42px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    }

    .propai-section-tab:hover {
      color: var(--text-primary);
      border-color: rgba(34, 197, 94, 0.24);
      background: rgba(34, 197, 94, 0.08);
    }

    .propai-section-tab.active {
      color: #ecfff3;
      border-color: rgba(34, 197, 94, 0.42);
      background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(56, 189, 248, 0.12));
      box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18), 0 10px 24px rgba(34, 197, 94, 0.12);
    }

    body.propai-mode [data-propai-section] {
      display: none;
    }

    body.propai-mode [data-propai-section].propai-section-active {
      display: block;
    }

    .propai-markets-page-wrap {
      width: 100%;
      max-width: none;
      container-type: inline-size;
    }

    .propai-markets-page {
      padding: 20px 22px 28px;
      border-radius: 24px;
    }

    body.markets-mode #filterSection,
    body.markets-mode #sortBar,
    body.markets-mode #propiqGradingGuide,
    body.markets-mode .live-games {
      display: none !important;
    }

    body.markets-mode .site-shell-content {
      gap: 12px;
      width: 100%;
    }

    body.markets-mode .app-layout {
      width: 100% !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    body.markets-mode .main-content {
      width: 100%;
      max-width: none;
    }

    body.markets-mode .site-command-bar {
      width: 100%;
    }

    body.markets-mode .site-summary-strip {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    }

    body.markets-mode #marketsContainer {
      display: block !important;
      width: 100%;
      max-width: none !important;
      margin: 0 !important;
      padding: 0 0 48px !important;
      box-sizing: border-box;
    }

    body.markets-mode .propai-markets-page {
      width: 100%;
      max-width: none;
      box-sizing: border-box;
      padding: 22px 24px 30px;
      border: 1px solid rgba(255,255,255,0.08);
      background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(6, 13, 25, 0.98));
      box-shadow: var(--shadow-lg);
    }

    @media (min-width: 1100px) {
      body.markets-mode .propai-browser-toolbar {
        grid-template-columns: minmax(0, 1.05fr) minmax(260px, 340px) minmax(0, 1.35fr);
        align-items: end;
        gap: 18px 22px;
      }
    }

    @media (min-width: 1400px) {
      body.markets-mode .app-layout {
        display: flex !important;
        flex-direction: column !important;
      }
    }

    @container (min-width: 1200px) {
      body.markets-mode .propai-market-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      body.markets-mode .propai-market-header-row {
        display: none !important;
      }
    }

    .propai-browser-toolbar {
      display: grid;
      gap: 16px;
    }

    .propai-board-meta {
      display: grid;
      gap: 8px;
    }

    .propai-board-meta-label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(226, 232, 240, 0.62);
    }

    .propai-league-tabs,
    .propai-browser-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .propai-league-tab {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
      touch-action: manipulation;
    }

    .propai-league-tab:hover {
      color: var(--text-primary);
      border-color: rgba(56, 189, 248, 0.28);
      background: rgba(56, 189, 248, 0.08);
    }

    .propai-league-tab.active {
      color: #eff6ff;
      border-color: rgba(56, 189, 248, 0.42);
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(34, 197, 94, 0.12));
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16);
    }

    .propai-market-tab {
      min-height: 36px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.03);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
      touch-action: manipulation;
    }

    .propai-market-tab.active {
      color: #ecfff3;
      border-color: rgba(34, 197, 94, 0.34);
      background: rgba(34, 197, 94, 0.14);
    }

    #marketsCountMeta {
      margin-top: 6px;
      font-size: 12px;
      color: var(--text-muted);
      font-weight: 700;
    }

    body.markets-mode .propai-panel-title {
      font-size: clamp(17px, 2vw, 20px);
    }

    body.markets-mode .propai-panel-subtitle,
    body.markets-mode #marketsCountMeta {
      font-size: clamp(13px, 1.5vw, 15px);
      line-height: 1.4;
    }

    body.markets-mode .propai-market-list {
      display: grid;
      gap: 12px;
      margin-top: 18px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      min-width: 0;
      overflow-anchor: none;
    }

    body.markets-mode #marketsBrowserList.markets-list-filter-tx {
      /* Never paint-contain the live list — iOS Safari keeps stale row heights and deck actions overlap the next card. */
      contain: none;
    }

    body.markets-mode.markets-game-filter-tx .propai-market-row--deck {
      content-visibility: visible !important;
      contain-intrinsic-size: none !important;
      contain: none !important;
    }

    /* iPhone/tablet: deck rows must participate in normal block flow — CV/intrinsic-size caused ghost-card overlap. */
    @media (max-width: 1366px) {
      body.markets-mode .propai-market-row--deck {
        content-visibility: visible !important;
        contain-intrinsic-size: none !important;
        contain: none !important;
        overflow: visible;
        isolation: auto;
      }

      body.markets-mode #marketsBrowserList,
      body.markets-mode .propai-market-list {
        contain: none !important;
        overflow-anchor: none;
      }
    }

    /* Dim + block feed when PropIQ guide or markets search/filters are expanded. */
    body.markets-mode.markets-ui-mask #marketsUiBackdrop {
      opacity: 1;
      pointer-events: auto;
    }

    body.markets-mode.markets-ui-mask #marketsBrowserList {
      pointer-events: none;
    }

    body.markets-mode.markets-ui-mask .propai-browser-toolbar,
    body.markets-mode.markets-ui-mask .propiq-grading-guide {
      position: relative;
      z-index: 46;
    }

    .markets-ui-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.52);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease;
      z-index: 45;
    }

    body.site-mobile-active.markets-mode .markets-ui-backdrop {
      bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom));
    }

    body.markets-mode #marketsBrowserList.markets-list-filter-tx {
      overflow-anchor: none;
    }

    .propai-market-header-row {
      display: grid;
      grid-template-columns: minmax(0, 1.6fr) repeat(6, minmax(52px, 1fr)) minmax(64px, auto) minmax(40px, auto);
      gap: 12px 14px;
      padding: 0 20px 8px;
      position: sticky;
      top: 0;
      z-index: 2;
      background: rgba(26, 29, 46, 0.98);
    }

    .propai-market-header-cell {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      text-align: right;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .propai-market-header-row .propai-market-header-cell:first-child {
      text-align: left;
    }

    .propai-market-header-actions {
      grid-column: span 2;
      text-align: center;
    }

    @media (max-width: 1400px) {
      .propai-market-header-row,
      body.markets-mode .propai-market-row {
        grid-template-columns:
          minmax(0, 1.35fr)
          minmax(58px, 0.85fr)
          minmax(58px, 0.85fr)
          minmax(72px, 1fr)
          minmax(58px, 0.9fr)
          minmax(64px, auto)
          minmax(40px, auto);
      }

      .propai-market-header-row .propai-market-header-cell:nth-child(5),
      .propai-market-header-row .propai-market-header-cell:nth-child(6),
      body.markets-mode .propai-market-row > .propai-market-cell:nth-child(5),
      body.markets-mode .propai-market-row > .propai-market-cell:nth-child(6) {
        display: none;
      }
    }

    @media (max-width: 1366px) {
      body.markets-mode .propai-market-header-row {
        display: none !important;
      }
    }

    body.markets-mode .propai-market-row:not(.propai-market-row--deck) {
      width: 100%;
      min-width: 0;
      grid-template-columns: minmax(0, 1.6fr) repeat(6, minmax(52px, 1fr)) minmax(64px, auto) minmax(40px, auto);
      gap: 12px 14px;
      padding: 18px 20px;
      min-height: 92px;
      box-sizing: border-box;
    }

    body.markets-mode .propai-market-row--deck {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      /* Skip offscreen paint work while flinging the markets list. */
      content-visibility: auto;
      contain-intrinsic-size: auto 240px;
    }

    @media (max-width: 1366px) {
      body.markets-mode .propai-league-tabs,
      body.markets-mode .propai-browser-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        max-width: 100%;
        width: 100%;
      }

      body.markets-mode .propai-league-tab,
      body.markets-mode .propai-market-tab {
        flex: 0 0 auto;
        white-space: nowrap;
      }

      body.markets-mode .propai-market-row.propai-market-row--deck {
        display: flex;
        grid-template-areas: none;
        grid-template-columns: unset;
        gap: 0;
        padding: 0;
        min-height: 0;
      }

      body.markets-mode .propai-market-row:not(.propai-market-row--deck) {
        display: grid;
        grid-template-areas:
          "head head"
          "hero hero"
          "probs edge"
          "odds odds"
          "actions actions";
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        padding: 14px 16px;
        min-height: 0;
      }

      body.markets-mode .propai-market-row:not(.propai-market-row--deck) > .propai-market-player {
        grid-area: head;
        min-width: 0;
        width: 100%;
      }

      body.markets-mode .propai-market-row > .propai-market-player .propai-market-sub {
        white-space: normal;
        overflow-wrap: anywhere;
      }

      body.markets-mode .propai-market-row > .propai-market-scores-duo {
        grid-area: hero;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 4px 0 8px;
      }

      body.markets-mode .propai-market-row > .propai-market-odds-callout {
        grid-area: odds;
      }

      body.markets-mode .propai-market-row > .propai-market-probs-duo {
        grid-area: probs;
      }

      body.markets-mode .propai-market-probs-duo .propai-market-cell {
        justify-items: center;
        text-align: center;
      }

      body.markets-mode .propai-market-prob-cell--implied .propai-market-cell-value {
        color: #c4b5fd;
      }

      body.markets-mode .propai-market-prob-cell--true .propai-market-cell-value {
        color: #86efac;
        font-weight: 900;
      }

      body.markets-mode .propai-market-row > .propai-market-cell:nth-child(5) {
        grid-area: edge;
      }

      body.markets-mode .propai-market-odds-callout {
        justify-items: stretch;
        text-align: left;
        min-height: 0;
        padding: 11px 12px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(34, 197, 94, 0.08));
        border: 1px solid rgba(56, 189, 248, 0.32);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }

      body.markets-mode .propai-market-odds-primary {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
      }

      body.markets-mode .propai-market-odds-num {
        font-family: 'JetBrains Mono', monospace;
        font-size: clamp(22px, 6vw, 28px);
        font-weight: 900;
        line-height: 1;
        color: #7dd3fc;
        letter-spacing: -0.02em;
      }

      body.markets-mode .propai-market-odds-book-tag {
        font-size: 12px;
        font-weight: 800;
        color: #bae6fd;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      body.markets-mode .propai-market-odds-callout .propai-market-cell-label {
        margin-top: 6px;
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      body.markets-mode .propai-market-probs-duo .propai-market-cell-value {
        font-size: 17px;
      }

      body.markets-mode .propai-market-probs-duo .propai-market-cell-label {
        font-size: 11px;
        letter-spacing: 0.06em;
      }

      body.markets-mode .propai-market-row > .propai-market-cell:nth-child(5) {
        justify-items: center;
        text-align: center;
      }

      body.markets-mode .propai-market-row > .propai-market-actions {
        grid-area: actions;
      }

      body.markets-mode .propai-market-iq-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 0;
      }

      body.markets-mode .propai-market-propiq-hero {
        width: 100px;
        height: 100px;
      }

      body.markets-mode .propai-market-propiq-hero .propiq-number-display {
        font-size: 36px;
        font-weight: 900;
      }

      body.markets-mode .propai-market-propiq-hero .propiq-badge-glow {
        width: 100px;
        height: 100px;
      }

      body.markets-mode .propai-market-scores-duo .propai-market-cell:not(.propai-market-iq-block) {
        min-width: 88px;
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(148, 163, 184, 0.1);
        border: 1px solid rgba(148, 163, 184, 0.22);
        justify-items: center;
        text-align: center;
      }

      body.markets-mode .propai-market-list .propai-market-row > .propai-market-cell:nth-child(5) {
        padding: 10px 8px;
        border-radius: 12px;
        background: rgba(56, 189, 248, 0.08);
        border: 1px solid rgba(56, 189, 248, 0.2);
        justify-items: center;
        text-align: center;
      }

      body.markets-mode .propai-market-actions .propai-market-open--compact,
      body.markets-mode .propai-market-actions .propai-market-open {
        flex: 1 1 100%;
        width: 100%;
        min-height: 42px;
        margin-top: 2px;
      }

      body.markets-mode .propai-market-propiq-hero .propiq-logo {
        font-size: 11px;
        font-weight: 900;
        margin-top: 0;
      }

      body.markets-mode .propai-market-propiq-hero .propiq-container {
        gap: 4px;
      }

      body.markets-mode .propai-market-propiq-hero .propiq-number-display {
        line-height: 1;
      }

      body.markets-mode .propai-market-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding-top: 4px;
      }

      body.markets-mode .propai-market-actions .prop-action-btn.parlay-text {
        flex: 1 1 108px;
        min-height: 40px;
        font-size: 13px;
      }

      body.markets-mode .propai-market-actions .bet-sites {
        display: flex;
        gap: 8px;
        flex: 0 0 auto;
      }

      body.markets-mode .propai-market-actions .bet-site-btn {
        min-width: 44px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      body.markets-mode .propai-market-actions .prop-action-btn,
      body.markets-mode .propai-market-actions .propai-market-open--compact,
      body.markets-mode .propai-market-actions .propai-market-watch {
        min-height: 40px;
        min-width: 40px;
      }

      body.markets-mode .propai-market-open--compact {
        padding: 0 12px;
        font-size: 12px;
        font-weight: 800;
      }

      body.markets-mode .propai-market-row--deck .propai-market-name,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-name {
        font-size: clamp(24px, 5.4vw, 30px);
        line-height: 1.12;
      }
      body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot,
      body.markets-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
      body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot-fallback,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-player .prop-headshot,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-player img.prop-headshot,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
        width: 80px;
        height: 80px;
      }

      body.markets-mode .propai-market-sub,
      .pe-home-markets-deck .propai-market-sub {
        font-size: clamp(14px, 3.4vw, 16px);
        line-height: 1.4;
        margin-top: 6px;
        white-space: normal;
        overflow-wrap: anywhere;
      }

      /* Full-width chip row under IQ — Home + Markets share the same deck layout */
      body.markets-mode .propai-market-row--deck .propai-deck-hero-row,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-hero-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-hero-row .propai-market-iq-block,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-hero-row .propai-market-iq-block {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px;
        width: auto;
        overflow: visible;
      }

      body.markets-mode .propai-market-row--deck .propai-market-badges,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-badges {
        order: 0;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 5px !important;
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
        overflow: visible;
      }

      body.markets-mode .propai-market-row--deck .propai-market-badges-primary,
      body.markets-mode .propai-market-row--deck .propai-market-badges-meta,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-badges-primary,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-badges-meta {
        display: flex;
        flex-direction: column;
        gap: 5px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-badges .prop-badge,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-badges .prop-badge {
        font-size: 11px;
        padding: 5px 9px;
        white-space: nowrap;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-stat-chips,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-stat-chips {
        width: 100%;
        flex: none;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-chip {
        display: flex !important;
        min-height: 48px;
        padding: 8px 4px;
        border-radius: 12px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip-val,
      body.markets-mode .propai-market-row--deck .propai-deck-chip--edge .propai-deck-chip-val,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-chip-val,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-chip--edge .propai-deck-chip-val {
        font-size: 13px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip-lbl,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-chip-lbl {
        font-size: 9px;
        letter-spacing: 0.04em;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-num,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-num {
        font-size: clamp(22px, 5.5vw, 26px);
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-propiq-hero {
        order: 0;
        flex: 0 0 104px;
        width: 104px;
        height: 104px;
        min-width: 104px;
        min-height: 118px;
        margin-left: 0;
        overflow: hidden; /* contain glow so it cannot bleed over badge chips */
        isolation: isolate;
        border-radius: 50%;
        position: relative;
        z-index: 1;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-badge-glow,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-propiq-hero .propiq-badge-glow {
        width: 104px;
        height: 104px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-number-display,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-propiq-hero .propiq-number-display {
        font-size: 38px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-logo,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-propiq-hero .propiq-logo {
        font-size: 12px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-actions .prop-action-btn.parlay-text,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-actions .prop-action-btn.parlay-text {
        font-size: 14px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-open--compact,
      .pe-home-markets-deck .propai-market-row--deck .propai-market-open--compact {
        font-size: 13px;
      }

      /* Home deck: keep Markets secondary chrome (spine / odds / chips) */
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-spine,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-secondary,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-odds-strip {
        display: flex !important;
      }
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-spine {
        display: block !important;
      }
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-secondary {
        display: block !important;
      }
      /* Hide Ask PropAI chat on Home cards (same as Markets) */
      .pe-home-markets-deck .propai-market-row--deck .propai-market-chat-btn {
        display: none !important;
      }
      /* Featured Pick host uses the same Markets deck card */
      .propai-featured-pick.pe-home-markets-deck,
      .propai-featured-pick .pe-home-featured-deck {
        width: 100%;
      }
      .propai-featured-pick .propai-feature-narrative {
        margin: 10px 4px 0;
      }

      body.markets-mode .propai-market-league {
        font-size: 11px;
        min-height: 24px;
        padding: 0 9px;
      }

      body.markets-mode .propai-market-scores-duo {
        gap: 12px;
      }

      body.markets-mode .propai-market-scores-duo .propai-market-cell {
        justify-items: center;
        text-align: center;
      }

      body.markets-mode .propai-market-cell {
        min-height: 48px;
        gap: 5px;
      }

      body.markets-mode .propai-market-cell-value {
        font-size: 16px;
      }

      body.markets-mode .propai-market-cell-label {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-top: 5px;
      }

      body.markets-mode .propai-iq-pill {
        min-width: 56px;
        min-height: 40px;
        font-size: 20px;
      }

      body.markets-mode .propai-live-odds-pill {
        font-size: 10px;
      }
    }

    @media (max-width: 767px) {
      body.markets-mode .propai-markets-page {
        padding: 16px 14px 24px;
        border-radius: 18px;
      }
      body.markets-mode .propai-panel-header {
        flex-direction: column;
        align-items: stretch;
      }
      body.markets-mode .propai-secondary-cta {
        width: 100%;
      }
    }

    .site-shell-nav[data-target-view="markets"].active {
      box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24), 0 0 18px rgba(56, 189, 248, 0.12);
    }

    .propai-market-row {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) repeat(6, minmax(68px, auto)) auto auto;
      gap: 12px;
      align-items: center;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(8, 16, 30, 0.9);
    }

    /* Markets deck rows — splash-aligned (same actions, updated chrome) */
    .propai-market-row--deck {
      display: flex;
      grid-template-columns: unset;
      grid-template-areas: unset;
      gap: 0;
      padding: 0;
      align-items: stretch;
      overflow: hidden;
      border-radius: 24px;
      border: 1px solid transparent;
      background:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(57, 255, 20, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(165deg, #0c1018 0%, #05080e 55%, #000000 100%);
      box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(57, 255, 20, 0.14);
      content-visibility: auto;
      contain-intrinsic-size: auto 220px;
      contain: layout style;
    }

    .propai-top-pick-card--deck {
      content-visibility: visible;
      contain-intrinsic-size: none;
    }

    .propai-deck-spine {
      width: 3px;
      flex-shrink: 0;
      background: rgba(57, 255, 20, 0.35);
    }

    .propai-market-row--deck.tier-ultimate .propai-deck-spine,
    .propai-top-pick-card--deck.tier-ultimate .propai-deck-spine {
      background: linear-gradient(180deg, #fbbf24, #f59e0b);
    }

    .propai-market-row--deck.tier-prime .propai-deck-spine,
    .propai-top-pick-card--deck.tier-prime .propai-deck-spine {
      background: linear-gradient(180deg, #a78bfa, #818cf8);
    }

    .propai-market-row--deck.tier-strong .propai-deck-spine,
    .propai-top-pick-card--deck.tier-strong .propai-deck-spine {
      background: linear-gradient(180deg, #39ff14, #22c55e);
    }

    .propai-market-row--deck.tier-solid .propai-deck-spine,
    .propai-top-pick-card--deck.tier-solid .propai-deck-spine,
    .propai-market-row--deck.tier-value .propai-deck-spine,
    .propai-top-pick-card--deck.tier-value .propai-deck-spine {
      background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    }

    .propai-market-row--deck.tier-ultimate {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
        linear-gradient(165deg, #17140f 0%, #0c0a08 100%);
      box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(251, 191, 36, 0.28);
    }
    .propai-market-row--deck.tier-prime {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(167, 139, 250, 0.16), transparent 55%),
        linear-gradient(165deg, #13121a 0%, #0a0910 100%);
      box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(167, 139, 250, 0.28);
    }
    .propai-market-row--deck.tier-strong {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(57, 255, 20, 0.14), transparent 55%),
        linear-gradient(165deg, #0f1612 0%, #080c0a 100%);
      box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(57, 255, 20, 0.24);
    }
    .propai-market-row--deck.tier-solid,
    .propai-market-row--deck.tier-value {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
        linear-gradient(165deg, #0e141a 0%, #080a0e 100%);
      box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(56, 189, 248, 0.24);
    }

    .propai-deck-inner {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 0;
    }

    .propai-deck-primary {
      padding: 16px 16px 12px;
    }

    .propai-deck-secondary {
      padding: 0 16px 12px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(0, 0, 0, 0.16);
      padding-top: 12px;
    }

    .propai-market-row--deck .propai-market-player {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      margin-bottom: 12px;
    }

    .propai-market-row--deck .propai-market-player .prop-headshot,
    .propai-market-row--deck .propai-market-player img.prop-headshot,
    .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
      width: 76px;
      height: 76px;
      border-radius: 18px;
      border: 2px solid rgba(57, 255, 20, 0.28);
      box-shadow: 0 0 18px rgba(57, 255, 20, 0.14);
      object-fit: cover;
      object-position: center top;
      flex-shrink: 0;
    }

    .propai-market-player-copy {
      min-width: 0;
      flex: 1;
    }

    .propai-market-row--deck .propai-market-name {
      font-family: var(--font-display);
      font-size: clamp(24px, 5.4vw, 31px);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
      line-height: 1.12;
    }

    .propai-market-row--deck .propai-market-sub {
      margin-top: 5px;
      font-family: var(--font-ui);
      font-size: 14px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.58);
      line-height: 1.35;
    }

    @media (min-width: 768px) {
      .propai-market-row--deck .propai-market-player .prop-headshot,
      .propai-market-row--deck .propai-market-player img.prop-headshot,
      .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
        width: 88px;
        height: 88px;
      }
      .propai-market-row--deck .propai-market-name {
        font-size: 32px;
      }
      .propai-market-row--deck .propai-market-sub {
        font-size: 15px;
      }
    }

    .propai-market-row--deck .propai-market-league {
      display: inline-flex;
      align-items: center;
      margin-right: 6px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #39ff14;
      background: rgba(57, 255, 20, 0.12);
      border: 1px solid rgba(57, 255, 20, 0.28);
      vertical-align: middle;
    }

    .propai-deck-hero-row {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
    }

    .propai-market-conviction {
      margin-top: 6px;
      text-align: center;
    }

    .propai-market-badges {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 6px;
      min-width: 0;
      flex: 1;
    }

    .propai-market-badges-primary,
    .propai-market-badges-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    .propai-market-badges .prop-badge {
      margin: 0;
      line-height: 1.15;
    }

    .propai-sgp-badge {
      background: rgba(107, 70, 193, 0.22);
      color: #d4c4ff;
      border: 1px solid rgba(167, 139, 250, 0.45);
      font-weight: 700;
      font-size: 10px;
      letter-spacing: 0.03em;
    }

    .prop-headshot--team-fallback {
      object-fit: contain;
      padding: 6px;
      background: rgba(255, 255, 255, 0.04);
    }
    .propai-deck-hero-row .propai-market-iq-block {
      flex: 0 0 auto;
    }

    .propai-deck-stat-chips {
      flex: 1;
      min-width: 0;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .propai-deck-chip {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      padding: 8px 6px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      min-width: 0;
      min-height: 52px;
      box-sizing: border-box;
      overflow: hidden;
    }

    .propai-deck-chip-val {
      font-family: var(--font-display);
      font-size: clamp(13px, 2.1vw, 18px);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: #ffffff;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .propai-deck-chip-lbl {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
      line-height: 1.2;
      max-width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .propai-deck-chip--conf .propai-deck-chip-val { color: #e2e8f0; }
    .propai-deck-chip--implied .propai-deck-chip-val { color: #c4b5fd; }
    .propai-deck-chip--true .propai-deck-chip-val { color: #86efac; }
    .propai-deck-chip--edge {
      background: rgba(57, 255, 20, 0.12);
      border-color: rgba(57, 255, 20, 0.32);
      box-shadow: 0 0 18px rgba(57, 255, 20, 0.1);
    }
    .propai-deck-chip--edge .propai-deck-chip-val {
      font-size: clamp(13px, 2.2vw, 18px);
      color: #39ff14;
    }
    .propai-deck-chip--edge.bad {
      background: rgba(249, 115, 115, 0.1);
      border-color: rgba(249, 115, 115, 0.28);
      box-shadow: none;
    }
    .propai-deck-chip--edge.bad .propai-deck-chip-val { color: #f97373; }
    .propai-deck-chip--edge.weak .propai-deck-chip-val { opacity: 0.55; }
    .propai-deck-chip--edge.weak .propai-deck-chip-lbl::after {
      content: ' · thin';
      font-size: 8px;
      letter-spacing: 0.04em;
      opacity: 0.85;
    }

    .propai-deck-odds-strip {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px 10px;
      padding: 10px 12px;
      border-radius: 14px;
      background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(56, 189, 248, 0.1) 100%);
      border: 1px solid rgba(56, 189, 248, 0.22);
      min-height: 0;
      justify-items: start;
    }

    .propai-deck-odds-strip .propai-market-odds-num {
      font-family: var(--font-display), 'JetBrains Mono', monospace;
      font-size: clamp(20px, 4.8vw, 26px);
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #38bdf8;
      line-height: 1.1;
    }

    .propai-deck-odds-strip .propai-market-odds-book-tag {
      font-size: clamp(11px, 1.4vw, 13px);
      font-weight: 800;
      color: #bae6fd;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .propai-deck-odds-caption {
      margin-left: auto;
      font-size: clamp(10px, 1.2vw, 12px);
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(147, 197, 253, 0.85);
    }

    .propai-market-row--deck .propai-market-propiq-hero {
      width: 88px;
      height: 88px;
    }

    .propai-market-row--deck .propai-market-propiq-hero .propiq-number-display {
      font-family: var(--font-display);
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -0.03em;
    }

    .propai-market-row--deck .propai-market-propiq-hero .propiq-badge-glow {
      width: 88px;
      height: 88px;
    }

    .propai-deck-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      width: 100%;
      padding: 12px 16px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
    }

    /* Markets cards: no Ask PropAI chat affordance (use PropAI tab). */
    body.markets-mode .propai-market-row--deck .propai-market-chat-btn {
      display: none !important;
    }

    .propai-deck-actions .prop-action-btn.parlay-text,
    .propai-deck-actions .prop-action-btn.prop-cta-primary {
      flex: 1 1 108px;
      min-height: 42px;
    }

    .propai-deck-actions .bet-sites {
      display: flex;
      gap: 8px;
      flex: 0 0 auto;
    }

    .propai-deck-actions .propai-market-open--compact,
    .propai-deck-actions .propai-market-open {
      flex: 1 1 100%;
      width: 100%;
      min-height: 42px;
      margin-top: 2px;
      border-radius: 12px;
      background: rgba(57, 255, 20, 0.12);
      border: 1px solid rgba(57, 255, 20, 0.32);
      color: #ecfdf5;
      font-family: var(--font-display);
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .propai-deck-actions .propai-market-open--compact:active,
    .propai-deck-actions .propai-market-open:active {
      transform: scale(0.98);
    }

    /* Phone Markets: tidy action chips into two full-width rows (no orphan icons). */
    @media (max-width: 1366px) {
      /* Drop outer row padding — deck-inner already pads; double pad crushed the CTA strip. */
      body.markets-mode .propai-market-row--deck {
        padding: 0 !important;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px 12px 0 !important;
      }

      /* Stat chips were squeezed to ~18px slivers beside the IQ gauge — wrap full width. */
      body.markets-mode .propai-market-row--deck .propai-deck-hero-row {
        flex-wrap: wrap !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-stat-chips {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
      }

      /* Hide chat on Markets cards — Ask PropAI lives in the PropAI tab. */
      body.markets-mode .propai-market-row--deck .propai-market-chat-btn {
        display: none !important;
      }

      /*
       * Mobile Markets CTAs:
       *  1) FD | DK | analysis | watch
       *  2) Parlay (full width)
       *  3) Detail (full width)
       */
      body.markets-mode .propai-market-row--deck .propai-deck-actions,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        row-gap: 10px;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 12px 14px;
        align-items: stretch;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .bet-sites,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .bet-sites {
        grid-column: 1 / 3;
        grid-row: 1;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        flex: none !important;
        width: 100%;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .bet-site-btn,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .bet-site-btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-analysis-btn,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .propai-market-analysis-btn {
        grid-column: 3;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-watch,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .propai-market-watch {
        grid-column: 4;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0;
        flex: none !important;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .prop-action-btn.parlay-text,
      body.markets-mode .propai-market-row--deck .propai-deck-actions .prop-cta-primary,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .prop-action-btn.parlay-text,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .prop-cta-primary {
        grid-column: 1 / -1;
        grid-row: 2;
        flex: none !important;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-top: 4px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-open--compact,
      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-open,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .propai-market-open--compact,
      .pe-home-markets-deck .propai-market-row--deck .propai-deck-actions .propai-market-open {
        grid-column: 1 / -1;
        grid-row: 3;
        flex: none !important;
        width: 100%;
        margin: 4px 0 0 !important;
        min-height: 44px;
      }
    }

    .propai-home-market-row .propai-deck-chip--implied,
    .propai-home-market-row .propai-deck-chip--true,
    .propai-home-market-row .propai-deck-odds-strip {
      display: none !important;
    }

    .propai-home-market-row .propai-deck-stat-chips {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .propai-home-market-row .propai-deck-primary {
      padding-bottom: 10px;
    }

    .propai-home-market-row .propai-deck-secondary {
      display: none;
    }

    .propai-home-market-row .propai-deck-actions .propai-market-analysis-btn,
    .propai-home-market-row .propai-deck-actions .propai-market-watch {
      display: none;
    }

    .propai-top-pick-card--deck {
      display: flex;
      flex: none;
      width: 100%;
      min-width: 0;
      padding: 0;
      overflow: hidden;
      text-align: left;
      grid-template-columns: unset;
      align-items: stretch;
    }

    .propai-deck-spine--mini {
      width: 3px;
    }

    .propai-top-pick-deck-inner {
      flex: 1;
      min-width: 0;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr) auto;
      grid-template-rows: auto auto auto;
      gap: 8px 10px;
      padding: 12px 12px 12px 10px;
      align-items: start;
    }

    .propai-top-pick-card--deck .propai-top-pick-thumb {
      grid-row: 1 / span 2;
      width: 48px;
      height: 48px;
    }

    .propai-top-pick-card--deck .propai-top-pick-copy {
      grid-column: 2;
      grid-row: 1;
      min-width: 0;
    }

    .propai-top-pick-card--deck .propai-top-pick-copy strong {
      display: block;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.25;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      word-break: break-word;
    }

    .propai-top-pick-card--deck .propai-top-pick-copy .propai-top-pick-line {
      display: block;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.35;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      word-break: break-word;
    }

    .propai-top-pick-card--deck .propai-top-pick-copy .propai-top-pick-opp {
      display: block;
      font-size: 10px;
      color: var(--text-secondary);
      margin-top: 2px;
    }

    .propai-top-pick-deck-iq {
      grid-column: 3;
      grid-row: 1 / span 3;
      align-self: center;
      justify-self: end;
    }

    .propai-top-pick-propiq {
      width: 72px;
      min-height: 88px;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }

    .propai-top-pick-propiq .propiq-badge-glow {
      width: 72px;
      height: 72px;
    }

    .propai-top-pick-propiq .propiq-number-display {
      font-size: 24px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -1px;
    }

    .propai-top-pick-propiq .propiq-logo {
      font-size: 9px;
      font-weight: 900;
      margin-top: 0;
      letter-spacing: 1.2px;
    }

    .propai-top-pick-deck-chips {
      grid-column: 1 / span 2;
      grid-row: 3;
      min-width: 0;
    }

    .propai-top-pick-deck-chips .propai-deck-stat-chips {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      width: 100%;
    }

    .propai-top-pick-deck-chips .propai-deck-chip {
      min-height: 46px;
      padding: 6px 4px;
    }

    .propai-top-pick-deck-chips .propai-deck-chip-val {
      font-size: 16px;
    }

    .propai-top-pick-deck-chips .propai-deck-chip-lbl {
      font-size: 11px;
    }

    .propai-deck-chip-sm {
      font-size: 11px;
      font-weight: 800;
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(15, 23, 42, 0.8);
    }

    .propai-deck-chip-sm.propai-deck-chip--conf { color: #e2e8f0; }
    .propai-deck-chip-sm.propai-deck-chip--edge { color: #7dd3fc; }
    .propai-deck-chip-sm.propai-deck-chip--edge.bad { color: #fbbf24; }

    @media (max-width: 1366px) {
      .propai-top-picks-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .propai-top-pick-card--deck {
        flex: none;
        min-width: 0;
        width: 100%;
      }

      .propai-top-pick-deck-inner {
        grid-template-columns: 48px minmax(0, 1fr) 76px;
      }

      .propai-top-pick-propiq {
        width: 76px;
        min-height: 92px;
      }

      .propai-top-pick-propiq .propiq-badge-glow {
        width: 76px;
        height: 76px;
      }

      .propai-top-pick-propiq .propiq-number-display {
        font-size: 26px;
      }

      .propai-top-pick-deck-chips .propai-deck-stat-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1367px) {
      .propai-top-pick-card--deck {
        flex: 0 0 auto;
        min-width: 300px;
        max-width: 100%;
      }
    }

    @media (min-width: 1367px) {
      body.markets-mode .propai-market-row--deck {
        display: flex;
        min-height: 92px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 16px;
        padding: 16px 18px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-player {
        flex: 1 1 220px;
        min-width: 200px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-hero-row {
        flex: 0 1 auto;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-stat-chips {
        grid-template-columns: repeat(4, minmax(84px, 1fr));
        gap: 10px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip-val {
        font-size: 21px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip-lbl {
        font-size: 12px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-chip {
        min-height: 62px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-name {
        font-size: 20px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-sub {
        font-size: 15px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-league {
        font-size: 12px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-num {
        font-size: 24px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-book-tag,
      body.markets-mode .propai-market-row--deck .propai-deck-odds-caption {
        font-size: 12px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero {
        width: 116px;
        height: 116px;
        min-height: 128px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-badge-glow {
        width: 116px;
        height: 116px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-number-display {
        font-size: 42px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-propiq-hero .propiq-logo {
        font-size: 13px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-actions .prop-action-btn.parlay-text {
        font-size: 15px;
      }

      body.markets-mode .propai-market-row--deck .propai-market-open--compact {
        font-size: 14px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-odds-strip {
        flex: 0 1 auto;
        min-width: 160px;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions {
        flex: 1 1 100%;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
      }

      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-open--compact,
      body.markets-mode .propai-market-row--deck .propai-deck-actions .propai-market-open {
        flex: 0 1 auto;
        width: auto;
        margin-top: 0;
      }
    }

    .propai-market-player {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .propai-market-player img,
    .propai-market-player .prop-headshot-wrap,
    .propai-market-player .prop-headshot,
    .propai-market-player .prop-headshot-fallback {
      width: 76px;
      height: 76px;
      border-radius: 16px;
      object-fit: cover;
      flex: 0 0 auto;
    }

    @media (max-width: 900px) {
      .propai-market-player img,
      .propai-market-player .prop-headshot-wrap,
      .propai-market-player .prop-headshot,
      .propai-market-player .prop-headshot-fallback {
        width: 64px;
        height: 64px;
      }
    }

    .propai-market-cell-value.purple { color: #ca92ff; }

    .propai-market-name {
      font-size: clamp(17px, 1.9vw, 20px);
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.2;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .propai-market-league {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 9px;
      border-radius: 999px;
      border: 1px solid rgba(56, 189, 248, 0.24);
      background: rgba(56, 189, 248, 0.1);
      color: #bfdbfe;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .propai-market-sub,
    .propai-market-cell-label {
      font-size: clamp(13px, 1.5vw, 15px);
      color: var(--text-muted);
      margin-top: 4px;
      line-height: 1.35;
    }

    .propai-market-cell {
      display: grid;
      gap: 4px;
      justify-items: end;
      align-items: end;
      min-width: 0;
      min-height: 44px;
    }

    .propai-live-odds-pill {
      display: inline-block;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #86efac;
      border: 1px solid rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.12);
      vertical-align: middle;
    }

    body.markets-mode .propai-market-cell-value,
    body.markets-mode .propai-market-cell-label {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 100%;
    }

    .propai-market-cell-value {
      font-size: 15px;
      font-weight: 900;
      color: var(--text-primary);
      white-space: nowrap;
    }

    .propai-market-cell-value.good { color: var(--accent-green); }
    .propai-market-cell-value.bad { color: var(--accent-red); }

    .propai-iq-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 68px;
      min-height: 44px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 22px;
      font-weight: 900;
      letter-spacing: 0.02em;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-primary);
    }

    .propai-iq-pill.iq-ultimate {
      color: #fff6bf;
      border-color: rgba(251, 191, 36, 0.45);
      background: rgba(251, 191, 36, 0.16);
      box-shadow: 0 0 24px rgba(251, 191, 36, 0.28), 0 0 8px rgba(251, 191, 36, 0.18);
    }

    .propai-iq-pill.iq-prime {
      color: #d8c4ff;
      border-color: rgba(179, 102, 255, 0.38);
      background: rgba(179, 102, 255, 0.14);
      box-shadow: 0 0 24px rgba(179, 102, 255, 0.24), 0 0 8px rgba(179, 102, 255, 0.16);
    }

    .propai-iq-pill.iq-strong {
      color: #c8ffe0;
      border-color: rgba(34, 197, 94, 0.38);
      background: rgba(34, 197, 94, 0.14);
      box-shadow: 0 0 24px rgba(34, 197, 94, 0.24), 0 0 8px rgba(34, 197, 94, 0.16);
    }

    .propai-iq-pill.iq-value {
      color: #bfe7ff;
      border-color: rgba(56, 189, 248, 0.34);
      background: rgba(56, 189, 248, 0.12);
      box-shadow: 0 0 24px rgba(56, 189, 248, 0.22), 0 0 8px rgba(56, 189, 248, 0.14);
    }

    .propai-iq-pill.iq-pass,
    .propai-iq-pill.iq-neutral {
      color: var(--text-muted);
    }

    .propai-home-markets-cta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      padding: 18px 20px;
      border-radius: 18px;
      border: 1px dashed rgba(34, 197, 94, 0.28);
      background: rgba(34, 197, 94, 0.06);
    }

    .propai-home-markets-cta + .propai-market-list .propai-iq-pill {
      min-width: 48px;
      min-height: 32px;
      padding: 0 8px;
      font-size: 15px;
      box-shadow: none;
    }

    .propai-home-markets-cta + .propai-market-list .propai-market-row {
      padding: 16px 18px;
      gap: 14px 16px;
    }

    body.markets-mode .propai-iq-pill {
      min-width: 52px;
      min-height: 36px;
      font-size: 18px;
      box-shadow: none;
    }

    body.markets-mode .propai-market-odds-callout .propai-market-odds-num {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 900;
      color: #7dd3fc;
    }

    @media (min-width: 1367px) {
      body.markets-mode .propai-market-actions {
        grid-column: 8 / -1;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 6px;
        padding-top: 0;
      }

      body.markets-mode .propai-market-row:not(.propai-market-row--deck) .propai-market-propiq-hero {
        width: 72px;
        height: 72px;
      }

      body.markets-mode .propai-market-row:not(.propai-market-row--deck) .propai-market-propiq-hero .propiq-number-display {
        font-size: 28px;
      }

      body.markets-mode .propai-market-row:not(.propai-market-row--deck) .propai-market-propiq-hero .propiq-badge-glow {
        width: 72px;
        height: 72px;
      }

      body.markets-mode .propai-market-odds-callout {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
      }

      body.markets-mode .propai-market-odds-callout .propai-market-odds-num {
        font-size: 15px;
      }

      body.markets-mode .propai-market-odds-book-tag {
        font-size: 10px;
        font-weight: 800;
        color: #93c5fd;
        text-transform: uppercase;
      }

      body.markets-mode .propai-market-odds-callout .propai-market-cell-label {
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 11px;
      }
    }

    .propai-market-cell {
      font-variant-numeric: tabular-nums;
    }

    .propai-slate-teamrow {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 6px 10px;
    }

    .propai-slate-prop-chip {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px 10px;
    }

    .propai-slate-prop-chip .propai-iq-pill {
      min-width: auto;
      min-height: 0;
      padding: 2px 8px;
      font-size: 13px;
      box-shadow: none;
    }

    .propai-market-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .propai-market-analysis-btn {
      background: rgba(93, 173, 226, 0.12);
      border-color: rgba(93, 173, 226, 0.32);
      color: var(--accent-blue);
    }

    .propai-market-open,
    .propai-market-watch {
      min-height: 40px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(17, 28, 52, 0.95);
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .propai-market-open {
      background: rgba(34, 197, 94, 0.14);
      border-color: rgba(34, 197, 94, 0.28);
      color: #cdf8da;
    }

    .propai-market-watch.watched {
      color: var(--accent-green);
      border-color: rgba(34, 197, 94, 0.32);
    }

    .site-home-dashboard {
      display: grid;
      gap: 20px;
      width: 100%;
      max-width: 100%;
    }

    /* Two-column desktop layout: left = sticky analysis, right = full slate */
    .site-home-dashboard--two-col {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: clamp(28px, 3vw, 40px);
      align-items: start;
    }

    .site-home-dashboard--two-col > .pe-home-mode-row {
      grid-column: 1 / -1;
    }

    /* Tier B: lanetrax-style mode tiles (nav spacing untouched) */
    .pe-mode-section {
      margin: 0 0 4px;
    }

    .pe-section-heading {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin: 0 0 10px;
      padding: 0 2px;
    }

    .pe-section-kicker {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: rgba(57, 255, 20, 0.85);
    }

    .pe-section-title {
      margin: 0;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
      line-height: 1.1;
    }

    .pe-mode-tiles {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .pe-mode-tile {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      min-height: 88px;
      padding: 14px 12px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 22px;
      text-align: left;
      cursor: pointer;
      color: #fff;
      font-family: inherit;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
      will-change: transform;
    }

    .pe-mode-tile:active {
      transform: scale(0.98);
      border-color: rgba(255, 255, 255, 0.22);
    }

    @media (hover: hover) {
      .pe-mode-tile:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.2);
      }
      .pe-mode-tile:hover:active {
        transform: scale(0.98);
      }
    }

    .pe-mode-tile--bets {
      background:
        radial-gradient(ellipse 90% 80% at 10% 0%, rgba(57, 255, 20, 0.28), transparent 55%),
        linear-gradient(145deg, #0f3d24 0%, #0a1a12 55%, #07140e 100%);
    }

    .pe-mode-tile--markets {
      background:
        radial-gradient(ellipse 90% 80% at 10% 0%, rgba(56, 189, 248, 0.28), transparent 55%),
        linear-gradient(145deg, #0c2a3a 0%, #0a1520 55%, #070d14 100%);
    }

    .pe-mode-tile--propai {
      background:
        radial-gradient(ellipse 90% 80% at 10% 0%, rgba(167, 139, 250, 0.28), transparent 55%),
        linear-gradient(145deg, #24183a 0%, #14101f 55%, #0c0a14 100%);
    }

    .pe-mode-tile-icon {
      flex: 0 0 auto;
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.1);
      font-size: 13px;
      line-height: 1;
    }

    .pe-mode-tile-copy {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .pe-mode-tile-kicker {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.62);
    }

    .pe-mode-tile-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.05;
      color: #ffffff;
    }

    .pe-mode-tile-desc {
      font-family: var(--font-ui);
      font-size: 12px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.72);
      line-height: 1.25;
    }

    @media (max-width: 479px) {
      .pe-mode-tiles {
        grid-template-columns: 1fr;
        gap: 8px;
      }
      .pe-mode-tile {
        min-height: 72px;
        padding: 12px 14px;
        align-items: center;
      }
    }

    .site-mobile-home-dashboard {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .site-home-left-col {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 0;
    }

    .site-home-right-col {
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-width: 0;
    }

    /* Keep each column self-contained — featured pick must not bleed into slate */
    @media (min-width: 1200px) {
      .site-home-dashboard--two-col .site-home-left-col,
      .site-home-dashboard--two-col .site-home-right-col {
        min-width: 0;
        max-width: 100%;
      }

      .site-home-dashboard--two-col .site-home-featured-full {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
      }

      .site-home-dashboard--two-col .site-home-featured-full .propai-feature-hero {
        grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) !important;
        grid-template-areas:
          "art copy"
          "confidence confidence" !important;
        gap: 14px 16px !important;
        padding: 14px 16px !important;
        align-items: start !important;
      }

      .site-home-dashboard--two-col .site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(16px, 2vw, 28px) !important;
        padding: 8px 0 0;
      }

      .site-home-dashboard--two-col .propai-upcoming-stage {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
      }
    }

    /* Compact featured pick card in two-column desktop context.
       Use !important to beat the .site-home-featured-full @media rules
       that kick in at 1024px and 1400px. */
    .site-home-left-col .site-home-featured-full .propai-feature-hero,
    .site-home-left-col .propai-feature-hero {
      grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) !important;
      grid-template-areas: "art copy" "confidence confidence" !important;
      gap: 16px 18px !important;
      padding: 16px 18px !important;
      align-items: stretch !important;
    }

    .site-home-left-col .site-home-featured-full .propai-feature-art,
    .site-home-left-col .propai-feature-art {
      min-height: 240px !important;
      max-height: 320px !important;
      aspect-ratio: 3 / 4 !important;
      overflow: hidden !important;
      border-radius: 20px !important;
    }
    .site-home-left-col .propai-feature-art img,
    .site-home-left-col .propai-feature-art .prop-headshot,
    .site-home-left-col .propai-feature-art .prop-headshot-fallback {
      object-fit: cover !important;
      object-position: center top !important;
    }

    .site-home-left-col .propai-feature-player {
      font-family: var(--font-display) !important;
      font-size: 28px !important;
      font-weight: 800 !important;
      letter-spacing: -0.03em !important;
      color: #ffffff !important;
      text-transform: none !important;
    }
    .site-home-left-col .propai-feature-metrics { gap: 8px !important; }
    /* Hide the large PropIQ gauge + confidence wheel in compact left col — saves ~200px height */
    .site-home-left-col .propai-feature-confidence { display: none !important; }

    @media (max-width: 1199px) {
      .site-home-dashboard--two-col { grid-template-columns: 1fr; }
      .site-home-left-col .site-home-featured-full .propai-feature-hero,
      .site-home-left-col .propai-feature-hero {
        grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) !important;
        gap: 20px 24px !important;
        padding: 22px 24px !important;
      }
      .site-home-left-col .site-home-featured-full .propai-feature-art,
      .site-home-left-col .propai-feature-art {
        min-height: 300px !important;
        max-height: none !important;
      }
      .site-home-left-col .propai-feature-player {
        font-family: var(--font-display) !important;
        font-size: 32px !important;
        color: #ffffff !important;
        text-transform: none !important;
      }
      .site-home-left-col .propai-feature-confidence { display: block !important; }
    }

    /* Narrow: keep a large headshot beside copy (lanetrax-scale presence) */
    @media (max-width: 767px) {
      .site-home-left-col .site-home-featured-full .propai-feature-hero,
      .site-home-left-col .propai-feature-hero {
        display: grid !important;
        grid-template-columns: minmax(140px, 42vw) minmax(0, 1fr) !important;
        grid-template-areas: "art copy" "confidence confidence" !important;
        gap: 12px 14px !important;
        padding: 14px !important;
      }
      .site-home-left-col .site-home-featured-full .propai-feature-art,
      .site-home-left-col .propai-feature-art {
        width: 100% !important;
        min-height: 180px !important;
        max-height: 240px !important;
        aspect-ratio: 3 / 4 !important;
        align-self: stretch !important;
      }
      .site-home-left-col .propai-feature-copy { width: 100%; min-width: 0; overflow: hidden; }
      .site-home-left-col .propai-feature-player {
        font-family: var(--font-display) !important;
        font-size: 22px !important;
        color: #ffffff !important;
        text-transform: none !important;
        white-space: normal !important;
      }
      .site-home-left-col .propai-feature-confidence { display: none !important; }
    }

    .site-home-dashboard .ai-context-empty {
      padding: 20px 16px;
      font-size: 13px;
      line-height: 1.5;
    }

    /* v7.54.2 — Home + PropAI compact market rows (card layout until wide desktop) */
    .propai-market-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row--deck {
      display: flex;
      grid-template-columns: unset;
      grid-template-areas: unset;
      padding: 0;
      gap: 0;
    }

    /* Home Top Plays: don't apply legacy non-deck grid-area to Markets deck cards */
    body:not(.markets-mode) .pe-home-markets-deck .propai-market-player {
      grid-area: auto;
      width: auto;
      max-width: none;
    }

    body:not(.markets-mode) .pe-home-markets-deck .propai-market-actions {
      grid-area: auto;
      border-top: none;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row:not(.propai-market-row--deck) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-areas:
        "head head"
        "hero hero"
        "probs edge"
        "odds odds"
        "actions actions";
      gap: 12px 14px;
      padding: 16px 18px;
      align-items: stretch;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-player {
      grid-area: head;
      align-items: flex-start;
      min-width: 0;
      width: 100%;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-player > div {
      min-width: 0;
      flex: 1;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-sub {
      white-space: normal;
      overflow-wrap: anywhere;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row > .propai-market-scores-duo {
      grid-area: hero;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      width: 100%;
      padding: 4px 0 8px;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row > .propai-market-probs-duo {
      grid-area: probs;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 12px;
      width: 100%;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row > .propai-market-cell:nth-child(5) {
      grid-area: edge;
      justify-self: stretch;
      justify-items: center;
      text-align: center;
      padding: 10px 8px;
      border-radius: 12px;
      background: rgba(56, 189, 248, 0.08);
      border: 1px solid rgba(56, 189, 248, 0.2);
    }

    body:not(.markets-mode) .propai-market-scores-duo .propai-market-cell:not(.propai-market-iq-block) {
      min-width: 88px;
      padding: 8px 10px;
      border-radius: 12px;
      background: rgba(148, 163, 184, 0.1);
      border: 1px solid rgba(148, 163, 184, 0.22);
      justify-items: center;
      text-align: center;
    }

    body:not(.markets-mode) .propai-market-scores-duo .propai-market-cell:not(.propai-market-iq-block) .propai-market-cell-value {
      color: #e2e8f0;
      font-size: 20px;
      font-weight: 900;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-row > .propai-market-odds-callout { grid-area: odds; }
    body:not(.markets-mode) .propai-market-list .propai-market-row > .propai-market-actions {
      grid-area: actions;
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding-top: 2px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    body:not(.markets-mode) .propai-market-propiq-hero {
      width: 96px;
      height: 96px;
    }

    body:not(.markets-mode) .propai-market-propiq-hero .propiq-number-display {
      font-size: 34px;
    }

    body:not(.markets-mode) .propai-market-propiq-hero .propiq-badge-glow {
      width: 96px;
      height: 96px;
    }


    body:not(.markets-mode) .propai-market-actions .prop-action-btn.parlay-text {
      flex: 1 1 120px;
      min-height: 40px;
    }

    body:not(.markets-mode) .propai-market-actions .bet-sites {
      display: flex;
      gap: 8px;
      flex: 0 0 auto;
    }

    body:not(.markets-mode) .propai-market-actions .propai-market-open--compact,
    body:not(.markets-mode) .propai-market-actions .propai-market-open {
      flex: 1 1 100%;
      width: 100%;
      min-height: 42px;
      margin-top: 2px;
    }

    body:not(.markets-mode) .propai-market-probs-duo .propai-market-prob-cell--implied .propai-market-cell-value {
      color: #c4b5fd;
    }

    body:not(.markets-mode) .propai-market-probs-duo .propai-market-prob-cell--true .propai-market-cell-value {
      color: #86efac;
      font-weight: 900;
    }

    body:not(.markets-mode) .propai-market-list .propai-iq-pill {
      min-width: 52px;
      min-height: 36px;
      font-size: 16px;
      padding: 0 10px;
      box-shadow: none;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-name {
      flex-wrap: wrap;
      row-gap: 4px;
      line-height: 1.25;
    }

    body:not(.markets-mode) .propai-market-list .propai-market-sub {
      line-height: 1.4;
      word-break: break-word;
    }

    @media (min-width: 1280px) {
      body:not(.markets-mode) .propai-market-list .propai-market-row {
        grid-template-columns: minmax(220px, 1.4fr) repeat(6, minmax(72px, 1fr)) minmax(72px, auto) minmax(44px, auto);
        grid-template-areas: none;
        align-items: center;
        gap: 12px 14px;
      }
      body:not(.markets-mode) .propai-market-list .propai-market-open,
      body:not(.markets-mode) .propai-market-list .propai-market-watch {
        width: auto;
      }
    }

    .propai-unified,
    .propai-surface,
    .propai-analyst-shell,
    #recommendationsContainer {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .narrated-analyst-report {
      display: grid;
      gap: 14px;
    }

    .propai-analyst-streamlined {
      display: grid;
      gap: 16px;
    }

    .propai-grounding-banner {
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 600;
      color: #fcd34d;
      background: rgba(251, 191, 36, 0.12);
      border: 1px solid rgba(251, 191, 36, 0.35);
    }

    .propai-analyst-section-label {
      margin: 16px 0 8px;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #93c5fd;
    }

    .propai-avoid-card {
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(251, 191, 36, 0.25);
      background: rgba(251, 191, 36, 0.06);
      margin-bottom: 10px;
    }

    .propai-avoid-card .propai-avoid-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: flex-start;
    }

    .propai-avoid-card .propai-avoid-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-primary);
    }

    .propai-avoid-card .propai-avoid-line {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .propai-avoid-card .propai-avoid-reason {
      font-size: 12px;
      color: var(--text-secondary);
      margin-top: 8px;
      line-height: 1.45;
    }

    .propai-analyst-streamlined .propai-matchup-block {
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(56, 189, 248, 0.22);
      background: rgba(56, 189, 248, 0.08);
    }

    .propai-analyst-streamlined .propai-matchup-block h3,
    .propai-dive-card h4 {
      margin: 0 0 8px;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #93c5fd;
    }

    .propai-analyst-streamlined .propai-matchup-body {
      font-size: 14px;
      line-height: 1.55;
      color: var(--text-primary);
    }

    .propai-dive-card {
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(8, 16, 30, 0.92);
      display: grid;
      gap: 10px;
    }

    .propai-dive-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .propai-dive-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.25;
    }

    .propai-dive-line {
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .propai-dive-verdict {
      flex: 0 0 auto;
      min-height: 30px;
      padding: 0 12px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      display: inline-flex;
      align-items: center;
    }

    .propai-dive-verdict--play {
      background: rgba(34, 197, 94, 0.18);
      border: 1px solid rgba(34, 197, 94, 0.35);
      color: #86efac;
    }

    .propai-dive-verdict--lean {
      background: rgba(250, 204, 21, 0.14);
      border: 1px solid rgba(250, 204, 21, 0.32);
      color: #fde68a;
    }

    .propai-dive-verdict--pass {
      background: rgba(248, 113, 113, 0.14);
      border: 1px solid rgba(248, 113, 113, 0.32);
      color: #fecaca;
    }

    .propai-dive-narrative {
      font-size: 13px;
      line-height: 1.5;
      color: #cbd5e1;
    }

    .propai-dive-list {
      margin: 0;
      padding-left: 18px;
      font-size: 13px;
      line-height: 1.45;
      color: var(--text-primary);
    }

    .propai-dive-list--caution {
      color: #fca5a5;
    }

    .propai-dive-list-label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .narrated-prop-inline {
      padding: 14px 0;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    .narrated-prop-inline .propai-feature-metrics {
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .propai-ticket-stage {
      min-width: 0;
    }

    @media (min-width: 1367px) {
      .site-shell-content .app-layout,
      .site-shell-content .main-content,
      .site-shell-content #recommendationsContainer,
      .site-shell-content #propsContainer,
      .site-shell-content #gamesContainer,
      .site-shell-content #newsContainer,
      .site-shell-content #injuriesContainer,
      .site-shell-content #strategyContainer,
      .site-shell-content #paceContainer,
      .site-shell-content #portfolioContainer,
      .site-shell-content #marketsContainer {
        width: 100%;
        max-width: 100%;
      }
    }

    /* v7.54.3 — Cross-view adaptive layout (Home, Markets, PropAI, Games, News, Injuries, Parlay, Research, Portfolio, Pace) */
    #gamesContainer,
    #newsContainer,
    #injuriesContainer,
    #strategyContainer,
    #paceContainer,
    #portfolioContainer,
    #marketsContainer,
    #propsContainer,
    .site-games-dashboard,
    .league-news-shell,
    .portfolio-page,
    .pace-cards-container {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .propai-upcoming-row {
      grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) minmax(0, auto);
    }

    .propai-upcoming-matchup {
      font-size: clamp(17px, 3.5vw, 22px);
      overflow-wrap: anywhere;
    }

    @media (max-width: 900px) {
      .propai-upcoming-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
      }

      .propai-upcoming-time {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
      }

      .site-games-row-actions {
        justify-content: stretch;
        width: 100%;
      }

      .site-games-row-actions .propai-market-open,
      .site-games-row-actions .propai-secondary-cta {
        flex: 1 1 140px;
        justify-content: center;
      }

      .site-home-support-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 767px) {
      .view-container {
        max-width: 100%;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
      }
    }

    @media (max-width: 640px) {
      .site-home-query-hint {
        flex-direction: column;
        align-items: flex-start;
      }

      .site-home-query-hint button {
        width: 100%;
        white-space: normal;
      }

      .injury-card {
        flex-wrap: nowrap;
        align-items: flex-start;
      }

      .injury-team {
        white-space: normal;
      }

      .injury-status {
        margin-left: 0;
        flex-shrink: 0;
      }
      .inj-watch-btn {
        flex-shrink: 0;
      }
      .inj-card-body {
        min-width: 0;
        flex: 1 1 auto;
      }

      .strategy-pick {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .strategy-pick-score {
        align-self: flex-start;
      }

      .parlay-leg {
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
      }

      .parlay-leg-odds {
        margin-right: 0;
      }

      .portfolio-entry-actions {
        flex-wrap: wrap;
        width: 100%;
      }

      .portfolio-entry-actions select,
      .portfolio-entry-actions button {
        flex: 1 1 120px;
      }

      .league-game-grid,
      .league-article-grid {
        grid-template-columns: 1fr;
      }

      .league-news-toolbar {
        flex-direction: column;
        align-items: stretch;
      }

      .league-news-pills {
        width: 100%;
      }
    }

    @media (max-width: 520px) {
      .pace-controls {
        flex-direction: column;
      }

      .pace-search,
      .pace-sort {
        min-width: 0;
        width: 100%;
      }
    }

    @media (max-width: 480px) {
      .prop-header {
        flex-wrap: wrap;
      }

      .propai-top-pick-copy strong {
        white-space: normal;
      }
    }

    .site-home-query-hint {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(7, 18, 34, 0.86);
      color: var(--text-secondary);
      font-size: 13px;
    }

    .site-home-query-hint strong {
      color: var(--text-primary);
      font-weight: 800;
    }

    .site-home-query-hint button {
      min-height: 40px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(34, 197, 94, 0.24);
      background: rgba(34, 197, 94, 0.14);
      color: #cdf8da;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }

    .site-home-support-grid,
    .site-home-bottom-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
      gap: 16px;
      width: 100%;
    }

    .site-home-support-grid .propai-panel,
    .site-home-bottom-grid .propai-panel {
      min-height: 100%;
    }

    .site-home-featured-full {
      width: 100%;
      max-width: none;
    }

    .site-home-mid-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
      gap: 20px;
      width: 100%;
      align-items: start;
    }

    .site-home-mid-grid > .propai-market-stage {
      position: sticky;
      top: 80px;
      align-self: start;
    }

    .site-games-dashboard {
      display: grid;
      gap: 18px;
    }

    .site-games-league {
      display: grid;
      gap: 12px;
    }

    .site-games-league-title {
      font-size: 18px;
      font-weight: 900;
      color: var(--text-primary);
      letter-spacing: 0.01em;
    }

    .site-games-row-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .site-games-row-actions .propai-market-open,
    .site-games-row-actions .propai-secondary-cta {
      min-height: 38px;
      padding: 0 14px;
      border-radius: 12px;
    }

    .site-games-card {
      display: grid;
      grid-template-columns: minmax(148px, 196px) minmax(0, 1fr);
      gap: 18px;
      align-items: start;
      padding: 16px 18px;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(145deg, rgba(16, 28, 50, 0.98), rgba(8, 14, 28, 0.98));
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
      cursor: pointer;
      transition: border-color 0.15s ease, transform 0.15s ease;
    }

    .site-games-card:hover {
      border-color: rgba(77, 132, 255, 0.32);
      transform: translateY(-1px);
    }

    .markets-game-board-section {
      margin: 0 0 18px;
      padding: 14px 0 4px;
      border-top: 1px solid rgba(255,255,255,0.06);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      flex-shrink: 0;
      min-width: 0;
      overflow-anchor: none;
    }

    .markets-game-board-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
      flex-wrap: wrap;
    }

    .markets-game-board-head .propai-board-meta-label {
      margin: 0;
    }

    .markets-game-board-head-controls {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-left: auto;
    }

    .markets-sort-select {
      min-width: 148px;
      max-width: 220px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 700;
      border-radius: 10px;
    }

    .markets-game-board-clear {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }

    .markets-game-board-clear:hover {
      color: var(--text-primary);
      border-color: rgba(77, 132, 255, 0.35);
    }

    .markets-game-board-clear.is-hidden {
      visibility: hidden;
      pointer-events: none;
    }

    #marketsBrowserList {
      overflow-anchor: none;
    }

    .markets-game-board {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 2px 2px 10px;
      min-height: 108px;
      flex-wrap: nowrap;
      align-items: stretch;
      /* No scroll-snap — proximity snap fights iOS momentum and snaps back to start at the end. */
      scroll-snap-type: none;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      touch-action: pan-x;
    }

    .markets-game-board::-webkit-scrollbar {
      height: 6px;
    }

    .markets-game-board::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.14);
      border-radius: 999px;
    }

    .markets-game-chip {
      flex: 0 0 auto;
      scroll-snap-align: none;
      min-width: 148px;
      max-width: 196px;
      min-height: 96px;
      display: grid;
      align-content: start;
      gap: 6px;
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.08);
      background: linear-gradient(145deg, rgba(16, 28, 50, 0.96), rgba(8, 14, 28, 0.96));
      color: var(--text-primary);
      text-align: left;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    @media (hover: hover) and (pointer: fine) {
      .markets-game-chip:hover:not(.active) {
        border-color: rgba(77, 132, 255, 0.32);
        transform: translateY(-1px);
      }
    }

    .markets-game-chip.active,
    .markets-game-chip.active:hover,
    .markets-game-chip.active:focus-visible {
      border-color: rgba(56, 189, 248, 0.62);
      background: linear-gradient(145deg, rgba(18, 42, 74, 0.98), rgba(10, 22, 42, 0.98));
      box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.24), 0 10px 24px rgba(0, 0, 0, 0.22);
      transform: none;
    }

    .markets-game-chip--all {
      min-width: 112px;
      max-width: 132px;
      align-content: center;
      justify-items: start;
    }

    .markets-game-chip-logos {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .markets-game-chip-logos img {
      width: 24px;
      height: 24px;
      object-fit: contain;
    }

    .markets-game-chip-matchup {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }

    .markets-game-chip-meta {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.35;
    }

    .markets-game-chip-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #7dd3fc;
    }

    .markets-game-chip-score {
      display: inline-block;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 6px;
      background: rgba(0,240,160,0.14);
      color: var(--accent-green, #00f0a0);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      vertical-align: middle;
    }

    .markets-game-chip-hint {
      display: block;
      min-height: 14px;
      margin-top: 3px;
      font-size: 9px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--accent-green, #00f0a0);
      line-height: 1.2;
      opacity: 0.85;
    }

    .markets-game-chip-hint:empty {
      opacity: 0;
    }

    .markets-game-board-empty {
      padding: 10px 2px 4px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .site-games-card-header {
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .site-games-matchup-logos {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .site-games-logo {
      width: 38px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(255,255,255,0.04);
      flex-shrink: 0;
    }

    .site-games-logo img {
      width: 30px;
      height: 30px;
      object-fit: contain;
    }

    .site-games-vs {
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .site-games-abbr {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: 0.05em;
      color: var(--text-primary);
    }

    .site-games-names {
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.45;
    }

    .site-games-status-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .site-games-status {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      color: var(--text-secondary);
    }

    .site-games-status.live {
      color: #fca5a5;
      background: rgba(248,113,113,0.14);
    }

    .site-games-status.final {
      color: #cbd5e1;
      background: rgba(148,163,184,0.12);
    }

    .site-games-score {
      font-size: 18px;
      font-weight: 900;
      color: var(--text-primary);
      letter-spacing: 0.04em;
    }

    .site-games-time {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-secondary);
    }

    .site-games-props {
      min-width: 0;
      display: grid;
      gap: 0;
      border-left: 1px solid rgba(255,255,255,0.07);
      padding-left: 18px;
    }

    .site-games-props-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .site-games-prop-count {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .site-games-prop-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px 12px;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .site-games-prop-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .site-games-prop-player {
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 700;
      display: block;
    }

    .site-games-prop-market {
      color: var(--text-muted);
      font-size: 12px;
      display: block;
      margin-top: 2px;
    }

    .site-games-prop-meta {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-shrink: 0;
    }

    .site-games-prop-odds {
      color: var(--text-secondary);
      font-size: 12px;
      font-weight: 700;
    }

    .site-games-prop-iq {
      background: rgba(34,197,94,0.12);
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 999px;
    }

    .site-games-empty-props {
      color: var(--text-muted);
      font-size: 12px;
      padding: 4px 0;
    }

    @media (max-width: 760px) {
      .site-games-card {
        grid-template-columns: 1fr;
        gap: 14px;
      }

      .site-games-props {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding-top: 12px;
      }
    }

    .site-parlay-empty {
      padding: 26px 16px;
      border-radius: 18px;
      border: 1px dashed rgba(255,255,255,0.12);
      background: rgba(8, 18, 34, 0.72);
      color: var(--text-secondary);
      text-align: center;
      font-size: 13px;
      line-height: 1.6;
    }

    .site-parlay-empty strong {
      display: block;
      color: var(--text-primary);
      font-size: 16px;
      margin-bottom: 6px;
    }

    .site-parlay-leg-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .site-parlay-leg-chip {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
    }

    .site-parlay-suggested-title {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 12px;
    }

    .portfolio-page {
      display: grid;
      gap: 20px;
    }

    .portfolio-summary-grid,
    .portfolio-resolution-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .portfolio-card {
      background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 16, 30, 0.98));
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 18px;
    }

    .portfolio-stat-card {
      text-align: center;
    }

    .portfolio-stat-value {
      font-size: 28px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1;
    }

    .portfolio-stat-value.good { color: var(--accent-green); }
    .portfolio-stat-value.blue { color: var(--accent-blue); }
    .portfolio-stat-value.gold { color: var(--accent-gold); }
    .portfolio-stat-value.purple { color: #ca92ff; }
    .portfolio-stat-value.red { color: var(--accent-red); }

    .portfolio-stat-label {
      margin-top: 8px;
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
    }

    .portfolio-stat-label {
      font-size: 11px;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
    }

    .portfolio-stat-hint {
      margin-top: 6px;
      font-size: 10px;
      line-height: 1.35;
      color: var(--text-muted);
      font-weight: 600;
    }

    .portfolio-section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }

    .portfolio-section-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-primary);
    }

    .portfolio-section-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      margin-left: auto;
    }

    .portfolio-section-toggle {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .portfolio-section-toggle.active {
      background: rgba(100,150,255,0.16);
      color: #9ec5ff;
      border-color: rgba(100,150,255,0.35);
    }

    .portfolio-section-body.is-collapsed {
      display: none !important;
    }

    .portfolio-section-body {
      contain: layout style;
    }

    .prop-badge.dvp-badge {
      font-weight: 800;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      font-size: 10px;
    }

    .prop-badge.dvp-soft,
    .prop-badge.dvp-fav {
      background: rgba(34, 197, 94, 0.22);
      color: #86efac;
      border: 1px solid rgba(34, 197, 94, 0.55);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
    }

    .prop-badge.dvp-tough,
    .prop-badge.dvp-unfav {
      background: rgba(239, 68, 68, 0.2);
      color: #fca5a5;
      border: 1px solid rgba(239, 68, 68, 0.5);
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.12);
    }

    .prop-badge.dvp-neutral,
    .prop-badge.dvp-tone-yellow {
      background: rgba(250, 204, 21, 0.16);
      color: #fde047;
      border: 1px solid rgba(250, 204, 21, 0.45);
    }

    .prop-badge.dvp-tone-green {
      background: rgba(34, 197, 94, 0.22);
      color: #86efac;
      border: 1px solid rgba(34, 197, 94, 0.55);
    }

    .prop-badge.dvp-tone-red {
      background: rgba(239, 68, 68, 0.2);
      color: #fca5a5;
      border: 1px solid rgba(239, 68, 68, 0.5);
    }

    .propai-feature-metric--dvp.dvp-tone-green {
      background: rgba(34, 197, 94, 0.14);
      border-color: rgba(34, 197, 94, 0.42);
    }
    .propai-feature-metric--dvp.dvp-tone-green .propai-feature-metric-value {
      color: #4ade80;
      font-size: clamp(20px, 2.4vw, 26px);
    }
    .propai-feature-metric--dvp.dvp-tone-green .propai-feature-metric-label {
      color: rgba(134, 239, 172, 0.9);
    }

    .propai-feature-metric--dvp.dvp-tone-red {
      background: rgba(239, 68, 68, 0.12);
      border-color: rgba(239, 68, 68, 0.4);
    }
    .propai-feature-metric--dvp.dvp-tone-red .propai-feature-metric-value {
      color: #f87171;
      font-size: clamp(20px, 2.4vw, 26px);
    }
    .propai-feature-metric--dvp.dvp-tone-red .propai-feature-metric-label {
      color: rgba(252, 165, 165, 0.9);
    }

    .propai-feature-metric--dvp.dvp-tone-yellow {
      background: rgba(250, 204, 21, 0.12);
      border-color: rgba(250, 204, 21, 0.4);
    }
    .propai-feature-metric--dvp.dvp-tone-yellow .propai-feature-metric-value {
      color: #facc15;
      font-size: clamp(20px, 2.4vw, 26px);
    }
    .propai-feature-metric--dvp.dvp-tone-yellow .propai-feature-metric-label {
      color: rgba(253, 224, 71, 0.9);
    }

    .portfolio-filter-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .portfolio-status-filter,
    .portfolio-clear-btn {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
    }

    .portfolio-status-filter.active {
      background: rgba(34, 197, 94, 0.16);
      color: var(--accent-green);
      border-color: rgba(34, 197, 94, 0.3);
    }

    .ledger-date-chip {
      flex-shrink: 0;
      scroll-snap-align: start;
      min-width: 52px;
      min-height: 44px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .ledger-date-strip {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding: 4px 0 8px;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      max-width: 100%;
      touch-action: pan-x;
      overscroll-behavior-x: contain;
      position: relative;
      z-index: 3;
    }

    .portfolio-status-filter {
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    @media (max-width: 1366px) {
      .portfolio-page {
        min-width: 0;
        overflow-x: hidden;
      }
      .portfolio-card {
        min-width: 0;
        overflow-x: hidden;
      }
      .portfolio-summary-grid,
      .portfolio-resolution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        isolation: isolate;
      }
      .portfolio-stat-card {
        overflow: hidden;
        position: relative;
        z-index: 1;
      }
      .portfolio-bets-list,
      #dailyLedgerTable.portfolio-bets-list {
        max-height: none !important;
        overflow: visible !important;
        will-change: auto;
      }
      #portfolioContainer .portfolio-page {
        overflow-x: clip;
        overflow-y: visible;
      }
      #dailyLedgerSummary {
        min-width: 0;
        max-width: 100%;
        overflow-x: clip;
      }
      #dailyLedgerSummary .portfolio-entry,
      #dailyLedgerSummary .portfolio-entry-head,
      #dailyLedgerSummary .portfolio-entry-metrics {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }
      #dailyLedgerSummary .portfolio-entry-head {
        flex-wrap: wrap;
      }
      .portfolio-section-header {
        min-width: 0;
        max-width: 100%;
      }
      .portfolio-filter-row {
        flex: 1 1 100%;
        min-width: 0;
      }
      .ledger-date-strip {
        max-width: 100%;
        min-width: 0;
      }
      .portfolio-entry {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
      }
      .portfolio-entry-head {
        width: 100%;
        min-width: 0;
      }
      .portfolio-entry-metrics {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .portfolio-entry-metric {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
      }
    }

    .ledger-date-chip.active {
      background: rgba(100, 150, 255, 0.18);
      color: #9ec5ff;
      border-color: rgba(100, 150, 255, 0.35);
    }

    .portfolio-clear-btn {
      color: var(--accent-red);
      border-color: rgba(255,82,82,0.28);
      background: rgba(255,82,82,0.12);
    }

    .portfolio-breakdown-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }

    .portfolio-breakdown-card {
      background: rgba(8, 18, 34, 0.88);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 12px;
      text-align: center;
    }

    .portfolio-breakdown-emoji {
      font-size: 18px;
      margin-bottom: 6px;
    }

    .portfolio-breakdown-count {
      font-size: 18px;
      font-weight: 900;
      color: var(--accent-green);
    }

    .portfolio-breakdown-label {
      margin-top: 4px;
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 700;
      letter-spacing: 0.06em;
    }

    .portfolio-bets-list {
      display: grid;
      gap: 12px;
      /* Desktop + mobile: flow with page scroll so all bets remain visible.
         Prior max-height:680px created a nested scroller that cut off content
         inside .view-container.show { overflow:hidden } on desktop. */
      max-height: none;
      overflow: visible;
    }

    .portfolio-empty {
      color: var(--text-muted);
      text-align: center;
      padding: 22px;
      font-size: 12px;
      border: 1px dashed rgba(255,255,255,0.12);
      border-radius: 16px;
      background: rgba(8, 18, 34, 0.6);
    }

    .portfolio-entry {
      background: rgba(8, 18, 34, 0.88);
      border: 1px solid rgba(255,255,255,0.08);
      border-left: 3px solid var(--accent-blue);
      border-radius: 16px;
      padding: 14px;
      display: grid;
      gap: 12px;
    }

    .portfolio-entry.parlay {
      border-top: 2px solid #8b5cf6;
    }

    .portfolio-entry-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: flex-start;
    }

    /* Defense-in-depth: several inline row templates forgot min-width:0 on the
       title/subtitle wrapper (the head's first child). Flex items default to
       min-width:auto, so once real content replaces placeholders (longer player
       names, date ranges, etc.) that wrapper refuses to shrink and pushes the
       right-aligned .portfolio-entry-metrics (P&L/EV/odds) off the edge of the
       screen. This covers the pattern at the stylesheet level regardless of
       whether a template's own inline style remembers to set it. */
    .portfolio-entry-head > :first-child {
      min-width: 0;
    }

    .portfolio-entry-title {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .portfolio-entry-subtitle,
    .portfolio-entry-meta {
      font-size: 11px;
      color: var(--text-muted);
    }

    .portfolio-entry-meta {
      margin-top: 6px;
    }

    .portfolio-entry-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 6px;
    }

    .portfolio-chip {
      min-height: 24px;
      display: inline-flex;
      align-items: center;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
    }

    .portfolio-entry-metrics {
      display: grid;
      gap: 4px;
      text-align: right;
      min-width: 112px;
    }

    .portfolio-entry-metric {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-secondary);
    }

    .portfolio-entry-metric strong {
      color: var(--text-primary);
      font-weight: 900;
    }

    .portfolio-entry-metric.good strong { color: var(--accent-green); }
    .portfolio-entry-metric.bad strong { color: var(--accent-red); }

    .portfolio-leg-stack {
      display: grid;
      gap: 8px;
      padding: 10px;
      border-radius: 14px;
      background: rgba(4, 11, 21, 0.7);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .portfolio-leg-row {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      font-size: 13px;
      color: var(--text-secondary);
    }

    .portfolio-leg-row strong {
      color: var(--text-primary);
      font-weight: 800;
    }

    .portfolio-entry-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .portfolio-entry-actions select,
    .portfolio-entry-actions button {
      min-height: 34px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(15,23,42,0.92);
      color: var(--text-primary);
      padding: 0 12px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
    }

    .portfolio-entry-actions button {
      color: var(--accent-red);
      border-color: rgba(255,82,82,0.28);
      background: rgba(255,82,82,0.12);
    }

    @media (max-width: 1180px) {
      .portfolio-summary-grid,
      .portfolio-resolution-grid,
      .portfolio-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 760px) {
      .portfolio-summary-grid,
      .portfolio-resolution-grid,
      .portfolio-breakdown-grid {
        grid-template-columns: 1fr;
      }
      .portfolio-entry-head {
        flex-direction: column;
      }
      .portfolio-entry-metrics {
        text-align: left;
        min-width: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
      }
      .portfolio-entry-metric {
        overflow-wrap: anywhere;
        word-break: break-word;
      }
    }

    @media (max-width: 1180px) {
      .site-home-support-grid {
        grid-template-columns: 1fr;
      }
    }

    .propai-mobile-browse-trigger,
    .propai-browser-close,
    .propai-browser-handle,
    .propai-browser-backdrop {
      display: none;
    }

    @media (max-width: 900px) {
      .ai-ticket-stack {
        grid-template-columns: 1fr;
      }
    }

    .ai-analyst-details {
      margin-top: 10px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      background: rgba(255,255,255,0.025);
      overflow: hidden;
    }

    .ai-analyst-details > summary {
      cursor: pointer;
      padding: 10px 12px;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
    }

    .ai-analyst-details .linemaker-response,
    .ai-analyst-details .lm-section {
      margin: 0;
      border: 0;
    }

    .ai-context-empty {
      color: var(--text-muted);
      font-size: 12px;
      padding: 8px 0;
    }

    .markets-game-filter-empty {
      min-height: 72px;
      padding: 16px 4px 24px;
      line-height: 1.5;
    }

    .ai-decision-summary {
      margin: 12px 18px 0;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(0,240,160,0.09), rgba(68,136,255,0.08));
      padding: 12px;
      display: grid;
      gap: 10px;
    }

    .ai-decision-header {
      display: grid;
      gap: 4px;
    }

    .ai-decision-kicker {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .ai-decision-title {
      color: var(--text-primary);
      font-size: 16px;
      font-weight: 900;
      line-height: 1.25;
    }

    .ai-decision-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .ai-decision-card {
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px;
      background: rgba(0,0,0,0.2);
      padding: 9px;
      min-width: 0;
    }

    .ai-decision-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 6px;
    }

    .ai-decision-value {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.35;
    }

    .ai-decision-value.good { color: var(--accent-green); }
    .ai-decision-value.warn { color: var(--accent-gold); }
    .ai-decision-value.bad { color: #ff8f9a; }

    .ai-decision-band {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.15);
      padding: 4px 10px;
      color: var(--text-primary);
      font-size: 10px;
      font-weight: 900;
      width: fit-content;
    }

    @media (max-width: 560px) {
      .ai-fast-mode-row {
        align-items: stretch;
        flex-direction: column;
      }
      .ai-fast-toggle { width: 100%; }
      .ai-decision-grid { grid-template-columns: 1fr; }
      .ai-topbar-main { flex-direction: column; }
      .ai-topbar-status { justify-content: flex-start; }
    }

    @media (max-width: 1240px) {
      .ai-command-grid {
        grid-template-columns: 1fr;
        padding-right: 0;
      }
      .ai-command-rail {
        position: static;
        margin: 2px 18px 0;
      }
    }

    @media (max-width: 1180px) {
      .propai-page {
        grid-template-columns: 1fr;
        padding: 12px 12px 90px;
      }
      .propai-sidebar { display: none; }
      .propai-controls-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .propai-query-shell {
        grid-column: 1 / -1;
      }
      .propai-feature-grid,
      .propai-detail-grid,
      .propai-support-grid {
        grid-template-columns: 1fr;
      }
      .propai-feature-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
          "art"
          "copy"
          "confidence";
      }
      /* compact market rows: see v7.54.2 card layout above */
      .propai-market-open,
      .propai-market-watch {
        min-height: 38px;
      }
    }

    @media (max-width: 760px) {
      #recommendationsContainer {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
      }
      body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer {
        padding: 0 !important;
        padding-bottom: 0 !important;
      }
      .propai-unified {
        padding-top: 8px;
      }
      .propai-analyst-intro {
        padding: 14px;
        border-radius: 18px;
      }
      .propai-analyst-head,
      .propai-analyst-toolbar,
      .propai-quick-stack,
      .propai-scenarios {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
      }
      .propai-analyst-meta {
        justify-content: flex-start;
      }
      .propai-page {
        padding: 10px 10px 110px;
      }
      .propai-topbar {
        padding: 12px;
        border-radius: 18px;
      }
      .propai-title {
        font-size: 18px;
      }
      .propai-subtitle {
        font-size: 12px;
      }
      .propai-topbar-main,
      .propai-scenarios {
        flex-direction: column;
        align-items: flex-start;
      }
      .propai-topbar-status {
        justify-content: flex-start;
      }
      .propai-controls-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .propai-filter-card {
        padding: 10px 11px;
        border-radius: 12px;
      }
      .propai-filter-value {
        font-size: 15px;
      }
      .propai-query-shell {
        padding: 10px 12px;
        border-radius: 14px;
      }
      .propai-query-shell #aiChatInput {
        font-size: 14px;
      }
      .propai-scenarios {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: none;
      }
      .propai-scenarios::-webkit-scrollbar { display: none; }
      .propai-scenario-btn { white-space: nowrap; }
      .propai-fast-inline {
        margin-left: 0;
        min-width: max-content;
      }
      .propai-feature-hero {
        grid-template-columns: 1fr;
      }
      .propai-feature-art {
        min-height: 200px;
      }
      .propai-feature-player {
        font-size: 18px;
      }
      .propai-feature-marketline,
      .propai-feature-matchup {
        font-size: 13px;
      }
      .propai-feature-metrics {
        grid-template-columns: 1fr 1fr;
      }
      .propai-story-summary {
        grid-template-columns: 1fr;
      }
      .propai-upcoming-row {
        grid-template-columns: 1fr;
        justify-items: start;
      }
      .propai-upcoming-matchup {
        font-size: 18px;
      }
      .propai-mobile-browse-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.14));
        color: var(--text-primary);
        border: 1px solid rgba(34, 197, 94, 0.3);
      }
      .propai-browser-close,
      .propai-browser-handle,
      .propai-browser-backdrop {
        display: block;
      }
      .propai-browser-close {
        min-height: 36px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.08);
        color: var(--text-primary);
      }
      .propai-browser-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(66px + env(safe-area-inset-bottom));
        z-index: 70;
        max-height: 72vh;
        overflow: auto;
        transform: translateY(calc(100% - 72px));
        transition: transform 0.24s ease;
      }
      body.propai-markets-open .propai-browser-panel {
        transform: translateY(0);
      }
      .propai-browser-handle {
        width: 54px;
        height: 5px;
        border-radius: 999px;
        margin: -2px auto 12px;
        background: rgba(255,255,255,0.2);
      }
      .propai-browser-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.24s ease;
        z-index: 60;
        /* iOS Safari: disable backdrop on mobile to prevent color shift artifact */
        display: none !important;
      }
      body.propai-markets-open .propai-browser-backdrop {
        opacity: 1;
        pointer-events: auto;
      }
      .propai-market-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
      }
      .propai-market-cell {
        justify-items: start;
      }
      .propai-market-open,
      .propai-market-watch {
        width: 100%;
      }
      body.propai-mode .nav-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        background: rgba(2, 6, 23, 0.97);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 8px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
      }
    }

    .ai-chat-feed {
      padding: 16px 18px 8px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: visible;
      min-height: 280px;
    }

    .ai-empty-state {
      padding: 22px;
      border-radius: 14px;
      background: rgba(255,255,255,0.035);
      border: 1px dashed rgba(255,255,255,0.12);
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.6;
    }

    .ai-input-panel {
      position: sticky;
      bottom: 0;
      z-index: 25;
      background: rgba(15, 20, 40, 0.96);
      border-top: 1px solid rgba(255,255,255,0.08);
      padding: 14px 18px 18px;
      backdrop-filter: blur(14px);
    }
    @media (max-width: 767px) {
      .ai-input-panel { bottom: 72px; }
    }

    .ai-input-row {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    #aiChatInput {
      flex: 1;
      min-height: 46px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 10px;
      color: var(--text-primary);
      font-size: 13px;
      outline: none;
    }

    #aiChatInput:focus {
      border-color: rgba(0, 240, 160, 0.55);
      box-shadow: 0 0 0 3px rgba(0, 240, 160, 0.10);
    }

    #aiChatSubmit {
      min-height: 46px;
      padding: 0 18px;
      background: var(--accent-green);
      color: #06120e;
      border: none;
      border-radius: 10px;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
      white-space: nowrap;
    }

    .ai-disclaimer {
      margin-top: 8px;
      color: var(--text-muted);
      font-size: 10px;
      line-height: 1.4;
    }

    .linemaker-response {
      display: grid;
      gap: 12px;
    }

    .lm-hero {
      background: linear-gradient(135deg, rgba(0,240,160,0.12), rgba(93,173,226,0.08));
      border: 1px solid rgba(0,240,160,0.20);
      border-radius: 14px;
      padding: 14px;
    }

    .lm-kicker {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .lm-title {
      color: var(--text-primary);
      font-size: 16px;
      font-weight: 900;
      margin-bottom: 6px;
    }

    .lm-summary {
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.6;
    }

    .lm-section {
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 14px;
    }

    .lm-section-title {
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 900;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      gap: 10px;
    }

    .pe-strikeout-gauge-deck {
      display: grid;
      gap: 14px;
      margin: 0 0 16px;
    }

    .pe-strikeout-gauge {
      border-radius: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.22);
      padding: 16px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .pe-strikeout-gauge-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding-bottom: 12px;
      margin-bottom: 14px;
    }

    .pe-strikeout-gauge-head h4 {
      margin: 0;
      font-size: 15px;
      font-weight: 900;
      color: var(--text-primary);
    }

    .pe-strikeout-gauge-head p {
      margin: 4px 0 0;
      font-size: 11px;
      color: var(--text-muted);
    }

    .pe-strikeout-ev-badge {
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 11px;
      font-weight: 800;
      color: var(--accent-green);
      background: rgba(0, 240, 160, 0.12);
      border: 1px solid rgba(0, 240, 160, 0.35);
      white-space: nowrap;
    }

    .pe-strikeout-gauge-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }

    .pe-strikeout-metric {
      text-align: center;
      padding: 12px 8px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .pe-strikeout-metric span {
      display: block;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.4px;
      color: var(--text-muted);
      margin-bottom: 6px;
      font-weight: 700;
    }

    .pe-strikeout-metric strong {
      font-size: 24px;
      font-weight: 900;
      color: var(--text-primary);
      line-height: 1;
    }

    .pe-strikeout-metric strong.proj {
      color: var(--accent-green);
    }

    .pe-strikeout-sim {
      padding: 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .pe-strikeout-sim label {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 8px;
      font-weight: 700;
    }

    .pe-strikeout-sim input[type="range"] {
      width: 100%;
      accent-color: var(--accent-green);
    }

    @media (max-width: 640px) {
      .pe-strikeout-gauge-grid {
        grid-template-columns: 1fr;
      }
    }

    .propai-generative-panel {
      min-height: 480px;
    }

    /* Desktop: show iframe, hide native UI */
    .propai-generative-frame {
      width: 100%;
      min-height: 720px;
      border: 0;
      border-radius: 12px;
      background: var(--bg-primary, #1a1d2e);
      /* Isolate iframe paint so height changes don't repaint the sidebar */
      contain: layout;
      transform: translateZ(0);
    }
    .propai-gen-native { display: none; }

    /* Mobile (<1024px): hide iframe (iOS can't scroll cross-origin iframes),
       show native inline UI that calls Vercel API directly */
    @media (max-width: 1366px) {
      .propai-generative-frame { display: none !important; }
      .propai-gen-native { display: block; }
    }

    .propai-gen-league-row {
      display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
    }
    .propai-gen-league-btn {
      padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
      background: transparent; color: var(--text-secondary, #8a95ac);
      font-weight: 700; font-size: 12px; cursor: pointer; letter-spacing: 0.04em;
      transition: all 0.15s; touch-action: manipulation;
    }
    .propai-gen-league-btn.active {
      border-color: var(--accent-blue, #38bdf8);
      background: rgba(56,189,248,0.12);
      color: var(--accent-blue, #38bdf8);
    }
    .propai-gen-search-row {
      display: flex; gap: 8px; margin-bottom: 24px;
    }
    .propai-gen-question {
      flex: 1; background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
      padding: 13px 16px; color: #fff; font-size: 14px; outline: none;
      font-family: inherit;
    }
    .propai-gen-analyze-btn {
      padding: 13px 24px; border-radius: 12px; background: var(--accent-green, #00f0a0);
      color: #000; font-weight: 900; font-size: 14px; border: none;
      cursor: pointer; min-width: 100px; touch-action: manipulation;
    }
    .propai-gen-analyze-btn:disabled {
      background: #1e293b; color: #475569; cursor: not-allowed;
    }
    .propai-gen-result { color: var(--text-primary, #e2e8f0); }
    .propai-gen-meta {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 14px; font-size: 12px; color: #475569;
    }
    .propai-gen-conf-badge {
      padding: 4px 12px; border-radius: 999px;
      border: 1px solid rgba(56,189,248,0.4); background: rgba(56,189,248,0.1);
      color: var(--accent-blue, #38bdf8); font-size: 11px; font-weight: 900;
    }
    .propai-gen-intro-card {
      background: linear-gradient(135deg,rgba(56,189,248,0.09),rgba(99,102,241,0.05));
      border: 1px solid rgba(56,189,248,0.22); border-radius: 16px;
      padding: 20px 22px; margin-bottom: 14px;
    }
    .propai-gen-intro-label {
      color: var(--accent-blue, #38bdf8); font-size: 10px; font-weight: 900;
      letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
    }
    .propai-gen-intro-title {
      color: #fff; font-size: 20px; font-weight: 900; margin: 0 0 14px; line-height: 1.3;
    }
    .propai-gen-intro-text {
      color: #cbd5e1; font-size: 14px; line-height: 1.75; margin: 0;
      border-left: 3px solid var(--accent-blue, #38bdf8); padding-left: 14px;
    }
    .propai-gen-analysis-card {
      background: rgba(56,189,248,0.03); border: 1px solid rgba(56,189,248,0.1);
      border-radius: 16px; padding: 22px 24px; margin-bottom: 14px;
    }
    .propai-gen-section-label {
      color: var(--accent-blue, #38bdf8); font-size: 10px; font-weight: 900;
      letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
    }

    .propai-per-game-slate {
      display: grid;
      gap: 10px;
      margin-bottom: 20px;
    }

    .propai-per-game-card {
      border-radius: 14px;
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.02);
    }

    .propai-per-game-card--play { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
    .propai-per-game-card--lean { border-color: rgba(56,189,248,0.32); background: rgba(56,189,248,0.06); }
    .propai-per-game-card--value { border-color: rgba(249,115,22,0.28); background: rgba(249,115,22,0.06); }
    .propai-per-game-card--line { border-color: rgba(167,139,250,0.28); background: rgba(167,139,250,0.06); }
    .propai-per-game-card--none { border-color: rgba(100,116,139,0.2); background: rgba(100,116,139,0.04); }

    .propai-per-game-head {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 6px;
    }

    .propai-per-game-tier {
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.08em;
      border-radius: 999px;
      padding: 3px 8px;
    }

    .propai-per-game-matchup {
      font-size: 13px;
      font-weight: 800;
      color: #e2e8f0;
    }

    .propai-per-game-summary {
      margin: 0;
      font-size: 13px;
      line-height: 1.55;
      color: #cbd5e1;
    }

    .propai-per-game-summary--muted { color: #64748b; }

    .propai-generative-setup {
      padding: 20px 24px;
      color: var(--text-secondary, #8a95ac);
      font-size: 13px;
      line-height: 1.5;
    }

    .propai-generative-setup code {
      color: var(--accent-green, #00f0a0);
      font-size: 12px;
    }

    .lm-table {
      display: grid;
      gap: 8px;
    }

    .lm-row {
      display: grid;
      grid-template-columns: minmax(150px, 1.3fr) repeat(5, minmax(58px, 0.6fr));
      gap: 8px;
      align-items: center;
      padding: 10px;
      border-radius: 12px;
      background: rgba(0,0,0,0.16);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .lm-row.header {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      background: transparent;
      border: none;
      padding-top: 0;
      padding-bottom: 0;
    }

    .lm-cell-main {
      min-width: 0;
    }

    .lm-player {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .lm-market {
      color: var(--text-secondary);
      font-size: 11px;
      margin-top: 2px;
    }

    .lm-metric {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
    }

    .lm-metric.good { color: var(--accent-green); }
    .lm-metric.warn { color: var(--accent-gold); }

    .lm-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
      white-space: nowrap;
    }

    .lm-pill.bet {
      color: #06120e;
      background: var(--accent-green);
    }

    .lm-pill.lean {
      color: var(--accent-gold);
      background: rgba(255,184,92,0.12);
      border: 1px solid rgba(255,184,92,0.22);
    }

    .lm-pill.pass {
      color: var(--text-muted);
      background: rgba(255,255,255,0.06);
    }

    /* Strict analyst article template (220-320 words, plain text, structured sections) */
    .strict-analyst-article {
      display: grid;
      gap: 16px;
      padding: 16px;
      background: linear-gradient(135deg, rgba(0,240,160,0.08), rgba(93,173,226,0.06));
      border: 1px solid rgba(0,240,160,0.15);
      border-radius: 16px;
    }

    .article-hero {
      display: grid;
      gap: 8px;
      align-items: start;
    }

    .article-player-headshot {
      max-width: 100px;
      border-radius: 12px;
      overflow: hidden;
    }

    .article-player-headshot img {
      width: 100%;
      height: auto;
      display: block;
    }

    .article-title {
      color: var(--text-primary);
      font-size: 18px;
      font-weight: 900;
      line-height: 1.3;
    }

    .article-team-logos {
      color: var(--text-secondary);
      font-size: 16px;
      font-weight: 700;
    }

    .article-subheader {
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 600;
      line-height: 1.4;
    }

    .article-intro {
      color: var(--text-primary);
      font-size: 13px;
      line-height: 1.7;
      padding: 12px;
      background: rgba(0,0,0,0.1);
      border-left: 3px solid var(--accent-green);
      border-radius: 4px;
    }

    .article-kicker {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .article-confidence-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding-top: 12px;
      border-top: 1px solid rgba(0,240,160,0.12);
    }

    .article-confidence-label {
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
    }

    .article-confidence {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(0,240,160,0.35);
      background: rgba(0,240,160,0.08);
      color: var(--accent-green);
      font-size: 11px;
      font-weight: 900;
    }

    .article-section {
      display: grid;
      gap: 6px;
    }

    .article-section-header {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin: 0;
    }

    .article-section-body {
      color: var(--text-primary);
      font-size: 13px;
      line-height: 1.75;
      margin: 0 0 12px;
    }

    .article-prose-block {
      display: grid;
      gap: 14px;
    }

    .article-pick-section {
      color: var(--accent-green);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.4px;
      margin: 4px 0 0;
      text-transform: uppercase;
    }

    .article-pick-subsection {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 800;
      margin: 8px 0 0;
    }

    .article-pick-headline {
      color: #fff;
      display: block;
      font-size: 14px;
      font-weight: 800;
      line-height: 1.45;
      margin: 0 0 8px;
    }

    .rich-hit-rate-panel {
      background: rgba(0,0,0,0.22);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 12px;
    }

    .rich-hit-rate-chips {
      display: grid;
      gap: 8px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      margin-top: 10px;
    }

    .rich-hit-rate-chip {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 10px 6px 8px;
      text-align: center;
    }

    .rich-hit-rate-chip-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .rich-hit-rate-chip-value {
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      margin-top: 5px;
    }

    .rich-hit-rate-chip-value.hot { color: var(--accent-green); }
    .rich-hit-rate-chip-value.cold { color: #f87171; }

    .article-rich-list {
      margin: 10px 0 14px 18px;
      padding: 0;
      list-style-type: square;
    }

    .article-list-item {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-secondary);
      margin-bottom: 6px;
    }

    .article-list-item strong {
      color: var(--accent-green);
      font-weight: 700;
    }

    .rich-analyst-report {
      display: grid;
      gap: 14px;
    }

    .rich-game-rec {
      border: 1px solid rgba(34, 197, 94, 0.25);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(9, 9, 11, 0.98));
      padding: 18px 18px 14px;
    }

    .rich-game-rec-title {
      margin: 0 0 12px;
      font-size: 17px;
      font-weight: 900;
      color: #fff;
      line-height: 1.35;
    }

    .rich-summary-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }

    .rich-summary-table th {
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      color: #22c55e;
      font-weight: 800;
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .rich-summary-cell {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      color: #cbd5e1;
    }

    .rich-summary-cell.summary-player {
      color: #f97316;
    }

    .rich-summary-cell.summary-pick {
      font-weight: 700;
    }

    .rich-situational-note {
      border: 1px solid rgba(249, 115, 22, 0.2);
      border-radius: 12px;
      padding: 14px 16px;
      background: rgba(249, 115, 22, 0.06);
    }

    .rich-recommendation-line {
      font-size: 14px;
      line-height: 1.5;
      color: #e2e8f0;
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(249, 115, 22, 0.08);
      border: 1px solid rgba(249, 115, 22, 0.22);
    }

    .rich-odds-row--best {
      background: rgba(0, 255, 255, 0.06);
    }

    .unified-analyst-report > .strict-analyst-article {
      margin-top: 4px;
    }

    .slate-overview-card {
      margin-bottom: 4px;
    }

    .rich-rank.slate-overview-rank {
      background: linear-gradient(135deg, rgba(56,189,248,0.95), rgba(59,130,246,0.88));
      box-shadow: 0 8px 24px rgba(56,189,248,0.16);
      font-size: 16px;
    }

    .pick-ticket {
      display: grid;
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(0,240,160,0.22);
      border-radius: 18px;
      background:
        linear-gradient(90deg, rgba(0,240,160,0.10) 0 8px, transparent 8px),
        radial-gradient(circle at 88% 12%, rgba(255,77,181,0.16), transparent 26%),
        linear-gradient(135deg, rgba(11,17,32,0.98), rgba(17,31,42,0.94));
      box-shadow: 0 20px 80px rgba(0,0,0,0.28);
    }

    .pick-ticket-top {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: start;
    }

    .pick-ticket-label {
      color: var(--accent-green);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .pick-ticket-pick {
      color: var(--text-primary);
      font-size: clamp(20px, 3.2vw, 34px);
      font-weight: 950;
      line-height: 1.05;
    }

    .pick-ticket-sub {
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.45;
      margin-top: 7px;
    }

    .pick-ticket-action {
      min-width: 116px;
      padding: 13px 14px;
      border-radius: 16px;
      text-align: center;
      font-size: 22px;
      font-weight: 950;
      letter-spacing: .04em;
      border: 1px solid rgba(255,255,255,0.12);
    }

    .pick-ticket-action.bet {
      color: #06120e;
      background: linear-gradient(135deg, var(--accent-green), #7dffd0);
      box-shadow: 0 0 32px rgba(0,240,160,0.22);
    }

    .pick-ticket-action.lean {
      color: var(--accent-gold);
      background: rgba(255,184,92,0.12);
      border-color: rgba(255,184,92,0.26);
    }

    .pick-ticket-action.pass {
      color: var(--text-muted);
      background: rgba(255,255,255,0.06);
    }

    .pick-ticket-action.watch {
      color: #fbbf24;
      background: rgba(251, 191, 36, 0.12);
      border-color: rgba(251, 191, 36, 0.4);
      box-shadow: 0 0 24px rgba(251, 191, 36, 0.12);
    }

    .pick-ticket-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .pick-ticket-metric {
      min-width: 0;
      border-radius: 13px;
      padding: 10px;
      background: rgba(0,0,0,0.20);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .pick-ticket-metric b {
      display: block;
      color: var(--text-primary);
      font-size: 17px;
      font-weight: 950;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .pick-ticket-metric span {
      display: block;
      color: var(--text-muted);
      font-size: 9px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .07em;
      margin-top: 4px;
    }

    .pick-ticket-meter {
      height: 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.06);
    }

    .pick-ticket-meter > i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #ff5f73 0%, #ffcf66 44%, var(--accent-green) 72%, #7dffd0 100%);
    }

    .pick-ticket-body {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
      gap: 12px;
      align-items: start;
    }

    .pick-ticket-panel {
      border-radius: 15px;
      padding: 12px;
      background: rgba(255,255,255,0.035);
      border: 1px solid rgba(255,255,255,0.08);
      min-width: 0;
    }

    .pick-ticket-panel-title {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 950;
      margin-bottom: 9px;
    }

    .pick-ticket-ladder {
      display: grid;
      gap: 7px;
    }

    .pick-ticket-ladder-row {
      display: grid;
      grid-template-columns: minmax(96px, 1.1fr) repeat(4, minmax(58px, .7fr));
      gap: 7px;
      align-items: center;
      padding: 9px;
      border-radius: 12px;
      background: rgba(0,0,0,0.18);
      border: 1px solid rgba(255,255,255,0.07);
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 800;
    }

    .pick-ticket-ladder-row.active {
      border-color: rgba(0,240,160,0.30);
      background: rgba(0,240,160,0.08);
    }

    .pick-ticket-ladder-row.header {
      padding: 0 9px;
      background: transparent;
      border: 0;
      color: var(--text-muted);
      font-size: 9px;
      text-transform: uppercase;
      letter-spacing: .07em;
    }

    .pick-ticket-ladder-row strong,
    .pick-ticket-good {
      color: var(--accent-green);
    }

    .pick-ticket-list {
      display: grid;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .pick-ticket-list li {
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.45;
      padding-left: 14px;
      position: relative;
    }

    .pick-ticket-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: .6em;
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: var(--accent-green);
    }

    @media (max-width: 820px) {
      .pick-ticket-top,
      .pick-ticket-body {
        grid-template-columns: 1fr;
      }
      .pick-ticket-action {
        width: 100%;
      }
      .pick-ticket-grid {
        grid-template-columns: 1fr 1fr;
      }
      .pick-ticket-ladder-row {
        grid-template-columns: 1fr 1fr;
      }
      .pick-ticket-ladder-row.header {
        display: none;
      }
    }

    .rich-report-hero {
      background:
        radial-gradient(circle at 10% 0%, rgba(0,240,160,0.15), transparent 28%),
        linear-gradient(135deg, rgba(15,23,42,0.92), rgba(10,36,31,0.82));
      border: 1px solid rgba(0,240,160,0.20);
      border-radius: 18px;
      padding: 18px;
      box-shadow: 0 20px 70px rgba(0,0,0,0.24);
    }

    .rich-report-title {
      color: var(--text-primary);
      font-size: clamp(19px, 3vw, 28px);
      font-weight: 950;
      letter-spacing: -0.03em;
      margin: 6px 0 10px;
      line-height: 1.12;
    }

    .rich-report-lede {
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.65;
      max-width: 980px;
    }

    .rich-context-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 14px;
    }

    .rich-context-chip {
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.045);
      border-radius: 12px;
      padding: 10px;
      min-width: 0;
    }

    .rich-context-label {
      color: var(--text-muted);
      font-size: 9px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 4px;
    }

    .rich-context-value {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 850;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .rich-prop-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 18px;
      padding: 14px;
      box-shadow: 0 16px 60px rgba(0,0,0,0.20);
      contain: layout style;
    }

    /* Design B — accordion rec cards */
    .pe-rec-card {
      padding: 0;
      overflow: hidden;
      border-left: 3px solid rgba(34, 197, 94, 0.55);
      background: linear-gradient(180deg, rgba(12, 16, 24, 0.98), rgba(5, 8, 14, 0.99));
      border: 1px solid rgba(34, 197, 94, 0.18);
      border-left-width: 3px;
    }

    .pe-rec-summary {
      display: grid;
      grid-template-columns: auto 1fr auto auto;
      gap: 10px 12px;
      align-items: center;
      width: 100%;
      padding: 14px;
      margin: 0;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .pe-rec-summary-main {
      display: flex;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .pe-rec-summary-copy {
      min-width: 0;
    }

    .pe-rec-summary-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: flex-end;
    }

    .pe-rec-edge-pill {
      color: #39ff14 !important;
      border-color: rgba(57, 255, 20, 0.35) !important;
      background: rgba(57, 255, 20, 0.1) !important;
    }

    .pe-rec-chevron {
      width: 10px;
      height: 10px;
      border-right: 2px solid rgba(255, 255, 255, 0.55);
      border-bottom: 2px solid rgba(255, 255, 255, 0.55);
      transform: rotate(45deg);
      transition: transform 0.18s ease;
      flex-shrink: 0;
      margin-right: 4px;
    }

    .pe-rec-card[data-expanded="1"] .pe-rec-chevron {
      transform: rotate(-135deg);
      margin-top: 4px;
    }

    .pe-rec-body {
      display: none;
      padding: 0 14px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .pe-rec-card[data-expanded="1"] .pe-rec-body {
      display: block;
    }

    .pe-rec-frame {
      margin: 12px 0 10px;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.28);
    }

    .pe-rec-frame-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(134, 239, 172, 0.95);
      margin-bottom: 6px;
    }

    .pe-rec-frame-text {
      margin: 0;
      font-size: 14px;
      line-height: 1.65;
      font-weight: 400;
      color: #e2e8f0;
    }

    .pe-lm-block {
      margin: 12px 0 14px;
      padding: 14px 16px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .pe-lm-line {
      margin: 0 0 12px;
      font-size: 14px;
      line-height: 1.75;
      font-weight: 400;
      color: #e2e8f0;
    }

    .pe-lm-line:last-child {
      margin-bottom: 0;
    }

    .pe-lm-line strong {
      color: #fff;
      font-weight: 800;
    }

    .pe-lm-prose {
      margin: 0 0 12px;
    }

    .pe-lm-prose p {
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.75;
      margin: 0 0 10px;
    }

    .pe-lm-book-link,
    a.pe-lm-book-link {
      color: #f97316;
      font-weight: 700;
      text-decoration: none;
    }

    .pe-rec-acc {
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      background: rgba(0, 0, 0, 0.2);
      margin-bottom: 8px;
      overflow: hidden;
    }

    .pe-rec-acc summary {
      list-style: none;
      cursor: pointer;
      padding: 12px 14px;
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.01em;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .pe-rec-acc summary::-webkit-details-marker { display: none; }

    .pe-rec-acc summary::after {
      content: '';
      float: right;
      width: 8px;
      height: 8px;
      margin-top: 4px;
      border-right: 2px solid rgba(255, 255, 255, 0.45);
      border-bottom: 2px solid rgba(255, 255, 255, 0.45);
      transform: rotate(45deg);
    }

    .pe-rec-acc[open] summary::after {
      transform: rotate(-135deg);
      margin-top: 6px;
    }

    .pe-rec-acc-body {
      padding: 0 14px 12px;
    }

    @media (max-width: 767px) {
      .rich-prop-card {
        box-shadow: none;
      }

      .pe-rec-summary {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
          "rank main chev"
          "rank metrics chev";
      }
      .pe-rec-summary .rich-rank { grid-area: rank; }
      .pe-rec-summary-main { grid-area: main; }
      .pe-rec-summary-metrics {
        grid-area: metrics;
        justify-content: flex-start;
      }
      .pe-rec-chevron { grid-area: chev; align-self: center; }

      .rich-analyst-report .rich-evidence-panel summary {
        touch-action: manipulation;
      }
    }

    .rich-prop-top {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 12px;
      align-items: center;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .rich-rank {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(0,240,160,0.95), rgba(93,173,226,0.85));
      color: #06120e;
      font-weight: 950;
      box-shadow: 0 8px 24px rgba(0,240,160,0.18);
    }

    .rich-player-headshot {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid rgba(0,240,160,0.35);
      background: rgba(255,255,255,0.07);
    }

    .rich-player-fallback {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      color: var(--text-muted);
      font-size: 22px;
    }

    .rich-player-title {
      color: var(--text-primary);
      font-size: clamp(16px, 2.4vw, 23px);
      font-weight: 950;
      letter-spacing: -0.025em;
      line-height: 1.18;
    }

    .rich-player-meta {
      margin-top: 5px;
      color: var(--text-muted);
      font-size: 11px;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    .rich-score-stack {
      display: grid;
      grid-template-columns: repeat(3, auto);
      gap: 6px;
      align-items: center;
      justify-content: end;
    }

    .rich-score-pill {
      border-radius: 999px;
      padding: 6px 8px;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(0,0,0,0.18);
      color: var(--text-secondary);
      font-size: 10px;
      font-weight: 900;
      white-space: nowrap;
    }

    .rich-score-pill.hot {
      color: #06120e;
      background: var(--accent-green);
      border-color: rgba(0,240,160,0.6);
    }

    .rich-score-pill.warm {
      color: #e0f2fe;
      background: rgba(56, 189, 248, 0.18);
      border-color: rgba(56, 189, 248, 0.35);
    }

    .rich-short-analysis {
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.65;
      margin: 12px 0;
    }

    .rich-inline-section {
      margin: 14px 0;
    }

    .rich-inline-label {
      color: #38bdf8;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .rich-inline-label--news {
      color: #22d3ee;
    }

    .rich-inline-label--props {
      color: #00f0a0;
      margin: 8px 0 12px;
    }

    .pe-report-kicker {
      color: #00f0a0;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .rich-news-section {
      margin: 16px 0;
      padding: 16px 18px;
      border-radius: 14px;
      border: 1px solid rgba(56, 189, 248, 0.18);
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), rgba(255, 255, 255, 0.02));
    }

    .rich-news-prose {
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.75;
      margin: 0 0 12px;
    }

    .rich-news-empty {
      color: #94a3b8;
      font-size: 14px;
      line-height: 1.75;
      margin: 0;
    }

    .rich-news-bullets li {
      color: #94a3b8;
      font-size: 13px;
      line-height: 1.7;
      margin-bottom: 6px;
    }

    .rich-news-bullets li strong {
      color: #e2e8f0;
    }

    .rich-inline-body {
      color: #cbd5e1;
      font-size: 13px;
      line-height: 1.75;
    }

    .rich-rec-box {
      margin: 14px 0;
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(0, 240, 160, 0.08);
      border: 1px solid rgba(0, 240, 160, 0.22);
      color: #fff;
      font-size: 13px;
      line-height: 1.6;
    }

    .rich-support-grid {
      display: grid;
      gap: 8px;
    }

    .rich-evidence-panel {
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      background: rgba(255,255,255,0.035);
      overflow: hidden;
    }

    .rich-evidence-panel summary {
      cursor: pointer;
      list-style: none;
      padding: 12px 14px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 900;
    }

    .rich-evidence-panel summary::-webkit-details-marker { display: none; }

    .rich-evidence-panel summary::after {
      content: "⌄";
      color: var(--text-muted);
      font-size: 14px;
      transition: transform .18s ease;
    }

    .rich-evidence-panel[open] summary::after {
      transform: rotate(180deg);
    }

    .rich-panel-body {
      border-top: 1px solid rgba(255,255,255,0.07);
      padding: 12px 14px 14px;
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.55;
    }

    .rich-odds-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .rich-book-row {
      border-radius: 12px;
      padding: 10px;
      background: rgba(0,0,0,0.18);
      border: 1px solid rgba(255,255,255,0.07);
    }

    .rich-book-name {
      color: var(--text-primary);
      font-size: 11px;
      font-weight: 900;
      margin-bottom: 4px;
    }

    .rich-book-line {
      color: var(--text-muted);
      font-size: 11px;
    }

    .rich-mini-chart {
      display: flex;
      align-items: end;
      gap: 8px;
      min-height: 130px;
      padding: 10px 4px 2px;
      border-bottom: 1px dashed rgba(255,255,255,0.13);
    }

    .rich-bar-wrap {
      flex: 1;
      min-width: 28px;
      display: grid;
      gap: 6px;
      align-items: end;
      justify-items: center;
    }

    .rich-bar {
      width: 100%;
      max-width: 58px;
      min-height: 8px;
      border-radius: 8px 8px 3px 3px;
      background: linear-gradient(180deg, rgba(70,245,205,0.98), rgba(0,240,160,0.72));
      display: flex;
      align-items: start;
      justify-content: center;
      color: #06120e;
      font-size: 10px;
      font-weight: 950;
      padding-top: 5px;
    }

    .rich-bar.current {
      background: linear-gradient(180deg, rgba(77,132,255,0.98), rgba(63,109,230,0.72));
      color: #fff;
    }

    .rich-bar-label {
      color: var(--text-muted);
      font-size: 10px;
      text-align: center;
    }

    .rich-stat-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    .rich-stat-tile {
      border-radius: 12px;
      padding: 10px;
      background: rgba(0,0,0,0.16);
      border: 1px solid rgba(255,255,255,0.06);
    }

    .rich-stat-value {
      color: var(--text-primary);
      font-size: 15px;
      font-weight: 950;
    }

    .rich-stat-label {
      color: var(--text-muted);
      font-size: 9px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-top: 3px;
    }

    .rich-prose-bullets {
      margin: 0;
      padding: 0 0 0 18px;
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.75;
    }

    .rich-prose-bullets li {
      margin-bottom: 8px;
    }

    .rich-prose-bullets li::marker {
      color: #22c55e;
    }

    .rich-rec-hero {
      margin: 14px 0 16px;
      padding: 14px 16px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      line-height: 1.5;
    }

    .rich-rec-hero--bet {
      background: rgba(0, 240, 160, 0.08);
      border: 1px solid rgba(0, 240, 160, 0.28);
    }

    .rich-rec-hero--monitor {
      background: rgba(56, 189, 248, 0.08);
      border: 1px solid rgba(56, 189, 248, 0.24);
      font-weight: 600;
    }

    .rich-rec-hero--watch {
      background: rgba(251, 191, 36, 0.1);
      border: 1px solid rgba(251, 191, 36, 0.35);
      font-weight: 600;
      color: #fde68a;
    }

    .rich-rec-detail {
      margin-top: 6px;
      font-size: 12px;
      font-weight: 500;
      color: #94a3b8;
      line-height: 1.55;
    }

    .rich-book-link {
      color: #00f0a0;
      text-decoration: none;
      font-weight: 600;
    }

    .rich-book-watch {
      color: #94a3b8;
      font-size: 12px;
      font-weight: 500;
    }

    .rich-book-alts {
      margin-top: 8px;
      font-size: 12px;
      font-weight: 500;
      color: #94a3b8;
      line-height: 1.5;
    }

    .rich-book-link--alt {
      color: #7dd3fc;
      font-weight: 600;
    }

    .rich-rec-hero .rich-book-cta {
      margin-top: 6px;
      font-size: 12px;
      font-weight: 500;
      color: #94a3b8;
    }

    .rich-key-stat-bar {
      height: 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      margin-top: 8px;
      overflow: hidden;
    }

    .rich-key-stat-bar > span {
      display: block;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #f97316, #22c55e);
    }

    .rich-game-lines-panel {
      border: 1px solid rgba(56, 189, 248, 0.22);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(9, 9, 11, 0.98));
      padding: 18px 18px 14px;
      margin-bottom: 16px;
    }

    .rich-game-lines-card + .rich-game-lines-card {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .rich-game-lines-title {
      font-size: 14px;
      font-weight: 900;
      color: #fff;
      margin-bottom: 8px;
    }

    .rich-game-line-group-title {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
      margin: 10px 0 6px;
    }

    .rich-game-line-row {
      display: grid;
      grid-template-columns: 88px 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 8px 10px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.03);
      font-size: 13px;
      margin-bottom: 6px;
    }

    .rich-game-line-market {
      color: #94a3b8;
      font-size: 11px;
      font-weight: 700;
    }

    .rich-game-line-pick {
      color: #e2e8f0;
      font-weight: 600;
    }

    .rich-game-line-odds {
      color: #22c55e;
      font-weight: 800;
    }

    .rich-full-analysis {
      margin-top: 2px;
    }

    @media (max-width: 760px) {
      .rich-context-grid,
      .rich-odds-grid,
      .rich-stat-list {
        grid-template-columns: 1fr 1fr;
      }
      .rich-prop-top {
        grid-template-columns: auto 1fr;
      }
      .rich-score-stack {
        grid-column: 1 / -1;
        justify-content: start;
      }
    }

    @media (max-width: 760px) {
      .lm-row,
      .lm-row.header {
        grid-template-columns: 1fr 1fr;
      }
      .lm-row.header { display: none; }
    }

    .ai-message {
      display: flex;
      gap: 10px;
      margin-bottom: 14px;
      animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .ai-message.user {
      justify-content: flex-end;
    }

    .ai-message.user .msg-content {
      background: var(--accent-green-dim);
      border: 1px solid rgba(0, 240, 160, 0.24);
      color: var(--text-primary);
    }

    .ai-message.assistant .msg-content {
      background: rgba(0, 240, 160, 0.06);
      border: 1px solid rgba(93, 173, 226, 0.20);
      color: var(--text-primary);
    }

    .ai-message.assistant {
      justify-content: flex-start;
    }

    .ai-message.assistant .msg-content {
      max-width: min(100%, 920px);
      width: 100%;
      /* Isolate layout/style recalc to this element so iOS doesn't reflow the whole page */
      contain: layout style;
      overflow: hidden;
    }

    .msg-content {
      padding: 14px 16px;
      border-radius: 10px;
      max-width: 85%;
      word-wrap: break-word;
      font-size: 13px;
      line-height: 1.6;
      box-shadow: var(--shadow-sm);
    }

    .ai-message.user .msg-content {
      border-radius: 18px 18px 4px 18px;
      max-width: 88%;
    }

    .ai-message.propai-chat-assistant .msg-content {
      border-radius: 18px 18px 18px 4px;
      max-width: min(100%, 640px);
      width: auto;
      background: rgba(15, 23, 42, 0.94);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .propai-chat-tier {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 10px;
    }
    .propai-chat-tier-fast { color: #64748b; }
    .propai-chat-tier-pro { color: #a78bfa; }

    .propai-chat-env-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      margin-bottom: 12px;
      border-radius: 999px;
      border: 1px solid rgba(56, 189, 248, 0.28);
      background: rgba(56, 189, 248, 0.1);
      color: #bae6fd;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.35;
    }

    .propai-chat-prose {
      margin: 0 0 12px;
      color: var(--text-secondary);
      font-size: 13px;
      line-height: 1.75;
    }

    .rich-analyst-prose-block {
      margin: 0 0 18px;
    }

    .rich-analyst-prose-block .propai-chat-prose {
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.7;
    }

    .propai-analyst-intro {
      margin: 0 0 14px;
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.65;
    }

    .propai-analyst-section-cards {
      display: grid;
      gap: 14px;
      margin-top: 4px;
    }

    .propai-analyst-section-card {
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 14px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.03);
    }

    .propai-analyst-section-head {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }

    .propai-analyst-section-art {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
    }

    .propai-analyst-section-art .prop-headshot-wrap,
    .propai-analyst-section-art .prop-headshot,
    .propai-analyst-section-art .prop-headshot-fallback {
      width: 44px;
      height: 44px;
    }

    .propai-analyst-section-meta { flex: 1; min-width: 0; }

    .propai-analyst-section-player {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.3;
    }

    .propai-analyst-section-team {
      font-weight: 600;
      color: #94a3b8;
      font-size: 12px;
    }

    .propai-analyst-section-line {
      margin-top: 3px;
      font-size: 12px;
      font-weight: 600;
      color: #94a3b8;
      line-height: 1.35;
    }

    .propai-analyst-section-iq {
      flex: 0 0 auto;
      font-size: 11px;
      font-weight: 800;
      color: var(--accent-green);
      white-space: nowrap;
    }

    .propai-analyst-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 4px;
    }

    .propai-analyst-stat {
      display: flex;
      flex-direction: column;
      gap: 3px;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.06);
      min-width: 0;
    }

    .propai-analyst-stat-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: #64748b;
    }

    .propai-analyst-stat-value {
      font-size: 13px;
      font-weight: 700;
      color: #e2e8f0;
      line-height: 1.35;
      word-break: break-word;
    }

    .propai-analyst-section-narrative {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 13px;
      line-height: 1.65;
      color: #cbd5e1;
    }

    .propai-analyst-compare-prose {
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.7;
    }

    .propai-chat-picks {
      display: grid;
      gap: 12px;
      margin-top: 8px;
    }

    .propai-chat-player-strip {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
      margin: 0 0 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Desktop / wide chat: two neat columns (not oversized headshots). */
    @media (min-width: 900px) {
      .propai-chat-player-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
      }
    }

    .propai-chat-player-chip {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-left: 3px solid rgba(255, 255, 255, 0.18);
    }

    .propai-chat-player-chip.is-over {
      border-left-color: #4ade80;
    }

    .propai-chat-player-chip.is-under {
      border-left-color: #fb923c;
    }

    .propai-chat-player-chip-art {
      flex: 0 0 48px;
      width: 48px;
      height: 48px;
    }

    .propai-chat-player-chip-art .prop-headshot-wrap,
    .propai-chat-player-headshot,
    .propai-chat-player-chip-art .prop-headshot,
    .propai-chat-player-chip-art .prop-headshot-fallback,
    .propai-chat-player-fallback {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      object-fit: cover;
      border-width: 2px;
      box-shadow: none;
    }

    .propai-chat-player-fallback,
    .propai-chat-inline-headshot-fallback {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.08);
      color: rgba(255, 255, 255, 0.72);
      font-size: 14px;
      font-weight: 700;
    }

    .propai-chat-player-chip-meta {
      min-width: 0;
      flex: 1;
    }

    .propai-chat-player-chip-name {
      font-size: 16px;
      font-weight: 800;
      color: #fff;
      line-height: 1.25;
    }

    .propai-chat-player-chip-team {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: rgba(255, 255, 255, 0.68);
      margin-top: 3px;
    }

    .propai-chat-chip-logos {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex: 0 0 auto;
    }

    .propai-chat-chip-vs {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.45);
      text-transform: lowercase;
    }

    .propai-chat-inline-team-logo img,
    .propai-chat-inline-team-logo .team-logo-fallback {
      width: 20px !important;
      height: 20px !important;
      object-fit: contain;
      vertical-align: middle;
    }

    .propai-chat-player-chip-line {
      font-size: 13px;
      font-weight: 600;
      color: rgba(226, 232, 240, 0.88);
      margin-top: 3px;
    }

    .propai-chat-dir-over {
      color: #4ade80;
      font-weight: 800;
    }

    .propai-chat-dir-under {
      color: #fb923c;
      font-weight: 800;
    }

    .propai-chat-propiq {
      color: #fbbf24;
      font-weight: 700;
    }

    .propai-chat-inline-player,
    .propai-chat-pick-header {
      /* .propai-chat-pick-header is the primary component now — the pick
         header (headshot + name + direction/line/prop) is hoisted out as its
         own standalone block ABOVE the narrative paragraph (see
         propAIChatInlineMarkdown's headerBlocks param), rather than embedded
         inline mid-sentence. Embedding it inline always read as disorganized
         once the surrounding prose had lead-in text before the match (e.g.
         "First up, let's go with [headshot] Player UNDER 16.5 Outs . This
         guy has been..."). .propai-chat-inline-player is kept only as a
         fallback for the rare direct-call sites that don't hoist (table
         cells, section titles) — same styling, block-level in both cases. */
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 10px;
    }

    .propai-chat-inline-player strong,
    .propai-chat-pick-header strong {
      font-size: 16px;
    }

    .propai-chat-inline-headshot,
    .propai-chat-inline-headshot-fallback {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      object-fit: cover;
      flex: 0 0 56px;
    }

    .propai-chat-matchup-logos {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-right: 4px;
      vertical-align: middle;
    }

    .propai-chat-matchup-at {
      font-size: 10px;
      color: rgba(255, 255, 255, 0.45);
    }

    .propai-chat-stream-prose .propai-chat-intro {
      margin-bottom: 14px;
      color: rgba(226, 232, 240, 0.92);
      line-height: 1.65;
      font-size: 14px;
    }

    .propai-chat-stream-prose .propai-chat-dir-over {
      color: #4ade80;
      font-weight: 700;
    }

    .propai-chat-stream-prose .propai-chat-dir-under {
      color: #fb923c;
      font-weight: 700;
    }

    .propai-chat-stream-prose .propai-chat-propiq {
      color: #fbbf24;
      font-weight: 700;
    }

    .propai-chat-stream-prose .propai-chat-edge {
      color: #86efac;
      font-weight: 600;
    }

    .propai-chat-stream-prose .propai-chat-label-play strong {
      color: #4ade80;
    }

    .propai-chat-stream-prose .propai-chat-label-propiq strong {
      color: #fbbf24;
    }

    .propai-chat-stream-prose .propai-chat-label-form strong {
      color: #93c5fd;
    }

    .propai-chat-stream-prose .propai-chat-section {
      margin: 0 0 16px;
      padding: 12px 12px 10px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .propai-chat-stream-prose .propai-chat-section + .propai-chat-section {
      margin-top: 4px;
    }

    .propai-chat-stream-prose .propai-chat-section-title {
      font-size: 15px;
      font-weight: 800;
      color: #f8fafc;
      margin-bottom: 8px;
      line-height: 1.35;
    }

    .propai-chat-stream-prose .propai-chat-section-title strong {
      color: #86efac;
    }

    .propai-chat-stream-prose .propai-chat-line {
      margin: 0 0 8px;
      line-height: 1.62;
      color: rgba(226, 232, 240, 0.9);
    }

    .propai-chat-stream-prose .propai-chat-line:last-child {
      margin-bottom: 0;
    }

    .propai-chat-stream-prose .propai-chat-label-matchup strong {
      color: #93c5fd;
    }

    .propai-chat-stream-prose .propai-chat-label-angle strong {
      color: #fcd34d;
    }

    .propai-chat-stream-prose .propai-chat-label-props strong {
      color: #86efac;
    }

    .propai-chat-stream-prose .propai-chat-label-detail strong {
      color: #c4b5fd;
    }

    .propai-chat-stream-prose .propai-chat-caveat {
      margin-top: 12px;
      font-size: 12px;
      color: rgba(148, 163, 184, 0.95);
      font-style: italic;
    }
    .propai-chat-sources {
      margin-top: 10px;
      font-size: 12px;
      color: rgba(148, 163, 184, 0.95);
    }
    .propai-chat-sources > summary {
      cursor: pointer;
      list-style: none;
      font-weight: 600;
    }
    .propai-chat-sources > summary::-webkit-details-marker { display: none; }
    .propai-chat-sources ul {
      margin: 6px 0 0;
      padding-left: 1.1em;
    }
    .propai-chat-sources li { margin: 2px 0; }

    .propai-chat-inline-team-logo img {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      padding: 2px;
      box-sizing: border-box;
    }

    .propai-chat-pick-card {
      display: flex;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 18px;
      padding: 0;
      overflow: hidden;
      background: linear-gradient(165deg, rgba(255,255,255,0.07) 0%, rgba(13,16,13,0.92) 40%, rgba(8,10,8,0.98) 100%);
      box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    .propai-chat-pick-cards {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 10px;
    }
    .propai-chat-thesis {
      margin: 0 0 4px;
      font-size: 13px;
      line-height: 1.5;
      color: rgba(231, 236, 231, 0.78);
    }
    .propai-chat-pick-card.is-play {
      border-color: rgba(57, 255, 106, 0.35);
      box-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 0 24px rgba(57,255,106,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .propai-chat-pick-card.is-pass { opacity: 0.72; }
    .propai-chat-pick-rail {
      width: 4px;
      flex-shrink: 0;
      background: linear-gradient(180deg, #39ff6a, #1a9e45);
    }
    .propai-chat-pick-rail.is-under { background: linear-gradient(180deg, #7dd3a0, #3d6b4f); }
    .propai-chat-pick-rail.is-alt { background: linear-gradient(180deg, #c5d0c6, #6a756c); }
    .propai-chat-pick-body {
      flex: 1;
      min-width: 0;
      padding: 12px 12px 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .propai-chat-pick-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .propai-chat-side-mark {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 4px 10px 4px 7px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      color: var(--pe-accent, #39ff6a);
    }
    .propai-chat-side-mark .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 8px rgba(57, 255, 106, 0.35);
    }
    .propai-chat-side-mark.is-under { color: #9fd4b0; }
    .propai-chat-side-mark.is-alt { color: #b8c2b9; }
    .propai-chat-action {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 5px 9px;
      border-radius: 999px;
      border: 1px solid transparent;
    }
    .propai-chat-action.is-play {
      color: #041208;
      background: var(--pe-accent, #39ff6a);
      box-shadow: 0 0 14px rgba(57, 255, 106, 0.35);
    }
    .propai-chat-action.is-watch {
      color: var(--pe-accent, #39ff6a);
      background: rgba(57, 255, 106, 0.14);
      border-color: rgba(57, 255, 106, 0.25);
    }
    .propai-chat-action.is-pass {
      color: var(--pe-muted, #8a978c);
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.08);
    }
    .propai-chat-pick-head {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .propai-chat-pick-rank {
      flex: 0 0 auto;
      font-size: 11px;
      font-weight: 900;
      color: var(--pe-accent, #39ff6a);
    }
    .propai-chat-pick-meta { flex: 1; min-width: 0; }
    .propai-chat-pick-player {
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--pe-text, #e7ece7);
    }
    .propai-chat-pick-line {
      font-size: 13px;
      color: var(--pe-text, #e7ece7);
      margin-top: 2px;
    }
    .propai-chat-pick-line b { font-weight: 800; }
    .propai-chat-pick-opp {
      font-size: 11px;
      color: var(--pe-muted, #8a978c);
      margin-top: 2px;
    }
    .propai-chat-pick-iq {
      font-size: 11px;
      font-weight: 800;
      color: #86efac;
      white-space: nowrap;
    }
    .propai-chat-form {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
    }
    .propai-chat-form-cell {
      text-align: center;
      padding: 7px 4px;
      border-radius: 10px;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    .propai-chat-form-cell span {
      display: block;
      font-size: 9px;
      letter-spacing: 0.06em;
      color: var(--pe-muted, #8a978c);
    }
    .propai-chat-form-cell strong {
      display: block;
      margin-top: 2px;
      font-size: 13px;
      font-weight: 700;
      color: var(--pe-text, #e7ece7);
    }
    .propai-chat-matchup {
      padding: 10px 11px;
      border-radius: 12px;
      background: rgba(57, 255, 106, 0.06);
      border: 1px solid rgba(57, 255, 106, 0.18);
    }
    .propai-chat-matchup-label {
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--pe-accent, #39ff6a);
      margin-bottom: 5px;
    }
    .propai-chat-matchup-text {
      margin: 0;
      font-size: 11px;
      line-height: 1.45;
      color: rgba(231, 236, 231, 0.88);
    }
    .propai-chat-pick-story {
      font-size: 12px;
      line-height: 1.55;
      color: var(--pe-muted, #8a978c);
    }
    .propai-chat-drivers {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .propai-chat-driver-pill {
      padding: 4px 8px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      font-size: 10px;
      font-weight: 700;
      color: #94a3b8;
    }
    .propai-chat-pick-edge {
      font-size: 11px;
      font-weight: 800;
      color: var(--pe-accent, #39ff6a);
    }

    .propai-chat-parlay-btn {
      padding: 7px 12px;
      border-radius: 10px;
      border: 1px solid rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.08);
      color: #86efac;
      font-size: 11px;
      font-weight: 800;
      cursor: pointer;
    }
    .propai-chat-parlay-btn.added {
      border-color: rgba(34, 197, 94, 0.55);
      background: rgba(34, 197, 94, 0.18);
    }

    .propai-chat-followups {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
    }

    .propai-chat-followup-chip {
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: #94a3b8;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }

    /* Hidden until PropAI chat shell mounts composer into the mobile footer stack. */
    .propai-chat-composer-dock {
      display: none;
    }

    /* PropAI Gemini-style chat — iPhone, iPad (incl. landscape), Android; not width-gated */
    body.propedge-chat-v2-mobile.propai-mode .live-games {
      display: none !important;
    }

    body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: 0 !important;
        padding-bottom: 0 !important;
        overflow: hidden;
      }

      /* .app-layout/.main-content are intentionally content-sized elsewhere on mobile
         (".site-shell-content .app-layout, .app-layout .main-content { flex: 0 0 auto }")
         so .site-shell-main can scroll whole-page tabs like Markets/Home as one unit.
         That same rule leaks into the PropAI chat tab and defeats its own internal
         scroll: #aiChatMessages never gets a stable bounded height to scroll within,
         so the composer drifts with the outer page scroll instead of staying put.
         Restore the bounded flex column here so only #aiChatMessages scrolls.
         .main-content only gets display:flex from the desktop (min-width:1367px)
         rule elsewhere in this file — on mobile it's plain display:block, which
         makes every flex/min-height property on its children (#recommendationsContainer
         etc.) inert. Must set display:flex here too, not just sizing. */
      /* Scoped to mobile viewport width, not just the chat-v2 class: desktop also
         carries body.propedge-chat-v2-mobile.propai-mode now (PropAI was unified onto
         one native thread for every platform), but desktop's .app-layout/.main-content
         already get their own display:flex + real sizing from the min-width:1367px
         rules elsewhere in this file. Forcing height:0 on those here collapsed the
         whole PropAI panel on desktop — this only belongs on the mobile layout. */
      @media (max-width: 1366px) {
        body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell {
          display: flex !important;
          flex-direction: column !important;
          flex: 1 1 auto !important;
          min-height: 0 !important;
          height: 100% !important;
          overflow: hidden !important;
        }

        body.propedge-chat-v2-mobile.propai-mode .site-shell-main {
          overflow: hidden !important;
          display: flex !important;
          flex-direction: column !important;
          flex: 1 1 auto !important;
          min-height: 0 !important;
          height: auto !important;
        }

        body.propedge-chat-v2-mobile.propai-mode .app-layout {
          flex: 1 1 auto !important;
          height: 0 !important;
          min-height: 0 !important;
          overflow: hidden !important;
          display: flex !important;
          flex-direction: column !important;
          padding-bottom: 0 !important;
        }

        body.propedge-chat-v2-mobile.propai-mode .main-content {
          display: flex !important;
          flex-direction: column !important;
          flex: 1 1 auto !important;
          height: 0 !important;
          min-height: 0 !important;
          overflow: hidden !important;
        }
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-unified {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0;
        padding: 0;
      }

      /* .propai-desk (Analyst Desk redesign) never got its own flex-grow, so it
         sized to its own content instead of filling this column — leaving the
         sticky bottom nav stranded above a gap of empty space on short pages. */
      body.propedge-chat-v2-mobile.propai-mode .propai-desk {
        flex: 1 1 auto;
        min-height: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-surface {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-section-nav,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-hero-panel,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-secondary-row,
      body.propedge-chat-v2-mobile.propai-mode .propai-upcoming-stage,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-intro,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-toolbar,
      body.propedge-chat-v2-mobile.propai-mode .propai-quick-stack,
      body.propedge-chat-v2-mobile.propai-mode .propai-mobile-browse-trigger,
      body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="markets"],
      body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="slate"],
      body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="generative"],
      body.propedge-chat-v2-mobile.propai-mode .propai-browser-backdrop {
        display: none !important;
      }

      /* Explicit Generative UI selection on mobile chat — fullscreen native panel */
      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-section-nav {
        display: flex !important;
        flex-shrink: 0;
        gap: 8px;
        padding: 8px 12px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-section-stack[data-propai-section="analyst"] {
        display: none !important;
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-section-stack[data-propai-section="generative"] {
        display: flex !important;
        flex: 1;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-generative-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        border: none;
        background: transparent;
        box-shadow: none;
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-generative-panel .propai-panel-header {
        flex-shrink: 0;
        padding: 8px 14px 0;
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus #propedgeGenNative {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 16px);
      }

      body.propedge-chat-v2-mobile.propai-mode.propai-generative-focus .propai-chat-composer-dock {
        display: none !important;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="analyst"] {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-shell {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        justify-content: flex-start;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-conversation-panel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        padding: 0;
        overflow: hidden;
      }

      @media (max-width: 1366px) {
        body.propedge-chat-v2-mobile.propai-mode .propai-analyst-conversation-panel .propai-panel-header {
          display: none;
        }
      }

      body.propedge-chat-v2-mobile.propai-mode #aiChatMessages {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 12px 14px 16px;
        scroll-padding-bottom: 16px;
        border: none;
        border-radius: 0;
        background: transparent;
        -webkit-overflow-scrolling: touch;
      }

      body.propedge-chat-v2-mobile.propai-mode:not(.propai-generative-focus) .propai-chat-composer-dock {
        display: block;
        flex: 0 0 auto;
        order: 98;
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        z-index: 115;
        margin: 0;
        padding: 10px 12px 12px;
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85) 35%);
        border-top: none;
        box-shadow: none;
        pointer-events: auto;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-scope-bar,
      body.propedge-chat-v2-mobile.propai-mode #propaiChatScopeBar {
        display: none !important;
      }

      body.propedge-chat-v2-mobile.propai-mode .site-mobile-bottom-nav {
        /* position:fixed, anchored to the real viewport bottom — not relative
           and not sticky. Both of those stay in normal document flow, so
           when the flex column above them (Analyst Desk / chat content) is
           shorter than the viewport, they render right after the short
           content instead of at the true screen edge, leaving a gap below.
           Sticky in particular only re-anchors an element that would
           otherwise scroll out of view; with nothing to scroll (content
           shorter than its container, no overflow) it never engages and
           behaves exactly like relative. Fixed positioning is immune to all
           of that — it always sits at the true bottom of the visual
           viewport regardless of how tall the content above it is. */
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100%;
      }
      /* Fixed nav no longer reserves its own space in the flex column, so the
         scrollable content behind it needs its own clearance. */
      body.propedge-chat-v2-mobile.propai-mode .propai-desk .pad-surface {
        padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 16px) !important;
      }

      @media (max-width: 899px) {
        body.propedge-chat-v2-mobile.propai-mode .pe-native-composer {
          position: fixed !important;
          left: 0 !important;
          right: 0 !important;
          bottom: var(--pe-mobile-bottom-nav-h, 76px) !important;
          z-index: 2130 !important;
          width: 100% !important;
          margin: 0 !important;
          padding: 10px 16px 12px !important;
          background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92) 28%) !important;
          border: 0 !important;
          box-shadow: none !important;
        }

        body.propedge-chat-v2-mobile.propai-mode #aiChatMessages {
          padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 76px) + 84px + env(safe-area-inset-bottom, 0px)) !important;
        }
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-shell {
        margin: 0;
        padding: 0;
        position: relative;
        display: flex !important;
        align-items: center;
        gap: 0;
        width: 100%;
        min-height: 0;
        background: rgba(13, 16, 13, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 22px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
        backdrop-filter: blur(20px) saturate(1.25);
        -webkit-backdrop-filter: blur(20px) saturate(1.25);
        isolation: auto;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-shell::before {
        display: none !important;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-try,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-icon {
        display: none !important;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock #aiChatInput {
        flex: 1;
        min-height: 44px;
        padding: 11px 84px 11px 16px;
        border-radius: 22px;
        border: none;
        background: transparent;
        font-size: 16px;
        line-height: 1.25;
        color: var(--pe-text, #e7ece7);
        -webkit-text-fill-color: var(--pe-text, #e7ece7);
        touch-action: manipulation;
        box-shadow: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-newchat {
        position: absolute;
        right: 46px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 32px;
        height: 32px;
        z-index: 2;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-newchat:active {
        transform: translateY(-50%) scale(0.94);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock #aiChatInput::placeholder {
        color: var(--pe-muted, #8a978c);
        opacity: 1;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-send {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(145deg, #39ff6a, #22c55e);
        color: #041208;
        font-size: 14px;
        font-weight: 800;
        z-index: 2;
        touch-action: manipulation;
        box-shadow: 0 0 16px rgba(57, 255, 106, 0.35);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock .propai-query-send:active {
        transform: translateY(-50%) scale(0.96);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-pick-head {
        display: flex;
        align-items: flex-start;
        gap: 10px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-pick-art {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-pick-art .prop-headshot-wrap,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-pick-art .prop-headshot,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-pick-art .prop-headshot-fallback {
        width: 44px;
        height: 44px;
        border-radius: 50%;
      }

      /* iPhone / narrow PropAI: single-column strip — 2-col crushes names + matchups. */
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-strip {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        margin: 0 0 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        width: 100%;
        padding: 8px 10px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-art {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-art .prop-headshot-wrap,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-headshot,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-art .prop-headshot,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-art .prop-headshot-fallback,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-fallback {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border-width: 2px;
        box-shadow: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-fallback {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        font-weight: 700;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-meta {
        min-width: 0;
        flex: 1;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-name {
        font-size: 14px;
        font-weight: 800;
        color: #fff;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-team {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.68);
        margin-top: 2px;
        min-width: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-chip-matchup-text {
        display: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-team > span:not(.propai-chat-chip-logos):not(.propai-chat-chip-vs) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        line-height: 1.3;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-player-chip-line {
        font-size: 12px;
        font-weight: 600;
        color: rgba(226, 232, 240, 0.88);
        margin-top: 2px;
        line-height: 1.25;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-section-card {
        width: 100%;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-section-art .prop-headshot-wrap,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-section-art .prop-headshot,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-section-art .prop-headshot-fallback {
        width: 44px;
        height: 44px;
        border-radius: 50%;
      }

      /* Desktop: neat 2-col cards — keep headshots compact, not 88px heroes. */
      @media (min-width: 900px) {
        body.propai-mode .propai-chat-player-strip {
          display: grid !important;
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 10px 14px !important;
          margin-bottom: 16px !important;
          padding-bottom: 14px !important;
        }

        body.propai-mode .propai-chat-player-chip {
          gap: 12px !important;
          padding: 10px 12px !important;
        }

        body.propai-mode .propai-chat-player-chip-art {
          flex: 0 0 52px !important;
          width: 52px !important;
          height: 52px !important;
        }

        body.propai-mode .propai-chat-player-chip-art .prop-headshot-wrap,
        body.propai-mode .propai-chat-player-headshot,
        body.propai-mode .propai-chat-player-chip-art .prop-headshot,
        body.propai-mode .propai-chat-player-chip-art .prop-headshot-fallback,
        body.propai-mode .propai-chat-player-fallback {
          width: 52px !important;
          height: 52px !important;
          border-width: 2px !important;
          box-shadow: none !important;
        }

        body.propai-mode .propai-chat-player-fallback {
          font-size: 14px !important;
        }

        body.propai-mode .propai-chat-player-chip-name {
          font-size: 15px !important;
          line-height: 1.25 !important;
        }

        body.propai-mode .propai-chat-player-chip-team {
          font-size: 12px !important;
          gap: 6px !important;
        }

        body.propai-mode .propai-chat-inline-team-logo img,
        body.propai-mode .propai-chat-inline-team-logo .team-logo-fallback {
          width: 18px !important;
          height: 18px !important;
        }

        body.propai-mode .propai-chat-player-chip-line {
          font-size: 13px !important;
          text-shadow: none !important;
        }

        body.propai-mode .propai-chat-inline-headshot,
        body.propai-mode .propai-chat-inline-headshot-fallback {
          width: 48px !important;
          height: 48px !important;
          flex: 0 0 48px !important;
        }

        body.propai-mode .propai-chat-inline-player strong,
        body.propai-mode .propai-chat-pick-header strong {
          font-size: 15px !important;
        }

        body.propai-mode .propai-chat-pick-header {
          gap: 10px !important;
          margin-bottom: 8px !important;
        }

        body.propai-mode .propai-chat-stream-prose {
          font-size: 15px !important;
          line-height: 1.65 !important;
        }
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 16px;
        width: 100%;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.user {
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.user .propai-chat-meta {
        font-size: 10.5px;
        color: var(--pe-text-dim, #6d8a78);
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 0 2px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-tier-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-family: 'Barlow Condensed', var(--font-display), system-ui, sans-serif;
        font-weight: 800;
        font-size: 11px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: #39ff6a;
        margin-bottom: 8px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-tier-badge--fast {
        color: #8ba296;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-tier-pulse {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        box-shadow: 0 0 6px currentColor;
        flex: 0 0 auto;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.assistant {
        justify-content: flex-start;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-avatar.propai-chat-logo.logo-icon,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-logo.logo-icon {
        flex-shrink: 0;
        background: #05080e url('/brand-shield.png') center/contain no-repeat;
        border: 1px solid rgba(57, 255, 20, 0.22);
        box-shadow: 0 0 12px rgba(57, 255, 20, 0.18);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-avatar.propai-chat-logo.logo-icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        align-self: flex-end;
        margin-bottom: 2px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome-logo.logo-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 14px;
        border-radius: 14px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-avatar {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        color: #86efac;
        background: rgba(34, 197, 94, 0.12);
        border: 1px solid rgba(34, 197, 94, 0.28);
        margin-bottom: 2px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble.msg-content,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.user .msg-content {
        max-width: 82%;
        width: auto;
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.65;
        box-shadow: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.user .msg-content {
        border-radius: 18px 18px 4px 18px;
        background: linear-gradient(145deg, #39ff6a 0%, #22c55e 100%);
        border: none;
        color: #041208;
        font-weight: 600;
        box-shadow: 0 4px 18px rgba(57, 255, 106, 0.28);
        -webkit-text-fill-color: #041208;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.assistant .propai-chat-bubble.msg-content {
        border-radius: 18px 18px 18px 4px;
        background: transparent;
        border: none;
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        color: var(--pe-text, #e7ece7);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-avatar.propai-chat-logo.logo-icon {
        display: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-composer-dock {
        display: block;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        padding: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope-label {
        display: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope-row {
        display: grid;
        gap: 5px;
        width: 100%;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope-row--leagues {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-composer-scope-row--time {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-scope-chip {
        width: 100%;
        min-width: 0;
        min-height: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(15, 23, 42, 0.85);
        color: #94a3b8;
        border-radius: 8px;
        padding: 5px 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-align: center;
        line-height: 1.2;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-scope-chip.active {
        border-color: rgba(34, 197, 94, 0.5);
        background: rgba(34, 197, 94, 0.16);
        color: #bbf7d0;
        box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-stream-prose {
        color: #e7ecf3;
        font-size: 16px;
        line-height: 1.7;
        white-space: normal;
        margin: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-stream-prose p {
        margin: 0 0 14px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-stream-prose p:last-child {
        margin-bottom: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.assistant .propai-chat-tier,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .rich-analyst-report,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-picks,
      body.propedge-chat-v2-mobile.propai-mode .propai-analyst-section-cards {
        display: none !important;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-action-chip {
        border-color: rgba(167, 139, 250, 0.35);
        color: #ddd6fe;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .rich-analyst-report {
        width: 100%;
        max-width: 100%;
        margin: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-row.assistant .propai-chat-bubble.msg-content:has(.rich-analyst-report) {
        max-width: 100%;
        width: 100%;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .pe-lm-block,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .pe-lm-section-stack,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .pe-lm-prose,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .rich-game-rec-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .pe-rec-card,
      body.propedge-chat-v2-mobile.propai-mode .propai-chat-bubble .rich-prop-card {
        width: 100%;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-welcome {
        /* glossy welcome rules live with body.propai-mode .propai-chat-welcome--glossy */
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-followup-chip {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(57, 255, 106, 0.18);
        pointer-events: auto;
        padding: 6px 11px;
        border-radius: 999px;
        border: 1px solid rgba(57, 255, 106, 0.22);
        background: rgba(57, 255, 106, 0.1);
        color: var(--pe-text, #e7ece7);
        font-size: 11px;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-tier-pro {
        display: none;
      }

      body.propedge-chat-v2-mobile.propai-mode .propai-chat-tier-fast {
        color: #64748b;
        font-size: 11px;
        margin-bottom: 8px;
      }

    .propai-edge-scan-wrap { display: flex; flex-direction: column; gap: 10px; }
    .propai-edge-scan-wrap > .spinner { align-self: flex-start; }
    .propai-edge-scan-lede { margin: 0 0 8px; font-size: 13px; line-height: 1.45; color: var(--text-primary, #e8eef5); }
    .propai-edge-scan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .propai-edge-scan-step {
      display: flex; align-items: flex-start; gap: 8px;
      font-size: 12px; line-height: 1.35; color: rgba(232, 238, 245, 0.55);
      transition: color 0.2s ease;
    }
    .propai-edge-scan-check {
      flex: 0 0 14px; width: 14px; height: 14px; margin-top: 1px;
      border-radius: 50%; border: 1.5px solid rgba(0, 240, 160, 0.35);
      background: transparent;
    }
    .propai-edge-scan-step.is-done { color: var(--text-primary, #e8eef5); }
    .propai-edge-scan-step.is-done .propai-edge-scan-check {
      border-color: rgba(0, 240, 160, 0.9);
      background: rgba(0, 240, 160, 0.85);
      box-shadow: 0 0 0 2px rgba(0, 240, 160, 0.15);
    }

    .ai-pick-card {
      background: rgba(255,255,255,0.045);
      border: 1px solid rgba(255,255,255,0.09);
      border-radius: 14px;
      padding: 14px;
      margin-bottom: 12px;
      content-visibility: auto;
      contain-intrinsic-size: auto 220px;
      contain: layout style;
    }

    .ai-pick-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .ai-pick-player {
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 900;
    }

    .ai-pick-market {
      color: var(--text-secondary);
      font-size: 12px;
      margin-top: 2px;
    }

    .ai-rec-badge {
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.4px;
      white-space: nowrap;
    }

    .ai-rec-badge.buy {
      color: var(--accent-green);
      background: rgba(0, 240, 160, 0.14);
      border: 1px solid rgba(0, 240, 160, 0.28);
    }

    .ai-rec-badge.lean {
      color: var(--accent-gold);
      background: rgba(255, 184, 92, 0.14);
      border: 1px solid rgba(255, 184, 92, 0.28);
    }

    .ai-rec-badge.pass {
      color: var(--text-muted);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
    }

    .ai-factor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
      gap: 8px;
      margin: 10px 0;
    }

    .ai-factor {
      background: rgba(0,0,0,0.16);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 10px;
      padding: 8px;
    }

    .ai-factor-label {
      color: var(--text-muted);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 3px;
    }

    .ai-factor-value {
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 800;
    }

    .ai-reason-list {
      margin: 10px 0 0;
      padding-left: 17px;
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.55;
    }

    .ai-risk-note {
      margin-top: 10px;
      padding: 9px 10px;
      border-radius: 10px;
      background: rgba(255,184,92,0.09);
      color: var(--text-secondary);
      font-size: 11px;
      line-height: 1.45;
    }

    .msg-timestamp {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 6px;
      font-weight: 500;
    }

    .ai-analysis-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 12px;
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .ai-analysis-card:hover {
      border-color: var(--accent-green);
      box-shadow: 0 8px 20px rgba(0, 240, 160, 0.15);
      transform: translateY(-2px);
    }

    .ai-league-header {
      font-size: 13px;
      font-weight: 700;
      color: var(--accent-green);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ai-league-header.nba { color: var(--accent-orange); }
    .ai-league-header.nhl { color: var(--accent-blue); }
    .ai-league-header.mlb { color: var(--accent-red); }

    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Navigation Tabs */
    .nav-tabs {
      display: flex;
      flex-wrap: nowrap;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      overflow-x: auto;
      scrollbar-width: none;
      scroll-behavior: smooth;
      justify-content: flex-start;
      align-items: stretch;
      width: 100%;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      scroll-snap-type: x proximity;
      touch-action: pan-x;
      min-height: 62px;
      cursor: grab;
    }

    .nav-tabs::-webkit-scrollbar { display: none; }

    .nav-tab {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 12px 10px;
      font-size: 11px;
      color: var(--text-muted);
      cursor: pointer;
      transition: color 0.3s;
      border-bottom: 2px solid transparent;
      position: relative;
      flex: 0 0 clamp(64px, 10.5vw, 108px);
      min-width: 64px;
      max-width: none;
      text-align: center;
      white-space: nowrap;
      user-select: none;
      touch-action: pan-x;
      -webkit-tap-highlight-color: transparent;
      scroll-snap-align: center;
    }

    .nav-tab-icon {
      pointer-events: none;
    }

    .nav-tabs.is-dragging {
      cursor: grabbing;
      scroll-snap-type: none;
    }

    @media (max-width: 767px) {
      .nav-tabs {
        justify-content: flex-start;
        padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left));
        gap: 2px;
      }
      .nav-tab {
        flex: 0 0 auto;
        min-width: 58px;
        max-width: none;
        padding: 10px 9px;
      }
      .nav-tab-icon { font-size: 17px; }
    }

    @media (min-width: 480px) {
      .nav-tab {
        padding: 12px 14px;
        font-size: 12px;
        min-width: 65px;
      }
    }

    @media (min-width: 768px) {
      .nav-tab {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 75px;
      }
    }

    @media (min-width: 1200px) {
      .nav-tab {
        padding: 14px 20px;
        font-size: 14px;
        min-width: 85px;
      }
    }

    .nav-tab.active {
      color: var(--accent-green);
      border-bottom-color: var(--accent-green);
      animation: underlineSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-tab-icon { font-size: 18px; }

    .filter-section {
      padding: 12px 16px;
      background: var(--bg-primary);
      border-bottom: 1px solid var(--border-color);
      /* Prevent layout shift */
      contain: layout style;
      min-height: 60px;
    }

    @media (min-width: 768px) {
      .filter-section {
        padding: 14px 32px;
      }
    }

    @media (min-width: 1200px) {
      .filter-section {
        padding: 14px 48px;
      }
    }

    .filter-pills {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 4px;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
      /* GPU acceleration to eliminate scroll jitter */
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      will-change: scroll-position;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    @media (min-width: 768px) {
      .filter-pills {
        justify-content: flex-start;
        gap: 14px;
      }
    }

    .filter-pills::-webkit-scrollbar { display: none; }

    .filter-pill {
      flex-shrink: 0;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.14s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
      border: 1.5px solid var(--border-color);
      background: var(--bg-tertiary);
      color: var(--text-secondary);
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .filter-pill:active {
      transform: scale(0.97);
    }

    @media (min-width: 768px) {
      .filter-pill {
        padding: 10px 24px;
        font-size: 13px;
      }
    }

    .filter-pill.active {
      background: linear-gradient(135deg, #34d399, #22c55e);
      color: #04120a;
      border-color: rgba(34, 197, 94, 0.55);
      box-shadow:
        0 8px 24px rgba(34, 197, 94, 0.28),
        0 0 18px rgba(34, 197, 94, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.18);
      transform: translateY(-2px) scale(1.03);
      font-weight: 700;
      letter-spacing: 0.4px;
    }

    /* ════════════════════════════════════════════════════════════════ */
    /* COMPREHENSIVE RESPONSIVE DESIGN - ALL BREAKPOINTS               */
    /* ════════════════════════════════════════════════════════════════ */

    /* Small phones (< 480px) */
    @media (max-width: 479px) {
      body { font-size: 14px; line-height: 1.5; }
      button, .button { min-height: 44px; min-width: 44px; padding: 10px 12px; font-size: 12px; }
      input, textarea, select { min-height: 44px; padding: 10px 12px; font-size: 16px; }
      .header {
        padding: calc(24px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
      }
      .header-top { align-items: center; gap: 6px; margin-bottom: 4px; }
      .header-actions { gap: 4px; max-width: 47vw; }
      .logo { gap: 6px; min-width: 0; }
      .logo-icon { width: 34px; height: 34px; }
      .logo-text { font-size: 18px; }
      #emailPillBtn { max-width: 68px !important; padding: 3px 6px !important; font-size: 10px !important; }
      #getAlertsBtn { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; line-height: 24px !important; font-size: 12px !important; }
      .live-indicator { max-width: 74px; padding: 3px 5px; font-size: 8.5px; white-space: nowrap; }
      .nav-tabs { padding: 8px 4px; }
      /* nav in flex flow → no fixed nav to clear; propai-mode handled below */
      .props-container { padding: 8px; padding-bottom: 24px; }
      body.propai-mode .props-container { padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom)); }
      .prop-card { padding: 12px; margin-bottom: 8px; }
      h1 { font-size: 20px; }
      h2 { font-size: 16px; }
      h3 { font-size: 14px; }
    }

    /* Medium phones (480px - 767px) */
    @media (min-width: 480px) and (max-width: 767px) {
      body { font-size: 14px; line-height: 1.6; }
      button, .button { min-height: 44px; padding: 10px 14px; font-size: 13px; }
      input, textarea, select { min-height: 44px; padding: 10px 14px; font-size: 16px; }
      .header {
        padding: calc(22px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
      }
      .logo-icon { width: 38px; height: 38px; }
      .logo-text { font-size: 20px; }
      .header-actions { max-width: 48vw; }
      #emailPillBtn { max-width: 96px !important; }
      .live-indicator { max-width: 86px; white-space: nowrap; }
      .props-container { padding: 12px; padding-bottom: 24px; }
      body.propai-mode .props-container { padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom)); }
      .prop-card { padding: 14px; }
      h1 { font-size: 22px; }
      h2 { font-size: 17px; }
      h3 { font-size: 15px; }
      .props-grid { --grid-cols: 1fr; gap: 12px; }
    }

    /* Tablets (768px - 1023px) */
    /* Small tablet — iPad mini portrait (700–767px) */
    @media (min-width: 700px) and (max-width: 767px) {
      body { font-size: 15px; line-height: 1.6; }
      .header {
        padding: 16px 24px 12px;
        padding-top: max(24px, calc(18px + env(safe-area-inset-top)));
      }
      .header-actions { max-width: 44vw; }
      #emailPillBtn { max-width: 96px !important; font-size: 11px !important; padding: 4px 10px !important; }
      #getAlertsBtn { width: 28px !important; height: 28px !important; line-height: 26px !important; }
      .props-container { padding: 14px 20px; }
      .prop-card { padding: 15px; }
    }

    @media (min-width: 768px) and (max-width: 1366px) {
      body { font-size: 15px; line-height: 1.6; }
      button, .button { min-height: 44px; padding: 11px 16px; font-size: 14px; }
      .header {
        padding: 18px 32px 14px;
        padding-top: max(26px, calc(20px + env(safe-area-inset-top)));
        padding-left: max(28px, env(safe-area-inset-left));
        padding-right: max(28px, env(safe-area-inset-right));
      }
      .header-actions { max-width: 42vw; }
      .props-container { padding: 16px 24px; }
      .prop-card { padding: 16px; }
      h1 { font-size: 26px; }
      h2 { font-size: 20px; }
      h3 { font-size: 17px; }
      .props-grid { --grid-cols: repeat(2, 1fr); gap: 18px; }
    }

    /* Large tablets (1024px - 1199px) */
    @media (min-width: 1367px) and (max-width: 1480px) {
      body { font-size: 15px; line-height: 1.6; }
      button, .button { min-height: 44px; padding: 12px 18px; font-size: 14px; }
      .header {
        padding: 18px 40px 14px;
        padding-top: max(24px, calc(18px + env(safe-area-inset-top)));
        padding-left: max(36px, env(safe-area-inset-left));
        padding-right: max(36px, env(safe-area-inset-right));
      }
      .props-container { padding: 20px 32px; }
      .prop-card { padding: 18px; }
      h1 { font-size: 28px; }
      h2 { font-size: 22px; }
      h3 { font-size: 18px; }
      .props-grid { --grid-cols: repeat(2, 1fr); gap: 20px; }
    }

    /* Desktop (1200px - 1599px) */
    @media (min-width: 1200px) and (max-width: 1599px) {
      body { font-size: 15px; line-height: 1.7; }
      button, .button { min-height: 44px; padding: 12px 20px; font-size: 14px; }
      .header {
        padding: 16px 48px;
        padding-top: max(20px, calc(16px + env(safe-area-inset-top)));
        padding-left: max(48px, env(safe-area-inset-left));
        padding-right: max(48px, env(safe-area-inset-right));
      }
      .props-container { padding: 24px 48px; }
      .prop-card { padding: 20px; }
      h1 { font-size: 30px; }
      h2 { font-size: 24px; }
      h3 { font-size: 19px; }
      .props-grid { --grid-cols: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
    }

    /* Large desktop (1600px+) */
    @media (min-width: 1600px) {
      body { font-size: 16px; line-height: 1.7; }
      button, .button { min-height: 44px; padding: 12px 24px; font-size: 15px; }
      .header {
        padding: 18px 64px;
        padding-top: max(22px, calc(18px + env(safe-area-inset-top)));
        padding-left: max(64px, env(safe-area-inset-left));
        padding-right: max(64px, env(safe-area-inset-right));
      }
      .props-container { padding: 28px 64px; max-width: none; margin: 0; }
      .prop-card { padding: 24px; }
      h1 { font-size: 32px; }
      h2 { font-size: 26px; }
      h3 { font-size: 20px; }
      .props-grid { --grid-cols: repeat(auto-fill, minmax(360px, 1fr)); gap: 32px; }
    }

    /* v7.74 — mobile Props tab card readability */
    @media (max-width: 1366px) {
      .props-container .prop-player-name {
        font-size: 20px;
      }

      .props-container .prop-player-meta,
      .props-container .prop-type {
        font-size: 13px;
      }

      .props-container .prop-value {
        font-size: 21px;
      }

      .props-container .prop-direction {
        font-size: 13px;
        padding: 6px 13px;
      }

      .props-container .prop-scores-wrap .propiq-container,
      .props-container .prop-scores-wrap .propiq-badge-glow {
        width: 92px;
        height: 92px;
      }

      .props-container .prop-scores-wrap .propiq-number-display {
        font-size: 30px;
        font-weight: 900;
      }

      .props-container .prop-scores-wrap .propiq-logo {
        font-size: 11px;
        margin-top: 0;
      }

      .props-container .prop-scores-wrap .propiq-container {
        gap: 3px;
        min-height: 98px;
      }

      .props-container .prop-score-label {
        font-size: 10px;
      }
    }

    /* Prop card scroll performance — content-visibility defers off-screen paint */
    .prop-card {
      content-visibility: auto;
      contain-intrinsic-size: auto 280px;
      contain: layout style;
    }

    /* iOS/Safari: disable content-visibility — WebKit has scroll position bugs with it */
    body.no-content-visibility .prop-card,
    body.no-content-visibility .propai-market-row--deck,
    body.no-content-visibility .portfolio-entry {
      content-visibility: visible !important;
      contain-intrinsic-size: none !important;
      contain: none !important;
    }

    /* Mobile: always paint prop cards — content-visibility/backface leave blue gaps mid-scroll */
    @media (max-width: 1366px) {
      .props-container,
      .props-grid,
      .site-mobile-props-board {
        content-visibility: visible !important;
        contain-intrinsic-size: none !important;
        contain: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
        will-change: auto !important;
      }

      /* Same content-visibility scroll-repaint bug as .prop-card above, but
         scoped minimally: only disable content-visibility itself, not contain/
         transform/backface — .portfolio-entry doesn't use those for its own
         positioning, and disabling them unconditionally risked interacting
         with the Portfolio tab's own scroll-container setup. */
      .portfolio-entry {
        content-visibility: visible !important;
        contain-intrinsic-size: none !important;
      }

      .site-mobile-nav-btn:not(.active) {
        background: transparent !important;
        color: var(--text-muted) !important;
      }
    }

    /* Mobile-specific safe area adjustments */
    @media (max-width: 767px) {
      body { background-attachment: scroll; }
      .header {
        top: 0;
        padding-top: max(24px, calc(18px + env(safe-area-inset-top)));
        padding-bottom: 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
      }
      .nav-tabs {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding-left: max(4px, env(safe-area-inset-left));
        padding-right: max(4px, env(safe-area-inset-right));
        padding-bottom: env(safe-area-inset-bottom);
      }
      .props-container {
        padding-left: max(8px, env(safe-area-inset-left));
        padding-right: max(8px, env(safe-area-inset-right));
        padding-bottom: 16px;
      }
    }

    @media (min-width: 1200px) {
      .nav-tabs { justify-content: space-around; }
      .nav-tab { flex: 1 1 0; max-width: 132px; }
    }

    /* Touch device optimization */
    @media (hover: none) and (pointer: coarse) {
      button, .button, a[role="button"], .filter-pill, .nav-tab {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        touch-action: manipulation;
      }
      body { background-attachment: scroll; }
      .prop-card:active { transform: scale(0.98); }
    }

    .filter-pill:hover:not(.active) {
      transform: scale(1.1);
      border-color: var(--accent-orange);
      color: var(--accent-orange);
      background: rgba(255, 107, 53, 0.1);
      box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
      animation: filterGlow 1.2s ease-in-out infinite;
    }

    .filter-pill.ultimate { border-color: var(--accent-gold); color: var(--accent-gold); }
    .filter-pill.ultimate.active {
      background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
      color: var(--bg-primary);
      border-color: var(--accent-gold);
      box-shadow: 0 6px 20px rgba(255, 215, 64, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .filter-pill.prime { border-color: var(--accent-purple); color: var(--accent-purple); }
    .filter-pill.prime.active {
      background: linear-gradient(135deg, var(--accent-purple), rgb(200, 150, 255));
      color: var(--bg-primary);
      border-color: var(--accent-purple);
      box-shadow: 0 6px 20px rgba(179, 136, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .filter-pill.strong { border-color: var(--accent-green); color: var(--accent-green); }
    .filter-pill.strong.active {
      background: linear-gradient(135deg, var(--accent-green), rgb(50, 255, 150));
      color: var(--bg-primary);
      border-color: var(--accent-green);
      box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
      font-weight: 700;
      letter-spacing: 0.5px;
    }
    .filter-pill.value { border-color: var(--accent-blue); color: var(--accent-blue); }
    .filter-pill.value.active {
      background: linear-gradient(135deg, var(--accent-blue), rgb(100, 180, 255));
      color: var(--bg-primary);
      border-color: var(--accent-blue);
      box-shadow: 0 4px 12px rgba(68, 138, 255, 0.3);
    }

    /* Sort & Count */
    .sort-bar {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .sort-spotlight {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 6px;
      border-radius: 16px;
      background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(13, 24, 43, 0.96), rgba(10, 18, 34, 0.98));
      border: 1px solid rgba(99, 102, 241, 0.22);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 10px 24px rgba(0,0,0,0.18);
    }

    .sort-spotlight-copy {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-left: 6px;
    }

    .sort-spotlight-label {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #8ea3c0;
    }

    .sort-spotlight-value {
      font-size: 18px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: var(--accent-green);
      text-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
    }

    .propiq-grading-guide {
      margin: 0 16px 10px;
      padding: 0;
      border-radius: 12px;
      border: 1px solid rgba(99, 102, 241, 0.22);
      background: linear-gradient(180deg, rgba(13, 24, 43, 0.92), rgba(10, 18, 34, 0.96));
      font-size: 12px;
      color: var(--text-secondary);
    }
    .propiq-grading-guide summary {
      cursor: pointer;
      list-style: none;
      padding: 10px 14px;
      font-weight: 700;
      font-size: 12px;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .propiq-grading-guide summary::-webkit-details-marker { display: none; }
    .propiq-grading-guide summary::after {
      content: '▾';
      margin-left: auto;
      font-size: 11px;
      color: var(--text-muted);
      transition: transform 0.2s ease;
    }
    .propiq-grading-guide[open] summary::after { transform: rotate(180deg); }
    .propiq-grading-body {
      padding: 0 14px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .propiq-grading-intro {
      margin: 12px 0 10px;
      line-height: 1.5;
      color: var(--text-secondary);
    }
    .propiq-grading-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 720px) {
      .propiq-grading-grid { grid-template-columns: 1fr; }
    }
    .propiq-grading-col h4 {
      margin: 0 0 8px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #a5b4fc;
    }
    .propiq-grading-col ul {
      margin: 0;
      padding-left: 18px;
      line-height: 1.55;
    }
    .propiq-grading-col li { margin-bottom: 6px; }
    .propiq-grading-col li strong { color: var(--text-primary); }
    .propiq-grading-foot {
      margin-top: 10px;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.45;
    }
    .propai-markets-page .propiq-grading-guide {
      margin: 4px 0 14px;
    }

    @media (max-width: 480px) {
      .sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }
      .sort-bar > .sort-spotlight {
        width: 100%;
        order: 1;
      }
      .sort-bar > .prop-count {
        text-align: center;
        font-size: 12px;
        order: 2;
      }
      .sort-bar > button {
        width: 100%;
        text-align: center;
        font-size: 12px !important;
        padding: 10px 12px !important;
        margin-left: 0 !important;
      }
      .sort-bar > #syncOutcomesBtn {
        order: 3;
      }
      .sort-bar > #exportOutcomesBtn {
        order: 4;
      }
    }

    @media (min-width: 481px) and (max-width: 767px) {
      .sort-bar {
        gap: 10px;
      }
      .sort-bar > .sort-spotlight {
        flex: 1 1 100%;
      }
      .sort-bar > .prop-count {
        flex: 0 0 auto;
      }
      .sort-bar > button {
        flex: 1 1 calc(50% - 5px);
        margin-left: 0 !important;
        font-size: 12px !important;
      }
    }

    @media (min-width: 768px) {
      .sort-bar {
        padding: 12px 32px;
        max-width: 100%;
      }
    }

    @media (min-width: 1200px) {
      .sort-bar {
        padding: 12px 48px;
      }
    }

    .sort-select {
      min-width: 182px;
      background: rgba(5, 12, 24, 0.92);
      border: 1px solid rgba(125, 255, 152, 0.22);
      border-radius: 12px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 800;
      color: #eafff0;
      font-family: inherit;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
    }

    @media (max-width: 480px) {
      .sort-select {
        width: 100%;
        min-width: 0;
        font-size: 13px;
      }
    }

    .prop-count {
      font-family: 'JetBrains Mono', monospace;
      color: var(--text-muted);
      font-size: 12px;
      letter-spacing: 0.02em;
    }

    /* Props List - Responsive */
    .props-container {
      width: 100%;
      max-width: 100vw;
      padding: 12px;
      padding-bottom: 24px;
      overflow-x: hidden;
      box-sizing: border-box;
      /* Avoid mobile compositor blanking during very fast prop scrolling */
      transform: none;
      -webkit-transform: none;
      will-change: auto;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      /* Prevent layout shift during content swap */
      min-height: 200px;
      /* Stop browser from 'correcting' scroll during expansions */
      overflow-anchor: none;
    }

    /* Disable transitions during content swap to eliminate jitter */
    .props-container.no-transitions,
    .props-container.no-transitions .prop-card,
    .props-container.no-transitions .prop-grid {
      transition: none !important;
      animation: none !important;
    }

    /* Desktop: wider container with grid */
    @media (min-width: 768px) {
      .props-container {
        max-width: 100%;
        padding: 16px 24px 120px;
      }
    }

    /* Grid layout for larger screens */
    .props-grid {
      display: grid;
      grid-template-columns: var(--grid-cols, 1fr);
      gap: 16px;
      /* CSS containment: prevent layout thrashing */
      /* will-change: grid-template-columns removed — invalid hint, just adds overhead */
      contain: layout;
    }

    @media (min-width: 768px) {
      .props-grid {
        --grid-cols: repeat(2, 1fr);
        gap: 22px;
      }
    }

    @media (min-width: 1400px) {
      .props-grid {
        --grid-cols: repeat(auto-fill, minmax(360px, 1fr));
        gap: 28px;
      }
    }

    @media (min-width: 1600px) {
      .props-grid {
        --grid-cols: repeat(auto-fill, minmax(380px, 1fr));
        gap: 36px;
      }
    }

    .prop-card {
      background:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(57, 255, 20, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(165deg, #0c1018 0%, #05080e 55%, #000000 100%);
      border: 1px solid transparent;
      background-clip: padding-box;
      border-radius: 24px;
      box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(57, 255, 20, 0.14);
      overflow: hidden;
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                  box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 0.25s ease;
                  /* background removed: triggers full repaint on every transition frame */
      /* GPU acceleration for card animations */
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      height: fit-content;
      position: relative;
      /* Prevent card from triggering scroll jumps when height changes */
      overflow-anchor: none;
    }

    /* Soft tier wash + top glow bar */
    .prop-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 12px;
      right: 12px;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, currentColor, transparent);
      opacity: 0.55;
      transition: opacity 0.3s;
      pointer-events: none;
      z-index: 2;
    }

    .prop-card > * {
      position: relative;
      z-index: 1;
    }

    .prop-card.ultimate::before { color: #fbbf24; opacity: 0.85; }
    .prop-card.prime::before { color: #a78bfa; opacity: 0.8; }
    .prop-card.strong::before { color: #39ff14; opacity: 0.8; }
    .prop-card.solid::before { color: #38bdf8; opacity: 0.75; }

    .prop-card.ultimate {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(251, 191, 36, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(251, 146, 60, 0.08), transparent 50%),
        linear-gradient(165deg, #17140f 0%, #0c0a08 100%);
      border-color: rgba(251, 191, 36, 0.28);
    }
    .prop-card.prime {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(167, 139, 250, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.08), transparent 50%),
        linear-gradient(165deg, #13121a 0%, #0a0910 100%);
      border-color: rgba(167, 139, 250, 0.28);
    }
    .prop-card.strong {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(57, 255, 20, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(34, 197, 94, 0.08), transparent 50%),
        linear-gradient(165deg, #0f1612 0%, #080c0a 100%);
      border-color: rgba(57, 255, 20, 0.24);
    }
    .prop-card.solid {
      background:
        radial-gradient(ellipse 100% 70% at 10% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(14, 165, 233, 0.08), transparent 50%),
        linear-gradient(165deg, #0e141a 0%, #080a0e 100%);
      border-color: rgba(56, 189, 248, 0.24);
    }

    .prop-card-clickable {
      display: block;
    }

    .prop-process-layers {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      padding: 6px 14px 2px;
    }

    .process-layer-chip {
      font-size: 10px;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      letter-spacing: 0.3px;
    }

    .process-layer-chip.layer-vol {
      background: rgba(0, 240, 160, 0.12);
      color: #00f0a0;
      border-color: rgba(0, 240, 160, 0.3);
    }

    .process-layer-chip.layer-ctx {
      background: rgba(93, 173, 226, 0.12);
      color: #5dade2;
      border-color: rgba(93, 173, 226, 0.3);
    }

    .process-layer-chip.layer-conv {
      background: rgba(255, 215, 0, 0.1);
      color: #ffd966;
      border-color: rgba(255, 215, 0, 0.25);
    }

    @media (hover: hover) {
    .prop-card:hover {
      border-color: var(--accent-green);
      transform: translateY(-12px) scale(1.02);
      box-shadow:
        0 16px 48px rgba(0, 240, 160, 0.2),
        0 0 0 1px rgba(0, 240, 160, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.1);
      animation: cardHoverGlow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      will-change: transform;
    }
    .prop-card.hot:hover {
      border-color: var(--accent-red);
      box-shadow:
        0 16px 48px rgba(255, 107, 107, 0.25),
        0 0 0 1px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .prop-card.ultimate:hover {
      border-color: var(--accent-gold);
      box-shadow:
        0 16px 48px rgba(255, 215, 0, 0.25),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .prop-card:hover::before { opacity: 1; }
    } /* end hover:hover */

    @keyframes cardHoverGlow {
      0% { transform: translateY(0) scale(1); }
      60% { transform: translateY(-14px) scale(1.025); }
      100% { transform: translateY(-12px) scale(1.02); }
    }

    .prop-card.ultimate,
    .prop-card.prime,
    .prop-card.strong,
    .prop-card.solid {
      border-left-width: 1px;
    }

    .prop-card:active { transform: scale(0.98); }

    /* Player headshot */
    .prop-headshot-wrap {
      position: relative;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
    }

    .prop-headshot {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top center;
      border: 3px solid var(--border-color);
      background: var(--bg-tertiary);
      transition: border-color 0.3s, box-shadow 0.3s;
      display: block;
      box-shadow: 0 0 20px rgba(57, 255, 20, 0.18);
    }

    .prop-card:hover .prop-headshot {
      border-color: var(--accent-green);
      box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
    }

    .prop-headshot.ultimate { border-color: var(--accent-gold); }
    .prop-headshot.prime { border-color: var(--accent-purple); }
    .prop-headshot.strong { border-color: var(--accent-green); }
    .prop-headshot.solid { border-color: var(--accent-blue); }

    .prop-headshot-fallback {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      border: 3px solid var(--border-color);
      background: rgba(255,255,255,0.06);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: 900;
      box-shadow: 0 0 20px rgba(255, 107, 53, 0.12);
    }

    @media (min-width: 768px) {
      .prop-headshot {
        width: 60px;
        height: 60px;
      }
      .prop-headshot-fallback {
        width: 60px;
        height: 60px;
      }
    }

    /* SPRINT APRIL 4: Injury status badge */
    .injury-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 3px;
      margin-top: 2px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .injury-badge.active { background: var(--accent-green-dim); color: var(--accent-green); }
    .injury-badge.doubtful { background: var(--accent-gold-dim); color: var(--accent-gold); }
    .injury-badge.limited { background: var(--accent-orange-dim); color: var(--accent-orange); }
    .injury-badge.out { background: var(--accent-red-dim); color: var(--accent-red); }

    .prop-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      padding: 18px 18px 12px;
      background: transparent;
      position: relative;
      z-index: 1;
    }

    @media (min-width: 768px) {
      .prop-header {
        padding: 20px 20px 16px;
      }
    }

    .prop-player { flex: 1; }

    .prop-player-name {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      color: #ffffff;
      text-transform: none;
      letter-spacing: -0.03em;
      line-height: 1.12;
      margin-bottom: 4px;
    }

    @media (min-width: 768px) {
      .prop-player-name {
        font-size: 26px;
        margin-bottom: 10px;
        font-weight: 800;
      }
    }

    @media (min-width: 768px) and (max-width: 1366px) {
      .prop-player-name {
        font-size: 28px;
      }
      .prop-edge-hero-val {
        font-size: 24px;
      }
      .prop-value {
        font-size: 22px;
      }
    }

    .prop-player-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .prop-team {
      font-weight: 600;
      color: var(--text-secondary);
    }

    .prop-game-info {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 8px;
    }

    .game-info-badge {
      font-size: 9px;
      padding: 2px 6px;
      border-radius: 4px;
      background: var(--bg-tertiary);
      color: var(--text-muted);
    }

    .game-info-badge.live {
      background: var(--accent-green-dim);
      color: var(--accent-green);
    }

    .game-info-badge.final {
      background: var(--bg-tertiary);
      color: var(--text-muted);
    }

    .prop-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    @media (max-width: 480px) {
      .prop-badges {
        gap: 7px;
      }
    }

    .prop-badge {
      padding: 5px 12px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      transition: all 0.2s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
      animation: badgeBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
      animation-delay: 0.1s;
    }

    .prop-badge:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
    }

    .prop-badge.ultimate {
      background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
      color: var(--bg-primary);
      box-shadow: 0 3px 12px rgba(255, 215, 64, 0.25);
    }

    .prop-badge.prime {
      background: linear-gradient(135deg, var(--accent-purple), rgb(200, 150, 255));
      color: var(--bg-primary);
      box-shadow: 0 3px 12px rgba(179, 136, 255, 0.25);
    }

    .prop-badge.strong {
      background: linear-gradient(135deg, var(--accent-green), rgb(50, 255, 150));
      color: var(--bg-primary);
      box-shadow: 0 3px 12px rgba(0, 230, 118, 0.25);
    }

    .prop-badge.value {
      background: linear-gradient(135deg, var(--accent-blue), rgb(100, 180, 255));
      color: var(--bg-primary);
      box-shadow: 0 3px 12px rgba(68, 138, 255, 0.25);
    }

    .prop-badge.variance-gate {
      background: rgba(255, 112, 67, 0.14);
      color: #ffab91;
      border: 1px solid rgba(255, 112, 67, 0.45);
      font-weight: 800;
      letter-spacing: 0.03em;
    }

    .prop-badge.variance-soft {
      background: rgba(255, 183, 77, 0.14);
      color: #ffcc80;
      border: 1px solid rgba(255, 183, 77, 0.42);
      font-weight: 800;
      letter-spacing: 0.03em;
    }

    .prop-badge.conviction {
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 10px;
    }
    .prop-badge.conviction-lock {
      background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(255, 215, 64, 0.18));
      color: #fff6bf;
      border-color: rgba(251, 191, 36, 0.55);
      box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
    }
    .prop-badge.conviction-hammer {
      background: linear-gradient(135deg, rgba(217, 70, 239, 0.22), rgba(168, 85, 247, 0.16));
      color: #f5d0ff;
      border-color: rgba(217, 70, 239, 0.45);
      box-shadow: 0 0 10px rgba(217, 70, 239, 0.28);
    }
    .prop-badge.conviction-go,
    .prop-badge.conviction-play {
      background: rgba(0, 230, 118, 0.14);
      color: var(--accent-green);
      border-color: rgba(0, 230, 118, 0.42);
    }
    .prop-badge.conviction-lean {
      background: rgba(79, 195, 247, 0.12);
      color: #81d4fa;
      border-color: rgba(79, 195, 247, 0.35);
    }
    .prop-badge.conviction-watch {
      background: rgba(255, 193, 7, 0.12);
      color: #ffd54f;
      border-color: rgba(255, 193, 7, 0.35);
    }
    .prop-badge.conviction-caution {
      background: rgba(255, 152, 0, 0.14);
      color: #ffb74d;
      border-color: rgba(255, 152, 0, 0.4);
    }
    .prop-badge.conviction-pass {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-muted);
      border-color: rgba(255, 255, 255, 0.12);
      opacity: 0.85;
    }
    .prop-card.conviction-lock { border-left-width: 4px; border-left-color: var(--accent-gold); }
    .prop-card.conviction-hammer { border-left-width: 4px; border-left-color: #d946ef; }
    .prop-conviction-caption {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-align: center;
      margin-top: 4px;
      line-height: 1.2;
      color: var(--text-muted);
    }
    .prop-conviction-caption.conviction-lock { color: #fff6bf; }
    .prop-conviction-caption.conviction-hammer { color: #f0abfc; }
    .prop-conviction-caption.conviction-go,
    .prop-conviction-caption.conviction-play { color: var(--accent-green); }

    .prop-badge.hot {
      background: linear-gradient(135deg, var(--accent-red), rgb(255, 120, 120));
      color: white;
      box-shadow: 0 3px 12px rgba(255, 82, 82, 0.35);
      animation: hotPulse 1.5s ease-in-out infinite;
    }
    /* ══ BANKROLL GUARDIAN ══════════════════════════════ */
    .kelly-guardian {
      background: rgba(68,138,255,0.08);
      border: 1px solid rgba(68,138,255,0.15);
      border-radius: 8px;
      padding: 8px 12px;
      margin-bottom: 12px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .kelly-guardian::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 3px; height: 100%;
      background: var(--accent-blue);
    }
    .kelly-label {
      font-size: 9px;
      font-weight: 800;
      color: var(--accent-blue);
      letter-spacing: 0.8px;
      margin-bottom: 2px;
    }
    .kelly-val {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
    }
    .kelly-pct {
      color: var(--accent-green);
      font-size: 15px;
      font-weight: 800;
    }
    .kelly-sub {
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 400;
    }

    .prop-badge.edge {
      background: var(--accent-green-dim);
      color: var(--accent-green);
      border: 1px solid var(--accent-green);
    }

    .prop-badge.monitor {
      background: rgba(56, 189, 248, 0.12);
      color: #7dd3fc;
      border: 1px solid rgba(56, 189, 248, 0.35);
    }

    .prop-badge.watch {
      background: rgba(251, 191, 36, 0.14);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.4);
    }

    .prop-badge.fd {
      background: linear-gradient(135deg, var(--accent-blue), rgb(100, 180, 255));
      color: white;
      box-shadow: 0 3px 12px rgba(68, 138, 255, 0.25);
    }

    .prop-badge.line-mismatch {
      background: linear-gradient(135deg, rgba(255,180,0,0.25), rgba(255,120,0,0.25));
      color: var(--accent-gold);
      border: 1px solid rgba(255,180,0,0.35);
    }

    /* ── BET SCORE PANEL ──────────────────────────────── */
    .how-to-bet-wrap {
      border-top: 1px solid var(--border-color);
      padding: 8px 12px 4px;
    }

    .how-to-bet-btn {
      background: none;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 600;
      padding: 7px 10px;
      cursor: pointer;
      width: 100%;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .how-to-bet-btn:active { border-color: var(--accent-green); color: var(--text-primary); }

    .how-to-bet-content {
      display: grid;
      grid-template-rows: 0fr;
      opacity: 0;
      transition: grid-template-rows 0.3s ease, opacity 0.25s ease;
    }
    .how-to-bet-content.open { grid-template-rows: 1fr; opacity: 1; }

    .htb-inner {
      overflow: hidden;
      padding: 0;
      transition: padding 0.3s ease;
    }
    .how-to-bet-content.open .htb-inner { padding: 10px 0 6px; }

    /* Score header */
    .bs-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-color);
      margin-bottom: 10px;
    }
    .bs-circle {
      width: 52px; height: 52px;
      border-radius: 50%;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      font-size: 18px; font-weight: 800;
      flex-shrink: 0;
      border: 2.5px solid currentColor;
    }
    .bs-circle-label { font-size: 9px; font-weight: 600; letter-spacing: 0.5px; opacity: 0.8; margin-top: 1px; }
    .bs-circle.score-strong { color: var(--accent-gold); background: rgba(255,215,64,0.1); }
    .bs-circle.score-bet    { color: var(--accent-purple);background: rgba(179,136,255,0.1); }
    .bs-circle.score-lean   { color: var(--accent-green); background: rgba(0,230,118,0.1); }
    .bs-circle.score-pass   { color: var(--accent-blue);  background: rgba(68,138,255,0.1); }
    .bs-circle.score-fade   { color: var(--accent-red);   background: rgba(255,82,82,0.1); }

    .bs-action-wrap { flex: 1; }
    .bs-action {
      font-size: 16px; font-weight: 800; letter-spacing: 0.5px;
      line-height: 1.2; margin-bottom: 3px;
    }
    .bs-action.score-strong { color: var(--accent-gold); }
    .bs-action.score-bet    { color: var(--accent-purple); }
    .bs-action.score-lean   { color: var(--accent-green); }
    .bs-action.score-pass   { color: var(--accent-blue); }
    .bs-action.score-fade   { color: var(--accent-red); }
    .bs-edge-line { font-size: 12px; color: var(--text-muted); }
    .bs-conviction-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-top: 6px;
    }
    .bs-conviction-detail {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 600;
    }

    /* Key stats row */
    .bs-stats {
      display: flex; gap: 6px;
      margin-bottom: 10px;
      flex-wrap: wrap;
    }
    .bs-stat {
      background: var(--surface-secondary);
      border-radius: 6px;
      padding: 5px 9px;
      font-size: 11px;
      color: var(--text-muted);
      display: flex; flex-direction: column; align-items: center; gap: 1px;
    }
    .bs-stat-val { font-size: 13px; font-weight: 700; color: var(--text-primary); }
    .bs-stat-val.green { color: var(--accent-green); }
    .bs-stat-val.red   { color: var(--accent-red); }
    .bs-stat-val.gold  { color: var(--accent-gold); }

    /* FOR / AGAINST sections */
    .bs-section-title {
      font-size: 10px; font-weight: 700; letter-spacing: 1px;
      text-transform: uppercase; margin: 8px 0 4px;
    }
    .bs-section-title.for    { color: var(--accent-green); }
    .bs-section-title.against{ color: var(--accent-red); }

    .bs-factor {
      font-size: 12px; line-height: 1.5;
      padding: 4px 0 4px 12px;
      border-left: 2px solid transparent;
      color: var(--text-secondary);
      position: relative;
    }
    .bs-factor::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; }
    .bs-factor.for  { border-left-color: rgba(0,230,118,0.4); }
    .bs-factor.for::before  { background: var(--accent-green); }
    .bs-factor.against { border-left-color: rgba(255,82,82,0.4); }
    .bs-factor.against::before { background: var(--accent-red); }

    /* Old htb-row retained for FD line display */
    .htb-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
      font-size: 13px;
    }
    .htb-row:last-child { border-bottom: none; }
    .htb-label { color: var(--text-muted); font-size: 12px; }
    .htb-val { font-weight: 600; color: var(--text-primary); }
    .htb-val.green { color: var(--accent-green); }
    .htb-val.gold  { color: var(--accent-gold); }
    .htb-val.red   { color: var(--accent-red); }

    .prop-badge.steam {
      background: linear-gradient(135deg, rgba(255,145,0,0.25), rgba(255,82,82,0.25));
      color: var(--accent-orange);
      border: 1.5px solid var(--accent-orange);
      animation: steamPulse 2s infinite;
    }

    .prop-badge.moving {
      background: var(--accent-purple-dim);
      color: var(--accent-purple);
      border: 1px solid var(--accent-purple);
    }

    /* ── ACCURACY BADGE (NEW) ──────────────────────────────────────────────── */
    .prop-badge.accuracy {
      background: linear-gradient(135deg, rgba(100,200,255,0.15), rgba(68,138,255,0.15));
      color: var(--accent-blue);
      border: 1px solid rgba(68,138,255,0.4);
      font-weight: 700;
      font-size: 10px;
    }
    /* P0: Confidence weighting by sample size */
    .prop-badge.accuracy.low-conf  { opacity: 0.55; color: var(--text-muted); } /* < 5 samples: muted */
    .prop-badge.accuracy.med-conf  { opacity: 0.85; } /* 5-15 samples: normal */
    .prop-badge.accuracy.high-conf { opacity: 1; filter: drop-shadow(0 0 6px rgba(68,138,255,0.6)); } /* 15+ samples: glowing */
    .prop-badge.accuracy.hot-track { background: linear-gradient(135deg, rgba(0,230,118,0.15), rgba(100,255,180,0.15)); color: var(--accent-green); border-color: rgba(0,230,118,0.4); }
    .prop-badge.accuracy.hot-track.high-conf { filter: drop-shadow(0 0 6px rgba(0,230,118,0.6)); }
    .prop-badge.accuracy.cold-track { background: linear-gradient(135deg, rgba(255,82,82,0.15), rgba(255,120,120,0.15)); color: var(--accent-red); border-color: rgba(255,82,82,0.4); }
    .prop-badge.accuracy.cold-track.high-conf { filter: drop-shadow(0 0 6px rgba(255,82,82,0.6)); }

    @keyframes hotPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.05); opacity: 0.9; }
    }

    @keyframes steamPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.7; }
    }

    @keyframes livePulse {
      0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
      50% { opacity: 0.6; transform: scale(0.95); }
      70% { box-shadow: 0 0 0 6px rgba(255, 82, 82, 0); }
    }

    /* ── LIVE BADGE ─────────────────────────────────── */
    .prop-badge.live-badge {
      background: rgba(255, 82, 82, 0.15);
      color: var(--accent-red);
      border: 1px solid var(--accent-red);
      font-weight: 700;
      letter-spacing: 0.04em;
    }
    .prop-badge.live-badge::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent-red);
      margin-right: 4px;
      animation: livePulse 1.2s ease-in-out infinite;
      vertical-align: middle;
      position: relative;
      top: -1px;
    }

    /* ── STALE CARD ─────────────────────────────────── */
    .prop-card.stale {
      opacity: 0.72;
      border-left: 2px solid var(--text-muted) !important;
    }
    .prop-card.stale .prop-player-name {
      color: var(--text-secondary);
    }

    /* ══ PROPEDGE INTEL BADGES ════════════════════════ */

    /* Feature 1 — Opportunity Alert */
    .prop-badge.opportunity {
      background: linear-gradient(135deg, rgba(255,165,0,0.22), rgba(255,100,0,0.22));
      color: #ffaa33;
      border: 1.5px solid rgba(255,165,0,0.5);
      animation: opptyPulse 2.2s ease-in-out infinite;
      position: relative;
      cursor: default;
    }
    @keyframes opptyPulse {
      0%,100% { opacity: 1; }
      50%      { opacity: 0.7; }
    }

    /* Feature 2 — Lineup Lock / Projected */
    .prop-badge.lineup-locked {
      background: rgba(0,230,118,0.12);
      color: var(--accent-green);
      border: 1px solid rgba(0,230,118,0.4);
    }
    .prop-badge.lineup-projected {
      background: rgba(68,136,255,0.12);
      color: var(--accent-blue);
      border: 1px solid rgba(68,136,255,0.35);
    }
    .prop-badge.lineup-out {
      background: rgba(255,68,68,0.12);
      color: var(--accent-red);
      border: 1px solid rgba(255,68,68,0.35);
    }

    /* Feature 3 — Line Moving (injury-driven) */
    .prop-badge.line-moving {
      background: linear-gradient(135deg, rgba(176,108,255,0.2), rgba(100,60,200,0.2));
      color: var(--accent-purple);
      border: 1.5px solid rgba(176,108,255,0.5);
      animation: movingPulse 1.8s ease-in-out infinite;
    }
    @keyframes movingPulse {
      0%,100% { opacity: 1; }
      50%      { opacity: 0.65; }
    }

    /* Intel tooltip on hover */
    .intel-badge-wrap {
      position: relative;
      display: inline-flex;
    }
    .intel-badge-wrap .intel-tip {
      display: none;
      position: absolute;
      bottom: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      background: #1c2033;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 6px;
      padding: 7px 10px;
      font-size: 11px;
      font-weight: 500;
      color: #e0e4f4;
      white-space: nowrap;
      z-index: 999;
      pointer-events: none;
      box-shadow: 0 6px 24px rgba(0,0,0,0.45);
      max-width: 220px;
      white-space: normal;
      text-align: center;
    }
    .intel-badge-wrap:hover .intel-tip {
      display: block;
    }

    /* ── WHO BENEFITS panel (inside Injury card) ─── */
    .who-benefits-panel {
      margin-top: 10px;
      background: rgba(0,0,0,0.18);
      border-radius: 8px;
      overflow: hidden;
    }
    .who-benefits-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      cursor: pointer;
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-orange, #ffaa33);
      letter-spacing: 0.3px;
      user-select: none;
    }
    .who-benefits-toggle:hover { background: rgba(255,165,0,0.06); }
    .who-benefits-toggle .wb-arrow {
      margin-left: auto;
      font-size: 10px;
      transition: transform 0.2s;
    }
    .who-benefits-panel.open .wb-arrow { transform: rotate(180deg); }
    .who-benefits-body {
      display: none;
      padding: 4px 10px 10px;
    }
    .who-benefits-panel.open .who-benefits-body { display: block; }
    .wb-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 0;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .wb-row:last-child { border-bottom: none; }
    .wb-rank {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      width: 16px;
      text-align: center;
    }
    .wb-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top;
      background: var(--bg-tertiary);
      border: 1.5px solid rgba(255,255,255,0.1);
      flex-shrink: 0;
    }
    .wb-info { flex: 1; min-width: 0; }
    .wb-name {
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .wb-prop {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 1px;
    }
    .wb-score {
      font-size: 13px;
      font-weight: 700;
      color: var(--accent-green);
      text-align: right;
      flex-shrink: 0;
    }
    .wb-score-label {
      font-size: 9px;
      color: var(--text-muted);
      text-align: right;
      font-weight: 400;
    }
    .wb-no-props {
      font-size: 11px;
      color: var(--text-muted);
      padding: 6px 0;
      text-align: center;
    }

    /* Intel section header in Injuries tab */
    .intel-signals-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 0 4px;
      margin-bottom: 6px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .intel-signals-header span {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--accent-purple);
    }
    .intel-signals-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 8px;
    }

    /* ── LIVE CONTEXT STRIP ─────────────────────────── */
    .live-ctx-strip {
      margin: 6px 0 4px;
      padding: 7px 10px;
      background: rgba(255, 82, 82, 0.06);
      border: 1px solid rgba(255, 82, 82, 0.18);
      border-radius: var(--radius-sm);
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .live-ctx-score {
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 600;
      flex-wrap: wrap;
    }

    .live-ctx-team {
      color: var(--text-secondary);
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .live-ctx-num {
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 700;
      min-width: 16px;
      text-align: center;
    }

    .live-ctx-sep {
      color: var(--text-muted);
      font-size: 11px;
    }

    .live-ctx-clock {
      margin-left: auto;
      color: var(--accent-red);
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.03em;
    }

    .live-ctx-chips {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
    }

    .live-ctx-chip {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 7px;
      border-radius: 10px;
      font-family: 'JetBrains Mono', monospace;
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .live-ctx-chip.period {
      background: rgba(74, 143, 255, 0.14);
      color: var(--accent-blue);
      border: 1px solid rgba(74, 143, 255, 0.3);
    }
    .live-ctx-chip.clock {
      background: rgba(255, 82, 82, 0.10);
      color: var(--accent-red);
      border: 1px solid rgba(255, 82, 82, 0.2);
    }
    .live-ctx-chip.sog {
      background: rgba(0, 230, 118, 0.08);
      color: var(--accent-green);
      border: 1px solid rgba(0, 230, 118, 0.2);
    }
    .live-ctx-chip.outs {
      background: rgba(245, 158, 11, 0.10);
      color: var(--accent-gold);
      border: 1px solid rgba(245, 158, 11, 0.25);
    }
    .live-ctx-chip.count {
      background: rgba(168, 85, 247, 0.10);
      color: var(--accent-purple);
      border: 1px solid rgba(168, 85, 247, 0.25);
    }
    .live-ctx-chip.pitcher {
      background: rgba(94, 104, 128, 0.18);
      color: var(--text-secondary);
      border: 1px solid rgba(94, 104, 128, 0.25);
    }
    .live-ctx-chip.down {
      background: rgba(255, 145, 0, 0.10);
      color: var(--accent-orange);
      border: 1px solid rgba(255, 145, 0, 0.25);
    }
    .live-ctx-chip.redzone {
      background: rgba(255, 82, 82, 0.15);
      color: var(--accent-red);
      border: 1px solid rgba(255, 82, 82, 0.35);
      font-weight: 700;
    }
    .live-ctx-chip.timeouts {
      background: rgba(94, 104, 128, 0.12);
      color: var(--text-muted);
      border: 1px solid rgba(94, 104, 128, 0.2);
      font-size: 8px;
    }

    .live-ctx-bases {
      display: inline-flex;
      align-items: center;
      margin-left: 2px;
      opacity: 0.9;
    }

    /* ── VALUE DRIFT ROW ────────────────────────────── */
    .value-drift-row {
      display: flex;
      align-items: center;
      gap: 5px;
      padding: 5px 10px;
      background: rgba(74, 143, 255, 0.05);
      border: 1px solid rgba(74, 143, 255, 0.12);
      border-radius: var(--radius-sm);
      margin: 4px 0 2px;
      flex-wrap: wrap;
    }

    .drift-label {
      font-size: 9px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .drift-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
    }

    .drift-arrow {
      font-size: 13px;
      line-height: 1;
      margin: 0 2px;
    }

    .drift-flag {
      margin-left: auto;
      font-size: 9px;
      color: var(--accent-gold);
      font-weight: 600;
      background: rgba(245, 158, 11, 0.10);
      border: 1px solid rgba(245, 158, 11, 0.25);
      padding: 2px 6px;
      border-radius: 8px;
    }

    /* ── FANDUEL-STYLE LIVE TRACKER CARD ────────────── */
    .live-tracker-card {
      border-radius: var(--radius-lg);
      overflow: hidden;
      margin-bottom: 12px;
      background: var(--bg-secondary);
      border: 1px solid rgba(74, 143, 255, 0.25);
    }

    .live-tracker-scoreboard {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 14px 12px;
      background: linear-gradient(160deg, #0d1e3a 0%, #0f1a2e 100%);
    }

    .live-tracker-team {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
      flex: 1;
    }

    .live-tracker-logo {
      width: 48px;
      height: 48px;
      object-fit: contain;
      filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
    }

    .live-tracker-abbr {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .live-tracker-score {
      font-family: 'JetBrains Mono', monospace;
      font-size: 36px;
      font-weight: 700;
      color: var(--text-primary);
      line-height: 1;
    }

    .live-tracker-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      padding: 0 10px;
    }

    .live-tracker-period-badge {
      background: var(--accent-red);
      color: #fff;
      font-family: 'JetBrains Mono', monospace;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .live-tracker-situation {
      font-size: 10px;
      color: var(--text-muted);
      text-align: center;
      max-width: 90px;
      line-height: 1.3;
      letter-spacing: 0.03em;
    }

    /* Field/court graphic area */
    .live-tracker-field {
      position: relative;
      overflow: hidden;
      width: 100%;
    }

    /* NFL field */
    .ltf-nfl {
      background: linear-gradient(180deg, #1a4a2e 0%, #1e5534 50%, #1a4a2e 100%);
      height: 80px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 0 8px;
    }
    .ltf-nfl-lines {
      position: absolute;
      inset: 0;
      display: flex;
      justify-content: space-between;
      pointer-events: none;
    }
    .ltf-nfl-line {
      width: 1px;
      height: 100%;
      background: rgba(255,255,255,0.08);
    }
    .ltf-nfl-goalposts {
      position: absolute;
      top: 4px;
      display: flex;
      gap: 3px;
      align-items: flex-end;
    }
    .ltf-nfl-goalpost-v { width: 2px; height: 18px; background: rgba(255,255,0,0.3); border-radius: 1px; }
    .ltf-nfl-goalpost-h { position: absolute; top: 0; left: -4px; width: 12px; height: 2px; background: rgba(255,255,0,0.3); }
    .ltf-ball-marker {
      position: absolute;
      height: 100%;
      top: 0;
      display: flex;
      align-items: center;
      transition: left 0.4s ease;
    }
    .ltf-ball-icon {
      width: 18px;
      height: 11px;
      background: #c8860a;
      border-radius: 50%;
      border: 1.5px solid #f0a020;
      box-shadow: 0 0 6px rgba(200,134,10,0.6);
    }
    .ltf-drive-text {
      font-size: 9px;
      color: rgba(255,255,255,0.7);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      text-align: center;
      position: absolute;
      bottom: 5px;
      left: 0; right: 0;
    }
    .ltf-redzone-glow {
      position: absolute;
      right: 0; top: 0; bottom: 0;
      width: 20%;
      background: linear-gradient(90deg, transparent, rgba(255,60,60,0.18));
      pointer-events: none;
    }

    /* NBA court */
    .ltf-nba {
      background: linear-gradient(180deg, #3a1a0a 0%, #4a2010 50%, #3a1a0a 100%);
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .ltf-nba-court {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .ltf-nba-3pt {
      width: 90px;
      height: 60px;
      border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 0 0 60px 60px;
      border-top: none;
      position: absolute;
    }
    .ltf-nba-lane {
      width: 36px;
      height: 40px;
      border: 1.5px solid rgba(255,255,255,0.1);
      position: absolute;
    }
    .ltf-nba-circle {
      width: 20px;
      height: 20px;
      border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 50%;
      position: absolute;
    }
    .ltf-nba-label {
      font-size: 9px;
      color: rgba(255,255,255,0.4);
      letter-spacing: 0.05em;
      z-index: 1;
      text-transform: uppercase;
    }

    /* NHL ice */
    .ltf-nhl {
      background: linear-gradient(180deg, #0a1e3a 0%, #0d2545 50%, #0a1e3a 100%);
      height: 76px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .ltf-nhl-rink {
      position: absolute;
      inset: 6px 8px;
      border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 10px;
    }
    .ltf-nhl-center {
      width: 2px;
      height: 100%;
      background: rgba(255,0,0,0.3);
      position: absolute;
    }
    .ltf-nhl-redline {
      position: absolute;
      top: 0; bottom: 0;
      width: 1.5px;
      background: rgba(255,0,0,0.25);
    }
    .ltf-nhl-blueline {
      position: absolute;
      top: 0; bottom: 0;
      width: 1.5px;
      background: rgba(74,143,255,0.3);
    }
    .ltf-nhl-dot {
      width: 6px; height: 6px;
      background: rgba(255,0,0,0.5);
      border-radius: 50%;
      position: absolute;
    }
    .ltf-nhl-label {
      font-size: 9px;
      color: rgba(255,255,255,0.4);
      letter-spacing: 0.05em;
      z-index: 1;
      text-transform: uppercase;
    }

    /* MLB field */
    .ltf-mlb {
      background: linear-gradient(180deg, #0d1f0a 0%, #122408 50%, #0d1f0a 100%);
      height: 80px;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      position: relative;
      overflow: hidden;
      padding-bottom: 8px;
    }
    .ltf-mlb-diamond {
      position: relative;
      width: 52px;
      height: 52px;
      transform: rotate(45deg);
      border: 1.5px solid rgba(245,158,11,0.2);
      background: rgba(245,158,11,0.03);
      flex-shrink: 0;
      margin-bottom: -10px;
    }
    .ltf-mlb-base {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 2px;
      border: 1.5px solid rgba(245,158,11,0.3);
    }
    .ltf-mlb-base.first  { right: -5px; top: 50%; transform: translateY(-50%); }
    .ltf-mlb-base.second { top: -5px;   left: 50%; transform: translateX(-50%); }
    .ltf-mlb-base.third  { left: -5px;  top: 50%; transform: translateY(-50%); }
    .ltf-mlb-base.home   { bottom: -5px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,0.2); }
    .ltf-mlb-base.occupied { background: var(--accent-gold) !important; border-color: var(--accent-gold) !important; box-shadow: 0 0 5px rgba(245,158,11,0.7); }
    .ltf-mlb-grass {
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 110%, rgba(30,80,20,0.4) 0%, transparent 70%);
      pointer-events: none;
    }
    .ltf-mlb-inning-overlay {
      position: absolute;
      top: 6px; right: 10px;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 3px;
    }
    .ltf-mlb-outs {
      display: flex;
      gap: 3px;
    }
    .ltf-mlb-out-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      border: 1.5px solid rgba(245,158,11,0.4);
    }
    .ltf-mlb-out-dot.filled { background: var(--accent-gold); border-color: var(--accent-gold); }

    /* ── Live Animated Court (game modal) ── */
    .lac-wrap {
      position: relative;
      width: 100%;
      overflow: visible;
      border-radius: 10px;
    }
    .lac-svg {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 10px;
    }
    .lac-event-chip {
      position: absolute;
      bottom: 18%;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(10,12,22,0.92);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      font-family: var(--font-ui);
      padding: 4px 14px;
      border-radius: 20px;
      white-space: nowrap;
      pointer-events: none;
      z-index: 10;
      opacity: 0;
      transition: opacity 0.3s;
      border: 1px solid rgba(255,255,255,0.15);
      max-width: 90%;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .lac-event-chip.show { opacity: 1; }
    @keyframes lacScoreFlash {
      0%   { opacity: 0; }
      20%  { opacity: 0.5; }
      50%  { opacity: 0.2; }
      70%  { opacity: 0.6; }
      100% { opacity: 0; }
    }
    @keyframes lacBallPulse {
      0%,100% { r: 5; }
      50%      { r: 7; }
    }
    @media (min-width: 768px) {
      .lac-svg { height: auto; max-height: 320px; }
    }

    /* Stat section inside tracker */
    .live-tracker-stats {
      padding: 10px 14px 14px;
      background: var(--bg-secondary);
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .live-tracker-stat-row {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-bottom: 10px;
    }

    .live-tracker-stat-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .live-tracker-stat-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .live-tracker-stat-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 700;
    }
    .live-tracker-stat-val.ahead  { color: var(--accent-green); }
    .live-tracker-stat-val.behind { color: var(--accent-red); }
    .live-tracker-stat-val.ontrack { color: var(--accent-gold); }

    .live-tracker-bar-bg {
      height: 6px;
      background: rgba(255,255,255,0.07);
      border-radius: 4px;
      overflow: visible;
      position: relative;
    }
    .live-tracker-bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.5s ease;
    }
    .live-tracker-bar-marker {
      position: absolute;
      top: -3px;
      width: 2px;
      height: 12px;
      background: rgba(255,255,255,0.5);
      border-radius: 1px;
    }

    .live-tracker-chips {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .live-tracker-chip {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 10px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .live-tracker-chip.green  { background: rgba(0,230,118,0.10); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.25); }
    .live-tracker-chip.red    { background: rgba(255,82,82,0.10);  color: var(--accent-red);   border: 1px solid rgba(255,82,82,0.25); }
    .live-tracker-chip.gold   { background: rgba(245,158,11,0.10); color: var(--accent-gold);  border: 1px solid rgba(245,158,11,0.25); }
    .live-tracker-chip.blue   { background: rgba(74,143,255,0.10); color: var(--accent-blue);  border: 1px solid rgba(74,143,255,0.25); }
    .live-tracker-chip.muted  { background: rgba(94,104,128,0.12); color: var(--text-muted);   border: 1px solid rgba(94,104,128,0.2); }

    .live-tracker-box-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
    }
    .live-tracker-box-cell {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border-color);
      border-radius: 7px;
      padding: 5px 9px;
      text-align: center;
      min-width: 44px;
      flex: 1;
    }
    .live-tracker-box-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .live-tracker-box-label {
      font-size: 8px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-top: 2px;
    }

    /* ── WIN-PROBABILITY RADAR ─────────────────────── */
    .radar-container {
      position: relative;
      overflow: visible;
    }
    .radar-sweep {
      transform-origin: 70px 70px;
      animation: radarSweep 3s infinite linear;
      opacity: 0.1;
    }
    @keyframes radarSweep {
      from { transform: rotate(-90deg); }
      to   { transform: rotate(90deg); }
    }
    .live-win-prob-badge {
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
      color: #fff;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: auto;
      background: rgba(255,255,255,0.06);
    }
    .live-win-prob-badge.bullish { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); border: 1px solid rgba(0, 230, 118, 0.3); }
    .live-win-prob-badge.bearish { background: rgba(255, 82, 82, 0.15); color: var(--accent-red); border: 1px solid rgba(255, 82, 82, 0.3); }
    .live-win-prob-badge.neutral { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
    .detail-live-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: rgba(255, 82, 82, 0.08);
      border: 1px solid rgba(255, 82, 82, 0.22);
      border-radius: var(--radius-md);
      margin-bottom: 10px;
    }

    .detail-live-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-red);
      animation: livePulse 1.2s ease-in-out infinite;
      flex-shrink: 0;
    }

    .detail-live-score {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
      flex: 1;
    }

    .detail-live-status {
      font-size: 10px;
      color: var(--accent-red);
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .detail-live-progress {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .detail-live-stat-row {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .detail-live-stat-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 11px;
    }

    .detail-live-stat-label {
      font-weight: 600;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-size: 10px;
    }

    .detail-live-stat-val {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 13px;
      color: var(--text-primary);
    }

    .detail-live-stat-val.ahead { color: var(--accent-green); }
    .detail-live-stat-val.behind { color: var(--accent-red); }
    .detail-live-stat-val.ontrack { color: var(--accent-gold); }

    .detail-live-bar-bg {
      height: 5px;
      background: rgba(255,255,255,0.07);
      border-radius: 3px;
      overflow: hidden;
      position: relative;
    }

    .detail-live-bar-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.5s ease;
    }

    /* Line marker on progress bar */
    .detail-live-bar-marker {
      position: absolute;
      top: -2px;
      width: 2px;
      height: 9px;
      background: var(--text-muted);
      border-radius: 1px;
    }

    .detail-live-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 6px;
    }

    .detail-live-chip {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 3px 9px;
      border-radius: 10px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.03em;
    }
    .detail-live-chip.pace {
      background: rgba(0, 230, 118, 0.10);
      color: var(--accent-green);
      border: 1px solid rgba(0, 230, 118, 0.25);
    }
    .detail-live-chip.pace.behind {
      background: rgba(255, 82, 82, 0.10);
      color: var(--accent-red);
      border: 1px solid rgba(255, 82, 82, 0.25);
    }
    .detail-live-chip.pace.edge {
      background: rgba(245, 158, 11, 0.10);
      color: var(--accent-gold);
      border: 1px solid rgba(245, 158, 11, 0.25);
    }
    .detail-live-chip.risk {
      background: rgba(255, 145, 0, 0.10);
      color: var(--accent-orange);
      border: 1px solid rgba(255, 145, 0, 0.25);
    }

    .prop-score {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
      font-size: 16px;
      font-weight: 700;
      color: var(--bg-primary);
      flex-shrink: 0;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
      transition: all 0.3s;
      position: relative;
    }

    @media (min-width: 768px) {
      .prop-score {
        width: 58px;
        height: 58px;
        font-size: 18px;
      }
    }

    .prop-score.ultimate {
      background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
      box-shadow: 0 6px 20px rgba(255, 215, 64, 0.3);
    }
    .prop-score.prime {
      background: linear-gradient(135deg, var(--accent-purple), rgb(200, 150, 255));
      box-shadow: 0 6px 20px rgba(179, 136, 255, 0.3);
    }
    .prop-score.strong {
      background: linear-gradient(135deg, var(--accent-green), rgb(50, 255, 150));
      box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
    }
    .prop-score.solid {
      background: linear-gradient(135deg, var(--accent-blue), rgb(100, 180, 255));
      box-shadow: 0 6px 20px rgba(68, 138, 255, 0.3);
    }
    .prop-score.spec {
      background: var(--text-muted);
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    .prop-card:hover .prop-score {
      transform: scale(1.08) translateY(-2px);
    }

    /* PropIQ + Confidence side by side */
    .prop-scores-wrap {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .prop-scores-wrap .propiq-container {
      width: 72px;
      min-height: 86px;
      gap: 3px;
    }

    .prop-scores-wrap .propiq-number-display {
      font-size: 22px;
      line-height: 1;
    }

    .prop-scores-wrap .propiq-logo {
      margin-top: 0;
    }

    .prop-scores-wrap .propiq-badge-glow {
      width: 72px;
      height: 72px;
    }
    .prop-score-label {
      font-size: 9px;
      font-weight: 600;
      letter-spacing: 0.5px;
      color: var(--text-muted);
      text-transform: uppercase;
    }
    /* PropIQ Premium Score Display */
    .propiq-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      position: relative;
      flex-shrink: 0;
    }

    .propiq-badge-glow {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 0;
      border: 3px solid rgba(255,255,255,0.25);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
      pointer-events: none;
    }
    @media (min-width: 768px) {
      .propiq-badge-glow {
        width: 140px;
        height: 140px;
      }
    }

    .propiq-number-display {
      font-family: 'JetBrains Mono', monospace !important;
      font-size: 58px;
      font-weight: 900;
      line-height: 1;
      text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 20px currentColor;
      position: relative;
      z-index: 1;
      letter-spacing: -2px;
    }
    @media (min-width: 768px) {
      .propiq-number-display {
        font-size: 88px;
      }
    }

    .propiq-logo {
      font-family: var(--font-ui) !important;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 2.4px;
      text-transform: uppercase;
      margin-top: 0;
      position: relative;
      z-index: 1;
      opacity: 0.9;
      text-shadow: 0 2px 6px rgba(0,0,0,0.3);
      line-height: 1;
    }
    @media (min-width: 768px) {
      .propiq-container {
        gap: 6px;
      }

      .propiq-logo {
        font-size: 16px;
        margin-top: 0;
        letter-spacing: 2.6px;
      }
    }

    /* Tier-specific styling */
    .propiq-badge-glow.tier-ultimate { background: radial-gradient(circle, rgba(217,70,239,0.3), transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(217,70,239,0.3); }
    .propiq-badge-glow.tier-prime    { background: radial-gradient(circle, rgba(255,105,180,0.3), transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(255,105,180,0.3); }
    .propiq-badge-glow.tier-strong   { background: radial-gradient(circle, rgba(79,195,247,0.3), transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(79,195,247,0.3); }
    .propiq-badge-glow.tier-solid    { background: radial-gradient(circle, rgba(255,193,7,0.3), transparent);  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(255,193,7,0.3); }
    .propiq-badge-glow.tier-spec     { background: radial-gradient(circle, rgba(158,158,158,0.3), transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 30px rgba(158,158,158,0.3); }

    .propiq-number-display.tier-ultimate { color: #d946ef; }
    .propiq-number-display.tier-prime    { color: #ff69b4; }
    .propiq-number-display.tier-strong   { color: #4fc3f7; }
    .propiq-number-display.tier-solid    { color: #ffc107; }
    .propiq-number-display.tier-spec     { color: #9e9e9e; }

    .propai-score-rail .propiq-container {
      width: 92px;
      height: 92px;
    }

    .propai-score-rail .propiq-number-display {
      font-size: 30px;
    }

    .propai-score-rail .propiq-badge-glow {
      width: 92px;
      height: 92px;
    }

    /* Desktop Props-card PropIQ only — must stay inside .prop-scores-wrap (72px).
       Prior #propsContainer .propiq-* rules used 104/160px and overpowered Home deck
       hero selectors (ID > classes), clipping/overlapping scores outside the slot. */
    @media (min-width: 1367px) {
      #propsContainer .prop-scores-wrap .propiq-number-display,
      .props-container .prop-scores-wrap .propiq-number-display {
        font-size: 26px;
      }
      #propsContainer .prop-scores-wrap .propiq-badge-glow,
      .props-container .prop-scores-wrap .propiq-badge-glow {
        width: 72px;
        height: 72px;
      }
      #propsContainer .prop-scores-wrap .propiq-number-display.tier-ultimate,
      .props-container .prop-scores-wrap .propiq-number-display.tier-ultimate {
        text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 36px rgba(217,70,239,0.6);
      }
      #propsContainer .prop-scores-wrap .propiq-number-display.tier-prime,
      .props-container .prop-scores-wrap .propiq-number-display.tier-prime {
        text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 36px rgba(255,105,180,0.6);
      }
      #propsContainer .prop-scores-wrap .propiq-number-display.tier-strong,
      .props-container .prop-scores-wrap .propiq-number-display.tier-strong {
        text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 36px rgba(79,195,247,0.6);
      }
      #propsContainer .prop-scores-wrap .propiq-number-display.tier-solid,
      .props-container .prop-scores-wrap .propiq-number-display.tier-solid {
        text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 36px rgba(255,193,7,0.55);
      }
      #propsContainer .prop-scores-wrap .propiq-number-display.tier-spec,
      .props-container .prop-scores-wrap .propiq-number-display.tier-spec {
        text-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 28px rgba(158,158,158,0.45);
      }
      #propsContainer .prop-scores-wrap .propiq-badge-glow.tier-ultimate,
      .props-container .prop-scores-wrap .propiq-badge-glow.tier-ultimate { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 42px rgba(217,70,239,0.42); }
      #propsContainer .prop-scores-wrap .propiq-badge-glow.tier-prime,
      .props-container .prop-scores-wrap .propiq-badge-glow.tier-prime    { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 42px rgba(255,105,180,0.42); }
      #propsContainer .prop-scores-wrap .propiq-badge-glow.tier-strong,
      .props-container .prop-scores-wrap .propiq-badge-glow.tier-strong   { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 42px rgba(79,195,247,0.42); }
      #propsContainer .prop-scores-wrap .propiq-badge-glow.tier-solid,
      .props-container .prop-scores-wrap .propiq-badge-glow.tier-solid    { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 42px rgba(255,193,7,0.42); }
      #propsContainer .prop-scores-wrap .propiq-badge-glow.tier-spec,
      .props-container .prop-scores-wrap .propiq-badge-glow.tier-spec     { box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 36px rgba(158,158,158,0.35); }
    }

    .propiq-logo.tier-ultimate { color: #d946ef; }
    .propiq-logo.tier-prime    { color: #ff69b4; }
    .propiq-logo.tier-strong   { color: #4fc3f7; }
    .propiq-logo.tier-solid    { color: #ffc107; }
    .propiq-logo.tier-spec     { color: #9e9e9e; }

    .prop-line {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(57,255,20,0.06) 100%);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Tier C: card primary / secondary hierarchy */
    .prop-card-primary {
      position: relative;
      z-index: 1;
    }

    .prop-card-secondary {
      position: relative;
      z-index: 1;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      background: rgba(0, 0, 0, 0.16);
    }

    .prop-badges--primary {
      margin-top: 6px;
    }

    .prop-badges--secondary {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 8px 14px 4px;
    }

    .prop-line--hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(57,255,20,0.08) 100%);
    }

    .prop-line-main {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 10px;
      min-width: 0;
      flex: 1 1 auto;
    }

    .prop-edge-hero {
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: center;
      min-width: 64px;
      padding: 6px 10px;
      border-radius: 14px;
      background: rgba(57, 255, 20, 0.1);
      border: 1px solid rgba(57, 255, 20, 0.22);
      line-height: 1.05;
    }

    .prop-edge-hero-val {
      font-family: var(--font-display);
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #39ff14;
      font-variant-numeric: tabular-nums;
    }

    .prop-edge-hero-label {
      margin-top: 2px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.55);
    }

    .prop-edge-hero.is-hot {
      background: rgba(57, 255, 20, 0.16);
      border-color: rgba(57, 255, 20, 0.35);
      box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
    }

    .prop-edge-hero.is-cold .prop-edge-hero-val {
      color: #f97373;
    }

    .prop-edge-hero.is-cold {
      background: rgba(249, 115, 115, 0.1);
      border-color: rgba(249, 115, 115, 0.28);
    }

    .prop-footer--cta {
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.18));
    }

    .prop-action-btn.prop-cta-primary {
      font-family: var(--font-display) !important;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #34d399, #22c55e) !important;
      color: #04120a !important;
      border-color: transparent !important;
      font-weight: 800 !important;
      box-shadow: 0 6px 16px rgba(34, 197, 94, 0.22);
      transition: transform 0.14s ease, box-shadow 0.14s ease;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    .prop-action-btn.prop-cta-primary:active {
      transform: scale(0.97);
    }

    .prop-action-btn.prop-cta-primary.added:not(.parlay-text) {
      background: rgba(34, 197, 94, 0.16) !important;
      color: #ecfdf5 !important;
      border: 1px solid rgba(34, 197, 94, 0.4) !important;
      box-shadow: none;
    }

    .prop-action-btn.parlay-text.prop-cta-primary:not(.added) {
      background: var(--accent-green-dim) !important;
      color: var(--accent-green) !important;
      border: 1px solid var(--accent-green) !important;
      box-shadow: none !important;
    }

    @media (min-width: 768px) {
      .prop-line {
        padding: 14px 18px;
        gap: 16px;
      }
    }

    .prop-direction {
      padding: 5px 12px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      transition: all 0.2s;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    @media (min-width: 768px) {
      .prop-direction {
        padding: 6px 16px;
        font-size: 12px;
      }
    }

    .prop-direction.over {
      background: linear-gradient(135deg, var(--accent-green-dim), rgba(0,230,118,0.08));
      color: var(--accent-green);
      border: 1px solid rgba(0, 230, 118, 0.3);
    }

    .prop-direction.under {
      background: linear-gradient(135deg, var(--accent-red-dim), rgba(255,82,82,0.08));
      color: var(--accent-red);
      border: 1px solid rgba(255, 82, 82, 0.3);
    }

    .prop-direction.over:hover {
      background: var(--accent-green-dim);
      box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
    }

    .prop-direction.under:hover {
      background: var(--accent-red-dim);
      box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
    }

    .prop-value {
      font-family: var(--font-display), 'JetBrains Mono', monospace;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #ffffff;
    }

    @media (min-width: 768px) {
      .prop-value {
        font-size: 26px;
      }
    }

    .prop-type {
      font-size: 12px;
      color: var(--text-secondary);
      flex: 1;
    }

    @media (min-width: 768px) {
      .prop-type {
        font-size: 14px;
      }
    }

    .prop-odds {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 600;
      padding: 4px 8px;
      background: var(--bg-card);
      border-radius: var(--radius-sm);
    }

    .prop-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      padding: 10px 12px;
      background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(0,230,118,0.03) 100%);
      border-top: 1px solid var(--border-color);
    }

    @media (min-width: 400px) {
      .prop-stats {
        grid-template-columns: repeat(6, 1fr);
        padding: 10px 14px;
        gap: 2px;
      }
    }

    @media (min-width: 768px) {
      .prop-stats {
        padding: 12px 16px;
        gap: 3px;
      }
    }

    .prop-stat {
      text-align: center;
      padding: 8px 4px;
      background: rgba(0,0,0,0.2);
      border-radius: 4px;
      transition: all 0.2s;
    }

    @media (min-width: 768px) {
      .prop-stat {
        padding: 10px 6px;
      }
    }

    .prop-stat:hover {
      background: rgba(0, 230, 118, 0.08);
    }

    .prop-stat-value {
      font-family: var(--font-display);
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 3px;
      color: #f4f4f5;
    }

    @media (min-width: 768px) {
      .prop-stat-value {
        font-size: 18px;
      }
    }

    .prop-stat-value.green { color: var(--accent-green); }
    .prop-stat-value.red { color: var(--accent-red); }

    .prop-stat-label {
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.8px;
    }

    /* ── HIT RATE SPARKLINE ───────────────────── */
    /* ── HIT RATE SPARKLINE ───────────────────── */
    .prop-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 12px 14px;
      border-top: 1px solid var(--border-color);
      flex-wrap: nowrap;
      min-height: 56px;
      white-space: nowrap;
    }

    @media (max-width: 480px) {
      .prop-footer {
        gap: 8px;
        padding: 10px 10px;
        min-height: 48px;
      }
    }

    @media (max-width: 420px) {
      .prop-footer {
        gap: 6px;
        padding: 8px 8px;
        min-height: 46px;
      }
    }

    .prop-probs {
      display: flex;
      gap: 16px;
      flex-shrink: 0;
      min-width: fit-content;
    }

    @media (max-width: 480px) {
      .prop-probs {
        gap: 8px;
      }
    }

    @media (max-width: 420px) {
      .prop-probs {
        gap: 6px;
      }
    }

    .prop-prob {
      text-align: center;
      display: flex;
      flex-direction: column;
      white-space: nowrap;
    }

    .prop-prob-value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 600;
    }

    .prop-prob-label {
      font-size: 9px;
      color: var(--text-muted);
    }

    @media (max-width: 480px) {
      .prop-prob-value {
        font-size: 11px;
      }
      .prop-prob-label {
        font-size: 8px;
      }
    }

    @media (max-width: 420px) {
      .prop-prob-value {
        font-size: 10px;
        font-weight: 700;
      }
      .prop-prob-label {
        font-size: 7px;
        line-height: 1;
      }
    }

    .prop-actions {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
      margin-left: auto;
      align-items: center;
    }

    @media (max-width: 480px) {
      .prop-actions {
        gap: 6px;
      }
    }

    @media (max-width: 420px) {
      .prop-actions {
        gap: 4px;
      }
    }

    .prop-action-btn {
      width: 48px;
      height: 48px;
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      cursor: pointer;
      transition: all 0.2s;
      font-size: 20px;
      color: var(--text-muted);
      /* Expand tap target beyond visual bounds on mobile */
      position: relative;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      flex-shrink: 0;
    }

    @media (max-width: 480px) {
      .prop-action-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
      }
    }

    @media (max-width: 420px) {
      .prop-action-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
      }
    }

    @media (min-width: 768px) {
      .prop-action-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
      }
    }
    /* Extra invisible tap area for mobile */
    .prop-action-btn::after {
      content: '';
      position: absolute;
      inset: -8px;
    }

    /* ── Bet Site Icons ── */
    .bet-sites {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .bet-site-btn {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: 1px solid rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      background: rgba(255,255,255,0.04);
      padding: 0;
      position: relative;
      text-decoration: none;
    }
    .bet-site-btn:hover {
      transform: scale(1.15) translateY(-2px);
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.3);
    }
    .bet-site-btn.fd { color: #4a8fff; border-color: rgba(74, 143, 255, 0.2); }
    .bet-site-btn.dk { color: #5eff7d; border-color: rgba(94, 255, 125, 0.2); }
    .bet-site-btn.fd:hover { background: rgba(74, 143, 255, 0.15); border-color: rgba(74, 143, 255, 0.5); }
    .bet-site-btn.dk:hover { background: rgba(94, 255, 125, 0.15); border-color: rgba(94, 255, 125, 0.5); }
    .bet-site-btn svg { width: 18px; height: 18px; fill: currentColor; }
    .bet-site-btn .brand-abbr { font-size: 10px; font-weight: 900; letter-spacing: -0.5px; }

    .prop-action-btn:active { transform: scale(0.9); }
    .prop-action-btn.added { background: var(--accent-green); color: var(--bg-primary); border-color: var(--accent-green); }
    .prop-action-btn.fd { background: var(--accent-blue-dim); border-color: var(--accent-blue); color: var(--accent-blue); }

    /* Layout */
    /* Mobile & Tablet: Vertical Stack (Single Column) */
    .app-layout {
      width: 100% !important;
      max-width: none !important;
      min-width: 100% !important;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0;
      overflow-x: hidden;
      flex: 1;
    }

    .main-content {
      width: 100%;
      max-width: 100vw;
      overflow-x: hidden;
      overflow-y: visible;
      flex: 1;
      min-height: 0;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* Parlay is a dedicated full-page tab — no right rail / collapsed tab */
    .parlay-rail-collapsed,
    .parlay-rail-toggle {
      display: none !important;
    }

    body[data-pe-view="parlay"] #parlayContainer:not(.view-force-hidden) {
      display: block !important;
      position: static !important;
      width: 100% !important;
      max-width: 720px;
      margin: 0 auto;
      max-height: none !important;
      grid-area: auto !important;
      overflow-x: hidden;
      overflow-y: visible;
      -webkit-overflow-scrolling: touch;
      background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(5, 12, 23, 0.98));
      border: 1px solid rgba(98, 118, 172, 0.18);
      border-radius: 20px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
      box-sizing: border-box;
      padding: 16px !important;
      z-index: 1;
    }

    body[data-pe-view="parlay"] .app-layout {
      display: block !important;
      grid-template-columns: none !important;
      grid-template-areas: none !important;
    }

    body[data-pe-view="parlay"] .main-content {
      display: none !important;
    }

    #parlayContainer.view-force-hidden {
      display: none !important;
    }

    /* Page scroll owner is .site-shell-main (mobile) / body (desktop) — not
       these wrappers. Do NOT pair overflow-x:hidden with overflow-y:visible:
       the CSS mismatched-axis rule promotes visible → auto, which turns every
       .view-container into a scrollport that swallows wheel/trackpad over
       empty padding (Games/News/Injuries/Research/Pace symptom). Use clip on
       Y so we stay a non-scrollport; overscroll auto so any residual events
       chain to the shell scroller. */
    .view-container {
      width: 100%;
      max-width: 100vw;
      padding: 16px;
      padding-bottom: 24px;
      display: none;
      overflow-x: hidden;
      overflow-y: clip;
      transform: translateZ(0);
      box-sizing: border-box;
      overscroll-behavior-y: auto;
    }
    @supports not (overflow-y: clip) {
      .view-container {
        overflow-y: hidden;
      }
    }

    .portfolio-bets-list {
      -webkit-overflow-scrolling: touch;
    }
    .portfolio-entry {
      contain: layout style;
    }

    .view-container.show {
      display: block;
      animation: fadeIn 0.15s ease-out;
    }

    @media (min-width: 768px) {
      .view-container {
        padding: 24px 0 100px;
      }
    }

    /* Parlay-only mode: wider button with text */
    .prop-action-btn.parlay-text {
      width: auto;
      height: 36px;
      padding: 0 12px;
      font-size: 12px;
      font-weight: 600;
      background: var(--accent-green-dim);
      border-color: var(--accent-green);
      color: var(--accent-green);
      white-space: nowrap;
    }
    .prop-action-btn.parlay-text:hover {
      background: var(--accent-green);
      color: var(--bg-primary);
    }
    .prop-action-btn.parlay-text.added,
    .prop-action-btn.parlay-text.prop-cta-primary.added {
      background: var(--accent-green) !important;
      color: var(--bg-primary) !important;
      border-color: var(--accent-green) !important;
      box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35) !important;
    }

    /* Other Views */
    .view-container.show {
      display: block;
      animation: fadeIn 0.2s ease-in;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @media (min-width: 768px) {
      .view-container {
        max-width: none;
        margin: 0;
        padding: 24px 32px 100px;
      }
      body.markets-mode #marketsContainer.view-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 48px !important;
      }
    }

    @media (min-width: 1200px) {
      .view-container {
        max-width: none;
        padding: 28px 56px 110px;
      }
      body.markets-mode #marketsContainer.view-container {
        max-width: none !important;
        padding: 0 0 48px !important;
      }
    }

    /* Parlay */
    .parlay-rail-collapsed {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      min-height: 120px;
      padding-top: 8px;
      color: var(--text-secondary);
      user-select: none;
    }

    .parlay-rail-expand-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      border-radius: 10px;
      border: 1px solid rgba(129, 140, 248, 0.35);
      background: rgba(99, 102, 241, 0.14);
      color: #c7d2fe;
      font-size: 18px;
      font-weight: 800;
      line-height: 1;
    }

    .parlay-rail-collapsed-label {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .parlay-rail-badge {
      min-width: 22px;
      min-height: 22px;
      padding: 0 6px;
      border-radius: 999px;
      background: rgba(34, 197, 94, 0.18);
      border: 1px solid rgba(34, 197, 94, 0.35);
      color: var(--accent-green);
      font-size: 11px;
      font-weight: 900;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .parlay-rail-toggle {
      flex: 0 0 auto;
      width: 30px;
      height: 30px;
      border-radius: 10px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size: 16px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
      margin-left: 8px;
    }

    .parlay-rail-toggle:hover {
      color: var(--text-primary);
      border-color: rgba(129, 140, 248, 0.35);
    }

    .parlay-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      gap: 8px;
    }

    .parlay-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .parlay-title {
      font-size: 16px;
      font-weight: 700;
      min-width: 0;
    }

    .parlay-clear {
      font-size: 12px;
      color: var(--accent-red);
      cursor: pointer;
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      background: var(--accent-red-dim);
    }

    .parlay-leg {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .parlay-leg-info { flex: 1; }

    .parlay-leg-player {
      font-size: 15px;
      font-weight: 600;
    }

    .parlay-leg-prop {
      font-size: 13px;
      color: var(--text-muted);
    }

    .parlay-leg-odds {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      margin-right: 12px;
    }

    .parlay-leg-remove {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--accent-red-dim);
      border: none;
      color: var(--accent-red);
      font-size: 16px;
      cursor: pointer;
    }

    body[data-pe-view="parlay"] #filterSection,
    body[data-pe-view="parlay"] #sortBar,
    body[data-pe-view="parlay"] #propiqGradingGuide {
      display: none !important;
    }

    body[data-pe-view="parlay"] .prop-card,
    body[data-pe-view="parlay"] .propai-market-row--deck {
      content-visibility: visible !important;
      contain-intrinsic-size: auto;
    }

    .parlay-quick-actions {
      padding: 0 4px 8px;
      margin-top: 8px;
    }

    .parlay-quick-actions-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 10px;
    }

    .parlay-quick-actions .parlay-btn {
      margin-top: 8px;
    }

    .parlay-book-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 12px;
    }

    .parlay-book-links .parlay-btn {
      font-size: 12px;
      padding: 10px 4px;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    body[data-pe-view="parlay"] #parlayContainer .parlay-rail-body {
      contain: layout style;
    }

    body.markets-mode .propai-market-row--deck,
    body.propai-mode .propai-market-row--deck {
      content-visibility: auto;
      contain-intrinsic-size: auto 168px;
    }

    .parlay-summary {
      background: rgba(12, 21, 38, 0.9);
      border-radius: 20px;
      padding: 18px;
      margin-top: 16px;
      border: 1px solid rgba(97, 120, 176, 0.16);
    }

    .parlay-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .parlay-row:last-child { margin-bottom: 0; }

    .parlay-label {
      color: var(--text-muted);
      font-size: 13px;
    }

    .parlay-value {
      font-family: 'JetBrains Mono', monospace;
      font-size: 16px;
      font-weight: 700;
    }

    .parlay-value.big {
      font-size: 24px;
      color: var(--accent-green);
    }

    .parlay-btn {
      width: 100%;
      padding: 14px;
      border-radius: var(--radius-md);
      background: var(--accent-blue);
      border: none;
      color: white;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 12px;
      font-family: inherit;
    }

    .parlay-btn:active { transform: scale(0.98); }
    
    .parlay-btn.gambly {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
    }

    .parlay-btn-icon {
      width: 18px;
      height: 18px;
      vertical-align: -3px;
      border-radius: 4px;
      flex-shrink: 0;
      object-fit: contain;
    }

    .parlay-actions .parlay-btn.full-row { grid-column: 1 / -1; }
    
    .parlay-btn.fd {
      background: linear-gradient(135deg, #1493ff, #0a5fbf);
    }
    .parlay-btn.dk {
      background: linear-gradient(135deg, #00d632, #00a126);
    }
    .parlay-btn.playbook {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
    }
    
    .parlay-btn.secondary {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
    }
    
    .parlay-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 8px;
    }
    
    .wager-input-wrap {
      display: flex;
      align-items: center;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-sm);
      padding: 0 10px;
    }
    
    .wager-dollar {
      color: var(--text-muted);
      font-size: 14px;
    }
    
    .wager-input {
      background: transparent;
      border: none;
      color: var(--text-primary);
      font-size: 14px;
      font-family: 'JetBrains Mono', monospace;
      width: 60px;
      padding: 8px 4px;
      text-align: right;
    }
    
    .wager-input:focus {
      outline: none;
    }

    /* Injuries */
    /* ── INJURY & LINEUP TRACKER ────────────────── */
    .inj-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      flex-wrap: wrap;
      gap: 10px;
    }
    .inj-header-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .inj-refresh-btn {
      display: flex;
      align-items: center;
      gap: 5px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: var(--text-secondary);
      font-size: 11px;
      font-weight: 600;
      padding: 5px 10px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .inj-refresh-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
    .inj-refresh-btn.spinning svg { animation: injSpin 1s linear infinite; }
    @keyframes injSpin { to { transform: rotate(360deg); } }
    .inj-last-updated {
      font-size: 10px;
      color: var(--text-muted);
      text-align: right;
    }

    /* Sub-tabs (Injuries / Lineups / News) */
    .inj-subtabs {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
      background: var(--bg-secondary);
      border-radius: 10px;
      padding: 4px;
    }
    .inj-subtab {
      flex: 1;
      text-align: center;
      padding: 8px 6px;
      border-radius: 7px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .inj-subtab.active {
      background: var(--bg-card);
      color: var(--text-primary);
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    /* Ticket tab accent */
    .inj-subtab[data-subtab="ticket"].active {
      background: linear-gradient(135deg, #1a3a1a, #1e4020);
      color: var(--accent-green);
      border-color: var(--accent-green);
    }
    .inj-subtab[data-subtab="ticket"] .ticket-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-green);
      color: #000;
      font-size: 9px;
      font-weight: 900;
      border-radius: 10px;
      min-width: 16px;
      height: 16px;
      padding: 0 4px;
      margin-left: 5px;
      line-height: 1;
    }

    /* ── Notification bell — inline in tracker header ── */
    .inj-notif-bell {
      height: 34px;
      padding: 0 12px;
      border-radius: 8px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .inj-notif-bell::after {
      content: 'Alerts';
      font-size: 11px;
      font-weight: 700;
      font-family: inherit;
    }
    .inj-notif-bell.enabled {
      color: var(--accent-green);
      border-color: var(--accent-green);
      background: rgba(0,230,118,0.10);
    }
    .inj-notif-bell.enabled::after {
      content: 'On';
      color: var(--accent-green);
    }
    .inj-notif-bell:active { transform: scale(0.95); }

    /* ── Ticket Watchlist Panel ── */
    #injPanel_ticket .ticket-empty {
      text-align: center;
      padding: 48px 20px;
      color: var(--text-muted);
      font-size: 13px;
    }
    #injPanel_ticket .ticket-empty-icon { font-size: 36px; margin-bottom: 12px; }
    .ticket-section-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1.2px;
      color: var(--text-muted);
      text-transform: uppercase;
      margin: 18px 0 8px;
      padding-left: 2px;
    }
    .ticket-player-row {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 10px 12px;
      margin-bottom: 8px;
      position: relative;
    }
    .ticket-player-row.status-out   { border-left: 3px solid var(--accent-red); }
    .ticket-player-row.status-q     { border-left: 3px solid var(--accent-gold); }
    .ticket-player-row.status-gtd   { border-left: 3px solid var(--accent-gold); }
    .ticket-player-row.status-dtd   { border-left: 3px solid var(--accent-gold); }
    .ticket-player-row.status-prob  { border-left: 3px solid var(--accent-blue); }
    .ticket-player-row.status-in    { border-left: 3px solid var(--accent-green); }
    .ticket-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-secondary);
      flex-shrink: 0;
    }
    .ticket-avatar-ph {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .ticket-player-info { flex: 1; min-width: 0; }
    .ticket-player-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .ticket-player-meta {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 2px;
    }
    .ticket-status-pill {
      font-size: 10px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 8px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .ticket-status-pill.out  { background: rgba(255,68,68,0.18); color: var(--accent-red); }
    .ticket-status-pill.dnp  { background: rgba(120,120,120,0.18); color: var(--text-muted); }
    .ticket-status-pill.q    { background: rgba(245,197,24,0.18); color: var(--accent-gold); }
    .ticket-status-pill.gtd  { background: rgba(245,197,24,0.18); color: var(--accent-gold); }
    .ticket-status-pill.dtd  { background: rgba(245,197,24,0.18); color: var(--accent-gold); }
    .ticket-status-pill.prob { background: rgba(68,136,255,0.18); color: var(--accent-blue); }
    .ticket-status-pill.in   { background: rgba(0,230,118,0.18); color: var(--accent-green); }
    .ticket-remove-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.15s;
    }
    .ticket-remove-btn:hover { background: rgba(255,68,68,0.15); border-color: var(--accent-red); color: var(--accent-red); }
    .ticket-prop-sub {
      font-size: 10px;
      color: var(--accent-green);
      margin-top: 2px;
      font-weight: 600;
    }
    .ticket-clear-btn {
      width: 100%;
      padding: 10px;
      border-radius: 8px;
      background: rgba(255,68,68,0.1);
      border: 1px solid rgba(255,68,68,0.3);
      color: var(--accent-red);
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 14px;
      letter-spacing: 0.5px;
      transition: all 0.2s;
    }
    .ticket-clear-btn:hover { background: rgba(255,68,68,0.2); }
    /* Watch btn on prop cards */
    .prop-watch-btn {
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      font-size: 15px;
      cursor: pointer;
      border-radius: 8px;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      flex-shrink: 0;
    }
    .prop-watch-btn.watched {
      background: rgba(0,230,118,0.12);
      border-color: var(--accent-green);
      color: var(--accent-green);
    }
    .prop-watch-btn:active { transform: scale(0.88); }
    /* Watch btn on injury cards */
    .inj-watch-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      background: transparent;
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      font-size: 13px;
      cursor: pointer;
      border-radius: 6px;
      padding: 3px 6px;
      transition: all 0.15s;
      font-weight: 700;
    }
    .inj-watch-btn.watched {
      background: rgba(0,230,118,0.12);
      border-color: var(--accent-green);
      color: var(--accent-green);
    }

    /* League filter pills */
    .inj-league-pills {
      display: flex;
      gap: 6px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .inj-pill {
      padding: 5px 14px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      border: 1px solid var(--border-color);
      background: var(--bg-card);
      color: var(--text-muted);
      transition: all 0.2s;
      letter-spacing: 0.3px;
    }
    .inj-pill.active, .inj-pill:hover {
      background: var(--accent-blue-dim);
      border-color: var(--accent-blue);
      color: var(--accent-blue);
    }
    .inj-pill.pill-nba.active { background: var(--accent-orange-dim); border-color: var(--accent-orange); color: var(--accent-orange); }
    .inj-pill.pill-nhl.active { background: var(--accent-blue-dim); border-color: var(--accent-blue); color: var(--accent-blue); }
    .inj-pill.pill-mlb.active { background: var(--accent-red-dim); border-color: var(--accent-red); color: var(--accent-red); }
    .inj-pill.pill-nfl.active { background: var(--accent-green-dim); border-color: var(--accent-green); color: var(--accent-green); }
    .inj-pill.pill-wnba.active { background: var(--accent-orange-dim); border-color: var(--accent-orange); color: var(--accent-orange); }
    .inj-pill.pill-mls.active { background: var(--accent-green-dim); border-color: var(--accent-green); color: var(--accent-green); }
    .inj-pill.pill-epl.active { background: var(--accent-purple-dim, rgba(202,146,255,0.15)); border-color: var(--accent-purple, #ca92ff); color: var(--accent-purple, #ca92ff); }
    .inj-source-note {
      margin: 12px 0 4px;
      font-size: 10px;
      color: var(--text-muted);
      letter-spacing: 0.02em;
    }

    /* Team search */
    .inj-search-wrap {
      position: relative;
      margin-bottom: 14px;
    }
    .inj-search {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 13px;
      padding: 8px 12px 8px 34px;
      outline: none;
      font-family: var(--font-ui);
    }
    .inj-search:focus { border-color: var(--accent-blue); }
    .inj-search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
      font-size: 14px;
    }

    /* Injury cards */
    .inj-section-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin: 14px 0 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .inj-section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border-color);
    }
    .injury-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 11px 14px;
      margin-bottom: 7px;
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 10px;
      transition: border-color 0.2s;
    }
    .injury-card > .inj-avatar,
    .injury-card > .inj-avatar-placeholder {
      margin-top: 2px;
    }
    .injury-card:hover { border-color: rgba(255,255,255,0.15); }
    .injury-card.status-out   { border-left: 3px solid var(--accent-red); }
    .injury-card.status-doubtful { border-left: 3px solid var(--accent-orange); }
    .injury-card.status-questionable { border-left: 3px solid var(--accent-gold); }
    .injury-card.status-probable { border-left: 3px solid var(--accent-green); }
    .inj-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
    }
    .inj-avatar--team-fallback,
    .feed-avatar--team-fallback,
    .ticket-avatar--team-fallback,
    .wb-avatar--team-fallback {
      object-fit: contain;
      padding: 4px;
      background: rgba(255,255,255,0.04);
    }
    .inj-avatar-placeholder {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-muted);
      flex-shrink: 0;
      border: 1px solid var(--border-color);
    }
    .inj-card-body {
      flex: 1;
      min-width: 0;
    }
    .inj-card-row1 {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
    }
    .injury-player {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .inj-starter-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 5px;
      border-radius: 4px;
      background: var(--accent-gold-dim);
      color: var(--accent-gold);
      letter-spacing: 0.3px;
    }
    .injury-team {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .inj-detail {
      font-size: 11px;
      color: var(--text-secondary);
      margin-top: 2px;
    }
    .inj-return {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 2px;
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .injury-status {
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 4px;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .injury-status.out { background: var(--accent-red-dim); color: var(--accent-red); }
    .injury-status.doubtful { background: var(--accent-orange-dim); color: var(--accent-orange); }
    .injury-status.questionable { background: var(--accent-gold-dim); color: var(--accent-gold); }
    .injury-status.probable { background: var(--accent-green-dim); color: var(--accent-green); }

    /* Lineup cards */
    .lineup-game-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      margin-bottom: 14px;
      overflow: hidden;
    }
    .lineup-game-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      background: var(--bg-secondary);
      border-bottom: 1px solid var(--border-color);
      cursor: pointer;
      user-select: none;
    }
    .lineup-game-teams {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 700;
    }
    .lineup-game-teams img {
      width: 22px;
      height: 22px;
      object-fit: contain;
    }
    .lineup-game-meta {
      font-size: 11px;
      color: var(--text-muted);
    }
    .lineup-confirmed-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      background: var(--accent-green-dim);
      color: var(--accent-green);
      letter-spacing: 0.3px;
    }
    .lineup-projected-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
      background: var(--accent-gold-dim);
      color: var(--accent-gold);
      letter-spacing: 0.3px;
    }
    .lineup-body {
      padding: 12px 14px;
      display: none;
    }
    .lineup-body.open { display: block; }
    .lineup-teams-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .lineup-team-col h4 {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .lineup-team-col h4 img {
      width: 16px;
      height: 16px;
      object-fit: contain;
    }
    .lineup-player-row {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 5px 0;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      font-size: 12px;
    }
    .lineup-player-row:last-child { border-bottom: none; }
    .lineup-num {
      width: 16px;
      font-size: 10px;
      color: var(--text-muted);
      font-weight: 600;
      flex-shrink: 0;
    }
    .lineup-pos {
      font-size: 9px;
      font-weight: 700;
      width: 26px;
      padding: 2px 4px;
      border-radius: 3px;
      text-align: center;
      background: var(--bg-secondary);
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .lineup-pname {
      flex: 1;
      font-weight: 600;
      color: var(--text-primary);
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .lineup-inj-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .lineup-inj-dot.out { background: var(--accent-red); }
    .lineup-inj-dot.q   { background: var(--accent-gold); }
    .lineup-inj-dot.p   { background: var(--accent-green); }

    /* ══ LINEUP STATUS PILLS ════════════════════════════════ */
    .lp-status {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: 0.2px;
      flex-shrink: 0;
      text-transform: uppercase;
    }
    .lp-status.in    { background: rgba(0,230,118,0.12);  color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
    .lp-status.out   { background: rgba(255,68,68,0.12);  color: var(--accent-red);   border: 1px solid rgba(255,68,68,0.3); }
    .lp-status.q     { background: rgba(245,197,24,0.12); color: var(--accent-gold);  border: 1px solid rgba(245,197,24,0.3); }
    .lp-status.gtd   { background: rgba(245,197,24,0.12); color: var(--accent-gold);  border: 1px solid rgba(245,197,24,0.3); }
    .lp-status.prob  { background: rgba(68,136,255,0.12); color: var(--accent-blue);  border: 1px solid rgba(68,136,255,0.3); }
    .lp-status.dnp   { background: rgba(255,255,255,0.05); color: var(--text-muted);  border: 1px solid rgba(255,255,255,0.1); }
    .lp-status.dtd   { background: rgba(245,197,24,0.12); color: var(--accent-gold);  border: 1px solid rgba(245,197,24,0.3); }

    /* Starter dot — small circle left of name */
    .lp-starter-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      flex-shrink: 0;
    }
    .lp-starter-dot.confirmed {
      background: var(--accent-green);
      box-shadow: 0 0 4px rgba(0,230,118,0.5);
    }
    /* Legacy — keep for any remaining refs */
    .lp-starter-check {
      font-size: 9px;
      color: var(--accent-green);
      flex-shrink: 0;
    }

    /* Dimmed row when player is OUT/DNP */
    .lineup-player-row.lp-out {
      opacity: 0.45;
      text-decoration: line-through;
      text-decoration-color: rgba(255,68,68,0.5);
    }
    .lineup-player-row.lp-out .lineup-pname {
      color: var(--text-muted);
    }

    /* ── Mobile lineup fixes — prevent status pill clipping ── */
    @media (max-width: 600px) {
      /* Tighter two-column grid gap */
      .lineup-teams-grid {
        gap: 6px;
      }
      /* Smaller row gaps so everything fits */
      .lineup-player-row {
        gap: 4px;
        padding: 4px 0;
      }
      /* Shrink the row number */
      .lineup-num {
        width: 12px;
        font-size: 9px;
      }
      /* Shrink position badge */
      .lineup-pos {
        width: 20px;
        font-size: 8px;
        padding: 2px 2px;
      }
      /* Player name smaller so pill has room */
      .lineup-pname {
        font-size: 10px;
      }
      /* Starter dot smaller */
      .lp-starter-dot {
        width: 4px;
        height: 4px;
      }
      /* Status pill: smaller font + tighter padding so it never clips */
      .lp-status {
        font-size: 8px;
        padding: 2px 4px;
        letter-spacing: 0;
        white-space: nowrap;
      }
    }

    /* Extra tight for very small screens (iPhone SE, etc.) */
    @media (max-width: 390px) {
      .lineup-teams-grid {
        gap: 4px;
      }
      .lineup-player-row {
        gap: 3px;
      }
      .lineup-pname {
        font-size: 9.5px;
      }
      .lp-status {
        font-size: 7.5px;
        padding: 2px 3px;
      }
    }

    /* Lineup game card when confirmed — green left border */
    .lineup-game-card.lineup-live {
      border-left: 3px solid var(--accent-green);
    }
    .lineup-game-card.lineup-final {
      border-left: 3px solid var(--text-muted);
      opacity: 0.7;
    }

    /* Lineup auto-refresh clock badge */
    .lineup-freshness {
      font-size: 9px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
    }
    .lineup-freshness.stale { color: var(--accent-gold); }

    /* Lineup status summary row below team header */
    .lineup-status-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-bottom: 8px;
    }
    .lineup-summary-pill {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 20px;
    }

    /* News cards */
    .news-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      margin-bottom: 8px;
      display: flex;
      gap: 11px;
      align-items: flex-start;
      cursor: pointer;
      transition: border-color 0.2s;
      text-decoration: none;
    }
    .news-card:hover { border-color: var(--accent-blue); }
    .news-thumb {
      width: 64px;
      height: 54px;
      border-radius: 7px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-secondary);
    }
    .news-thumb-placeholder {
      width: 64px;
      height: 54px;
      border-radius: 7px;
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }
    .news-body { flex: 1; min-width: 0; }
    .news-league-tag {
      font-size: 9px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      background: var(--accent-blue-dim);
      color: var(--accent-blue);
      display: inline-block;
      margin-bottom: 4px;
      letter-spacing: 0.4px;
    }
    .news-tag-nba { background: var(--accent-orange-dim); color: var(--accent-orange); }
    .news-tag-nhl { background: var(--accent-blue-dim); color: var(--accent-blue); }
    .news-tag-mlb { background: var(--accent-red-dim); color: var(--accent-red); }
    .news-tag-nfl { background: var(--accent-green-dim); color: var(--accent-green); }
    .news-headline {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-primary);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .news-meta {
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    .news-inj-flag {
      display: inline-block;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 3px;
      background: var(--accent-red-dim);
      color: var(--accent-red);
      margin-left: 4px;
    }

    /* League News dashboard */
    .league-news-shell {
      padding: 8px 0 0;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .league-news-hero {
      background:
        radial-gradient(circle at top right, rgba(34,197,94,0.08), transparent 36%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.98), rgba(6, 15, 28, 0.98));
      border: 1px solid rgba(97,120,176,0.16);
      border-radius: 22px;
      padding: 18px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    }
    .league-news-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 4px;
    }
    .league-news-subtitle {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .league-news-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .league-news-pills {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }
    .league-news-pills::-webkit-scrollbar { display: none; }
    .league-news-pill,
    .league-news-refresh {
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(12,22,40,0.92);
      color: var(--text-secondary);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
      cursor: pointer;
    }
    .league-news-pill.active {
      color: #07110c;
      background: var(--accent-green);
      border-color: var(--accent-green);
      box-shadow: 0 0 18px rgba(0,230,118,0.22);
    }
    .league-news-refresh {
      color: var(--accent-blue);
      border-color: rgba(68,136,255,0.28);
    }
    .league-news-meta {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .league-game-grid,
    .league-article-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 10px;
    }
    .league-game-card,
    .league-article-card {
      background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 16, 30, 0.98));
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 14px;
      min-width: 0;
    }
    .league-article-card {
      padding: 0;
      overflow: hidden;
      text-decoration: none;
    }
    .league-article-image {
      width: 100%;
      height: 116px;
      object-fit: cover;
      display: block;
      background: linear-gradient(135deg, rgba(0,230,118,0.12), rgba(68,136,255,0.10));
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .league-article-body {
      padding: 13px;
    }
    .league-game-card:hover,
    .league-article-card:hover {
      border-color: rgba(0,230,118,0.35);
    }
    .league-news-section-title {
      font-size: 13px;
      color: var(--text-secondary);
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-top: 4px;
    }
    .league-game-matchup,
    .league-article-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.35;
    }
    .league-game-status,
    .league-article-summary {
      margin-top: 6px;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .league-news-source {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      margin-bottom: 7px;
      padding: 3px 7px;
      border-radius: 999px;
      background: rgba(68,136,255,0.12);
      color: var(--accent-blue);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.4px;
      text-transform: uppercase;
    }
    .league-news-empty {
      padding: 26px 16px;
      text-align: center;
      color: var(--text-muted);
      background: rgba(8, 18, 34, 0.7);
      border: 1px dashed rgba(255,255,255,0.12);
      border-radius: 18px;
      font-size: 12px;
    }

    .suggestions-section {
      margin-top: 24px;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }

    .suggestions-title {
      font-size: 14px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 12px;
    }

    .suggested-parlay-card {
      background: rgba(8, 18, 34, 0.9);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 14px;
      display: grid;
      gap: 10px;
      margin-bottom: 10px;
    }

    .suggested-parlay-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .suggested-parlay-name {
      font-weight: 800;
      font-size: 13px;
      color: var(--text-primary);
    }

    .suggested-parlay-legs {
      font-size: 10px;
      background: rgba(99,102,241,0.15);
      color: #818cf8;
      border-radius: 999px;
      padding: 3px 8px;
      font-weight: 800;
    }

    .suggested-parlay-desc {
      font-size: 11px;
      color: var(--text-muted);
    }

    .suggested-parlay-pick {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .suggested-parlay-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .suggested-parlay-pick span:last-child {
      margin-left: auto;
      font-size: 11px;
      font-weight: 700;
    }

    @media (max-width: 767px) {
      .league-news-shell { padding: 12px; gap: 12px; }
      .league-news-hero { padding: 14px; }
      .league-news-title { font-size: 16px; }
      .league-news-toolbar { align-items: stretch; }
      .league-news-pills { width: 100%; }
      .league-news-refresh { width: 100%; text-align: center; }
      .league-game-grid,
      .league-article-grid { grid-template-columns: 1fr; }
    }

    /* ══ REAL-TIME INJURY FEED (News tab) ════════════════════════ */
    .feed-meta-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      font-size: 10px;
      color: var(--text-muted);
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 2px;
    }
    .feed-meta-count { font-weight: 700; color: var(--text-secondary); }
    .feed-meta-live  { color: var(--accent-green); font-weight: 600; letter-spacing: 0.2px; }

    .inj-feed-list { display: flex; flex-direction: column; }

    .feed-item {
      display: flex;
      gap: 10px;
      padding: 12px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: background 0.15s;
    }
    .feed-item:hover { background: rgba(255,255,255,0.025); }
    .feed-item-out  { border-left: 3px solid var(--accent-red);  padding-left: 9px; }
    .feed-item-dnp  { border-left: 3px solid var(--accent-red);  padding-left: 9px; }
    .feed-item-q    { border-left: 3px solid var(--accent-gold); padding-left: 9px; }
    .feed-item-gtd  { border-left: 3px solid var(--accent-gold); padding-left: 9px; }
    .feed-item-dtd  { border-left: 3px solid var(--accent-gold); padding-left: 9px; }
    .feed-item-prob { border-left: 3px solid var(--accent-blue); padding-left: 9px; }
    .feed-item-in   { border-left: 3px solid var(--accent-green);padding-left: 9px; }

    .feed-item-left { flex-shrink: 0; }
    .feed-avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-secondary);
      display: block;
    }
    .feed-avatar-placeholder {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--bg-card-hover);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; font-weight: 700; color: var(--text-muted);
    }

    .feed-item-body { flex: 1; min-width: 0; }
    .feed-item-header {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
      margin-bottom: 4px;
    }
    .feed-player-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .feed-league-tag {
      font-size: 9px; font-weight: 700;
      padding: 1px 5px; border-radius: 3px;
      text-transform: uppercase;
    }
    .feed-league-nba { background: rgba(255,140,0,0.15); color: #ff8c00; }
    .feed-league-nhl { background: rgba(68,136,255,0.15); color: var(--accent-blue); }
    .feed-league-mlb { background: rgba(255,68,68,0.15);  color: var(--accent-red); }
    .feed-league-nfl { background: rgba(0,230,118,0.15);  color: var(--accent-green); }
    .feed-team-tag {
      font-size: 9px; font-weight: 700;
      padding: 1px 5px; border-radius: 3px;
      background: rgba(255,255,255,0.07);
      color: var(--text-muted);
    }
    .feed-pos {
      font-size: 9px; color: var(--text-muted);
    }
    .feed-time {
      font-size: 10px; color: var(--text-muted);
      margin-left: auto;
      white-space: nowrap;
    }

    .feed-status-line {
      display: flex; align-items: center; gap: 6px;
      flex-wrap: wrap;
      margin-bottom: 5px;
    }
    .feed-status-badge {
      font-size: 9px; font-weight: 800;
      padding: 2px 7px; border-radius: 4px;
      letter-spacing: 0.4px; text-transform: uppercase;
    }
    .feed-status-out  { background: rgba(255,68,68,0.15);  color: var(--accent-red);   border: 1px solid rgba(255,68,68,0.3); }
    .feed-status-q    { background: rgba(245,197,24,0.12); color: var(--accent-gold);  border: 1px solid rgba(245,197,24,0.3); }
    .feed-status-prob { background: rgba(68,136,255,0.12); color: var(--accent-blue);  border: 1px solid rgba(68,136,255,0.3); }
    .feed-status-in   { background: rgba(0,230,118,0.12);  color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
    .feed-inj-type {
      font-size: 10px; color: var(--text-muted);
      font-style: italic;
    }
    .feed-return {
      font-size: 9px; font-weight: 600;
      color: var(--accent-blue);
      background: rgba(68,136,255,0.08);
      padding: 1px 5px; border-radius: 3px;
    }

    .feed-blurb {
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.5;
      margin-top: 2px;
    }
    .feed-expand-btn {
      display: inline-block;
      margin-top: 4px;
      font-size: 10px;
      color: var(--accent-blue);
      background: none; border: none;
      cursor: pointer; padding: 0;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    .feed-long-blurb {
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.55;
      margin-top: 4px;
      padding-top: 4px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* ── Inline game feed strip (inside lineup cards) ──────────────── */
    .game-feed-strip {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .gf-label {
      font-size: 10px; font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .gf-row {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      padding: 7px 0;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .gf-row:last-child { border-bottom: none; }
    .gf-avatar {
      width: 30px; height: 30px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-secondary);
    }
    .gf-avatar-ph {
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700;
      color: var(--text-muted);
      background: var(--bg-card-hover);
    }
    .gf-body { flex: 1; min-width: 0; }
    .gf-header {
      display: flex; align-items: center; gap: 5px;
      flex-wrap: wrap; margin-bottom: 2px;
    }
    .gf-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
    .gf-status {
      font-size: 9px; font-weight: 800;
      padding: 1px 5px; border-radius: 3px;
    }
    .gf-time { font-size: 9px; color: var(--text-muted); margin-left: auto; }
    .gf-blurb {
      font-size: 10px;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* Empty / loading states */
    .inj-empty {
      text-align: center;
      padding: 32px 16px;
      color: var(--text-muted);
      font-size: 13px;
    }
    .inj-empty-icon { font-size: 32px; margin-bottom: 8px; }
    .inj-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 24px;
      color: var(--text-muted);
      font-size: 12px;
    }

    /* Desktop 2-col grid for injury cards */
    @media (min-width: 768px) {
      .inj-cards-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }
      .inj-cards-grid .injury-card { margin-bottom: 0; }
      .news-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }
      .news-grid .news-card { margin-bottom: 0; }
    }
    @media (min-width: 1100px) {
      .inj-cards-grid { grid-template-columns: 1fr 1fr 1fr; }
      .news-grid { grid-template-columns: 1fr 1fr 1fr; }
    }

    /* Strategy */
    .strategy-section {
      margin-bottom: 20px;
    }

    .strategy-section-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .strategy-pick {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
    }

    .strategy-pick:hover { border-color: var(--accent-green); }

    .strategy-pick-player {
      font-size: 13px;
      font-weight: 600;
    }

    .strategy-pick-prop {
      font-size: 11px;
      color: var(--text-muted);
    }

    .strategy-pick-score {
      font-family: 'JetBrains Mono', monospace;
      font-size: 16px;
      font-weight: 700;
    }

    /* Loading & Empty */
    .loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 20px;
      color: var(--text-muted);
    }

    .spinner {
      width: 40px;
      height: 40px;
      border: 3px solid var(--border-color);
      border-top-color: var(--accent-green);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 16px;
    }

    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes spin3d {
      0% { transform: rotateX(0deg) rotateY(0deg); }
      100% { transform: rotateX(360deg) rotateY(360deg); }
    }
    @keyframes badgeBounce {
      0% { opacity: 0; transform: scale(0.3); }
      50% { transform: scale(1.1); }
      100% { opacity: 1; transform: scale(1); }
    }
    @keyframes filterGlow {
      0% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
      50% { box-shadow: 0 0 8px 2px rgba(0,230,118,0.4); }
      100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); }
    }
    @keyframes underlineSlide {
      from { transform: scaleX(0); transform-origin: left; }
      to { transform: scaleX(1); transform-origin: left; }
    }

    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-muted);
    }

    .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
    .empty-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
    .empty-text { font-size: 13px; overflow-wrap: anywhere; }

    .schedule-panel {
      margin: 20px auto 0;
      padding: 16px;
      max-width: 420px;
      background: var(--bg-tertiary);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: var(--radius-md);
      text-align: left;
    }

    .schedule-panel-title {
      font-size: 12px;
      color: var(--text-secondary);
      margin-bottom: 10px;
      font-weight: 700;
    }

    .schedule-row {
      display: grid;
      grid-template-columns: minmax(78px, max-content) 1fr;
      gap: 8px;
      align-items: start;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .schedule-time-chip {
      display: inline-flex;
      white-space: nowrap;
      min-width: max-content;
      color: var(--text-secondary);
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
    }

    @media (max-width: 380px) {
      .schedule-panel { padding: 14px; }
      .schedule-row { grid-template-columns: 1fr; gap: 2px; margin-bottom: 8px; }
    }

    /* Load More */
    .load-more {
      padding: 20px;
      text-align: center;
    }

    .load-more-btn {
      padding: 12px 24px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      color: var(--text-primary);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      font-family: inherit;
    }

    .load-more-btn:hover { border-color: var(--accent-green); }

    .props-load-more-sentinel {
      text-align: center;
      color: var(--text-muted);
      font-size: 12px;
      padding: 16px 12px 8px;
    }

    .site-mobile-props-board .props-grid {
      gap: 12px;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 100px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      pointer-events: none;
      background: var(--bg-secondary);
      color: var(--text-primary);
      padding: 12px 24px;
      border-radius: var(--radius-md);
      font-size: 13px;
      font-weight: 500;
      box-shadow: var(--shadow-lg);
      border: 1px solid var(--border-color);
      z-index: 1000;
      opacity: 0;
      transition: all 0.3s;
      max-width: min(92vw, 420px);
      text-align: center;
    }

    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    /* Pace Matchup Styling */
    .pace-filters {
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .pace-filter-group {
      display: flex;
      gap: 8px;
    }

    .pace-filter-btn {
      padding: 6px 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s;
    }

    .pace-filter-btn:hover {
      border-color: var(--accent-green);
      background: var(--bg-card-hover);
    }

    .pace-filter-btn.active {
      background: var(--accent-green);
      color: #000;
      border-color: var(--accent-green);
    }

    .pace-controls {
      padding: 12px 16px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--border-color);
    }

    .pace-search {
      flex: 1;
      min-width: 150px;
    }

    .pace-search-input {
      width: 100%;
      padding: 8px 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 13px;
      font-family: inherit;
    }

    .pace-search-input::placeholder {
      color: var(--text-muted);
    }

    .pace-search-input:focus {
      outline: none;
      border-color: var(--accent-green);
      box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
    }

    .pace-sort {
      flex: 1;
      min-width: 120px;
    }

    .pace-sort-select {
      width: 100%;
      padding: 8px 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 13px;
      font-family: inherit;
      cursor: pointer;
    }

    .pace-sort-select:focus {
      outline: none;
      border-color: var(--accent-green);
    }

    .pace-cards-container {
      padding: 12px 16px;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 12px;
    }

    @media (max-width: 768px) {
      .pace-cards-container {
        grid-template-columns: 1fr;
      }
    }

    .pace-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: all 0.2s;
    }

    .pace-card:hover {
      border-color: var(--accent-green);
      background: var(--bg-card-hover);
    }

    .pace-card-header {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 8px;
    }

    .pace-card-player {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .pace-card-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .pace-card-team {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .pace-card-league {
      font-size: 10px;
      padding: 4px 8px;
      background: var(--accent-blue-dim);
      color: var(--accent-blue);
      border-radius: 4px;
      font-weight: 600;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .pace-card-favorability {
      font-size: 11px;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 4px;
      white-space: nowrap;
    }

    .pace-card-favorability.favorable {
      background: var(--accent-green-dim);
      color: var(--accent-green);
    }

    .pace-card-favorability.neutral {
      background: var(--accent-orange-dim);
      color: var(--accent-orange);
    }

    .pace-card-favorability.unfavorable {
      background: var(--accent-red-dim);
      color: var(--accent-red);
    }

    .pace-card-metrics {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .pace-metric {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .pace-metric-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      font-weight: 600;
      letter-spacing: 0.05em;
    }

    .pace-metric-value {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
      font-family: 'JetBrains Mono', monospace;
    }

    .pace-card-edge {
      padding: 8px;
      background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-card));
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .pace-edge-label {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      font-weight: 600;
    }

    .pace-edge-value {
      font-size: 16px;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent-green);
    }

    .pace-edge-value.negative {
      color: var(--accent-red);
    }

    /* =====================================================
       GAME MODAL
       ===================================================== */

    /* Game Modal */
    .game-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.75);
      z-index: 5000; opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      backdrop-filter: blur(4px);
      touch-action: none;
      overscroll-behavior: contain;
    }
    .game-overlay.open { opacity: 1; pointer-events: all; }

    .game-modal {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -48%) scale(0.97);
      opacity: 0;
      pointer-events: none;
      width: 90vw; max-width: 680px;
      max-height: 86vh;
      background: var(--bg-secondary);
      border-radius: 20px;
      z-index: 5001;
      overflow-y: auto;
      overflow-x: hidden;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      display: flex; flex-direction: column;
      box-shadow: 0 32px 80px rgba(0,0,0,0.6);
      transition: transform 0.32s cubic-bezier(0.32,0.72,0,1), opacity 0.28s ease;
    }
    .game-modal.open {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
      pointer-events: auto;
    }
    #outcomeOverlay {
      display: none;
    }
    #outcomeOverlay.open {
      display: block;
    }
    #outcomeModal {
      display: none;
      opacity: 0;
      transform: scale(0.95);
      transition: opacity 0.2s, transform 0.2s;
      z-index: 1002;
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) scale(0.95) !important;
    }
    #outcomeModal.open {
      display: block;
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) !important;
    }
    .outcome-badge {
      cursor: pointer;
      opacity: 0.8;
      transition: opacity 0.15s;
      border-radius: 4px;
      padding: 2px 4px;
    }
    .outcome-badge:hover {
      opacity: 1;
      background: rgba(255,255,255,0.1);
    }
    .outcome-badge.has-outcome {
      opacity: 1;
      background: rgba(76, 175, 80, 0.2);
    }
    .game-modal-scroll {
      overflow-y: auto; overflow-x: hidden;
      flex: 1; padding: 0 0 24px;
      -webkit-overflow-scrolling: touch;
    }
    .game-modal-hero {
      padding: 20px 20px 16px;
      background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
      border-bottom: 1px solid var(--border-color);
      display: flex; flex-direction: column; gap: 12px;
    }
    .game-modal-teams {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .game-modal-team {
      display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
    }
    .game-modal-team-logo { font-size: 40px; }
    .game-modal-team-name { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
    .game-modal-score-wrap {
      display: flex; flex-direction: column; align-items: center; gap: 4px;
    }
    .game-modal-score {
      font-family: 'JetBrains Mono', monospace;
      font-size: 36px; font-weight: 800; color: var(--text-primary);
      letter-spacing: -1px;
    }
    .game-modal-status-badge {
      font-size: 10px; font-weight: 700; padding: 3px 8px;
      border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .game-modal-status-badge.live { background: var(--accent-red); color: #fff; }
    .game-modal-status-badge.final { background: var(--bg-tertiary); color: var(--text-muted); }
    .game-modal-status-badge.upcoming { background: var(--bg-tertiary); color: var(--text-secondary); }
    /* Live clock row — period + countdown */
    .game-modal-clock-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 4px;
    }
    .game-modal-period {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .game-modal-clock {
      font-size: 13px;
      font-weight: 800;
      font-family: 'JetBrains Mono', monospace;
      color: var(--accent-red);
      letter-spacing: 0.5px;
      animation: clockPulse 1s ease-in-out infinite;
    }
    @keyframes clockPulse {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.6; }
    }
    .game-modal-close {
      position: absolute; top: 14px; right: 14px;
      width: 32px; height: 32px; border-radius: 50%;
      background: var(--bg-tertiary); border: 1px solid var(--border-color);
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: var(--text-muted);
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }
    .game-modal-section { padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
    .game-modal-play-feed {
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-height: 220px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .game-modal-play-item {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 8px 10px;
      align-items: start;
      padding: 8px 10px;
      border-radius: 10px;
      background: rgba(8, 18, 34, 0.72);
      border: 1px solid rgba(255,255,255,0.06);
    }
    .game-modal-play-item.is-score {
      border-color: rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.08);
    }
    .game-modal-play-clock {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
      white-space: nowrap;
    }
    .game-modal-play-text {
      font-size: 11px;
      line-height: 1.35;
      color: var(--text-primary);
    }
    .game-modal-section-title {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px;
      display: flex; align-items: center; gap: 6px;
    }
    .game-modal-leaders {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    }
    .game-modal-leader-col { display: flex; flex-direction: column; gap: 6px; }
    .game-modal-leader-col-header {
      font-size: 10px; font-weight: 700; color: var(--text-muted);
      text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
      display: flex; align-items: center; gap: 4px;
    }
    .game-modal-leader-row {
      display: flex; justify-content: space-between; align-items: center;
      padding: 5px 8px; background: var(--bg-card);
      border-radius: var(--radius-sm); gap: 8px;
    }
    .game-modal-leader-name { font-size: 11px; font-weight: 600; color: var(--text-primary); }
    .game-modal-leader-stat { font-size: 11px; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--accent-green); }
    .game-modal-leader-sublabel { font-size: 9px; color: var(--text-muted); }
    .game-modal-odds {
      display: flex; gap: 10px;
    }
    .game-modal-odds-pill {
      flex: 1; padding: 8px 12px; background: var(--bg-card);
      border-radius: var(--radius-sm); border: 1px solid var(--border-color);
      text-align: center;
    }
    .game-modal-odds-val { font-size: 15px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); }
    .game-modal-odds-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
    .game-modal-props { display: flex; flex-direction: column; gap: 8px; }
    .game-modal-prop-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 12px; background: var(--bg-card);
      border-radius: var(--radius-sm); border: 1px solid var(--border-color);
      cursor: pointer; transition: border-color 0.2s;
    }
    .game-modal-prop-row:hover { border-color: var(--accent-green); }
    .game-modal-prop-left { display: flex; flex-direction: column; gap: 2px; }
    .game-modal-prop-player { font-size: 12px; font-weight: 700; color: var(--text-primary); }
    .game-modal-prop-detail { font-size: 10px; color: var(--text-muted); }
    .game-modal-prop-right { display: flex; align-items: center; gap: 8px; }
    .game-modal-prop-dir { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
    .game-modal-prop-dir.over { background: rgba(0,230,118,0.15); color: var(--accent-green); }
    .game-modal-prop-dir.under { background: rgba(255,82,82,0.15); color: var(--accent-red); }
    .game-modal-prop-line { font-size: 14px; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--text-primary); }
    .game-modal-prop-edge { font-size: 10px; font-weight: 600; color: var(--accent-green); }
    .game-modal-prop-score {
      width: 28px; height: 28px; border-radius: 50%;
      background: var(--accent-gold); color: var(--bg-primary);
      font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    }
    .game-modal-loading { padding: 20px; text-align: center; color: var(--text-muted); font-size: 12px; }

    /* Two-column body layout */
    .game-modal-body {
      display: flex;
      flex-direction: column;
    }
    .game-modal-col-left,
    .game-modal-col-right {
      display: flex;
      flex-direction: column;
    }
    .game-modal-col-left .game-modal-section:last-child,
    .game-modal-col-right .game-modal-section:last-child {
      border-bottom: none;
    }

    /* Field graphic — Desktop overrides (inside game modal only) */
    @media (min-width: 768px) {
      .game-modal .ltf-nfl,
      .game-modal .ltf-nba,
      .game-modal .ltf-nhl,
      .game-modal .ltf-mlb { height: 130px; }
      .game-modal .ltf-nba-3pt { width: 150px; height: 100px; border-radius: 0 0 100px 100px; }
      .game-modal .ltf-nba-lane { width: 60px; height: 66px; }
      .game-modal .ltf-nba-circle { width: 34px; height: 34px; }
      .game-modal .ltf-nba-label { font-size: 12px; }
      .game-modal .ltf-nhl-label { font-size: 12px; }
      .game-modal .ltf-drive-text { font-size: 12px; bottom: 8px; }
      .game-modal .ltf-ball-icon { width: 26px; height: 16px; }
      .game-modal .ltf-mlb-diamond { width: 80px; height: 80px; }
      .game-modal .ltf-mlb-base { width: 14px; height: 14px; }
    }

    /* Game Modal — Desktop overrides */
    @media (min-width: 768px) {
      .game-modal {
        width: 82vw;
        max-width: 960px;
        max-height: 88vh;
        border-radius: 24px;
      }
      .game-modal-hero {
        padding: 28px 32px 22px;
        gap: 18px;
      }
      .game-modal-team-logo { font-size: 64px; }
      .game-modal-team-name { font-size: 14px; letter-spacing: 0.08em; }
      .game-modal-score {
        font-size: 56px;
        letter-spacing: -2px;
      }
      .game-modal-status-badge {
        font-size: 12px;
        padding: 4px 14px;
      }
      .game-modal-close {
        width: 38px; height: 38px;
        font-size: 16px;
        top: 18px; right: 18px;
      }
      .game-modal-section {
        padding: 22px 28px;
      }
      .game-modal-section-title {
        font-size: 11px;
        margin-bottom: 16px;
        letter-spacing: 0.1em;
      }
      .game-modal-leaders {
        gap: 14px;
      }
      .game-modal-leader-col-header {
        font-size: 12px;
        margin-bottom: 8px;
      }
      .game-modal-leader-row {
        padding: 8px 12px;
        border-radius: 8px;
      }
      .game-modal-leader-name { font-size: 13px; }
      .game-modal-leader-stat { font-size: 13px; }
      .game-modal-odds { gap: 14px; }
      .game-modal-odds-pill { padding: 12px 20px; border-radius: 10px; }
      .game-modal-odds-val { font-size: 20px; }
      .game-modal-odds-label { font-size: 11px; margin-top: 4px; }
      .game-modal-props { gap: 10px; }
      .game-modal-prop-row {
        padding: 13px 16px;
        border-radius: 10px;
      }
      .game-modal-prop-player { font-size: 14px; }
      .game-modal-prop-detail { font-size: 12px; }
      .game-modal-prop-dir { font-size: 10px; padding: 3px 8px; }
      .game-modal-prop-line { font-size: 18px; }
      .game-modal-prop-edge { font-size: 12px; }
      .game-modal-prop-score {
        width: 34px; height: 34px;
        font-size: 12px;
      }
      .game-modal-loading { font-size: 13px; padding: 28px; }

      /* Two-column body on desktop */
      .game-modal-body {
        flex-direction: row;
        align-items: flex-start;
      }
      .game-modal-col-left {
        flex: 0 0 44%;
        border-right: 1px solid var(--border-color);
        min-height: 100%;
      }
      .game-modal-col-right {
        flex: 1;
      }
      .game-modal-col-left .game-modal-section,
      .game-modal-col-right .game-modal-section {
        border-bottom: 1px solid var(--border-color);
      }
      .game-modal-col-left .game-modal-section:last-child {
        border-bottom: none;
      }
      .game-modal-col-right .game-modal-section:last-child {
        border-bottom: none;
      }
    }

    /* =====================================================
       PROPEDGE PLAYER DETAIL PANEL
       ===================================================== */

    /* Overlay backdrop */
    .detail-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95); /* Ultimate isolation to stop bleed */
      z-index: 5000;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      backdrop-filter: blur(12px);
    }
    .detail-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    /* Slide-up drawer — layout/position preserved for mobile nav clearance */
    .detail-panel {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 88vh; /* Clearance for mobile browser search bars */
      max-height: 88vh;
      background: #05080e; /* Pure solid to prevent transparency artifacts */
      border-radius: 28px 28px 0 0;
      z-index: 5001;
      transform: translateY(100%);
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: 0 -12px 60px rgba(0,0,0,0.8);
      border-top: 1px solid rgba(57, 255, 20, 0.16);
    }

    .detail-panel-chrome {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 28px 20px 12px;
      width: 100%;
      flex-shrink: 0;
      background: linear-gradient(180deg, #0c1018, #05080e);
      z-index: 10000;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .detail-panel-chrome-label {
      font-size: 10px;
      font-weight: 800;
      color: rgba(57, 255, 20, 0.85);
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }
    .detail-panel.open {
      transform: translateY(0);
    }

    /* Desktop: centered modal instead */
    @media (min-width: 768px) {
      .detail-panel {
        max-width: 680px;
        width: 90vw;
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -40%) scale(0.97);
        opacity: 0;
        pointer-events: none;
        border-radius: 20px;
        max-height: 86vh;
        box-shadow: 0 32px 80px rgba(0,0,0,0.6);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.28s ease;
      }
      .detail-panel.open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
      }
    }

    /* Drag handle */
    .detail-handle {
      width: 36px;
      height: 4px;
      background: var(--border-color);
      border-radius: 2px;
      margin: 10px auto 0;
      flex-shrink: 0;
    }
    @media (min-width: 768px) {
      .detail-handle { display: none; }
    }

    /* Scrollable content */
    .detail-scroll {
      overflow-y: auto;
      overflow-x: hidden;
      flex: 1;
      min-height: 0;
      height: 0;
      padding: 0 0 env(safe-area-inset-bottom);
      scrollbar-width: thin;
      scrollbar-color: var(--border-color) transparent;
      -webkit-overflow-scrolling: touch;
    }
    .detail-scroll::-webkit-scrollbar { width: 4px; }
    .detail-scroll::-webkit-scrollbar-track { background: transparent; }
    .detail-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

    /* Hero section */
    .detail-hero {
      position: relative;
      padding: 16px 18px 0;
      display: flex;
      align-items: flex-start;
      gap: 14px;
      overflow: hidden;
    }
    .detail-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0,230,118,0.04) 0%, transparent 60%);
      pointer-events: none;
    }
    .detail-hero-photo {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top center;
      border: 3px solid var(--border-color);
      flex-shrink: 0;
      background: var(--bg-tertiary);
    }
    .detail-hero-photo.ultimate { border-color: var(--accent-gold); box-shadow: 0 0 16px rgba(245,158,11,0.35); }
    .detail-hero-photo.prime    { border-color: var(--accent-purple); box-shadow: 0 0 16px rgba(168,85,247,0.35); }
    .detail-hero-photo.strong   { border-color: var(--accent-green); box-shadow: 0 0 16px rgba(0,230,118,0.35); }
    .detail-hero-photo.solid    { border-color: var(--accent-blue); box-shadow: 0 0 16px rgba(74,143,255,0.35); }

    .detail-hero-info {
      flex: 1;
      padding-top: 4px;
    }
    .detail-hero-name {
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -0.4px;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
    .detail-hero-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      flex-wrap: wrap;
    }
    .detail-hero-meta .team-logo-sm {
      width: 20px;
      height: 20px;
      object-fit: contain;
    }
    .detail-tier-badge {
      padding: 3px 9px;
      border-radius: 5px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }
    .detail-tier-badge.ultimate { background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange)); color: #000; }
    .detail-tier-badge.prime    { background: linear-gradient(135deg, var(--accent-purple), #c084fc); color: #fff; }
    .detail-tier-badge.strong   { background: linear-gradient(135deg, var(--accent-green), #32ff96); color: #000; }
    .detail-tier-badge.solid    { background: linear-gradient(135deg, var(--accent-blue), #60a5fa); color: #fff; }
    .detail-tier-badge.spec     { background: var(--bg-tertiary); color: var(--text-muted); }

    .detail-close-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s;
    }
    .detail-close-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }

    /* Prop summary strip */
    .detail-prop-strip {
      margin: 14px 18px 0;
      background: var(--bg-card);
      border-radius: 12px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid var(--border-color);
    }
    .detail-prop-dir {
      padding: 5px 14px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
    }
    .detail-prop-dir.over  { background: rgba(0,230,118,0.12); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
    .detail-prop-dir.under { background: rgba(255,82,82,0.12); color: var(--accent-red); border: 1px solid rgba(255,82,82,0.3); }
    .detail-prop-line {
      font-family: 'JetBrains Mono', monospace;
      font-size: 22px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .detail-prop-type {
      flex: 1;
      font-size: 13px;
      color: var(--text-secondary);
    }
    .detail-prop-odds {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 600;
      padding: 4px 8px;
      background: var(--bg-secondary);
      border-radius: 5px;
      color: var(--text-muted);
    }

    /* Section labels */
    .detail-section {
      padding: 14px 18px 0;
    }
    .detail-section-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 14px;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .detail-section-title::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border-color);
    }

    /* Model score ring + key metrics row */
    .detail-model-row {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 14px;
      align-items: center;
    }
    .detail-score-ring {
      width: 72px;
      height: 72px;
      position: relative;
      flex-shrink: 0;
    }
    .detail-score-ring svg {
      width: 72px;
      height: 72px;
      transform: rotate(-90deg);
    }
    .detail-score-ring-bg { fill: none; stroke: var(--border-color); stroke-width: 6; }
    .detail-score-ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1); }
    .detail-score-ring-fill.ultimate { stroke: var(--accent-gold); filter: drop-shadow(0 0 10px rgba(255,215,64,0.8)); }
    .detail-score-ring-fill.prime    { stroke: var(--accent-purple); filter: drop-shadow(0 0 8px rgba(180,100,255,0.7)); }
    .detail-score-ring-fill.strong   { stroke: var(--accent-green); filter: drop-shadow(0 0 8px rgba(0,230,118,0.7)); }
    .detail-score-ring-fill.solid    { stroke: var(--accent-blue); filter: drop-shadow(0 0 8px rgba(50,150,255,0.6)); }
    .detail-score-ring-fill.spec     { stroke: var(--text-muted); }
    .detail-score-ring-label {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: 'JetBrains Mono', monospace;
    }
    .detail-score-ring-num {
      font-size: 64px !important;
      font-weight: 900 !important;
      font-family: var(--font-ui) !important;
      color: #fff !important;
    }
    .detail-score-ring-sub {
      font-size: 14px !important;
      letter-spacing: 1.5px !important;
      font-weight: 700 !important;
      color: var(--text-muted) !important;
    }

    /* Metric tiles */
    .detail-metric-tiles {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
    .detail-metric-tile {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 8px 6px;
      text-align: center;
    }
    .detail-metric-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .detail-metric-val.green { color: var(--accent-green); }
    .detail-metric-val.red   { color: var(--accent-red); }
    .detail-metric-val.gold  { color: var(--accent-gold); }
    .detail-metric-val.purple { color: var(--accent-purple); }
    .detail-metric-label {
      font-size: 9px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.3px;
      margin-top: 2px;
    }

    /* Hit rate bars */
    .detail-hitrate-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    .detail-hitrate-item {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 10px 12px;
    }
    .detail-hitrate-top {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 6px;
    }
    .detail-hitrate-label {
      font-size: 10px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.4px;
      font-weight: 600;
    }
    .detail-hitrate-pct {
      font-family: 'JetBrains Mono', monospace;
      font-size: 15px;
      font-weight: 700;
    }
    .detail-hitrate-bar-bg {
      height: 5px;
      background: var(--bg-tertiary);
      border-radius: 3px;
      overflow: hidden;
    }
    .detail-hitrate-bar-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
    }

    /* Game log chart */
    .detail-gamelog {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 12px;
      overflow: hidden;
    }
    .detail-gamelog-bars {
      display: flex;
      align-items: flex-end;
      gap: 4px;
      height: 70px;
      margin-bottom: 6px;
    }
    .detail-gamelog-bar-wrap {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      height: 100%;
    }
    .detail-gamelog-bar-container {
      flex: 1;
      width: 100%;
      display: flex;
      align-items: flex-end;
      position: relative;
    }
    .detail-gamelog-bar {
      width: 100%;
      border-radius: 3px 3px 0 0;
      min-height: 3px;
      transition: height 0.6s cubic-bezier(0.4,0,0.2,1);
      position: relative;
      cursor: default;
    }
    .detail-gamelog-bar.hit  { background: var(--accent-green); }
    .detail-gamelog-bar.miss { background: rgba(255,82,82,0.6); }
    .detail-gamelog-bar.neutral { background: var(--border-color); }
    .detail-gamelog-bar-line {
      position: absolute;
      left: 0;
      right: 0;
      height: 2px;
      background: rgba(255,255,255,0.35);
      border-top: 1px dashed rgba(255,255,255,0.4);
    }
    .detail-gamelog-opp {
      font-size: 7px;
      color: var(--text-muted);
      text-transform: uppercase;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
      text-align: center;
      max-width: 100%;
    }
    .detail-gamelog-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 8px;
      color: var(--text-secondary);
      text-align: center;
    }
    .detail-gamelog-prop-line {
      width: 100%;
      height: 1px;
      background: rgba(255,255,255,0.25);
      border-top: 1.5px dashed rgba(255,255,255,0.4);
      margin-bottom: 4px;
      position: relative;
    }
    .detail-gamelog-prop-line::before {
      content: 'LINE';
      position: absolute;
      right: 0;
      top: -8px;
      font-size: 7px;
      color: var(--text-muted);
      font-family: 'JetBrains Mono', monospace;
    }
    .detail-gamelog-loading {
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 12px;
    }

    /* Season stats table */
    .detail-szn-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border-color);
      border-radius: 10px;
      overflow: hidden;
    }
    @media (min-width: 480px) {
      .detail-szn-grid { grid-template-columns: repeat(5, 1fr); }
    }
    .detail-szn-cell {
      background: var(--bg-card);
      text-align: center;
      padding: 10px 4px;
    }
    .detail-szn-val {
      font-family: 'JetBrains Mono', monospace;
      font-size: 13px;
      font-weight: 700;
      color: var(--text-primary);
    }
    .detail-szn-label {
      font-size: 9px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.3px;
      margin-top: 2px;
    }
    .detail-szn-loading {
      grid-column: 1 / -1;
      padding: 16px;
      text-align: center;
      color: var(--text-muted);
      font-size: 12px;
      background: var(--bg-card);
    }

    /* Matchup rank badge */
    .detail-matchup-row {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .detail-matchup-rank {
      font-family: 'JetBrains Mono', monospace;
      font-size: 28px;
      font-weight: 700;
      min-width: 52px;
      text-align: center;
    }
    .detail-matchup-rank.good  { color: var(--accent-green); }
    .detail-matchup-rank.ok    { color: var(--accent-gold); }
    .detail-matchup-rank.bad   { color: var(--accent-red); }
    .detail-matchup-info { flex: 1; }
    .detail-matchup-label {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 2px;
    }
    .detail-matchup-sub {
      font-size: 11px;
      color: var(--text-muted);
    }

    /* Action buttons */
    .detail-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 16px 18px 20px;
    }
    .detail-action-btn {
      padding: 14px;
      border-radius: 12px;
      border: none;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .detail-action-btn.primary {
      background: linear-gradient(135deg, var(--accent-green), #32ff96);
      color: #000;
    }
    .detail-action-btn.primary:active { transform: scale(0.97); }
    .detail-action-btn.secondary {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }
    .detail-action-btn.secondary:active { transform: scale(0.97); }
    .detail-action-btn.added {
      background: var(--bg-tertiary);
      color: var(--accent-green);
      border: 1px solid var(--accent-green);
    }

    /* Streak indicator */
    .detail-streak-row {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .detail-streak-dots {
      display: flex;
      gap: 5px;
    }
    .detail-streak-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--bg-tertiary);
    }
    .detail-streak-dot.hit  { background: var(--accent-green); box-shadow: 0 0 6px rgba(0,230,118,0.5); }
    .detail-streak-dot.miss { background: var(--accent-red); }
    .detail-streak-label {
      flex: 1;
      font-size: 12px;
      color: var(--text-secondary);
    }
    .detail-streak-count {
      font-family: 'JetBrains Mono', monospace;
      font-size: 14px;
      font-weight: 700;
      color: var(--accent-gold);
    }

    /* Line movement */
    .detail-movement-row {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .detail-movement-icon { font-size: 20px; }
    .detail-movement-info { flex: 1; }
    .detail-movement-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
    .detail-movement-sub   { font-size: 11px; color: var(--text-muted); }

    /* Spacer at bottom for safe area */
    .detail-bottom-spacer { height: 8px; }

    /* OVERRIDES FOR NEON SPORTSBOOK TRENDY UI MATCHING MOCKUP */
    body { font-family: var(--font-ui) !important; }
    .prop-player-name {
      font-size: 26px !important;
      font-weight: 900 !important;
      letter-spacing: -0.5px !important;
      text-transform: uppercase !important;
      line-height: 1 !important;
      margin-bottom: 8px !important;
      color: #fff !important;
    }
    .prop-value {
      font-size: 34px !important;
      font-weight: 900 !important;
      line-height: 1 !important;
      color: #fff !important;
    }
    .prop-direction {
      font-size: 16px !important;
      font-weight: 800 !important;
    }
    .prop-type {
      font-size: 14px !important;
      font-weight: 600 !important;
      color: var(--text-muted) !important;
    }
    .prop-odds {
      color: var(--accent-green) !important;
      font-size: 38px !important;
      font-weight: 900 !important;
      letter-spacing: -2px !important;
      text-shadow: 0 0 16px rgba(0,255,100,0.5) !important;
    }
    .prop-badge.prime, .prop-badge.ultimate {
      font-size: 14px !important;
      font-weight: 900 !important;
      padding: 6px 12px !important;
      border-radius: 8px !important;
      letter-spacing: 0.5px !important;
      text-transform: uppercase !important;
      background: transparent !important;
      border: 2px solid var(--accent-green) !important;
      color: var(--accent-green) !important;
      box-shadow: 0 0 20px rgba(0,255,100,0.4), inset 0 0 10px rgba(0,255,100,0.2) !important;
      text-shadow: 0 0 8px rgba(0,255,100,0.5) !important;
    }
    .prop-badge.ultimate {
      border-color: var(--accent-gold) !important;
      color: var(--accent-gold) !important;
      box-shadow: 0 0 20px rgba(255,215,64,0.4), inset 0 0 10px rgba(255,215,64,0.2) !important;
      text-shadow: 0 0 8px rgba(255,215,64,0.5) !important;
    }
    .propiq-badge {
      font-family: var(--font-ui) !important;
    }
    .propiq-num {
      font-size: 16px !important;
      font-weight: 800 !important;
    }
    .propiq-lbl {
      font-size: 9px !important;
      font-weight: 700 !important;
      margin-left: 1px !important;
    }
    /* detail score ring modal */
    .detail-score-ring-num {
      font-size: 64px !important;
      font-weight: 900 !important;
      font-family: var(--font-ui) !important;
      color: #fff !important;
    }
    .detail-score-ring-sub {
      font-size: 14px !important;
      letter-spacing: 1.5px !important;
      font-weight: 700 !important;
      color: var(--text-muted) !important;
    }
    
    /* Modal Close Button Fixes for Desktop & Mobile */
    .game-modal-close, .detail-close-btn {
      width: 44px !important;
      height: 44px !important;
      z-index: 99999 !important;
      background: rgba(30, 35, 45, 0.95) !important;
      border: 1px solid rgba(255, 255, 255, 0.25) !important;
      color: #fff !important;
      box-shadow: 0 8px 24px rgba(0,0,0,0.8) !important;
      backdrop-filter: blur(12px) !important;
      font-size: 20px !important;
      border-radius: 50% !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
    }
    /* Ensure the detail header doesn't overlap the fixed button */
    .detail-hero { padding-right: 64px !important; }
    /* Fancy sticky footer for mobile closing */
    .detail-footer {
      padding: 16px 20px;
      padding-bottom: calc(16px + env(safe-area-inset-bottom));
      background: #1c2033;
      border-top: 1px solid var(--border-color);
      display: flex;
      gap: 12px;
      position: relative;
      z-index: 10001;
    }
    .detail-section-divider {
      height: 1px;
      background: rgba(255,255,255,0.1);
      margin: 24px 0;
      width: 100%;
    }

    /* Elite Insight Cards */
    .detail-insight-row {
      display: flex;
      gap: 12px;
      margin-top: 16px;
      overflow-x: auto;
      padding-bottom: 8px;
      scrollbar-width: none;
    }
    .detail-insight-row::-webkit-scrollbar { display: none; }
    
    .detail-insight-pill {
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 100px;
      padding: 6px 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
      font-size: 11px;
      font-weight: 700;
    }
    .detail-insight-pill.positive { color: #00e676; border-color: rgba(0,230,118,0.2); background: rgba(0,230,118,0.05); }
    .detail-insight-pill.negative { color: #ff5252; border-color: rgba(255,82,82,0.2); background: rgba(255,82,82,0.05); }
    .detail-insight-pill.neutral { color: #ffd740; border-color: rgba(255,215,64,0.2); background: rgba(255,215,64,0.05); }

    .detail-matchup-gauge {
      background: var(--bg-tertiary);
      border-radius: 12px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid var(--border-color);
    }
    .detail-gauge-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .detail-gauge-val {
      font-size: 14px;
      font-weight: 800;
      color: #fff;
    }
    .detail-gauge-bar {
      height: 6px;
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
      flex: 1;
      margin: 0 12px;
      position: relative;
      overflow: hidden;
    }
    .detail-gauge-fill {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      border-radius: 3px;
    }
/* === PropEdge May 2026 Fix Pack: responsive nav + pace guards START === */
/* ============================================================
 * PropEdge — Fix 01: Responsive bottom/tab navigation
 * ------------------------------------------------------------
 * Problem: On iPad/tablet the tab row was crunched to the left
 *          and did not size correctly across devices.
 *
 * Approach:
 *  - Replace fixed-width / left-anchored container with a
 *    centered flex/grid that adapts at mobile, 768/820/1024
 *    tablet breakpoints, and desktop.
 *  - Allow horizontal overflow with hidden scrollbars on
 *    very narrow screens (defensive — does not hurt larger
 *    screens because content fits).
 *  - Use safe-area-inset env() so iPhone/iPad notch/home
 *    indicator does not clip icons.
 *
 * Apply: paste this block at the END of the existing <style>
 * block in index.html (and propedge-deploy/index.html).
 * The class names .tab-nav / .tab-nav__item match the existing
 * markup; override them — do NOT introduce duplicate selectors
 * with different names. If your markup differs, change the
 * selector here to match the parent container of the tab row.
 * ============================================================ */

.tab-nav,
nav.tabs,
.bottom-nav,
.primary-tabs {
  /* Center the row at every width */
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1.2vw, 18px);

  /* Full available width, but capped so it does not stretch on huge desktops */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px clamp(8px, 2vw, 24px);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));

  /* If too many tabs for very narrow screens, allow horizontal scroll
     instead of crunching to the left */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
}
.tab-nav::-webkit-scrollbar,
nav.tabs::-webkit-scrollbar,
.bottom-nav::-webkit-scrollbar,
.primary-tabs::-webkit-scrollbar { display: none; }

.tab-nav__item,
.tab-nav > a,
.tab-nav > button,
nav.tabs > a,
nav.tabs > button,
.bottom-nav > a,
.bottom-nav > button,
.primary-tabs > a,
.primary-tabs > button {
  flex: 0 1 auto;
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px clamp(6px, 1vw, 14px);
  scroll-snap-align: center;
  white-space: nowrap;
  text-align: center;
}

/* --- Mobile (default): allow scroll, label small ---------- */
@media (max-width: 599px) {
  .tab-nav, nav.tabs, .bottom-nav, .primary-tabs {
    justify-content: flex-start;   /* readable on narrow screens */
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  .tab-nav__item, .tab-nav > *, nav.tabs > *, .bottom-nav > *, .primary-tabs > * {
    font-size: 11px;
  }
}

/* --- Small tablet (iPad mini portrait, 600–767) ----------- */
@media (min-width: 600px) and (max-width: 767px) {
  .tab-nav, nav.tabs, .bottom-nav, .primary-tabs { gap: 8px; }
  .tab-nav__item, .tab-nav > *, nav.tabs > *, .bottom-nav > *, .primary-tabs > * {
    font-size: 12px;
  }
}

/* --- iPad portrait 768 / 810 / 820 ------------------------ */
@media (min-width: 768px) and (max-width: 1366px) {
  .tab-nav, nav.tabs, .bottom-nav, .primary-tabs {
    justify-content: center;       /* THE FIX: center on iPad */
    gap: 14px;
    overflow-x: visible;           /* normally fits — no scroll needed */
  }
  .tab-nav__item, .tab-nav > *, nav.tabs > *, .bottom-nav > *, .primary-tabs > * {
    flex: 1 1 0;                   /* equal-width tabs spread across row */
    max-width: 120px;
    font-size: 13px;
  }
}

/* --- iPad landscape / small desktop (1024–1279) ----------- */
@media (min-width: 1367px) and (max-width: 1480px) {
  .tab-nav, nav.tabs, .bottom-nav, .primary-tabs {
    justify-content: center;
    gap: 18px;
    overflow-x: visible;
  }
  .tab-nav__item, .tab-nav > *, nav.tabs > *, .bottom-nav > *, .primary-tabs > * {
    flex: 0 1 auto;
    font-size: 14px;
  }
}

/* --- Desktop (>= 1280) ------------------------------------ */
@media (min-width: 1280px) {
  .tab-nav, nav.tabs, .bottom-nav, .primary-tabs {
    justify-content: center;
    gap: 24px;
    overflow-x: visible;
  }
}

/* Header logo + nav row: keep header content centered too */
.app-header, header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--site-shell-max);
  margin: 0 auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
}
/* PropEdge actual nav selectors: the app uses .nav-tabs/.nav-tab. */
.nav-tabs {
  width: 100%;
  max-width: var(--site-shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}
.nav-tab {
  min-width: 0;
  text-align: center;
  scroll-snap-align: center;
}
@media (max-width: 599px) {
  .nav-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; min-width: 74px; }
}
@media (min-width: 600px) and (max-width: 767px) {
  .nav-tabs { justify-content: center; gap: 8px; overflow-x: auto; }
  .nav-tab { flex: 1 1 0; max-width: 106px; }
}
@media (min-width: 768px) and (max-width: 1366px) {
  .nav-tabs { justify-content: center !important; gap: 10px; overflow-x: visible; }
  .nav-tab { flex: 1 1 0 !important; max-width: 102px; }
}
@media (min-width: 1367px) {
  .nav-tabs { justify-content: center !important; gap: 16px; overflow-x: visible; }
  .nav-tab { flex: 0 1 104px; }
}
/* PropEdge — Fix 04 styles. Append to <style> in index.html. */
.pace-trends {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.pace-card {
  background: rgba(13, 31, 51, 0.85);
  border: 1px solid rgba(255, 138, 28, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  color: #e6efff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.pace-card.is-favorable { border-color: rgba(57, 255, 138, 0.35); }
.pace-card__header { margin-bottom: 8px; }
.pace-card__name   { font-weight: 700; font-size: 15px; }
.pace-card__meta   { font-size: 12px; color: #98a8c2; }
.pace-card__row    { font-size: 12px; color: #c8d4ea; line-height: 1.6; }
.pace-card__edge   { margin-top: 8px; font-weight: 700; font-size: 13px; }
.pace-card__edge.is-good { color: #39ff8a; }
.pace-card__edge.is-flat { color: #c8d4ea; }
.pace-card__edge.is-na   { color: #98a8c2; font-weight: 500; }
.pace-card__source { margin-top: 6px; font-size: 11px; color: #6b7d9a; }
.pace-empty {
  padding: 20px; text-align: center; color: #98a8c2;
  border: 1px dashed rgba(255,255,255,0.08); border-radius: 12px;
}
/* === PropEdge May 2026 Fix Pack: responsive nav + pace guards END === */

    /* v7.55 — Fluid full-width shell (desktop) */
    @media (min-width: 1367px) {
      .site-rebuild-shell {
        padding: clamp(12px, 1.2vw, 20px);
        gap: clamp(14px, 1.2vw, 24px);
      }

      .site-shell-main,
      .site-shell-content,
      .site-shell-content .app-layout,
      .site-shell-content .main-content {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
      }

      .site-shell-content .view-container,
      .site-shell-content .view-container.show,
      .site-shell-content #propsContainer,
      .site-shell-content .props-container {
        width: 100%;
        max-width: none;
        margin: 0;
        box-sizing: border-box;
        padding-left: clamp(16px, 2vw, 36px);
        padding-right: clamp(16px, 2vw, 36px);
      }

      body.markets-mode #marketsContainer.view-container {
        padding-left: clamp(12px, 1.5vw, 24px);
        padding-right: clamp(12px, 1.5vw, 24px);
      }

      .live-games > * {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
      }
    }

    @media (min-width: 1100px) {
      .site-home-support-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      }
    }

    @media (min-width: 1400px) {
      .league-game-grid,
      .league-article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      }

      .pace-cards-container,
      .pace-trends {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      }

      .portfolio-summary-grid,
      .portfolio-resolution-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }
    }

    /* v7.56 — Home dashboard: fix blank panels (Safari paint + grid stretch) */
    .props-container:has(.site-home-dashboard),
    .props-container:has(.site-mobile-props-board) {
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
    }

    .site-home-dashboard,
    .site-home-dashboard *,
    .site-mobile-props-board,
    .site-mobile-props-board * {
      backface-visibility: visible;
      -webkit-backface-visibility: visible;
    }

    .site-home-dashboard .propai-ticket-stage,
    .site-home-dashboard .propai-market-stage,
    .site-home-dashboard .propai-story-stage,
    .site-home-dashboard .propai-upcoming-stage {
      overflow: visible;
      container-type: normal;
    }

    .site-home-dashboard .propai-feature-grid,
    .site-home-dashboard .propai-detail-grid {
      align-items: start;
    }

    .site-home-dashboard .propai-feature-grid > .panel,
    .site-home-dashboard .propai-detail-grid > .panel {
      height: auto;
      min-height: 0;
    }

    .site-home-dashboard .propiq-number-display {
      font-size: 32px !important;
      line-height: 1;
    }

    .site-home-dashboard .propiq-badge-glow {
      width: 96px !important;
      height: 96px !important;
    }

    .site-home-dashboard .propai-feature-score-block--iq .propiq-container {
      width: 96px;
      min-height: 112px;
      gap: 4px;
    }

    .site-home-dashboard .propiq-logo {
      margin-top: 0;
    }

    .site-home-dashboard .propai-market-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    @media (min-width: 1280px) {
      .site-home-dashboard .propai-home-market-row,
      .site-home-dashboard .propai-market-list .propai-market-row {
        display: grid;
        grid-template-columns: minmax(220px, 1.5fr) repeat(6, minmax(76px, 1fr)) minmax(76px, auto) minmax(44px, auto);
        grid-template-areas: none !important;
        gap: 12px 14px;
        align-items: center;
        min-height: 88px;
      }

      .site-home-dashboard .propai-market-list .propai-market-row > * {
        grid-area: auto !important;
        width: auto !important;
      }

      .site-home-dashboard .propai-market-list .propai-market-cell {
        justify-items: start;
        align-items: start;
      }
    }

    @media (max-width: 1279px) {
      .site-home-dashboard .propai-market-list .propai-market-row--deck {
        display: flex;
      }
    }

    /* v7.57 — True full-bleed shell + fluid PropAI/Home layouts */
    @media (min-width: 1367px) {
      .site-rebuild-shell {
        width: 100%;
        max-width: none;
        grid-template-columns: clamp(220px, 16vw, 260px) minmax(0, 1fr);
        gap: clamp(12px, 1.2vw, 20px);
        padding: clamp(10px, 1vw, 16px);
        box-sizing: border-box;
      }

      .site-shell-main,
      .site-shell-content,
      .site-shell-content .app-layout,
      .site-shell-content .main-content,
      .site-shell-content #recommendationsContainer,
      .site-shell-content .propai-unified,
      .site-shell-content .propai-analyst-shell,
      .site-shell-content .propai-surface,
      .site-shell-content .site-home-dashboard {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
      }

      body:not(.parlay-sidebar-open) .app-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
      }

      body.propai-mode #recommendationsContainer,
      body.propai-mode .propai-unified,
      body.propai-mode .propai-analyst-shell,
      body.propai-mode .propai-analyst-hero-panel,
      body.propai-mode .propai-analyst-hero-mount {
        width: 100%;
        max-width: none;
      }

      body.propai-mode .propai-analyst-hero-panel {
        overflow: hidden;
        container-type: inline-size;
      }

      body.propai-mode .propai-ticket-col {
        overflow: hidden;
      }

      body.propai-mode #propAIFeaturedPick .propai-feature-hero {
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
        align-items: start;
      }

      body.propai-mode #propAIFeaturedPick .propai-feature-art {
        max-height: 300px;
        min-height: 180px;
        width: 100%;
        overflow: hidden;
        aspect-ratio: 3 / 4;
      }

      body.propai-mode #propAIFeaturedPick .propai-feature-art img.prop-headshot,
      body.propai-mode #propAIFeaturedPick .propai-feature-art .prop-headshot-fallback {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 300px;
        border-radius: 16px;
        object-fit: cover;
        object-position: center top;
      }

      .propai-analyst-secondary-row {
        align-items: start;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
      }
    }

    @media (min-width: 1280px) {
      .propai-analyst-hero-grid {
        grid-template-columns: minmax(280px, 1fr) minmax(360px, 2.2fr) minmax(170px, 220px);
      }

      .site-home-dashboard .site-home-mid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1600px) {
      .propai-analyst-hero-grid {
        grid-template-columns: minmax(320px, 1fr) minmax(420px, 2.5fr) minmax(190px, 240px);
      }

      .propai-evidence-lede,
      .rich-report-lede {
        max-width: none;
      }
    }

    /* v7.58 — Home: full-bleed featured hero + bottom analysis row */
    .site-home-dashboard .site-home-featured-full {
      width: 100%;
      max-width: none;
      box-sizing: border-box;
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-hero {
      grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
      grid-template-areas:
        "art copy"
        "confidence confidence";
      gap: clamp(16px, 2vw, 28px);
      width: 100%;
    }

    /* Lanetrax-style whites on Home Best Bets / Markets / PropAI surfaces */
    .site-mobile-home-dashboard,
    .site-home-dashboard,
    .site-mobile-home-dashboard .propai-panel-title,
    .site-home-dashboard .propai-panel-title,
    .site-mobile-home-dashboard .pe-mode-tile-title,
    .site-home-dashboard .pe-mode-tile-title,
    .site-mobile-home-dashboard .propai-market-name,
    .site-home-dashboard .propai-market-name,
    .site-mobile-home-dashboard .propai-feature-player,
    .site-home-dashboard .propai-feature-player,
    .site-mobile-home-dashboard .propai-feature-marketline,
    .site-home-dashboard .propai-feature-marketline,
    .site-mobile-home-dashboard .propai-feature-metric-value,
    .site-home-dashboard .propai-feature-metric-value,
    .site-mobile-home-dashboard .propai-deck-chip-val,
    .site-home-dashboard .propai-deck-chip-val,
    .site-mobile-home-dashboard .summary-stat,
    .site-home-dashboard .summary-stat,
    .site-summary-card strong {
      font-family: var(--font-display);
      color: #ffffff;
    }

    .site-mobile-home-dashboard .propai-panel-subtitle,
    .site-home-dashboard .propai-panel-subtitle,
    .site-mobile-home-dashboard .pe-mode-tile-desc,
    .site-home-dashboard .pe-mode-tile-desc,
    .site-mobile-home-dashboard .propai-market-sub,
    .site-home-dashboard .propai-market-sub,
    .site-mobile-home-dashboard .propai-feature-meta,
    .site-home-dashboard .propai-feature-meta,
    .site-summary-card small {
      font-family: var(--font-ui);
      font-weight: 500;
      color: rgba(255, 255, 255, 0.58);
    }

    .site-summary-card strong {
      font-weight: 800;
      letter-spacing: -0.03em;
      font-size: clamp(22px, 3vw, 28px);
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-metrics {
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 20px;
      align-items: start;
    }

    @media (min-width: 600px) {
      .site-home-dashboard .site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 32px;
      }
    }

    @media (min-width: 1367px) {
      .site-shell-content .props-container:has(.site-home-dashboard) {
        --home-bleed-x: clamp(16px, 2vw, 36px);
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full {
        width: calc(100% + (2 * var(--home-bleed-x, 0px)));
        max-width: none;
        margin-left: calc(-1 * var(--home-bleed-x, 0px));
        margin-right: calc(-1 * var(--home-bleed-x, 0px));
        border-radius: 22px;
      }

      /* 1024–1399px (iPad mini/Air landscape with sidebar): keep confidence BELOW
         art+copy so it doesn't visually cramp into the stats column */
      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-hero {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
        grid-template-areas:
          "art copy"
          "confidence confidence";
        align-items: start;
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 32px;
        padding: 16px 0 4px;
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-art {
        min-height: clamp(220px, 26vw, 300px);
      }
    }

    @media (min-width: 1400px) {
      /* Wide desktop: restore the 3-column art | copy | confidence layout (single-column home only) */
      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-hero {
        grid-template-columns: minmax(280px, 380px) minmax(0, 2fr) minmax(200px, 280px);
        grid-template-areas: "art copy confidence";
        align-items: stretch;
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-self: stretch;
        justify-items: center;
        align-content: center;
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-hero {
        grid-template-columns: minmax(280px, 380px) minmax(0, 2fr) minmax(200px, 280px);
      }

      .site-home-dashboard:not(.site-home-dashboard--two-col) .site-home-featured-full .propai-feature-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

    @media (max-width: 1366px) {
      .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: 1fr;
      }
    }

    /* v7.62 — Fixed static sidebar + main column offset (no v7.59 overlay) */
    @media (min-width: 1367px) {
      :root {
        --site-shell-pad: clamp(12px, 1.2vw, 20px);
        --site-sidebar-width: clamp(220px, 16vw, 260px);
        --site-shell-gap: clamp(14px, 1.2vw, 24px);
      }

      .site-rebuild-shell {
        display: block;
        padding: var(--site-shell-pad);
        min-height: 100dvh;
        box-sizing: border-box;
      }

      .site-sidebar-shell {
        position: fixed;
        left: var(--site-shell-pad);
        top: var(--site-shell-pad);
        bottom: var(--site-shell-pad);
        width: var(--site-sidebar-width);
        height: auto;
        min-height: calc(100dvh - 2 * var(--site-shell-pad));
        max-height: calc(100dvh - 2 * var(--site-shell-pad));
        z-index: 100;
        overflow: hidden;
        align-self: auto;
      }

      .site-shell-main {
        margin-left: calc(var(--site-sidebar-width) + var(--site-shell-gap));
        width: auto;
        min-width: 0;
      }

      .site-sidebar-nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
      }

      .site-sidebar-nav::-webkit-scrollbar {
        width: 6px;
      }

      .site-sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
      }

      .site-sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(148, 163, 184, 0.35);
        border-radius: 999px;
      }

      .site-sidebar-footer {
        flex: 0 0 auto;
        margin-top: auto;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.06);
      }
    }

    /* v7.63 — Home bottom row: wider narrative, roomier rails, readable story cards */
    @media (min-width: 1367px) and (max-width: 1480px) {
      .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-summary {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    @media (min-width: 1280px) {
      .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }

      .site-home-dashboard .site-home-bottom-grid > .propai-panel {
        padding: 20px 22px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-panel-header {
        margin-bottom: 16px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-summary {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 0;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-card {
        padding: 18px 20px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-card h4 {
        margin-bottom: 12px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-card ul {
        gap: 10px;
        font-size: 14px;
        line-height: 1.62;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-list-rail,
      .site-home-dashboard .site-home-bottom-grid .propai-risk-box {
        gap: 14px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-risk-row,
      .site-home-dashboard .site-home-bottom-grid .propai-rail-row {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 1.55;
      }
    }

    /* v7.86 — Home typography readability (layout v7.58–v7.80 preserved; no grid/display overrides) */
    .site-home-dashboard .propai-panel-title,
    .site-mobile-home-dashboard .propai-panel-title {
      font-family: var(--font-display);
      font-size: clamp(18px, 2vw, 22px);
      letter-spacing: -0.03em;
      color: #ffffff;
    }

    .site-home-dashboard .propai-panel-subtitle {
      font-size: clamp(14px, 1.6vw, 16px);
      line-height: 1.4;
    }

    .site-home-dashboard .propai-panel-highlight,
    .site-home-dashboard .propai-panel-highlight span {
      font-size: clamp(13px, 1.5vw, 15px);
    }

    .site-home-dashboard .propai-feature-player {
      font-size: clamp(26px, 3.2vw, 32px);
    }

    .site-home-dashboard .propai-feature-kicker,
    .site-home-dashboard .propai-feature-meta {
      font-size: clamp(14px, 1.5vw, 16px);
    }

    .site-home-dashboard .propai-feature-matchup {
      font-size: clamp(15px, 1.7vw, 18px);
    }

    .site-home-dashboard .propai-feature-marketline {
      font-size: clamp(18px, 2vw, 21px);
    }

    .site-home-dashboard .propai-feature-action-tag {
      font-size: 14px;
    }

    .site-home-dashboard .propai-feature-metric-label {
      font-size: 12px;
    }

    .site-home-dashboard .propai-feature-metric-value {
      font-size: clamp(18px, 2vw, 22px);
    }

    .site-home-dashboard .propai-cta,
    .site-home-dashboard .propai-secondary-cta {
      font-size: 16px;
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-score-block--iq .propiq-number-display {
      font-size: 40px !important;
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-score-block--iq .propiq-badge-glow {
      width: 112px !important;
      height: 112px !important;
    }

    .site-home-dashboard .site-home-featured-full .propai-feature-score-block--iq .propiq-container {
      width: 112px;
      min-height: 128px;
    }

    .site-home-dashboard .propai-home-market-row .propai-market-name {
      font-size: clamp(18px, 2vw, 20px);
    }

    .site-home-dashboard .propai-home-market-row .propai-market-sub {
      font-size: clamp(14px, 1.5vw, 16px);
    }

    .site-home-dashboard .propai-home-market-row .propai-deck-chip-val {
      font-size: 20px;
    }

    .site-home-dashboard .propai-home-market-row .propai-deck-chip-lbl {
      font-size: 12px;
    }

    .site-home-dashboard .propai-home-market-row .propai-deck-chip {
      min-height: 60px;
    }

    .site-home-dashboard .propai-home-market-row .propai-market-propiq-hero {
      width: 108px;
      min-height: 120px;
    }

    .site-home-dashboard .propai-home-market-row .propai-market-propiq-hero .propiq-badge-glow {
      width: 108px;
      height: 108px;
    }

    .site-home-dashboard .propai-home-market-row .propai-market-propiq-hero .propiq-number-display {
      font-size: 36px;
    }

    .site-home-dashboard .propai-home-market-row .propai-market-actions .prop-action-btn.parlay-text,
    .site-home-dashboard .propai-home-market-row .propai-market-open--compact {
      font-size: 14px;
    }

    .site-home-dashboard .propai-ladder-head {
      font-size: 12px;
    }

    .site-home-dashboard .propai-ladder-row {
      font-size: 14px;
      padding: 12px 14px;
    }

    .site-home-dashboard .propai-ladder-edge {
      font-size: 16px;
    }

    .site-home-dashboard .propai-story-card li {
      font-size: 15px;
    }

    .site-home-dashboard .propai-story-card h4 {
      font-size: 14px;
    }

    .site-home-dashboard .propai-list-title {
      font-size: 14px;
    }

    .site-home-dashboard .propai-list-sub {
      font-size: 13px;
    }

    .site-home-dashboard .propai-slate-teamname {
      font-size: clamp(24px, 3vw, 30px);
    }

    .site-home-dashboard .propai-slate-teammeta {
      font-size: 14px;
    }

    .site-home-dashboard .propai-home-markets-cta strong {
      font-size: 16px;
    }

    @media (max-width: 1366px) {
      .site-mobile-home-dashboard .propai-panel-title {
        font-size: 19px;
      }

      .site-mobile-home-dashboard .propai-panel-subtitle {
        font-size: 15px;
        line-height: 1.4;
      }

      .site-mobile-home-dashboard .propai-panel-highlight span {
        font-size: 15px;
      }

      .site-mobile-home-dashboard .propai-feature-player {
        font-size: 17px;
      }

      .site-mobile-home-dashboard .propai-feature-meta,
      .site-mobile-home-dashboard .propai-feature-kicker {
        font-size: 11px;
      }

      .site-mobile-home-dashboard .propai-feature-marketline {
        font-size: 14px;
      }

      .site-mobile-home-dashboard .propai-feature-metric-label {
        font-size: 10px;
      }

      .site-mobile-home-dashboard .propai-feature-metric-value {
        font-size: 15px;
      }

      .site-mobile-home-dashboard .propai-cta,
      .site-mobile-home-dashboard .propai-secondary-cta {
        font-size: 15px;
      }

      .site-mobile-home-dashboard .propai-home-market-row .propai-market-name {
        font-size: 18px;
      }

      .site-mobile-home-dashboard .propai-home-market-row .propai-market-sub {
        font-size: 15px;
      }

      .site-mobile-home-dashboard .propai-home-market-row .propai-deck-chip-val {
        font-size: 19px;
      }

      .site-mobile-home-dashboard .propai-home-market-row .propai-deck-chip-lbl {
        font-size: 12px;
      }

      .site-mobile-home-dashboard .propai-home-market-row .propai-market-propiq-hero .propiq-number-display {
        font-size: 34px;
      }

      .site-mobile-home-dashboard .propai-ladder-head {
        font-size: 12px;
      }

      .site-mobile-home-dashboard .propai-ladder-row {
        font-size: 14px;
      }

      .site-mobile-home-dashboard .propai-story-card li {
        font-size: 15px;
      }
    }

    /* v7.87 — Home mid/bottom: uniform panels, slate breathing room, watchlist wrap */
    .site-home-dashboard .site-home-mid-grid > .propai-panel {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .site-home-dashboard .propai-ladder-box,
    .site-home-dashboard .propai-upcoming-stage .propai-slate-list {
      flex: 1 1 auto;
      min-height: 0;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-slate-list {
      display: grid;
      gap: 14px;
      grid-template-columns: minmax(0, 1fr);
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-row.propai-slate-game-row {
      grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
      grid-template-areas:
        "time pill"
        "copy copy";
      row-gap: 12px;
      column-gap: 16px;
      align-items: start;
      padding: 16px 18px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-time {
      grid-area: time;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-opportunity-pill {
      grid-area: pill;
      justify-self: end;
      align-self: start;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-copy {
      grid-area: copy;
      min-width: 0;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-matchup {
      font-size: clamp(20px, 2.2vw, 26px);
      line-height: 1.32;
      overflow-wrap: normal;
      word-break: normal;
      letter-spacing: 0.01em;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-note {
      font-size: clamp(15px, 1.6vw, 17px);
      line-height: 1.45;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-time {
      font-size: 16px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-upcoming-time small {
      font-size: 12px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-opportunity-pill {
      font-size: 12px;
      padding: 6px 12px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-slate-prop-chip {
      font-size: clamp(14px, 1.5vw, 16px);
      line-height: 1.5;
      padding: 11px 14px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-slate-prop-chip .propai-iq-pill {
      font-size: 13px;
    }

    .site-home-dashboard .propai-upcoming-stage .propai-slate-prop-stack {
      gap: 8px;
      margin-top: 10px;
    }

    .site-home-dashboard .site-home-bottom-grid > .propai-panel {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .site-home-dashboard .site-home-bottom-grid > .propai-panel:not(.propai-story-stage) {
      min-height: 196px;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-list-rail,
    .site-home-dashboard .site-home-bottom-grid .propai-risk-box {
      flex: 1 1 auto;
      min-height: 0;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-rail-row {
      grid-template-columns: 1fr;
      gap: 8px;
      align-items: start;
      padding: 14px 16px;
      min-height: 72px;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-rail-row > span {
      min-width: 0;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.45;
    }

    .site-home-dashboard .site-home-bottom-grid .propai-rail-row > span:last-child {
      font-size: 15px;
      font-weight: 900;
      color: var(--text-primary);
    }

    .site-mobile-home-dashboard .propai-upcoming-row.propai-slate-game-row {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 16px;
    }

      .site-mobile-home-dashboard .propai-upcoming-matchup {
        font-size: 22px;
        line-height: 1.32;
      }

      .site-mobile-home-dashboard .propai-upcoming-note {
        font-size: 16px;
      }

      .site-mobile-home-dashboard .propai-upcoming-time {
        font-size: 16px;
      }

      .site-mobile-home-dashboard .propai-slate-prop-chip {
        font-size: 15px;
        line-height: 1.5;
        padding: 11px 14px;
      }

      .site-mobile-home-dashboard .propai-story-card li {
        font-size: 15px;
        line-height: 1.55;
      }

    .site-mobile-home-dashboard .site-home-bottom-grid .propai-rail-row,
    .site-mobile-home-dashboard .propai-list-rail .propai-rail-row {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .site-mobile-home-dashboard .propai-rail-row > span {
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      word-break: break-word;
      line-height: 1.45;
    }

    @media (min-width: 1500px) {
      .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
      }

      .site-home-dashboard .site-home-bottom-grid .propai-story-card ul {
        font-size: 15px;
        line-height: 1.65;
      }
    }

    @media (min-width: 1680px) {
      .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
      }
    }

    /* v7.64 — Home dashboard: no clip under parlay sidebar; flexible bottom row */
    @media (min-width: 1367px) {
      .site-shell-content .app-layout:has(.site-home-dashboard) {
        overflow: visible;
      }

      .props-container:has(.site-home-dashboard) {
        overflow-x: hidden;
        overflow-y: visible;
        padding-bottom: 148px;
        max-width: 100%;
      }

      body.parlay-sidebar-open .site-shell-content .main-content,
      body.parlay-sidebar-collapsed .site-shell-content .main-content {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
      }
    }

    @media (min-width: 1400px) {
      /* When the parlay rail is open it consumes ~300px. Tighten the two-col grid
         so the left analysis column and right slate column don't overflow. */
      body.parlay-sidebar-open .site-home-dashboard--two-col {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(16px, 2vw, 28px);
      }
    }

    @media (min-width: 1400px) and (max-width: 1680px) {
      /* On mid-range desktops (1400–1680px) the two-col grid + 300px parlay rail
         is tight — collapse to single column so nothing overflows. */
      body.parlay-sidebar-open .site-home-dashboard--two-col {
        grid-template-columns: 1fr;
      }
    }

    @media (min-width: 1400px) {
      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }

      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }

      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid .propai-story-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
      }

      body.parlay-sidebar-open .site-home-dashboard .propai-market-stage {
        min-width: 0;
        overflow: hidden;
      }

      body.parlay-sidebar-open .site-home-dashboard .propai-market-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-gutter: stable;
      }

      body.parlay-sidebar-open .site-home-dashboard .propai-market-list .propai-market-row {
        min-width: 920px;
      }
    }

    @media (min-width: 1680px) {
      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
      }

      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }
    }

    @media (min-width: 1920px) {
      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      body.parlay-sidebar-open .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }

      body.parlay-sidebar-open .site-home-dashboard .propai-market-list .propai-market-row {
        min-width: 0;
        width: 100%;
      }
    }

    /* v7.65 — Collapsible parlay rail + full-width main when collapsed */
    @media (min-width: 1400px) {
      body.parlay-sidebar-open .site-home-dashboard .site-home-mid-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
      }

      body.parlay-sidebar-collapsed .site-home-dashboard .site-home-mid-grid,
      body.parlay-sidebar-collapsed .site-home-dashboard .site-home-bottom-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
      }

      body.parlay-sidebar-collapsed .site-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: 1 / -1;
      }

      body[data-pe-view="parlay"] #parlayContainer .suggestions-section {
        margin-top: 14px;
        padding-top: 4px;
      }

      body[data-pe-view="parlay"] #parlayContainer .suggested-parlay-card {
        padding: 10px 12px;
        gap: 8px;
        margin-bottom: 8px;
        border-radius: 14px;
      }

      body[data-pe-view="parlay"] #parlayContainer .suggested-parlay-pick {
        font-size: 11px;
        gap: 6px;
      }

      body[data-pe-view="parlay"] #parlayContainer .parlay-summary {
        padding: 14px;
        margin-top: 12px;
      }

      body[data-pe-view="parlay"] #parlayContainer .parlay-leg {
        padding: 10px;
      }
    }

    /* v7.66 — Shell width discipline + carousel/featured clip fix */
    @media (min-width: 1400px) {
      .site-shell-content .app-layout {
        min-width: 0 !important;
        max-width: 100% !important;
      }

      .site-shell-content .main-content,
      .site-shell-content .props-container,
      .site-shell-content .view-container {
        max-width: 100% !important;
      }

      .site-shell-main .site-command-bar,
      .site-shell-main .site-summary-strip,
      .site-home-dashboard,
      .site-home-dashboard .propai-feature-hero,
      .site-home-dashboard .site-home-mid-grid,
      .site-home-dashboard .site-home-bottom-grid {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      body.parlay-sidebar-open .site-home-dashboard .propai-feature-hero,
      body.parlay-sidebar-collapsed .site-home-dashboard .propai-feature-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        max-width: 100%;
      }

      .live-games-scroll {
        padding-right: 40px;
        scroll-padding-right: 40px;
      }
    }

    /* v7.67 — Mobile mock shell (Mock 3: featured stack + bottom nav) */
    .site-mobile-bottom-nav,
    .site-mobile-more-row {
      display: none;
    }

    @media (max-width: 1366px) {
      :root {
        --pe-mobile-bottom-nav-h: 52px;
      }

      html.site-mobile-active {
        scroll-padding-bottom: 8px;
      }

      body.site-mobile-active {
        padding-bottom: 0;
      }

      body.site-mobile-active .site-shell-main {
        padding-bottom: 0;
        scroll-padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + var(--pe-device-safe-bottom, env(safe-area-inset-bottom, 0px)) + 16px);
      }

    .propai-market-row[data-prop-game-id][hidden] {
      display: none !important;
    }

    .markets-game-filter-empty[hidden] {
      display: none !important;
    }

      .nav-tabs {
        display: none !important;
      }

      /* In-flow flex footer (last child of .site-rebuild-shell). Sits at the
         true bottom of the 100dvh flex column so Chrome/Safari's own bottom
         toolbar can never cover it — position:fixed;bottom:0 anchors to the
         layout viewport, which sits *behind* that toolbar, cutting the nav
         off. Being a real flex child instead keeps it inside the visible
         dvh area on every mobile browser. */
      .site-mobile-bottom-nav {
        display: flex;
        position: relative;
        flex-shrink: 0;
        z-index: 120;
        align-items: center;
        justify-content: space-around;
        gap: 0;
        margin: 0;
        padding: 6px var(--pe-mobile-pad-x, 8px) calc(6px + var(--pe-device-safe-bottom, env(safe-area-inset-bottom, 0px)));
        /* Solid, not translucent rgba/gradient: the safe-area padding at the
           bottom of this box is the home-indicator strip on notch/Dynamic-
           Island iPhones — any transparency there lets whatever sits behind
           the nav (page background, decorative blue radial glows) show
           through as a visible off-black/blue band right above the true
           screen edge. */
        background-color: #000000;
        background-image: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
        box-sizing: border-box;
        width: 100%;
        flex-shrink: 0;
      }

      /* Chrome iOS's JS-measured viewport height can undershoot the real
         screen by a few px (its bottom toolbar collapses differently than
         Safari's), leaving a sliver below the nav where nothing is painted
         and Chrome's own dark chrome color shows through. Bleed the nav's
         background well past its own box so that gap is always covered. */
      .site-mobile-bottom-nav::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 60px;
        background: #000000;
        pointer-events: none;
      }

      body.pe-ios-mobile .site-mobile-bottom-nav,
      body.pe-android-mobile .site-mobile-bottom-nav {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
      }

      .site-mobile-nav-btn {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 4px 2px 5px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: var(--text-muted);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
        font-family: inherit;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
      }

      .site-mobile-nav-btn.active {
        color: #ecfdf5;
        background: rgba(57, 255, 20, 0.14);
        box-shadow:
          inset 0 0 0 1px rgba(57, 255, 20, 0.28),
          0 0 16px rgba(57, 255, 20, 0.12);
        border-radius: 14px;
      }

      .site-mobile-nav-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .site-mobile-nav-icon svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      /* Large phones (iPhone 17 Pro Max = 440px logical width) */
      @media (min-width: 430px) and (max-width: 1366px) {
        :root {
          --pe-mobile-bottom-nav-h: 56px;
        }

        .site-mobile-bottom-nav {
          padding-top: 8px;
        }

        .site-mobile-nav-btn {
          font-size: 10px;
          gap: 3px;
          padding: 5px 3px 6px;
        }

        .site-mobile-nav-icon,
        .site-mobile-nav-icon svg {
          width: 22px;
          height: 22px;
        }
      }

      /* Tablet portrait */
      @media (min-width: 768px) and (max-width: 1366px) {
        .site-mobile-bottom-nav {
          padding-left: 20px;
          padding-right: 20px;
          gap: 6px;
        }
      }

      .site-mobile-more-row {
        display: none;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 4px);
        z-index: 119;
        gap: 8px;
        padding: 10px;
        border-radius: 16px;
        background: rgba(8, 17, 33, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
      }

      .site-mobile-more-row.open {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .site-mobile-more-chip {
        padding: 10px 8px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-secondary);
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
      }

      .toast {
        bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 12px);
        z-index: 110 !important;
        max-width: calc(100vw - 28px);
      }

      .app-layout,
      .view-container.show,
      #recommendationsContainer,
      #marketsContainer,
      #gamesContainer,
      #newsContainer,
      #injuriesContainer,
      #strategyContainer,
      #paceContainer,
      #portfolioContainer,
      #parlayContainer,
      .props-container {
        padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 28px);
      }

      body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer,
      body.propedge-chat-v2-mobile.propai-mode .app-layout {
        padding-bottom: 0 !important;
      }

      #portfolioContainer .portfolio-page {
        padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 52px) + env(safe-area-inset-bottom, 0px) + 24px);
      }

      #portfolioContainer .portfolio-card:last-child {
        margin-bottom: 12px;
      }

      .view-container {
        padding-bottom: 16px;
      }

      .site-mobile-home-dashboard {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 10px 8px;
        box-sizing: border-box;
        overflow-x: clip;
      }

      /* Featured must stay viewport-contained — auto grid tracks were sizing to ~540px content. */
      .site-mobile-home-dashboard > .pe-home-featured-mock,
      .site-mobile-home-dashboard .pe-home-featured-mock,
      .site-mobile-home-dashboard .propai-featured-pick,
      .site-mobile-home-dashboard .propai-feature-hero,
      .site-mobile-home-dashboard .propai-feature-copy,
      .site-mobile-home-dashboard .propai-feature-metrics,
      .site-mobile-home-dashboard .propai-feature-actions {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      /* Compact featured ticket — small circular headshot, full-width metrics, no tall portrait column */
      .site-mobile-home-dashboard .propai-feature-hero {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        grid-template-areas:
          "art copy"
          "confidence confidence" !important;
        gap: 10px 12px !important;
        padding: 12px !important;
        align-items: start !important;
      }

      .site-mobile-home-dashboard .propai-feature-art {
        grid-area: art;
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        aspect-ratio: 1 !important;
        border-radius: 50% !important;
        align-self: start !important;
        overflow: hidden !important;
        box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.28), 0 8px 18px rgba(0, 0, 0, 0.35) !important;
      }

      .site-mobile-home-dashboard .propai-feature-art img,
      .site-mobile-home-dashboard .propai-feature-art .prop-headshot,
      .site-mobile-home-dashboard .propai-feature-art .prop-headshot-fallback {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        border-radius: 50% !important;
        border-width: 0 !important;
        object-fit: cover !important;
        object-position: center top !important;
      }

      .site-mobile-home-dashboard .propai-feature-copy {
        grid-area: copy;
        min-width: 0 !important;
        gap: 8px !important;
      }

      .site-mobile-home-dashboard .propai-feature-player {
        font-family: var(--font-display);
        font-size: 17px !important;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.15 !important;
        color: #ffffff;
        text-transform: none;
        white-space: normal !important;
        overflow-wrap: anywhere;
      }

      .site-mobile-home-dashboard .propai-feature-meta,
      .site-mobile-home-dashboard .propai-feature-kicker {
        font-size: 11px !important;
      }

      .site-mobile-home-dashboard .propai-feature-kicker,
      .site-mobile-home-dashboard .propai-clv-pill {
        min-height: 22px;
        padding: 3px 8px;
        font-size: 10px !important;
      }

      .site-mobile-home-dashboard .propai-feature-matchup {
        min-height: 0 !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
      }

      .site-mobile-home-dashboard .propai-feature-marketline {
        font-size: 14px !important;
        flex-wrap: wrap;
        gap: 6px;
      }

      .site-mobile-home-dashboard .propai-feature-narrative {
        margin-top: 2px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(57, 255, 106, 0.14);
        background: rgba(0, 0, 0, 0.28);
        font-size: 12.5px;
        line-height: 1.45;
        color: rgba(255, 255, 255, 0.82);
        font-weight: 500;
      }

      .site-mobile-home-dashboard .propai-feature-narrative-label {
        display: block;
        margin-bottom: 4px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(57, 255, 106, 0.75);
      }

      .site-mobile-home-dashboard .propai-feature-action-tag {
        font-size: 11px !important;
      }

      .site-mobile-home-dashboard .propai-feature-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
      }

      .site-mobile-home-dashboard .propai-feature-metric {
        padding: 8px !important;
        border-radius: 10px !important;
        gap: 3px !important;
      }

      .site-mobile-home-dashboard .propai-feature-metric-label {
        font-size: 10px !important;
        letter-spacing: 0.04em;
        white-space: nowrap;
      }

      .site-mobile-home-dashboard .propai-feature-metric-value {
        font-family: var(--font-display);
        font-size: 15px !important;
        color: #ffffff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
      }

      /* Hide bulky PropIQ/Signal gauges on phone — subtitle already shows PropIQ + Signal */
      .site-mobile-home-dashboard .propai-feature-confidence,
      .site-mobile-home-dashboard .propai-feature-score-duo,
      .site-mobile-home-dashboard .propai-feature-score-duo--compact {
        display: none !important;
      }

      .site-mobile-home-dashboard .propai-feature-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
      }

      .site-mobile-home-dashboard .propai-cta,
      .site-mobile-home-dashboard .propai-secondary-cta {
        width: 100%;
        min-height: 40px;
        font-size: 14px !important;
      }

      .site-mobile-home-dashboard .propai-panel-header {
        align-items: flex-start;
        gap: 8px;
      }

      .site-mobile-home-dashboard .propai-panel-subtitle {
        font-size: 12px !important;
        line-height: 1.35 !important;
        max-width: 100%;
      }

      .site-mobile-home-dashboard .propai-panel-highlight {
        flex-shrink: 0;
        white-space: nowrap;
      }

      .site-mobile-home-dashboard .propai-story-summary {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .site-mobile-home-dashboard .site-home-bottom-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .site-mobile-home-dashboard .site-home-bottom-grid .propai-story-stage {
        grid-column: auto;
      }

      .site-mobile-home-dashboard .propai-market-list .propai-market-row--deck {
        display: flex;
        min-height: 0;
      }

      .site-mobile-home-dashboard .propai-market-list .propai-market-sub {
        white-space: normal;
        overflow-wrap: anywhere;
      }

      .site-mobile-league-strip {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 4px 2px 8px;
        -webkit-overflow-scrolling: touch;
      }

      .site-mobile-league-strip .site-league-chip {
        flex: 0 0 auto;
      }
    }

    @media (min-width: 1367px) {
      .site-mobile-bottom-nav,
      .site-mobile-more-row {
        display: none !important;
      }
    }

    /* v7.68 — Mobile summary strip + Markets row discipline + PropAI hero clip */
    @media (min-width: 1367px) and (max-width: 1480px) {
      body.propai-mode .propai-analyst-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
          "ticket ticket"
          "scores scores"
          "evidence evidence";
      }

      body.propai-mode .propai-score-rail {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
      }

      body.propai-mode .propai-evidence-col,
      body.propai-mode .propai-ticket-col {
        min-width: 0;
        overflow: visible;
      }

      body.propai-mode .propai-evidence-lede,
      body.propai-mode .rich-report-lede {
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
      }

      body.propai-mode .propai-ticket-col .propai-feature-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1367px) {
      body.propai-mode.parlay-sidebar-open #recommendationsContainer,
      body.propai-mode.parlay-sidebar-open .propai-analyst-hero-panel,
      body.propai-mode.parlay-sidebar-open .propai-analyst-hero-mount,
      body.propai-mode.parlay-sidebar-collapsed #recommendationsContainer,
      body.propai-mode.parlay-sidebar-collapsed .propai-analyst-hero-panel,
      body.propai-mode.parlay-sidebar-collapsed .propai-analyst-hero-mount {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      body.markets-mode .propai-markets-page-wrap,
      body.markets-mode .propai-markets-page,
      body.markets-mode #marketsContainer {
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
      }
    }

    /* v7.69 / v7.71 — iPhone safe-area: header padding only (no body double-offset) */
    body.site-mobile-active {
      padding-top: 0;
    }

    body.site-mobile-active .header {
      top: 0;
    }

    body.propai-mode .propai-analyst-conversation-panel .ai-chat-feed {
      scroll-padding-top: calc(var(--pe-mobile-stats-bar-h, 88px) + 8px);
    }

    @media (max-width: 1366px) {
      body.propai-mode .propai-analyst-conversation-panel .ai-chat-feed {
        scroll-padding-top: calc(var(--pe-mobile-stats-bar-h, 96px) + 8px);
      }
    }

    body.propai-mode .propai-analyst-hero-mount.site-home-featured-full .propai-feature-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 16px;
      align-items: start;
    }

    body.propai-mode .propai-analyst-hero-mount.site-home-featured-full .propai-feature-confidence.propai-feature-score-duo {
      min-width: 220px;
    }

    @media (max-width: 1366px) {
      body.propai-mode .propai-analyst-hero-mount.site-home-featured-full .propai-feature-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
          "art"
          "copy"
          "confidence";
      }
    }
  /* ── Mobile performance: reduce motion, improve paint containment ── */
  @media (max-width: 767px) {
    /* Contain each prop card so layout changes don't cascade across the whole list */
    .prop-card {
      contain: layout style;
    }
    /* Contain market rows similarly */
    .propai-market-player {
      contain: layout style;
    }
    body.markets-mode .propai-market-row--deck .propai-market-player,
    body.markets-mode .propai-market-row--deck .propai-deck-inner {
      contain: none !important;
    }
    /* Reduce costly box-shadows and backdrop-filters on scroll */
    .propai-generative-panel,
    .propai-analyst-conversation-panel {
      contain: layout style;
    }
  }
  /* Respect system reduced-motion preference */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  @media (max-width: 1366px) {
    html.pe-ios-mobile,
    html.pe-ios-mobile body {
      background: #000000;
    }
    /* Higher specificity than the later --pe-bg black-forcing rules for
       .site-mobile-bottom-nav (this selector chains html.pe-ios-mobile with
       the nav class; that beats the plain .site-mobile-bottom-nav rules
       elsewhere on specificity regardless of source order) — this stale
       navy-blue gradient, not any of the nav's other styling, was the
       actual persistent "blue strip" on iOS Safari and on Chrome running
       on iPhone (CriOS reports as iPhone in its UA too, so it gets tagged
       pe-ios-mobile the same way and hit this same rule). */
    html.pe-ios-mobile .site-mobile-bottom-nav {
      background: #000000 !important;
    }
  }

  /* ── v2026.07.24f — Shell redesign adapter (PropAI Redesign.dc.html) ── */
  :root {
    --pe-bg: #000000;
    --pe-surface: #0d100d;
    --pe-accent: #39ff6a;
    --pe-muted: #8a978c;
    --pe-text: #e7ece7;
    --pe-radius-card: 14px;
    --pe-radius-chip: 999px;
  }

  .site-sidebar-shell {
    gap: 2px;
    padding: 20px 14px;
    border-radius: 16px;
    background: var(--pe-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }

  .site-sidebar-brand {
    gap: 12px;
    margin: 0 4px 16px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
  }

  .site-sidebar-logo::before { display: none; }

  .site-sidebar-logo .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 106, 0.28);
    box-shadow: 0 0 18px rgba(57, 255, 106, 0.18);
    background: #05080e url('/brand-shield.png') center/contain no-repeat;
  }

  .site-sidebar-brand-main {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.1;
    text-shadow: none;
    color: #fff;
  }

  .site-sidebar-brand-main .pe-word-edge {
    color: var(--pe-accent);
  }

  .site-sidebar-brand-sub {
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: #8a978c;
  }

  .site-sidebar-nav {
    gap: 4px;
  }

  .site-shell-nav {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: none;
    color: var(--pe-muted);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.01em;
    box-shadow: none;
  }

  .site-shell-nav::before { display: none !important; }

  .site-shell-nav:hover:not(.active) {
    color: #e7ece7;
    background: rgba(255, 255, 255, 0.04);
    border: none;
  }

  .site-shell-nav.active,
  .site-shell-nav.active[data-target-view="recommendations"],
  .site-shell-nav.active[data-target-view="pace"],
  .site-shell-nav.active[data-target-view="markets"] {
    color: var(--pe-accent) !important;
    background: rgba(57, 255, 106, 0.12) !important;
    border: 1px solid rgba(57, 255, 106, 0.3) !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  /* Circular thin-line icon wells (sidebar screenshot style) */
  .site-shell-nav-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #e7ece7 !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }

  .site-shell-nav-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-shell-nav.active .site-shell-nav-icon {
    color: var(--pe-accent) !important;
    border-color: rgba(57, 255, 106, 0.45) !important;
    background: rgba(57, 255, 106, 0.12) !important;
  }

  /* Divider before Research (strategy) — mockup secondary group */
  .site-sidebar-nav > .site-shell-nav[data-target-view="strategy"] {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 10px 10px;
  }

  .site-sidebar-footer {
    gap: 2px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-shell-nav.subtle {
    color: #5f6b60;
    background: none;
    border: none;
  }

  @media (min-width: 1367px) {
    :root {
      --site-sidebar-width: 268px;
    }

    .site-sidebar-shell {
      padding: 24px 18px;
    }

    .site-sidebar-logo .logo-icon {
      width: 52px !important;
      height: 52px !important;
      border-radius: 14px !important;
      min-width: 52px;
    }

    .site-sidebar-brand-main {
      font-size: 22px !important;
      font-weight: 800;
    }

    .site-sidebar-brand-sub {
      font-size: 12.5px !important;
      color: #9caabf;
    }

    .site-shell-nav {
      min-height: 50px;
      padding: 14px 14px;
      font-size: 16.5px;
      font-weight: 700;
    }

    .site-shell-nav-icon {
      width: 40px !important;
      height: 40px !important;
      min-width: 40px !important;
    }

    .site-shell-nav-icon svg {
      width: 20px !important;
      height: 20px !important;
    }

    .site-sidebar-footer .site-shell-nav {
      min-height: 46px;
      font-size: 15.5px;
    }
  }

  @media (max-width: 1366px) {
    :root {
      --pe-mobile-bottom-nav-h: 60px;
    }

    .site-mobile-bottom-nav {
      background: var(--pe-bg) !important;
      background-image: none !important;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
      /* Only a small cushion above the mandatory home-indicator safe area —
         that inset itself is required OS clearance and must stay, but the
         padding we add on top of it doesn't need to be this generous. */
      padding: 6px 8px calc(4px + var(--pe-device-safe-bottom, env(safe-area-inset-bottom, 0px)));
      min-height: calc(72px + var(--pe-device-safe-bottom, env(safe-area-inset-bottom, 0px)));
    }

    html.pe-ios-mobile .site-mobile-bottom-nav {
      background: var(--pe-bg) !important;
    }

    .site-mobile-nav-btn {
      gap: 5px;
      color: #7c8a7a;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      background: none;
      border-radius: 14px;
      box-shadow: none;
      min-height: 56px;
      padding: 6px 4px 8px;
    }

    .site-mobile-nav-btn .site-mobile-nav-icon {
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.05) !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      font-size: 0 !important;
      line-height: 1 !important;
      color: #e7ece7 !important;
    }

    .site-mobile-nav-btn .site-mobile-nav-icon svg {
      display: block !important;
      width: 22px !important;
      height: 22px !important;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.85;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .site-mobile-nav-btn.active {
      color: var(--pe-accent) !important;
      background: rgba(57, 255, 106, 0.1) !important;
      box-shadow: none !important;
      font-weight: 800;
      border-radius: 14px;
    }

    .site-mobile-nav-btn.active .site-mobile-nav-icon {
      color: #04240f !important;
      background: var(--pe-accent) !important;
      border-color: rgba(57, 255, 106, 0.55) !important;
      box-shadow: 0 0 16px rgba(57, 255, 106, 0.28);
    }

    .site-mobile-nav-btn.active .site-mobile-nav-icon,
    .site-mobile-nav-btn.active .site-mobile-nav-icon svg {
      color: #04240f;
      stroke: #04240f;
    }

    .site-mobile-more-row {
      background: var(--pe-surface);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    }

    .site-mobile-more-chip {
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.06);
      background: rgba(255, 255, 255, 0.03);
      color: var(--pe-text);
      font-size: 12px;
      font-weight: 600;
    }
  }

  /* Home — Game Board + chips (mockup stack) */
  .live-games {
    background: transparent;
    border: none;
    padding: 0;
  }

  .live-games-header {
    margin: 6px 0 10px;
  }

  .live-games-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c8a7a;
  }

  .hide-final-toggle {
    font-size: 11px;
    color: var(--pe-muted);
  }

  .live-games-scroll .live-game-card {
    min-width: 228px;
    width: 228px;
    padding: 14px 14px 12px;
    gap: 10px;
    background: var(--pe-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--pe-radius-card);
    box-shadow: none;
    transform: none !important;
  }

  .live-games-scroll .live-game-card .game-card-actions {
    display: flex !important;
    gap: 8px !important;
    max-height: none !important;
    margin-top: 4px;
  }

  .live-games-scroll .live-game-card .game-card-btn {
    flex: 1 1 0;
    min-height: 36px;
    padding: 8px 6px !important;
    font-size: 11px !important;
    font-weight: 700;
    border-radius: 8px;
    white-space: nowrap;
  }

  @media (min-width: 1367px) {
    .live-games-scroll .live-game-card {
      min-width: 200px;
      width: 200px;
      padding: 16px 16px 14px;
    }

    .live-games-scroll .live-game-card .game-card-btn {
      min-height: 38px;
      font-size: 12px !important;
      padding: 9px 8px !important;
    }
  }

  /* Games tab cards must NOT inherit ticker card widths */
  #gamesContainer .site-games-card.live-game-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #gamesContainer .site-games-prop-player {
    font-size: 14px !important;
  }

  #gamesContainer .site-games-prop-market {
    font-size: 13px !important;
  }

  #gamesContainer .site-games-prop-iq {
    font-size: 11px !important;
    padding: 4px 9px !important;
  }

  #gamesContainer .site-games-prop-odds {
    font-size: 13px !important;
  }

  .live-game-card::before { display: none; }

  .live-game-card:hover,
  .live-game-card.active {
    border-color: rgba(57, 255, 106, 0.45);
    background: var(--pe-surface);
    box-shadow: 0 0 0 1px rgba(57, 255, 106, 0.2), 0 8px 24px rgba(57, 255, 106, 0.12);
    transform: none !important;
  }

  /* Mockup always shows All Props / Preview on cards */
  .game-card-actions {
    max-height: 40px !important;
    opacity: 1 !important;
    overflow: visible;
  }

  .game-card-btn.props-btn {
    background: rgba(57, 255, 106, 0.12);
    border: 1px solid rgba(57, 255, 106, 0.3);
    color: var(--pe-accent);
  }

  .game-card-btn.preview-btn,
  .game-card-btn.live-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9caabf;
  }

  .sport-tabs {
    justify-content: flex-start;
    gap: 6px;
    padding: 0 0 8px;
    background: transparent;
    border-bottom: none;
  }

  .sport-tab {
    padding: 8px 16px;
    border-radius: var(--pe-radius-chip);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9caabf;
    font-size: 12px;
    font-weight: 700;
    transform: none !important;
    box-shadow: none;
  }

  .sport-tab.active {
    background: rgba(57, 255, 106, 0.16);
    border-color: rgba(57, 255, 106, 0.4);
    color: var(--pe-accent);
    box-shadow: none;
    transform: none !important;
    font-weight: 800;
  }

  .sport-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e7ece7;
    box-shadow: none;
  }

  .filter-section {
    background: transparent;
    border: none;
    padding: 0 0 12px;
  }

  .pe-chip-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 4px;
  }

  .filter-pills {
    gap: 6px;
  }

  /* Home desktop: mockup chip row (league | tiers) — no Browse Markets chrome */
  @media (min-width: 1367px) {
    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin: 0 0 16px;
      padding: 0;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip .sport-tabs {
      display: flex !important;
      flex: 0 1 auto;
      padding: 0 !important;
      margin: 0 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      overflow: visible !important;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip .filter-section {
      display: flex !important;
      flex: 1 1 auto;
      align-items: center;
      padding: 0 !important;
      margin: 0 !important;
      min-height: 0 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      overflow: visible !important;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip .filter-section::before {
      display: none !important;
      content: none !important;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip .filter-pills {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-chip-strip .filter-pills::before {
      content: '';
      width: 1px;
      height: 20px;
      background: rgba(255, 255, 255, 0.1);
      margin: 0 4px 0 0;
      flex: 0 0 auto;
    }

    body:not(.markets-mode):not(.propai-mode) .filter-pill[data-filter="value"],
    body:not(.markets-mode):not(.propai-mode) .filter-pill[data-filter="hot"],
    body:not(.markets-mode):not(.propai-mode) .filter-pill[data-filter="overs"],
    body:not(.markets-mode):not(.propai-mode) .filter-pill[data-filter="unders"] {
      display: none !important;
    }

    body:not(.markets-mode):not(.propai-mode) .pe-home-feed > .pe-home-featured-mock {
      margin-bottom: 18px;
    }
  }

  .filter-pill {
    padding: 8px 16px;
    border-radius: var(--pe-radius-chip);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9caabf;
    font-size: 12px;
    font-weight: 700;
    transform: none !important;
    box-shadow: none;
  }

  .filter-pill.active {
    background: rgba(57, 255, 106, 0.16);
    border-color: rgba(57, 255, 106, 0.4);
    color: var(--pe-accent);
    box-shadow: none;
    transform: none !important;
    font-weight: 800;
    letter-spacing: normal;
  }

  /* Shell owns primary nav — demote legacy mid-page tab strip */
  @media (min-width: 1367px) {
    .site-rebuild-shell .nav-tabs {
      display: none !important;
    }
  }

  .sort-bar {
    background: var(--pe-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--pe-radius-card);
  }

  #propCount {
    color: #7c8a7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* PropAI — 3-tab mockup chrome (Best Bets / Ask PropAI / Slate)
     Overrides chat-v2 mobile hide so tabs stay reachable on all viewports. */
  body.propai-mode .propai-section-nav,
  body.propedge-chat-v2-mobile.propai-mode .propai-section-nav {
    display: flex !important;
    flex-shrink: 0;
    gap: 6px;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.propai-mode .propai-section-tab {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #9caabf;
    font-size: 12px;
    font-weight: 700;
  }

  body.propai-mode .propai-section-tab.active {
    border-color: rgba(57, 255, 106, 0.3);
    background: rgba(57, 255, 106, 0.14);
    color: var(--pe-accent);
    font-weight: 800;
    box-shadow: none;
  }

  body.propai-mode .propai-section-tab--aux {
    margin-left: auto;
    opacity: 0.72;
    font-size: 11px;
  }

  /* Let section visibility follow .propai-section-active again */
  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="markets"],
  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="slate"],
  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="generative"] {
    display: none !important;
  }

  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="markets"].propai-section-active,
  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="slate"].propai-section-active,
  body.propedge-chat-v2-mobile.propai-mode .propai-section-stack[data-propai-section="generative"].propai-section-active {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .propai-tool-nav {
    opacity: 0.85;
    margin-top: 8px;
  }

  .propai-analyst-head .propai-subtitle {
    display: none;
  }

  /* Markets dense cards (.pe-card--dense via existing deck rows) */
  body.markets-mode .propai-markets-page-wrap .propai-panel-title,
  body.markets-mode .propai-markets-page-head h2,
  body.markets-mode .propai-markets-page-wrap .propai-panel-header .propai-panel-title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
  }

  body.markets-mode .propai-secondary-cta {
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff;
    color: #04240f;
    font-size: 12px;
    font-weight: 800;
    border: none;
  }

  body.markets-mode .propai-board-meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #7c8a7a;
    text-transform: uppercase;
  }

  body.markets-mode .propai-league-tab,
  body.markets-mode .propai-dir-tab,
  body.markets-mode .propai-market-tab {
    border-radius: var(--pe-radius-chip);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #9caabf;
    font-weight: 700;
  }

  body.markets-mode .propai-league-tab.active,
  body.markets-mode .propai-dir-tab.active,
  body.markets-mode .propai-market-tab.active {
    background: rgba(57, 255, 106, 0.16);
    border-color: rgba(57, 255, 106, 0.4);
    color: var(--pe-accent);
    box-shadow: none;
  }

  body.markets-mode .propai-market-row--deck,
  body.propai-mode .propai-market-row--deck {
    background: var(--pe-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-spine,
  body.propai-mode .propai-market-row--deck .propai-deck-spine {
    display: none;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-inner,
  body.propai-mode .propai-market-row--deck .propai-deck-inner {
    padding: 14px 16px;
    gap: 12px;
    background: transparent;
  }

  body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot,
  body.markets-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
  body.propai-mode .propai-market-row--deck .propai-market-player .prop-headshot,
  body.propai-mode .propai-market-row--deck .propai-market-player img.prop-headshot {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  body.markets-mode .propai-market-row--deck .propai-market-name,
  body.propai-mode .propai-market-row--deck .propai-market-name {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
  }

  body.markets-mode .propai-market-row--deck .propai-market-sub,
  body.propai-mode .propai-market-row--deck .propai-market-sub {
    font-size: 16.5px;
    color: var(--pe-muted);
  }

  body.markets-mode .propai-market-row--deck .propai-deck-hero-row,
  body.propai-mode .propai-market-row--deck .propai-deck-hero-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-stat-chips,
  body.propai-mode .propai-market-row--deck .propai-deck-stat-chips {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: auto;
    min-width: 0;
  }

  @media (max-width: 1366px) {
    body.markets-mode .propai-market-row--deck .propai-deck-hero-row {
      flex-wrap: wrap !important;
    }

    body.markets-mode .propai-market-row--deck .propai-deck-stat-chips {
      flex: 1 1 100% !important;
      width: 100% !important;
      max-width: 100% !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  body.markets-mode .propai-market-row--deck .propai-deck-chip,
  body.propai-mode .propai-market-row--deck .propai-deck-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 8px;
    min-height: 0;
    text-align: center;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-chip-val,
  body.propai-mode .propai-market-row--deck .propai-deck-chip-val {
    font-size: 13px;
    font-weight: 800;
    color: #e7ece7;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-chip-lbl,
  body.propai-mode .propai-market-row--deck .propai-deck-chip-lbl {
    font-size: 9px;
    color: #7c8a7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-chip--edge,
  body.propai-mode .propai-market-row--deck .propai-deck-chip--edge {
    background: rgba(57, 255, 106, 0.14);
    border-color: rgba(57, 255, 106, 0.28);
    box-shadow: 0 0 12px rgba(57, 255, 106, 0.12);
  }

  body.markets-mode .propai-market-row--deck .propai-deck-chip--edge .propai-deck-chip-val,
  body.propai-mode .propai-market-row--deck .propai-deck-chip--edge .propai-deck-chip-val {
    color: var(--pe-accent);
  }

  body.markets-mode .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-num,
  body.propai-mode .propai-market-row--deck .propai-deck-odds-strip .propai-market-odds-num {
    color: var(--pe-accent);
    font-weight: 800;
  }

  body.markets-mode .propai-market-row--deck .propai-deck-odds-caption,
  body.propai-mode .propai-market-row--deck .propai-deck-odds-caption {
    color: var(--pe-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  body.markets-mode .propai-market-row--deck .propai-market-actions,
  body.propai-mode .propai-market-row--deck .propai-market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: stretch;
  }

  body.markets-mode .propai-market-row--deck .prop-action-btn.parlay-text,
  body.propai-mode .propai-market-row--deck .prop-action-btn.parlay-text {
    flex: 1 1 auto;
    min-width: 90px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: var(--pe-accent);
    color: #04240f;
    font-size: 12.5px;
    font-weight: 800;
  }

  body.markets-mode .propai-market-row--deck .bet-site-btn,
  body.markets-mode .propai-market-row--deck .propai-market-analysis-btn,
  body.markets-mode .propai-market-row--deck .propai-market-chat-btn,
  body.markets-mode .propai-market-row--deck .propai-market-watch,
  body.propai-mode .propai-market-row--deck .bet-site-btn,
  body.propai-mode .propai-market-row--deck .propai-market-analysis-btn,
  body.propai-mode .propai-market-row--deck .propai-market-chat-btn,
  body.propai-mode .propai-market-row--deck .propai-market-watch {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #9caabf;
    font-size: 11px;
    font-weight: 700;
  }

  body.markets-mode .propai-market-row--deck .propai-market-open--compact,
  body.propai-mode .propai-market-row--deck .propai-market-open--compact {
    flex: 1 1 auto;
    min-width: 90px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(57, 255, 106, 0.14);
    border: 1px solid rgba(57, 255, 106, 0.35);
    color: var(--pe-accent);
    font-size: 12px;
    font-weight: 700;
  }

  @media (min-width: 1367px) {
    body.markets-mode .propai-market-list,
    body.propai-mode #propAIMarketBrowserList.propai-market-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: start;
    }

    body.markets-mode .propai-market-list > .propai-market-header-row,
    body.propai-mode #propAIMarketBrowserList > .propai-market-header-row {
      grid-column: 1 / -1;
    }

    body.markets-mode .propai-market-row--deck .propai-deck-stat-chips,
    body.propai-mode .propai-market-row--deck .propai-deck-stat-chips {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }

    body.markets-mode .propai-market-row--deck .propai-deck-chip,
    body.propai-mode .propai-market-row--deck .propai-deck-chip {
      padding: 8px;
    }

    body.markets-mode .propai-market-row--deck .propai-deck-chip-val,
    body.propai-mode .propai-market-row--deck .propai-deck-chip-val {
      font-size: 14px;
    }
  }

  /* Parlay slip + detail sheet + More (mockup polish) */
  #parlayContainer .parlay-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
  }

  #parlayContainer .parlay-leg {
    background: var(--pe-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 10px;
  }

  #parlayContainer .parlay-leg-player {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
  }

  #parlayContainer .parlay-leg-prop {
    font-size: 11px;
    color: var(--pe-muted);
  }

  #parlayContainer .parlay-leg-odds {
    font-size: 12px;
    font-weight: 800;
    color: var(--pe-accent);
    font-family: inherit;
  }

  #parlayContainer .parlay-leg-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #9caabf;
  }

  #parlayContainer .parlay-summary {
    background: var(--pe-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px;
  }

  #parlayContainer .parlay-label {
    color: var(--pe-muted);
    font-size: 12.5px;
  }

  #parlayContainer .parlay-value {
    color: #fff;
    font-weight: 800;
  }

  #parlayContainer .parlay-btn.gambly,
  #parlayContainer .parlay-btn.playbook {
    border-radius: 12px;
    background: var(--pe-accent) !important;
    color: #04240f !important;
    font-weight: 800;
    border: none;
  }

  .detail-panel {
    background: #0a0d0a;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .detail-panel-chrome {
    background: #0a0d0a;
    padding: 18px 18px 12px;
  }

  .detail-panel-chrome-label {
    color: #7c8a7a;
    letter-spacing: 0.06em;
  }

  .site-mobile-more-row.open {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    grid-template-columns: none;
    padding: 12px;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #0a0d0a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  }

  .site-mobile-more-row.open .site-mobile-more-chip {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 54px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #e7ece7;
    font-size: 16px;
    font-weight: 700;
  }

  .site-mobile-more-row.open .site-mobile-more-chip:active {
    background: rgba(57, 255, 106, 0.12);
    border-color: rgba(57, 255, 106, 0.3);
  }

  .site-mobile-more-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #e7ece7;
    flex: 0 0 40px;
  }

  .site-mobile-more-icon svg {
    display: block !important;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-mobile-more-label {
    flex: 1 1 auto;
    line-height: 1.2;
  }

  /* ── v2026.07.24l — Palette lock + compact fidelity ── */
  body,
  .site-rebuild-shell,
  .site-shell-main,
  .site-shell-content,
  .app-layout,
  .main-content {
    background: #000 !important;
    color: var(--pe-text);
  }

  body:not(.markets-mode):not(.propai-mode) .site-summary-strip,
  body.home-mode .site-summary-strip,
  body[data-pe-view="props"] .site-summary-strip {
    display: none !important;
  }

  /* Home: demote Bet Grade / Sync-Export chrome (not in mockup) */
  body:not(.markets-mode):not(.propai-mode) .sort-bar #syncOutcomesBtn,
  body:not(.markets-mode):not(.propai-mode) .sort-bar #exportOutcomesBtn,
  .pe-home-feed ~ .sort-bar #syncOutcomesBtn,
  .pe-home-feed ~ .sort-bar #exportOutcomesBtn {
    display: none !important;
  }

  body:not(.markets-mode):not(.propai-mode) .sort-bar {
    background: transparent;
    border: none;
    padding: 0 0 8px;
    box-shadow: none;
  }

  /* Kill navy card gradients everywhere */
  .live-game-card,
  .prop-card,
  .propai-market-row--deck,
  .panel.propai-panel {
    background: var(--pe-surface) !important;
    background-image: none !important;
  }

  .live-game-card:hover,
  .live-game-card.active {
    background: var(--pe-surface) !important;
  }

  /* Game board ticker only — never #gamesContainer cards */
  .live-games-scroll .live-game-card {
    min-width: 228px !important;
    width: 228px !important;
    padding: 14px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
  }

  .live-games-scroll {
    gap: 10px;
    padding-bottom: 14px;
  }

  .live-games-scroll .live-game-card .game-card-actions {
    display: flex !important;
    gap: 8px !important;
    max-height: none !important;
    opacity: 1 !important;
    margin-top: 4px;
  }

  .live-games-scroll .live-game-card .game-card-btn {
    flex: 1 1 0;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  .live-games-scroll .live-game-card .game-matchup,
  .live-games-scroll .live-game-card .game-teams,
  .live-games-scroll .live-game-card .game-card-teams {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
  }

  #gamesContainer .site-games-card.live-game-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 16px !important;
  }

  #gamesContainer .site-games-logo {
    width: 44px;
    height: 44px;
  }

  #gamesContainer .site-games-logo img {
    width: 34px !important;
    height: 34px !important;
  }

  @media (min-width: 1367px) {
    .live-games-scroll .live-game-card {
      min-width: 200px !important;
      width: 200px !important;
      padding: 16px 16px 14px !important;
    }

    .live-games-scroll {
      gap: 12px;
      padding-bottom: 16px;
    }

    .live-games-scroll .live-game-card .game-card-btn {
      min-height: 38px;
      padding: 9px 8px !important;
      font-size: 12px !important;
    }
  }

  .site-shell-nav {
    gap: 12px;
  }

  .site-sidebar-logo .logo-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #05080e url('/brand-shield.png') center/contain no-repeat !important;
  }

  .site-sidebar-logo .logo-icon::before,
  .site-sidebar-logo .logo-icon::after {
    content: none !important;
  }

  .pe-home-feed-count,
  .pe-bestbets-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c8a7a;
    margin: 6px 0 10px;
  }

  .pe-home-top-plays { margin-top: 8px; }

  .pe-home-legacy-boards {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 12px 12px;
  }

  .pe-home-legacy-boards > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5f6b60;
  }

  .pe-home-legacy-boards > summary::-webkit-details-marker { display: none; }

  .pe-home-featured-mock,
  .pe-bestbets-featured { margin-bottom: 8px; }

  .pe-home-featured-mock .propai-featured-pick,
  .pe-bestbets-featured .propai-featured-pick {
    background: linear-gradient(160deg, #0e1710, #0a0d0a);
    border: 1px solid rgba(57, 255, 106, 0.22);
    border-radius: 20px;
    padding: 14px;
    container-type: inline-size;
    overflow: hidden;
  }

  /* Featured uses Markets deck card — drop double frame so Home matches Markets */
  .pe-home-featured-mock .propai-featured-pick.pe-home-markets-deck,
  .pe-bestbets-featured .propai-featured-pick.pe-home-markets-deck {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
  }

  /*
   * Featured Pick headshot must never crush/overlap copy.
   * Art is a fixed square; copy gets minmax(0,1fr).
   */
  .pe-home-featured-mock .propai-feature-hero,
  .pe-home-feed .propai-feature-hero,
  .pe-bestbets-featured .propai-feature-hero {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    grid-template-areas:
      "art copy"
      "confidence confidence" !important;
    gap: 14px 16px !important;
    padding: 16px !important;
    align-items: start !important;
    overflow: hidden !important;
    min-width: 0 !important;
  }

  .pe-home-featured-mock .propai-feature-art,
  .pe-home-feed .propai-feature-art,
  .pe-bestbets-featured .propai-feature-art {
    grid-area: art !important;
    width: 132px !important;
    max-width: 132px !important;
    min-width: 0 !important;
    min-height: 132px !important;
    max-height: 132px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    flex: 0 0 132px !important;
  }

  .pe-home-featured-mock .propai-feature-art img,
  .pe-home-featured-mock .propai-feature-art .prop-headshot,
  .pe-home-featured-mock .propai-feature-art .prop-headshot-fallback,
  .pe-home-feed .propai-feature-art img,
  .pe-home-feed .propai-feature-art .prop-headshot,
  .pe-home-feed .propai-feature-art .prop-headshot-fallback,
  .pe-bestbets-featured .propai-feature-art img,
  .pe-bestbets-featured .propai-feature-art .prop-headshot,
  .pe-bestbets-featured .propai-feature-art .prop-headshot-fallback {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
  }

  .pe-home-featured-mock .propai-feature-copy,
  .pe-home-feed .propai-feature-copy,
  .pe-bestbets-featured .propai-feature-copy {
    grid-area: copy !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .pe-home-featured-mock .propai-feature-player,
  .pe-home-feed .propai-feature-player,
  .pe-bestbets-featured .propai-feature-player {
    font-size: clamp(20px, 2.2vw, 26px) !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
  }

  .propai-feature-narrative {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 106, 0.14);
    background: rgba(0, 0, 0, 0.22);
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 500;
  }

  .propai-feature-narrative-label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(57, 255, 106, 0.75);
  }

  .propai-feature-narrative[data-source="ai"] {
    border-color: rgba(57, 255, 106, 0.28);
  }

  .pe-home-featured-mock .propai-feature-confidence,
  .pe-home-feed .propai-feature-confidence,
  .pe-bestbets-featured .propai-feature-confidence {
    grid-area: confidence !important;
    width: 100% !important;
  }

  /* Featured PropIQ + Signal: clean duo, no uncalibrated caption clutter.
     Mobile Home overrides this to display:none (gauges already in subtitle). */
  .pe-home-featured-mock .propai-feature-score-duo--compact,
  .pe-home-feed .propai-feature-score-duo--compact,
  .pe-bestbets-featured .propai-feature-score-duo--compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
    padding: 14px 8px 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  @media (max-width: 1366px) {
    .site-mobile-home-dashboard .propai-feature-score-duo--compact,
    .site-mobile-home-dashboard .propai-feature-confidence,
    .pe-home-featured-mock .propai-feature-score-duo--compact,
    .pe-home-featured-mock .propai-feature-confidence {
      display: none !important;
    }

    /* Re-assert phone Home ticket after the 132px desktop-mock art rule above. */
    .site-mobile-home-dashboard .pe-home-featured-mock .propai-feature-hero,
    .site-mobile-home-dashboard .propai-feature-hero {
      grid-template-columns: 64px minmax(0, 1fr) !important;
      grid-template-areas:
        "art copy"
        "confidence confidence" !important;
      gap: 10px 12px !important;
      padding: 12px !important;
    }

    .site-mobile-home-dashboard .pe-home-featured-mock .propai-feature-art,
    .site-mobile-home-dashboard .propai-feature-art {
      width: 64px !important;
      max-width: 64px !important;
      min-width: 64px !important;
      min-height: 64px !important;
      max-height: 64px !important;
      border-radius: 50% !important;
    }
  }

  .pe-home-featured-mock .propai-feature-score-block,
  .pe-home-feed .propai-feature-score-block,
  .pe-bestbets-featured .propai-feature-score-block {
    align-items: center !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  .pe-home-featured-mock .propai-feature-score-duo--compact .propiq-container,
  .pe-home-feed .propai-feature-score-duo--compact .propiq-container,
  .pe-bestbets-featured .propai-feature-score-duo--compact .propiq-container {
    width: 92px !important;
    height: 92px !important;
    min-height: 92px !important;
  }

  .pe-home-featured-mock .propai-feature-score-duo--compact .propiq-badge-glow,
  .pe-home-feed .propai-feature-score-duo--compact .propiq-badge-glow,
  .pe-bestbets-featured .propai-feature-score-duo--compact .propiq-badge-glow {
    opacity: 0.55;
    filter: blur(10px);
  }

  .pe-home-featured-mock .propai-feature-score-duo--compact .propai-confidence-ring,
  .pe-home-feed .propai-feature-score-duo--compact .propai-confidence-ring,
  .pe-bestbets-featured .propai-feature-score-duo--compact .propai-confidence-ring {
    width: 92px !important;
    height: 92px !important;
  }

  .pe-home-featured-mock .propai-confidence-caption,
  .pe-home-feed .propai-confidence-caption,
  .pe-bestbets-featured .propai-confidence-caption {
    display: none !important;
  }

  /* Home Featured: no Ultimate/Prime tier word under PropIQ number */
  .pe-home-featured-mock .propai-feature-propiq-tier,
  .pe-home-feed .propai-feature-propiq-tier,
  .pe-bestbets-featured .propai-feature-propiq-tier {
    display: none !important;
  }

  /* Mobile / tablet Best Bets feed: stack featured when not on phone Home mock.
     Phone Home (.site-mobile-home-dashboard / .pe-home-featured-mock) keeps the
     compact 64px circle + copy layout from the site-mobile-active block. */
  @media (max-width: 1366px) {
    .pe-home-feed .propai-feature-hero,
    .pe-bestbets-featured .propai-feature-hero {
      grid-template-columns: 1fr !important;
      grid-template-areas:
        "art"
        "copy"
        "confidence" !important;
      gap: 12px !important;
      padding: 14px !important;
    }

    .pe-home-feed .propai-feature-art,
    .pe-bestbets-featured .propai-feature-art {
      width: 88px !important;
      max-width: 88px !important;
      min-height: 88px !important;
      max-height: 88px !important;
      border-radius: 16px !important;
      justify-self: start;
    }

    .pe-bestbets-featured .propai-feature-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .pe-bestbets-featured .propai-feature-actions {
      flex-direction: column !important;
      align-items: stretch !important;
    }

    /* Beat score-duo flex rule — gauges stay hidden on phone Home. */
    .site-mobile-home-dashboard .propai-feature-confidence,
    .site-mobile-home-dashboard .propai-feature-score-duo--compact,
    .pe-home-featured-mock .propai-feature-confidence {
      display: none !important;
    }

    /* Mobile Home: force single-column feed — never desktop 2-col card grid */
    .pe-home-feed .pe-home-compact-list,
    .pe-home-feed .pe-home-markets-deck,
    body.site-mobile-active .pe-home-compact-list,
    body.site-mobile-active .pe-home-markets-deck,
    body.site-mobile-active #propAIMarketBrowserList.propai-market-list,
    body.site-mobile-active .props-grid {
      display: flex !important;
      flex-direction: column !important;
      grid-template-columns: none !important;
      gap: 10px !important;
    }

    body.site-mobile-active .site-rebuild-shell,
    body.site-mobile-active .site-shell-main {
      width: 100% !important;
      max-width: 100% !important;
    }

    /* Mobile Home: keep chip strip compact; avoid desktop card chrome */
    .pe-chip-strip {
      gap: 6px;
      margin: 0 0 8px;
    }

    .pe-chip-strip .sport-tabs,
    .pe-chip-strip .filter-section {
      padding: 0 !important;
      margin: 0 !important;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
    }

    .pe-chip-strip .filter-section::before {
      display: none !important;
      content: none !important;
    }

    body.site-mobile-active .live-games,
    body.site-mobile-active .filter-section,
    body.site-mobile-active .app-layout {
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      border-radius: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    body.site-mobile-active .app-layout {
      padding: 0 !important;
    }

    body.site-mobile-active .site-shell-main,
    body.site-mobile-active .site-shell-content {
      padding-left: 12px;
      padding-right: 12px;
    }
  }

  .pe-home-compact-list,
  #propAIMarketBrowserList.propai-market-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Compact card skin — mockup 3-row structure */
  .pe-home-compact-list .propai-deck-spine,
  #propAIMarketBrowserList .propai-deck-spine,
  .pe-home-compact-list .propai-deck-odds-strip,
  #propAIMarketBrowserList .propai-deck-odds-strip,
  .pe-home-compact-list .propai-deck-chip:not(.propai-deck-chip--edge),
  #propAIMarketBrowserList .propai-deck-chip:not(.propai-deck-chip--edge),
  .pe-home-compact-list .propai-market-badges,
  #propAIMarketBrowserList .propai-market-badges,
  .pe-home-compact-list .propai-deck-chip--edge .propai-deck-chip-lbl,
  #propAIMarketBrowserList .propai-deck-chip--edge .propai-deck-chip-lbl {
    display: none !important;
  }

  .pe-home-compact-list .propai-deck-stat-chips,
  #propAIMarketBrowserList .propai-deck-stat-chips {
    display: flex !important;
    background: none;
    border: none;
    padding: 0;
    gap: 0;
    grid-template-columns: none;
  }

  .pe-home-compact-list .propai-market-row--deck,
  #propAIMarketBrowserList .propai-market-row--deck {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--pe-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    box-shadow: none !important;
  }

  .pe-home-compact-list .propai-deck-inner,
  #propAIMarketBrowserList .propai-deck-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /*
   * Compact card: [headshot | name/prop .......... edge% + IQ]
   * Reset legacy grid-area:head (body:not(.markets-mode) .propai-market-player)
   * which shoved IQ into a tiny left column.
   */
  .pe-home-compact-list .propai-deck-primary,
  #propAIMarketBrowserList .propai-deck-primary {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
  }

  .pe-home-compact-list .propai-market-player,
  #propAIMarketBrowserList .propai-market-player {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .pe-home-compact-list .propai-market-player-copy,
  #propAIMarketBrowserList .propai-market-player-copy {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
  }

  .pe-home-compact-list .propai-market-player .prop-headshot,
  .pe-home-compact-list .propai-market-player img.prop-headshot,
  .pe-home-compact-list .propai-market-player .prop-headshot-fallback,
  #propAIMarketBrowserList .propai-market-player .prop-headshot,
  #propAIMarketBrowserList .propai-market-player img.prop-headshot,
  #propAIMarketBrowserList .propai-market-player .prop-headshot-fallback {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: none !important;
    flex: 0 0 72px !important;
  }

  .pe-home-compact-list .propai-market-name,
  #propAIMarketBrowserList .propai-market-name {
    display: block !important;
    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: auto !important;
  }

  .pe-home-compact-list .propai-market-league,
  #propAIMarketBrowserList .propai-market-league {
    font-size: 12px !important;
    min-height: 22px !important;
    padding: 2px 9px !important;
    margin-right: 8px !important;
    vertical-align: middle;
  }

  .pe-home-compact-list .propai-market-sub,
  #propAIMarketBrowserList .propai-market-sub {
    display: block !important;
    font-size: 16.5px !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
    color: #8a978c !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: auto !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .pe-home-compact-list .propai-deck-hero-row,
  #propAIMarketBrowserList .propai-deck-hero-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 0 0 auto !important;
    width: auto !important;
    max-width: 96px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .pe-home-compact-list .propai-market-iq-block,
  #propAIMarketBrowserList .propai-market-iq-block {
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .pe-home-compact-list .propai-deck-chip--edge,
  #propAIMarketBrowserList .propai-deck-chip--edge {
    display: block !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    order: -1;
    width: auto !important;
    min-height: 0 !important;
  }

  .pe-home-compact-list .propai-deck-chip--edge .propai-deck-chip-val,
  #propAIMarketBrowserList .propai-deck-chip--edge .propai-deck-chip-val {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #39ff6a !important;
  }

  .pe-home-compact-list .propai-market-propiq-hero,
  #propAIMarketBrowserList .propai-market-propiq-hero,
  .pe-home-compact-list .propiq-container,
  #propAIMarketBrowserList .propiq-container {
    transform: none !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    margin: 0 !important;
  }

  .pe-home-compact-list .propiq-badge-glow,
  #propAIMarketBrowserList .propiq-badge-glow {
    width: 56px !important;
    height: 56px !important;
    filter: none !important;
    opacity: 0.5;
  }

  .pe-home-compact-list .propiq-number-display,
  #propAIMarketBrowserList .propiq-number-display {
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .pe-home-compact-list .propiq-logo,
  #propAIMarketBrowserList .propiq-logo {
    font-size: 9px !important;
    letter-spacing: 0.04em;
  }

  /* Odds strip lives in secondary — hide the empty padded band */
  .pe-home-compact-list .propai-deck-secondary,
  #propAIMarketBrowserList .propai-deck-secondary {
    display: none !important;
  }

  .pe-home-compact-list .propai-market-actions,
  .pe-home-compact-list .propai-deck-actions,
  #propAIMarketBrowserList .propai-market-actions,
  #propAIMarketBrowserList .propai-deck-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    gap: 8px !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    border-top: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  .pe-home-compact-list .prop-action-btn.parlay-text,
  #propAIMarketBrowserList .prop-action-btn.parlay-text {
    flex: 1 1 auto;
    min-width: 78px;
    min-height: 40px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  .pe-home-compact-list .bet-sites,
  #propAIMarketBrowserList .bet-sites {
    display: contents;
  }

  .pe-home-compact-list .bet-site-btn,
  .pe-home-compact-list .propai-market-analysis-btn,
  .pe-home-compact-list .propai-market-chat-btn,
  .pe-home-compact-list .propai-market-watch,
  .pe-home-compact-list .propai-market-open--compact,
  #propAIMarketBrowserList .bet-site-btn,
  #propAIMarketBrowserList .propai-market-analysis-btn,
  #propAIMarketBrowserList .propai-market-chat-btn,
  #propAIMarketBrowserList .propai-market-watch,
  #propAIMarketBrowserList .propai-market-open--compact {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #9caabf !important;
    box-shadow: none !important;
  }

  .pe-home-compact-list .propai-market-open--compact,
  #propAIMarketBrowserList .propai-market-open--compact {
    margin-left: auto;
    background: rgba(57, 255, 106, 0.14) !important;
    border: 1px solid rgba(57, 255, 106, 0.35) !important;
    color: #39ff6a !important;
    font-weight: 700 !important;
  }

  /* Home: demote Bet Grade / How PropIQ (not in mockup stack) */
  body:not(.markets-mode):not(.propai-mode) .sort-bar,
  body:not(.markets-mode):not(.propai-mode) #propiqGradingGuide,
  body:not(.markets-mode):not(.propai-mode) .propiq-grading-guide {
    display: none !important;
  }

  /* Mobile Home: drop duplicate league strip; enlarge game cards */
  @media (max-width: 1366px) {
    .pe-home-mockup .site-mobile-league-strip {
      display: none !important;
    }

    .live-games-scroll .live-game-card {
      min-width: 228px !important;
      width: 228px !important;
      padding: 14px 14px 12px !important;
    }

    .live-games-scroll .live-game-card .game-card-btn {
      min-height: 36px;
      padding: 8px 6px !important;
      font-size: 11px !important;
    }

    .pe-home-featured-mock .propai-panel,
    .pe-home-featured-mock {
      margin-top: 4px;
    }

  }

  /* Markets + Home Top Plays — shared deck chrome */
  body.markets-mode .propai-market-row--deck .propai-market-player,
  body.propai-mode .propai-market-row--deck .propai-market-player,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-player {
    gap: 14px !important;
  }

  body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot,
  body.markets-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
  body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot-fallback,
  body.propai-mode .propai-market-row--deck .propai-market-player .prop-headshot,
  body.propai-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
  body.propai-mode .propai-market-row--deck .propai-market-player .prop-headshot-fallback,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-player .prop-headshot,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-player img.prop-headshot,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: none !important;
    flex: 0 0 72px !important;
  }

  body.markets-mode .propai-market-row--deck .propai-market-name,
  body.propai-mode .propai-market-row--deck .propai-market-name,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-name {
    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
  }

  body.markets-mode .propai-market-row--deck .propai-market-league,
  body.propai-mode .propai-market-row--deck .propai-market-league,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-league {
    font-size: 12px !important;
    min-height: 22px !important;
    padding: 2px 9px !important;
    margin-right: 8px !important;
  }

  body.markets-mode .propai-market-row--deck .propai-market-sub,
  body.propai-mode .propai-market-row--deck .propai-market-sub,
  .pe-home-markets-deck .propai-market-row--deck .propai-market-sub {
    font-size: 16.5px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
    color: #8a978c !important;
  }

  body.markets-mode .propai-market-row--deck,
  .pe-home-markets-deck .propai-market-row--deck {
    background: var(--pe-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 16px !important;
  }

  @media (min-width: 1367px) {
    body.markets-mode .propai-market-row--deck {
      padding: 16px !important;
    }
  }

  body.propai-mode #propAIBrowserPanel.propai-section-active > .pe-bestbets-panel-head {
    display: none;
  }

  @media (min-width: 1367px) {
    body.propai-mode #propAIMarketBrowserList.propai-market-list,
    .pe-home-feed .pe-home-compact-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    body.propai-mode #propAIMarketBrowserList > .pe-home-feed-count,
    body.propai-mode #propAIMarketBrowserList > .pe-bestbets-featured,
    body.propai-mode #propAIMarketBrowserList > .ai-context-empty {
      grid-column: 1 / -1;
    }

    .pe-home-compact-list .propai-market-player .prop-headshot,
    .pe-home-compact-list .propai-market-player img.prop-headshot,
    .pe-home-compact-list .propai-market-player .prop-headshot-fallback,
    #propAIMarketBrowserList .propai-market-player .prop-headshot,
    #propAIMarketBrowserList .propai-market-player img.prop-headshot,
    #propAIMarketBrowserList .propai-market-player .prop-headshot-fallback,
    body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot,
    body.markets-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
    body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
      width: 80px !important;
      height: 80px !important;
      border-radius: 18px !important;
      flex-basis: 80px !important;
      flex: 0 0 80px !important;
    }

    .pe-home-compact-list .propai-market-name,
    #propAIMarketBrowserList .propai-market-name,
    body.markets-mode .propai-market-row--deck .propai-market-name {
      font-size: 22px !important;
    }

    .pe-home-compact-list .propai-market-sub,
    #propAIMarketBrowserList .propai-market-sub,
    body.markets-mode .propai-market-row--deck .propai-market-sub {
      font-size: 17px !important;
    }

    .pe-home-compact-list .propai-market-league,
    #propAIMarketBrowserList .propai-market-league,
    body.markets-mode .propai-market-row--deck .propai-market-league {
      font-size: 12.5px !important;
    }

    .pe-home-compact-list .propiq-number-display,
    #propAIMarketBrowserList .propiq-number-display {
      font-size: 26px !important;
    }

    .pe-home-compact-list .propai-deck-chip--edge .propai-deck-chip-val,
    #propAIMarketBrowserList .propai-deck-chip--edge .propai-deck-chip-val {
      font-size: 17px !important;
    }

    .pe-home-compact-list .propai-market-propiq-hero,
    #propAIMarketBrowserList .propai-market-propiq-hero,
    .pe-home-compact-list .propiq-container,
    #propAIMarketBrowserList .propiq-container,
    .pe-home-compact-list .propiq-badge-glow,
    #propAIMarketBrowserList .propiq-badge-glow {
      width: 68px !important;
      height: 68px !important;
      min-width: 68px !important;
    }

    .pe-home-compact-list .propai-market-row--deck,
    #propAIMarketBrowserList .propai-market-row--deck {
      padding: 14px !important;
    }

    body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot,
    body.markets-mode .propai-market-row--deck .propai-market-player img.prop-headshot,
    body.markets-mode .propai-market-row--deck .propai-market-player .prop-headshot-fallback {
      width: 80px !important;
      height: 80px !important;
      border-radius: 18px !important;
      flex: 0 0 80px !important;
    }
  }

  /* Remaining navy washes → black/green */
  .propai-market-row--deck,
  body.markets-mode .propai-market-row--deck {
    background-image: none !important;
    background-color: var(--pe-surface) !important;
  }

  .site-sidebar-shell,
  .site-mobile-bottom-nav,
  .site-command-bar {
    background: #000 !important;
    background-image: none !important;
  }

  .summary-stat.blue,
  .stat-value.blue {
    color: var(--pe-muted) !important;
  }

  .sort-bar,
  .sort-spotlight,
  .propiq-grading-guide {
    background: var(--pe-surface) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
  }

  .sort-spotlight-label {
    color: #7c8a7a !important;
  }

  .sort-select {
    background: #0a0d0a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--pe-text) !important;
  }

  /* Keep Home feed cards from overflowing 2-col cells */
  .pe-home-compact-list > .propai-market-row--deck,
  #propAIMarketBrowserList > .propai-market-row--deck {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* PropAI evidence-first workspace. This is the primary native surface for
     desktop and mobile; the legacy analyst desk is kept only for compatibility
     with older state and is hidden when this workspace is active. */
  .propai-evidence-workspace {
    --pe-workspace-bg: #05080e;
    --pe-workspace-panel: #0b111b;
    --pe-workspace-panel-2: #0e1622;
    --pe-workspace-border: rgba(148, 163, 184, .20);
    --pe-workspace-muted: #8b98a8;
    --pe-workspace-text: #eef3f8;
    --pe-workspace-green: #50dc91;
    --pe-workspace-gold: #c79528;
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-height: min(820px, calc(100dvh - 32px));
    padding: 0;
    overflow: hidden;
    color: var(--pe-workspace-text);
    background: var(--pe-workspace-bg);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  }

  .propai-evidence-workspace + .propai-unified:not(.propai-evidence-workspace) {
    display: none !important;
  }

  .pe-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
  }

  .pe-workspace-brand,
  .pe-workspace-tagline,
  .pe-column-topline,
  .pe-research-steps,
  .pe-chat-context,
  .pe-insight-meta,
  .pe-source-grid,
  .pe-insight-question,
  .pe-workspace-rail,
  .pe-rail-btn,
  .pe-rail-settings {
    display: flex;
    align-items: center;
  }

  .pe-workspace-brand { gap: 8px; font-size: 16px; white-space: nowrap; }
  .pe-workspace-brand strong { font-size: 18px; letter-spacing: -.02em; }
  .pe-workspace-brand > span:last-child { margin-left: 10px; color: var(--pe-workspace-muted); font-size: 10px; letter-spacing: .10em; }
  .pe-workspace-mark { color: #e0a52f; font-size: 17px; }
  .pe-workspace-tagline { color: var(--pe-workspace-muted); font-size: 11px; }

  .pe-workspace-grid {
    display: grid;
    grid-template-columns: 76px minmax(0, 1.1fr) minmax(330px, .95fr);
    flex: 1 1 auto;
    min-height: 0;
  }

  .pe-workspace-rail {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 12px 8px;
    background: #09101a;
    border-right: 1px solid rgba(148, 163, 184, .16);
  }

  .pe-rail-brand { padding: 5px 7px 14px; color: #f6f8fb; font-size: 12px; font-weight: 800; border-bottom: 1px solid rgba(148, 163, 184, .13); }
  .pe-rail-btn,
  .pe-rail-settings { justify-content: flex-start; gap: 7px; padding: 8px 7px; color: #aeb9c7; background: transparent; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 10px; cursor: pointer; }
  .pe-rail-btn span, .pe-rail-settings span { width: 13px; color: #c2ccd8; text-align: center; }
  .pe-rail-btn:hover, .pe-rail-btn.active { color: #fff; background: rgba(199, 149, 40, .11); border-color: rgba(199, 149, 40, .28); }
  .pe-rail-upgrade { display: grid; gap: 5px; margin: auto 0 8px; padding: 9px 7px; border: 1px solid rgba(199, 149, 40, .25); border-radius: 7px; color: #e8bf5b; font-size: 9px; line-height: 1.3; }
  .pe-rail-upgrade span { color: var(--pe-workspace-muted); }

  .pe-workspace-chat,
  .pe-workspace-insight { min-width: 0; min-height: 0; overflow: hidden; }
  .pe-workspace-chat { display: flex; flex-direction: column; border-right: 1px solid rgba(148, 163, 184, .16); }
  .pe-workspace-insight { padding: 12px; background: #080d15; overflow-y: auto; }
  .pe-column-topline { justify-content: space-between; gap: 12px; min-height: 65px; padding: 10px 13px; border-bottom: 1px solid rgba(148, 163, 184, .13); }
  .pe-column-topline > div:first-child { display: grid; gap: 4px; min-width: 0; }
  .pe-column-topline strong { color: #f4f7fb; font-size: 12px; }
  .pe-column-topline span { color: var(--pe-workspace-muted); font-size: 9px; line-height: 1.45; }
  .pe-research-steps { gap: 12px; white-space: nowrap; }
  .pe-research-steps span { font-size: 8px; }
  .pe-research-steps .done { color: var(--pe-workspace-green); }
  .pe-chat-context { justify-content: space-between; padding: 11px 14px; color: #edf2f7; font-size: 12px; font-weight: 700; }
  .pe-context-live { color: var(--pe-workspace-green); font-size: 9px; font-weight: 700; }
  .pe-native-chat-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 13px 12px !important; overscroll-behavior: contain; scrollbar-width: thin; }
  .pe-native-chat-feed .propai-chat-welcome { min-height: 0; }
  .pe-native-composer { flex: 0 0 auto; margin: 10px 12px 12px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .pe-native-composer .pad-ask-row { display: flex; gap: 8px; }
  .pe-native-composer .pad-ask-input-wrap { flex: 1; min-width: 0; }
  .pe-native-composer input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 0 13px; color: #e8eef5; background: #101925; border: 1px solid rgba(148, 163, 184, .22); border-radius: 9px; outline: none; }
  .pe-native-composer input:focus { border-color: rgba(80, 220, 145, .70); box-shadow: 0 0 0 3px rgba(80, 220, 145, .10); }
  .pe-native-composer .pad-ask-send { width: 42px; min-height: 42px; color: #08100d; background: var(--pe-workspace-green); border-radius: 9px; font-size: 20px; }
  .pe-insight-topline { min-height: 52px; padding: 0 0 10px; }
  .pe-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--pe-workspace-gold); border-radius: 50%; color: #f2ce7b !important; font-size: 10px !important; }
  .pe-insight-question { justify-content: space-between; gap: 8px; margin: 12px 0 7px; padding: 10px 11px; color: #f3f6fa; background: #101925; border: 1px solid rgba(148, 163, 184, .23); border-radius: 8px; font-size: 11px; }
  .pe-insight-question button { flex: 0 0 auto; width: 26px; height: 26px; color: #0b1118; background: #c5cbd0; border: 0; border-radius: 50%; cursor: pointer; }
  .pe-insight-meta { justify-content: space-between; color: var(--pe-workspace-muted); font-size: 8px; }
  .pe-featured-stack { display: grid; gap: 9px; margin-top: 10px; }
  .pe-featured-card { padding: 12px; background: var(--pe-workspace-panel); border: 1px solid rgba(148, 163, 184, .18); border-radius: 9px; }
  .pe-card-kicker { color: var(--pe-workspace-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
  .pe-featured-card h2 { margin: 7px 0 4px; color: #f3f6fa; font-size: 16px; }
  .pe-featured-card p { margin: 0; color: #aab7c5; font-size: 10px; line-height: 1.55; }
  .pe-featured-card button { margin-top: 10px; padding: 7px 9px; color: #d8fbe8; background: rgba(80, 220, 145, .10); border: 1px solid rgba(80, 220, 145, .42); border-radius: 6px; font-size: 10px; cursor: pointer; }
  .pe-featured-card .pe-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(148, 163, 184, .14); }
  .pe-stat-row span { display: block; color: var(--pe-workspace-muted); font-size: 8px; }
  .pe-stat-row strong { display: block; margin-top: 3px; color: #f3f6fa; font-size: 13px; }
  .pe-confidence { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin-top: 10px; color: var(--pe-workspace-muted); font-size: 8px; }
  .pe-confidence b { color: var(--pe-workspace-green); font-size: 11px; }
  .pe-confidence i { grid-column: 1 / -1; display: block; height: 5px; overflow: hidden; background: rgba(148, 163, 184, .14); border-radius: 99px; }
  .pe-confidence i::before { content: ''; display: block; width: var(--pe-confidence, 70%); height: 100%; background: var(--pe-workspace-green); border-radius: inherit; }
  .pe-trend-chart { display: flex; align-items: end; gap: 5px; height: 58px; margin-top: 12px; padding: 8px 8px 0; border-top: 1px solid rgba(148, 163, 184, .14); background: linear-gradient(180deg, rgba(80, 220, 145, .04), transparent); }
  .pe-trend-chart i { display: block; flex: 1; min-height: 8px; max-height: 100%; background: linear-gradient(180deg, #8bf0b5, #3aa96d); border-radius: 3px 3px 0 0; opacity: .9; }
  .pe-why-play { display: grid; gap: 5px; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, .14); }
  .pe-why-play strong { color: #dce6ee; font-size: 10px; }
  .pe-why-play span { color: #aebbc8; font-size: 9px; line-height: 1.4; }
  .pe-why-play span::first-letter { color: var(--pe-workspace-green); }
  .pe-card-actions { display: flex; gap: 7px; flex-wrap: wrap; }
  .pe-card-actions button + button { color: #d6e0e8; background: transparent; border-color: rgba(148, 163, 184, .22); }
  .pe-empty-copy { padding: 9px 0; color: var(--pe-workspace-muted); font-size: 9px; }
  .pe-source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
  .pe-source-grid article { display: grid; gap: 4px; min-width: 0; padding: 8px; background: #0c141f; border: 1px solid rgba(148, 163, 184, .15); border-radius: 7px; }
  .pe-source-grid strong { color: #dce6ee; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pe-source-grid span { color: var(--pe-workspace-muted); font-size: 8px; line-height: 1.35; }
  .pe-mini-section { margin-top: 10px; padding: 10px; background: var(--pe-workspace-panel); border: 1px solid rgba(148, 163, 184, .16); border-radius: 8px; }
  .pe-mini-section > strong, .pe-mini-section > span { display: block; }
  .pe-mini-section > strong { color: #e8eef5; font-size: 10px; }
  .pe-mini-section > span { margin-top: 3px; color: var(--pe-workspace-muted); font-size: 8px; }
  .pe-mini-prop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; width: 100%; padding: 9px 8px; color: inherit; text-align: left; font: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(148, 163, 184, .12); cursor: pointer; }
  .pe-mini-prop:hover, .pe-mini-prop:focus-visible { background: rgba(80, 220, 145, .07); outline: none; }
  .pe-mini-prop:last-child { border-bottom: 0; }
  .pe-mini-prop strong { display: block; overflow: hidden; color: #e6edf3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .pe-mini-prop span { color: var(--pe-workspace-muted); font-size: 8px; }
  .pe-mini-prop b { color: var(--pe-workspace-green); font-size: 10px; }
  .pe-skeleton-line { height: 7px; margin-top: 9px; background: rgba(148, 163, 184, .14); border-radius: 99px; }
  .pe-skeleton-line.short { width: 65%; }
  .detail-panel:not(.open) { visibility: hidden; pointer-events: none; }
  .detail-panel.open { visibility: visible; pointer-events: auto; }

  @media (max-width: 1100px) {
    .pe-workspace-grid { grid-template-columns: 68px minmax(0, 1fr) 300px; }
    .pe-research-steps { gap: 6px; }
    .pe-research-steps span { font-size: 7px; }
  }

  @media (max-width: 899px) {
    .propai-evidence-workspace { min-height: calc(100dvh - 90px); height: auto; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .pe-workspace-header { min-height: 52px; padding: 0 14px; }
    .pe-workspace-tagline { display: none; }
    .pe-workspace-brand > span:last-child { display: inline; margin-left: 6px; font-size: 8px; }
    .pe-workspace-grid { display: flex; flex-direction: column; }
    .pe-workspace-rail { order: 3; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 8px 10px; border-top: 1px solid rgba(148, 163, 184, .15); border-right: 0; }
    .pe-rail-brand, .pe-rail-upgrade, .pe-rail-settings { display: none; }
    .pe-rail-btn { justify-content: center; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 8px; }
    .pe-workspace-chat { order: 1; overflow: visible; border-right: 0; }
    .pe-workspace-insight { order: 2; overflow: visible; padding: 12px 14px 110px; }
    .pe-column-topline { min-height: 58px; padding: 9px 0; }
    .pe-column-topline > div:first-child span { font-size: 8px; }
    .pe-research-steps { gap: 7px; }
    .pe-research-steps span { font-size: 7px; }
    .pe-chat-context { padding: 11px 14px; }
    .pe-native-chat-feed { min-height: 300px; max-height: none; overflow: visible; padding: 8px 14px 6px !important; }
    .pe-native-composer { margin: 8px 14px 12px; }
    .pe-featured-card h2 { font-size: 18px; }
    .pe-source-grid { grid-template-columns: repeat(3, 1fr); }
  }

  /* PropAI is a dedicated workspace, so global shell chrome must not compete
     with the evidence-first layout while this view is active. */
  body.propai-mode .site-sidebar-shell,
  body.propai-mode .site-command-bar,
  body.propai-mode .site-shell-content > .header,
  body.propai-mode .site-mobile-bottom-nav {
    display: none !important;
  }
  body.propai-mode .site-rebuild-shell { grid-template-columns: minmax(0, 1fr) !important; }
  body.propai-mode .site-shell-main { width: 100% !important; max-width: none !important; margin: 0 !important; gap: 0 !important; padding: 0 !important; }
  body.propai-mode .site-shell-content { padding: 0 !important; }
  body.propai-mode #recommendationsContainer { margin: 0 !important; }
  @media (max-width: 1366px) {
    body.propai-mode #siteMobileBottomNav,
    body.propai-mode .site-mobile-bottom-nav {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      z-index: 120 !important;
    }
  }
  body.propai-mode .propai-evidence-workspace { max-width: none; min-height: 100dvh; border-radius: 0; border-left: 0; border-right: 0; }

  @media (max-width: 899px) {
    body.propai-mode .propai-evidence-workspace { min-height: 100dvh; }
    body.propai-mode .pe-workspace-rail { display: none; }
    body.propai-mode .propai-evidence-workspace { width: 100vw; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
    /* The legacy chat shell locks its parents to the viewport. The native
       evidence workspace needs document flow so long insight cards cannot be
       clipped under the composer or browser toolbar. */
    body.propai-mode .site-shell-main,
    body.propai-mode .app-layout,
    body.propai-mode .main-content,
    body.propai-mode #recommendationsContainer,
    body.propai-mode .propai-evidence-workspace { height: auto !important; min-height: 100dvh; overflow: visible !important; }
    body.propai-mode .pe-workspace-grid { flex: 0 0 auto; }
    body.propai-mode .pe-workspace-grid > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
    body.propai-mode #propaiChatComposerDock { display: none !important; position: static !important; inset: auto !important; }
    body.propai-mode .pe-workspace-insight { padding-bottom: 32px; }
    /* Keep the phone experience as one explicit reading order. Grid placement
       can create implicit tracks when the chat column becomes display:contents. */
    body.propai-mode .pe-workspace-grid { display: flex; flex-direction: column; align-content: normal; }
    body.propai-mode .pe-workspace-chat { display: contents; }
    body.propai-mode .pe-workspace-chat > .pe-column-topline { order: 1; }
    body.propai-mode .pe-chat-context { order: 2; }
    body.propai-mode .pe-native-chat-feed { order: 3; }
    body.propai-mode .pe-workspace-insight { order: 4; }
    body.propai-mode .pe-native-composer { order: 5; margin-bottom: 24px; }
    body.propai-mode #propaiChatComposerDock { order: 6; }
    body.propai-mode .pe-insight-topline,
    body.propai-mode .pe-insight-question,
    body.propai-mode .pe-insight-meta { display: none; }
  }

  @media (max-width: 899px) {
    /* Override the older fullscreen chat containment rules. Native PropAI is a
       normal document flow on phones, so the browser can scroll the complete
       evidence stack instead of clipping it at one viewport. */
    body.propedge-chat-v2-mobile.propai-mode,
    body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell,
    body.propedge-chat-v2-mobile.propai-mode .site-shell-main,
    body.propedge-chat-v2-mobile.propai-mode .app-layout,
    body.propedge-chat-v2-mobile.propai-mode .main-content,
    body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer,
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace {
      height: auto !important;
      min-height: 100dvh !important;
      overflow: visible !important;
    }
    body.propedge-chat-v2-mobile.propai-mode { overflow: auto !important; }
    body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell { flex: none !important; }
  }

  /* Final native-chat composition pass: keep the compatibility desk out of
     the layout, and make the evidence workspace the only interactive surface. */
  body.propai-chat-shell-active #recommendationsContainer > .propai-unified:not(.propai-evidence-workspace) {
    display: none !important;
  }
  .propai-evidence-workspace .pe-native-composer {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
  }
  .propai-evidence-workspace .pe-native-chat-feed {
    contain: layout paint style;
  }
  .propai-evidence-workspace .ai-message {
    content-visibility: auto;
    contain-intrinsic-size: 180px;
  }
  @media (max-width: 899px) {
    .propai-evidence-workspace .pe-workspace-header {
      position: sticky;
      top: 0;
      z-index: 5;
      background: rgba(5, 8, 14, .96);
      backdrop-filter: blur(14px);
    }
    .propai-evidence-workspace .pe-workspace-brand > span:last-child {
      display: none;
    }
    .propai-evidence-workspace .pe-column-topline {
      min-height: 50px;
    }
    .propai-evidence-workspace .pe-research-steps span:not(.done) {
      display: none;
    }
    .propai-evidence-workspace .pe-native-chat-feed {
      min-height: 180px;
      padding: 10px 14px 4px !important;
    }
    .propai-evidence-workspace .pe-native-composer {
      margin: 8px 14px 16px;
    }
    .propai-evidence-workspace .pe-source-grid {
      grid-template-columns: 1fr;
    }
    .propai-evidence-workspace .pe-workspace-insight {
      padding-top: 16px;
    }
  }

  /* Conversational answer card: the response, subject, and evidence should
     read as one message instead of a report assembled from separate panels. */
  .propai-chat-answer-card { display: grid; gap: 14px; }
  .propai-chat-subject {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(80, 220, 145, .18);
    border-radius: 16px;
    background: rgba(80, 220, 145, .045);
  }
  .propai-chat-subject-art {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
  }
  .propai-chat-subject-art img,
  .propai-chat-subject-art .prop-headshot-wrap,
  .propai-chat-subject-art .prop-headshot,
  .propai-chat-subject-art .propai-chat-inline-headshot { width: 64px !important; height: 64px !important; object-fit: cover; }
  .propai-chat-subject-copy { min-width: 0; flex: 1 1 auto; }
  .propai-chat-subject-kicker { color: #8fa0b4; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .propai-chat-subject-copy > strong { display: block; margin-top: 4px; color: #f8fafc; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
  .propai-chat-subject-team { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: #c4d0dc; font-size: 12px; }
  .propai-chat-subject-logos { display: inline-flex; align-items: center; gap: 4px; }
  .propai-chat-subject-line { margin-top: 5px; color: #94a3b8; font-size: 11px; font-weight: 700; }
  .propai-chat-subject-verdict { flex: 0 0 auto; padding: 7px 9px; border: 1px solid rgba(80,220,145,.35); border-radius: 999px; color: #8fffb3; background: rgba(80,220,145,.08); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .propai-chat-pick-teamline { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #9fb0c0; font-size: 11px; font-weight: 700; }
  .propai-chat-pick-teamline .propai-chat-inline-team-logo { width: 18px; height: 18px; }
  .propai-chat-trend { position: relative; display: flex; align-items: end; gap: 6px; height: 68px; margin-top: 12px; padding: 10px 10px 18px; border: 1px solid rgba(148,163,184,.12); border-radius: 12px; background: rgba(80,220,145,.035); }
  .propai-chat-trend span { display: block; flex: 1 1 0; min-width: 10px; height: var(--pe-bar); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #8bf0b5, #35a86d); }
  .propai-chat-trend small { position: absolute; left: 10px; bottom: 4px; color: #8291a2; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .propai-chat-answer-card > .propai-chat-source-grid { margin-top: 2px; }
  .propai-chat-answer-card > .propai-chat-insight-strip { margin-top: 2px; }
  .propai-chat-source-meta { overflow: hidden; max-width: 48%; text-overflow: ellipsis; white-space: nowrap; }

  @media (max-width: 899px) {
    .propai-chat-answer-card { gap: 12px; }
    .propai-chat-subject { align-items: flex-start; padding: 11px; }
    .propai-chat-subject-art { flex-basis: 56px; width: 56px; height: 56px; }
    .propai-chat-subject-art img,
    .propai-chat-subject-art .prop-headshot-wrap,
    .propai-chat-subject-art .prop-headshot,
    .propai-chat-subject-art .propai-chat-inline-headshot { width: 56px !important; height: 56px !important; }
    .propai-chat-subject-copy > strong { font-size: 18px; }
    .propai-chat-subject-verdict { margin-left: auto; }
    .propai-chat-answer-card .propai-chat-insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .propai-chat-answer-card .propai-chat-source-grid { grid-template-columns: 1fr; }
    .propai-chat-answer-card .propai-chat-source-card { padding: 12px 13px; }
    .propai-chat-answer-card .propai-chat-source-title { font-size: 14px; }
    .propai-chat-answer-card .propai-chat-source-note { font-size: 11px; }
  }

  /* Evidence drawer: desktop can scan it open, while mobile keeps the answer
     compact and lets the user opt into provider detail. */
  .propai-chat-evidence-drawer { border-top: 1px solid rgba(148,163,184,.14); }
  .propai-chat-evidence-drawer > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    color: #dbe7f1;
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .propai-chat-evidence-drawer > summary::-webkit-details-marker { display: none; }
  .propai-chat-evidence-drawer > summary b { margin-left: auto; color: #8fa0b4; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }
  .propai-chat-evidence-drawer > summary i { width: 7px; height: 7px; border-right: 1px solid #8fa0b4; border-bottom: 1px solid #8fa0b4; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
  .propai-chat-evidence-drawer[open] > summary i { transform: rotate(225deg) translate(-1px, -1px); }
  .propai-chat-evidence-drawer .propai-chat-source-grid { margin-top: 0; }
  @media (max-width: 899px) {
    .propai-chat-evidence-drawer { margin-top: 3px; }
    .propai-chat-evidence-drawer .propai-chat-source-grid { padding-bottom: 3px; }
    .propai-chat-evidence-drawer .propai-chat-source-card { min-height: 0; }
  }

  /* The rail is a context surface, not a second report. Give the selected
     player a visual anchor and keep the information density scannable. */
  .pe-featured-player { display: flex; align-items: center; gap: 9px; margin: 10px 0 7px; }
  .pe-featured-player-art { display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.07); }
  .pe-featured-player-art img, .pe-featured-player-art .prop-headshot-wrap, .pe-featured-player-art .prop-headshot { width: 42px !important; height: 42px !important; object-fit: cover; }
  .pe-featured-player-copy { min-width: 0; }
  .pe-featured-player-copy strong { display: block; color: #f2f6fa; font-size: 14px; }
  .pe-featured-player-copy span { display: block; margin-top: 3px; color: #8fa0b4; font-size: 10px; }
  .pe-featured-player-logos { display: inline-flex; align-items: center; gap: 4px; margin-right: 5px; }
  @media (prefers-reduced-motion: reduce) {
    .propai-chat-evidence-drawer > summary i { transition: none; }
  }

  /* A quiet status strip gives the chat a live-data cue without competing
     with the question, answer, or decision fields. */
  .pe-live-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 16px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    color: #8fa0b4;
    scrollbar-width: none;
  }
  .pe-live-ticker::-webkit-scrollbar { display: none; }
  .pe-live-ticker span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
  }
  .pe-live-ticker span:first-child { color: #9ff6bd; border-color: rgba(80, 220, 145, .24); background: rgba(80, 220, 145, .06); }
  .pe-live-ticker i { width: 6px; height: 6px; border-radius: 50%; background: #50dc91; box-shadow: 0 0 0 3px rgba(80, 220, 145, .10); }

  .pe-mobile-nav { display: none; }

  .pe-native-composer .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @media (min-width: 900px) and (max-width: 1100px) {
    /* Give tablets a readable chat column; the evidence rail returns on wide
       desktop once there is enough room for both the answer and context. */
    .propai-evidence-workspace .pe-workspace-grid { grid-template-columns: 68px minmax(0, 1fr); }
    .propai-evidence-workspace .pe-workspace-insight { display: none; }
    .propai-evidence-workspace .pe-native-composer { grid-column: 2; width: auto; }
  }

  @media (max-width: 899px) {
    .pe-live-ticker { min-height: 30px; padding: 0 14px; }
    .pe-live-ticker span { font-size: 8px; }
    .pe-mobile-nav {
      display: flex;
      gap: 5px;
      padding: 7px 14px;
      overflow-x: auto;
      border-bottom: 1px solid rgba(148, 163, 184, .12);
      scrollbar-width: none;
    }
    .pe-mobile-nav::-webkit-scrollbar { display: none; }
    .pe-mobile-nav button {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      flex: 0 0 auto;
      min-height: 30px;
      padding: 0 10px;
      color: #9eacbb;
      background: #0b111b;
      border: 1px solid rgba(148, 163, 184, .18);
      border-radius: 999px;
      font: inherit;
      font-size: 10px;
      font-weight: 750;
      cursor: pointer;
    }
    .pe-mobile-nav button:first-child { color: #a0f5bb; border-color: rgba(80, 220, 145, .32); background: rgba(80, 220, 145, .08); }
    .pe-mobile-nav button:focus-visible { outline: 2px solid #50dc91; outline-offset: 2px; }
    .pe-mobile-nav button span { color: currentColor; font-size: 14px; line-height: 1; }
    /* Phones are answer-first. Keep one live board card after the thread,
       but remove the repeated source and mini-prop dashboard. */
    body.propai-mode .pe-workspace-insight { padding: 14px 14px 24px; }
    body.propai-mode .pe-workspace-insight .pe-insight-topline,
    body.propai-mode .pe-workspace-insight .pe-insight-question,
    body.propai-mode .pe-workspace-insight .pe-insight-meta,
    body.propai-mode .pe-workspace-insight .pe-source-grid,
    body.propai-mode .pe-workspace-insight .pe-mini-section { display: none; }
    body.propai-mode .pe-featured-stack { margin-top: 0; }
    body.propai-mode .pe-featured-card { padding: 14px; }

    .propai-chat-subject-art { flex-basis: 72px; width: 72px; height: 72px; border-radius: 18px; }
    .propai-chat-subject-art img,
    .propai-chat-subject-art .prop-headshot-wrap,
    .propai-chat-subject-art .prop-headshot,
    .propai-chat-subject-art .propai-chat-inline-headshot { width: 72px !important; height: 72px !important; }
    .propai-chat-subject-copy > strong { font-size: 22px; }
    .propai-chat-subject-kicker { font-size: 11px; }
    .propai-chat-subject-team { font-size: 13px; }
    .propai-chat-subject-line { font-size: 12px; }
    .propai-chat-pick-card .propai-chat-inline-headshot,
    .propai-chat-pick-teamline .propai-chat-inline-team-logo { width: 24px; height: 24px; }
    .propai-chat-pick-card { font-size: 14px; }
  }

  /* PropAI Focus redesign: a conversation-first surface with one strong
     decision thread and a quieter board rail. This intentionally replaces the
     dense analyst-desk hierarchy instead of layering another dashboard on top. */
  .propai-evidence-workspace {
    --pe-workspace-bg: #07111b;
    --pe-workspace-panel: #0d1a28;
    --pe-workspace-panel-2: #102235;
    --pe-workspace-border: rgba(147, 183, 214, .18);
    --pe-workspace-muted: #8ea5b9;
    --pe-workspace-text: #f5f8fb;
    --pe-workspace-green: #56e39b;
    --pe-workspace-gold: #f4bf54;
    min-height: min(900px, calc(100dvh - 24px));
    background: var(--pe-workspace-bg);
    border: 1px solid rgba(147, 183, 214, .16);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  }
  .pe-workspace-header { min-height: 68px; padding: 0 24px; background: rgba(7, 17, 27, .94); }
  .pe-workspace-brand { gap: 10px; }
  .pe-workspace-brand strong { font-size: 21px; letter-spacing: -.04em; }
  .pe-workspace-brand > span:last-child { color: #a4b7c8; font-size: 9px; letter-spacing: .16em; }
  .pe-workspace-tagline { color: #71899e; font-size: 10px; }
  .pe-workspace-grid { grid-template-columns: minmax(0, 1fr) 370px; }
  .pe-workspace-rail { display: none; }
  .pe-workspace-chat { border-right: 1px solid rgba(147, 183, 214, .14); }
  .pe-column-topline { min-height: 76px; padding: 16px 28px; }
  .pe-column-topline strong { font-size: 14px; letter-spacing: -.01em; }
  .pe-column-topline span { font-size: 10px; }
  .pe-chat-context { padding: 16px 28px 8px; font-size: 13px; }
  .pe-native-chat-feed { max-width: 900px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 16px 28px 24px !important; }
  .pe-native-composer { max-width: 900px; width: calc(100% - 56px); margin: 12px auto 20px; }
  .pe-native-composer input { min-height: 50px; padding: 0 17px; border-radius: 14px; background: #0c1a29; border-color: rgba(147, 183, 214, .24); font-size: 14px; }
  .pe-native-composer .pad-ask-send { width: 50px; min-height: 50px; border-radius: 14px; }
  .pe-workspace-insight { padding: 18px; background: #091522; }
  .pe-insight-topline { padding: 0 0 15px; }
  .pe-insight-question { margin-top: 16px; padding: 14px; border-radius: 14px; background: #102235; font-size: 12px; }
  .pe-featured-card { padding: 16px; border-radius: 16px; background: #0d1a28; border-color: rgba(86, 227, 155, .24); }
  .pe-featured-card h2 { font-size: 20px; line-height: 1.14; }
  .pe-featured-card p { font-size: 11px; }
  .pe-featured-player { margin-top: 13px; }
  .pe-featured-player-art { width: 54px; height: 54px; border-radius: 15px; }
  .pe-featured-player-art img, .pe-featured-player-art .prop-headshot-wrap, .pe-featured-player-art .prop-headshot { width: 54px !important; height: 54px !important; }
  .pe-featured-player-copy strong { font-size: 16px; }
  .pe-featured-player-copy span { font-size: 11px; }
  .propai-chat-answer-card { gap: 18px; padding: 20px; border: 1px solid rgba(147, 183, 214, .20); border-radius: 22px; background: linear-gradient(145deg, rgba(13, 28, 43, .98), rgba(10, 21, 33, .98)); box-shadow: 0 18px 50px rgba(0, 0, 0, .20); }
  .propai-chat-editorial { padding-bottom: 16px; border-bottom: 1px solid rgba(147, 183, 214, .15); }
  .propai-chat-editorial-title { font-size: 24px; letter-spacing: -.04em; }
  .propai-chat-editorial-subtitle { max-width: 70ch; font-size: 14px; line-height: 1.65; }
  .propai-chat-subject { padding: 15px; border-radius: 18px; background: rgba(86, 227, 155, .055); border-color: rgba(86, 227, 155, .25); }
  .propai-chat-subject-art { flex-basis: 78px; width: 78px; height: 78px; border-radius: 20px; }
  .propai-chat-subject-art img, .propai-chat-subject-art .prop-headshot-wrap, .propai-chat-subject-art .prop-headshot, .propai-chat-subject-art .propai-chat-inline-headshot { width: 78px !important; height: 78px !important; }
  .propai-chat-subject-copy > strong { font-size: 24px; }
  .propai-chat-subject-team { font-size: 13px; }
  .propai-chat-subject-line { font-size: 12px; }
  .propai-chat-thesis, .propai-chat-stream-prose { font-size: 16px; line-height: 1.75; color: #d7e2eb; }
  .propai-chat-insight-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .propai-chat-insight-card { min-height: 92px; padding: 13px; background: rgba(255,255,255,.025); border-color: rgba(147, 183, 214, .16); border-radius: 14px; }
  .propai-chat-insight-value { font-size: 20px; }
  .propai-chat-source-grid { gap: 8px; }
  .propai-chat-source-card { min-height: 0; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.025); }
  .pe-mobile-nav { background: #081521; }

  @media (max-width: 899px) {
    .propai-evidence-workspace { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
    .pe-workspace-header { min-height: 58px; padding: 0 16px; }
    .pe-workspace-brand strong { font-size: 20px; }
    .pe-workspace-grid { display: flex; }
    .pe-column-topline { min-height: 58px; padding: 12px 16px; }
    .pe-chat-context { padding: 14px 16px 7px; }
    .pe-native-chat-feed { padding: 12px 14px 20px !important; }
    .pe-native-composer { width: calc(100% - 28px); margin: 8px 14px 18px; }
    .propai-chat-answer-card { padding: 16px; border-radius: 19px; gap: 15px; }
    .propai-chat-editorial-title { font-size: 21px; }
    .propai-chat-editorial-subtitle { font-size: 13px; }
    .propai-chat-thesis, .propai-chat-stream-prose { font-size: 15px; line-height: 1.7; }
    .propai-chat-insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.propai-mode .pe-workspace-insight { display: none; }
    .pe-mobile-nav { position: sticky; top: 0; z-index: 6; }
  }

  @media (prefers-reduced-motion: reduce) {
    .ai-message { animation: none !important; }
  }

  /* ZIP handoff alignment: use the app navigation as the single shell
     header so PropAI feels like a native PropEdge destination, not a mode. */
  .propai-evidence-workspace .pe-live-ticker,
  .propai-evidence-workspace .pe-mobile-nav,
  .propai-evidence-workspace > .pe-workspace-header { display: none; }
  .pe-app-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 56px;
    padding: 0 22px;
    flex: 0 0 auto;
    background: #050505;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .pe-app-brand,
  .pe-app-tabs button,
  .pe-app-controls button { font-family: 'Barlow Condensed', system-ui, sans-serif; }
  .pe-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: #a8f5bd;
    background: none;
    border: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
  }
  .pe-app-brand span { color: #39ff6a; font-size: 13px; }
  .pe-app-tabs { display: flex; align-items: stretch; gap: 20px; height: 56px; }
  .pe-app-tabs button {
    position: relative;
    padding: 0;
    color: #8a978c;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .pe-app-tabs button:hover,
  .pe-app-tabs button:focus-visible,
  .pe-app-tabs button.active { color: #39ff6a; }
  .pe-app-tabs button.active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: #39ff6a; }
  .pe-app-tabs button b { margin-left: 4px; padding: 1px 5px; color: #04120a; background: #39ff6a; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
  .pe-app-controls { display: flex; gap: 5px; margin-left: auto; max-width: 310px; overflow-x: auto; scrollbar-width: none; }
  .pe-app-controls::-webkit-scrollbar { display: none; }
  .pe-app-controls button { flex: 0 0 auto; padding: 5px 9px; color: #8a978c; background: transparent; border: 1px solid rgba(255,255,255,.10); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; cursor: pointer; }
  .pe-app-controls button.active { color: #39ff6a; background: rgba(57,255,106,.12); border-color: rgba(57,255,106,.45); }
  .pe-app-nav button:focus-visible { outline: 2px solid #39ff6a; outline-offset: 3px; }

  @media (max-width: 899px) {
    .pe-app-nav { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; min-height: 56px; padding: 0 14px; }
    .pe-app-brand { font-size: 18px; }
    .pe-app-tabs { grid-column: 1 / -1; order: 3; height: 38px; gap: 19px; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
    .pe-app-tabs::-webkit-scrollbar { display: none; }
    .pe-app-tabs button { flex: 0 0 auto; font-size: 13px; }
    .pe-app-controls { min-width: 0; margin-left: auto; max-width: none; }
    .pe-app-controls button { padding: 4px 8px; font-size: 9px; }
  }

  /* Cohesive handoff surface. These selectors style the rewritten index
     structure directly; there is no legacy PropAI overlay in the DOM. */
  .propai-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .propai-evidence-workspace { display: flex !important; flex-direction: column; width: 100%; min-height: 100dvh; overflow: hidden; background: #05070a; color: #e7ece7; border: 0; border-radius: 0; box-shadow: none; }
  .propai-evidence-workspace .pe-app-nav { position: relative; z-index: 4; }
  .propai-evidence-workspace .pe-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; flex: 1 1 auto; min-height: 0; }
  .propai-evidence-workspace .pe-workspace-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border-right: 1px solid rgba(255,255,255,.08); }
  .pe-chat-header { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .pe-chat-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: 'Barlow Condensed', system-ui, sans-serif; }
  .pe-chat-title strong { color: #f1f5f0; font-size: 18px; }
  .pe-live-dot, .pe-rail-status i { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #39ff6a; box-shadow: 0 0 10px rgba(57,255,106,.75); }
  .pe-slate-chip { padding: 4px 9px; color: #8a978c; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 10px; }
  .pe-pro-toggle { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #8a978c; font-size: 11px; cursor: pointer; }
  .pe-pro-toggle input { accent-color: #39ff6a; }
  .pe-starter-row { display: flex; gap: 7px; max-width: 900px; width: calc(100% - 56px); margin: 0 auto 2px; overflow-x: auto; scrollbar-width: none; }
  .pe-starter-row::-webkit-scrollbar { display: none; }
  .pe-starter-row button { flex: 0 0 auto; padding: 7px 10px; color: #a8b0a4; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.10); border-radius: 999px; font: inherit; font-size: 11px; cursor: pointer; }
  .pe-starter-row button:hover, .pe-starter-row button:focus-visible { color: #39ff6a; border-color: rgba(57,255,106,.35); outline: none; }
  .propai-evidence-workspace .pe-workspace-insight { display: block; min-width: 0; padding: 18px; overflow-y: auto; background: #080d13; }
  .pe-rail-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .pe-rail-kicker { display: block; margin-bottom: 3px; color: #6f7a6c; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .10em; text-transform: uppercase; }
  .pe-rail-header h2 { margin: 0; color: #f1f5f0; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 21px; }
  .pe-rail-status { display: inline-flex; align-items: center; gap: 5px; color: #8a978c; font-family: 'JetBrains Mono', monospace; font-size: 9px; }
  .pe-rail-status i { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }
  .pe-rail-divider { height: 1px; margin: 17px 0; background: rgba(255,255,255,.08); }
  .pe-rail-section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
  .pe-rail-section-title strong { color: #eef1ec; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 16px; }
  .pe-rail-section-title span { color: #6f7a6c; font-size: 10px; }
  .pe-rail-footer { margin-top: 18px; padding-top: 14px; color: #6f7a6c; border-top: 1px solid rgba(255,255,255,.07); font-size: 10px; line-height: 1.55; }
  .propai-evidence-workspace .propai-native-secondary { display: none !important; }
  .propai-evidence-workspace .propai-chat-scope-bar:empty { display: none; }
  .propai-evidence-workspace .propai-chat-scope-bar { margin: 10px 20px 0; }

  @media (max-width: 899px) {
    .propai-evidence-workspace { min-height: 100dvh; overflow: visible; }
    .propai-evidence-workspace .pe-workspace-grid { display: block; }
    .propai-evidence-workspace .pe-workspace-chat { overflow: visible; border-right: 0; }
    .pe-chat-header { min-height: 58px; padding: 0 16px; }
    .pe-chat-title strong { font-size: 17px; }
    .pe-slate-chip { font-size: 9px; }
    .pe-pro-toggle { font-size: 10px; }
    .pe-starter-row { width: calc(100% - 28px); margin-bottom: 4px; }
    .propai-evidence-workspace .pe-workspace-insight { display: none; }
    .propai-evidence-workspace .pe-native-chat-feed { overflow: visible; }
  }

  /* Keep desktop PropAI inside the app viewport. The conversation remains
     scrollable, but the document and shell never expose a second scrollbar. */
  @media (min-width: 900px) {
    html:has(body.propai-mode),
    body.propai-mode,
    body.propai-mode .site-rebuild-shell,
    body.propai-mode .site-shell-main,
    body.propai-mode .site-shell-content,
    body.propai-mode .app-layout,
    body.propai-mode .main-content,
    body.propai-mode #recommendationsContainer,
    body.propai-mode .propai-evidence-workspace {
      height: 100dvh !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }
    body.propai-mode .site-shell-main,
    body.propai-mode .site-shell-content,
    body.propai-mode .app-layout,
    body.propai-mode .main-content,
    body.propai-mode #recommendationsContainer,
    body.propai-mode .propai-evidence-workspace {
      display: flex !important;
      flex-direction: column !important;
      flex: 1 1 auto;
    }
    body.propai-mode .propai-evidence-workspace .pe-workspace-grid { flex: 1 1 auto; min-height: 0; overflow: hidden !important; }
    body.propai-mode .propai-evidence-workspace .pe-workspace-chat { min-height: 0; overflow: hidden !important; }
    body.propai-mode .propai-evidence-workspace .pe-native-chat-feed,
    body.propai-mode #aiChatMessages {
      min-height: 0 !important;
      overflow-y: auto !important;
      scrollbar-width: none !important;
      scrollbar-color: transparent transparent !important;
    }
    body.propai-mode .propai-evidence-workspace .pe-native-chat-feed::-webkit-scrollbar,
    body.propai-mode #aiChatMessages::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  }

  /* Final specificity guard: legacy chat-v2 selectors otherwise re-enable
     page overflow and move the global navigation below the mobile viewport. */
  @media (min-width: 900px) {
    body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell {
      grid-template-columns: 250px minmax(0, 1fr) !important;
      height: 100dvh !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .site-sidebar-shell {
      display: flex !important;
      visibility: visible !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .site-shell-main {
      margin-left: 0 !important;
      height: 100dvh !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .site-mobile-bottom-nav { display: none !important; }
  }

  @media (max-width: 899px) {
    body.propedge-chat-v2-mobile.propai-mode,
    body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell,
    body.propedge-chat-v2-mobile.propai-mode .site-shell-main,
    body.propedge-chat-v2-mobile.propai-mode .app-layout,
    body.propedge-chat-v2-mobile.propai-mode .main-content,
    body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer,
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace {
      height: 100dvh !important;
      min-height: 0 !important;
      max-height: 100dvh !important;
      overflow: hidden !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .site-mobile-bottom-nav {
      display: flex !important;
      visibility: visible !important;
      position: fixed !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 2140 !important;
      width: 100% !important;
      pointer-events: auto !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-chat-feed,
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages {
      min-height: 0 !important;
      max-height: none !important;
      overflow-y: auto !important;
      scrollbar-width: none !important;
      scrollbar-color: transparent transparent !important;
      padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-chat-feed::-webkit-scrollbar,
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

    /* Reserve two distinct bottom bands: the composer sits above the
       persistent navigation instead of being covered by it. */
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer {
      position: fixed !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 2130 !important;
      width: 100% !important;
      height: 0 !important;
      box-sizing: border-box !important;
      margin: 0 !important;
      padding: 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      isolation: isolate !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer::before {
      content: '';
      position: fixed;
      z-index: 0;
      left: 0;
      right: 0;
      bottom: var(--pe-mobile-bottom-nav-offset, var(--pe-mobile-bottom-nav-h, 68px));
      height: 148px;
      background: #050505;
      pointer-events: none;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer .pad-ask-row {
      position: fixed !important;
      left: 12px !important;
      right: 12px !important;
      bottom: calc(var(--pe-mobile-bottom-nav-offset, var(--pe-mobile-bottom-nav-h, 68px)) + 10px) !important;
      z-index: 1;
      width: auto !important;
      margin: 0 !important;
      padding: 0 0 0 !important;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      pointer-events: auto !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer .pad-ask-input-wrap {
      min-height: 52px !important;
      border: 1px solid rgba(255, 255, 255, .14) !important;
      border-radius: 14px !important;
      background: #0d0f0d !important;
      padding: 0 14px !important;
      box-shadow: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer .pad-ask-input-wrap input {
      min-height: 50px !important;
      border: 0 !important;
      background: transparent !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-composer .pad-ask-send {
      flex: 0 0 52px !important;
      width: 52px !important;
      min-height: 52px !important;
      border-radius: 14px !important;
    }
    body.propedge-chat-v2-mobile.propai-mode .propai-evidence-workspace .pe-native-chat-feed {
      padding-bottom: calc(var(--pe-mobile-bottom-nav-h, 68px) + 132px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* The welcome hint is informational, not chat content. Keep it out of
       the fixed composer band so it can never appear behind the input. */
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages .propai-chat-welcome-hint {
      display: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages .propai-chat-answer-card,
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages .ai-message {
      max-height: none !important;
      overflow: visible !important;
      scrollbar-width: none !important;
    }
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages .propai-chat-answer-card::-webkit-scrollbar,
    body.propedge-chat-v2-mobile.propai-mode #aiChatMessages .ai-message::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
  }

  /* PropAI owns the viewport on phones; do not expose a second page scrollbar
     beside the persistent app navigation. The feed remains the scroll root. */
  @media (max-width: 899px) {
    html:has(body.propedge-chat-v2-mobile.propai-mode),
    body.propedge-chat-v2-mobile.propai-mode,
    body.propedge-chat-v2-mobile.propai-mode .site-rebuild-shell,
    body.propedge-chat-v2-mobile.propai-mode .site-shell-main,
    body.propedge-chat-v2-mobile.propai-mode #recommendationsContainer {
      overflow: hidden !important;
    }
  }

