
    .pattern-lab-shell {
        display: grid;
        gap: 1rem;
        padding: 1rem 0 2rem;
    }

    .pattern-lab-hero,
    .pattern-lab-card,
    .pattern-lab-table-wrap {
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 1rem;
    }

    .pattern-lab-hero {
        background: linear-gradient(135deg, #f8fbfe, #eef5fb);
    }

    .pattern-lab-eyebrow {
        margin: 0 0 0.25rem;
        color: #526579;
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-lab-hero h1,
    .pattern-lab-card h2 {
        margin: 0;
    }

    .pattern-lab-hero p,
    .pattern-lab-card p {
        color: #526579;
    }

    .pattern-lab-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    .pattern-lab-form {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .pattern-lab-form label {
        display: grid;
        gap: 0.25rem;
        color: #526579;
        font-size: 0.82rem;
        font-weight: 900;
    }

    .pattern-lab-form input,
    .pattern-lab-form select {
        min-height: 2.4rem;
        border: 1px solid #b9c8d7;
        padding: 0.45rem 0.55rem;
        color: #102033;
        font: inherit;
    }

    .pattern-lab-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        align-items: center;
        margin-top: 0.85rem;
    }

    .pattern-lab-button,
    .pattern-lab-link-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.35rem;
        border: 1px solid #003366;
        background: #003366;
        color: #ffffff;
        padding: 0.45rem 0.75rem;
        font-weight: 900;
        text-decoration: none;
        cursor: pointer;
    }

    .pattern-lab-link-button.secondary {
        border-color: #c9d8e8;
        background: #ffffff;
        color: #003366;
    }

    .pattern-lab-metrics {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.55rem;
    }

    .pattern-lab-metric {
        border: 1px solid #d8e1ea;
        background: #f8fbfe;
        padding: 0.75rem;
    }

    .pattern-lab-metric span {
        display: block;
        color: #526579;
        font-size: 0.76rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .pattern-lab-metric strong {
        display: block;
        margin-top: 0.25rem;
        color: #081a2f;
        font-size: 1.25rem;
    }

    .pattern-lab-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }

    .pattern-lab-table th,
    .pattern-lab-table td {
        border-bottom: 1px solid #e2e9f0;
        padding: 0.55rem;
        text-align: left;
        vertical-align: top;
    }

    .pattern-lab-table th {
        color: #526579;
        font-size: 0.74rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .pattern-badge {
        display: inline-flex;
        align-items: center;
        min-height: 1.4rem;
        padding: 0.15rem 0.45rem;
        background: #eef5fb;
        color: #003366;
        font-size: 0.75rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .pattern-badge.positive {
        background: #edf8f0;
        color: #21613a;
    }

    .pattern-badge.negative {
        background: #fff3f1;
        color: #9b2f1f;
    }

    .pattern-badge.mixed,
    .pattern-badge.unresolved {
        background: #fff7e6;
        color: #92400e;
    }

    .pattern-lab-code {
        max-height: 24rem;
        overflow: auto;
        border: 1px solid #d8e1ea;
        background: #f8fbfe;
        padding: 0.85rem;
        color: #102033;
        font-size: 0.82rem;
        white-space: pre-wrap;
    }

    .pattern-dashboard-hero {
        position: relative;
        overflow: hidden;
        border: 1px solid #c6d7e8;
        background:
            radial-gradient(circle at 84% 12%, rgba(33, 97, 58, 0.18), transparent 28rem),
            linear-gradient(135deg, #07192d 0%, #123b5e 52%, #0f5f5b 100%);
        color: #ffffff;
        padding: clamp(1rem, 2vw, 1.45rem);
    }

    .pattern-dashboard-hero h1,
    .pattern-dashboard-hero p {
        max-width: 68rem;
        color: #ffffff;
    }

    .pattern-dashboard-hero h1 {
        margin: 0;
        max-width: 58rem;
        font-size: clamp(2rem, 4vw, 3.35rem);
        line-height: 1;
    }

    .pattern-dashboard-top {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.46fr);
        gap: clamp(1rem, 3vw, 2.2rem);
        align-items: start;
    }

    .pattern-dashboard-explainer {
        align-self: stretch;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.1);
        padding: clamp(0.85rem, 1.6vw, 1.2rem);
        backdrop-filter: blur(12px);
    }

    .pattern-dashboard-explainer span {
        display: block;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-dashboard-explainer h2 {
        margin: 0.4rem 0 0;
        color: #ffffff;
        font-size: clamp(1.25rem, 1.8vw, 1.75rem);
        line-height: 1.02;
    }

    .pattern-dashboard-explainer p {
        margin: 0.75rem 0 0;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.45;
    }

    .pattern-dashboard-copy {
        margin: 0.7rem 0 0;
        color: rgba(255, 255, 255, 0.82) !important;
        font-size: clamp(0.95rem, 1.35vw, 1.08rem);
        font-weight: 700;
    }

    .pattern-dashboard-kicker {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        align-items: center;
        margin-bottom: 0.65rem;
    }

    .pattern-country-switcher {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        align-items: center;
        margin-top: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.1);
        padding: 0.4rem 0.5rem;
        backdrop-filter: blur(10px);
    }

    .pattern-country-switcher label {
        color: rgba(255, 255, 255, 0.74);
        font-size: 0.74rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-country-switcher select {
        min-height: 2.05rem;
        min-width: min(15rem, 72vw);
        border: 1px solid rgba(255, 255, 255, 0.42);
        background: #ffffff;
        color: #003366;
        padding: 0.4rem 0.55rem;
        font: inherit;
        font-weight: 900;
    }

    .pattern-help-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.65rem;
        min-height: 1.65rem;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        color: currentColor;
        font: inherit;
        font-size: 0.78rem;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
    }

    .pattern-help-button.dark {
        border-color: #b9c8d7;
        background: #ffffff;
        color: #003366;
    }

    .pattern-help-button:hover,
    .pattern-help-button:focus {
        border-color: #003366;
        background: #003366;
        color: #ffffff;
    }

    .pattern-pill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: center;
    }

    .pattern-pill {
        display: inline-flex;
        align-items: center;
        min-height: 1.75rem;
        border: 1px solid rgba(255, 255, 255, 0.24);
        background: rgba(255, 255, 255, 0.11);
        color: #ffffff;
        padding: 0.25rem 0.55rem;
        font-size: 0.75rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .pattern-pill.dark {
        border-color: #d8e1ea;
        background: #f8fbfe;
        color: #003366;
    }

    .pattern-dashboard-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.55rem;
        margin-top: 0.85rem;
    }

    .pattern-dashboard-strip div,
    .pattern-wow-card {
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.1);
        padding: 0.65rem 0.75rem;
        backdrop-filter: blur(10px);
    }

    .pattern-dashboard-strip span,
    .pattern-wow-card span {
        display: block;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-dashboard-strip strong,
    .pattern-wow-card strong {
        display: block;
        color: #ffffff;
        font-family: "Source Serif 4", serif;
        font-size: 1.35rem;
    }

    .pattern-wow-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
        gap: 1rem;
    }

    .pattern-memory-card {
        display: grid;
        gap: 0.8rem;
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 18px 40px rgb(16 32 51 / 0.08);
    }

    .pattern-memory-card.featured {
        border-color: #b6d7d2;
        background:
            linear-gradient(180deg, rgba(243, 251, 250, 0.9), #ffffff 48%),
            #ffffff;
    }

    .pattern-memory-card h2,
    .pattern-memory-card h3 {
        margin: 0;
    }

    .pattern-memory-card-header {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 1rem;
    }

    .pattern-memory-symbol {
        display: block;
        color: #003366;
        font-size: 0.82rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .pattern-card-title-row {
        display: flex;
        gap: 0.35rem;
        align-items: center;
    }

    .pattern-mini-chart {
        width: 100%;
        height: 13.5rem;
        border: 1px solid #d8e1ea;
        background:
            linear-gradient(#e8eef4 1px, transparent 1px),
            linear-gradient(90deg, #e8eef4 1px, transparent 1px),
            #fbfdff;
        background-size: 100% 25%, 12.5% 100%;
    }

    .pattern-mini-chart polyline {
        fill: none;
        stroke: #003366;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .pattern-mini-chart path {
        fill: rgba(33, 97, 58, 0.12);
        stroke: none;
    }

    .pattern-mini-chart.negative path {
        fill: rgba(197, 61, 48, 0.1);
    }

    .pattern-mini-chart.negative polyline {
        stroke: #9b2f1f;
    }

    .pattern-investor-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
        gap: 1rem;
        align-items: start;
    }

    .pattern-verdict-card {
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 1.1rem;
        box-shadow: 0 18px 40px rgb(16 32 51 / 0.08);
    }

    .pattern-verdict-card.positive {
        border-color: #9ac8aa;
        background: linear-gradient(180deg, #f3fbf5, #ffffff 48%);
    }

    .pattern-verdict-card.negative {
        border-color: #efb4aa;
        background: linear-gradient(180deg, #fff7f5, #ffffff 48%);
    }

    .pattern-verdict-card.mixed {
        border-color: #efd7a0;
        background: linear-gradient(180deg, #fffaf0, #ffffff 48%);
    }

    .pattern-verdict-label {
        color: #526579;
        font-size: 0.75rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-verdict-card h2 {
        margin: 0.2rem 0 0;
        font-size: clamp(1.65rem, 3vw, 2.8rem);
        line-height: 1;
    }

    .pattern-verdict-card p {
        color: #526579;
        font-weight: 750;
    }

    .pattern-verdict-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 0.65rem;
        margin: 0.9rem 0;
    }

    .pattern-verdict-strip div {
        border-left: 4px solid #003366;
        background: rgba(255, 255, 255, 0.72);
        padding: 0.75rem;
    }

    .pattern-verdict-strip span {
        display: block;
        color: #526579;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-verdict-strip strong {
        display: block;
        margin-top: 0.2rem;
        color: #081a2f;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .pattern-probability-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 0.75rem;
    }

    .pattern-probability-card {
        border: 1px solid #d8e1ea;
        background: #fbfdff;
        padding: 0.9rem;
    }

    .pattern-probability-card.positive {
        border-color: #b6d7c0;
        background: #f4fbf6;
    }

    .pattern-probability-card.negative {
        border-color: #efc0b8;
        background: #fff7f5;
    }

    .pattern-probability-card.mixed {
        border-color: #ecd8a6;
        background: #fffaf0;
    }

    .pattern-probability-card span {
        display: block;
        color: #526579;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-probability-card strong {
        display: block;
        margin-top: 0.25rem;
        color: #081a2f;
        font-family: "Source Serif 4", serif;
        font-size: 2rem;
        line-height: 1;
    }

    .pattern-probability-card p {
        margin-bottom: 0;
        color: #526579;
        font-weight: 750;
    }

    .pattern-probability-card small {
        display: block;
        margin-top: 0.45rem;
        color: #526579;
        font-weight: 800;
        line-height: 1.35;
    }

    .pattern-evidence-card {
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 0.85rem;
    }

    .pattern-evidence-card h3 {
        margin: 0;
        font-size: 1.05rem;
    }

    .pattern-evidence-card p {
        margin: 0.35rem 0 0;
        color: #526579;
        font-size: 0.88rem;
        font-weight: 750;
    }

    .pattern-section-heading {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: end;
        justify-content: space-between;
    }

    .pattern-section-heading h2 {
        margin: 0;
    }

    .pattern-section-heading p {
        max-width: 52rem;
        margin: 0.2rem 0 0;
        color: #526579;
        font-weight: 750;
    }

    .pattern-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        gap: 1rem;
    }

    .pattern-driver-list,
    .pattern-analogue-list {
        display: grid;
        gap: 0.4rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .pattern-driver-list li,
    .pattern-analogue-list li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.7rem;
        border-top: 1px solid #e2e9f0;
        padding-top: 0.4rem;
        color: #526579;
        font-size: 0.85rem;
        font-weight: 800;
    }

    .pattern-odds-bar {
        display: grid;
        gap: 0.35rem;
    }

    .pattern-odds-track {
        overflow: hidden;
        height: 0.75rem;
        background: #fff3f1;
    }

    .pattern-odds-fill {
        height: 100%;
        background: linear-gradient(90deg, #178b4f, #4cc07a);
    }

    .pattern-analogue-tape {
        display: grid;
        gap: 0.45rem;
        margin-top: 1rem;
        border-top: 1px solid #e2e9f0;
        padding-top: 0.85rem;
    }

    .pattern-analogue-tape-row {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr) 5rem;
        gap: 0.6rem;
        align-items: center;
        color: #526579;
        font-size: 0.82rem;
        font-weight: 900;
    }

    .pattern-analogue-tape-track {
        overflow: hidden;
        height: 0.65rem;
        border-radius: 999px;
        background: #eef3f7;
    }

    .pattern-analogue-tape-track i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: #b9c8d7;
    }

    .pattern-analogue-tape-track i.positive {
        background: linear-gradient(90deg, #178b4f, #4cc07a);
    }

    .pattern-analogue-tape-track i.negative {
        background: linear-gradient(90deg, #c53d30, #ef8f80);
    }

    .pattern-analogue-tape-row strong {
        text-align: right;
    }

    .pattern-analogue-tape-row strong.positive {
        color: #21613a;
    }

    .pattern-analogue-tape-row strong.negative {
        color: #9b2f1f;
    }

    .pattern-public-note.positive {
        border-left-color: #178b4f;
    }

    .pattern-public-note.negative {
        border-left-color: #c53d30;
    }

    .pattern-public-note.mixed {
        border-left-color: #d79b25;
    }

    .pattern-memory-map {
        position: relative;
        min-height: 28rem;
        border: 1px solid #d8e1ea;
        background:
            linear-gradient(#e8eef4 1px, transparent 1px),
            linear-gradient(90deg, #e8eef4 1px, transparent 1px),
            radial-gradient(circle at 78% 22%, rgba(33, 97, 58, 0.14), transparent 14rem),
            #fbfdff;
        background-size: 100% 20%, 20% 100%, auto, auto;
    }

    .pattern-map-quadrant {
        position: absolute;
        color: rgba(82, 101, 121, 0.72);
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        pointer-events: none;
    }

    .pattern-map-quadrant.q1 {
        top: 0.75rem;
        right: 0.75rem;
    }

    .pattern-map-quadrant.q2 {
        top: 0.75rem;
        left: 0.75rem;
    }

    .pattern-map-quadrant.q3 {
        right: 0.75rem;
        bottom: 2rem;
    }

    .pattern-map-quadrant.q4 {
        left: 0.75rem;
        bottom: 2rem;
    }

    .pattern-map-dot {
        position: absolute;
        width: var(--dot-size);
        height: var(--dot-size);
        transform: translate(-50%, -50%);
        border: 2px solid #ffffff;
        border-radius: 999px;
        background: #003366;
        box-shadow: 0 8px 20px rgb(16 32 51 / 0.18);
    }

    .pattern-map-dot.positive {
        background: #178b4f;
    }

    .pattern-map-dot.negative {
        background: #c53d30;
    }

    .pattern-map-axis {
        position: absolute;
        color: #526579;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-map-axis.x {
        right: 0.75rem;
        bottom: 0.55rem;
    }

    .pattern-map-axis.y {
        top: 0.75rem;
        left: 0.75rem;
    }

    .pattern-public-note {
        border-left: 4px solid #003366;
        background: #f8fbfe;
        padding: 1rem;
        color: #526579;
        font-weight: 800;
    }

    .pattern-public-note.positive {
        border-left-color: #178b4f;
    }

    .pattern-public-note.negative {
        border-left-color: #c53d30;
    }

    .pattern-public-note.mixed {
        border-left-color: #d79b25;
    }

    .pattern-intelligence-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 0.75rem;
    }

    .pattern-intelligence-tile {
        border: 1px solid #d8e1ea;
        background: #fbfdff;
        padding: 0.85rem;
    }

    .pattern-intelligence-tile span {
        display: block;
        color: #526579;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-intelligence-tile strong {
        display: block;
        margin-top: 0.2rem;
        color: #081a2f;
        font-family: "Source Serif 4", serif;
        font-size: 1.15rem;
    }

    .pattern-detail-shell {
        display: grid;
        gap: 1rem;
        width: 100%;
        max-width: 1600px;
        margin: 0 auto;
        padding: 1rem 0 2.5rem;
    }

    .pattern-list-shell {
        width: 100%;
        max-width: 1600px;
        margin-inline: auto;
    }

    .pattern-detail-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
        gap: 1rem;
        align-items: stretch;
        border: 1px solid #c6d7e8;
        background:
            radial-gradient(circle at 86% 18%, rgba(20, 122, 66, 0.2), transparent 24rem),
            linear-gradient(135deg, #07192d 0%, #123b5e 54%, #0f5f5b 100%);
        color: #ffffff;
        padding: clamp(1rem, 2.6vw, 1.7rem);
    }

    .pattern-detail-hero-main h1 {
        margin: 0;
        color: #ffffff;
        font-size: clamp(2.8rem, 6vw, 5.25rem);
        line-height: 0.9;
    }

    .pattern-detail-lede {
        max-width: 58rem;
        color: rgba(255, 255, 255, 0.84);
        font-size: 1.08rem;
        font-weight: 800;
        line-height: 1.55;
    }

    .pattern-detail-verdict {
        display: grid;
        align-content: center;
        gap: 0.55rem;
        border: 1px solid rgba(255, 255, 255, 0.18);
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
        backdrop-filter: blur(10px);
    }

    .pattern-detail-verdict span,
    .pattern-detail-verdict p {
        color: rgba(255, 255, 255, 0.76);
        font-weight: 850;
    }

    .pattern-detail-verdict span {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pattern-detail-verdict strong {
        color: #ffffff;
        font-family: "Source Serif 4", serif;
        font-size: clamp(1.6rem, 3vw, 2.4rem);
        line-height: 1;
    }

    .pattern-read-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .pattern-read-card {
        position: relative;
        overflow: hidden;
        min-height: 8.5rem;
        border: 1px solid #d8e1ea;
        border-left: 4px solid #7c8da0;
        background: #ffffff;
        padding: 0.85rem;
        box-shadow: 0 12px 32px rgb(16 32 51 / 0.06);
    }

    .pattern-read-card::after {
        position: absolute;
        right: -1.4rem;
        bottom: -1.4rem;
        width: 4rem;
        height: 4rem;
        border-radius: 999px;
        background: rgba(0, 51, 102, 0.05);
        content: "";
    }

    .pattern-read-card.positive {
        border-left-color: #178b4f;
        background: linear-gradient(180deg, #f4fbf6, #ffffff 70%);
    }

    .pattern-read-card.negative {
        border-left-color: #c53d30;
        background: linear-gradient(180deg, #fff7f5, #ffffff 70%);
    }

    .pattern-read-card.mixed {
        border-left-color: #d79b25;
        background: linear-gradient(180deg, #fffaf0, #ffffff 70%);
    }

    .pattern-read-card span,
    .pattern-scenario-card span,
    .pattern-evidence-card span {
        display: block;
        color: #526579;
        font-size: 0.73rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-read-card strong {
        display: block;
        margin-top: 0.25rem;
        color: #081a2f;
        font-family: "Source Serif 4", serif;
        font-size: clamp(1.35rem, 2vw, 2rem);
        line-height: 1;
    }

    .pattern-read-card p,
    .pattern-read-card small {
        display: block;
        color: #526579;
        font-weight: 800;
        line-height: 1.35;
    }

    .pattern-detail-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.7fr);
        gap: 1rem;
        align-items: stretch;
    }

    .pattern-chart-panel,
    .pattern-explain-panel {
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 18px 40px rgb(16 32 51 / 0.06);
    }

    .pattern-chart-panel-large {
        min-height: 28rem;
    }

    .pattern-panel-head {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: start;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .pattern-panel-head h2,
    .pattern-explain-panel h2 {
        margin: 0;
        color: #081a2f;
        font-size: clamp(1.35rem, 2vw, 2rem);
        line-height: 1.05;
    }

    .pattern-panel-head p,
    .pattern-explain-panel p,
    .pattern-muted-copy {
        max-width: 54rem;
        color: #526579;
        font-weight: 750;
        line-height: 1.5;
    }

    .pattern-mini-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(5.5rem, 1fr));
        gap: 0.45rem;
        margin: 0;
    }

    .pattern-mini-stats div {
        border: 1px solid #e2e9f0;
        background: #f8fbfe;
        padding: 0.55rem;
    }

    .pattern-mini-stats dt {
        color: #526579;
        font-size: 0.68rem;
        font-weight: 900;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .pattern-mini-stats dd {
        margin: 0.2rem 0 0;
        color: #081a2f;
        font-weight: 900;
    }

    .pattern-chart-readout {
        min-height: 2.25rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: center;
        border-left: 3px solid #003366;
        background: #f8fbfe;
        padding: 0.45rem 0.65rem;
        color: #526579;
        font-size: 0.78rem;
        font-weight: 850;
    }

    .pattern-uplot-chart {
        width: 100%;
        min-height: 260px;
    }

    .pattern-uplot-chart .uplot {
        font-family: inherit;
    }

    .pattern-uplot-chart .u-axis {
        color: #526579;
        font-size: 11px;
        font-weight: 800;
    }

    .pattern-explain-panel {
        display: grid;
        align-content: start;
        gap: 0.75rem;
    }

    .pattern-explain-callout {
        border-left: 5px solid #d79b25;
        background: #fffaf0;
        padding: 0.85rem;
    }

    .pattern-explain-callout.positive {
        border-left-color: #178b4f;
        background: #f4fbf6;
    }

    .pattern-explain-callout.negative {
        border-left-color: #c53d30;
        background: #fff7f5;
    }

    .pattern-explain-callout strong,
    .pattern-explain-callout span {
        display: block;
    }

    .pattern-explain-callout strong {
        color: #081a2f;
        font-size: 1.15rem;
    }

    .pattern-explain-callout span {
        margin-top: 0.25rem;
        color: #526579;
        font-weight: 800;
        line-height: 1.4;
    }

    .pattern-two-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .pattern-two-list div {
        border: 1px solid #e2e9f0;
        background: #fbfdff;
        padding: 0.75rem;
    }

    .pattern-two-list h3 {
        margin: 0;
        color: #081a2f;
    }

    .pattern-two-list ul {
        display: grid;
        gap: 0.3rem;
        margin: 0.45rem 0 0;
        padding-left: 1rem;
        color: #526579;
        font-weight: 800;
    }

    .pattern-scenario-grid,
    .pattern-evidence-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 0.75rem;
    }

    .pattern-scenario-card,
    .pattern-evidence-card {
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 0.85rem;
    }

    .pattern-scenario-card.positive,
    .pattern-evidence-card.pattern-evidence-positive {
        border-color: #b6d7c0;
        background: #f4fbf6;
    }

    .pattern-scenario-card.negative,
    .pattern-evidence-card.pattern-evidence-negative {
        border-color: #efc0b8;
        background: #fff7f5;
    }

    .pattern-scenario-card.mixed,
    .pattern-evidence-card.pattern-evidence-mixed {
        border-color: #ecd8a6;
        background: #fffaf0;
    }

    .pattern-scenario-card strong,
    .pattern-evidence-card strong {
        display: block;
        margin-top: 0.25rem;
        color: #081a2f;
        font-family: "Source Serif 4", serif;
        font-size: 1.45rem;
        line-height: 1;
    }

    .pattern-scenario-card p,
    .pattern-evidence-card p {
        margin: 0.45rem 0 0;
        color: #526579;
        font-weight: 750;
        line-height: 1.42;
    }

    .pattern-driver-list-large {
        gap: 0;
        border: 1px solid #e2e9f0;
    }

    .pattern-driver-list-large li {
        border-top: 0;
        border-bottom: 1px solid #e2e9f0;
        padding: 0.75rem;
    }

    .pattern-driver-list-large li:last-child {
        border-bottom: 0;
    }

    .pattern-read-table td,
    .pattern-read-table th {
        white-space: nowrap;
    }

    .pattern-read-table td:nth-child(2),
    .pattern-read-table td:nth-child(3),
    .pattern-read-table td:nth-child(8) {
        white-space: normal;
    }

    .pattern-inline-link {
        display: inline-flex;
        align-items: center;
        min-height: 1.6rem;
        margin-right: 0.35rem;
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 0.15rem 0.4rem;
        color: #003366;
        font-size: 0.75rem;
        font-weight: 900;
        text-decoration: none;
    }

    .pattern-pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: center;
        justify-content: center;
        border: 1px solid #d8e1ea;
        background: #ffffff;
        padding: 0.85rem;
        color: #526579;
        font-weight: 900;
    }

    .pattern-pagination a {
        border: 1px solid #003366;
        background: #003366;
        color: #ffffff;
        padding: 0.35rem 0.65rem;
        text-decoration: none;
    }

    .pattern-stepper {
        display: grid;
        gap: 0.5rem;
        counter-reset: pattern-steps;
    }

    .pattern-stepper li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.6rem;
        align-items: start;
        border: 1px solid #d8e1ea;
        background: #fbfdff;
        padding: 0.7rem;
        color: #526579;
        font-weight: 800;
        list-style: none;
        counter-increment: pattern-steps;
    }

    .pattern-stepper li::before {
        display: inline-grid;
        width: 1.65rem;
        height: 1.65rem;
        place-items: center;
        background: #003366;
        color: #ffffff;
        content: counter(pattern-steps);
        font-weight: 900;
    }

    .pattern-modal {
        width: min(92vw, 720px);
        border: 1px solid #b9c8d7;
        padding: 0;
        color: #102033;
        box-shadow: 0 28px 80px rgb(16 32 51 / 0.24);
    }

    .pattern-modal::backdrop {
        background: rgba(8, 26, 47, 0.58);
    }

    .pattern-modal-panel {
        display: grid;
        gap: 0.75rem;
        padding: 1.1rem;
        background: #ffffff;
    }

    .pattern-modal-header {
        display: flex;
        gap: 1rem;
        align-items: start;
        justify-content: space-between;
        border-bottom: 1px solid #d8e1ea;
        padding-bottom: 0.75rem;
    }

    .pattern-modal-header h2 {
        margin: 0;
    }

    .pattern-modal-close {
        border: 1px solid #b9c8d7;
        background: #ffffff;
        color: #003366;
        min-width: 2rem;
        min-height: 2rem;
        font-size: 1.1rem;
        font-weight: 900;
        cursor: pointer;
    }

    .pattern-modal-close:hover,
    .pattern-modal-close:focus {
        border-color: #003366;
        background: #003366;
        color: #ffffff;
    }

    .pattern-modal-list {
        display: grid;
        gap: 0.55rem;
        padding-left: 1.1rem;
        color: #526579;
        font-weight: 750;
    }

    @media (max-width: 980px) {
        .pattern-wow-grid,
        .pattern-investor-grid,
        .pattern-detail-hero,
        .pattern-detail-grid,
        .pattern-read-strip,
        .pattern-dashboard-top {
            grid-template-columns: 1fr;
        }

        .pattern-two-list {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 720px) {
        .pattern-lab-shell {
            padding-inline: 0.65rem;
        }

        .pattern-lab-hero,
        .pattern-lab-card,
        .pattern-lab-table-wrap,
        .pattern-memory-card,
        .pattern-verdict-card {
            padding: 0.8rem;
        }

        .pattern-dashboard-hero h1 {
            font-size: clamp(2rem, 14vw, 3rem);
            line-height: 1;
        }

        .pattern-memory-card-header,
        .pattern-modal-header {
            display: grid;
        }

        .pattern-lab-table-wrap {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .pattern-lab-table {
            min-width: 760px;
        }

        .pattern-read-table {
            min-width: 920px;
        }

        .pattern-dashboard-strip,
        .pattern-lab-metrics,
        .pattern-scenario-grid,
        .pattern-evidence-grid {
            grid-template-columns: 1fr;
        }

        .pattern-mini-chart {
            height: 10rem;
        }
    }

    @media (max-width: 480px) {
        .pattern-lab-shell {
            padding-inline: 0.4rem;
        }

        .pattern-dashboard-kicker,
        .pattern-country-switcher,
        .pattern-pill-row,
        .pattern-lab-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .pattern-lab-button,
        .pattern-lab-link-button,
        .pattern-inline-link,
        .pattern-country-switcher select {
            width: 100%;
        }
    }
