/**
 * +EV Props / Model Edges — page-specific styles.
 * Extracted from positive-expected-value-props/index.php's inline <style>
 * block so the /my-dash/ widget versions (ev_props, model_edges — which
 * only get body HTML, not <head>) can load it too.
 */
    .content-wrapper {
        margin-left: 0;
        padding: 20px 25px;
        padding-top: 90px !important;
    }

    /* Navigation header bar look now comes from the shared .tmb-sport-bar (front.css) */

    .edges-disclaimer {
        font-size: 0.82rem;
        color: #999;
        font-style: italic;
        margin-bottom: 14px;
        display: none;
    }

    /* Yesterday toggle button */
    .yesterday-toggle-btn {
        font-size: 0.76rem;
        font-weight: 600;
        padding: 4px 14px;
        border: 1px solid #007bff;
        border-radius: 20px;
        color: #007bff;
        background: #fff;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .yesterday-toggle-btn:hover {
        background: #007bff;
        color: #fff;
    }
    .yesterday-toggle-btn.active {
        background: #fff;
        color: #007bff;
    }

    /* Yesterday warning banner */
    .yesterday-banner {
        text-align: center;
        padding: 8px 16px;
        background: #fff3cd;
        border: 1px solid #ffc107;
        border-radius: 6px;
        color: #856404;
        font-size: 0.82rem;
        font-weight: 600;
        margin-bottom: 12px;
    }
    .yesterday-banner i {
        margin-right: 6px;
    }

    /* Filter dropdowns */
    .edges-filters {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .edges-multiselect {
        position: relative;
        display: inline-block;
    }
    .edges-ms-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 12px;
        font-size: 0.74rem;
        font-weight: 600;
        border-radius: 20px;
        border: 1px solid #dee2e6;
        background: #fff;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
        line-height: 1.4;
    }
    .edges-ms-btn:hover, .edges-ms-btn.open {
        border-color: #007bff;
        color: #007bff;
    }
    .edges-ms-arrow {
        font-size: 0.55rem;
        transition: transform 0.2s;
    }
    .edges-ms-btn.open .edges-ms-arrow {
        transform: rotate(180deg);
    }
    .edges-ms-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        min-width: 160px;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        z-index: 100;
        padding: 6px 0 0 0;
        overflow: hidden;
    }
    .edges-ms-dropdown.show {
        display: block;
    }
    #book-dropdown {
        left: auto;
        right: 0;
    }
    .edges-ms-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 14px;
        font-size: 0.76rem;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        transition: background 0.15s;
        margin: 0;
        white-space: nowrap;
    }
    .edges-ms-option:hover {
        background: #f0f7ff;
    }
    .edges-ms-actions {
        display: flex;
        border-top: 1px solid #e9ecef;
        margin-top: 4px;
    }
    .edges-ms-select-all,
    .edges-ms-clear {
        flex: 1;
        padding: 5px 14px;
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        transition: background 0.15s;
    }
    .edges-ms-select-all {
        color: #28a745;
        border-right: 1px solid #e9ecef;
    }
    .edges-ms-select-all:hover {
        background: #f0fff4;
    }
    .edges-ms-clear {
        color: #dc3545;
    }
    .edges-ms-clear:hover {
        background: #fff5f5;
    }
    .edges-ms-option input[type="checkbox"] {
        margin: 0;
        cursor: pointer;
    }

    /* (fair odds column moved to inline in v2) */

    /* Edge card */
    .edge-card {
        padding: 14px 18px;
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.2s;
    }
    .edge-card:hover { background-color: #fafbfc; }
    .edge-card:first-child { border-top: 1px solid #e9ecef; }

    /* Game started — greyed out */
    .edge-card.game-started { opacity: 0.45; pointer-events: none; position: relative; }
    .edge-game-started-banner {
        background: #6c757d; color: #fff; font-size: 11px; font-weight: 600;
        text-align: center; padding: 3px 0; letter-spacing: 0.5px;
        border-radius: 4px; margin-bottom: 8px;
    }
    .edge-game-started-banner i { margin-right: 5px; }
    /* Below threshold — dimmed fill edges */
    .edge-card.below-threshold { opacity: 0.5; }
    .edge-below-threshold-banner {
        background: #856404; color: #fff; font-size: 11px; font-weight: 600;
        text-align: center; padding: 3px 0; letter-spacing: 0.5px;
        border-radius: 4px; margin-bottom: 8px;
    }
    .edge-below-threshold-banner i { margin-right: 5px; }
    /* Main row: edge + player + data cols + AI text — single row */
    .edge-top-row {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    /* Edge box (top-left, green) */
    .edge-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(40, 167, 69, 0.08);
        border: 1px solid rgba(40, 167, 69, 0.25);
        border-radius: 8px;
        padding: 6px 12px;
        min-width: 68px;
        flex-shrink: 0;
        position: relative;
    }
    .edge-box-label {
        font-size: 0.62rem;
        font-weight: 700;
        color: #28a745;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
    .edge-box-value {
        font-weight: 800;
        font-size: 1.05rem;
        color: #28a745;
        line-height: 1.2;
    }
    .edge-box .edge-info-icon {
        position: absolute;
        top: 4px;
        right: 4px;
        font-size: 0.55rem;
        color: rgba(40, 167, 69, 0.5);
        cursor: help;
    }
    .edge-box .edge-info-icon:hover { color: #28a745; }

    /* Edge info tooltip — positioned to the right */
    .edge-box .edge-info-tooltip {
        left: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%);
    }

    /* Result labels for historical edges */
    .edge-result-label {
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 2px 6px;
        border-radius: 4px;
        margin-top: 4px;
        text-transform: uppercase;
        display: inline-block;
    }
    .edge-result-win {
        background: #28a745;
        color: #fff;
    }
    .edge-result-loss {
        background: rgba(220, 53, 69, 0.15);
        color: #dc3545;
    }
    .edge-result-push {
        background: rgba(108, 117, 125, 0.15);
        color: #6c757d;
    }
    .edge-result-pending {
        background: rgba(255, 193, 7, 0.15);
        color: #b8860b;
    }

    /* Player section */
    .edge-player-section {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex-shrink: 0;
    }
    .edge-headshot {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        background: #e9ecef;
        flex-shrink: 0;
    }
    .edge-player-info {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .edge-player-name {
        font-weight: 600;
        font-size: 0.88rem;
        display: block;
        color: #111;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
    }
    .edge-player-meta {
        font-size: 0.7rem;
        color: #888;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.3;
    }
    .edge-player-drill {
        line-height: 1.3;
    }

    /* Stat + line column (blue box, matching Best Odds style) */
    .edge-stat-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 6px 14px;
        flex-shrink: 0;
        background: #eef4fb;
        border: 1px solid #c0d5ec;
        border-radius: 6px;
        min-width: 90px;
    }
    .edge-stat-labels {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
    .edge-stat-badge {
        display: inline-block;
        background: #343a40;
        color: #fff;
        font-size: 0.58rem;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 20px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .edge-direction {
        display: inline-block;
        font-size: 0.58rem;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 20px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }
    .edge-direction.over { background: #007bff; color: #fff; }
    .edge-direction.under { background: #28a745; color: #fff; }
    .edge-prop-value {
        font-weight: 800;
        font-size: 1rem;
        color: #111;
        line-height: 1.2;
    }

    /* Projected column (box style matching stat/best-odds) */
    .edge-projected-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 14px;
        flex-shrink: 0;
        background: #eef4fb;
        border: 1px solid #c0d5ec;
        border-radius: 6px;
        min-width: 90px;
    }
    .edge-projected-label {
        font-size: 0.58rem;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    .edge-projected-value {
        font-weight: 800;
        font-size: 1rem;
        color: #111;
    }
    .edge-projected-sub {
        font-size: 0.6rem;
        color: #888;
    }

    /* Best Odds column (prominent box, two-line layout) */
    .edge-best-odds-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 14px;
        flex-shrink: 0;
        background: #f0f7ff;
        border: 1px solid #b8d4f0;
        border-radius: 6px;
        min-width: 90px;
    }
    .edge-best-odds-label {
        font-size: 0.58rem;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        margin-bottom: 2px;
        white-space: nowrap;
    }
    .edge-best-odds-book {
        font-size: 0.6rem;
        color: #888;
        white-space: nowrap;
        font-weight: 500;
    }
    .edge-best-odds-value {
        font-weight: 800;
        font-size: 1rem;
        color: #111;
    }
    .edge-lines-icon {
        font-size: 0.72rem;
        color: #aaa;
        cursor: help;
        transition: color 0.15s;
        margin-left: 3px;
    }
    .edge-lines-icon:hover {
        color: #007bff;
    }

    /* Fair Odds column (box style matching stat/best-odds) */
    .edge-fair-muted-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 14px;
        flex-shrink: 0;
        background: #f0f7ff;
        border: 1px solid #b8d4f0;
        border-radius: 6px;
        min-width: 90px;
    }
    .edge-fair-muted-label {
        font-size: 0.58rem;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        margin-bottom: 2px;
    }
    .edge-fair-muted-value {
        font-weight: 800;
        font-size: 1rem;
        color: #111;
    }
    .edge-fair-muted-pct {
        font-size: 0.6rem;
        color: #888;
    }

    /* Data columns wrapper (after player, before AI text) */
    .edge-columns-right {
        display: flex;
        align-items: stretch;
        gap: 10px;
        flex-shrink: 0;
    }

    /* Drill down dropdown (under player info) */
    .drill-dropdown { position: relative; display: inline-block; }
    .edge-drill-btn {
        font-size: 0.65rem;
        padding: 1px 8px;
        border: 1px solid #007bff;
        border-radius: 20px;
        color: #007bff;
        white-space: nowrap;
        display: inline-block;
        background: none;
        cursor: pointer;
    }
    .edge-drill-btn:hover {
        background: #007bff;
        color: #fff;
    }
    .drill-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
        min-width: 90px;
        margin-top: 4px;
    }
    .drill-menu a {
        display: block;
        padding: 6px 14px;
        font-size: 0.75rem;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }
    .drill-menu a:hover {
        background: #f0f0f0;
        color: #007bff;
    }
    .drill-menu a:first-child { border-radius: 6px 6px 0 0; }
    .drill-menu a:last-child { border-radius: 0 0 6px 6px; }
    .drill-dropdown.open .drill-menu { display: block; }

    /* AI text — inline in main row, fills remaining space */
    .edge-ai-text {
        flex: 1 1 200px;
        min-width: 200px;
        font-size: 0.75rem;
        color: #555;
        line-height: 1.5;
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 4px;
        border-left: 3px solid #007bff;
    }

    .delta-pos { color: #155724; }
    .delta-neg { color: #721c24; }
    .delta-zero { color: #999; }

    /* Teammate chips */
    .edge-teammates {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-left: 0;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px dashed #e9ecef;
    }
    .edge-teammate-chip {
        display: inline-block;
        padding: 2px 8px;
        font-size: 0.66rem;
        font-weight: 500;
        border-radius: 12px;
        border: 1px solid #dee2e6;
        background: #fff;
        color: #555;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
    }
    .edge-teammate-chip:hover {
        border-color: #007bff;
        color: #007bff;
        background: #f0f7ff;
    }
    .edge-teammate-chip.out {
        color: #888;
        background: #f5f5f5;
        border-color: #e5e5e5;
        cursor: pointer;
    }
    .edge-teammate-chip.out:hover {
        border-color: #28a745;
        color: #666;
        background: #eafbef;
    }
    .edge-teammate-chip.forced-in {
        text-decoration: none;
        color: #155724;
        background: rgba(20, 108, 67, 0.08);
        border-color: #146c43;
        cursor: pointer;
        font-weight: 600;
    }
    .edge-teammate-chip.forced-in:hover {
        background: rgba(20, 108, 67, 0.14);
        border-color: #146c43;
    }
    .edge-teammate-chip.user-out {
        color: #888;
        background: #f5f5f5;
        border-color: #e5e5e5;
        cursor: pointer;
    }
    .edge-teammate-chip.user-out:hover {
        border-color: #dc3545;
        background: #ffe0e3;
    }
    /* Chip status badges (matching NPU) */
    .chip-badge {
        display: inline-block;
        color: #fff;
        font-size: 0.5rem;
        font-weight: 700;
        padding: 0 5px;
        border-radius: 10px;
        margin-left: 3px;
        letter-spacing: 0.5px;
        vertical-align: middle;
    }
    .chip-badge.badge-out { background: #8b1a2a; }
    .chip-badge.badge-out-dimmed { background: #dc3545; opacity: 0.4; }
    .chip-badge.badge-in { background: #146c43; }
    .edge-teammate-chip .injury-tag {
        display: inline-block;
        font-size: 0.55rem;
        font-weight: 700;
        padding: 0 4px;
        border-radius: 3px;
        margin-left: 3px;
        vertical-align: middle;
        line-height: 1.4;
    }
    .edge-teammate-chip .injury-tag.tag-q {
        background: #ffe5cc;
        color: #222;
    }
    .edge-teammate-chip .injury-tag.tag-d {
        background: #f5c6cb;
        color: #222;
    }

    /* Bracket-grouped injury sections */
    .edge-injury-sections {
        margin-top: 6px;
        margin-left: 0;
        padding-top: 6px;
        border-top: 1px dashed #e9ecef;
    }
    .edge-injury-group {
        border-left: 2px solid #d0d0d0;
        padding-left: 10px;
        margin-bottom: 8px;
    }
    .edge-injury-group:last-child {
        margin-bottom: 0;
    }
    .edge-bracket-header {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 3px 0;
    }
    .edge-bracket-header:hover {
        opacity: 0.8;
    }
    .edge-bracket-label {
        font-size: 0.62rem;
        color: #999;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    .edge-ir-summary {
        font-size: 0.62rem;
        color: #777;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    .ir-tag {
        display: inline-block;
        font-size: 0.5rem;
        font-weight: 700;
        padding: 0 4px;
        border-radius: 3px;
        vertical-align: middle;
        margin-left: 1px;
    }
    .ir-tag.ir-out { background: #f8d7da; color: #721c24; }
    .ir-tag.ir-q { background: #ffe5cc; color: #856404; }
    .ir-tag.ir-d { background: #f5c6cb; color: #721c24; }
    .edge-collapse-icon {
        font-size: 0.55rem;
        color: #bbb;
        flex-shrink: 0;
        transition: transform 0.15s;
    }
    .edge-roster-body {
        margin-top: 4px;
    }
    .edge-injury-sections .edge-teammates {
        margin-left: 0;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    .edge-opp-roster {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    /* Opponent chips share teammate chip styling */
    .edge-opp-chip {
        display: inline-block;
        padding: 2px 8px;
        font-size: 0.66rem;
        font-weight: 500;
        border-radius: 12px;
        border: 1px solid #dee2e6;
        background: #fff;
        color: #555;
        cursor: pointer;
        transition: all 0.15s;
        white-space: nowrap;
    }
    .edge-opp-chip:hover { border-color: #007bff; color: #007bff; background: #f0f7ff; }
    .edge-opp-chip.out { color: #888; background: #f5f5f5; border-color: #e5e5e5; cursor: pointer; }
    .edge-opp-chip.out:hover { border-color: #28a745; color: #666; background: #eafbef; }
    .edge-opp-chip.forced-in { color: #155724; background: rgba(20,108,67,0.08); border-color: #146c43; cursor: pointer; font-weight: 600; }
    .edge-opp-chip.forced-in:hover { background: rgba(20,108,67,0.14); border-color: #146c43; }
    .edge-opp-chip.user-out { color: #888; background: #f5f5f5; border-color: #e5e5e5; cursor: pointer; }
    .edge-opp-chip.user-out:hover { border-color: #dc3545; background: #ffe0e3; }
    .edge-opp-chip .injury-tag {
        display: inline-block; font-size: 0.55rem; font-weight: 700; padding: 0 4px;
        border-radius: 3px; margin-left: 3px; vertical-align: middle; line-height: 1.4;
    }
    .edge-opp-chip .injury-tag.tag-q { background: #ffe5cc; color: #222; }
    .edge-opp-chip .injury-tag.tag-d { background: #f5c6cb; color: #222; }

    .edge-no-edge {
        font-size: 0.78rem;
        color: #888;
        font-style: italic;
        padding: 8px 14px;
        text-align: center;
        width: 100%;
    }

    /* Prop line tooltip (reused from NPU) */
    .prop-tooltip {
        position: absolute;
        z-index: 9999;
        background: #1a1a2e;
        color: #eee;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 0.72rem;
        box-shadow: 0 4px 16px rgba(0,0,0,0.35);
        white-space: nowrap;
        pointer-events: none;
    }
    .prop-tooltip-header {
        font-weight: 700;
        color: #8bb4f0;
        margin-bottom: 4px;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
    .prop-tooltip-row {
        display: flex;
        gap: 12px;
        padding: 2px 0;
        align-items: center;
    }
    .prop-tooltip-row + .prop-tooltip-row {
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .prop-book { min-width: 80px; color: #ccc; }
    .prop-line { font-weight: 700; color: #fff; min-width: 35px; text-align: right; }
    .prop-odds { color: #999; font-size: 0.65rem; }
    .prop-edge { font-weight: 700; font-size: 0.65rem; min-width: 40px; text-align: right; }
    .tip-edge-hot { color: #4cff4c; }
    .tip-edge-pos { color: #8bb4f0; }
    .tip-edge-neg { color: #666; }

    /* Edge info icon + tooltip */
    .edge-info-icon {
        font-size: 0.6rem;
        color: #aaa;
        cursor: help;
        margin-left: 3px;
        vertical-align: middle;
    }
    .edge-info-icon:hover { color: #666; }
    .edge-info-tooltip {
        position: absolute;
        z-index: 9999;
        background: #1a1a2e;
        color: #ddd;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 0.72rem;
        line-height: 1.5;
        box-shadow: 0 4px 16px rgba(0,0,0,0.35);
        width: 300px;
        pointer-events: none;
    }
    .edge-info-tooltip-header {
        font-weight: 700;
        color: #8bb4f0;
        margin-bottom: 6px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    .edge-info-tooltip-body p {
        margin: 0 0 6px 0;
        font-size: 0.68rem;
        color: #ccc;
    }
    .edge-info-tooltip-body p:last-child { margin-bottom: 0; }
    .edge-info-tooltip-body strong { color: #fff; }
    .edge-info-tooltip-body em { color: #8bb4f0; font-style: normal; }

    /* Empty state */
    #edges-empty {
        text-align: center;
        padding: 3rem 1rem 2rem;
        display: none;
        color: #888;
        clear: both;
    }

    /* Loading status message */
    .edges-loading-status {
        text-align: center;
        color: #1a5276;
        font-size: 1.08rem;
        font-weight: 500;
        padding: 20px 24px;
        letter-spacing: 0.01em;
        transition: opacity 0.2s;
        background: #e8f4fd;
        border: 1px solid #bee5f7;
        border-radius: 10px;
        margin: 0 0 16px;
    }
    .edges-loading-status .loading-spinner {
        display: inline-block;
        width: 18px;
        height: 18px;
        border: 2.5px solid #bee5f7;
        border-top-color: #3498db;
        border-radius: 50%;
        animation: edges-spin 0.8s linear infinite;
        vertical-align: middle;
        margin-right: 10px;
        position: relative;
        top: -1px;
    }
    @keyframes edges-spin {
        to { transform: rotate(360deg); }
    }

    /* Skeleton loader */
    .edges-skeleton {
        display: none;
    }
    .skeleton-edge-card {
        padding: 14px 18px;
        border-bottom: 1px solid #eee;
    }
    .skeleton-edge-card:nth-child(odd) { background: #fafbfc; }

    /* Skeleton row — matches .edge-top-row single-row layout */
    .skel-top-row {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
    }
    /* Edge box (green) */
    .skel-edge-box {
        width: 70px; height: 58px; border-radius: 8px; flex-shrink: 0;
        background: #e8f5e9 !important;
    }
    /* Player section */
    .skel-player {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    .skel-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
    .skel-name-block { display: flex; flex-direction: column; gap: 5px; }
    .skel-name { width: 110px; height: 12px; border-radius: 3px; }
    .skel-pos { width: 85px; height: 9px; border-radius: 3px; }
    .skel-drill { width: 60px; height: 9px; border-radius: 3px; }
    /* Stat box (blue) */
    .skel-stat-box {
        width: 90px; height: 58px; border-radius: 8px; flex-shrink: 0;
        background: #e3eaf5 !important;
    }
    /* Projected / Best Odds / Fair Odds skeleton columns (matching boxes) */
    .skel-projected, .skel-best-odds-box, .skel-fair {
        display: flex; flex-direction: column; gap: 5px; align-items: center;
        flex-shrink: 0; padding: 6px 10px; min-width: 80px;
        border-radius: 6px; border: 1px solid #d0dbe8; background: #f5f8fc;
    }
    .skel-proj-label { width: 48px; height: 8px; border-radius: 2px; }
    .skel-proj-value { width: 28px; height: 14px; border-radius: 3px; }
    .skel-proj-sub { width: 40px; height: 8px; border-radius: 2px; }
    .skel-bo-label { width: 44px; height: 8px; border-radius: 2px; }
    .skel-bo-value { width: 32px; height: 14px; border-radius: 3px; }
    .skel-bo-sub { width: 40px; height: 8px; border-radius: 2px; }
    .skel-fair-label { width: 40px; height: 8px; border-radius: 2px; }
    .skel-fair-value { width: 32px; height: 14px; border-radius: 3px; }
    .skel-fair-sub { width: 36px; height: 8px; border-radius: 2px; }
    /* AI text */
    .skel-ai-text {
        flex: 1 1 200px;
        height: 56px;
        border-radius: 4px;
        border-left: 3px solid #d0d8e0;
    }

    @keyframes shimmer {
        0% { background-position: -200px 0; }
        100% { background-position: 200px 0; }
    }
    .shimmer {
        background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%) !important;
        background-size: 400px 100%;
        animation: shimmer 1.5s ease-in-out infinite;
    }

    /* ---- Metered paywall: locked edge cards ---- */
    .edge-card-wrapper { position: relative; }
    .edge-card-wrapper.locked {
        cursor: pointer;
    }
    .edge-card-wrapper.locked:hover {
        opacity: 0.9;
    }
    /* #1 locked edge: skeleton card with dark overlay */
    .edge-card-wrapper.edge-locked-top {
        border-radius: 8px;
        position: relative;
        overflow: hidden;
    }
    .edge-skeleton-bg {
        position: relative;
        z-index: 0;
    }
    .edge-card-wrapper.edge-locked-top .edge-locked-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        background: var(--pw-overlay);
        border-radius: 8px;
        z-index: 1;
        transition: background 0.2s;
    }
    .edge-card-wrapper.edge-locked-top .edge-locked-overlay:hover {
        background: var(--pw-overlay-hover);
    }
    .edge-locked-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 5;
        cursor: pointer;
    }
    .edge-locked-overlay .lock-cta {
        display: inline-block;
        padding: 8px 22px;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 5px;
        background: var(--pw-btn-bg);
        color: #fff;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s;
    }
    .edge-locked-overlay .lock-cta:hover {
        background: var(--pw-btn-hover);
        color: #fff;
        text-decoration: none;
    }

    /* Paywall CTA banner after free edges — skeleton rows behind overlay */
    .edges-paywall-banner {
        text-align: center;
        margin: 8px 0;
        border-radius: 8px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    .edges-paywall-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--pw-overlay);
        z-index: 1;
        border-radius: 8px;
        transition: background 0.2s;
    }
    .edges-paywall-banner:hover::before {
        background: var(--pw-overlay-hover);
    }
    .edges-banner-skeleton {
        position: relative;
        z-index: 0;
    }
    .pw-banner-cta-wrap {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 90px 24px;
    }
    .edges-paywall-banner .pw-headline {
        font-size: 1.1rem;
        font-weight: 600;
        color: #fff;
        margin-bottom: 14px;
    }
    .edges-paywall-banner .pw-cta {
        display: inline-block;
        padding: 8px 24px;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 5px;
        background: var(--pw-btn-bg);
        color: #fff;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s;
    }
    .edges-paywall-banner .pw-cta:hover {
        background: var(--pw-btn-hover);
        color: #fff;
        text-decoration: none;
    }

    /* Status key legend */
    .edges-legend {
        display: none;
        align-items: center;
        gap: 10px;
        font-size: 0.75rem;
        color: #666;
        flex-wrap: wrap;
    }
    .legend-item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
    }
    .legend-badge {
        display: inline-block;
        color: #fff;
        font-size: 0.55rem;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 20px;
        letter-spacing: 0.5px;
    }
    .legend-sep {
        color: #ccc;
    }
    .edges-legend .info-tooltip .tooltip-text {
        left: auto;
        right: 0;
        margin-left: 0;
        min-width: 340px;
    }

    /* Info tooltips */
    .info-tooltip {
        position: relative;
        display: inline-block;
    }
    .info-tooltip .tooltip-text {
        display: none;
        width: auto;
        max-width: 380px;
        background-color: #333;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 8px 10px;
        position: absolute;
        z-index: 1000;
        top: 125%;
        left: 50%;
        margin-left: -95px;
        opacity: 0;
        font-size: 0.8rem;
        font-weight: normal;
        line-height: 1.4;
        pointer-events: none;
        transition: opacity 0.2s;
        white-space: normal;
    }
    .info-tooltip:hover .tooltip-text {
        display: block;
        opacity: 1;
    }

    /* All .edge-*/.skel-* rules below are inside .tmb-cq-root (see
       edges-body.php's $edges_main_html), so these @container versions
       respond to THIS WIDGET'S width on /my-dash/, not just a narrow
       browser viewport — .content-wrapper is real-page-chrome only and
       stays a plain @media rule. */

    /* Tablet — AI text wraps to its own row */
    @container (max-width: 1100px) {
        .edge-ai-text {
            flex-basis: 100%;
            min-width: 100%;
        }
    }

    /* Small tablet — data columns wrap below player */
    @container (max-width: 900px) {
        .edge-columns-right {
            flex-wrap: wrap;
        }
    }

    /* Mobile */
    @media (max-width: 767px) {
        .content-wrapper { padding-top: 80px !important; }
    }
    @container (max-width: 767px) {
        .edge-card {
            padding: 12px 14px;
        }
        .edge-top-row {
            gap: 8px;
        }
        .edge-box {
            min-width: 56px;
            max-width: 72px;
            padding: 4px 8px;
        }
        .edge-box-value { font-size: 0.9rem; }
        .edge-result-label { font-size: 0.5rem; padding: 1px 4px; white-space: nowrap; }
        .edge-player-section {
            flex: 1;
            min-width: 0;
        }
        .edge-columns-right {
            width: 100%;
            flex-wrap: wrap;
            gap: 6px;
        }
        .edge-stat-col, .edge-projected-col, .edge-best-odds-col, .edge-fair-muted-col {
            flex: 1;
            min-width: 0;
            padding: 4px 8px;
        }
        .edge-ai-text {
            flex-basis: 100%;
            min-width: 100%;
        }
        .edge-drill-btn {
            font-size: 0.6rem;
            padding: 1px 6px;
        }
        .edge-headshot { width: 40px; height: 40px; }
        .edge-player-name { font-size: 0.8rem; }
        .edge-teammates { margin-left: 0; }
        .edge-injury-sections { margin-left: 0; }
        .edge-injury-sections .edge-teammates { margin-left: 0; }

        /* Skeleton mobile */
        .skel-top-row { flex-wrap: wrap; gap: 8px; }
        .skel-bottom-row { flex-direction: column; margin-left: 0; gap: 8px; }
        .skel-ai-text { width: 100%; height: 48px; }
        .skel-numbers { width: 100%; }
        .skel-num-col { flex: 1; min-width: 0; padding: 6px 8px; }
    }
    /* +EV Props toggle */
    .ev-props-toggle-btn {
        font-size: 0.76rem;
        font-weight: 600;
        padding: 4px 14px;
        border: 1px solid #9b59b6;
        border-radius: 20px;
        color: #9b59b6;
        background: #fff;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .ev-props-toggle-btn:hover,
    .ev-props-toggle-btn.active {
        background: #9b59b6;
        color: #fff;
    }

    /* +EV Props banner */
    .ev-props-banner {
        text-align: center;
        padding: 8px 16px;
        background: #f3e8ff;
        border: 1px solid #9b59b6;
        border-radius: 6px;
        color: #6b21a8;
        font-size: 0.82rem;
        font-weight: 600;
        margin-bottom: 12px;
    }

    /* +EV card edge box (purple) */
    .ev-edge-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(155, 89, 182, 0.08);
        border: 1px solid rgba(155, 89, 182, 0.25);
        border-radius: 8px;
        padding: 6px 12px;
        min-width: 68px;
        flex-shrink: 0;
    }
    .ev-edge-box .edge-box-label {
        color: #9b59b6;
    }
    .ev-edge-box .edge-box-value {
        color: #9b59b6;
    }

    /* Consensus info row */
    .ev-consensus-row {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 0.72rem;
        color: #666;
        margin-top: 4px;
        flex-wrap: wrap;
    }
    .ev-consensus-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .ev-consensus-label {
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        font-size: 0.62rem;
        letter-spacing: 0.3px;
    }
    .ev-consensus-value {
        font-weight: 700;
        color: #333;
    }
    .ev-books-info {
        cursor: help;
        position: relative;
    }
    .ev-books-tooltip {
        display: none;
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 400;
        white-space: nowrap;
        z-index: 50;
        line-height: 1.6;
    }
    .ev-books-info:hover .ev-books-tooltip {
        display: block;
    }

    /* System Switcher */
    .system-switcher {
        display: flex;
        gap: 12px;
        margin-bottom: 14px;
    }
    .system-box {
        flex: 1;
        border-radius: 10px;
        padding: 14px 18px;
        cursor: pointer;
        transition: all 0.25s ease;
        border: 2px solid transparent;
        position: relative;
    }
    .system-box.active[data-system="ev"] {
        border-color: #2ecc71;
        background: #f0fdf4;
        opacity: 1;
    }
    .system-box.active[data-system="edges"] {
        border-color: #9b59b6;
        background: #faf5ff;
        opacity: 1;
    }
    .system-box.inactive {
        border-color: #ddd;
        background: #fafafa;
        opacity: 0.5;
    }
    .system-box.inactive:hover {
        opacity: 0.75;
        border-color: #bbb;
    }
    .system-box-header {
        font-size: 0.92rem;
        font-weight: 700;
        color: #222;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .system-badge {
        font-size: 0.62rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .system-box.active .system-badge {
        background: rgba(155,89,182,0.15);
        color: #8e44ad;
    }
    .system-box.active[data-system="ev"] .system-badge {
        background: rgba(46,204,113,0.15);
        color: #27ae60;
    }
    .system-box.inactive .system-badge {
        background: #eee;
        color: #999;
    }
    .system-box-desc {
        font-size: 0.74rem;
        color: #555;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    .system-box.inactive .system-box-desc {
        color: #999;
    }
    .system-box-stats {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .system-stat-chip {
        font-size: 0.68rem;
        background: rgba(0,0,0,0.04);
        border-radius: 6px;
        padding: 3px 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 52px;
    }
    .system-stat-label {
        font-size: 0.58rem;
        font-weight: 600;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .system-stat-value {
        font-weight: 700;
        color: #333;
        font-size: 0.78rem;
    }
    .system-box.inactive .system-stat-value,
    .system-box.inactive .system-stat-label {
        color: #aaa;
    }
    /* Sample size badge on edge cards */
    .edge-sample-badge {
        font-size: 0.62rem;
        font-weight: 600;
        color: #888;
        background: rgba(0,0,0,0.05);
        border-radius: 4px;
        padding: 1px 6px;
        margin-top: 3px;
        display: inline-block;
    }
    @media (max-width: 600px) {
        .system-switcher {
            flex-direction: column;
        }
        .system-box-stats {
            gap: 6px;
        }
    }

