#odds-lab .od-lab-shell { max-width: 1200px; }

.pv-history {
    --pvh-line: #284a54;
    --pvh-muted: #9bb6bf;
    --pvh-surface: #0b242c;
    --pvh-teal: #41cae8;
    padding: clamp(12px, 2vw, 22px);
    border: 1px solid var(--pvh-line);
    border-radius: 8px;
    background: linear-gradient(135deg, #0b2932, #081e26);
    color: #e3f0f4;
    min-width: 0;
}
.pv-history [hidden] { display: none !important; }
.pv-history button, .pv-history input, .pv-history select { font: inherit; color: inherit; }
.pv-history button { cursor: pointer; }
.pv-history button:focus-visible, .pv-history input:focus-visible,
.pv-history select:focus-visible, .pv-history canvas:focus-visible, .pv-history summary:focus-visible {
    outline: 2px solid #77dfec;
    outline-offset: 2px;
}
.pvh-heading, .pvh-footer, .pvh-message, .pvh-performance .performance-controls, .pvh-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.pvh-heading h3 { margin: 0 0 4px; font-size: 1.25rem; }
.pvh-heading p, .pvh-updated, .pvh-description { margin: 0; color: var(--pvh-muted); font-size: .76rem; }
.pvh-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 245px); align-items: start; }
.pvh-description summary { width: fit-content; cursor: pointer; color: #c7e1e9; }
.pvh-description p { margin: 6px 0; line-height: 1.45; }
.pvh-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr); gap: 12px; margin: 17px 0 10px; }
.pvh-picker { margin: 0; padding: 6px 9px 9px; border: 1px solid var(--pvh-line); min-width: 0; }
.pvh-picker legend, .pvh-inputs label { color: var(--pvh-muted); font-size: .72rem; padding: 0 4px; }
.pvh-options {
    --pvh-option-row: 30px;
    --pvh-option-gap: 4px;
    --pvh-option-padding: 3px;
    display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--pvh-option-gap);
    box-sizing: border-box;
    max-height: calc(4 * var(--pvh-option-row) + 3 * var(--pvh-option-gap) + 2 * var(--pvh-option-padding));
    overflow: auto; padding: var(--pvh-option-padding);
    scrollbar-width: thin; scrollbar-color: #397784 #0b252e;
}
@supports selector(::-webkit-scrollbar) {
    .pvh-options { scrollbar-width: auto; scrollbar-color: auto; }
    .pvh-options::-webkit-scrollbar { width: 8px; height: 8px; background: #0b252e; }
    .pvh-options::-webkit-scrollbar-thumb { border-radius: 0; background: #397784; }
    .pvh-options::-webkit-scrollbar-thumb:hover { background: #54a1ae; }
    .pvh-options::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
.pvh-options label {
    --pvh-option-color: var(--pvh-teal);
    position: relative;
    display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
    box-sizing: border-box;
    max-width: 100%; height: var(--pvh-option-row); padding: 3px 6px;
    border: 1px solid color-mix(in srgb, var(--pvh-option-color) 25%, #25444e);
    background: color-mix(in srgb, var(--pvh-option-color) 7%, #0a2028);
    border-radius: 3px; cursor: pointer; font-size: .72rem;
}
[data-pvh-books] label[style] .pvh-option-content { color: var(--pvh-option-color); }
.pvh-options label:hover {
    background: color-mix(in srgb, var(--pvh-option-color) 12%, #0a2028);
}
.pvh-options label:has(input:checked) {
    border-color: var(--pvh-option-color);
}
.pvh-options label:has(input:focus-visible) { outline: 2px solid #77dfec; outline-offset: 1px; }
.pvh-option-content { display: inline-flex; gap: 5px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvh-option-content > span:not(.alert-sport-glyph) { overflow: hidden; text-overflow: ellipsis; }
.pvh-option-content img, .pvh-option-content .alert-sport-glyph { width: 18px; height: 18px; flex: none; }
.pvh-option-content img { object-fit: contain; }
.pvh-option-content .alert-sport-glyph { display: grid; place-items: center; color: var(--sport-color); }
.pvh-option-content svg { width: 16px; height: 16px; }
.pvh-options input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.pvh-inputs { display: grid; gap: 5px; }
.pvh-inputs > label { padding: 0; }
.pvh-bankroll input { width: 100%; padding: 4px 8px; color-scheme: dark; }
.pvh-bankroll { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; background: #10424e; border: 1px solid #2d6977; }
.pvh-bankroll input { min-width: 0; height: 30px; border: 0; border-radius: 0; background: transparent; text-align: center; font-weight: 700; appearance: textfield; }
.pvh-bankroll input::-webkit-inner-spin-button, .pvh-bankroll input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.pvh-bankroll button { padding: 0; background: transparent; border: 0; border-inline-end: 1px solid #2d6977; color: #8bccd9; font-size: 1.05rem; line-height: 1; }
.pvh-bankroll button:last-child { border-inline: 1px solid #2d6977; border-inline-end: 0; }
.pvh-bankroll button:hover:not(:disabled) { background: #195564; color: #e0faff; }
.pvh-bankroll button:disabled { opacity: .45; cursor: default; }
.pvh-message { justify-content: flex-start; min-height: 28px; font-size: .75rem; color: var(--pvh-muted); margin-bottom: 6px; }
.pvh-message:has(button:not([hidden])) { color: #ffb7b4; }
.pvh-message button, .pvh-selection button { padding: 4px 7px; border: 1px solid var(--pvh-line); background: #11313d; }
.pvh-layout { display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); align-items: stretch; gap: 12px; }
.pvh-layout[aria-busy=true] { opacity: .6; }
.pvh-layout[aria-busy=true] .pvh-empty { display: none; }
.pvh-stats { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pvh-total { margin-bottom: 5px; }
.pvh-total { padding: 10px; text-align: center; background: linear-gradient(100deg, #114958, #102b36); border: 1px solid #307d91; }
.pvh-total span { display: block; color: #b4d3dd; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pvh-total strong { color: var(--pvh-teal); font-size: clamp(1.35rem, 2.4vw, 2rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pvh-total strong[data-negative] { color: #ffaaa4; }
.pvh-stat-grid, .pvh-averages, .pvh-status-grid { display: grid; gap: 2px; margin: 0; }
.pvh-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pvh-averages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pvh-status-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pvh-stat-grid > div, .pvh-averages > div { background: linear-gradient(125deg, #152e37, #102730); padding: 7px 6px; min-width: 0; }
.pvh-stat-grid > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 5px; }
.pvh-stat-grid dt, .pvh-averages dt { color: var(--pvh-muted); font-size: .66rem; }
.pvh-stat-grid dt { display: inline-flex; align-items: center; gap: 3px; }
.pv-history .pvh-stat-info { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; padding: 0; color: #94bac5; background: transparent; border: 0; border-radius: 50%; cursor: help; }
.pvh-stat-info svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; }
.pv-history .pvh-stat-info:is(:hover,:focus-visible) { color: #dbf8ff; background: #19424d; }
.pvh-quick-tooltip { position: fixed; inset: auto; z-index: 5001; display: grid; gap: 7px; margin: 0; padding: 10px 12px; border: 1px solid #3c6573; border-radius: 3px; background: #0a2631; color: #daedf2; box-shadow: 0 5px 14px #0007; width: min(300px, calc(100vw - 16px)); font-size: .72rem; line-height: 1.45; pointer-events: none; }
.pvh-tip-formula { color: #9de5ef; }
.pvh-stat-grid dd, .pvh-averages dd { margin: 0; font-size: .74rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pvh-averages { text-align: center; }
.pvh-averages dt { display: flex; justify-content: center; align-items: center; gap: 3px; line-height: 1.2; }
.pvh-averages .pvh-stat-info { flex: none; }
.pvh-averages > div { display: grid; grid-template-rows: minmax(1.25em, auto) auto; align-items: center; }
.pvh-averages dd { margin-top: 4px; }
.pvh-status-grid button, .pvh-grouping button {
    padding: 5px 3px; min-width: 0; border: 1px solid transparent; background: #112c36; font-size: .67rem;
}
.pvh-status-grid button[data-pvh-result=won] { color: #85e3f8; background: #10404c; }
.pvh-status-grid button[data-pvh-result=lost] { color: #ffb0aa; background: #4e2d32; }
.pvh-status-grid button[data-pvh-result=void] { color: #ffd894; background: #453820; }
.pvh-status-grid button:hover, .pvh-grouping button:hover { border-color: #5a8997; }
.pvh-status-grid button[aria-pressed=true], .pvh-grouping button[aria-pressed=true] { border-color: #62bbc9; }
.pvh-performance { display: flex; flex-direction: column; min-width: 0; background: #0a2028; border: 1px solid var(--pvh-line); }
.pvh-performance .performance-controls { padding: 6px 7px; }
.pvh-series, .pvh-grouping { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.pvh-series button { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 0; padding: 3px; font-size: .67rem; }
.pvh-series button[aria-pressed=false] { opacity: .5; text-decoration: line-through; }
.pvh-series i { width: 12px; border-top: 2px solid var(--pvh-teal); }
.pvh-series [data-performance-series=ev] i { border-top: 2px dashed #4194e8; }
.pvh-series [data-performance-series=clv] i { border-top: 2px dashed #a982e8; }
.pvh-series [data-performance-series=bars] i { height: 8px; border: 0; background: repeating-linear-gradient(90deg, #41cae8 0 2px, transparent 2px 3px, #ff8e88 3px 5px, transparent 5px 6px); }
.pvh-grouping button { min-height: 25px; padding: 3px 6px; }
.pvh-selection { position: relative; justify-content: center; min-height: 28px; margin: 0 9px; padding: 2px 0; border-top: 1px solid #ffffff08; font-size: .67rem; }
.pvh-filter-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.pvh-selection .pvh-filter-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; max-width: 160px; padding: 0 5px 0 7px; border: 1px solid #2f5963; border-radius: 3px; background: linear-gradient(#17444e, #123039); }
.pvh-selection .pvh-filter-chip:hover { border-color: #41cae8; background: linear-gradient(#1c5260, #143d47); }
.pvh-filter-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pvh-filter-chip span:last-child { color: #b4d7dd; font-size: .85rem; }
.pvh-selection .pvh-filter-clear-all { padding: 0 5px; }
.pvh-filter-clear-all svg { width: 20px; height: 14px; stroke: currentColor; stroke-width: 1.6; }
.pvh-filter-limit { position: absolute; z-index: 2; top: 100%; padding: 6px 9px; border: 1px solid #66583a; color: #f6c269; background: #26231e; }
.pvh-plot { position: relative; flex: 1; min-height: 0; }
.pvh-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.pvh-empty { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; color: var(--pvh-muted); text-align: center; pointer-events: none; padding: 12px; font-size: .8rem; }
.pvh-chart-tooltip { position: fixed; z-index: 5000; pointer-events: none; display: none; padding: 8px 10px; color: #daedf2; background: #0a2631; border: 1px solid #3c6573; box-shadow: 0 8px 20px #0007; font: 11px/1.4 "Segoe UI", sans-serif; max-width: min(260px, 85vw); }
.pvh-chart-tooltip.chart-tooltip-visible { display: grid; gap: 3px; }
.pvh-chart-tooltip > div { display: flex; justify-content: space-between; gap: 12px; }
.pvh-footer { margin-top: 10px; color: var(--pvh-muted); font-size: .72rem; }
.pvh-date-ranges { display: flex; flex-wrap: wrap; gap: 4px; }
.pvh-date-ranges button {
    min-height: 28px; padding: 4px 8px; border: 1px solid var(--pvh-line);
    border-radius: 3px; background: #11313d; color: #c7e1e9;
}
.pvh-date-ranges button:hover { border-color: #5a8997; }
.pvh-date-ranges button[aria-pressed=true] { border-color: #62bbc9; background: #17444e; color: #e3f8fc; }
.pvh-footer .pvh-updated { margin-inline-start: auto; text-align: end; }
.pvh-recent { margin-top: 8px; color: #c7e1e9; font-size: .74rem; }
.pvh-recent > summary { width: fit-content; margin-inline: auto; padding: 4px 6px; cursor: pointer; }
.pvh-recent > summary:hover { color: #a5f4ff; }
.pvh-recent > p { margin: 8px 0; text-align: center; }
.pvh-recent > p:empty { display: none; }
.pvh-recent > button { display: block; margin: 0 auto 8px; padding: 4px 7px; border: 1px solid var(--pvh-line); background: #11313d; }
.pvh-match-list { display: grid; gap: 5px; list-style: none; padding: 0; margin: 8px 0 0; }
.pvh-match { display: grid; grid-template-columns: 7.5rem minmax(0, 2.3fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: stretch; gap: 6px; padding: 7px; border: 1px solid #214450; background: #0e2a34; }
.pvh-match-when, .pvh-match-bet { display: flex; align-items: center; gap: 7px; }
.pvh-match-sport { color: var(--sport-color, #83cfde); }
.pvh-match-sport svg { display: block; width: 20px; height: 20px; }
.pvh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pvh-match-time { display: grid; font-size: .65rem; color: var(--pvh-muted); }
.pvh-match-time b, .pvh-match-team b { color: #e2f5fb; font-variant-numeric: tabular-nums; }
.pvh-match-fixture { min-width: 0; padding-inline: 5px; }
.pvh-match-league { display: block; overflow-wrap: anywhere; color: var(--pvh-muted); }
.pvh-match-team { display: flex; justify-content: space-between; gap: 5px; font-weight: 650; color: #83e2d0; }
.pvh-match-team:last-child { color: #97ccf3; }
.pvh-match-team span { overflow-wrap: anywhere; }
.pvh-match-card { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 5px; text-align: center; overflow-wrap: anywhere; background: #102e3a; border: 1px solid #2b5260; }
.pvh-match-card small, .pvh-match-prices small { color: var(--pvh-muted); }
.pvh-match-market strong { color: #f6c676; }
.pvh-match-prices { display: grid; align-content: center; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 5px; }
.pvh-match-bet { display: flex; justify-content: center; column-gap: 10px; }
.pvh-match-bet img { width: 23px; height: 23px; flex: none; object-fit: contain; }
.pvh-match-terms { display: grid; }
.pvh-match-profit[data-outcome=won], .pvh-match-profit[data-outcome=half_won] { color: #86e6f7; background: #103f4c; }
.pvh-match-profit[data-outcome=lost], .pvh-match-profit[data-outcome=half_lost] { color: #ffb7b0; background: #392a32; }
.pvh-match-profit[data-outcome=void] { color: #ffd894; background: #343023; }
@media (max-width: 720px) {
    .pvh-match { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pvh-match-when { grid-column: 1; }
    .pvh-match-fixture { grid-column: 2 / -1; }
    .pvh-match-market, .pvh-match-prices, .pvh-match-bet { min-width: 0; }
    .pvh-match-profit { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; align-items: center; }
}
@media (max-width: 1050px) {
    .pvh-layout { grid-template-columns: minmax(0, 1fr); }
    .pvh-plot { min-height: clamp(235px, 45vw, 320px); }
}
@media (max-width: 560px) {
    .pvh-date-ranges { flex-basis: 100%; }
    .pvh-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .pvh-heading { grid-template-columns: minmax(0, 1fr) minmax(110px, 40%); gap: 8px; }
    .pvh-performance .performance-controls { gap: 5px; }
    .pvh-stat-grid > div { display: block; }
    .pvh-stat-grid dd { margin-top: 3px; }
}
@media (max-width: 440px) {
    .pvh-averages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
