.nrfi-m4 {
    --m4-bg: #07111f;
    --m4-panel: #0d1c2f;
    --m4-panel-2: #10243b;
    --m4-line: rgba(171, 202, 231, .18);
    --m4-text: #f7fbff;
    --m4-muted: #9fb3c8;
    --m4-cyan: #55d7ff;
    --m4-green: #2fd493;
    --m4-green-2: #84efbd;
    --m4-orange: #ffad5a;
    --m4-red: #ff6f7d;
    --m4-blue: #5d9dff;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    color: var(--m4-text);
    background:
        radial-gradient(circle at 12% -10%, rgba(48, 157, 237, .22), transparent 34%),
        radial-gradient(circle at 90% 0%, rgba(47, 212, 147, .12), transparent 30%),
        var(--m4-bg);
    border: 1px solid rgba(129, 174, 218, .28);
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(1, 8, 17, .32);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.35;
}
.nrfi-m4 *, .nrfi-m4 *::before, .nrfi-m4 *::after { box-sizing: border-box; }
.nrfi-m4 a { color: inherit; text-decoration: none; }
.nrfi-m4 button, .nrfi-m4 input, .nrfi-m4 select { font: inherit; }
.nrfi-m4__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--m4-line);
}
.nrfi-m4__hero-copy { max-width: 820px; }
.nrfi-m4__eyebrow { color: #b5c9dc; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nrfi-m4__eyebrow span { display: inline-block; margin-right: 9px; padding: 5px 9px; color: #04101d; background: linear-gradient(135deg, var(--m4-cyan), var(--m4-green)); border-radius: 999px; }
.nrfi-m4__hero h2 { margin: 9px 0 4px; color: #fff; font-size: clamp(25px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.nrfi-m4__hero p { margin: 0; color: var(--m4-muted); font-size: 14px; }
.nrfi-m4__updated { flex: 0 0 auto; min-width: 155px; padding: 12px 15px; text-align: right; background: rgba(7, 17, 31, .55); border: 1px solid var(--m4-line); border-radius: 12px; }
.nrfi-m4__updated span, .nrfi-m4__updated small { display: block; color: var(--m4-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nrfi-m4__updated strong { display: block; margin: 3px 0; color: #fff; font-size: 18px; }
.nrfi-m4__kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; padding: 14px 14px 0; }
.nrfi-m4__kpi { position: relative; min-width: 0; padding: 13px 14px 12px; overflow: hidden; background: linear-gradient(145deg, rgba(18, 43, 69, .96), rgba(10, 25, 43, .96)); border: 1px solid var(--m4-line); border-radius: 12px; }
.nrfi-m4__kpi::after { content: ""; position: absolute; top: 0; right: 0; width: 48px; height: 48px; background: radial-gradient(circle at top right, rgba(85, 215, 255, .19), transparent 69%); }
.nrfi-m4__kpi > span { display: block; color: #8fa7bd; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.nrfi-m4__kpi > strong { display: block; margin: 3px 0 2px; color: #fff; font-size: clamp(20px, 2vw, 28px); line-height: 1; }
.nrfi-m4__kpi--win > strong, .nrfi-m4__kpi--probability > strong { color: var(--m4-green-2); }
.nrfi-m4__kpi small { display: block; overflow: hidden; color: var(--m4-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 14px 0; padding: 5px; background: rgba(7, 17, 31, .62); border: 1px solid var(--m4-line); border-radius: 13px; }
.nrfi-m4__tabs { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nrfi-m4__tab { appearance: none; padding: 10px 14px; color: var(--m4-muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 800; }
.nrfi-m4__tab span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 5px; padding: 0 6px; color: #bcd3e8; background: rgba(117, 151, 185, .14); border-radius: 999px; font-size: 10px; }
.nrfi-m4__tab:hover, .nrfi-m4__tab.is-active { color: #fff; background: linear-gradient(135deg, rgba(25, 77, 120, .82), rgba(18, 55, 86, .82)); }
.nrfi-m4__tab.is-active span { color: #05111e; background: var(--m4-green); }
.nrfi-m4__actions { display: flex; gap: 4px; }
.nrfi-m4__icon-button { width: 36px; height: 36px; padding: 0; color: #c9d9e8; background: rgba(90, 128, 164, .12); border: 1px solid var(--m4-line); border-radius: 9px; cursor: pointer; }
.nrfi-m4__icon-button:hover, .nrfi-m4__icon-button.is-active { color: #07111f; background: var(--m4-cyan); }
.nrfi-m4__panel { padding: 14px; }
.nrfi-m4__filters { display: grid; grid-template-columns: minmax(220px, 1fr) 200px 175px auto; gap: 9px; margin-bottom: 12px; }
.nrfi-m4__filters input, .nrfi-m4__filters select { width: 100%; min-height: 40px; padding: 0 12px; color: #ecf6ff; background: rgba(14, 32, 53, .88); border: 1px solid var(--m4-line); border-radius: 10px; outline: none; }
.nrfi-m4__filters input::placeholder { color: #8198ad; }
.nrfi-m4__filters input:focus, .nrfi-m4__filters select:focus { border-color: rgba(85, 215, 255, .65); box-shadow: 0 0 0 3px rgba(85, 215, 255, .09); }
.nrfi-m4__filters select option { color: #101820; background: #fff; }
.nrfi-m4__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: #b8cadd; background: rgba(14, 32, 53, .88); border: 1px solid var(--m4-line); border-radius: 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nrfi-m4__toggle input { width: auto; min-height: auto; accent-color: var(--m4-green); }
.nrfi-m4__game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nrfi-m4__game-card { position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(15, 36, 59, .98), rgba(8, 21, 37, .98)); border: 1px solid var(--m4-line); border-radius: 15px; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.nrfi-m4__game-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--m4-green), var(--m4-cyan)); }
.nrfi-m4__game-card.nrfi-m4--yrfi::before { background: linear-gradient(90deg, var(--m4-orange), #ff775d); }
.nrfi-m4__game-card.nrfi-m4--pass::before { background: linear-gradient(90deg, #65798d, #9ab0c4); }
.nrfi-m4__game-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 0; color: var(--m4-muted); font-size: 10px; text-transform: uppercase; }
.nrfi-m4__game-topline > div { display: flex; align-items: center; gap: 8px; }
.nrfi-m4__game-time { color: #fff; font-size: 12px; font-weight: 900; }
.nrfi-m4__status { max-width: 160px; padding: 5px 8px; overflow: hidden; border-radius: 999px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__status--ready { color: #8bf2c5; background: rgba(47, 212, 147, .1); border: 1px solid rgba(47, 212, 147, .2); }
.nrfi-m4__status--review { color: #ffd69f; background: rgba(255, 173, 90, .1); border: 1px solid rgba(255, 173, 90, .2); }
.nrfi-m4__status--neutral { color: #b8cadd; background: rgba(127, 151, 173, .1); border: 1px solid var(--m4-line); }
.nrfi-m4__matchup { display: grid; grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 14px 13px; }
.nrfi-m4__club { min-width: 0; }
.nrfi-m4__team-link { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 8px; }
.nrfi-m4__team-link:hover strong, .nrfi-m4__pitcher-link:hover b { color: var(--m4-cyan); }
.nrfi-m4__team-logo { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.nrfi-m4__team-link strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__pitcher-link { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px; background: rgba(6, 15, 26, .5); border: 1px solid rgba(151, 184, 213, .11); border-radius: 10px; }
.nrfi-m4__headshot-wrap { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; flex: 0 0 43px; overflow: hidden; background: linear-gradient(145deg, #d9e9f6, #89a8c2); border-radius: 50%; }
.nrfi-m4__headshot { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nrfi-m4__initials { color: #0c2238; font-size: 13px; font-weight: 900; }
.nrfi-m4__pitcher-link > span:last-child { min-width: 0; }
.nrfi-m4__pitcher-link b, .nrfi-m4__pitcher-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__pitcher-link b { color: #f9fcff; font-size: 12px; }
.nrfi-m4__pitcher-link small { margin-top: 2px; color: var(--m4-muted); font-size: 9px; text-transform: uppercase; }
.nrfi-m4__at { text-align: center; }
.nrfi-m4__at span { display: block; color: var(--m4-cyan); font-size: 20px; font-weight: 950; }
.nrfi-m4__at small { display: block; margin-top: 2px; color: #8ca1b5; font-size: 8px; line-height: 1.25; }
.nrfi-m4__recommendation-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 14px; padding: 11px 12px; background: rgba(4, 13, 23, .53); border: 1px solid var(--m4-line); border-radius: 10px; }
.nrfi-m4__recommendation-row > div:first-child span, .nrfi-m4__confidence small { display: block; color: var(--m4-muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.nrfi-m4__recommendation-row strong { display: block; margin-top: 2px; color: var(--m4-green-2); font-size: 16px; }
.nrfi-m4--yrfi .nrfi-m4__recommendation-row strong { color: #ffc07c; }
.nrfi-m4--pass .nrfi-m4__recommendation-row strong { color: #c0ceda; }
.nrfi-m4__confidence { text-align: right; }
.nrfi-m4__confidence > span { display: inline-block; padding: 5px 8px; color: #e5f4ff; background: rgba(93, 157, 255, .12); border-radius: 999px; font-size: 10px; font-weight: 900; }
.nrfi-m4__probability { padding: 12px 14px 7px; }
.nrfi-m4__probability-labels { display: flex; justify-content: space-between; margin-bottom: 6px; color: #bdd0e1; font-size: 11px; }
.nrfi-m4__probability-labels b:first-child { color: var(--m4-green-2); }
.nrfi-m4__probability-labels span:last-child b { color: #ffc07c; }
.nrfi-m4__split-meter { display: flex; width: 100%; height: 8px; overflow: hidden; background: rgba(138, 162, 184, .17); border-radius: 999px; }
.nrfi-m4__split-meter span { display: block; height: 100%; }
.nrfi-m4__split-meter-nrfi { background: linear-gradient(90deg, #168e65, var(--m4-green)); }
.nrfi-m4__split-meter-yrfi { background: linear-gradient(90deg, var(--m4-orange), #ff775d); }
.nrfi-m4__side-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 5px 14px 11px; }
.nrfi-m4__side-stat { padding: 9px 10px; background: rgba(8, 21, 36, .6); border: 1px solid rgba(151, 184, 213, .1); border-radius: 9px; }
.nrfi-m4__side-stat > span { display: block; overflow: hidden; color: var(--m4-muted); font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.nrfi-m4__side-stat > strong { display: block; margin: 2px 0 5px; color: #fff; font-size: 15px; }
.nrfi-m4__side-stat i, .nrfi-m4__table-meter i { display: block; height: 4px; overflow: hidden; background: rgba(149, 177, 202, .16); border-radius: 999px; }
.nrfi-m4__side-stat i b, .nrfi-m4__table-meter i b { display: block; height: 100%; background: linear-gradient(90deg, #168e65, var(--m4-green)); border-radius: inherit; }
.nrfi-m4__odds-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--m4-line); }
.nrfi-m4__odds-row span { padding: 9px 12px; overflow: hidden; color: var(--m4-muted); border-right: 1px solid var(--m4-line); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.nrfi-m4__odds-row span:last-child { border-right: 0; text-align: right; }
.nrfi-m4__odds-row strong { margin-left: 3px; color: #fff; font-size: 10px; }
.nrfi-m4__section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 12px; padding: 4px 2px; }
.nrfi-m4__section-heading span { color: var(--m4-cyan); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.nrfi-m4__section-heading h3 { margin: 3px 0 0; color: #fff; font-size: 23px; }
.nrfi-m4__section-heading p { max-width: 610px; margin: 0; color: var(--m4-muted); font-size: 11px; text-align: right; }
.nrfi-m4__team-table-wrap, .nrfi-m4__table-scroll { overflow-x: auto; border: 1px solid var(--m4-line); border-radius: 12px; }
.nrfi-m4__table { width: 100%; margin: 0; border-collapse: collapse; background: rgba(7, 18, 31, .42); color: var(--m4-text); font-size: 11px; }
.nrfi-m4__table th { padding: 10px 12px; color: #bcd0e3; background: rgba(17, 39, 64, .82); border-bottom: 1px solid var(--m4-line); font-size: 9px; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.nrfi-m4__table td { padding: 9px 12px; border-bottom: 1px solid rgba(151, 184, 213, .12); vertical-align: middle; }
.nrfi-m4__table tbody tr:last-child td { border-bottom: 0; }
.nrfi-m4__table tbody tr:hover td { background: rgba(85, 215, 255, .035); }
.nrfi-m4__table-team, .nrfi-m4__table-pitcher { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.nrfi-m4__table-team img { width: 28px; height: 28px; object-fit: contain; }
.nrfi-m4__table-pitcher img { width: 35px; height: 35px; object-fit: cover; object-position: center top; background: #aac1d3; border-radius: 50%; }
.nrfi-m4__table-team b, .nrfi-m4__table-team small, .nrfi-m4__table-pitcher b, .nrfi-m4__table-pitcher small { display: block; }
.nrfi-m4__table-team small, .nrfi-m4__table-pitcher small, .nrfi-m4__cell-note { color: var(--m4-muted); font-size: 9px; }
.nrfi-m4__pill { display: inline-flex; align-items: center; padding: 5px 8px; color: #d5e5f3; background: rgba(108, 136, 163, .16); border: 1px solid rgba(154, 184, 211, .16); border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.nrfi-m4__pill--nrfi, .nrfi-m4__pill.nrfi-m4--nrfi { color: #8bf2c5; background: rgba(47, 212, 147, .1); border-color: rgba(47, 212, 147, .18); }
.nrfi-m4__pill.nrfi-m4--yrfi { color: #ffd19b; background: rgba(255, 173, 90, .1); border-color: rgba(255, 173, 90, .18); }
.nrfi-m4__grade { display: inline-flex; min-width: 54px; justify-content: center; padding: 5px 8px; color: #061423; background: linear-gradient(135deg, var(--m4-cyan), var(--m4-green)); border-radius: 999px; font-size: 9px; font-weight: 950; }
.nrfi-m4__muted { color: var(--m4-muted); }
.nrfi-m4__table-meter { min-width: 110px; }
.nrfi-m4__table-meter strong { display: block; margin-bottom: 5px; color: #fff; font-size: 11px; }
.nrfi-m4__performance-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nrfi-m4__performance-card { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px 14px; align-items: center; padding: 14px; background: linear-gradient(145deg, rgba(16, 39, 64, .95), rgba(8, 21, 37, .95)); border: 1px solid var(--m4-line); border-radius: 13px; }
.nrfi-m4__performance-card > div:first-child span { display: block; color: var(--m4-muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nrfi-m4__performance-card > div:first-child strong { display: block; margin-top: 5px; font-size: 28px; }
.nrfi-m4__ring { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--m4-green) calc(var(--pct) * 1%), rgba(126, 154, 180, .16) 0); }
.nrfi-m4__ring::before { content: ""; grid-area: 1/1; width: 58px; height: 58px; background: #0c1e32; border-radius: 50%; }
.nrfi-m4__ring span { position: relative; grid-area: 1/1; font-size: 11px; font-weight: 900; }
.nrfi-m4__performance-card dl { display: grid; grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; gap: 5px; margin: 0; }
.nrfi-m4__performance-card dl div { padding: 7px 8px; background: rgba(4, 13, 23, .45); border-radius: 8px; }
.nrfi-m4__performance-card dt { color: var(--m4-muted); font-size: 8px; text-transform: uppercase; }
.nrfi-m4__performance-card dd { margin: 2px 0 0; color: #fff; font-size: 11px; font-weight: 900; }
.nrfi-m4__subsection { margin-top: 15px; }
.nrfi-m4__subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; padding: 0 2px; }
.nrfi-m4__subheading h4 { margin: 0; color: #fff; font-size: 15px; }
.nrfi-m4__subheading span { color: var(--m4-muted); font-size: 9px; text-transform: uppercase; }
.nrfi-m4__record-badge { display: inline-flex; min-width: 58px; justify-content: center; padding: 5px 8px; color: #07111f; background: #e9f4fc; border-radius: 6px; font-weight: 950; }
.nrfi-m4__daily-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.nrfi-m4__day-card { overflow: hidden; background: rgba(12, 30, 50, .88); border: 1px solid var(--m4-line); border-radius: 11px; }
.nrfi-m4__day-card header { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 10px; background: rgba(24, 52, 82, .7); border-bottom: 1px solid var(--m4-line); }
.nrfi-m4__day-card header strong { font-size: 13px; }
.nrfi-m4__day-card header span { color: var(--m4-muted); font-size: 8px; text-transform: uppercase; }
.nrfi-m4__day-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid rgba(151, 184, 213, .1); }
.nrfi-m4__day-row:last-child { border-bottom: 0; }
.nrfi-m4__day-row span { color: #b9ccdd; font-size: 10px; }
.nrfi-m4__day-row b { font-size: 11px; }
.nrfi-m4__day-row em { color: var(--m4-green-2); font-size: 9px; font-style: normal; font-weight: 900; }
.nrfi-m4__mini-matchup { display: flex; align-items: center; gap: 6px; min-width: 170px; }
.nrfi-m4__mini-matchup img { width: 21px; height: 21px; object-fit: contain; }
.nrfi-m4__result { display: inline-flex; min-width: 54px; justify-content: center; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 950; }
.nrfi-m4__result--win { color: #8bf2c5; background: rgba(47, 212, 147, .1); }
.nrfi-m4__result--loss { color: #ff9ca5; background: rgba(255, 111, 125, .1); }
.nrfi-m4__result--pass, .nrfi-m4__result--pending { color: #c5d3df; background: rgba(137, 160, 181, .1); }
.nrfi-m4__empty { padding: 24px; color: #bcd0e2; text-align: center; background: rgba(14, 32, 53, .6); border: 1px dashed rgba(156, 187, 214, .28); border-radius: 12px; }
.nrfi-m4__notice { padding: 24px; }
.nrfi-m4__notice h3 { margin-top: 0; }
.nrfi-m4__notice code { display: block; padding: 9px; overflow-wrap: anywhere; background: #07111f; border-radius: 6px; }
.nrfi-m4__footer { display: flex; justify-content: space-between; gap: 18px; padding: 8px 15px 12px; color: #8fa6bb; font-size: 9px; font-style: italic; }
.nrfi-m4__footer strong { color: #dcecf8; }
.nrfi-m4.is-compact .nrfi-m4__hero { padding-top: 16px; padding-bottom: 14px; }
.nrfi-m4.is-compact .nrfi-m4__hero p, .nrfi-m4.is-compact .nrfi-m4__kpi small, .nrfi-m4.is-compact .nrfi-m4__status { display: none; }
.nrfi-m4.is-compact .nrfi-m4__kpis { grid-template-columns: repeat(6, 1fr); }
.nrfi-m4.is-compact .nrfi-m4__matchup { padding-top: 8px; padding-bottom: 9px; }
.nrfi-m4.is-compact .nrfi-m4__pitcher-link { padding: 5px; }
.nrfi-m4.is-compact .nrfi-m4__headshot-wrap { width: 35px; height: 35px; flex-basis: 35px; }
.nrfi-m4.is-compact .nrfi-m4__odds-row { grid-template-columns: 1fr 1fr; }
.nrfi-m4 [hidden] { display: none !important; }

@media (max-width: 1150px) {
    .nrfi-m4__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nrfi-m4__daily-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .nrfi-m4__hero { align-items: flex-start; }
    .nrfi-m4__updated { min-width: 135px; }
    .nrfi-m4__game-grid { grid-template-columns: 1fr; }
    .nrfi-m4__filters { grid-template-columns: 1fr 1fr; }
    .nrfi-m4__search { grid-column: 1 / -1; }
    .nrfi-m4__performance-cards { grid-template-columns: 1fr; }
    .nrfi-m4__daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .nrfi-m4 { border-radius: 12px; }
    .nrfi-m4__hero { display: block; padding: 18px 15px 15px; }
    .nrfi-m4__hero h2 { font-size: 27px; }
    .nrfi-m4__updated { margin-top: 12px; text-align: left; }
    .nrfi-m4__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 9px; padding-left: 9px; }
    .nrfi-m4__toolbar { align-items: flex-start; margin-right: 9px; margin-left: 9px; }
    .nrfi-m4__tabs { flex-wrap: wrap; }
    .nrfi-m4__tab { padding: 8px 9px; font-size: 11px; }
    .nrfi-m4__actions { display: none; }
    .nrfi-m4__panel { padding: 9px; }
    .nrfi-m4__filters { grid-template-columns: 1fr; }
    .nrfi-m4__search { grid-column: auto; }
    .nrfi-m4__matchup { grid-template-columns: 1fr; }
    .nrfi-m4__club--home { margin-top: 2px; }
    .nrfi-m4__at { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; text-align: left; }
    .nrfi-m4__at span { font-size: 14px; }
    .nrfi-m4__at small { margin: 0; }
    .nrfi-m4__section-heading { display: block; }
    .nrfi-m4__section-heading p { margin-top: 7px; text-align: left; }
    .nrfi-m4__daily-grid { grid-template-columns: 1fr; }
    .nrfi-m4__footer { display: block; }
    .nrfi-m4__footer strong { display: block; margin-top: 4px; }
}

@media print {
    body * { visibility: hidden !important; }
    .nrfi-m4, .nrfi-m4 * { visibility: visible !important; }
    .nrfi-m4 { position: absolute; top: 0; left: 0; width: 100%; border: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .nrfi-m4__toolbar, .nrfi-m4__filters { display: none !important; }
    .nrfi-m4__panel[hidden] { display: none !important; }
    .nrfi-m4__game-card { break-inside: avoid; }
}

/* Version 1.2: tab-aware records, team filters, and team performance views */
.nrfi-m4__summary-data { display: none !important; }
.nrfi-m4__performance-switch {
    display: inline-flex;
    gap: 5px;
    margin: 0 0 13px;
    padding: 5px;
    background: rgba(7, 17, 31, .62);
    border: 1px solid var(--m4-line);
    border-radius: 11px;
}
.nrfi-m4__performance-switch button {
    appearance: none;
    padding: 8px 13px;
    color: var(--m4-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
}
.nrfi-m4__performance-switch button:hover,
.nrfi-m4__performance-switch button.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(25, 77, 120, .9), rgba(18, 55, 86, .9));
}
.nrfi-m4__performance-cards--single {
    grid-template-columns: minmax(0, 620px);
}
.nrfi-m4__performance-card--wide dl {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.nrfi-m4__team-table tr[hidden] { display: none !important; }

@media (max-width: 860px) {
    .nrfi-m4__performance-cards--single { grid-template-columns: 1fr; }
    .nrfi-m4__performance-card--wide dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .nrfi-m4__performance-switch { display: flex; }
    .nrfi-m4__performance-switch button { flex: 1 1 0; padding: 8px 7px; font-size: 10px; }
    .nrfi-m4__performance-card--wide dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Version 1.3: optional compact game list view */
.nrfi-m4__section-heading--games-list { margin-bottom: 10px; }
.nrfi-m4__game-list-wrap { border-radius: 13px; }
.nrfi-m4__game-list-table { min-width: 1240px; }
.nrfi-m4__game-list-table tbody tr.nrfi-m4--nrfi td:first-child { box-shadow: inset 3px 0 0 var(--m4-green); }
.nrfi-m4__game-list-table tbody tr.nrfi-m4--yrfi td:first-child { box-shadow: inset 3px 0 0 var(--m4-orange); }
.nrfi-m4__game-list-table tbody tr.nrfi-m4--pass td:first-child { box-shadow: inset 3px 0 0 #71869a; }
.nrfi-m4__game-list-time { min-width: 96px; white-space: nowrap; }
.nrfi-m4__game-list-time > b,
.nrfi-m4__game-list-time > small { display: block; }
.nrfi-m4__game-list-time > b { color: #fff; font-size: 12px; }
.nrfi-m4__game-list-time > small { margin: 2px 0 5px; color: var(--m4-muted); font-size: 9px; text-transform: uppercase; }
.nrfi-m4__game-list-time .nrfi-m4__status { display: inline-flex; max-width: 95px; padding: 3px 6px; font-size: 8px; }
.nrfi-m4__game-list-matchup { display: grid; grid-template-columns: minmax(105px, auto) 15px minmax(105px, auto); align-items: center; gap: 4px 6px; min-width: 270px; }
.nrfi-m4__game-list-matchup > a { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nrfi-m4__game-list-matchup > a:hover b { color: var(--m4-cyan); }
.nrfi-m4__game-list-matchup img { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; }
.nrfi-m4__game-list-matchup b { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__game-list-matchup > span { color: var(--m4-cyan); font-weight: 950; text-align: center; }
.nrfi-m4__game-list-matchup > small { grid-column: 1 / -1; padding-left: 31px; color: var(--m4-muted); font-size: 8px; }
.nrfi-m4__game-list-pitcher { min-width: 155px; }
.nrfi-m4__game-list-pitcher:hover b { color: var(--m4-cyan); }
.nrfi-m4__game-list-initials { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; color: #0b243a; background: linear-gradient(145deg, #d9e9f6, #89a8c2); border-radius: 50%; font-size: 11px; font-weight: 950; }
.nrfi-m4__game-list-table .nrfi-m4__table-meter { min-width: 120px; }
.nrfi-m4__game-list-table .nrfi-m4__table-meter small { display: block; max-width: 185px; margin-top: 5px; overflow: hidden; color: var(--m4-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__table-meter--yrfi i b { background: linear-gradient(90deg, var(--m4-orange), #ff775d); }
.nrfi-m4__game-list-odds { min-width: 102px; white-space: nowrap; }
.nrfi-m4__game-list-odds span { display: flex; justify-content: space-between; gap: 8px; color: var(--m4-muted); font-size: 9px; }
.nrfi-m4__game-list-odds span + span { margin-top: 4px; }
.nrfi-m4__game-list-odds b { color: #fff; font-size: 10px; }
.nrfi-m4.is-compact .nrfi-m4__game-list-table td { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 620px) {
    .nrfi-m4__section-heading--games-list { display: block; }
    .nrfi-m4__section-heading--games-list p { margin-top: 7px; text-align: left; }
}

/* Version 1.3.1: current-model team grading and single game probability display */
.nrfi-m4__primary-probability {
    margin: 10px 14px 7px;
    padding: 10px 12px;
    background: rgba(5, 15, 27, .52);
    border: 1px solid var(--m4-line);
    border-radius: 10px;
}
.nrfi-m4__primary-probability > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 7px;
}
.nrfi-m4__primary-probability span {
    color: var(--m4-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.nrfi-m4__primary-probability strong {
    margin-left: auto;
    color: var(--m4-green-2);
    font-size: 13px;
}
.nrfi-m4__primary-probability strong b { font-size: 17px; }
.nrfi-m4__primary-probability small {
    color: var(--m4-muted);
    font-size: 8px;
}
.nrfi-m4__primary-probability > i {
    display: block;
    height: 6px;
    overflow: hidden;
    background: rgba(149, 177, 202, .16);
    border-radius: 999px;
}
.nrfi-m4__primary-probability > i > b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #168e65, var(--m4-green));
    border-radius: inherit;
}
.nrfi-m4__primary-probability--yrfi strong { color: #ff9ca5; }
.nrfi-m4__primary-probability--yrfi > i > b,
.nrfi-m4__table-meter--yrfi i b { background: linear-gradient(90deg, #d94b59, var(--m4-red)); }
.nrfi-m4__table-meter--nrfi strong { color: var(--m4-green-2); }
.nrfi-m4__table-meter--yrfi strong { color: #ff9ca5; }
.nrfi-m4__table-meter strong span {
    display: inline-block;
    margin-right: 3px;
    font-size: 9px;
    letter-spacing: .04em;
}
.nrfi-m4__mini-team-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.nrfi-m4__mini-team-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.nrfi-m4__mini-team-link:hover b { color: var(--m4-cyan); }
.nrfi-m4__team-results-table td { vertical-align: middle; }


/* Version 1.3.2: improve visibility for dark team logos on navy panels. */
.nrfi-m4__logo-image {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, .42));
}
.nrfi-m4__logo-image--contrast {
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(220, 235, 246, .92));
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 7px;
    box-shadow: 0 0 0 1px rgba(3, 13, 24, .28), 0 2px 7px rgba(0, 0, 0, .22);
    filter: none;
}
.nrfi-m4__mini-matchup .nrfi-m4__logo-image--contrast,
.nrfi-m4__mini-team-link .nrfi-m4__logo-image--contrast {
    padding: 1px;
    border-radius: 5px;
}


/* Version 1.4.0: year-aware Cheat Sheet drill-down and larger list typography. */
.nrfi-m4__logo-image {
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(220, 235, 246, .93));
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 7px;
    box-shadow: 0 0 0 1px rgba(3, 13, 24, .28), 0 2px 7px rgba(0, 0, 0, .22);
    filter: none;
}
.nrfi-m4__mini-matchup .nrfi-m4__logo-image,
.nrfi-m4__mini-team-link .nrfi-m4__logo-image {
    padding: 1px;
    border-radius: 5px;
}

/* Approximately 30% larger type in the compact game list. */
.nrfi-m4__game-list-wrap .nrfi-m4__game-list-table { min-width: 1480px; font-size: 14px; }
.nrfi-m4__game-list-table th { padding: 13px 14px; font-size: 12px; }
.nrfi-m4__game-list-table td { padding: 13px 14px; }
.nrfi-m4__game-list-time > b { font-size: 16px; }
.nrfi-m4__game-list-time > small { font-size: 12px; }
.nrfi-m4__game-list-time .nrfi-m4__status { max-width: 125px; padding: 5px 8px; font-size: 10px; }
.nrfi-m4__game-list-matchup b { font-size: 14px; }
.nrfi-m4__game-list-matchup > small { padding-left: 38px; font-size: 11px; }
.nrfi-m4__game-list-table .nrfi-m4__game-list-matchup img { width: 31px; height: 31px; }
.nrfi-m4__game-list-table .nrfi-m4__table-pitcher img,
.nrfi-m4__game-list-initials { width: 46px; height: 46px; flex-basis: 46px; }
.nrfi-m4__game-list-table .nrfi-m4__table-pitcher b { font-size: 15px; }
.nrfi-m4__game-list-table .nrfi-m4__table-pitcher small { font-size: 12px; }
.nrfi-m4__game-list-table .nrfi-m4__pill,
.nrfi-m4__game-list-table .nrfi-m4__grade { padding: 7px 10px; font-size: 12px; }
.nrfi-m4__game-list-table .nrfi-m4__table-meter strong { font-size: 14px; }
.nrfi-m4__game-list-table .nrfi-m4__table-meter strong span { font-size: 12px; }
.nrfi-m4__game-list-table .nrfi-m4__table-meter small { max-width: 245px; font-size: 10px; }
.nrfi-m4__game-list-odds span { font-size: 12px; }
.nrfi-m4__game-list-odds b { font-size: 13px; }
.nrfi-m4__section-heading--games-list h3 { font-size: 30px; }
.nrfi-m4__section-heading--games-list span { font-size: 12px; }
.nrfi-m4__section-heading--games-list p { font-size: 14px; }
.nrfi-m4__panel[data-panel="games"] .nrfi-m4__filters input,
.nrfi-m4__panel[data-panel="games"] .nrfi-m4__filters select,
.nrfi-m4__panel[data-panel="games"] .nrfi-m4__toggle { font-size: 16px; }

.nrfi-m4__details-heading,
.nrfi-m4__details-cell { width: 92px; text-align: center !important; }
.nrfi-m4__details-button {
    appearance: none;
    min-width: 72px;
    padding: 8px 12px;
    color: #061423;
    background: linear-gradient(135deg, var(--m4-cyan), var(--m4-green));
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}
.nrfi-m4__details-button:hover,
.nrfi-m4__details-button[aria-expanded="true"] { color: #fff; background: linear-gradient(135deg, #167ab6, #118d70); }
.nrfi-m4__details-unavailable { color: var(--m4-muted); font-size: 14px; }
.nrfi-m4__game-details-row > td { padding: 0 !important; background: #081625; }
.nrfi-m4__game-details-row[hidden] { display: none !important; }
.nrfi-m4__cheat-details { padding: 18px; border-top: 1px solid rgba(85, 215, 255, .42); border-bottom: 1px solid var(--m4-line); }
.nrfi-m4__cheat-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--m4-line); }
.nrfi-m4__cheat-header > div:first-child > span { color: var(--m4-cyan); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.nrfi-m4__cheat-header h4 { margin: 3px 0; color: #fff; font-size: 23px; }
.nrfi-m4__cheat-header p { margin: 0; color: var(--m4-muted); font-size: 13px; }
.nrfi-m4__cheat-context-top { max-width: 520px; text-align: right; }
.nrfi-m4__cheat-context-top b,
.nrfi-m4__cheat-context-top span,
.nrfi-m4__cheat-context-top small { display: block; }
.nrfi-m4__cheat-context-top b { color: #fff; font-size: 16px; }
.nrfi-m4__cheat-context-top span { margin-top: 3px; color: var(--m4-green-2); font-size: 13px; }
.nrfi-m4__cheat-context-top small { margin-top: 2px; color: var(--m4-muted); font-size: 12px; }
.nrfi-m4__cheat-pitchers,
.nrfi-m4__cheat-teams,
.nrfi-m4__cheat-matchup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.nrfi-m4__cheat-card { min-width: 0; padding: 14px; background: linear-gradient(145deg, rgba(17, 39, 64, .88), rgba(10, 25, 43, .9)); border: 1px solid var(--m4-line); border-radius: 12px; }
.nrfi-m4__cheat-card-title { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.nrfi-m4__cheat-card-title > a { display: flex; align-items: center; gap: 11px; min-width: 0; }
.nrfi-m4__cheat-card-title > span:last-child,
.nrfi-m4__cheat-card-title > a > span:last-child { min-width: 0; }
.nrfi-m4__cheat-card-title small,
.nrfi-m4__cheat-card-title strong,
.nrfi-m4__cheat-card-title em { display: block; }
.nrfi-m4__cheat-card-title small { color: var(--m4-cyan); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nrfi-m4__cheat-card-title strong { margin-top: 2px; overflow: hidden; color: #fff; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.nrfi-m4__cheat-card-title em { margin-top: 2px; color: var(--m4-muted); font-size: 11px; font-style: normal; }
.nrfi-m4__cheat-headshot-wrap { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden; color: #0b243a; background: linear-gradient(145deg, #d9e9f6, #89a8c2); border-radius: 50%; font-size: 15px; font-weight: 950; }
.nrfi-m4__cheat-headshot-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nrfi-m4__cheat-team-logo { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 54px; }
.nrfi-m4__cheat-team-logo img { width: 48px; height: 48px; object-fit: contain; }
.nrfi-m4__cheat-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nrfi-m4__detail-metric { min-width: 0; min-height: 58px; padding: 9px 10px; background: rgba(5, 15, 27, .48); border: 1px solid rgba(158, 190, 218, .12); border-radius: 9px; }
.nrfi-m4__detail-metric span { display: block; color: var(--m4-muted); font-size: 10px; }
.nrfi-m4__detail-metric strong { display: block; margin-top: 4px; overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; }
.nrfi-m4__cheat-footer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }

@media (max-width: 1150px) {
    .nrfi-m4__cheat-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nrfi-m4__cheat-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .nrfi-m4__cheat-header { display: block; }
    .nrfi-m4__cheat-context-top { margin-top: 9px; text-align: left; }
    .nrfi-m4__cheat-pitchers,
    .nrfi-m4__cheat-teams,
    .nrfi-m4__cheat-matchup-grid { grid-template-columns: 1fr; }
    .nrfi-m4__cheat-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Version 1.4.5: batting-order reach, strikeout, and home-run results. */
.nrfi-m4__pitcher-order-details {
    margin-top: 12px;
    overflow: hidden;
    background: rgba(4, 14, 25, .46);
    border: 1px solid rgba(85, 215, 255, .2);
    border-radius: 10px;
}
.nrfi-m4__pitcher-order-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #f8fcff;
    background: linear-gradient(90deg, rgba(42, 185, 207, .13), rgba(38, 211, 157, .08));
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
}
.nrfi-m4__pitcher-order-details > summary::-webkit-details-marker { display: none; }
.nrfi-m4__pitcher-order-details > summary::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #052033;
    background: linear-gradient(135deg, var(--m4-cyan), var(--m4-green));
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
}
.nrfi-m4__pitcher-order-details[open] > summary::after { content: '−'; }
.nrfi-m4__pitcher-order-details > summary small {
    margin-left: auto;
    color: var(--m4-muted);
    font-size: 10px;
    font-weight: 700;
}
.nrfi-m4__pitcher-order-intro {
    padding: 10px 12px 5px;
    color: var(--m4-muted);
    font-size: 10px;
}
.nrfi-m4__pitcher-order-table-wrap {
    overflow-x: auto;
    padding: 7px 10px 11px;
}
.nrfi-m4__pitcher-order-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    color: #eaf6ff;
    font-size: 10px;
}
.nrfi-m4__pitcher-order-table th,
.nrfi-m4__pitcher-order-table td {
    padding: 7px 8px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid rgba(151, 184, 213, .12);
}
.nrfi-m4__pitcher-order-table th {
    color: var(--m4-muted);
    background: rgba(5, 15, 27, .45);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nrfi-m4__pitcher-order-table tbody tr:last-child td { border-bottom: 0; }
.nrfi-m4__pitcher-order-table td:first-child strong { color: var(--m4-cyan); }
.nrfi-m4__reach-rate {
    display: inline-block;
    min-width: 47px;
    padding: 3px 6px;
    color: #8fffd4;
    background: rgba(38, 211, 157, .12);
    border-radius: 999px;
    font-weight: 900;
}
.nrfi-m4__reach-rate--any {
    color: #8ee7ff;
    background: rgba(85, 215, 255, .12);
}
.nrfi-m4__reach-rate--strikeout {
    color: #ffd36f;
    background: rgba(255, 184, 77, .13);
}
.nrfi-m4__reach-rate--hr {
    color: #ff9caa;
    background: rgba(255, 91, 116, .14);
}

@media (max-width: 760px) {
    .nrfi-m4__pitcher-order-details > summary { align-items: flex-start; flex-wrap: wrap; }
    .nrfi-m4__pitcher-order-details > summary small { width: calc(100% - 34px); margin-left: 0; }
}
