:root {
    --mpb-shell-bg: #f3f6fb;
    --mpb-shell-card: #ffffff;
    --mpb-shell-ink: #13253e;
    --mpb-shell-muted: #5f7692;
    --mpb-shell-line: #d6dfeb;
    --mpb-shell-primary: #184fbc;
    --mpb-shell-primary-soft: #ebf1ff;
    --mpb-shell-shadow: 0 12px 30px rgba(16, 36, 64, 0.08);
}

body.mpb-public-shell {
    margin: 0;
    color: var(--mpb-shell-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(24, 79, 188, 0.1), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(19, 37, 62, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--mpb-shell-bg) 100%);
    font-family: "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
}

body.mpb-public-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(114, 134, 159, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 134, 159, 0.09) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.16;
}

.mpb-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mpb-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #49688f;
}

.mpb-svg-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.mpb-svg-icon.is-inline-heading {
    width: 15px;
    height: 15px;
    color: #4a698f;
}

.mpb-shell-brand .mpb-svg-icon.mpb-brand-icon {
    width: 22px;
    height: 22px;
    color: #1a4daf;
}

.mpb-hero-brand-mark .mpb-svg-icon.is-hero-brand {
    width: 30px;
    height: 30px;
    color: #1a4daf;
}

.mpb-hero-kicker .mpb-svg-icon.is-kicker {
    width: 14px;
    height: 14px;
    color: #6180a5;
}

.mpb-hero-card h1 .mpb-svg-icon.is-title {
    width: 19px;
    height: 19px;
    color: #254f81;
}

.mpb-footer-wordmark .mpb-svg-icon.is-footer {
    width: 15px;
    height: 15px;
    color: #355d8f;
}
.mpb-shell-layout {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.mpb-shell-container {
    width: min(1140px, calc(100% - 28px));
    margin: 0 auto;
}

.mpb-shell-header {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid var(--mpb-shell-line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(7px);
}

.mpb-shell-header-inner {
    width: min(1140px, calc(100% - 28px));
    margin: 0 auto;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mpb-shell-brand {
    text-decoration: none;
    color: var(--mpb-shell-ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mpb-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 28%, transparent 30%),
        conic-gradient(from 90deg, #1f59c8, #1a4caf 60%, #143784 100%);
    box-shadow: inset 0 0 0 1px rgba(11, 35, 76, 0.35);
}

.mpb-brand-text {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.mpb-shell-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mpb-shell-nav a {
    text-decoration: none;
    color: #233b5a;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 11px;
    transition: all 0.2s ease;
}

.mpb-shell-nav a:hover {
    color: var(--mpb-shell-primary);
    border-color: #ccdaf3;
    background: #f6f9ff;
}

.mpb-shell-nav .is-active a {
    color: var(--mpb-shell-primary);
    border-color: #bfd0f2;
    background: var(--mpb-shell-primary-soft);
}

.mpb-shell-main {
    padding: 20px 0 30px;
}

.mpb-hero-card,
.mpb-page-section,
.mpb-value-item,
.mpb-info-card,
.mpb-check-item,
.mpb-faq-item,
.mpb-contact-wrap {
    background: var(--mpb-shell-card);
    border: 1px solid var(--mpb-shell-line);
    border-radius: 14px;
    box-shadow: var(--mpb-shell-shadow);
}

.mpb-hero-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    margin-bottom: 14px;
}

.mpb-hero-kicker {
    margin: 0 0 6px;
    color: var(--mpb-shell-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
}

.mpb-hero-card h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.mpb-hero-subtitle {
    margin: 8px 0 0;
    color: #36506f;
    max-width: 880px;
}

.mpb-hero-accent {
    position: absolute;
    right: -36px;
    top: -30px;
    width: 140px;
    height: 140px;
    border: 1px solid #d7e3f8;
    border-radius: 50%;
    opacity: 0.75;
}

.mpb-content-stack > * {
    margin-bottom: 14px;
}

.mpb-page-section {
    padding: 16px;
}

.mpb-page-section h2 {
    margin-top: 0;
}

.mpb-value-row,
.mpb-info-grid,
.mpb-check-grid {
    display: grid;
    gap: 12px;
}

.mpb-value-row {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.mpb-info-grid,
.mpb-check-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.mpb-value-item,
.mpb-info-card,
.mpb-check-item {
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.mpb-value-item::after,
.mpb-info-card::after,
.mpb-check-item::after {
    content: "";
    position: absolute;
    top: -26px;
    right: -26px;
    width: 82px;
    height: 82px;
    border: 1px solid #d8e5fb;
    border-radius: 50%;
}

.mpb-value-item h3,
.mpb-info-card h3,
.mpb-check-item h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
}

.mpb-page-section h2 .mpb-icon-text,
.mpb-value-item h3 .mpb-icon-text,
.mpb-info-card h3 .mpb-icon-text,
.mpb-check-item h3 .mpb-icon-text,
.mpb-faq-item summary .mpb-icon-text {
    gap: 8px;
}
.mpb-value-item p,
.mpb-info-card p,
.mpb-check-item p {
    margin: 0;
    color: #48607e;
    font-size: 13px;
}

.mpb-faq-list {
    display: grid;
    gap: 10px;
}

.mpb-faq-item {
    overflow: hidden;
    box-shadow: none;
}

.mpb-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    background: #f7faff;
    font-weight: 700;
}

.mpb-faq-item summary::-webkit-details-marker {
    display: none;
}

.mpb-faq-item p {
    margin: 0;
    padding: 12px 14px 14px;
    border-top: 1px solid #e7eef9;
    color: #405a79;
}

.mpb-inline-link {
    color: var(--mpb-shell-primary);
    text-decoration: none;
    font-weight: 600;
}

.mpb-inline-link:hover {
    text-decoration: underline;
}

.mpb-sep {
    margin: 0 6px;
    color: #8a9bb3;
}

/* Contact form polish */
.mpb-contact-wrap {
    padding: 16px;
}

.mpb-contact-form p {
    margin: 0 0 11px;
}

.mpb-contact-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--mpb-shell-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    font-weight: 700;
}

.mpb-contact-form input,
.mpb-contact-form textarea {
    width: 100%;
    border: 1px solid #d4deec;
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--mpb-shell-ink);
    background: #ffffff;
}

.mpb-contact-form input:focus,
.mpb-contact-form textarea:focus {
    outline: none;
    border-color: #8ab0ef;
    box-shadow: 0 0 0 2px rgba(57, 111, 210, 0.12);
}

.mpb-contact-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.mpb-contact-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Tool integration */
.mpb-content-stack .mpb-tool {
    margin-top: 0;
}

/* Footer */
.mpb-shell-footer {
    margin-top: 20px;
    border-top: 1px solid var(--mpb-shell-line);
    background: #ffffff;
}

.mpb-footer-inner {
    padding: 18px 0 22px;
    display: grid;
    gap: 10px;
}

.mpb-footer-wordmark {
    color: var(--mpb-shell-ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mpb-footer-brand-wrap p {
    margin: 5px 0 0;
    color: #4f6784;
    font-size: 13px;
}

.mpb-footer-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mpb-footer-nav a {
    color: #253f60;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.mpb-footer-nav a:hover {
    color: var(--mpb-shell-primary);
}

.mpb-footer-copy {
    margin: 0;
    color: #6f829b;
    font-size: 12px;
}

@media (max-width: 960px) {
    .mpb-shell-nav ul {
        gap: 8px;
    }

    .mpb-value-row,
    .mpb-info-grid,
    .mpb-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .mpb-shell-header-inner {
        min-height: 0;
        padding: 11px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .mpb-shell-nav ul {
        width: 100%;
    }

    .mpb-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Backtested accuracy section */
.mpb-backtest-section {
    background: #ffffff;
    border: 1px solid var(--mpb-shell-line);
    border-radius: 14px;
    box-shadow: var(--mpb-shell-shadow);
    padding: 16px;
}

.mpb-backtest-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.mpb-backtest-head p {
    margin: 0;
    color: #47607f;
}

.mpb-backtest-helper {
    margin-top: 8px !important;
    font-size: 12px;
    color: #5c7492 !important;
}

.mpb-backtest-filters {
    margin-top: 10px;
}

.mpb-backtest-filter-row {
    display: grid;
    gap: 10px;
    align-items: end;
}

.mpb-backtest-filter-row.is-primary {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    margin-bottom: 8px;
}

.mpb-backtest-filter-row.is-secondary {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    margin-bottom: 0;
}

.mpb-backtest-examples-filters-wrap {
    margin-top: 12px;
    padding-top: 2px;
}

.mpb-backtest-subhead {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5b7390;
}

.mpb-backtest-filters label {
    display: block;
    color: var(--mpb-shell-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mpb-backtest-filters select {
    margin-top: 6px;
    width: 100%;
    min-height: 38px;
    border: 1px solid #d4deec;
    border-radius: 8px;
    padding: 7px 9px;
    color: var(--mpb-shell-ink);
    background: #ffffff;
}

.mpb-backtest-filter-noscript {
    margin-top: 8px;
}

.mpb-backtest-counts {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 16px;
    font-size: 12px;
    color: #5f7896;
}

.mpb-backtest-counts strong {
    color: #2a4464;
    font-weight: 700;
}

.mpb-backtest-cards {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 10px;
}

.mpb-backtest-cards article {
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f9fbff;
    padding: 10px;
    min-height: 82px;
}

.mpb-backtest-cards span {
    display: block;
    font-size: 11px;
    color: #617a98;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mpb-backtest-cards strong {
    display: block;
    margin-top: 4px;
    font-size: 1.02rem;
    line-height: 1.25;
    color: #1c3655;
}

.mpb-backtest-cards small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #7a8fa9;
}

.mpb-backtest-draw-panel {
    margin-top: 12px;
}

.mpb-backtest-validation-panel {
    border-style: dashed;
    background: #fbfdff;
}

.mpb-backtest-validation-panel h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.mpb-backtest-draw-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 10px;
}

.mpb-backtest-draw-cards article {
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f9fbff;
    padding: 10px;
}

.mpb-backtest-draw-cards span {
    display: block;
    font-size: 11px;
    color: #617a98;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mpb-backtest-draw-cards strong {
    display: block;
    margin-top: 4px;
    font-size: 1.05rem;
    color: #1e3857;
}

.mpb-backtest-draw-cards small {
    display: block;
    margin-top: 5px;
    color: #6d84a1;
    font-size: 11px;
}

.mpb-backtest-league-draw-panel {
    margin-top: 12px;
}

.mpb-backtest-table.mpb-league-draw-validation-table {
    table-layout: auto;
    min-width: 860px;
}
.mpb-backtest-market-summary-panel {
    margin-top: 12px;
}

.mpb-backtest-examples-panel {
    margin-top: 12px;
}

.mpb-backtest-examples-head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding: 10px 0 6px;
    position: relative;
    overflow: hidden;
}

.mpb-backtest-examples-head::before {
    content: "";
    position: absolute;
    top: -104px;
    left: 50%;
    width: 280px;
    height: 220px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(71, 112, 185, 0.1) 0%, rgba(71, 112, 185, 0.03) 44%, transparent 70%);
    pointer-events: none;
}

.mpb-backtest-examples-head > * {
    position: relative;
    z-index: 1;
}

.mpb-backtest-examples-head h3 {
    margin: 0;
    font-size: clamp(1.2rem, 1.9vw, 1.44rem);
    line-height: 1.22;
}

.mpb-backtest-examples-head h3 .mpb-icon-text {
    justify-content: center;
}

.mpb-backtest-examples-head .mpb-backtest-mini-note {
    margin: 0;
    max-width: 54ch;
    line-height: 1.56;
}

.mpb-backtest-examples-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 12px;
}

.mpb-backtest-examples-toolbar .mpb-backtest-table-meta {
    margin: 0;
}

.mpb-backtest-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mpb-backtest-table-meta {
    margin: -2px 0 10px;
    font-size: 12px;
    color: #5f7896;
}

.mpb-backtest-table.mpb-market-summary-table {
    table-layout: auto;
    min-width: 900px;
}

.mpb-market-summary-table .is-market {
    white-space: nowrap;
    font-weight: 700;
    color: #1f3a59;
}

.mpb-examples-table {
    min-width: 980px;
}

.mpb-backtest-mini-note {
    margin: -4px 0 10px;
    font-size: 12px;
    color: #68809e;
}

.mpb-backtest-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    overflow: hidden;
    font-size: 12px;
    table-layout: fixed;
}

.mpb-backtest-table thead th {
    background: #f5f9ff;
    color: #5d7491;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid #e0e9f6;
}

.mpb-backtest-table td {
    border-top: 1px solid #e5edf8;
    padding: 9px 8px;
    color: #29405f;
    vertical-align: middle;
}

.mpb-backtest-table tbody tr:first-child td {
    border-top: none;
}

.mpb-backtest-table .is-num {
    text-align: right;
    white-space: nowrap;
}

.mpb-examples-table .is-date {
    width: 78px;
    white-space: nowrap;
}

.mpb-examples-table .is-competition {
    width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpb-examples-table .is-match {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpb-examples-table .is-market-type {
    width: 118px;
    white-space: nowrap;
}

.mpb-examples-table .is-pred {
    width: 150px;
    text-align: center;
}

.mpb-examples-table .is-pred strong {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #1f3a59;
}

.mpb-examples-table .is-actual {
    width: 100px;
    white-space: nowrap;
}

.mpb-examples-table .is-result {
    width: 85px;
    white-space: nowrap;
}

.mpb-examples-table .is-confidence {
    width: 130px;
    white-space: nowrap;
}

.mpb-conf-score {
    display: inline-block;
    margin-left: 6px;
    color: #6d86a3;
    font-size: 11px;
}

.mpb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #ccdaec;
    color: #2a4464;
    background: #f4f8ff;
}

.mpb-badge-home,
.mpb-badge-away,
.mpb-badge-draw,
.mpb-badge-over_2_5,
.mpb-badge-under_2_5,
.mpb-badge-bts_yes,
.mpb-badge-bts_no,
.mpb-badge-market {
    background: #eef4ff;
    border-color: #cfdcf1;
    color: #27486c;
}

.mpb-badge-draw {
    background: #eef2f7;
    border-color: #d4dce7;
    color: #40546d;
}

.mpb-badge-under_2_5,
.mpb-badge-bts_no,
.mpb-badge-market {
    background: #eef2f7;
    border-color: #d4dce7;
    color: #40546d;
}

.mpb-badge-result.mpb-badge-hit {
    background: #edf5ff;
    border-color: #c7d9f4;
    color: #21466f;
}

.mpb-badge-result.mpb-badge-miss {
    background: #f2f4f8;
    border-color: #d7dce5;
    color: #4f5f76;
}

.mpb-badge-confidence.mpb-badge-high {
    background: #ebf4ff;
    border-color: #c7dbf4;
    color: #1f4670;
}

.mpb-badge-confidence.mpb-badge-medium {
    background: #f0f3f9;
    border-color: #d3dbe9;
    color: #415671;
}

.mpb-badge-confidence.mpb-badge-low {
    background: #f7f8fb;
    border-color: #dde2eb;
    color: #5b677a;
}

.mpb-backtest-pagination {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.mpb-backtest-pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.mpb-backtest-pagination-list li {
    margin: 0;
    padding: 0;
}

.mpb-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #d1dfef;
    color: #2a4565;
    text-decoration: none;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.mpb-page-link.is-nav {
    padding: 0 12px;
}

.mpb-page-link:hover {
    border-color: #b7cae3;
    background: #f4f8ff;
}

.mpb-page-link.is-active {
    border-color: #a8c1e2;
    background: #eaf2ff;
    color: #1b436c;
}

.mpb-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    min-width: 24px;
    color: #68809d;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .mpb-backtest-filter-row.is-primary {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .mpb-backtest-filter-row.is-secondary {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 960px) {
    .mpb-backtest-filter-row.is-primary,
    .mpb-backtest-filter-row.is-secondary {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .mpb-backtest-cards {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .mpb-backtest-draw-cards {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .mpb-examples-table .is-market-type,
    .mpb-examples-table .is-competition,
    .mpb-examples-table .is-pred,
    .mpb-examples-table .is-confidence {
        width: auto;
    }
}

@media (max-width: 620px) {
    .mpb-backtest-filter-row.is-primary,
    .mpb-backtest-filter-row.is-secondary {
        grid-template-columns: 1fr;
    }

    .mpb-backtest-cards,
    .mpb-backtest-draw-cards {
        grid-template-columns: 1fr;
    }

    .mpb-examples-table .is-match {
        white-space: normal;
    }
}

/* Async backtest module state */
.mpb-backtest-section {
    position: relative;
}

.mpb-backtest-section.is-loading::after {
    content: "Updating section...";
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #c6d7ef;
    background: #edf4ff;
    color: #2d4d74;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mpb-backtest-section.is-loading .mpb-backtest-head,
.mpb-backtest-section.is-loading .mpb-backtest-filters,
.mpb-backtest-section.is-loading .mpb-backtest-counts,
.mpb-backtest-section.is-loading .mpb-panel,
.mpb-backtest-section.is-loading .mpb-backtest-cards {
    opacity: 0.66;
    transition: opacity 0.18s ease;
}




/* ===== 2026 Public refinement pass ===== */
:root {
    --mpb-surface-canvas: #f3f7fc;
    --mpb-surface-panel: #ffffff;
    --mpb-surface-soft: #f7faff;
    --mpb-surface-soft-strong: #eef4ff;
    --mpb-line-soft: #e4ebf5;
    --mpb-line-strong: #d4deea;
    --mpb-text-strong: #102742;
    --mpb-text-body: #304964;
    --mpb-text-muted: #60738d;
    --mpb-text-soft: #7a8ea7;
    --mpb-accent: #1b57c2;
    --mpb-accent-strong: #163f92;
    --mpb-accent-soft: #edf4ff;
    --mpb-shadow-soft: 0 10px 26px rgba(16, 36, 64, 0.06);
    --mpb-shadow-panel: 0 18px 42px rgba(16, 36, 64, 0.08);
    --mpb-radius-panel: 18px;
    --mpb-radius-card: 14px;
}

body.mpb-public-shell {
    color: var(--mpb-text-strong);
    background:
        radial-gradient(circle at 12% 10%, rgba(27, 87, 194, 0.08), transparent 28%),
        radial-gradient(circle at 86% 2%, rgba(16, 39, 66, 0.06), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, var(--mpb-surface-canvas) 100%);
}

body.mpb-public-shell::before {
    background-size: 34px 34px;
    opacity: 0.11;
}

.mpb-shell-container,
.mpb-shell-header-inner {
    width: min(1180px, calc(100% - 36px));
}

.mpb-shell-layout {
    gap: 0;
}

.mpb-shell-header {
    border-bottom: 1px solid rgba(212, 222, 234, 0.88);
    background: rgba(247, 250, 254, 0.9);
    box-shadow: 0 1px 0 rgba(19, 41, 71, 0.04);
}

.mpb-shell-header-inner {
    min-height: 84px;
    padding: 12px 0;
}

.mpb-shell-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(212, 222, 234, 0.92);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--mpb-shadow-soft);
    backdrop-filter: blur(10px);
}

.mpb-shell-brand {
    gap: 12px;
}

.mpb-brand-text {
    font-size: 1.08rem;
    letter-spacing: 0.035em;
}

.mpb-shell-nav ul {
    gap: 10px;
}

.mpb-shell-nav a {
    color: #314b6b;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 9px 12px;
    border-color: transparent;
    background: transparent;
}

.mpb-shell-nav a:hover {
    color: var(--mpb-accent);
    border-color: rgba(204, 218, 243, 0.95);
    background: rgba(247, 250, 255, 0.98);
}

.mpb-shell-nav .is-active a {
    color: var(--mpb-accent-strong);
    border-color: rgba(187, 208, 242, 0.95);
    background: var(--mpb-accent-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mpb-shell-main {
    padding: 28px 0 42px;
}

.mpb-hero-card,
.mpb-page-section,
.mpb-value-item,
.mpb-info-card,
.mpb-check-item,
.mpb-faq-item,
.mpb-contact-wrap {
    background: var(--mpb-surface-panel);
    border-color: var(--mpb-line-strong);
    border-radius: var(--mpb-radius-panel);
    box-shadow: var(--mpb-shadow-soft);
}

.mpb-hero-card {
    padding: 28px 30px;
    margin-bottom: 18px;
    min-height: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
    box-shadow: var(--mpb-shadow-panel);
}

.mpb-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.mpb-shell-layout-home .mpb-hero-home {
    max-width: 980px;
    margin: 0 auto 18px;
    padding: 30px 34px 28px;
    background:
        radial-gradient(circle at 50% 4%, rgba(66, 110, 188, 0.14) 0%, rgba(66, 110, 188, 0.045) 24%, transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.99) 100%);
}

.mpb-shell-layout-home .mpb-hero-home::before,
.mpb-shell-layout-home .mpb-hero-home::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.mpb-shell-layout-home .mpb-hero-home::before {
    inset: 12px;
    z-index: 1;
    border-radius: calc(var(--mpb-radius-panel) - 4px);
    border: 1px solid rgba(217, 227, 243, 0.82);
    background: radial-gradient(circle at top center, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0) 58%);
}

.mpb-shell-layout-home .mpb-hero-home::after {
    top: -132px;
    left: 50%;
    z-index: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(70, 112, 186, 0.1) 0%, rgba(70, 112, 186, 0.03) 42%, transparent 70%);
    opacity: 0.9;
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-copy {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0;
}

.mpb-hero-kicker {
    margin-bottom: 6px;
    color: var(--mpb-text-muted);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-kicker .mpb-icon-text,
.mpb-shell-layout-home .mpb-hero-home h1 .mpb-icon-text {
    justify-content: center;
}

.mpb-hero-brand-lockup {
    display: flex;
    justify-content: center;
    margin: 4px 0 12px;
}

.mpb-hero-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(201, 215, 239, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 14px 30px rgba(16, 36, 64, 0.1);
}

.mpb-hero-card h1 {
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.mpb-shell-layout-home .mpb-hero-home h1 {
    max-width: 12ch;
    margin: 0;
    letter-spacing: -0.025em;
}

.mpb-hero-subtitle {
    margin-top: 10px;
    max-width: 62ch;
    color: var(--mpb-text-body);
    font-size: 15px;
    line-height: 1.56;
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-subtitle {
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
}

.mpb-hero-support {
    margin: 10px 0 0;
    max-width: 56ch;
    color: var(--mpb-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.mpb-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-meta {
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin-top: 18px;
    gap: 10px;
}

.mpb-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(210, 222, 241, 0.96);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(246, 250, 255, 0.88) 100%);
    color: #35506f;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 8px 18px rgba(23, 47, 84, 0.05);
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-meta-item {
    justify-content: center;
}

.mpb-hero-accent {
    top: -38px;
    right: -34px;
    width: 168px;
    height: 168px;
    border-color: rgba(212, 225, 244, 0.9);
    opacity: 0.82;
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-accent {
    top: -50px;
    right: 50%;
    width: 194px;
    height: 194px;
    transform: translateX(78%);
    opacity: 0.42;
}

.mpb-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(27, 87, 194, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 87, 194, 0.03) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(140deg, rgba(0, 0, 0, 0.1), transparent 68%);
}

.mpb-shell-layout-home .mpb-hero-home .mpb-hero-grid {
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), transparent 72%);
}

.mpb-content-stack > * {
    margin-bottom: 0;
}

.mpb-content-stack > * + * {
    margin-top: 18px;
}

.mpb-page-section {
    padding: 20px 22px;
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    box-shadow: var(--mpb-shadow-panel);
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child h2,
.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child p {
    max-width: 64ch;
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child h2 .mpb-icon-text {
    justify-content: center;
}

.mpb-page-section h2,
.mpb-page-intro h2,
.mpb-page-hero h2 {
    margin: 0 0 12px;
    font-size: clamp(1.1rem, 1.8vw, 1.42rem);
    line-height: 1.28;
    color: var(--mpb-text-strong);
}

.mpb-page-section p,
.mpb-info-card p,
.mpb-check-item p,
.mpb-value-item p,
.mpb-faq-item p,
.mpb-footer-brand-wrap p {
    color: var(--mpb-text-body);
    line-height: 1.62;
}

.mpb-page-section p + p {
    margin-top: 12px;
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child p:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child .mpb-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(206, 218, 236, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child .mpb-sep {
    display: none;
}

.mpb-value-row,
.mpb-info-grid,
.mpb-check-grid,
.mpb-faq-list {
    gap: 16px;
}

.mpb-value-item,
.mpb-info-card,
.mpb-check-item {
    padding: 18px;
    border-radius: var(--mpb-radius-card);
}

.mpb-value-item::after,
.mpb-info-card::after,
.mpb-check-item::after,
.mpb-value-item::before,
.mpb-info-card::before,
.mpb-check-item::before {
    width: 94px;
    height: 94px;
    border-color: rgba(219, 229, 245, 0.92);
    opacity: 0.62;
}

.mpb-value-item h3,
.mpb-info-card h3,
.mpb-check-item h3 {
    margin-bottom: 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.mpb-faq-item {
    border-radius: var(--mpb-radius-card);
    box-shadow: var(--mpb-shadow-soft);
}

.mpb-faq-item summary {
    padding: 15px 17px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    color: var(--mpb-text-strong);
    font-size: 14px;
}

.mpb-faq-item[open] summary {
    border-bottom: 1px solid #e4ebf5;
}

.mpb-faq-item p {
    padding: 15px 17px 17px;
    border-top: none;
}

.mpb-contact-wrap {
    padding: 22px;
}

.mpb-contact-form label {
    color: var(--mpb-text-muted);
    margin-bottom: 7px;
}

.mpb-contact-form input,
.mpb-contact-form textarea {
    min-height: 46px;
    padding: 11px 12px;
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--mpb-text-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mpb-contact-form textarea {
    min-height: 148px;
    resize: vertical;
}

.mpb-contact-form input:focus,
.mpb-contact-form textarea:focus {
    border-color: rgba(108, 150, 224, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 87, 194, 0.1);
}

.mpb-shell-footer {
    margin-top: 34px;
    border-top: 1px solid var(--mpb-line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.mpb-footer-inner {
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 30px 0 36px;
}

.mpb-footer-brand-wrap {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 600px;
}

.mpb-footer-wordmark {
    font-size: 1.12rem;
}

.mpb-footer-nav {
    justify-content: center;
    gap: 14px;
}

.mpb-footer-nav a {
    color: #314b6b;
    padding: 2px 0;
}

.mpb-footer-copy {
    text-align: center;
    color: var(--mpb-text-soft);
}

@media (max-width: 960px) {
    .mpb-shell-header-inner {
        padding: 10px 0;
    }

    .mpb-shell-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mpb-shell-nav ul {
        width: 100%;
    }

    .mpb-hero-card {
        padding: 24px 22px;
    }

    .mpb-shell-layout-home .mpb-hero-home {
        padding: 28px 24px 26px;
    }

    .mpb-shell-layout-home .mpb-hero-home::before {
        inset: 10px;
    }

    .mpb-hero-brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }
}

@media (max-width: 760px) {
    .mpb-shell-container,
    .mpb-shell-header-inner {
        width: min(100%, calc(100% - 24px));
    }

    .mpb-hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .mpb-hero-meta-item {
        width: 100%;
        justify-content: flex-start;
    }

    .mpb-shell-layout-home .mpb-hero-home {
        padding: 24px 20px;
    }

    .mpb-shell-layout-home .mpb-hero-home::before {
        inset: 8px;
    }

    .mpb-shell-layout-home .mpb-hero-home::after {
        width: 230px;
        height: 230px;
        top: -104px;
    }

    .mpb-hero-brand-lockup {
        margin-bottom: 8px;
    }

    .mpb-hero-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .mpb-hero-brand-mark .mpb-svg-icon.is-hero-brand {
        width: 26px;
        height: 26px;
    }

    .mpb-shell-layout-home .mpb-hero-home h1 {
        max-width: none;
    }

    .mpb-shell-layout-home .mpb-hero-home .mpb-hero-meta {
        align-items: stretch;
    }

    .mpb-shell-layout-home .mpb-hero-home .mpb-hero-meta-item {
        width: 100%;
        justify-content: center;
    }

    .mpb-hero-support {
        max-width: 34ch;
    }

    .mpb-page-section,
    .mpb-contact-wrap {
        padding: 18px;
    }

    .mpb-shell-layout-home .mpb-content-stack > .mpb-page-section:last-child {
        padding: 22px 18px;
    }

    .mpb-footer-inner {
        padding: 24px 0 30px;
    }
}

/* ===== 2026 Backtested accuracy refinement pass ===== */
.mpb-backtest-section {
    padding: 20px 22px;
    border-color: var(--mpb-line-strong);
    border-radius: var(--mpb-radius-panel);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: var(--mpb-shadow-soft);
}

.mpb-backtest-head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 8px 0 4px;
    position: relative;
    overflow: hidden;
}

.mpb-backtest-head::before {
    content: "";
    position: absolute;
    top: -112px;
    left: 50%;
    width: 300px;
    height: 240px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(71, 112, 185, 0.1) 0%, rgba(71, 112, 185, 0.03) 44%, transparent 70%);
    pointer-events: none;
}

.mpb-backtest-head > * {
    position: relative;
    z-index: 1;
}

.mpb-backtest-head h2 {
    margin: 0;
    font-size: clamp(1.28rem, 2vw, 1.56rem);
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.mpb-backtest-head h2 .mpb-icon-text {
    justify-content: center;
}

.mpb-backtest-kicker {
    margin: 0;
    color: var(--mpb-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mpb-backtest-intro {
    margin: 0;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.58;
}

.mpb-backtest-head p,
.mpb-backtest-top-pick-note,
.mpb-backtest-mini-note,
.mpb-backtest-helper,
.mpb-backtest-table-meta {
    color: var(--mpb-text-body) !important;
}

.mpb-backtest-top-pick-note {
    margin: 0;
    max-width: 60ch;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--mpb-text-strong) !important;
}

.mpb-backtest-head-note {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(100%, 760px);
    padding: 16px 18px;
    border: 1px solid rgba(201, 214, 235, 0.92);
    border-radius: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(77, 118, 191, 0.08) 0%, rgba(77, 118, 191, 0.02) 36%, transparent 68%),
        linear-gradient(180deg, rgba(252, 254, 255, 0.99) 0%, rgba(245, 249, 255, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        0 10px 22px rgba(23, 47, 84, 0.04);
}

.mpb-backtest-head-note::before {
    content: "";
    position: absolute;
    top: -56px;
    right: -24px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(210, 223, 243, 0.72);
    border-radius: 50%;
    opacity: 0.7;
}

.mpb-backtest-head-note .mpb-backtest-helper {
    margin: 0;
    max-width: 62ch;
    font-size: 13px;
    line-height: 1.56;
    color: var(--mpb-text-muted) !important;
}

.mpb-backtest-filter-row {
    gap: 12px;
}

.mpb-backtest-filter-row.is-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mpb-backtest-filter-row.is-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mpb-backtest-filters label {
    color: var(--mpb-text-muted);
    letter-spacing: 0.08em;
}

.mpb-backtest-filters select {
    min-height: 42px;
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
    padding: 9px 11px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.mpb-backtest-filters select:focus {
    outline: none;
    border-color: rgba(108, 150, 224, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 87, 194, 0.1);
}

.mpb-backtest-counts {
    gap: 8px;
    margin-top: 12px;
}

.mpb-backtest-examples-filters-wrap {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.mpb-backtest-table-utility {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.mpb-backtest-table-utility label {
    width: min(220px, 100%);
}

.mpb-backtest-counts > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--mpb-line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.mpb-backtest-card-sections {
    display: grid;
    gap: 14px;
}

.mpb-backtest-card-section {
    display: grid;
    gap: 10px;
}

.mpb-backtest-card-section-heading {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid var(--mpb-line-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--mpb-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.mpb-backtest-cards {
    gap: 12px;
    margin-top: 14px;
}

.mpb-backtest-card-section .mpb-backtest-cards {
    margin-top: 0;
}

.mpb-backtest-examples-summary {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--mpb-line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.mpb-backtest-examples-summary-head .mpb-backtest-mini-note {
    margin: 0;
}

.mpb-backtest-examples-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 10px;
}

.mpb-backtest-examples-summary-card {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mpb-backtest-examples-summary-card > span {
    color: var(--mpb-text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mpb-backtest-examples-summary-card strong {
    color: var(--mpb-text-strong);
    font-size: 1.06rem;
    line-height: 1.2;
}

.mpb-backtest-examples-summary-card small {
    color: var(--mpb-text-muted);
    font-size: 11px;
}

.mpb-backtest-cards article,
.mpb-backtest-draw-cards article {
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mpb-backtest-cards article {
    padding: 12px;
    min-height: 92px;
}

.mpb-backtest-cards article.is-top-pick-primary {
    border-color: rgba(75, 116, 186, 0.28);
    background: linear-gradient(180deg, rgba(246, 250, 255, 0.98) 0%, rgba(236, 244, 255, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 24px rgba(21, 49, 88, 0.05);
}

.mpb-backtest-cards article.is-top-pick-primary strong {
    font-size: 1.28rem;
}

.mpb-backtest-cards article.is-top-pick-support {
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
}

.mpb-backtest-cards strong,
.mpb-backtest-draw-cards strong {
    margin-top: 6px;
    font-size: 1.14rem;
    color: var(--mpb-text-strong);
}

.mpb-backtest-table {
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
    font-size: 12px;
    background: #ffffff;
}

.mpb-backtest-table thead th {
    padding: 11px 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    color: var(--mpb-text-muted);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.mpb-backtest-table td {
    padding: 11px 10px;
    border-top-color: var(--mpb-line-soft);
    color: var(--mpb-text-body);
}

.mpb-backtest-table tbody tr:nth-child(even) {
    background: rgba(248, 251, 255, 0.56);
}

.mpb-backtest-table tbody tr:hover {
    background: rgba(238, 244, 255, 0.82);
}

.mpb-examples-table .is-match {
    font-weight: 600;
    color: var(--mpb-text-strong);
}

.mpb-examples-table .is-competition,
.mpb-examples-table .is-date,
.mpb-examples-table .is-confidence {
    color: var(--mpb-text-muted);
}

.mpb-examples-table .is-pred strong {
    font-size: 13px;
    color: var(--mpb-text-strong);
}

.mpb-pred-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.mpb-badge {
    border-color: rgba(209, 219, 232, 0.98);
    background: #f5f8fd;
    color: #314a69;
}

.mpb-backtest-pagination {
    margin-top: 16px;
}

.mpb-actual-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.mpb-examples-table .is-actual {
    text-align: center;
}

.mpb-examples-table .is-actual .mpb-actual-stack {
    align-items: center;
    width: 100%;
}

.mpb-actual-scoreline {
    color: var(--mpb-text-muted);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}

.mpb-backtest-pagination-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.mpb-backtest-pagination-summary {
    color: var(--mpb-text-muted);
    font-size: 12px;
}

.mpb-page-link {
    min-height: 34px;
    min-width: 34px;
    padding: 0 12px;
    border-color: var(--mpb-line-strong);
    background: rgba(255, 255, 255, 0.94);
    color: #314b6b;
}

.mpb-page-link:hover {
    background: var(--mpb-accent-soft);
    border-color: #bfd0f2;
}

.mpb-page-link.is-active {
    background: var(--mpb-accent-soft);
    border-color: #b5caeb;
    color: var(--mpb-accent-strong);
}

.mpb-page-link.is-disabled {
    background: rgba(247, 250, 255, 0.78);
    color: #8aa0bd;
    border-color: var(--mpb-line-soft);
    cursor: default;
    pointer-events: none;
}

.mpb-backtest-pagination-list {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mpb-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 24px;
    color: var(--mpb-text-muted);
}

.mpb-backtest-page-jump {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.mpb-backtest-page-jump label {
    color: var(--mpb-text-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mpb-backtest-page-jump-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mpb-backtest-page-jump input[type="number"] {
    width: 86px;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--mpb-text-strong);
    text-align: center;
}

.mpb-backtest-page-jump input[type="number"]:focus {
    outline: none;
    border-color: rgba(108, 150, 224, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 87, 194, 0.1);
}

.mpb-page-jump-btn {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--mpb-text-strong);
    cursor: pointer;
}

.mpb-page-jump-btn:hover {
    background: var(--mpb-accent-soft);
    border-color: #bfd0f2;
}

.mpb-backtest-page-jump small {
    color: var(--mpb-text-muted);
}

@media (max-width: 960px) {
    .mpb-backtest-filter-row.is-primary,
    .mpb-backtest-filter-row.is-secondary {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .mpb-backtest-draw-cards {
        grid-template-columns: 1fr;
    }

    .mpb-backtest-examples-summary-cards {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .mpb-backtest-pagination-wrap {
        justify-items: center;
    }
}

@media (max-width: 720px) {
    .mpb-backtest-section {
        padding: 18px;
    }

    .mpb-backtest-filter-row.is-primary,
    .mpb-backtest-filter-row.is-secondary,
    .mpb-backtest-cards {
        grid-template-columns: 1fr;
    }

    .mpb-backtest-examples-summary-cards {
        grid-template-columns: 1fr;
    }

    .mpb-backtest-examples-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mpb-backtest-examples-toolbar .mpb-backtest-table-meta {
        text-align: center;
        margin-bottom: 0;
    }

    .mpb-backtest-table-utility {
        justify-content: stretch;
    }

    .mpb-backtest-table-utility label {
        width: 100%;
    }

    .mpb-backtest-counts > span {
        width: 100%;
        justify-content: flex-start;
    }

    .mpb-backtest-pagination-wrap {
        gap: 10px;
    }

    .mpb-backtest-pagination-summary {
        text-align: center;
    }

    .mpb-backtest-page-jump-controls {
        width: 100%;
        justify-content: center;
    }
}
