.jb-test-lab {
    --jb-bg: #f4f8fb;
    --jb-surface: #ffffff;
    --jb-surface-soft: #f7fbff;
    --jb-heading: #0b0b26;
    --jb-text: #34505f;
    --jb-muted: #5b7280;
    --jb-border: #d6e2eb;
    --jb-accent: #003049;
    --jb-accent-soft: rgba(0, 48, 73, 0.08);
    --jb-agent: #0f557e;
    --jb-solo: #b64a36;
    --jb-shadow-soft: 0 14px 34px rgba(6, 34, 52, 0.1);
    --jb-shadow-strong: 0 24px 60px rgba(6, 34, 52, 0.18);
    background:
        radial-gradient(90rem 45rem at -12% -10%, rgba(0, 48, 73, 0.14), transparent 58%),
        radial-gradient(72rem 42rem at 115% 8%, rgba(180, 74, 54, 0.12), transparent 54%),
        linear-gradient(180deg, #f8fbfd 0%, var(--jb-bg) 100%);
    color: var(--jb-text);
    position: relative;
    overflow: hidden;
    padding-bottom: clamp(2.2rem, 4vw, 4rem);
}

.jb-test-lab[data-theme="momentum"] {
    --jb-accent: #003049;
    --jb-accent-soft: rgba(0, 48, 73, 0.08);
    --jb-agent: #0f557e;
    --jb-solo: #b64a36;
}

.jb-test-lab[data-theme="stability"] {
    --jb-accent: #1f4f47;
    --jb-accent-soft: rgba(31, 79, 71, 0.09);
    --jb-agent: #145c66;
    --jb-solo: #b24f3e;
}

.jb-test-lab[data-theme="pressure"] {
    --jb-accent: #4f3d67;
    --jb-accent-soft: rgba(79, 61, 103, 0.1);
    --jb-agent: #244f90;
    --jb-solo: #bc4a39;
}

.jb-test-lab::before,
.jb-test-lab::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(2px);
}

.jb-test-lab::before {
    width: clamp(18rem, 28vw, 32rem);
    height: clamp(18rem, 28vw, 32rem);
    left: clamp(-12rem, -6vw, -4rem);
    top: clamp(1rem, 10vw, 8rem);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 72%);
    animation: jb-drift 16s ease-in-out infinite alternate;
}

.jb-test-lab::after {
    width: clamp(14rem, 24vw, 24rem);
    height: clamp(14rem, 24vw, 24rem);
    right: clamp(-8rem, -2vw, -2rem);
    bottom: clamp(0rem, 7vw, 7rem);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 72%);
    animation: jb-drift 20s ease-in-out infinite alternate-reverse;
}

.jb-shell {
    width: min(100% - clamp(1rem, 3vw, 3rem), 86rem);
    margin-inline: auto;
}

.jb-test-head {
    padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(1.35rem, 2.5vw, 2.2rem);
    position: relative;
    z-index: 1;
}

.jb-test-eyebrow {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.92rem;
    border-radius: 999px;
    background: var(--jb-accent-soft);
    color: var(--jb-accent);
    letter-spacing: 0.03em;
    font-size: clamp(0.74rem, 1.7vw, 0.88rem);
    font-weight: 700;
    text-transform: uppercase;
}

.jb-test-head h1 {
    margin: 0.9rem 0 0;
    color: var(--jb-heading);
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.08;
    max-width: none;
}

.jb-test-intro {
    margin: 1rem 0 0;
    max-width: 72ch;
    color: var(--jb-muted);
    font-size: clamp(1rem, 2.05vw, 1.16rem);
    line-height: 1.72;
}

.jb-variant-switch {
    margin-top: clamp(1.3rem, 2.5vw, 1.9rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.68rem;
}

.jb-variant-btn {
    border: 1px solid var(--jb-border);
    background: var(--jb-surface);
    color: var(--jb-heading);
    border-radius: 0.95rem;
    min-height: 3.25rem;
    padding: 0.65rem 1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.25;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.jb-variant-btn span {
    margin-top: 0.22rem;
    font-size: 1rem;
    font-weight: 800;
}

.jb-variant-btn:hover,
.jb-variant-btn:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0, 48, 73, 0.35);
    box-shadow: 0 10px 18px rgba(0, 48, 73, 0.12);
}

.jb-variant-btn.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 243, 252, 0.95));
    box-shadow: 0 16px 32px rgba(0, 48, 73, 0.16);
    position: relative;
}

.jb-variant-btn.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(0, 48, 73, 0.42), rgba(180, 74, 54, 0.38));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.jb-test-body {
    position: relative;
    z-index: 1;
}

.jb-test-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
    align-items: start;
    gap: clamp(1rem, 2.2vw, 1.7rem);
}

.jb-chart-card {
    border-radius: 1.55rem;
    border: 1px solid rgba(214, 226, 235, 0.95);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 251, 255, 0.96) 55%, rgba(240, 248, 252, 0.96) 100%);
    box-shadow: var(--jb-shadow-strong);
    overflow: hidden;
}

.jb-chart-head {
    padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1rem, 2.2vw, 1.45rem) 0.8rem;
}

.jb-chart-head h2 {
    margin: 0;
    color: var(--jb-heading);
    font-size: clamp(1.3rem, 2.15vw, 1.7rem);
    line-height: 1.18;
}

.jb-chart-subtitle {
    margin: 0.5rem clamp(1rem, 2.2vw, 1.45rem) 0.35rem;
    color: var(--jb-muted);
    font-size: clamp(0.93rem, 1.7vw, 1.02rem);
    max-width: 70ch;
}

.jb-chart-stage {
    position: relative;
    padding: 0.32rem clamp(0.3rem, 1.6vw, 0.65rem) clamp(0.2rem, 1.2vw, 0.55rem);
    isolation: isolate;
}

.jb-chart-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 13%;
    width: 72%;
    height: 70%;
    transform: translateX(-50%);
    border-radius: 1.2rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0) 74%);
    pointer-events: none;
    z-index: 0;
}

.jb-chart-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
}

.jb-grid-line {
    stroke: #d5e2ed;
    stroke-width: 1;
    stroke-dasharray: 5 8;
}

.jb-grid-line--vertical {
    opacity: 0.55;
}

.jb-axis-baseline {
    stroke: #a6bbca;
    stroke-width: 1.3;
}

.jb-axis-label {
    fill: #6c7f8d;
    font-size: 12px;
    font-family: "Noto Sans", sans-serif;
}

.jb-axis-label--x {
    font-size: 11px;
    text-anchor: middle;
}

.jb-axis-label--y {
    text-anchor: end;
}

.jb-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
    transition: opacity 220ms ease;
}

.jb-chart-line--active {
    opacity: 0;
    transition: opacity 220ms ease, stroke-dasharray 220ms ease, stroke-dashoffset 220ms ease;
    pointer-events: none;
}

.jb-chart-line--active.is-visible {
    opacity: 1;
}

.jb-chart-line--base.is-faded {
    opacity: 0.24;
    filter: none;
}

.jb-chart-line--agent {
    stroke: var(--jb-agent);
    filter: drop-shadow(0 6px 12px rgba(15, 85, 126, 0.22));
}

.jb-chart-line--solo {
    stroke: var(--jb-solo);
    filter: drop-shadow(0 6px 12px rgba(182, 74, 54, 0.2));
}

.jb-chart-line.is-muted {
    opacity: 0.38;
}

.is-hidden {
    display: none !important;
}

.jb-point {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0.4);
    transition: opacity 260ms ease, transform 260ms ease, filter 220ms ease;
    cursor: pointer;
}

.jb-point.is-visible {
    opacity: 1;
    transform: scale(1);
}

.jb-point circle {
    fill: #ffffff;
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
}

.jb-point--agent circle {
    stroke: var(--jb-agent);
}

.jb-point--solo circle {
    stroke: var(--jb-solo);
}

.jb-point.is-active {
    filter: drop-shadow(0 0 0.65rem rgba(0, 48, 73, 0.38));
}

.jb-point.is-active circle {
    animation: jb-point-pulse 1.4s ease-in-out infinite;
}

.jb-chip-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.jb-scenario-chip {
    --chip-offset-x: 0px;
    --chip-offset-y: -40px;
    position: absolute;
    transform: translate(
        calc(-50% + var(--chip-offset-x)),
        calc(-50% + var(--chip-offset-y))
    );
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.35rem 0.62rem;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #203340;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(8, 34, 50, 0.16);
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    line-height: 1.12;
    transition: opacity 220ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    white-space: nowrap;
}

.jb-scenario-chip.is-active,
.jb-scenario-chip.is-peeking {
    opacity: 1;
    pointer-events: auto;
}

.jb-scenario-chip.is-peeking {
    pointer-events: none; /* keep it visually active during animation flow but don't intercept normal hovers */
}

.jb-scenario-chip.is-active {
    border-color: rgba(0, 48, 73, 0.45);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(6, 34, 52, 0.28);
}

.jb-chart-legend {
    padding: 0.32rem clamp(0.95rem, 2vw, 1.45rem) clamp(1rem, 2vw, 1.2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.05rem;
}

.jb-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    color: #364e5e;
    font-size: 0.9rem;
    font-weight: 600;
}

.jb-legend-line {
    width: 2rem;
    height: 0;
    border-top-width: 3px;
    border-top-style: solid;
    border-radius: 999px;
}

.jb-legend-line--agent {
    border-top-color: var(--jb-agent);
}

.jb-legend-line--solo {
    border-top-color: var(--jb-solo);
}

.jb-mobile-snapshot {
    display: none;
}

.jb-mobile-kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--jb-accent);
    background: rgba(0, 48, 73, 0.08);
}

.jb-mobile-diff {
    margin-top: 0.62rem;
    display: grid;
    gap: 0.18rem;
}

#jb-mobile-variant-label {
    color: #466273;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#jb-mobile-diff-value {
    color: #165f37;
    font-size: clamp(1.45rem, 4.8vw, 1.8rem);
    line-height: 1.1;
}

#jb-mobile-diff-percent {
    color: #496677;
    font-size: 0.82rem;
    font-weight: 700;
}

.jb-mobile-metric-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.jb-mobile-metric {
    border-radius: 0.8rem;
    border: 1px solid #dbe8f2;
    background: #ffffff;
    padding: 0.55rem 0.58rem;
}

.jb-mobile-metric p {
    margin: 0;
    color: #526d7c;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.jb-mobile-metric strong {
    display: block;
    margin-top: 0.28rem;
    color: var(--jb-heading);
    font-size: 1rem;
    line-height: 1.2;
}

.jb-mobile-metric--agent {
    border-color: rgba(15, 85, 126, 0.24);
    background: linear-gradient(155deg, rgba(236, 248, 255, 0.86), rgba(255, 255, 255, 0.95));
}

.jb-mobile-metric--solo {
    border-color: rgba(182, 74, 54, 0.22);
    background: linear-gradient(155deg, rgba(255, 244, 242, 0.9), rgba(255, 255, 255, 0.94));
}

.jb-mobile-key-grid {
    margin-top: 0.72rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
}

.jb-mobile-key-item {
    width: 100%;
    border: 1px solid #d5e4ef;
    border-radius: 0.75rem;
    background: #ffffff;
    text-align: left;
    padding: 0.5rem 0.48rem;
    display: grid;
    gap: 0.3rem;
    color: #203646;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jb-mobile-key-item:hover,
.jb-mobile-key-item:focus-visible {
    border-color: rgba(0, 48, 73, 0.3);
    box-shadow: 0 8px 14px rgba(6, 34, 52, 0.12);
    transform: translateY(-1px);
}

.jb-mobile-key-item.is-active {
    border-color: rgba(0, 48, 73, 0.42);
    background: #f6fbff;
    box-shadow: 0 10px 16px rgba(6, 34, 52, 0.14);
}

.jb-mobile-key-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.34rem;
}

.jb-mobile-key-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.2rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.jb-mobile-key-badge--agent {
    color: #0a4465;
    background: rgba(15, 85, 126, 0.12);
}

.jb-mobile-key-badge--solo {
    color: #993c2f;
    background: rgba(182, 74, 54, 0.13);
}

.jb-mobile-key-label {
    margin: 0;
    color: #1f394a;
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 700;
}

.jb-mobile-key-impact {
    margin: 0;
    color: #496676;
    font-size: 0.65rem;
    line-height: 1.2;
    font-weight: 700;
}

.jb-mobile-focus {
    margin-top: 0.72rem;
    border-radius: 0.84rem;
    border: 1px solid #dbe8f2;
    background: #ffffff;
    padding: 0.62rem;
}

.jb-mobile-focus h3 {
    margin: 0;
    color: var(--jb-heading);
    font-size: 0.9rem;
    line-height: 1.3;
}

.jb-mobile-focus p {
    margin: 0.36rem 0 0;
    color: #496575;
    font-size: 0.77rem;
    line-height: 1.45;
}

.jb-insight-column {
    position: sticky;
    top: calc(var(--header-height, 110px) + 1rem);
}

.jb-insight-card {
    border-radius: 1.45rem;
    border: 1px solid rgba(214, 226, 235, 0.95);
    background: var(--jb-surface);
    box-shadow: var(--jb-shadow-soft);
    padding: clamp(1rem, 2.1vw, 1.35rem);
}

.jb-insight-card h2 {
    margin: 0;
    color: var(--jb-heading);
    font-size: clamp(1.2rem, 2.05vw, 1.5rem);
    line-height: 1.2;
}

#jb-variant-summary {
    margin: 0.5rem 0 0;
    color: var(--jb-muted);
    font-size: 0.95rem;
    line-height: 1.52;
}

.jb-metric-grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.jb-metric {
    border-radius: 0.95rem;
    border: 1px solid var(--jb-border);
    background: #f9fcff;
    padding: 0.72rem;
}

.jb-metric p {
    margin: 0;
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5f7481;
    font-weight: 700;
}

.jb-metric strong {
    display: block;
    margin-top: 0.38rem;
    font-size: clamp(1.04rem, 1.55vw, 1.25rem);
    line-height: 1.2;
    color: var(--jb-heading);
}

.jb-metric--agent {
    border-color: rgba(15, 85, 126, 0.28);
    background: linear-gradient(155deg, rgba(236, 248, 255, 0.9), rgba(249, 252, 255, 0.95));
}

.jb-metric--solo {
    border-color: rgba(182, 74, 54, 0.24);
    background: linear-gradient(155deg, rgba(255, 243, 240, 0.82), rgba(252, 249, 248, 0.94));
}

.jb-diff-line {
    margin: 0.92rem 0 0;
    font-size: 0.95rem;
    color: #2f4a5a;
}

.jb-diff-line strong {
    color: #1a5e34;
    margin-inline: 0.3rem;
    font-size: 1.06rem;
}

#jb-diff-percent {
    color: #466273;
    font-size: 0.88rem;
}

.jb-scenario-detail {
    margin-top: 1rem;
    border-radius: 1rem;
    border: 1px solid #e0e9f0;
    background: #f8fbfe;
    padding: 0.86rem;
    transition: transform 300ms ease, opacity 300ms ease, box-shadow 300ms ease;
}

.jb-scenario-detail.is-updating {
    opacity: 0.5;
    transform: translateY(4px);
}

.jb-scenario-detail h3 {
    margin: 0;
    color: var(--jb-heading);
    font-size: 1.02rem;
    line-height: 1.3;
}

.jb-scenario-detail p {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    color: #4a6270;
    line-height: 1.55;
}

.jb-impact {
    font-weight: 700;
}

.jb-impact--positive {
    color: #1f6f47;
}

.jb-impact--negative {
    color: #9f3f33;
}

.jb-impact--neutral {
    color: #36505e;
}

.jb-scenario-list-wrap {
    margin-top: 0.98rem;
}

.jb-scenario-list-wrap h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #294352;
}

.jb-scenario-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.jb-scenario-item {
    width: 100%;
    border: 1px solid #dde7ef;
    border-radius: 0.82rem;
    background: #ffffff;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.52rem 0.62rem;
    color: #254153;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.jb-scenario-item:hover,
.jb-scenario-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 48, 73, 0.3);
    box-shadow: 0 8px 14px rgba(5, 33, 50, 0.1);
}

.jb-scenario-item.is-active {
    border-color: rgba(0, 48, 73, 0.35);
    box-shadow: 0 10px 16px rgba(5, 33, 50, 0.12);
    background: #f8fcff;
    transform: scale(1.01);
}

.jb-scenario-item:active {
    transform: scale(0.98);
}

.jb-scenario-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.jb-scenario-badge--agent {
    color: #0a4465;
    background: rgba(15, 85, 126, 0.12);
}

.jb-scenario-badge--solo {
    color: #993c2f;
    background: rgba(182, 74, 54, 0.12);
}

.jb-takeaway {
    margin: 1rem 0 0;
    border-radius: 0.95rem;
    background: linear-gradient(140deg, rgba(0, 48, 73, 0.08), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(0, 48, 73, 0.12);
    padding: 0.76rem 0.82rem;
    color: #1f3f52;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 600;
}

.jb-disclaimer {
    margin: 0.72rem 0 0;
    font-size: 0.78rem;
    line-height: 1.48;
    color: #6a7f8d;
}

@media (max-width: 1120px) {
    .jb-test-grid {
        grid-template-columns: 1fr;
    }

    .jb-insight-column {
        position: static;
    }
}

@media (max-width: 860px) {
    .jb-test-head h1 {
        max-width: none;
    }

    .jb-variant-btn {
        flex: 1 1 10rem;
    }

    .jb-chart-head,
    .jb-insight-card {
        padding-inline: 0.88rem;
    }

    .jb-axis-label--x {
        font-size: 10px;
    }
}

@media (max-width: 760px) {
    .jb-test-head {
        padding-top: 1.6rem;
    }

    .jb-test-head h1 {
        font-size: clamp(1.55rem, 7.7vw, 2.05rem);
        line-height: 1.12;
    }

    .jb-test-intro {
        margin-top: 0.82rem;
        font-size: 0.96rem;
        line-height: 1.58;
        max-width: none;
    }

    .jb-variant-switch {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
        gap: 0.44rem;
    }

    .jb-variant-btn {
        width: 100%;
        min-height: 2.72rem;
        padding: 0.5rem 0.48rem;
        align-items: center;
        text-align: center;
        font-size: 0.72rem;
        border-radius: 0.82rem;
    }

    .jb-variant-btn span {
        margin-top: 0.1rem;
        font-size: 0.85rem;
    }

    .jb-chart-card {
        border-radius: 1.2rem;
        display: flex;
        flex-direction: column;
    }

    .jb-chart-head {
        padding: 0.9rem 0.82rem 0.55rem;
    }

    .jb-chart-head h2 {
        font-size: 1.08rem;
    }

    .jb-chart-subtitle {
        order: 4;
        margin-top: 0.34rem;
        font-size: 0.86rem;
        line-height: 1.45;
        margin-inline: 0.82rem;
        margin-bottom: 0.2rem;
    }

    .jb-chart-stage {
        order: 2;
        padding: 0.06rem 0.18rem 0.28rem;
    }

    .jb-chart-stage::before {
        top: 8%;
        width: 82%;
        height: 74%;
    }

    .jb-chart-line {
        stroke-width: 3.2;
    }

    .jb-axis-label--x {
        font-size: 12.5px;
        font-weight: 700;
    }

    .jb-axis-label--y {
        font-size: 13.5px;
        font-weight: 700;
    }

    .jb-chip-layer {
        display: block;
    }

    .jb-scenario-chip {
        padding: 0.26rem 0.5rem;
        font-size: 0.72rem;
        box-shadow: 0 6px 14px rgba(8, 34, 50, 0.14);
    }

    .jb-scenario-chip--mobile {
        border-color: rgba(0, 48, 73, 0.22);
        background: rgba(255, 255, 255, 0.95);
        color: #1f3a49;
        font-weight: 700;
    }

    .jb-scenario-chip--mobile.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .jb-scenario-chip--mobile.is-peeking {
        opacity: 0;
        pointer-events: none;
    }

    .jb-chart-legend {
        order: 3;
        padding: 0.22rem 0.86rem 0.82rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .jb-legend-item {
        font-size: 0.88rem;
        line-height: 1.3;
        align-items: center;
        gap: 0.38rem;
    }

    .jb-legend-line {
        width: 1.55rem;
        border-top-width: 2.5px;
        margin-top: 0;
    }

    .jb-mobile-snapshot {
        order: 5;
        display: block;
        margin: 0.12rem 0.78rem 0.88rem;
        padding: 0.78rem;
        border: 1px solid rgba(7, 49, 75, 0.14);
        border-radius: 1rem;
        background: linear-gradient(155deg, #fefefe 0%, #f2f9ff 56%, #eef6fb 100%);
        box-shadow: 0 12px 24px rgba(6, 34, 52, 0.12);
    }

    .jb-insight-column {
        display: none;
    }
}

@media (max-width: 520px) {
    .jb-variant-switch {
        grid-template-columns: 1fr;
    }

    .jb-mobile-metric-grid,
    .jb-mobile-key-grid,
    .jb-chart-legend {
        grid-template-columns: 1fr;
    }

    .jb-mobile-snapshot {
        margin-inline: 0.66rem;
        padding: 0.68rem;
    }

    #jb-mobile-diff-value {
        font-size: 1.52rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jb-test-lab::before,
    .jb-test-lab::after,
    .jb-point.is-active circle {
        animation: none !important;
    }

    .jb-variant-btn,
    .jb-scenario-item,
    .jb-mobile-key-item,
    .jb-scenario-chip,
    .jb-chart-line,
    .jb-point {
        transition: none !important;
    }
}

@keyframes jb-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(1.3rem, -1.1rem, 0) scale(1.05);
    }
}

@keyframes jb-point-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
}
