: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(4, minmax(0, 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;
    text-align: center;
}

.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;
    justify-content: center;
}
.mpb-value-item p,
.mpb-info-card p,
.mpb-check-item p {
    margin: 0;
    color: #48607e;
    font-size: 13px;
    line-height: 1.6;
}

.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-guidance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.mpb-guidance-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--mpb-shell-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.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: 14px 0 20px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
}

.mpb-footer-brand-wrap {
    display: grid;
    justify-items: center;
    gap: 6px;
}

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

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

.mpb-footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.4vw, 14px);
    max-width: 100%;
}

.mpb-footer-legal a {
    color: #4f6784;
    text-decoration: none;
    font-size: clamp(11px, 2.7vw, 12px);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.mpb-footer-legal-trigger {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f6784;
    font: inherit;
    font-size: clamp(11px, 2.7vw, 12px);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
}

.mpb-footer-legal a:hover,
.mpb-footer-legal a.is-active,
.mpb-footer-legal-trigger:hover {
    color: var(--mpb-shell-primary);
}

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

.mpb-page-edge-control {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 950;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(198, 213, 237, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(16, 36, 64, 0.12);
    color: var(--mpb-shell-primary);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, bottom 0.18s ease, background 0.18s ease;
}

.mpb-page-edge-control.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mpb-page-edge-control:hover,
.mpb-page-edge-control:focus {
    background: rgba(248, 251, 255, 0.98);
}

.mpb-page-edge-control-icon {
    position: relative;
    width: 14px;
    height: 14px;
    display: block;
    transform: rotate(180deg);
}

.mpb-page-edge-control-icon::before,
.mpb-page-edge-control-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mpb-page-edge-control-icon::before {
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.mpb-page-edge-control-icon::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.mpb-page-edge-control.is-direction-down .mpb-page-edge-control-icon {
    transform: none;
}

@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-country-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.mpb-country-select,
.mpb-country-select *,
.mpb-country-select *::before,
.mpb-country-select *::after {
    box-sizing: border-box;
}

.mpb-country-select-native {
    position: absolute !important;
    inset: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mpb-country-select-trigger {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 11px;
    border: 1px solid #d4deec;
    border-radius: 8px;
    background: #ffffff;
    color: var(--mpb-shell-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mpb-country-select-trigger:focus-visible,
.mpb-country-select.is-open .mpb-country-select-trigger {
    outline: none;
    border-color: #8ab0ef;
    box-shadow: 0 0 0 2px rgba(57, 111, 210, 0.12);
}

.mpb-country-select-trigger-value,
.mpb-country-select-option-content {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.mpb-country-select-flag {
    flex: 0 0 auto;
    min-width: 16px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 1;
}

.mpb-country-select-flag.is-svg-flag {
    width: 16px;
    height: 11px;
    min-width: 16px;
    border: 1px solid rgba(146, 164, 189, 0.45);
    border-radius: 3px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-size: 0;
}

.mpb-country-select-flag.is-england {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23fff'/%3E%3Crect x='24' width='12' height='40' fill='%23c8102e'/%3E%3Crect y='14' width='60' height='12' fill='%23c8102e'/%3E%3C/svg%3E");
}

.mpb-country-select-flag.is-scotland {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23005eb8'/%3E%3Cpath d='M0 0L60 40M60 0L0 40' stroke='%23fff' stroke-width='8'/%3E%3C/svg%3E");
}

.mpb-country-select-flag.is-wales {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='20' fill='%23fff'/%3E%3Crect y='20' width='60' height='20' fill='%23007a33'/%3E%3Cpath d='M14 24l5-8 4 2 3-5 4 3 6-5 2 4 7 1-4 4 5 4-7 1-2 5-6-1-3 4-4-2-5 4 2-7-6-4 6-1z' fill='%23d30731'/%3E%3C/svg%3E");
}

.mpb-country-select-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 400;
}

.mpb-country-select-caret {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-right: 1.25px solid currentColor;
    border-bottom: 1.25px solid currentColor;
    color: var(--mpb-shell-ink);
    transform: rotate(45deg) translateY(-0.5px);
}

.mpb-country-select.is-open .mpb-country-select-caret {
    transform: rotate(-135deg) translateY(-0.5px);
}

.mpb-country-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 160;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    border: 1px solid #d4deec;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(16, 36, 64, 0.14);
    backdrop-filter: blur(8px);
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.mpb-country-select.is-open .mpb-country-select-menu {
    display: grid;
    gap: 4px;
}

.mpb-country-select-option {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--mpb-shell-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mpb-country-select-option:hover,
.mpb-country-select-option:focus-visible,
.mpb-country-select-option.is-active {
    outline: none;
    border-color: #ccdaf3;
    background: #f6f9ff;
}

.mpb-field .mpb-country-select-trigger {
    min-height: 44px;
    padding: 10px 12px;
    border-color: var(--mpb-border-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    color: var(--mpb-shell-ink);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.mpb-field .mpb-country-select-trigger:focus-visible,
.mpb-field .mpb-country-select.is-open .mpb-country-select-trigger {
    border-color: rgba(108, 150, 224, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 87, 194, 0.1);
}

.mpb-field .mpb-country-select-menu {
    top: calc(100% + 8px);
    border-color: var(--mpb-border-strong);
    border-radius: 12px;
}

.mpb-field .mpb-country-select-option {
    min-height: 42px;
    padding: 10px 12px;
    color: var(--mpb-shell-ink);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.mpb-backtest-filters .mpb-country-select-trigger,
.mpb-backtest-table-utility .mpb-country-select-trigger {
    min-height: 42px;
    padding: 9px 11px;
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    color: var(--mpb-shell-ink);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.mpb-backtest-filters .mpb-country-select-trigger:focus-visible,
.mpb-backtest-filters .mpb-country-select.is-open .mpb-country-select-trigger,
.mpb-backtest-table-utility .mpb-country-select-trigger:focus-visible,
.mpb-backtest-table-utility .mpb-country-select.is-open .mpb-country-select-trigger {
    border-color: rgba(108, 150, 224, 0.95);
    box-shadow: 0 0 0 3px rgba(27, 87, 194, 0.1);
}

.mpb-backtest-filters .mpb-country-select-menu,
.mpb-backtest-table-utility .mpb-country-select-menu {
    top: calc(100% + 8px);
    border-color: var(--mpb-line-strong);
    border-radius: 12px;
}

.mpb-backtest-filters .mpb-country-select-option,
.mpb-backtest-table-utility .mpb-country-select-option {
    min-height: 40px;
    padding: 9px 11px;
    color: var(--mpb-shell-ink);
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

@media (min-width: 901px) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #b9cbea #eef3fb;
    }

    html::-webkit-scrollbar {
        width: 12px;
    }

    html::-webkit-scrollbar-track {
        background: #eef3fb;
    }

    html::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #c8d8f1 0%, #9eb8e2 100%);
        border: 3px solid #eef3fb;
        border-radius: 999px;
    }

    .mpb-examples-table {
        width: 100%;
        table-layout: fixed;
    }

    .mpb-examples-table .is-date {
        width: 86px;
    }

    .mpb-examples-table .is-competition {
        width: 240px;
    }

    .mpb-examples-table .is-match {
        width: 230px;
    }

    .mpb-examples-table .is-market-type {
        width: 82px;
    }

    .mpb-examples-table .is-pred {
        width: 132px;
    }

    .mpb-examples-table .is-actual {
        width: 96px;
    }

    .mpb-examples-table .is-result {
        width: 88px;
    }

    .mpb-examples-table .is-confidence {
        width: 118px;
    }
}

.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-examples-toolbar-controls {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.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: #E3F1E7;
    border-color: #C9E2D0;
    color: #4D7A5C;
}

.mpb-badge-result.mpb-badge-miss {
    background: #F4E3E3;
    border-color: #E8CDCD;
    color: #8A5C5C;
}

.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-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card {
    max-width: 960px;
    margin: 0 auto 18px;
    padding: 30px 34px 28px;
    background:
        radial-gradient(circle at 50% 8%, rgba(69, 111, 186, 0.12) 0%, rgba(69, 111, 186, 0.04) 24%, transparent 56%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 249, 255, 0.99) 100%);
}

.mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card::before {
    content: "";
    position: absolute;
    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%);
    pointer-events: none;
}

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

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

.mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card h1 {
    margin: 0;
    letter-spacing: -0.02em;
}

.mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-subtitle {
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}

.mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-accent {
    top: -132px;
    right: 50%;
    width: 280px;
    height: 280px;
    transform: translateX(50%);
    border-color: rgba(216, 227, 244, 0.74);
    opacity: 0.92;
}

.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-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card {
        padding: 24px 20px 22px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card::before {
        inset: 8px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-copy {
        gap: 8px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-subtitle {
        max-width: 34ch;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-accent {
        width: 224px;
        height: 224px;
        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-table-utility.is-filter-control label {
    width: min(210px, 100%);
}

@media (min-width: 761px) {
    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility {
        justify-content: flex-start;
    }

    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility label {
        display: block;
        width: 100%;
        max-width: none;
    }

    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility.is-filter-control {
        flex: 0 0 210px;
    }

    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility:not(.is-filter-control) {
        flex: 0 0 178px;
    }

    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility.is-filter-control .mpb-country-select,
    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility.is-filter-control .mpb-country-select-trigger,
    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility.is-filter-control .mpb-country-select-menu {
        width: 100%;
        min-width: 100%;
        max-width: 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);
    text-align: center;
    justify-items: center;
}

.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;
    text-align: center;
}

.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 article.is-semantic-positive,
.mpb-backtest-examples-summary-card.is-semantic-positive {
    background: #EEF7F1;
    border-color: #C9E2D0;
}

.mpb-backtest-cards article.is-semantic-balanced,
.mpb-backtest-examples-summary-card.is-semantic-balanced {
    background: #FCF6EA;
    border-color: #E8D8B2;
}

.mpb-backtest-cards article.is-semantic-negative,
.mpb-backtest-examples-summary-card.is-semantic-negative {
    background: #FBF1F1;
    border-color: #E8CDCD;
}

.mpb-backtest-cards article.is-semantic-positive > span,
.mpb-backtest-cards article.is-semantic-positive small,
.mpb-backtest-examples-summary-card.is-semantic-positive > span,
.mpb-backtest-examples-summary-card.is-semantic-positive small {
    color: #4D7A5C;
}

.mpb-backtest-cards article.is-semantic-balanced > span,
.mpb-backtest-cards article.is-semantic-balanced small,
.mpb-backtest-examples-summary-card.is-semantic-balanced > span,
.mpb-backtest-examples-summary-card.is-semantic-balanced small {
    color: #8A6B2E;
}

.mpb-backtest-cards article.is-semantic-negative > span,
.mpb-backtest-cards article.is-semantic-negative small,
.mpb-backtest-examples-summary-card.is-semantic-negative > span,
.mpb-backtest-examples-summary-card.is-semantic-negative small {
    color: #8A5C5C;
}

.mpb-backtest-cards article.is-semantic-positive strong,
.mpb-backtest-examples-summary-card.is-semantic-positive strong {
    color: #4D7A5C;
}

.mpb-backtest-cards article.is-semantic-balanced strong,
.mpb-backtest-examples-summary-card.is-semantic-balanced strong {
    color: #8A6B2E;
}

.mpb-backtest-cards article.is-semantic-negative strong,
.mpb-backtest-examples-summary-card.is-semantic-negative strong {
    color: #8A5C5C;
}

.mpb-backtest-cards article.is-semantic-positive .mpb-svg-icon.is-card,
.mpb-backtest-examples-summary-card.is-semantic-positive .mpb-svg-icon.is-card {
    color: #4D7A5C;
}

.mpb-backtest-cards article.is-semantic-balanced .mpb-svg-icon.is-card,
.mpb-backtest-examples-summary-card.is-semantic-balanced .mpb-svg-icon.is-card {
    color: #8A6B2E;
}

.mpb-backtest-cards article.is-semantic-negative .mpb-svg-icon.is-card,
.mpb-backtest-examples-summary-card.is-semantic-negative .mpb-svg-icon.is-card {
    color: #8A5C5C;
}

.mpb-backtest-cards strong,
.mpb-backtest-draw-cards strong {
    margin-top: 6px;
    font-size: 1.18rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    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 tbody tr.mpb-backtest-example-row.is-hit td {
    background: #EEF7F1;
    border-top-color: #C9E2D0;
}

.mpb-examples-table tbody tr.mpb-backtest-example-row.is-miss td {
    background: #FBF1F1;
    border-top-color: #E8CDCD;
}

.mpb-examples-table tbody tr.mpb-backtest-example-row.is-hit:hover td {
    background: #E8F3EC;
}

.mpb-examples-table tbody tr.mpb-backtest-example-row.is-miss:hover td {
    background: #F7EAEA;
}

.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);
}

@media (min-width: 901px) {
    .mpb-examples-table {
        width: 100%;
        min-width: 1080px;
        table-layout: fixed;
    }

    .mpb-examples-table th.is-date,
    .mpb-examples-table td.is-date {
        width: 82px;
    }

    .mpb-examples-table th.is-competition,
    .mpb-examples-table td.is-competition {
        width: 255px;
    }

    .mpb-examples-table th.is-match,
    .mpb-examples-table td.is-match {
        width: 240px;
    }

    .mpb-examples-table th.is-market-type,
    .mpb-examples-table td.is-market-type {
        width: 74px;
    }

    .mpb-examples-table th.is-pred,
    .mpb-examples-table td.is-pred {
        width: 126px;
    }

    .mpb-examples-table th.is-actual,
    .mpb-examples-table td.is-actual {
        width: 96px;
    }

    .mpb-examples-table th.is-result,
    .mpb-examples-table td.is-result {
        width: 86px;
    }

    .mpb-examples-table th.is-confidence,
    .mpb-examples-table td.is-confidence {
        width: 122px;
    }
}

.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-controls {
        width: 100%;
        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-examples-toolbar-controls .mpb-backtest-table-utility {
        justify-content: flex-start;
    }

    .mpb-backtest-examples-toolbar-controls .mpb-backtest-table-utility label {
        width: min(210px, 100%);
        max-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;
    }
}

/* ===== 2026 Responsive public shell hardening pass ===== */
body.mpb-public-shell {
    overflow-x: hidden;
}

body.mpb-public-shell.mpb-menu-open {
    overflow: hidden;
}

.mpb-shell-header {
    isolation: isolate;
}

.mpb-public-shell *,
.mpb-public-shell *::before,
.mpb-public-shell *::after {
    box-sizing: border-box;
}

.mpb-shell-layout,
.mpb-shell-container,
.mpb-shell-header-inner,
.mpb-shell-header-bar,
.mpb-shell-main,
.mpb-content-stack,
.mpb-content-stack > *,
.mpb-hero-card,
.mpb-page-section,
.mpb-value-row,
.mpb-info-grid,
.mpb-check-grid,
.mpb-faq-list,
.mpb-contact-layout,
.mpb-contact-support-card,
.mpb-contact-wrap,
.mpb-contact-form,
.mpb-contact-grid {
    min-width: 0;
    max-width: 100%;
}

.mpb-shell-main,
.mpb-hero-card,
.mpb-page-section,
.mpb-contact-wrap,
.mpb-contact-support-card {
    overflow: hidden;
}

.mpb-shell-nav-desktop {
    margin-left: auto;
}

.mpb-shell-menu-toggle,
.mpb-shell-nav-backdrop,
.mpb-shell-drawer {
    display: none;
}

.mpb-contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: stretch;
}

.mpb-contact-support-card {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
    border: 1px solid var(--mpb-line-strong);
    border-radius: var(--mpb-radius-panel);
    box-shadow: var(--mpb-shadow-soft);
    height: 100%;
}

.mpb-contact-support-main,
.mpb-contact-support-meta {
    display: grid;
    gap: 12px;
}

.mpb-contact-support-main {
    justify-items: center;
    text-align: center;
}

.mpb-contact-support-main > p:not(.mpb-contact-kicker) {
    max-width: 28ch;
}

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

.mpb-contact-support-card h3,
.mpb-contact-form-head h3 {
    margin: 0;
    font-size: clamp(1.24rem, 1.8vw, 1.52rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--mpb-text-strong);
}

.mpb-contact-support-card p,
.mpb-contact-form-head p,
.mpb-contact-support-list {
    margin: 0;
    color: var(--mpb-text-body);
    line-height: 1.58;
}

.mpb-contact-support-list {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    width: min(100%, 32rem);
    text-align: left;
}

.mpb-contact-support-list li {
    position: relative;
    padding-left: 16px;
}

.mpb-contact-support-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mpb-accent);
    transform: translateY(-50%);
}

.mpb-contact-support-note {
    color: var(--mpb-text-muted) !important;
    font-size: 13px;
    line-height: 1.6;
}

.mpb-contact-support-meta {
    align-content: end;
}

.mpb-contact-form-card {
    padding: 22px;
    height: 100%;
}

.mpb-contact-form-head {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
}

.mpb-contact-form-note {
    color: var(--mpb-text-muted) !important;
    font-size: 12px;
    line-height: 1.45;
}

.mpb-contact-form,
.mpb-contact-form p,
.mpb-contact-form label,
.mpb-contact-form input,
.mpb-contact-form textarea,
.mpb-contact-actions {
    width: 100%;
}

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

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

.mpb-required-mark {
    color: #c83e42;
    font-size: 0.95em;
    font-weight: 800;
    line-height: 1;
    vertical-align: text-top;
    margin-left: 2px;
}

.mpb-contact-form input,
.mpb-contact-form textarea {
    max-width: 100%;
}

.mpb-contact-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.mpb-contact-privacy-note {
    margin: 0 0 10px;
    color: var(--mpb-text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.mpb-contact-form .mpb-contact-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0 0 14px;
}

.mpb-contact-form .mpb-contact-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    background: #ffffff;
    display: block;
    margin: 1px 0 0;
    accent-color: var(--mpb-accent);
}

.mpb-contact-form .mpb-contact-consent label {
    display: block;
    min-width: 0;
    margin: 0;
    color: var(--mpb-text-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.55;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.mpb-contact-form .mpb-contact-consent a {
    color: var(--mpb-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.mpb-contact-form .mpb-contact-consent a:hover,
.mpb-contact-form .mpb-contact-consent a:focus {
    text-decoration: underline;
}

@media (min-width: 761px) {
    .mpb-contact-form .mpb-contact-consent {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .mpb-contact-form .mpb-contact-consent input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        align-self: center;
    }

    .mpb-contact-form .mpb-contact-consent label {
        width: 100%;
        align-self: center;
    }
}

@media (max-width: 760px) {
    .mpb-contact-form .mpb-contact-consent {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: start;
        gap: 9px;
    }

    .mpb-contact-form .mpb-contact-consent input[type="checkbox"] {
        width: 16px;
        height: 16px;
        min-height: 16px;
        margin: 2px 0 0;
        justify-self: start;
        align-self: start;
    }

    .mpb-contact-form .mpb-contact-consent label {
        width: auto;
        align-self: start;
    }
}

.mpb-contact-privacy-note a {
    color: var(--mpb-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.mpb-contact-privacy-note a:hover,
.mpb-contact-privacy-note a:focus {
    text-decoration: underline;
}

.mpb-page-section-centered-heading {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0;
}

.mpb-page-section-centered-heading h2 {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 12px;
    text-align: center;
}

.mpb-page-section-centered-heading h2 .mpb-icon-text {
    justify-content: center;
}

.mpb-page-section-centered-heading h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(76, 120, 202, 0.12) 0%, rgba(76, 120, 202, 0.9) 50%, rgba(76, 120, 202, 0.12) 100%);
}

.mpb-page-section-centered-heading p {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.mpb-contact-actions .mpb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 46px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #ffffff;
}

.mpb-contact-actions .mpb-btn-label {
    display: inline-block;
    color: #ffffff !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.mpb-contact-actions button.mpb-btn-primary,
.mpb-contact-actions .mpb-btn-primary {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--mpb-accent-strong) !important;
    background: linear-gradient(180deg, var(--mpb-accent) 0%, var(--mpb-accent-strong) 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-weight: 700;
    text-indent: 0;
    box-shadow: 0 10px 20px rgba(27, 87, 194, 0.18) !important;
}

.mpb-contact-actions button.mpb-btn-primary:hover,
.mpb-contact-actions button.mpb-btn-primary:focus,
.mpb-contact-actions .mpb-btn-primary:hover,
.mpb-contact-actions .mpb-btn-primary:focus {
    background: linear-gradient(180deg, #2563d4 0%, var(--mpb-accent-strong) 100%) !important;
    color: #ffffff !important;
}

.mpb-backtest-mobile-examples {
    display: none;
}

@media (max-width: 900px) {
    .mpb-shell-header {
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

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

    .mpb-shell-header-inner {
        min-height: 74px;
        padding: 10px 0;
    }

    .mpb-shell-header-bar {
        gap: 12px;
        padding: 10px 14px;
        border-radius: 14px;
        overflow: visible;
    }

    .mpb-shell-nav-desktop {
        display: none;
    }

    .mpb-shell-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid rgba(203, 217, 238, 0.98);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--mpb-text-strong);
        cursor: pointer;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    }

    .mpb-shell-menu-toggle-lines {
        display: inline-grid;
        gap: 4px;
    }

    .mpb-shell-menu-toggle-lines span {
        display: block;
        width: 16px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mpb-shell-menu-toggle-text {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .mpb-shell-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 23, 39, 0.46);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 3990;
    }

    .mpb-shell-drawer {
        display: grid;
        align-content: start;
        gap: 18px;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(360px, calc(100vw - 18px));
        max-width: calc(100vw - 18px);
        padding: 22px 18px 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(246, 250, 255, 1) 100%);
        border-right: 1px solid rgba(205, 217, 236, 0.96);
        box-shadow: 12px 0 28px rgba(13, 32, 57, 0.12);
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.24s ease;
        z-index: 4000;
        overflow-y: auto;
        pointer-events: none;
    }

    .mpb-shell-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .mpb-shell-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid rgba(204, 218, 243, 0.98);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: var(--mpb-text-strong);
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
    }

    .mpb-shell-nav-mobile,
    .mpb-shell-nav-mobile ul {
        display: grid;
        gap: 8px;
        width: 100%;
    }

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

    .mpb-shell-nav-mobile a {
        display: grid;
        align-items: center;
        min-height: 44px;
        width: 100%;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 14px;
    }

    .mpb-shell-nav-mobile .is-active a {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
    }

    .mpb-shell-layout.is-menu-open .mpb-shell-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mpb-shell-layout.is-menu-open .mpb-shell-drawer {
        transform: translateX(0);
        pointer-events: auto;
    }

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

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

    .mpb-hero-accent {
        width: 110px;
        height: 110px;
        right: -34px;
        top: -26px;
        opacity: 0.55;
    }

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

    .mpb-shell-layout-home .mpb-backtest-examples-panel .mpb-backtest-table-wrap {
        display: none;
    }

    .mpb-shell-layout-home .mpb-backtest-mobile-examples {
        display: grid;
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .mpb-shell-main {
        padding: 18px 0 28px;
    }

    .mpb-shell-header-inner {
        min-height: 68px;
    }

    .mpb-shell-header-bar {
        padding: 10px 12px;
    }

    .mpb-brand-text {
        font-size: 0.98rem;
    }

    .mpb-shell-menu-toggle {
        padding: 0 12px;
    }

    .mpb-hero-card,
    .mpb-page-section,
    .mpb-contact-support-card,
    .mpb-contact-form-card {
        padding: 18px;
    }

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

    .mpb-hero-meta {
        gap: 8px;
    }

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

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

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

    .mpb-contact-actions .mpb-btn {
        width: 100%;
        min-width: 0;
    }

    .mpb-contact-consent {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 9px;
    }

    .mpb-footer-legal {
        gap: 8px 12px;
    }

    .mpb-shell-layout-home .mpb-value-row,
    .mpb-shell-layout-home .mpb-info-grid,
    .mpb-shell-layout-home .mpb-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mpb-shell-layout-home .mpb-backtest-cards,
    .mpb-shell-layout-home .mpb-backtest-examples-summary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mpb-shell-layout-home .mpb-backtest-cards article,
    .mpb-shell-layout-home .mpb-backtest-examples-summary-card {
        min-height: 0;
        padding: 12px;
    }

    .mpb-backtest-examples-panel .mpb-backtest-table-wrap {
        display: none;
    }

    .mpb-backtest-mobile-examples {
        display: grid;
        gap: 12px;
    }

    .mpb-backtest-mobile-example-card {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid var(--mpb-line-strong);
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.98) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
        text-align: center;
    }

    .mpb-backtest-mobile-example-card.is-hit {
        border-color: #C9E2D0;
        background: linear-gradient(180deg, #F5FBF7 0%, #EEF7F1 100%);
    }

    .mpb-backtest-mobile-example-card.is-miss {
        border-color: #E8CDCD;
        background: linear-gradient(180deg, #FDF7F7 0%, #FBF1F1 100%);
    }

    .mpb-backtest-mobile-example-head {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        text-align: center;
    }

    .mpb-backtest-mobile-example-date,
    .mpb-backtest-mobile-example-league {
        color: var(--mpb-text-muted);
        font-size: 12px;
        line-height: 1.4;
    }

    .mpb-backtest-mobile-example-match {
        position: relative;
        max-width: 18ch;
        margin: 2px auto 4px;
        color: var(--mpb-text-strong);
        font-size: clamp(1.04rem, 4.6vw, 1.18rem);
        line-height: 1.22;
        font-weight: 700;
        letter-spacing: -0.02em;
        text-align: center;
        text-wrap: balance;
    }

    .mpb-backtest-mobile-example-match::after {
        content: "";
        display: block;
        width: 42px;
        height: 2px;
        margin: 8px auto 0;
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            rgba(76, 120, 202, 0.14) 0%,
            rgba(76, 120, 202, 0.58) 50%,
            rgba(76, 120, 202, 0.14) 100%
        );
    }

    .mpb-backtest-mobile-example-market {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mpb-backtest-mobile-example-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mpb-backtest-mobile-example-stat {
        display: grid;
        gap: 6px;
        min-width: 0;
        padding: 10px;
        border: 1px solid var(--mpb-line-soft);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.82);
        justify-items: center;
        text-align: center;
    }

    .mpb-backtest-mobile-example-card.is-hit .mpb-backtest-mobile-example-stat {
        border-color: #C9E2D0;
        background: rgba(255, 255, 255, 0.72);
    }

    .mpb-backtest-mobile-example-card.is-miss .mpb-backtest-mobile-example-stat {
        border-color: #E8CDCD;
        background: rgba(255, 255, 255, 0.74);
    }

    .mpb-backtest-mobile-example-stat > span {
        color: var(--mpb-text-muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mpb-backtest-mobile-example-stat strong,
    .mpb-backtest-mobile-example-stat small {
        min-width: 0;
    }

    .mpb-backtest-mobile-example-stat strong {
        font-size: 1.04rem;
        font-weight: 800;
        line-height: 1.15;
        color: var(--mpb-text-strong);
        font-variant-numeric: tabular-nums;
    }

    .mpb-backtest-mobile-example-stat small {
        color: var(--mpb-text-muted);
        font-size: 12px;
        line-height: 1.35;
    }

    .mpb-guidance-section {
        text-align: center;
    }

    .mpb-guidance-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        display: grid;
        gap: 8px;
        align-items: stretch;
    }

    .mpb-guidance-link {
        min-width: 0;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
        font-weight: 700;
    }
}

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

    .mpb-shell-drawer {
        width: calc(100vw - 16px);
        padding: 20px 16px 16px;
    }

    .mpb-page-edge-control {
        left: 10px;
        width: 38px;
        height: 38px;
    }

    .mpb-shell-layout-home .mpb-hero-home,
    .mpb-hero-card {
        padding: 16px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card {
        padding: 18px 16px 18px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card::before {
        inset: 7px;
    }

    .mpb-shell-layout:not(.mpb-shell-layout-home) .mpb-hero-card .mpb-hero-accent {
        width: 184px;
        height: 184px;
        top: -88px;
    }

    .mpb-hero-support {
        max-width: none;
    }

    .mpb-shell-layout-home .mpb-value-item,
    .mpb-shell-layout-home .mpb-info-card,
    .mpb-shell-layout-home .mpb-check-item,
    .mpb-shell-layout-home .mpb-backtest-cards article,
    .mpb-shell-layout-home .mpb-backtest-examples-summary-card {
        padding: 12px;
    }
}

@media (max-width: 390px) {
    .mpb-shell-layout-home .mpb-value-row,
    .mpb-shell-layout-home .mpb-info-grid,
    .mpb-shell-layout-home .mpb-check-grid,
    .mpb-shell-layout-home .mpb-backtest-cards,
    .mpb-shell-layout-home .mpb-backtest-examples-summary-cards,
    .mpb-backtest-mobile-example-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 2026 Public card motion polish ===== */

.mpb-hero-card,
.mpb-page-section,
.mpb-value-item,
.mpb-info-card,
.mpb-check-item,
.mpb-faq-item,
.mpb-contact-support-card,
.mpb-contact-form-card,
.mpb-backtest-cards article,
.mpb-backtest-examples-summary-card,
.mpb-backtest-mobile-example-card {
    transform: translateY(0);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .mpb-hero-card:hover,
    .mpb-page-section:hover,
    .mpb-value-item:hover,
    .mpb-info-card:hover,
    .mpb-check-item:hover,
    .mpb-faq-item:hover,
    .mpb-contact-support-card:hover,
    .mpb-contact-form-card:hover,
    .mpb-backtest-cards article:hover,
    .mpb-backtest-examples-summary-card:hover,
    .mpb-backtest-mobile-example-card:hover {
        transform: translateY(-4px);
        border-color: rgba(27, 87, 194, 0.18);
        box-shadow: 0 18px 38px rgba(16, 36, 64, 0.11);
    }

    .mpb-backtest-mobile-example-card.is-hit:hover {
        border-color: #C9E2D0;
    }

    .mpb-backtest-mobile-example-card.is-miss:hover {
        border-color: #E8CDCD;
    }
}

@media (hover: none) and (pointer: coarse) {
    .mpb-hero-card:active,
    .mpb-page-section:active,
    .mpb-value-item:active,
    .mpb-info-card:active,
    .mpb-check-item:active,
    .mpb-faq-item:active,
    .mpb-contact-support-card:active,
    .mpb-contact-form-card:active,
    .mpb-backtest-cards article:active,
    .mpb-backtest-examples-summary-card:active,
    .mpb-backtest-mobile-example-card:active {
        transform: translateY(-3px);
        border-color: rgba(27, 87, 194, 0.16);
        box-shadow: 0 16px 32px rgba(16, 36, 64, 0.1);
    }

    .mpb-backtest-mobile-example-card.is-hit:active {
        border-color: #C9E2D0;
    }

    .mpb-backtest-mobile-example-card.is-miss:active {
        border-color: #E8CDCD;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mpb-hero-card,
    .mpb-page-section,
    .mpb-value-item,
    .mpb-info-card,
    .mpb-check-item,
    .mpb-faq-item,
    .mpb-contact-support-card,
    .mpb-contact-form-card,
    .mpb-backtest-cards article,
    .mpb-backtest-examples-summary-card,
    .mpb-backtest-mobile-example-card {
        transition:
            box-shadow 120ms ease,
            border-color 120ms ease;
    }

    .mpb-hero-card:hover,
    .mpb-page-section:hover,
    .mpb-value-item:hover,
    .mpb-info-card:hover,
    .mpb-check-item:hover,
    .mpb-faq-item:hover,
    .mpb-contact-support-card:hover,
    .mpb-contact-form-card:hover,
    .mpb-backtest-cards article:hover,
    .mpb-backtest-examples-summary-card:hover,
    .mpb-backtest-mobile-example-card:hover,
    .mpb-hero-card:active,
    .mpb-page-section:active,
    .mpb-value-item:active,
    .mpb-info-card:active,
    .mpb-check-item:active,
    .mpb-faq-item:active,
    .mpb-contact-support-card:active,
    .mpb-contact-form-card:active,
    .mpb-backtest-cards article:active,
    .mpb-backtest-examples-summary-card:active,
    .mpb-backtest-mobile-example-card:active {
        transform: none;
    }
}

/* ===== 2026 Cookie consent system ===== */

.mpb-cookie-root {
    display: none;
}

html[data-mpb-cookie-state="pending"] .mpb-cookie-root,
body.mpb-cookie-banner-visible .mpb-cookie-root,
body.mpb-cookie-modal-open .mpb-cookie-root {
    display: block;
}

body.mpb-cookie-modal-open {
    overflow: hidden;
}

.mpb-cookie-root {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.mpb-cookie-banner,
.mpb-cookie-modal,
.mpb-cookie-backdrop {
    pointer-events: auto;
}

.mpb-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: max(14px, calc(14px + env(safe-area-inset-bottom)));
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 1060px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.99) 100%);
    box-shadow: var(--mpb-shadow-panel);
}

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

.mpb-cookie-banner h2,
.mpb-cookie-modal h2 {
    margin: 0;
    color: var(--mpb-text-strong);
    font-size: clamp(1.14rem, 1.8vw, 1.42rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.mpb-cookie-banner p,
.mpb-cookie-modal p,
.mpb-cookie-category-copy p {
    margin: 0;
    color: var(--mpb-text-body);
    line-height: 1.6;
}

.mpb-cookie-banner-copy {
    display: grid;
    gap: 8px;
}

.mpb-cookie-banner-copy a,
.mpb-cookie-modal-note a {
    color: var(--mpb-accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.mpb-cookie-banner-copy a:hover,
.mpb-cookie-banner-copy a:focus,
.mpb-cookie-modal-note a:hover,
.mpb-cookie-modal-note a:focus {
    text-decoration: underline;
}

.mpb-cookie-banner-actions,
.mpb-cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.mpb-cookie-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--mpb-line-strong);
    background: #ffffff;
    color: var(--mpb-text-strong);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.mpb-cookie-btn-primary {
    border-color: rgba(27, 87, 194, 0.85);
    background: linear-gradient(180deg, rgba(35, 95, 199, 0.96) 0%, rgba(24, 74, 176, 0.98) 100%);
    color: #ffffff;
}

.mpb-cookie-btn-secondary,
.mpb-cookie-btn-tertiary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
}

.mpb-cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 46, 0.34);
    backdrop-filter: blur(4px);
}

.mpb-cookie-backdrop[hidden],
.mpb-cookie-modal[hidden] {
    display: none !important;
}

.mpb-cookie-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 32px), 760px);
    max-height: min(84vh, 760px);
    overflow: auto;
    padding: 22px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 250, 255, 0.99) 100%);
    box-shadow: var(--mpb-shadow-panel);
}

.mpb-cookie-modal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.mpb-cookie-modal-head-copy {
    display: grid;
    gap: 8px;
}

.mpb-cookie-modal-close {
    appearance: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mpb-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--mpb-text-strong);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.mpb-cookie-category-list {
    display: grid;
    gap: 12px;
}

.mpb-cookie-category-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--mpb-line-soft);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.98) 100%);
}

.mpb-cookie-category-card:not(.is-essential) {
    cursor: pointer;
}

.mpb-cookie-category-copy {
    display: grid;
    gap: 6px;
}

.mpb-cookie-category-copy h3 {
    margin: 0;
    color: var(--mpb-text-strong);
    font-size: 1rem;
    line-height: 1.2;
}

.mpb-cookie-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(27, 87, 194, 0.18);
    background: var(--mpb-accent-soft);
    color: var(--mpb-accent-strong);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mpb-cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    height: 30px;
}

.mpb-cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.mpb-cookie-switch-ui {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--mpb-line-strong);
    background: #dde6f1;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.mpb-cookie-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(16, 36, 64, 0.14);
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.mpb-cookie-switch input:checked + .mpb-cookie-switch-ui {
    border-color: rgba(27, 87, 194, 0.5);
    background: rgba(27, 87, 194, 0.24);
}

.mpb-cookie-switch input:checked + .mpb-cookie-switch-ui::after {
    transform: translateX(22px);
    background: var(--mpb-accent);
}

.mpb-cookie-modal-actions {
    margin-top: 18px;
}

.mpb-cookie-modal-note {
    margin-top: 14px;
    color: var(--mpb-text-muted);
    font-size: 12px;
}

.mpb-footer-legal-trigger:focus-visible,
.mpb-cookie-btn:focus-visible,
.mpb-cookie-modal-close:focus-visible,
.mpb-cookie-switch input:focus-visible + .mpb-cookie-switch-ui {
    outline: 2px solid rgba(27, 87, 194, 0.42);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .mpb-cookie-btn:hover,
    .mpb-cookie-modal-close:hover,
    .mpb-footer-legal-trigger:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 760px) {
    .mpb-footer-legal {
        flex-wrap: wrap;
    }

    .mpb-cookie-banner {
        width: min(calc(100% - 18px), 100%);
        bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 20px;
    }

    .mpb-cookie-banner-actions,
    .mpb-cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .mpb-cookie-btn {
        width: 100%;
    }

    .mpb-cookie-modal {
        left: 12px;
        right: 12px;
        top: auto;
        bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
        transform: none;
        width: auto;
        max-height: min(78vh, 760px);
        padding: 18px 16px;
        border-radius: 20px;
    }

    .mpb-cookie-modal-head,
    .mpb-cookie-category-card {
        grid-template-columns: 1fr;
    }

    .mpb-cookie-modal-close,
    .mpb-cookie-switch,
    .mpb-cookie-status {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mpb-cookie-btn,
    .mpb-cookie-modal-close,
    .mpb-cookie-switch-ui,
    .mpb-cookie-switch-ui::after {
        transition: none;
    }
}
