/* ParlayDesk — public player page Quick Research (v2.2.1; RC3 redesign).
   Markup: backend/lib/publicPages/quickResearch.js + /pp-quick-research.js.
   The chart is Research's own (/research-chart.css, `.research-chart`); the
   selection rail mirrors Research's (dark dropdowns, OVER / UNDER toggle). */
.pp-qr { display: flex; flex-direction: column; gap: 14px; container-type: inline-size; }
.pp-qr .pp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 0; }
.pp-qr .pp-h2 { display: inline-flex; align-items: center; gap: 8px; }
.pp-qr-ic { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(96,165,250,.14); color: #93c5fd; }
.pp-qr .pp-card-sub { margin: 0; }
.pp-qr-tier { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--pp-line, rgba(255,255,255,.1)); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.pp-qr-tier--pro { border-color: rgba(245,190,70,.45); color: #f5c451; background: rgba(245,190,70,.06); }
.pp-qr-out, .pp-qr-in, .pp-qr-tool, .pp-qr-res { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ── Selection rail: Market · Side · Line ───────────────────────────── */
.pp-qr-controls { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(150px, 1fr) minmax(90px, .7fr); gap: 10px; align-items: end; }
.pp-qr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pp-qr-k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.pp-qr-select {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 42px; padding: 0 34px 0 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 10px;
  background-color: rgba(255,255,255,.04);
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%), linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-size: 6px 6px; background-repeat: no-repeat;
  color: var(--text, #e5e7eb); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.pp-qr-select option { background: #0b1020; color: #e5e7eb; }
.pp-qr-select:hover { border-color: rgba(255,255,255,.2); }
.pp-qr-select:focus { outline: none; border-color: rgba(96,165,250,.7); box-shadow: 0 0 0 3px rgba(59,130,246,.22); }
.pp-qr-ou { display: flex; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.03); }
.pp-qr-oubtn { flex: 1 1 0; min-width: 0; border: 0; background: transparent; color: var(--muted, #94a3b8); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; touch-action: manipulation; transition: background .15s, color .15s; }
.pp-qr-oubtn + .pp-qr-oubtn { border-left: 1px solid rgba(255,255,255,.12); }
.pp-qr-oubtn.is-over.is-on { background: #2e7dff; color: #fff; }
.pp-qr-oubtn.is-under.is-on { background: #ff5e5e; color: #fff; }
.pp-qr-oubtn:not(.is-on):hover { background: rgba(255,255,255,.05); color: #cbd5e1; }
.pp-qr-oubtn:focus-visible { outline: 2px solid #60a5fa; outline-offset: -3px; }

/* ── Result: selection + recorded-games headline ────────────────────── */
.pp-qr-head2 { padding-top: 12px; border-top: 1px solid var(--pp-line, rgba(255,255,255,.07)); }
.pp-qr-sel { margin: 0; font-size: 15px; font-weight: 700; }
.pp-qr-stats { display: flex; align-items: stretch; gap: 12px; min-width: 0; }
.pp-qr-stats.is-loading { align-items: center; opacity: .7; }
.pp-qr-hero { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; font-variant-numeric: tabular-nums; }
.pp-qr-hero b { font-size: 26px; line-height: 1.05; }
.pp-qr-hero small { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pp-qr-nums { flex: 1 1 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; min-width: 0; }
.pp-qr-nums > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 8px 10px; border: 1px solid var(--pp-line, rgba(255,255,255,.08)); border-radius: 10px; background: rgba(255,255,255,.02); }
.pp-qr-nums dt { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #94a3b8); }
.pp-qr-nums dd { margin: 0; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pp-qr-sub { margin: 0; font-size: 12.5px; color: var(--muted, #94a3b8); line-height: 1.4; }
.pp-qr .is-hi { background: rgba(34,197,94,.24); border-color: rgba(34,197,94,.42); color: #dcfce7; }
.pp-qr .is-mid { background: rgba(132,204,22,.14); border-color: rgba(132,204,22,.3); color: #ecfccb; }
.pp-qr .is-lo { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.32); color: #fecaca; }
.pp-qr .is-none { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: var(--muted, #94a3b8); }
.pp-qr .is-hi-t { color: #4ade80; } .pp-qr .is-mid-t { color: #bef264; } .pp-qr .is-lo-t { color: #f87171; } .pp-qr .is-none-t { color: var(--muted, #94a3b8); }

/* ── PRO chart (Research's chart, compact) ──────────────────────────── */
.pp-qr-chartbox { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--pp-line, rgba(255,255,255,.08)); border-radius: 12px; background: rgba(255,255,255,.015); }
.pp-qr-wins { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; align-self: flex-start; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.02); }
.pp-qr-win { min-width: 48px; min-height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted, #94a3b8); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.pp-qr-win.is-on { background: rgba(96,165,250,.2); color: #fff; }
.pp-qr-win:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }
.pp-qr-winsum { margin: 0; font-size: 13px; color: var(--muted, #94a3b8); font-variant-numeric: tabular-nums; }
.pp-qr-winsum b { margin-right: 4px; font-size: 15px; }
.pp-qr-chart { min-height: 120px; }
.pp-qr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted, #94a3b8); font-size: 11px; font-weight: 600; letter-spacing: .03em; }

/* ── Locked previews (illustrative chart, never real data) ──────────── */
.pp-qr-locked { position: relative; min-width: 0; padding: 10px 10px 8px; border: 1px dashed rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.015); }
.pp-qr-ex { opacity: .5; filter: saturate(.75); pointer-events: none; }
.pp-qr-ex svg { max-height: 150px; }
.pp-qr-exk { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 11.5px; color: var(--muted, #94a3b8); }
.pp-qr-lock { display: inline-flex; color: #f5c451; }
.pp-qr-pitch { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-qr-pitch-t { margin: 0; font-size: 16px; line-height: 1.3; }
.pp-qr-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; color: var(--text, #e5e7eb); }
.pp-qr-list li { display: flex; gap: 8px; align-items: flex-start; }
.pp-qr-list svg { flex: none; margin-top: 2px; color: #4ade80; }
.pp-qr-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pp-qr-pro { display: grid; gap: 10px; min-width: 0; }
.pp-qr-pro-copy { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.pp-qr-pro-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.pp-qr-up { align-self: flex-start; color: #f5c451; font-weight: 700; text-decoration: none; font-size: 13.5px; }
.pp-qr-up:hover { text-decoration: underline; }
@container (min-width: 560px) {
  .pp-qr-out { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: center; }
  .pp-qr-pro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; }
}

/* ── Foot: the one link + the one disclaimer ────────────────────────── */
.pp-qr-note { margin: 0; font-size: 13px; color: var(--muted, #94a3b8); }
.pp-qr-foot { margin: 0; padding-top: 10px; border-top: 1px solid var(--pp-line, rgba(255,255,255,.07)); font-size: 13.5px; }
.pp-qr-open { font-weight: 700; color: #93c5fd; text-decoration: none; }
.pp-qr-open:hover { text-decoration: underline; }
.pp-qr-fine { margin: -4px 0 0; font-size: 11.5px; color: var(--muted, #94a3b8); opacity: .85; }
/* The signed-in tool shows only once the page knows the visitor (no flash). */
html:not(.pd-auth-in) .pp-qr [data-when="in"] { display: none; }
html.pd-auth-in .pp-qr [data-when="out"] { display: none; }

@media (max-width: 560px) {
  .pp-qr-controls { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pp-qr-field--market { grid-column: 1 / -1; }
  .pp-qr-select { font-size: 16px; } /* iOS never zooms into the field */
  .pp-qr-stats { flex-direction: column; }
  .pp-qr-hero { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; min-width: 0; }
  .pp-qr-nums { gap: 6px; }
  .pp-qr-nums > div { padding: 7px 8px; }
  .pp-qr-nums dt { font-size: 9.5px; letter-spacing: .04em; }
  .pp-qr-nums dd { font-size: 16px; }
  .pp-qr-chartbox { padding: 10px; }
  .pp-qr-cta .pp-btn { flex: 1 1 auto; justify-content: center; }
}

/* ── Sidebar (v2.2.1 RC3) ───────────────────────────────────────────── */
/* News: the player's own stories and his current team's, each labelled. */
.pp-news .pp-card-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted, #94a3b8); }
.pp-news-scope { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.pp-news-scope.is-player { background: rgba(96,165,250,.16); color: #bfdbfe; }
.pp-news-scope.is-team { border: 1px solid rgba(255,255,255,.14); color: var(--muted, #94a3b8); }

/* The account-aware PRO card (.pp-promo) moved to public-pages.css in v2.2.3
   RC3: player, team and game pages share it. */
