/* ===========================================
   LEADS LIST PAGE
   Leads-specific layout and card rules only.
   Reusable components belong in components.css.
=========================================== */

.po-leads-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.po-leads-page-compact {
    gap: 14px;
}

.po-leads-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===========================================
   LEAD CARD BASE
=========================================== */

.po-lead-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30, 41, 59, .82), rgba(15, 23, 42, .74)), rgba(15, 23, 42, .65);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.po-lead-card-v2 {
    padding: 12px;
}

.po-lead-card-grid {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
}

.po-lead-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===========================================
   LEAD PLAYER / GAME RAIL
=========================================== */

.po-lead-player-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.po-lead-game-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--po-text-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.po-lead-game-mini strong {
    color: var(--po-text);
    font-size: 14px;
    font-weight: 900;
}

.po-lead-game-mini em {
    color: var(--po-primary);
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}

/* ===========================================
   LEAD CARD HEADER
=========================================== */

.po-lead-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.po-lead-card-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.po-lead-card-player-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.po-lead-card-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.po-lead-card-name-line strong {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.po-lead-card-name-line span {
    color: var(--po-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.po-lead-card-market {
    color: var(--po-text-muted);
    font-size: 13px;
}

.po-lead-card-selection {
    display: flex;
    align-items: center;
    gap: 7px;
}

.po-lead-card-selection span {
    color: var(--po-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-lead-card-selection strong {
    font-size: 18px;
    font-weight: 900;
}

/* ===========================================
   LEAD SCORE
=========================================== */

.po-lead-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.po-lead-score span,
.po-lead-stat-grid span,
.po-lead-confidence span {
    color: #7d8da5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-lead-score strong {
    color: var(--po-success);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

/* ===========================================
   LEAD BADGES / TIERS
=========================================== */

.po-lead-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.po-lead-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(15, 23, 42, .6);
    color: var(--po-text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.po-lead-badge-blue {
    color: #bfdbfe;
    background: rgba(37, 99, 235, .22);
    border-color: rgba(59, 130, 246, .45);
}

.po-lead-badge-green {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .16);
    border-color: rgba(34, 197, 94, .38);
}

.po-lead-tier {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.po-lead-tier-elite {
    color: #dcfce7;
    background: rgba(34, 197, 94, .18);
    border: 1px solid rgba(34, 197, 94, .35);
}

.po-lead-tier-strong {
    color: #dbeafe;
    background: rgba(37, 99, 235, .18);
    border: 1px solid rgba(96, 165, 250, .35);
}

.po-lead-tier-lean,
.po-lead-tier-watch {
    color: #fef3c7;
    background: rgba(245, 158, 11, .16);
    border: 1px solid rgba(245, 158, 11, .32);
}

/* ===========================================
   LEAD ODDS / METRIC STRIP
=========================================== */

.po-lead-card-main {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 14px;
    align-items: stretch;
}

.po-lead-card-main-v2 {
    grid-template-columns: 150px 1fr;
    gap: 0;
    border: 1px solid rgba(96, 165, 250, .14);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(2, 8, 23, .2);
}

.po-lead-book-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, .14);
    background: rgba(2, 8, 23, .25);
}

.po-lead-card-main-v2 .po-lead-book-price {
    border: 0;
    border-radius: 0;
    background: transparent;
    border-right: 1px solid rgba(96, 165, 250, .12);
}

.po-lead-book {
    color: var(--po-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.po-lead-book-price strong {
    font-size: 24px;
    font-weight: 900;
}

.po-lead-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.po-lead-card-main-v2 .po-lead-stat-grid {
    gap: 0;
}

.po-lead-stat-grid > div {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, .14);
    background: rgba(2, 8, 23, .25);
}

.po-lead-card-main-v2 .po-lead-stat-grid > div {
    padding: 12px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.po-lead-stat-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    font-weight: 900;
}

/* ===========================================
   LEAD CARD BOTTOM
=========================================== */

.po-lead-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.po-lead-card-bottom-v2 {
    justify-content: flex-end;
    padding-right: 4px;
}

.po-lead-confidence {
    display: flex;
    align-items: center;
    gap: 7px;
}

.po-lead-confidence strong {
    font-size: 14px;
    font-weight: 900;
}

.po-lead-notes {
    color: var(--po-text-muted);
    font-size: 12px;
    line-height: 1.35;
    padding-top: 2px;
}

/* ===========================================
   RESPONSIVE LEAD CARD
=========================================== */

@media (max-width: 900px) {
    .po-lead-card-main {
        grid-template-columns: 1fr;
    }

    .po-lead-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .po-leads-page-compact {
        gap: 12px;
    }

    .po-lead-card {
        padding: 14px;
        border-radius: 16px;
    }

    .po-lead-card-v2 {
        padding: 12px;
    }

    .po-lead-card-grid {
        grid-template-columns: 92px 1fr;
        gap: 12px;
    }

    .po-lead-card-top {
        align-items: flex-start;
    }

    .po-lead-card-name-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .po-lead-card-name-line strong {
        font-size: 17px;
    }

    .po-lead-score strong {
        font-size: 28px;
    }

    .po-lead-badges {
        gap: 6px;
    }

    .po-lead-badge,
    .po-lead-tier {
        min-height: 25px;
        padding: 0 8px;
        font-size: 10px;
    }

    .po-lead-card-main-v2 {
        grid-template-columns: 1fr;
    }

    .po-lead-card-main-v2 .po-lead-book-price {
        border-right: 0;
        border-bottom: 1px solid rgba(96, 165, 250, .12);
    }

    .po-lead-card-main-v2 .po-lead-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .po-lead-card-main-v2 .po-lead-stat-grid > div {
        padding: 10px 7px;
    }

    .po-lead-card-main-v2 .po-lead-stat-grid strong {
        font-size: 15px;
    }

    .po-lead-book-price strong {
        font-size: 26px;
    }
}

@media (max-width: 430px) {
    .po-lead-card-grid {
        grid-template-columns: 86px 1fr;
    }

    .po-lead-card-main-v2 .po-lead-stat-grid strong {
        font-size: 14px;
    }

    .po-lead-score span,
    .po-lead-stat-grid span,
    .po-lead-confidence span {
        font-size: 9px;
    }
}

/* ===========================================
   LEAD EXPANDED RESEARCH PANEL
=========================================== */

.po-lead-card-expanded {
    gap: 16px;
}

.po-lead-badge-orange {
    color: #fed7aa;
    background: rgba(249, 115, 22, .15);
    border-color: rgba(249, 115, 22, .38);
}

.po-lead-expanded {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(96, 165, 250, .14);
}

.po-expanded-grid {
    display: grid;
    gap: 10px;
}

.po-expanded-grid-top {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1.35fr);
}

.po-expanded-panel {
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, .16);
    background: rgba(2, 8, 23, .22);
}

.po-expanded-section-title {
    color: #a8b5ca;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ===========================================
   EXPANDED CONTENT HELPERS
=========================================== */

.po-mini-stat-row {
    display: grid;
    gap: 10px;
}

.po-mini-stat-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.po-mini-stat-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.po-mini-stat-row span,
.po-line-movement-panel span,
.po-expanded-definition-list dt,
.po-expanded-muted {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.po-mini-stat-row strong,
.po-line-movement-panel strong,
.po-expanded-definition-list dd {
    display: block;
    margin-top: 4px;
    color: var(--po-text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.po-mini-stat-row-3 strong {
    font-size: 20px;
}

.po-expanded-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(96, 165, 250, .12);
}

.po-expanded-callout {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 900;
}

.po-expanded-callout-success {
    color: var(--po-success);
}

.po-matchup-title {
    color: var(--po-text);
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
}

.po-expanded-definition-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.po-expanded-definition-list div {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(96, 165, 250, .10);
}

.po-expanded-definition-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.po-expanded-definition-list dd {
    margin-left: 0;
    font-size: 14px;
}

.po-odds-comparison-text {
    color: var(--po-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.po-odds-comparison-panel .po-expanded-muted {
    margin-top: 8px;
    color: #a8b5ca;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.po-line-movement-panel {
    display: grid;
    grid-template-columns: 1.3fr 1fr .75fr .75fr;
    gap: 12px;
    align-items: center;
}

.po-model-insight-panel {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.po-model-insight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--po-primary);
    background: rgba(37, 99, 235, .14);
    border: 1px solid rgba(59, 130, 246, .28);
    font-size: 22px;
    font-weight: 900;
    flex-shrink: 0;
}

.po-model-insight-panel p {
    margin: 0;
    color: var(--po-text);
    font-size: 14px;
    line-height: 1.45;
}

.po-expand-research-button,
.po-collapse-research-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    color: var(--po-primary);
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.po-collapse-research-button {
    align-self: center;
}

/* ===========================================
   LEAD RESEARCH COLLAPSE STATE
=========================================== */

.po-lead-expanded-fullwidth {
    display: none;
}

.po-lead-card-expanded .po-lead-expanded-fullwidth {
    display: flex;
}

.po-collapse-research-button {
    display: none;
}

.po-lead-card-expanded .po-collapse-research-button {
    display: inline-flex;
}

.po-lead-card-expanded .po-expand-research-button {
    display: none;
}


/* ===========================================
   RESPONSIVE EXPANDED RESEARCH
=========================================== */

@media (max-width: 1100px) {
    .po-expanded-grid-top {
        grid-template-columns: 1fr 1fr;
    }

    .po-matchup-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .po-lead-expanded {
        gap: 8px;
        padding-top: 8px;
    }

    .po-expanded-grid-top {
        grid-template-columns: 1fr;
    }

    .po-expanded-panel {
        padding: 12px;
        border-radius: 12px;
    }

    .po-line-movement-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .po-deployment-link {
        width: 100%;
    }

    .po-model-insight-panel p,
    .po-odds-comparison-text,
    .po-deployment-block p {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .po-mini-stat-row-3,
    .po-mini-stat-row-2,
    .po-line-movement-panel {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   FULL-WIDTH EXPANDED RESEARCH OVERRIDE
   Expanded research lives below the collapsed
   card grid so it can use the full card width.
=========================================== */

.po-lead-expanded-fullwidth {
    width: 100%;
    margin-top: 2px;
}

.po-expand-research-button-fullwidth {
    align-self: center;
    width: auto;
    margin-top: -2px;
}

.po-lead-card-expanded .po-lead-card-grid {
    padding-bottom: 2px;
}

@media (max-width: 700px) {
    .po-lead-expanded-fullwidth {
        margin-top: 0;
        padding-top: 12px;
    }

    .po-lead-card-expanded .po-lead-card-grid {
        padding-bottom: 0;
    }
}

/* ===========================================
   MOBILE DENSITY POLISH PASS
   Tightens lead cards and expanded research
   without changing the overall structure.
=========================================== */

.po-lead-game-mini-density {
    width: 100%;
    gap: 2px;
}

.po-lead-game-mini-density strong,
.po-lead-game-mini-density span {
    font-size: 13px;
    line-height: 1.1;
}

.po-lead-game-link {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, .35);
    background: rgba(37, 99, 235, .10);
    color: var(--po-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.po-odds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.po-odds-book {
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, .12);
    background: rgba(2, 8, 23, .20);
}

.po-odds-book span,
.po-odds-book em {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.po-odds-book strong {
    display: block;
    margin-top: 5px;
    color: var(--po-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.po-odds-book em {
    margin-top: 6px;
    color: var(--po-success);
    font-size: 9px;
    font-style: normal;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.po-odds-book-best {
    border-color: rgba(34, 197, 94, .28);
    background: rgba(34, 197, 94, .06);
}

@media (max-width: 700px) {
    .po-lead-card {
        padding: 12px;
    }

    .po-lead-card-grid {
        grid-template-columns: 84px 1fr;
        gap: 11px;
    }

    .po-lead-player-rail {
        gap: 7px;
    }

    .po-lead-card-content {
        gap: 8px;
    }

    .po-lead-card-top {
        gap: 10px;
    }

    .po-lead-card-player-info {
        gap: 3px;
    }

    .po-lead-card-market {
        font-size: 12px;
        line-height: 1.15;
    }

    .po-lead-card-selection {
        gap: 6px;
        line-height: 1;
    }

    .po-lead-card-selection strong {
        font-size: 17px;
    }

    .po-lead-badges {
        gap: 5px;
    }

    .po-lead-badge,
    .po-lead-tier {
        min-height: 23px;
        padding: 0 7px;
        font-size: 9px;
        border-radius: 8px;
    }

    .po-lead-card-main-v2 {
        border-radius: 12px;
    }

    .po-lead-card-main-v2 .po-lead-book-price {
        padding: 9px 10px;
    }

    .po-lead-book {
        font-size: 12px;
    }

    .po-lead-book-price strong {
        font-size: 24px;
    }

    .po-lead-card-main-v2 .po-lead-stat-grid > div {
        padding: 8px 6px;
    }

    .po-lead-card-main-v2 .po-lead-stat-grid strong {
        margin-top: 3px;
        font-size: 14px;
    }

    .po-lead-card-bottom-v2 {
        margin-top: -2px;
    }

    .po-lead-expanded {
        padding-top: 9px;
        gap: 9px;
    }

    .po-expanded-grid-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-deployment-summary {
        grid-column: 1 / -1;
    }

    .po-expanded-panel {
        padding: 11px;
        border-radius: 12px;
    }

    .po-expanded-section-title {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: .08em;
    }

    .po-mini-stat-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .po-mini-stat-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .po-mini-stat-row span,
    .po-expanded-definition-list dt,
    .po-expanded-muted,
    .po-line-movement-panel span {
        font-size: 10px;
    }

    .po-mini-stat-row strong,
    .po-expanded-definition-list dd,
    .po-line-movement-panel strong {
        font-size: 13px;
    }

    .po-mini-stat-row-3 strong {
        font-size: 18px;
    }

    .po-expanded-divider {
        margin: 9px 0;
    }

    .po-expanded-callout {
        margin-top: 8px;
        font-size: 13px;
    }

    .po-expanded-definition-list {
        gap: 6px;
    }

    .po-expanded-definition-list div {
        padding-bottom: 6px;
    }

    .po-matchup-title {
        margin-bottom: 7px;
        font-size: 13px;
    }

    .po-odds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .po-line-movement-panel {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        align-items: start;
    }

    .po-line-movement-panel .po-expanded-section-title {
        margin-bottom: 5px;
    }

    .po-model-insight-panel {
        gap: 10px;
    }

    .po-model-insight-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 18px;
    }

    .po-model-insight-panel p {
        font-size: 13px;
        line-height: 1.35;
    }
}

@media (max-width: 430px) {
    .po-lead-card-grid {
        grid-template-columns: 78px 1fr;
        gap: 10px;
    }

    .po-expanded-grid-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-deployment-summary {
        grid-column: 1 / -1;
    }

    .po-mini-stat-row-3,
    .po-mini-stat-row-2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .po-mini-stat-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-line-movement-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 370px) {
    .po-expanded-grid-top,
    .po-mini-stat-row-3,
    .po-mini-stat-row-2,
    .po-line-movement-panel {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   MOBILE FULL-WIDTH RESEARCH MODULE PASS
   On phone widths, research modules stack full width.
   This keeps Matchup, Recent Form, Deployment, Odds,
   Movement, and Insight readable instead of squeezed.
=========================================== */

@media (max-width: 700px) {
    .po-expanded-grid,
    .po-expanded-grid-top {
        grid-template-columns: 1fr !important;
    }

    .po-deployment-summary,
    .po-recent-form-panel,
    .po-matchup-panel,
    .po-odds-comparison-panel,
    .po-line-movement-panel,
    .po-model-insight-panel {
        grid-column: auto !important;
        width: 100%;
    }

    .po-expanded-panel {
        max-width: 100%;
    }

    .po-matchup-panel .po-expanded-definition-list {
        width: 100%;
    }

    .po-line-movement-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 430px) {
    .po-expanded-grid,
    .po-expanded-grid-top {
        grid-template-columns: 1fr !important;
    }

    .po-deployment-summary,
    .po-recent-form-panel,
    .po-matchup-panel,
    .po-odds-comparison-panel,
    .po-line-movement-panel,
    .po-model-insight-panel {
        grid-column: auto !important;
        width: 100%;
    }

    .po-line-movement-panel {
        grid-template-columns: 1fr;
    }
}


/* ===========================================
   LEAD RESEARCH COLLAPSE STATE
   JS only toggles .po-lead-card-expanded; CSS owns visibility.
=========================================== */

.po-lead-expanded-fullwidth {
    display: none;
}

.po-lead-card-expanded .po-lead-expanded-fullwidth {
    display: block;
}

.po-collapse-research-button {
    display: none;
}

.po-lead-card-expanded .po-collapse-research-button {
    display: inline-flex;
}

.po-lead-card-expanded .po-expand-research-button {
    display: none;
}

/* ===========================================
   LEADS FILTER PANEL
=========================================== */

.po-leads-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(30, 41, 59, .72), rgba(15, 23, 42, .68)), rgba(15, 23, 42, .62);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.po-leads-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.po-leads-filter-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.po-leads-filter-search {
    grid-column: span 2;
}

.po-leads-filter-field span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-leads-filter-field select,
.po-leads-filter-field input {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 11px;
    background: rgba(2, 8, 23, .38);
    color: var(--po-text);
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.po-leads-filter-field input::placeholder {
    color: #64748b;
}

.po-leads-filter-field select:focus,
.po-leads-filter-field input:focus {
    border-color: rgba(96, 165, 250, .48);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.po-leads-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.po-leads-filter-button,
.po-leads-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(59, 130, 246, .42);
    border-radius: 999px;
    background: rgba(37, 99, 235, .18);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.po-leads-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.po-leads-list-summary {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    margin-top: -4px;
}

.po-leads-list-summary span {
    color: #64748b;
}

.po-leads-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4px 0 8px;
}

.po-leads-pagination span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
}

.po-leads-page-button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .po-leads-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .po-leads-filter-panel {
        padding: 12px;
        border-radius: 16px;
    }

    .po-leads-filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .po-leads-filter-search {
        grid-column: auto;
    }

    .po-leads-filter-field select,
    .po-leads-filter-field input {
        min-height: 38px;
    }

    .po-leads-filter-actions {
        justify-content: stretch;
    }

    .po-leads-filter-button,
    .po-leads-filter-reset {
        flex: 1;
    }
}

/* ===========================================
   PODS PAGE COMMAND CENTER + FILTER PATTERN
   Reusable page/search system used first by Leads.
=========================================== */

.po-page-command-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, .18);
    background: linear-gradient(145deg, rgba(30, 41, 59, .70), rgba(15, 23, 42, .64));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

.po-command-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.po-command-eyebrow,
.po-filter-panel-header span,
.po-active-filters-bar > span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-command-main h2 {
    margin: 3px 0 4px;
    color: var(--po-text);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
}

.po-command-main p {
    margin: 0;
    color: var(--po-text-muted);
    font-size: 13px;
    line-height: 1.35;
}

.po-command-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.po-command-metric {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, .14);
    background: rgba(2, 8, 23, .22);
}

.po-command-metric span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-command-metric strong {
    display: block;
    margin-top: 5px;
    color: var(--po-text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.po-command-metric-elite strong { color: var(--po-success); }
.po-command-metric-strong strong { color: var(--po-primary); }
.po-command-metric-lean strong,
.po-command-metric-watch strong { color: #fbbf24; }

.po-filter-toggle-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, .42);
    background: rgba(37, 99, 235, .16);
    color: var(--po-primary);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.po-filter-toggle-button strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    color: #020617;
    background: var(--po-primary);
    font-size: 11px;
    font-weight: 900;
}

.po-filter-panel {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(96, 165, 250, .16);
    background: rgba(15, 23, 42, .72);
}

.po-filter-panel-header {
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.po-filter-panel-header strong {
    display: block;
    margin-top: 3px;
    color: var(--po-text);
    font-size: 18px;
    font-weight: 900;
}

.po-filter-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 8, 23, .35);
    color: var(--po-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.po-filter-panel-body {
    min-width: 0;
}

.po-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.po-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.po-filter-field-wide {
    grid-column: span 2;
}

.po-filter-field span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.po-filter-field input,
.po-filter-field select {
    width: 100%;
    min-height: 40px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 8, 23, .42);
    color: var(--po-text);
    padding: 0 11px;
    font-size: 13px;
    font-weight: 800;
    outline: 0;
}

.po-filter-field input:focus,
.po-filter-field select:focus {
    border-color: rgba(59, 130, 246, .58);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.po-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.po-filter-apply-button,
.po-filter-reset-button,
.po-empty-state-card a,
.po-active-filters-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.po-filter-apply-button {
    border: 1px solid rgba(59, 130, 246, .42);
    background: rgba(37, 99, 235, .22);
    color: var(--po-primary);
}

.po-filter-reset-button,
.po-active-filters-bar a {
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(2, 8, 23, .25);
    color: var(--po-text-muted);
}

.po-active-filters-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, .12);
    background: rgba(2, 8, 23, .20);
}

.po-active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

.po-active-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .16);
    color: #94a3b8;
    background: rgba(15, 23, 42, .45);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.po-active-filter-chip-on {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, .36);
    background: rgba(37, 99, 235, .14);
}

.po-empty-state-card {
    padding: 24px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, .30);
    background: rgba(2, 8, 23, .22);
    text-align: center;
}

.po-empty-state-card strong {
    display: block;
    color: var(--po-text);
    font-size: 18px;
    font-weight: 900;
}

.po-empty-state-card p {
    margin: 8px auto 14px;
    max-width: 520px;
    color: var(--po-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.po-empty-state-card a {
    color: var(--po-primary);
    border: 1px solid rgba(59, 130, 246, .36);
    background: rgba(37, 99, 235, .12);
}

@media (max-width: 900px) {
    .po-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .po-page-command-center {
        padding: 13px;
        border-radius: 16px;
        gap: 12px;
    }

    .po-command-main {
        align-items: center;
    }

    .po-command-main h2 {
        font-size: 22px;
    }

    .po-command-main p {
        font-size: 12px;
    }

    .po-command-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .po-command-metric {
        padding: 9px 7px;
        border-radius: 12px;
    }

    .po-command-metric strong {
        font-size: 20px;
    }

    .po-filter-toggle-button {
        display: inline-flex;
    }

    .po-filter-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        top: max(10px, env(safe-area-inset-top));
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 999;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
        padding: 0;
        border-radius: 18px;
        transform: translateY(calc(100% + 18px));
        opacity: 0;
        pointer-events: none;
        transition: transform .22s ease, opacity .22s ease;
        box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    }

    .po-filter-panel-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .po-filter-panel-header {
        display: flex;
        flex-shrink: 0;
        margin: 0;
        padding: 14px 14px 10px;
    }

    .po-filter-panel-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 0 14px 12px;
        -webkit-overflow-scrolling: touch;
    }

    .po-filter-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .po-filter-field-wide {
        grid-column: auto;
    }

    .po-filter-actions {
        flex-shrink: 0;
        position: relative;
        bottom: auto;
        margin: 0;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(15, 23, 42, .98);
        border-top: 1px solid rgba(96, 165, 250, .14);
        box-shadow: 0 -12px 28px rgba(2, 6, 23, .32);
    }

    .po-filter-apply-button,
    .po-filter-reset-button {
        flex: 1;
    }

    .po-filter-drawer-active::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(2, 6, 23, .58);
        backdrop-filter: blur(2px);
    }

    .po-active-filters-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .po-active-filter-chips {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
}

@media (max-width: 430px) {
    .po-command-main {
        gap: 10px;
    }

    .po-filter-toggle-button {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .po-command-metric span {
        font-size: 9px;
    }

    .po-command-metric strong {
        font-size: 18px;
    }
}

/* ===========================================
   MOBILE FILTER DRAWER FINAL STACKING FIX
   Keeps the search panel above the fixed mobile nav
   and keeps Apply/Clear reachable on real iPhones.
=========================================== */

@media (max-width: 700px) {
    body.po-filter-drawer-active {
        overflow: hidden;
    }

    body.po-filter-drawer-active::before,
    .po-filter-drawer-active::before {
        z-index: 10040;
    }

    .po-filter-panel {
        z-index: 10050;
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .po-filter-panel-open {
        z-index: 10050;
    }

    .po-filter-panel-body {
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 14px;
    }

    .po-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ===========================================
   DESKTOP FILTER COLLAPSE FIX
   The shared filter panel is closed by default on desktop
   and opened only when JS adds .po-filter-panel-open.
=========================================== */

.po-filter-toggle-button-always {
    display: inline-flex;
}

@media (min-width: 701px) {
    .po-filter-panel {
        display: none;
    }

    .po-filter-panel.po-filter-panel-open {
        display: block;
    }
}

/* ===========================================
   SMART COLLAPSED CARD CONTEXT PASS
   Real snapshot data made scannable before expansion.
=========================================== */

.po-lead-matchup-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.po-lead-mini-team {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.po-lead-mini-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.po-lead-mini-team strong {
    font-size: 12px;
    line-height: 1;
}

.po-lead-matchup-symbol {
    color: var(--po-text-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.po-lead-scan-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.po-lead-scan-item {
    min-width: 0;
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, .11);
    background: rgba(2, 8, 23, .18);
}

.po-lead-scan-item span {
    display: block;
    color: #7d8da5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.po-lead-scan-item strong {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--po-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .po-lead-matchup-logos {
        flex-wrap: wrap;
        row-gap: 3px;
    }

    .po-lead-mini-team {
        flex-direction: column;
        gap: 2px;
    }

    .po-lead-mini-team img {
        width: 20px;
        height: 20px;
    }

    .po-lead-mini-team strong {
        font-size: 10px;
    }

    .po-lead-scan-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .po-lead-scan-item {
        padding: 7px 8px;
    }

    .po-lead-scan-item strong {
        font-size: 12px;
    }
}

@media (max-width: 370px) {
    .po-lead-scan-strip {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   STORY PASS: CONTEXTUAL SIGNALS
=========================================== */

.po-lead-scan-item small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.po-story-positive {
    color: var(--po-success);
}

.po-story-negative {
    color: var(--po-danger, #ef4444);
}

.po-story-neutral {
    color: #fbbf24;
}

.po-lead-deployment-freshness {
    margin-top: -2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

@media (max-width: 700px) {
    .po-lead-scan-item small {
        font-size: 9px;
        white-space: normal;
    }
}

/* ===========================================
   LEADS LAUNCH CONTRACT V1
   Honest missing-data states and market-agnostic metric rendering.
=========================================== */

.po-lead-inline-unavailable {
    color: var(--po-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.po-data-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 118px;
}

.po-data-state-wide {
    width: 100%;
}

.po-data-state strong {
    color: var(--po-text);
    font-size: 14px;
    font-weight: 900;
}

.po-data-state p {
    max-width: 760px;
    margin: 0;
    color: var(--po-text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.po-lead-stat-grid:empty {
    display: none;
}

@media (max-width: 700px) {
    .po-data-state {
        min-height: 104px;
    }
}

/* ===========================================
   LEADS LIST V2 STORY + RESEARCH PASS
=========================================== */

.po-lead-card-waiting {
    border-color: rgba(245, 158, 11, .28);
}

.po-lead-kicker-row,
.po-lead-context-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.po-lead-value-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.po-lead-value-state-ready {
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .10);
}

.po-lead-value-state-waiting {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, .36);
    background: rgba(245, 158, 11, .10);
}

.po-lead-headline-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.po-lead-headline-value span,
.po-lead-best-price-label,
.po-lead-score-compact span,
.po-lead-intelligence-grid span {
    color: #7d8da5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-lead-headline-value strong {
    color: var(--po-success);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.05;
}

.po-lead-card-waiting .po-lead-headline-value strong {
    color: #fbbf24;
}

.po-lead-why {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(2, 8, 23, .18));
}

.po-lead-card-waiting .po-lead-why {
    border-color: rgba(245, 158, 11, .20);
    background: linear-gradient(135deg, rgba(245, 158, 11, .07), rgba(2, 8, 23, .18));
}

.po-lead-why-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.po-lead-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    color: var(--po-primary);
    border: 1px solid rgba(59, 130, 246, .28);
    background: rgba(37, 99, 235, .12);
    font-weight: 900;
}

.po-lead-why-heading > div > span {
    display: block;
    color: #a8b5ca;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-lead-why-heading strong {
    display: block;
    margin-top: 3px;
    color: var(--po-text);
    font-size: 13px;
    line-height: 1.35;
}

.po-lead-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.po-lead-reason {
    display: flex;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(2, 8, 23, .28);
}

.po-lead-reason > span {
    color: var(--po-success);
    font-weight: 900;
}

.po-lead-reason-waiting > span {
    color: #fbbf24;
}

.po-lead-reason strong,
.po-lead-reason small {
    display: block;
}

.po-lead-reason strong {
    color: var(--po-text);
    font-size: 12px;
    font-weight: 900;
}

.po-lead-reason small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.25;
}

.po-lead-best-price-label {
    color: var(--po-primary);
}

.po-lead-card-bottom-v2 {
    justify-content: flex-end;
    gap: 18px;
}

.po-lead-score-compact {
    display: flex;
    align-items: center;
    gap: 7px;
}

.po-lead-score-compact strong {
    color: #a8b5ca;
    font-size: 13px;
    font-weight: 900;
}

.po-lead-intelligence-panel {
    border-color: rgba(59, 130, 246, .22);
    background: rgba(37, 99, 235, .06);
}

.po-lead-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.po-lead-intelligence-grid > div {
    padding: 11px;
    border-radius: 11px;
    border: 1px solid rgba(96, 165, 250, .12);
    background: rgba(2, 8, 23, .20);
}

.po-lead-intelligence-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--po-text);
    font-size: 15px;
    font-weight: 900;
}

.po-lead-intelligence-grid p {
    margin: 5px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

.po-research-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 54px;
    margin-top: 2px;
    padding: 8px 18px;
    border: 1px solid rgba(59, 130, 246, .24);
    border-radius: 13px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, .08);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.po-research-toggle:hover {
    border-color: rgba(96, 165, 250, .48);
    background: rgba(37, 99, 235, .14);
    transform: translateY(-1px);
}

.po-research-toggle:focus-visible {
    outline: 2px solid var(--po-primary);
    outline-offset: 2px;
}

.po-research-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border-radius: 50%;
    border: 1px solid rgba(96, 165, 250, .35);
    background: rgba(37, 99, 235, .16);
    font-size: 17px;
    line-height: 1;
    transition: transform .18s ease;
}

.po-research-toggle:hover .po-research-toggle-icon {
    transform: translateY(2px);
}

.po-collapse-research-button:hover .po-research-toggle-icon {
    transform: translateY(-2px);
}

.po-research-toggle-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.po-research-toggle-copy strong {
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
}

.po-research-toggle-copy small {
    margin-top: 2px;
    color: #8fa2bd;
    font-size: 11px;
    font-weight: 700;
}

.po-collapse-research-button {
    align-self: stretch;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .po-lead-reason-grid,
    .po-lead-intelligence-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .po-lead-kicker-row {
        gap: 5px;
    }

    .po-lead-value-state {
        min-height: 23px;
        padding: 0 7px;
        font-size: 9px;
    }

    .po-lead-headline-value strong {
        font-size: 21px;
    }

    .po-lead-why {
        padding: 10px;
        border-radius: 12px;
    }

    .po-lead-reason-grid {
        gap: 6px;
    }

    .po-lead-reason {
        padding: 8px;
    }

    .po-research-toggle {
        min-height: 50px;
        padding: 7px 10px;
    }

    .po-research-toggle-copy small {
        font-size: 10px;
    }
}

@media (max-width: 430px) {
    .po-lead-card-top {
        flex-direction: column;
    }

    .po-lead-headline-value {
        align-items: flex-start;
    }

    .po-lead-context-badges {
        margin-top: -2px;
    }

    .po-research-toggle-copy small {
        max-width: 225px;
    }
}

/* ===========================================
   LEADS MOBILE CLEANUP + RESEARCH BUTTON PASS
=========================================== */

.po-lead-player-snapshot {
    display: none;
}

.po-research-toggle,
.po-expand-research-button,
.po-collapse-research-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(59, 130, 246, .34);
    border-radius: 12px;
    background: rgba(37, 99, 235, .10);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.po-research-toggle:hover,
.po-research-toggle:focus-visible {
    border-color: rgba(96, 165, 250, .62);
    background: rgba(37, 99, 235, .18);
    transform: translateY(-1px);
}

.po-research-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(59, 130, 246, .17);
    color: var(--po-primary);
    font-size: 13px;
    line-height: 1;
}

.po-expand-research-button-fullwidth,
.po-collapse-research-button {
    width: min(240px, 100%);
    margin: 8px auto 0;
}

.po-collapse-research-button {
    align-self: center;
}

@media (max-width: 700px) {
    .po-lead-player-snapshot {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
        margin-top: 4px;
    }

    .po-lead-player-snapshot span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 0 7px;
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 7px;
        background: rgba(15, 23, 42, .42);
        color: #a8b5ca;
        font-size: 8px;
        font-weight: 900;
        letter-spacing: .05em;
        line-height: 1;
        text-transform: uppercase;
    }

    .po-lead-player-snapshot .po-lead-player-snapshot-primary {
        color: #bfdbfe;
        border-color: rgba(59, 130, 246, .30);
        background: rgba(37, 99, 235, .13);
    }

    .po-lead-player-snapshot .po-lead-player-snapshot-confirmed {
        color: #bbf7d0;
        border-color: rgba(34, 197, 94, .28);
        background: rgba(34, 197, 94, .09);
    }

    .po-lead-context-badges {
        display: none;
    }

    .po-lead-card-name-line strong {
        font-size: 18px;
        line-height: 1.02;
    }

    .po-lead-card-name-line span,
    .po-lead-card-market,
    .po-lead-card-selection span {
        font-size: 10px;
    }

    .po-lead-value-state {
        min-height: 21px;
        padding: 0 6px;
        font-size: 8px;
    }

    .po-lead-headline-value span {
        font-size: 8px;
    }

    .po-lead-headline-value strong {
        font-size: 19px;
    }

    .po-lead-why {
        gap: 8px;
        padding: 9px;
    }

    .po-lead-why-heading {
        gap: 8px;
    }

    .po-lead-why-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        border-radius: 7px;
        font-size: 12px;
    }

    .po-lead-why-heading > div > span {
        font-size: 8px;
    }

    .po-lead-why-heading strong {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.3;
    }

    .po-lead-reason {
        gap: 6px;
        padding: 7px 8px;
    }

    .po-lead-reason strong {
        font-size: 10px;
        font-weight: 800;
    }

    .po-lead-reason small {
        font-size: 9px;
        line-height: 1.25;
    }

    .po-research-toggle,
    .po-expand-research-button,
    .po-collapse-research-button {
        min-height: 40px;
        padding: 0 15px;
        border-radius: 11px;
        font-size: 11px;
    }

    .po-expand-research-button-fullwidth,
    .po-collapse-research-button {
        width: min(220px, 100%);
        margin-top: 8px;
    }
}

/* ===========================================
   LEADS COLLAPSED SUMMARY / FULL-CARD EXPAND
=========================================== */

.po-lead-expanded-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 2px;
}

.po-lead-card:not(.po-lead-card-expanded) .po-lead-card-grid {
    align-items: center;
}

.po-lead-card:not(.po-lead-card-expanded) .po-lead-player-rail {
    justify-content: center;
}

.po-lead-card:not(.po-lead-card-expanded) .po-lead-card-content {
    justify-content: center;
}

.po-lead-card-expanded .po-expand-research-button {
    display: none;
}

@media (max-width: 700px) {
    .po-lead-card-v2 {
        gap: 10px;
        padding: 11px;
    }

    .po-lead-card-grid {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .po-lead-player-rail {
        gap: 7px;
    }

    .po-lead-card-content {
        gap: 6px;
        align-self: stretch;
        justify-content: center;
    }

    .po-lead-card-top {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .po-lead-card-player-info {
        gap: 4px;
    }

    .po-lead-kicker-row {
        min-height: 24px;
    }

    .po-lead-tier {
        min-height: 24px;
        padding: 0 9px;
        font-size: 9px;
    }

    .po-lead-card-name-line {
        align-items: flex-end;
        gap: 5px;
    }

    .po-lead-card-name-line strong {
        font-size: 17px;
        line-height: 1.04;
    }

    .po-lead-card-market {
        font-size: 10px;
        line-height: 1.2;
    }

    .po-lead-card-selection {
        gap: 5px;
    }

    .po-lead-card-selection span {
        font-size: 9px;
    }

    .po-lead-card-selection strong {
        font-size: 17px;
    }

    .po-lead-headline-value {
        min-width: 78px;
        align-items: flex-end;
        text-align: right;
    }

    .po-lead-headline-value span {
        font-size: 7px;
        line-height: 1.15;
    }

    .po-lead-headline-value strong {
        font-size: 18px;
    }

    .po-lead-game-mini {
        font-size: 10px;
    }

    .po-lead-game-mini strong {
        font-size: 11px;
    }

    .po-lead-game-mini em {
        font-size: 11px;
    }

    .po-lead-game-link {
        min-height: 32px;
        padding: 5px 8px;
        font-size: 9px;
        line-height: 1.1;
    }

    .po-expand-research-button-fullwidth,
    .po-collapse-research-button {
        width: 100%;
        margin-top: 0;
    }

    .po-expand-research-button {
        border-radius: 11px;
        background: rgba(15, 23, 42, .46);
    }

    .po-lead-expanded {
        margin-top: 2px;
    }

    .po-lead-expanded-summary {
        gap: 9px;
        padding-top: 2px;
    }

    .po-lead-context-badges {
        display: flex;
        margin-top: 0;
    }
}

@media (max-width: 390px) {
    .po-lead-card-grid {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
    }

    .po-lead-headline-value {
        min-width: 70px;
    }

    .po-lead-card-name-line strong {
        font-size: 16px;
    }
}

/* ===========================================
   LEADS MOBILE HIERARCHY + LINEUP SNAPSHOT V5
=========================================== */

.po-lead-summary-lineup {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
}

.po-lead-summary-lineup .po-lead-badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.po-lead-card-waiting .po-lead-kicker-row {
    align-items: flex-start;
}

.po-lead-card-waiting .po-lead-value-state-waiting {
    flex-basis: 100%;
    width: max-content;
}

.po-lead-reason > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 5px;
    row-gap: 1px;
    min-width: 0;
}

.po-lead-reason small span {
    font-weight: 800;
    color: #cbd5e1;
}

.po-lead-intelligence-panel .po-expanded-section-title {
    font-size: 11px;
}

.po-lead-intelligence-grid strong {
    font-size: 13px;
}

.po-lead-intelligence-grid p {
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 700px) {
    .po-lead-summary-lineup {
        gap: 5px;
        margin-top: 5px;
    }

    .po-lead-summary-lineup .po-lead-badge {
        min-height: 23px;
        padding: 0 8px;
        font-size: 8px;
    }

    .po-lead-context-badges {
        display: none;
    }

    .po-lead-why {
        gap: 7px;
        padding: 8px 9px;
    }

    .po-lead-why-heading {
        gap: 7px;
    }

    .po-lead-why-heading > div > span {
        font-size: 7px;
    }

    .po-lead-why-heading strong {
        font-size: 9px;
        line-height: 1.28;
    }

    .po-lead-reason {
        align-items: flex-start;
        padding: 6px 7px;
    }

    .po-lead-reason > span {
        font-size: 11px;
        line-height: 1.2;
    }

    .po-lead-reason strong {
        font-size: 9px;
        line-height: 1.25;
    }

    .po-lead-reason small {
        font-size: 8px;
        line-height: 1.25;
    }

    .po-lead-intelligence-panel {
        padding: 11px;
    }

    .po-lead-intelligence-grid {
        gap: 7px;
    }

    .po-lead-intelligence-grid > div {
        padding: 8px 9px;
    }

    .po-lead-intelligence-grid span {
        font-size: 8px;
    }

    .po-lead-intelligence-grid strong {
        margin-top: 3px;
        font-size: 11px;
    }

    .po-lead-intelligence-grid p {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.3;
    }
}

/* ===========================================
   LEADS SUMMARY CLEANUP V6
=========================================== */

/* Keep the full lineup designation together in the expanded deployment card. */
.po-deployment-compact-row > span {
    flex: 0 0 auto;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* The collapsed lineup labels are intentionally written out and stay on one row. */
.po-lead-summary-lineup {
    flex-wrap: nowrap;
    overflow: hidden;
}

.po-lead-summary-lineup .po-lead-badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===========================================
   COLLAPSED LEAD = COMPLETE BETTING SNAPSHOT V7
   The headline, quick context, price and model metrics remain visible.
   Expand Research reveals only the deeper research modules.
=========================================== */

.po-lead-expanded-summary {
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(96, 165, 250, .16);
}

.po-lead-card:not(.po-lead-card-expanded) .po-lead-expanded-summary {
    display: flex;
}

.po-lead-card-main-v2 {
    overflow: hidden;
}

/* Keep deployment identifiers such as “PP1 LD” on one line. */
.po-deployment-compact-row {
    grid-template-columns: max-content minmax(0, 1fr);
}

.po-deployment-compact-row > span {
    width: auto !important;
    min-width: max-content;
    max-width: none;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 700px) {
    .po-lead-expanded-summary {
        margin-top: 10px;
        padding-top: 10px;
    }

    .po-lead-card-main-v2 .po-lead-book-price {
        min-height: 116px;
    }

    .po-expand-research-button-fullwidth {
        margin-top: 10px;
    }
}


/* ===========================================
   LEADS DATA + ODDS COMPARISON V8
=========================================== */

/* Reserve enough width for compact deployment labels such as PP1 LD. */
.po-deployment-compact-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
}

.po-deployment-compact-row > span {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap !important;
}

@media (max-width: 700px) {
    .po-deployment-compact-row {
        grid-template-columns: 76px minmax(0, 1fr) !important;
    }

    .po-deployment-compact-row > span {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        font-size: 10px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* ===========================================
   LEADS HIT RATES + MOBILE DEPLOYMENT V9
=========================================== */

/* Keep compact lineup labels together even on the narrowest phones. */
.po-deployment-compact-row {
    grid-template-columns: 96px minmax(0, 1fr) !important;
}

.po-deployment-compact-row > span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Lead Score uses the same visual treatment as Confidence. */
.po-lead-score-compact strong {
    color: inherit;
    font-size: 14px;
}

.po-recent-form-hit-rate-heading {
    margin-bottom: 8px;
    color: var(--po-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-recent-form-hit-rates-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.po-recent-form-hit-rates-four > div {
    min-width: 0;
}

.po-recent-form-hit-rates-four strong {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .po-deployment-compact-row {
        grid-template-columns: 92px minmax(0, 1fr) !important;
    }

    .po-deployment-compact-row > span {
        flex-basis: 92px !important;
        width: 92px !important;
        min-width: 92px !important;
        max-width: 92px !important;
        padding-left: 5px;
        padding-right: 5px;
        font-size: 9px;
    }

    .po-recent-form-hit-rates-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* V10: four-window player and opponent research grids */
.po-recent-form-metrics-four,
.po-matchup-window-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
}

.po-recent-form-hit-rate-heading,
.po-matchup-metric-title {
    color: var(--po-text-muted, #8fa0b7);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.po-matchup-metric-title {
    margin: .65rem 0 .45rem;
}

.po-matchup-window-grid > div {
    min-width: 0;
    padding: .65rem .45rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: .65rem;
    background: rgba(15, 23, 42, .34);
    text-align: center;
}

.po-matchup-window-grid span,
.po-matchup-rank-row span {
    display: block;
    color: var(--po-text-muted, #8fa0b7);
    font-size: .72rem;
}

.po-matchup-window-grid strong {
    display: block;
    margin-top: .2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.po-matchup-rank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .65rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: .65rem;
    background: rgba(15, 23, 42, .24);
}

.po-matchup-rank-row strong {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .po-recent-form-metrics-four,
    .po-matchup-window-grid {
        gap: .35rem;
    }

    .po-recent-form-metrics-four .po-recent-form-metric,
    .po-matchup-window-grid > div {
        padding-left: .25rem;
        padding-right: .25rem;
    }

    .po-matchup-window-grid strong {
        font-size: .9rem;
    }
}


/* V11: Matchup windows mirror Hit Rate at Current Line. */
.po-recent-form-hit-rate-heading.po-recent-form-market,
.po-matchup-metric-title.po-recent-form-market {
    margin: .65rem 0 .45rem;
}

.po-matchup-window-grid > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.po-matchup-window-grid span {
    display: block;
    color: var(--po-text-muted, #8fa0b7);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.po-matchup-window-grid strong {
    display: block;
    margin-top: .15rem;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .po-matchup-window-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Discovery V0.1: separate probability-oriented and value-oriented presentation buckets. */
.po-lead-tier-high-confidence { color:#e0e7ff; background:rgba(99,102,241,.16); border:1px solid rgba(129,140,248,.4); }
.po-lead-tier-value { color:#cffafe; background:rgba(6,182,212,.14); border:1px solid rgba(34,211,238,.35); }
.po-command-metric-high-confidence strong { color:#c7d2fe; }
.po-command-metric-value strong { color:#67e8f9; }
.po-discovery-notice { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem 1rem; margin:1rem 0; padding:1rem; border:1px solid rgba(148,163,184,.25); border-radius:12px; }
.po-discovery-notice small { flex-basis:100%; opacity:.8; line-height:1.5; }
.po-discovery-notice a { margin-left:auto; white-space:nowrap; }
.po-lead-public-stamps { display:flex; gap:.4rem 1rem; flex-wrap:wrap; font-size:.76rem; opacity:.8; margin-top:.6rem; }

/* Five Discovery buckets: distinct from the legacy four-column tier summary. */
.po-leads-discovery .po-command-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.po-leads-discovery .po-command-metric { min-width:0; }
.po-leads-discovery .po-command-metric span { white-space:normal; }
@media(max-width:1000px) { .po-leads-discovery .po-command-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .po-leads-discovery .po-command-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* =========================================================
   Lead Research V12: exact-book movement + compact game log
   ========================================================= */
.po-line-movement-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.po-line-movement-context {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: .18rem;
    min-width: 0;
    text-align: right;
}

.po-line-movement-context strong {
    color: var(--po-text, #f8fafc);
    font-size: .82rem;
    line-height: 1.1;
}

.po-line-movement-context span {
    color: var(--po-text-muted, #94a3b8);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.po-line-movement-grid {
    grid-template-columns: 1.25fr 1.25fr .8fr .8fr 1.45fr 1.15fr;
    gap: .55rem;
}

.po-line-movement-grid > div {
    min-width: 0;
    padding: .68rem .72rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: .72rem;
    background: rgba(15, 23, 42, .32);
}

.po-line-movement-grid strong,
.po-line-movement-primary strong {
    overflow-wrap: anywhere;
    font-size: .88rem;
    line-height: 1.28;
}

.po-recent-game-log-divider {
    margin-top: .15rem;
}

.po-recent-game-log-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem;
}

.po-recent-game-log-heading strong {
    color: var(--po-text, #f8fafc);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.po-recent-game-log-heading span {
    color: var(--po-text-muted, #94a3b8);
    font-size: .64rem;
    line-height: 1.2;
    text-align: right;
}

.po-recent-game-log-scroll {
    max-height: 178px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: .72rem;
    background: rgba(2, 6, 23, .24);
    scrollbar-color: rgba(96, 165, 250, .55) rgba(15, 23, 42, .45);
    scrollbar-width: thin;
}

.po-recent-game-log-scroll:focus-visible {
    outline: 2px solid rgba(96, 165, 250, .8);
    outline-offset: 2px;
}

.po-recent-game-log-table {
    min-width: 350px;
}

.po-recent-game-log-row {
    display: grid;
    grid-template-columns: 48px minmax(58px, 1fr) 32px 32px 38px 36px 36px;
    align-items: center;
    min-height: 30px;
    padding: 0 .42rem;
    border-top: 1px solid rgba(148, 163, 184, .09);
    color: var(--po-text, #e5edf8);
    font-size: .72rem;
    line-height: 1;
}

.po-recent-game-log-row:first-child {
    border-top: 0;
}

.po-recent-game-log-header {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 27px;
    background: rgba(15, 23, 42, .96);
    color: var(--po-text-muted, #94a3b8);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.po-recent-game-log-row > span:nth-child(n+3),
.po-recent-game-log-header > span:nth-child(n+3) {
    text-align: center;
}

.po-recent-game-log-date,
.po-recent-game-log-opponent {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-recent-game-log-opponent {
    font-weight: 800;
}

.po-recent-game-log-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.po-game-log-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 23px;
    padding: 0;
    border: 1px solid rgba(96, 165, 250, .38);
    border-radius: .42rem;
    background: rgba(37, 99, 235, .15);
    color: #dbeafe;
    cursor: pointer;
    font: inherit;
    font-weight: 950;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.po-game-log-detail-button:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, .72);
    background: rgba(37, 99, 235, .28);
}

.po-game-log-detail-button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.po-scoring-detail-modal {
    width: min(600px, calc(100vw - 24px));
    max-height: min(82vh, 760px);
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    color: var(--po-text, #f8fafc);
    overflow: visible;
}

.po-scoring-detail-modal::backdrop {
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(5px);
}

.po-scoring-detail-shell {
    position: relative;
    max-height: min(82vh, 760px);
    overflow: auto;
    padding: 1.2rem;
    border: 1px solid rgba(96, 165, 250, .28);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, .99), rgba(8, 15, 29, .99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.po-scoring-detail-close {
    position: absolute;
    top: .7rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.po-scoring-detail-close:hover,
.po-scoring-detail-close:focus-visible {
    border-color: rgba(96, 165, 250, .65);
    color: #fff;
}

.po-scoring-detail-header {
    padding-right: 2.7rem;
}

.po-scoring-detail-header > span {
    color: #60a5fa;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.po-scoring-detail-header h2 {
    margin: .3rem 0 0;
    color: #f8fafc;
    font-size: 1.25rem;
    line-height: 1.2;
}

.po-scoring-detail-header p {
    margin: .3rem 0 0;
    color: var(--po-text-muted, #94a3b8);
    font-size: .82rem;
}

.po-scoring-detail-content {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.po-scoring-play {
    padding: .8rem;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: .85rem;
    background: rgba(15, 23, 42, .45);
}

.po-scoring-play-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: .65rem;
    margin-bottom: .7rem;
}

.po-scoring-play-heading span {
    color: #60a5fa;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.po-scoring-play-heading strong {
    font-size: .9rem;
}

.po-scoring-play-heading em {
    color: var(--po-text-muted, #94a3b8);
    font-size: .7rem;
    font-style: normal;
}

.po-scoring-participants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: .65rem;
}

.po-scoring-participant {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    padding: .65rem .45rem;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: .75rem;
    background: rgba(2, 6, 23, .28);
    text-align: center;
}

.po-scoring-participant.is-focus-player {
    border-color: rgba(96, 165, 250, .52);
    background: rgba(37, 99, 235, .12);
}

.po-scoring-participant-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: .42rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, .24), rgba(15, 23, 42, .5));
    overflow: hidden;
}

.po-scoring-participant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.po-scoring-participant-fallback {
    color: #bfdbfe;
    font-size: 1rem;
    font-weight: 950;
}

.po-scoring-participant strong {
    overflow: hidden;
    width: 100%;
    color: #f8fafc;
    font-size: .78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.po-scoring-participant > span {
    margin-top: .25rem;
    color: var(--po-text-muted, #94a3b8);
    font-size: .65rem;
}

.po-scoring-empty-state {
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, .26);
    border-radius: .8rem;
    text-align: center;
}

.po-scoring-empty-state strong {
    display: block;
}

.po-scoring-empty-state p,
.po-scoring-detail-note {
    margin: .35rem 0 0;
    color: var(--po-text-muted, #94a3b8);
    font-size: .78rem;
    line-height: 1.45;
}

.po-scoring-detail-note {
    margin: 0;
    text-align: center;
}

@media (max-width: 1100px) {
    .po-line-movement-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .po-line-movement-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

    .po-line-movement-context {
        align-items: flex-start;
        text-align: left;
    }

    .po-line-movement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-recent-game-log-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

    .po-recent-game-log-heading span {
        text-align: left;
    }

    .po-scoring-detail-shell {
        padding: 1rem;
    }

    .po-scoring-play-heading {
        grid-template-columns: auto 1fr;
    }

    .po-scoring-play-heading em {
        grid-column: 2;
    }
}

@media (max-width: 430px) {
    .po-line-movement-grid {
        grid-template-columns: 1fr;
    }

    .po-scoring-participants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .po-scoring-participant-image {
        width: 56px;
        height: 56px;
    }
}


/* ===========================================
   LEAD DEPLOYMENT PLAYER LINKS V12
=========================================== */
.po-deployment-player-row {
    align-items: stretch;
}

.po-deployment-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 7px;
    min-width: 0;
}

.po-deployment-player {
    min-width: 0;
    padding: 6px 4px;
    border: 1px solid rgba(96, 165, 250, .11);
    border-radius: 10px;
    background: rgba(2, 8, 23, .18);
    color: var(--po-text);
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.po-deployment-player:hover,
.po-deployment-player:focus-visible {
    border-color: rgba(96, 165, 250, .50);
    background: rgba(37, 99, 235, .12);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.po-deployment-player-current {
    border-color: rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .08);
}

.po-deployment-player-headshot {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 auto 4px;
    overflow: hidden;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .16);
}

.po-deployment-player-current .po-deployment-player-headshot {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .32);
}

.po-deployment-player-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.po-deployment-player strong,
.po-deployment-player small {
    display: block;
    overflow: hidden;
}

.po-deployment-player strong {
    min-height: 2.35em;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.16;
    text-overflow: ellipsis;
}

.po-deployment-player small {
    margin-top: 3px;
    color: var(--po-text-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .po-deployment-player-row {
        grid-template-columns: 82px minmax(0, 1fr) !important;
    }

    .po-deployment-player-row > span {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
    }

    .po-deployment-player-grid {
        grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
        gap: 6px;
    }

    .po-deployment-player-headshot {
        width: 34px;
        height: 34px;
    }

    .po-deployment-player strong {
        font-size: 9px;
    }
}
