/* Compact statistics dashboard */
.statistics-page {
    --stat-ink: #182033;
    --stat-muted: #515c6d;
    --stat-line: #d6dce5;
    --stat-blue: #344d91;
    --stat-red: #c92b32;
    --stat-green: #26755b;
    color: var(--stat-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-synthesis: none;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.statistics-page *,
.statistics-page *::before,
.statistics-page *::after {
    box-sizing: border-box;
}

.statistics-page button,
.statistics-page input,
.statistics-page select {
    font: inherit;
}

.statistics-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
    align-items: center;
    gap: 24px;
    min-height: 168px;
    margin: 0 0 10px;
    padding: 22px 24px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .12), transparent 32%),
        linear-gradient(120deg, #1b2e5e 0%, #304f96 100%);
    box-shadow: 0 9px 24px rgba(30, 48, 89, .13);
}

.statistics-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #ffe0e2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.statistics-eyebrow i {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ff565d;
}

.statistics-hero h1 {
    margin: 0;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.statistics-hero__copy > p,
.statistics-hero p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.statistics-filter {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) auto;
    align-items: end;
    gap: 9px;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    background: rgba(12, 27, 62, .33);
    box-shadow: none;
}

.statistics-filter .statistics-draws-field {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: #fff;
    font-weight: 400;
}

.statistics-draws-field > span {
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.statistics-draws-field select,
.statistics-filter select {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 32px 0 11px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 4px;
    outline: 0;
    color: #20283a;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.statistics-draws-field select:focus {
    border-color: #b8c8ff;
    box-shadow: 0 0 0 3px rgba(184, 200, 255, .2);
}

.statistics-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 130px;
    height: 40px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: #d93036;
    box-shadow: 0 5px 13px rgba(151, 16, 23, .24);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .16s ease, transform .16s ease;
}

.statistics-filter button:hover {
    background: #e43b41;
    transform: translateY(-1px);
}

.statistics-filter button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .35);
    outline-offset: 2px;
}

.statistics-filter button:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.statistics-filter button svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.statistics-alert {
    margin: 0 0 10px;
    padding: 11px 13px;
    border: 1px solid #f1c4c6;
    border-radius: 4px;
    color: #971d23;
    background: #fff4f4;
    font-size: 12px;
}

.statistics-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid var(--stat-line);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(28, 43, 75, .04);
}

.statistics-summary article {
    display: flex;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 12px 14px;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border: 0;
    border-right: 1px solid var(--stat-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.statistics-summary article:last-child {
    border-right: 0;
}

.statistics-summary article.is-highlighted {
    background: #fff9f9;
}

.statistics-summary article > span {
    display: block;
    overflow: hidden;
    color: #4f5a6b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-summary article > strong {
    margin: 1px 0 0;
    color: #1d2637;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.statistics-summary article.is-highlighted > strong {
    color: var(--stat-red);
}

.statistics-summary article > small {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: #5f6979;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-status-counts {
    display: flex;
    align-items: end;
    gap: 11px;
    margin-top: 4px;
}

.statistics-status-counts b {
    display: grid;
    min-width: 0;
    gap: 0;
    font-weight: 400;
}

.statistics-status-counts b > strong {
    color: #344054;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.05;
}

.statistics-status-counts b > small {
    color: #596475;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.statistics-status-counts .is-hot > strong { color: var(--stat-red); }
.statistics-status-counts .is-cold > strong { color: var(--stat-blue); }
.statistics-status-counts .is-never > strong { color: #626b79; }

.statistics-pascal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 10px;
    padding: 18px 20px;
    scroll-margin-top: 84px;
    border: 1px solid #d6dce5;
    border-left: 4px solid var(--stat-blue);
    border-radius: 5px;
    background: linear-gradient(105deg, #fff 0%, #f5f7fc 100%);
    box-shadow: 0 5px 16px rgba(28, 43, 75, .04);
}

.statistics-pascal__copy > span {
    display: block;
    color: var(--stat-red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.statistics-pascal h2 {
    margin: 3px 0 6px;
    color: var(--stat-ink);
    font-size: 20px;
    line-height: 1.3;
}

.statistics-pascal__copy p {
    max-width: 720px;
    margin: 0;
    color: var(--stat-muted);
    font-size: 14px;
    line-height: 1.6;
}

.statistics-pascal__copy a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    color: var(--stat-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.statistics-pascal__copy a:hover,
.statistics-pascal__copy a:focus-visible {
    color: var(--stat-red);
}

.statistics-pascal__result {
    display: grid;
    min-width: 188px;
    justify-items: center;
    gap: 7px;
    padding: 13px 16px;
    border: 1px solid #d8deea;
    border-radius: 4px;
    background: #fff;
}

.statistics-pascal__result > span,
.statistics-pascal__result small {
    color: #5c6677;
    font-size: 12px;
}

.statistics-pascal__result > div {
    display: flex;
    gap: 7px;
}

.statistics-pascal__result strong {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    background: var(--stat-red);
}

.statistics-results-head {
    margin: 0 0 10px;
    padding: 14px;
    border: 1px solid var(--stat-line);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(28, 43, 75, .035);
}

.statistics-results-title {
    margin: 0 0 10px;
}

.statistics-results-title > span {
    display: block;
    color: var(--stat-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.statistics-results-title h2 {
    margin: 2px 0 0;
    color: #1d2637;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.statistics-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.statistics-tabs {
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 2px;
    overflow-x: auto;
    padding: 3px;
    border: 1px solid #e0e5ed;
    border-radius: 4px;
    background: #f3f5f8;
    scrollbar-width: none;
}

.statistics-tabs::-webkit-scrollbar {
    display: none;
}

.statistics-tabs button,
.statistics-tabs button:first-child,
.statistics-tabs button:last-child {
    flex: 0 0 auto;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 9px;
    border: 0;
    border-radius: 3px;
    color: #3f4a5c;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.statistics-tabs button:hover {
    color: var(--stat-blue);
}

.statistics-tabs button.is-active {
    color: #fff;
    background: var(--stat-blue);
    box-shadow: none;
}

.statistics-tabs button:focus-visible {
    outline: 2px solid #91a4d7;
    outline-offset: 1px;
}

.statistics-tools {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.statistics-search {
    position: relative;
    display: block;
    flex: 0 1 130px;
    min-width: 105px;
}

.statistics-search svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 10px;
    width: 14px;
    fill: none;
    stroke: #596577;
    stroke-linecap: round;
    stroke-width: 1.6;
    transform: translateY(-50%);
    pointer-events: none;
}

.statistics-search input,
.statistics-sort select,
.statistics-toolbar select {
    height: 38px;
    margin: 0;
    border: 1px solid #d8dee8;
    border-radius: 4px;
    outline: 0;
    color: #273244;
    background-color: #fff;
    font-size: 12px;
    font-weight: 400;
}

.statistics-search input {
    width: 100%;
    padding: 0 9px 0 30px;
}

.statistics-search input::placeholder {
    color: #5d6879;
    opacity: 1;
}

.statistics-sort {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.statistics-sort__label {
    color: #4f5a6b;
    font-size: 11px;
    white-space: nowrap;
}

.statistics-sort select,
.statistics-toolbar select {
    width: 126px;
    padding: 0 28px 0 9px;
}

.statistics-search input:focus,
.statistics-sort select:focus {
    border-color: #8298d0;
    box-shadow: 0 0 0 3px rgba(52, 77, 145, .09);
}

.statistics-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf0f4;
    color: #535e6f;
    font-size: 11px;
    line-height: 1.4;
}

.statistics-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.statistics-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d8694;
}

.statistics-legend i.is-hot { background: var(--stat-red); }
.statistics-legend i.is-cold { background: var(--stat-blue); }
.statistics-legend i.is-never { background: #7d8694; }

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.number-stat-card {
    --card-accent: #26755b;
    --card-soft: #edf8f4;
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dde3eb;
    border-left: 3px solid var(--card-accent);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(28, 43, 75, .04);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.number-stat-card:hover {
    box-shadow: 0 7px 18px rgba(28, 43, 75, .08);
}

.number-stat-card[hidden] {
    display: none;
}

.number-stat-card.status-hot {
    --card-accent: #cf2d34;
    --card-soft: #fff0f1;
}

.number-stat-card.status-cold {
    --card-accent: #344d91;
    --card-soft: #eef2ff;
}

.number-stat-card.status-never {
    --card-accent: #737d8d;
    --card-soft: #f0f2f5;
}

.number-stat-card .number-stat-top,
.number-stat-card.status-hot .number-stat-top,
.number-stat-card.status-cold .number-stat-top,
.number-stat-card.status-never .number-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

.number-stat-top > div {
    display: grid;
    gap: 0;
}

.number-stat-top small {
    color: #566172;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.number-stat-card .number-stat-top strong {
    color: var(--card-accent);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
}

.number-stat-card .number-stat-top > span {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 8px;
    border-radius: 4px;
    color: var(--card-accent);
    background: var(--card-soft);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.number-stat-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 10px;
    padding: 9px 10px;
    border-radius: 3px;
    background: #f6f8fb;
}

.number-stat-primary > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.number-stat-primary > div + div {
    padding-left: 10px;
    border-left: 1px solid #e0e5ed;
    text-align: right;
}

.number-stat-primary span {
    overflow: hidden;
    color: #4f5a6b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.number-stat-primary strong {
    color: #202a3c;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.number-stat-primary > div:last-child strong {
    color: var(--card-accent);
}

.number-stat-primary strong small {
    color: #525d6e;
    font-size: 11px;
    font-weight: 400;
}

.number-stat-card dl {
    display: grid;
    grid-template-columns: .9fr .9fr 1.35fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

.number-stat-card dl > div,
.number-stat-card dl > div:nth-child(2),
.number-stat-card dl > div:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid #e5e9ef;
    text-align: center;
}

.number-stat-card dl > div:first-child {
    padding-left: 0;
}

.number-stat-card dl > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.number-stat-card dt {
    overflow: hidden;
    color: #525d6e;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.number-stat-card dd {
    overflow: hidden;
    margin: 0;
    color: #202a3c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-empty,
.statistics-no-match {
    margin: 0;
    padding: 36px 18px;
    border: 1px dashed #d6dce6;
    border-radius: 4px;
    color: var(--stat-muted);
    background: #fff;
    text-align: center;
}

.statistics-empty strong,
.statistics-empty span {
    display: block;
}

.statistics-empty strong {
    margin-bottom: 4px;
    color: var(--stat-ink);
    font-size: 14px;
    font-weight: 600;
}

.statistics-empty span,
.statistics-no-match {
    font-size: 12px;
}

.statistics-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0 0;
    padding: 11px 13px;
    border: 1px solid #dfe4ec;
    border-left: 3px solid #9ca8ba;
    border-radius: 3px;
    color: #4f5a6b;
    background: #f7f9fb;
}

.statistics-note__icon {
    display: grid;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #7b8799;
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
}

.statistics-note strong {
    display: block;
    margin-bottom: 1px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.statistics-note p {
    margin: 0;
    color: #4f5a6b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.statistics-page.is-loading {
    cursor: wait;
}

.statistics-page.is-loading .statistics-summary,
.statistics-page.is-loading .statistics-results-head,
.statistics-page.is-loading .statistics-grid,
.statistics-page.is-loading .statistics-note {
    opacity: .48;
    pointer-events: none;
}

/* Prevent the desktop navigation from overflowing at tablet widths. */
@media (min-width: 761px) and (max-width: 920px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 12px;
        width: min(100% - 28px, 760px);
        min-height: 60px;
        padding-block: 8px;
    }

    .site-brand {
        min-width: 0;
    }

    .site-menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        margin-top: 8px;
        overflow: hidden;
        border-color: rgba(255, 255, 255, .34);
        border-radius: 3px;
        background: rgba(83, 14, 24, .2);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a,
    .site-nav .trial-nav-link,
    .site-nav .statistics-nav-link,
    .site-nav .prediction-nav-link {
        display: flex;
        width: 100%;
        min-height: 43px;
        align-items: center;
        justify-content: center;
        padding: 9px 7px;
        border: 0;
        border-right: 1px solid rgba(255, 255, 255, .2);
        color: #fff;
        background: transparent;
        box-shadow: none;
        font-size: 12px;
        text-align: center;
    }

    .site-nav a:last-child {
        border-right: 0;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a.is-active {
        color: #182033;
        background: #fff;
    }
}

@media (max-width: 700px) {
    .statistics-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        padding: 19px;
    }

    .statistics-hero h1 {
        font-size: 26px;
    }

    .statistics-filter {
        max-width: none;
    }

    .statistics-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-summary article:nth-child(2) {
        border-right: 0;
    }

    .statistics-summary article:nth-child(-n+2) {
        border-bottom: 1px solid var(--stat-line);
    }

    .statistics-toolbar {
        grid-template-columns: 1fr;
    }

    .statistics-tabs {
        width: 100%;
    }

    .statistics-tools {
        justify-content: stretch;
    }

    .statistics-search {
        flex: 1 1 auto;
    }

    .statistics-pascal {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .statistics-pascal__result {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .statistics-page {
        padding-inline: 4px;
    }

    .statistics-hero {
        padding: 17px 15px;
        border-radius: 5px;
    }

    .statistics-hero h1 {
        font-size: 23px;
    }

    .statistics-filter {
        grid-template-columns: 1fr;
    }

    .statistics-filter button {
        grid-column: auto;
        width: 100%;
    }

    .statistics-summary article {
        min-height: 72px;
        padding: 10px 11px;
    }

    .statistics-status-counts {
        gap: 7px;
    }

    .statistics-results-head {
        padding: 12px;
    }

    .statistics-tools {
        display: grid;
        grid-template-columns: 1fr;
    }

    .statistics-sort {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .statistics-sort select,
    .statistics-toolbar select {
        width: 100%;
    }

    .statistics-legend {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .statistics-page *,
    .statistics-page *::before,
    .statistics-page *::after {
        transition-duration: .01ms !important;
    }
}
