.pred-v2 {
    --pred-ink: #07172b;
    --pred-ink-soft: #41546b;
    --pred-navy: #071b33;
    --pred-navy-2: #0a2947;
    --pred-blue: #0b65d8;
    --pred-cyan: #38d9ff;
    --pred-green: #0b9361;
    --pred-lime: #a9ef58;
    --pred-red: #d6374b;
    --pred-amber: #dc8a16;
    --pred-line: #d9e3ed;
    --pred-surface: #ffffff;
    --pred-surface-soft: #f4f7fa;
    --pred-shadow: 0 20px 50px rgba(7, 23, 43, 0.09);
    width: min(100% - 2rem, 1580px);
    margin: 1rem auto 2.5rem;
    overflow: hidden;
    color: var(--pred-ink);
}

.pred-v2 *,
.pred-v2 *::before,
.pred-v2 *::after {
    box-sizing: border-box;
}

.pred-v2 a {
    color: inherit;
}

.pred-v2 [hidden] {
    display: none !important;
}

.pred-v2 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pred-overline,
.pred-label {
    color: #5d7086;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pred-command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.72fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    min-height: 480px;
    overflow: hidden;
    border: 1px solid #173b5d;
    background:
        radial-gradient(circle at 78% 18%, rgba(56, 217, 255, 0.18), transparent 29%),
        radial-gradient(circle at 10% 100%, rgba(169, 239, 88, 0.1), transparent 30%),
        linear-gradient(135deg, #061528 0%, #08223d 58%, #0c3150 100%);
    color: #fff;
    padding: clamp(1.5rem, 4vw, 4rem);
    box-shadow: 0 24px 60px rgba(7, 23, 43, 0.18);
}

.pred-command-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, transparent, #000 40%);
}

.pred-hero-copy,
.pred-now-card {
    position: relative;
    z-index: 1;
}

.pred-live-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8c9d9;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pred-live-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--pred-lime);
    box-shadow: 0 0 0 5px rgba(169, 239, 88, 0.12), 0 0 20px rgba(169, 239, 88, 0.55);
}

.pred-command-hero .pred-overline,
.pred-theme-hero .pred-overline {
    display: block;
    margin-top: 2.8rem;
    color: var(--pred-cyan);
}

.pred-command-hero h1 {
    max-width: 920px;
    margin: 0.55rem 0 1rem;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(2.6rem, 5.4vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.pred-command-hero h1 em {
    color: var(--pred-lime);
    font-style: normal;
}

.pred-hero-deck {
    max-width: 760px;
    margin: 0;
    color: #c4d2df;
    font-size: clamp(1rem, 1.4vw, 1.28rem);
    font-weight: 650;
    line-height: 1.55;
}

.pred-hero-actions,
.pred-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.pred-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--pred-navy);
    padding: 0.72rem 1rem;
    font-size: 0.87rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.pred-button:hover,
.pred-button:focus {
    transform: translateY(-2px);
}

.pred-button-bright {
    border-color: var(--pred-lime);
    background: var(--pred-lime);
    color: #061528 !important;
}

.pred-button-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    backdrop-filter: blur(8px);
}

.pred-now-card {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(4, 18, 33, 0.68);
    padding: 1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.pred-now-head,
.pred-breadth-label,
.pred-breadth-foot,
.pred-theme-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pred-now-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.2rem 0 0.85rem;
    color: #b8c9d9;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pred-status-pill,
.pred-provider-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(169, 239, 88, 0.38);
    border-radius: 999px;
    background: rgba(169, 239, 88, 0.1);
    color: var(--pred-lime);
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pred-now-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.13);
}

.pred-now-grid > div {
    background: #091e35;
    padding: 1rem;
}

.pred-now-grid span,
.pred-move-grid span,
.pred-detail-kpis span,
.pred-theme-hero-stats span {
    display: block;
    color: #8da4b9;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pred-now-grid strong {
    display: block;
    margin-top: 0.25rem;
    color: #fff;
    font-size: 1.7rem;
}

.pred-breadth {
    padding: 0.25rem 0.2rem 0.2rem;
}

.pred-breadth-label {
    color: #b8c9d9;
    font-size: 0.78rem;
}

.pred-breadth-label strong {
    color: #fff;
}

.pred-breadth-track {
    height: 0.55rem;
    margin: 0.65rem 0 0.45rem;
    overflow: hidden;
    background: rgba(214, 55, 75, 0.65);
}

.pred-breadth-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0b9361, var(--pred-lime));
}

.pred-breadth-foot {
    color: #9fb1c1;
    font-size: 0.7rem;
    font-weight: 800;
}

.is-up {
    color: var(--pred-green) !important;
}

.is-down {
    color: var(--pred-red) !important;
}

.pred-command-hero .is-up {
    color: var(--pred-lime) !important;
}

.pred-command-hero .is-down {
    color: #ff7b8c !important;
}

.pred-theme-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    border: 1px solid var(--pred-line);
    border-top: 0;
    background: #fff;
    scrollbar-width: thin;
}

.pred-theme-nav-label,
.pred-theme-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    border-right: 1px solid var(--pred-line);
    padding: 0.82rem 1rem;
    white-space: nowrap;
}

.pred-theme-nav-label {
    background: var(--pred-surface-soft);
    color: #66788c;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pred-theme-nav a {
    color: var(--pred-ink);
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}

.pred-theme-nav a:hover,
.pred-theme-nav a:focus {
    background: #eaf8f2;
}

.pred-theme-nav a b {
    color: var(--pred-blue);
}

.pred-decision-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.pred-decision-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pred-line);
    background: #fff;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pred-decision-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 101, 216, 0.11), transparent 70%);
}

.pred-decision-card:hover,
.pred-decision-card:focus {
    z-index: 1;
    transform: translateY(-4px);
    border-color: #91b9e7;
    box-shadow: var(--pred-shadow);
}

.pred-decision-card > strong {
    margin-top: 0.7rem;
    color: var(--pred-blue);
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    line-height: 1;
}

.pred-decision-card h2 {
    margin: 0.4rem 0 0;
    color: var(--pred-ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.pred-decision-card p {
    margin: 0.45rem 0 0;
    color: var(--pred-ink-soft);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.42;
}

.pred-card-link {
    display: block;
    margin-top: auto;
    padding-top: 0.8rem;
    color: var(--pred-blue);
    font-size: 0.76rem;
    font-weight: 900;
}

.pred-section {
    margin-top: 1rem;
    border: 1px solid var(--pred-line);
    background: #fff;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.pred-panel {
    min-width: 0;
    border: 1px solid var(--pred-line);
    background: #fff;
    padding: 1.2rem;
}

.pred-radar-layout,
.pred-map-layout,
.pred-detail-analysis,
.pred-participation-layout,
.pred-theme-chart-grid,
.pred-theme-lists {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
    gap: 1rem;
    border: 0;
    background: transparent;
    padding: 0;
}

.pred-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pred-section-head h2,
.pred-method h2,
.pred-interpret-panel h2 {
    margin: 0.22rem 0 0;
    color: var(--pred-ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.pred-section-head p {
    max-width: 760px;
    margin: 0.45rem 0 0;
    color: var(--pred-ink-soft);
    font-size: 0.9rem;
    font-weight: 650;
}

.pred-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    color: #607287;
    font-size: 0.75rem;
    font-weight: 800;
}

.pred-legend span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pred-legend i {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.pred-legend i.is-up {
    background: var(--pred-green);
}

.pred-legend i.is-down {
    background: var(--pred-red);
}

.pred-chart {
    width: 100%;
    min-height: 360px;
}

.pred-chart-compact {
    min-height: 260px;
}

.pred-chart-map {
    min-height: 380px;
}

.pred-chart-large {
    min-height: 430px;
}

.pred-chart-medium {
    min-height: 320px;
}

.pred-chart .uplot,
.pred-chart canvas {
    max-width: 100%;
}

.pred-chart .uplot {
    color: var(--pred-ink);
}

.pred-empty-chart,
.pred-empty {
    display: grid;
    min-height: 160px;
    place-items: center;
    border: 1px dashed #becbd8;
    background: var(--pred-surface-soft);
    color: var(--pred-ink-soft);
    padding: 1rem;
    text-align: center;
    font-weight: 750;
}

.pred-readout {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 2rem;
    margin-top: 0.8rem;
}

.pred-readout span {
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.35rem 0.5rem;
    color: #304760;
    font-size: 0.74rem;
    font-weight: 850;
}

.pred-chart.pred-move-board {
    display: grid;
    min-height: auto;
    gap: 0.45rem;
}

.pred-move-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(120px, 0.8fr) minmax(88px, auto) minmax(78px, auto);
    gap: 0.8rem;
    align-items: center;
    border: 1px solid var(--pred-line);
    border-left: 4px solid #7d8ea0;
    background: var(--pred-surface-soft);
    color: inherit;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
}

.pred-move-row:hover,
.pred-move-row:focus {
    border-color: #98b8d8;
    background: #edf5fb;
}

.pred-move-row.is-positive {
    border-left-color: var(--pred-green);
}

.pred-move-row.is-negative {
    border-left-color: var(--pred-red);
}

.pred-move-main,
.pred-move-main strong,
.pred-move-main small,
.pred-move-metric b,
.pred-move-metric small {
    display: block;
    min-width: 0;
}

.pred-move-main strong {
    overflow: hidden;
    color: var(--pred-ink);
    font-size: 0.86rem;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pred-move-main small,
.pred-move-metric small {
    color: #687a8e;
    font-size: 0.7rem;
    font-weight: 800;
}

.pred-move-track,
.pred-meter,
.pred-mini-meter {
    overflow: hidden;
    background: #dfe8f0;
}

.pred-move-track {
    height: 0.48rem;
}

.pred-move-track span,
.pred-meter span,
.pred-mini-meter span {
    display: block;
    height: 100%;
    min-width: 2px;
    max-width: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-move-row.is-positive .pred-move-track span {
    background: var(--pred-green);
}

.pred-move-row.is-negative .pred-move-track span {
    background: var(--pred-red);
}

.pred-move-metric {
    text-align: right;
}

.pred-move-metric b {
    color: var(--pred-ink);
    font-size: 0.9rem;
}

.pred-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.pred-health-grid > div {
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.7rem;
}

.pred-health-grid span,
.pred-health-grid small {
    display: block;
    color: #65778a;
    font-size: 0.68rem;
    font-weight: 800;
}

.pred-health-grid strong {
    display: block;
    margin: 0.15rem 0;
    font-size: 1.25rem;
}

.pred-theme-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.pred-theme-card {
    display: flex;
    min-height: 215px;
    flex-direction: column;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.9rem;
    color: inherit;
    text-decoration: none;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.pred-theme-card:hover,
.pred-theme-card:focus {
    transform: translateY(-3px);
    border-color: #94b9df;
    background: #fff;
    box-shadow: var(--pred-shadow);
}

.pred-theme-card-top span {
    font-size: 0.83rem;
    font-weight: 900;
}

.pred-theme-card-top b {
    color: var(--pred-blue);
    font-size: 1.55rem;
}

.pred-meter {
    height: 0.38rem;
    margin-top: 0.55rem;
}

.pred-theme-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.7rem 0;
}

.pred-theme-stats span {
    color: #687b8f;
    font-size: 0.65rem;
    font-weight: 750;
}

.pred-theme-stats b {
    display: block;
    color: var(--pred-ink);
    font-size: 0.8rem;
}

.pred-theme-card p {
    margin: 0;
    color: var(--pred-ink-soft);
    font-size: 0.77rem;
    font-weight: 650;
    line-height: 1.4;
}

.pred-quadrant-key {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.pred-quadrant-key span {
    border-left: 3px solid var(--pred-blue);
    background: var(--pred-surface-soft);
    padding: 0.55rem;
    color: #5e7185;
    font-size: 0.7rem;
    font-weight: 750;
}

.pred-quadrant-key b {
    display: block;
    color: var(--pred-ink);
}

.pred-opportunity-key {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: #6b7d90;
    font-size: 0.68rem;
    font-weight: 850;
    white-space: nowrap;
}

.pred-opportunity-key b {
    color: var(--pred-blue);
    font-size: 1rem;
}

.pred-opportunity-chart {
    display: grid;
    gap: 0.4rem;
}

.pred-opportunity-row {
    display: grid;
    grid-template-columns: 34px minmax(200px, 1.4fr) minmax(130px, 0.65fr) minmax(82px, 0.4fr) 58px minmax(105px, 0.5fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 62px;
    border: 1px solid var(--pred-line);
    border-left: 3px solid var(--pred-blue);
    background: #fff;
    color: inherit;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
}

.pred-opportunity-row:nth-child(-n + 3) {
    border-left-color: var(--pred-green);
    background: linear-gradient(90deg, rgba(11, 147, 97, 0.055), #fff 30%);
}

.pred-opportunity-row:hover,
.pred-opportunity-row:focus {
    border-color: #87abd0;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.08);
    transform: translateY(-1px);
}

.pred-opportunity-rank {
    color: #8a9aaa;
    font-size: 0.7rem;
    font-weight: 900;
}

.pred-opportunity-market,
.pred-opportunity-market strong,
.pred-opportunity-market small,
.pred-opportunity-probability small,
.pred-opportunity-probability strong,
.pred-opportunity-move small,
.pred-opportunity-move strong,
.pred-opportunity-quality small,
.pred-opportunity-quality strong {
    display: block;
    min-width: 0;
}

.pred-opportunity-market strong {
    overflow: hidden;
    color: var(--pred-ink);
    font-size: 0.78rem;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pred-opportunity-market small,
.pred-opportunity-probability small,
.pred-opportunity-move small,
.pred-opportunity-quality small {
    margin-bottom: 0.18rem;
    color: #718398;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.pred-opportunity-market small {
    margin: 0.18rem 0 0;
    text-transform: none;
}

.pred-opportunity-probability strong,
.pred-opportunity-move strong,
.pred-opportunity-quality strong {
    color: var(--pred-ink);
    font-size: 0.78rem;
}

.pred-opportunity-probability-track,
.pred-opportunity-score i {
    position: relative;
    display: block;
    height: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
    background: #dfe7ee;
}

.pred-opportunity-probability-track b {
    display: block;
    height: 100%;
    background: var(--pred-blue);
}

.pred-opportunity-score strong {
    display: block;
    color: var(--pred-blue);
    font-size: 1.05rem;
    font-weight: 950;
    text-align: right;
}

.pred-opportunity-score i b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-theme-comparison {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
}

.pred-theme-comparison-head,
.pred-theme-comparison-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(210px, 1.25fr) minmax(170px, 1fr) minmax(75px, 0.4fr);
    gap: 1rem;
    align-items: center;
}

.pred-theme-comparison-head {
    border-bottom: 1px solid var(--pred-line);
    background: #fff;
    padding: 0.55rem 0.8rem;
    color: #708296;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.pred-theme-comparison-row {
    min-height: 48px;
    border-bottom: 1px solid #e0e7ee;
    padding: 0.55rem 0.8rem;
}

.pred-theme-comparison-row:last-child {
    border-bottom: 0;
}

.pred-theme-comparison-row > strong {
    color: var(--pred-ink);
    font-size: 0.76rem;
}

.pred-theme-dot-track,
.pred-theme-score-track {
    position: relative;
    display: block;
    height: 5px;
    background: #dce5ed;
}

.pred-theme-dot-track::before {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 50%;
    border-left: 1px dashed #91a1b1;
    content: "";
}

.pred-theme-dot-track i {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pred-blue);
    box-shadow: 0 0 0 1px var(--pred-blue);
    transform: translate(-50%, -50%);
}

.pred-theme-dot-track b,
.pred-theme-score-track b {
    position: absolute;
    top: -0.48rem;
    right: 0;
    color: var(--pred-ink);
    font-size: 0.64rem;
}

.pred-theme-score-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-theme-volume {
    color: #425970;
    font-size: 0.72rem;
    font-weight: 850;
    text-align: right;
}

.pred-watch-list {
    display: grid;
    gap: 0.45rem;
}

.pred-watch-list a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.65rem;
    text-decoration: none;
}

.pred-watch-list a:hover,
.pred-watch-list a:focus {
    background: #edf5fb;
}

.pred-watch-list strong,
.pred-watch-list small {
    display: block;
}

.pred-watch-list strong {
    font-size: 0.78rem;
    line-height: 1.25;
}

.pred-watch-list small {
    margin-top: 0.15rem;
    color: #6b7d91;
    font-size: 0.67rem;
    font-weight: 750;
}

.pred-watch-list > a > b {
    color: var(--pred-blue);
    font-size: 0.92rem;
}

.pred-move-badge,
.pred-signal-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 0.24rem 0.45rem;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.pred-move-badge.is-up,
.pred-signal-surge {
    background: #e8f8f1;
    color: var(--pred-green);
}

.pred-move-badge.is-thin,
.pred-signal-thin {
    background: #fff6e8;
    color: var(--pred-amber);
}

.pred-signal-fade {
    background: #fff0f2;
    color: var(--pred-red);
}

.pred-signal-high_conviction {
    background: #eaf2ff;
    color: var(--pred-blue);
}

.pred-signal-divergence {
    background: #f4edff;
    color: #7348b5;
}

.pred-signal-watch {
    background: #eff3f6;
    color: #56697d;
}

.pred-subsection-head {
    margin-top: 1.3rem;
}

.pred-explorer {
    overflow: hidden;
    padding: 0;
}

.pred-explorer-head {
    padding: 1.25rem 1.25rem 0;
}

.pred-explorer-count {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.pred-explorer-count strong {
    color: var(--pred-blue);
    font-size: 1.8rem;
}

.pred-explorer-count span {
    color: #66788b;
    font-size: 0.7rem;
    font-weight: 850;
}

.pred-explorer-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, auto));
    gap: 0.55rem;
    border-top: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.8rem 1.25rem;
}

.pred-explorer-controls input,
.pred-explorer-controls select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c6d3df;
    border-radius: 0;
    background: #fff;
    color: var(--pred-ink);
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
}

.pred-explorer-controls input:focus,
.pred-explorer-controls select:focus {
    border-color: var(--pred-blue);
    outline: 2px solid rgba(11, 101, 216, 0.14);
}

.pred-market-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pred-market-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.pred-market-table th {
    border-bottom: 1px solid var(--pred-line);
    background: #fff;
    color: #687a8e;
    padding: 0.7rem 0.8rem;
    text-align: left;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pred-market-table td {
    border-bottom: 1px solid #e5ebf1;
    padding: 0.75rem 0.8rem;
    vertical-align: middle;
}

.pred-market-table tbody tr {
    transition: background 120ms ease;
}

.pred-market-table tbody tr:hover {
    background: #f2f7fb;
}

.pred-market-table td:first-child {
    width: 42%;
}

.pred-market-table td:first-child a,
.pred-market-table td:first-child span {
    display: block;
}

.pred-market-table td:first-child a {
    color: var(--pred-ink);
    text-decoration: none;
}

.pred-market-table td:first-child span,
.pred-market-table td > span:not(.pred-signal-pill) {
    margin-top: 0.15rem;
    color: #6a7c8f;
    font-size: 0.68rem;
    font-weight: 750;
}

.pred-probability-value {
    color: var(--pred-blue);
    font-size: 0.9rem;
}

.pred-mini-meter {
    width: 85px;
    height: 0.25rem;
    margin-top: 0.25rem;
}

.pred-row-open {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--pred-line);
    color: var(--pred-blue) !important;
    font-size: 1.1rem;
    text-decoration: none;
}

.pred-row-open:hover {
    border-color: var(--pred-blue);
    background: var(--pred-blue);
    color: #fff !important;
}

.pred-no-results {
    margin: 1rem;
}

.pred-explorer-more {
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.9rem;
}

.pred-explorer-more button {
    min-height: 42px;
    border: 1px solid var(--pred-navy);
    background: var(--pred-navy);
    color: #fff;
    padding: 0.65rem 1rem;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.pred-explorer-more button:hover,
.pred-explorer-more button:focus {
    border-color: var(--pred-blue);
    background: var(--pred-blue);
}

.pred-explorer-more button span {
    color: var(--pred-lime);
}

.pred-method {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 2rem;
    margin-top: 1rem;
    border: 1px solid #143959;
    background: var(--pred-navy);
    color: #fff;
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.pred-method h2 {
    color: #fff;
}

.pred-method-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pred-method-grid p,
.pred-interpret-list p {
    margin: 0;
}

.pred-method-grid b,
.pred-method-grid span,
.pred-interpret-list b,
.pred-interpret-list span {
    display: block;
}

.pred-method-grid b {
    color: var(--pred-lime);
    font-size: 0.82rem;
}

.pred-method-grid span {
    margin-top: 0.25rem;
    color: #adbdcc;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.5;
}

/* Theme dashboard */
.pred-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: #607387;
    font-size: 0.75rem;
    font-weight: 850;
}

.pred-breadcrumb a {
    color: var(--pred-blue);
    text-decoration: none;
}

.pred-breadcrumb > * + *::before {
    content: "/";
    margin-right: 0.45rem;
    color: #9babb9;
}

.pred-theme-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 2rem;
    border: 1px solid #163a5c;
    background:
        radial-gradient(circle at 90% 20%, rgba(56, 217, 255, 0.14), transparent 28%),
        linear-gradient(135deg, var(--pred-navy), #0a2c4c);
    color: #fff;
    padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.pred-theme-hero .pred-overline {
    margin-top: 2rem;
}

.pred-theme-hero h1 {
    max-width: 900px;
    margin: 0.4rem 0 0.75rem;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(2.2rem, 4.6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.pred-theme-summary {
    max-width: 820px;
    border-left: 3px solid var(--pred-lime);
    margin: 1.2rem 0 0;
    padding-left: 0.85rem;
    color: #b9cad8;
    font-size: 0.86rem;
    font-weight: 700;
}

.pred-theme-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    align-self: center;
    background: rgba(255, 255, 255, 0.13);
}

.pred-theme-hero-stats.pred-provider-count-1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pred-theme-hero-stats div {
    min-height: 112px;
    background: rgba(5, 21, 39, 0.75);
    padding: 1rem;
}

.pred-theme-hero-stats strong {
    display: block;
    margin-top: 0.3rem;
    color: #fff;
    font-size: 1.8rem;
}

.pred-theme-quad,
.pred-theme-lens-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pred-theme-chart-card {
    display: flex;
    min-height: 410px;
    flex-direction: column;
    box-shadow: var(--pred-shadow);
}

.pred-theme-chart-card .pred-chart,
.pred-theme-chart-card .pred-theme-bar-chart,
.pred-theme-chart-card .pred-theme-breadth-chart,
.pred-theme-chart-card .pred-theme-quality-chart {
    flex: 1;
}

.pred-theme-mini-chart {
    min-height: 270px;
}

.pred-theme-bar-chart {
    display: grid;
    min-height: 285px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
    border-bottom: 1px solid var(--pred-line);
    padding: 1rem 0.5rem 0.5rem;
}

.pred-theme-bar-column {
    display: grid;
    height: 245px;
    grid-template-rows: auto 1fr auto;
    gap: 0.4rem;
    align-items: end;
    text-align: center;
}

.pred-theme-bar-column > strong {
    color: var(--pred-blue);
    font-size: 0.86rem;
}

.pred-theme-bar-column > i {
    display: flex;
    height: 195px;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(90deg, transparent 48%, #e2e9ef 48% 52%, transparent 52%);
}

.pred-theme-bar-column > i b {
    display: block;
    width: min(58px, 76%);
    background: linear-gradient(180deg, var(--pred-green), var(--pred-blue));
}

.pred-theme-bar-column > span {
    color: #60748a;
    font-size: 0.65rem;
    font-weight: 850;
}

.pred-theme-breadth-chart {
    display: grid;
    min-height: 285px;
    grid-template-columns: minmax(150px, 0.75fr) minmax(145px, 0.65fr);
    gap: 1.25rem;
    align-items: center;
}

.pred-theme-breadth-donut {
    position: relative;
    width: min(210px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    justify-self: center;
}

.pred-theme-breadth-donut::after {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.pred-theme-breadth-donut > span {
    position: absolute;
    z-index: 2;
    inset: 30%;
    display: grid;
    place-content: center;
    text-align: center;
}

.pred-theme-breadth-donut strong,
.pred-theme-breadth-donut small {
    display: block;
}

.pred-theme-breadth-donut strong {
    color: var(--pred-ink);
    font-size: 1.7rem;
}

.pred-theme-breadth-donut small {
    color: #687b90;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pred-theme-breadth-counts {
    display: grid;
}

.pred-theme-breadth-counts > span {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e1e8ee;
    padding: 0.55rem 0;
    color: #60748a;
    font-size: 0.7rem;
}

.pred-theme-breadth-counts i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aab7c4;
}

.pred-theme-breadth-counts .is-up i { background: var(--pred-green); }
.pred-theme-breadth-counts .is-down i { background: var(--pred-red); }

.pred-theme-breadth-counts strong {
    color: var(--pred-ink);
    font-size: 0.88rem;
}

.pred-theme-magnitude {
    grid-column: 1 / -1;
}

.pred-theme-magnitude > small {
    display: block;
    margin-bottom: 0.35rem;
    color: #687b90;
    font-size: 0.62rem;
    font-weight: 850;
}

.pred-theme-magnitude > div {
    display: flex;
    height: 12px;
}

.pred-theme-magnitude > div i.is-down { background: var(--pred-red); }
.pred-theme-magnitude > div i.is-up { background: var(--pred-green); }

.pred-theme-magnitude > span {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-size: 0.66rem;
}

.pred-theme-quality-chart {
    display: grid;
    min-height: 285px;
    align-content: center;
    gap: 1rem;
}

.pred-theme-quality-row {
    display: grid;
    grid-template-columns: 78px minmax(120px, 1fr) 70px;
    gap: 0.75rem;
    align-items: center;
}

.pred-theme-quality-row > strong,
.pred-theme-quality-row > span {
    color: #5f7388;
    font-size: 0.69rem;
}

.pred-theme-quality-row > i {
    display: block;
    height: 16px;
    background: #e0e8ef;
}

.pred-theme-quality-row > i b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-theme-quality-chart > p {
    margin: 0.3rem 0 0;
    border-left: 3px solid var(--pred-green);
    background: #edf7f2;
    color: #365b4c;
    padding: 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.pred-theme-lens-grid > .pred-panel {
    box-shadow: var(--pred-shadow);
}

.pred-theme-lens-chart {
    display: grid;
    gap: 0.4rem;
}

.pred-theme-lens-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) minmax(90px, 0.4fr);
    gap: 0.65rem;
    align-items: center;
    min-height: 58px;
    border: 1px solid var(--pred-line);
    border-left: 3px solid var(--pred-blue);
    background: var(--pred-surface-soft);
    color: inherit;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
}

.pred-theme-lens-row:hover,
.pred-theme-lens-row:focus {
    border-color: #8badce;
    background: #fff;
}

.pred-theme-lens-rank {
    color: #8998a8;
    font-size: 0.63rem;
    font-weight: 900;
}

.pred-theme-lens-name strong,
.pred-theme-lens-name small {
    display: block;
}

.pred-theme-lens-name strong {
    overflow: hidden;
    color: var(--pred-ink);
    font-size: 0.73rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pred-theme-lens-name small {
    margin-top: 0.16rem;
    color: #718397;
    font-size: 0.59rem;
    font-weight: 750;
}

.pred-theme-lens-metric strong {
    display: block;
    color: var(--pred-blue);
    font-size: 0.78rem;
    text-align: right;
}

.pred-theme-lens-metric i {
    display: block;
    height: 4px;
    overflow: hidden;
    margin-top: 0.25rem;
    background: #dce5ed;
}

.pred-theme-lens-metric i b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-theme-signal-list {
    display: grid;
    gap: 0.4rem;
}

.pred-theme-signal {
    display: grid;
    grid-template-columns: minmax(105px, auto) minmax(0, 1fr) repeat(3, minmax(68px, auto));
    gap: 0.65rem;
    align-items: center;
    border: 1px solid var(--pred-line);
    border-left: 4px solid #8293a4;
    background: var(--pred-surface-soft);
    padding: 0.7rem;
    text-decoration: none;
}

.pred-theme-signal.is-up {
    border-left-color: var(--pred-green);
}

.pred-theme-signal.is-down {
    border-left-color: var(--pred-red);
}

.pred-theme-signal strong,
.pred-theme-signal small,
.pred-theme-signal b {
    display: block;
}

.pred-theme-signal strong {
    color: var(--pred-ink);
    font-size: 0.8rem;
    line-height: 1.25;
}

.pred-theme-signal small {
    margin-top: 0.15rem;
    color: #6c7e91;
    font-size: 0.66rem;
    font-weight: 750;
}

.pred-theme-signal > span:nth-child(n + 3) {
    text-align: right;
}

.pred-theme-signal > span:nth-child(n + 3) b {
    color: var(--pred-ink);
    font-size: 0.9rem;
}

.pred-rank-list {
    display: grid;
    gap: 0.45rem;
}

.pred-rank {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.7rem;
    align-items: center;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.7rem;
    text-decoration: none;
}

.pred-rank strong,
.pred-rank small {
    display: block;
}

.pred-rank strong {
    font-size: 0.77rem;
}

.pred-rank small {
    margin-top: 0.1rem;
    color: #6a7c8f;
    font-size: 0.65rem;
    font-weight: 750;
}

.pred-rank > b {
    color: var(--pred-blue);
    font-size: 1.1rem;
}

.pred-rank .pred-meter {
    grid-column: 1 / -1;
    margin: 0;
}

/* Market detail */
.pred-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.55fr);
    gap: 2rem;
    border: 1px solid #163a5c;
    background:
        radial-gradient(circle at 83% 15%, rgba(56, 217, 255, 0.15), transparent 26%),
        linear-gradient(135deg, var(--pred-navy), #0a2c4c);
    color: #fff;
    padding: clamp(1.4rem, 3.2vw, 3.2rem);
}

.pred-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: #aec0cf;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pred-provider-badge {
    border-color: rgba(56, 217, 255, 0.42);
    background: rgba(56, 217, 255, 0.1);
    color: var(--pred-cyan);
}

.pred-detail-copy h1 {
    max-width: 1000px;
    margin: 1rem 0;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 3.8vw, 4.4rem);
    font-weight: 900;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

.pred-detail-thesis {
    max-width: 880px;
    border-left: 3px solid var(--pred-lime);
    margin: 0;
    padding-left: 0.85rem;
    color: #c0cfdb;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.55;
}

.pred-probability-card {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 20, 36, 0.72);
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(12px);
}

.pred-probability-card .pred-overline {
    color: #aebfce;
}

.pred-probability-ring {
    display: grid;
    width: 190px;
    aspect-ratio: 1;
    margin: 0.9rem auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--pred-lime) calc(var(--probability) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.pred-probability-ring::before {
    content: "";
    grid-area: 1 / 1;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #081e35;
}

.pred-probability-ring > div {
    z-index: 1;
    grid-area: 1 / 1;
}

.pred-probability-ring strong,
.pred-probability-ring span {
    display: block;
}

.pred-probability-ring strong {
    color: #fff;
    font-size: 2.35rem;
    line-height: 1;
}

.pred-probability-ring span {
    margin-top: 0.3rem;
    color: #aebfce;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pred-outcome-bar {
    display: flex;
    min-height: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pred-outcome-bar span {
    display: flex;
    min-width: 2.6rem;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}

.pred-outcome-bar .is-yes {
    background: var(--pred-green);
}

.pred-outcome-bar .is-no {
    flex: 1;
    background: rgba(214, 55, 75, 0.6);
}

.pred-move-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.11);
    text-align: left;
}

.pred-move-grid div {
    background: #091f36;
    padding: 0.65rem;
}

.pred-move-grid strong {
    display: block;
    margin-top: 0.2rem;
    color: #fff;
    font-size: 0.78rem;
}

.pred-detail-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid var(--pred-line);
    border-top: 0;
    background: #fff;
}

.pred-detail-kpis > div {
    min-width: 0;
    border-right: 1px solid var(--pred-line);
    padding: 0.9rem;
}

.pred-detail-kpis > div:last-child {
    border-right: 0;
}

.pred-detail-kpis span {
    color: #6b7d90;
}

.pred-detail-kpis strong {
    display: block;
    overflow: hidden;
    margin-top: 0.2rem;
    color: var(--pred-ink);
    font-size: 1.1rem;
    text-overflow: ellipsis;
}

.pred-detail-kpis strong i {
    color: #8090a0;
    font-size: 0.67rem;
    font-style: normal;
}

.pred-detail-kpis small {
    display: block;
    margin-top: 0.15rem;
    color: #8291a1;
    font-size: 0.62rem;
    font-weight: 700;
}

.pred-angle-strip {
    display: grid;
    grid-template-columns: minmax(160px, 1.15fr) repeat(6, minmax(120px, 1fr));
    border: 1px solid var(--pred-line);
    border-top: 0;
    background: #fff;
}

.pred-angle-intro,
.pred-angle-card {
    min-width: 0;
    border-right: 1px solid var(--pred-line);
    padding: 0.9rem;
}

.pred-angle-card:last-child {
    border-right: 0;
}

.pred-angle-intro {
    background: var(--pred-navy);
}

.pred-angle-intro h2 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
}

.pred-angle-card {
    position: relative;
    overflow: hidden;
}

.pred-angle-card::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--pred-blue);
    content: "";
}

.pred-angle-card.is-up::before { background: var(--pred-green); }
.pred-angle-card.is-down::before { background: var(--pred-red); }
.pred-angle-card.is-warning::before { background: var(--pred-amber); }

.pred-angle-card > span {
    color: #718296;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pred-angle-card strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--pred-ink);
    font-size: 1.2rem;
}

.pred-angle-card p {
    margin: 0.28rem 0 0;
    color: #65788d;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.35;
}

.pred-detail-chart-section {
    box-shadow: var(--pred-shadow);
}

.pred-history-workbench {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(270px, 0.75fr);
    gap: 1rem;
    align-items: stretch;
}

.pred-history-side {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    border-left: 1px solid var(--pred-line);
    padding-left: 1rem;
}

.pred-history-side > div {
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.85rem;
}

.pred-history-side h3 {
    margin: 0.18rem 0 0.8rem;
    color: var(--pred-ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.pred-range-position-chart {
    min-height: 110px;
}

.pred-range-track {
    position: relative;
    height: 14px;
    margin: 2.5rem 0 0.6rem;
    background: linear-gradient(90deg, #d6374b, #dc8a16 45%, #0b9361);
}

.pred-range-marker {
    position: absolute;
    top: -12px;
    width: 4px;
    height: 38px;
    background: var(--pred-navy);
    box-shadow: 0 0 0 3px #fff;
    transform: translateX(-50%);
}

.pred-range-marker::before {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    color: var(--pred-navy);
    font-size: 0.72rem;
    font-weight: 950;
    content: attr(data-label);
    transform: translateX(-50%);
    white-space: nowrap;
}

.pred-range-labels {
    display: flex;
    justify-content: space-between;
    color: #66798d;
    font-size: 0.63rem;
    font-weight: 800;
}

.pred-range-summary {
    margin-top: 0.7rem;
    color: #425970;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
}

.pred-history-distribution-chart {
    display: grid;
    min-height: 190px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.25rem;
    align-items: end;
    padding-top: 1rem;
}

.pred-history-bin {
    display: grid;
    height: 170px;
    grid-template-rows: 1fr auto;
    gap: 0.35rem;
    align-items: end;
    color: #77889a;
    font-size: 0.52rem;
    font-weight: 800;
    text-align: center;
}

.pred-history-bin i {
    position: relative;
    display: block;
    min-height: 2px;
    background: rgba(11, 101, 216, 0.24);
}

.pred-history-bin i b {
    position: absolute;
    top: -1.05rem;
    left: 50%;
    color: #496178;
    font-size: 0.55rem;
    transform: translateX(-50%);
}

.pred-history-bin.is-current i {
    background: var(--pred-green);
    box-shadow: 0 0 0 2px rgba(11, 147, 97, 0.15);
}

.pred-history-bin.is-current span {
    color: var(--pred-green);
}

.pred-analytics-grid,
.pred-structure-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pred-analytics-grid {
    align-items: start;
}

.pred-analytics-grid > .pred-panel {
    box-shadow: var(--pred-shadow);
}

.pred-repricing-episodes {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.pred-repricing-event {
    display: grid;
    grid-template-columns: 28px minmax(150px, 0.8fr) minmax(150px, 1fr) 78px;
    gap: 0.65rem;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--pred-line);
    border-left: 3px solid var(--pred-blue);
    background: var(--pred-surface-soft);
    padding: 0.5rem 0.6rem;
}

.pred-repricing-event-rank {
    color: #8a9aaa;
    font-size: 0.62rem;
    font-weight: 900;
}

.pred-repricing-event-context strong,
.pred-repricing-event-context small {
    display: block;
}

.pred-repricing-event-context strong {
    color: var(--pred-ink);
    font-size: 0.7rem;
}

.pred-repricing-event-context small {
    margin-top: 0.15rem;
    color: #687b90;
    font-size: 0.59rem;
    font-weight: 750;
}

.pred-repricing-event-track {
    position: relative;
    display: block;
    height: 18px;
    background: linear-gradient(90deg, rgba(214, 55, 75, 0.08) 0 50%, rgba(11, 147, 97, 0.08) 50% 100%);
}

.pred-repricing-event-zero {
    position: absolute;
    z-index: 2;
    top: -3px;
    bottom: -3px;
    left: 50%;
    border-left: 1px solid #718397;
}

.pred-repricing-event-track b {
    position: absolute;
    top: 4px;
    height: 10px;
}

.pred-repricing-event-track b.is-up { background: var(--pred-green); }
.pred-repricing-event-track b.is-down { background: var(--pred-red); }

.pred-repricing-event > strong {
    font-size: 0.72rem;
    text-align: right;
}

.pred-probability-journey {
    min-height: 390px;
}

.pred-probability-journey svg {
    display: block;
    width: 100%;
    min-height: 280px;
}

.pred-journey-grid {
    stroke: #dce4eb;
    stroke-width: 1;
}

.pred-journey-axis-label {
    fill: #718397;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 750;
}

.pred-journey-line {
    fill: none;
    stroke: var(--pred-blue);
    stroke-linejoin: round;
    stroke-width: 4;
}

.pred-journey-stem {
    stroke: #b7c5d1;
    stroke-dasharray: 4 4;
    stroke-width: 1;
}

.pred-journey-point {
    fill: #fff;
    stroke: var(--pred-blue);
    stroke-width: 4;
}

.pred-journey-point.is-current {
    fill: var(--pred-lime);
    stroke: var(--pred-navy);
}

.pred-journey-value {
    fill: var(--pred-ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    font-weight: 900;
}

.pred-journey-checkpoints {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
    gap: 0.45rem;
}

.pred-journey-checkpoints > div {
    position: relative;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.55rem;
}

.pred-journey-checkpoints span,
.pred-journey-checkpoints strong,
.pred-journey-checkpoints small,
.pred-journey-checkpoints b {
    display: block;
}

.pred-journey-checkpoints span {
    color: #718397;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pred-journey-checkpoints strong {
    margin-top: 0.18rem;
    color: var(--pred-blue);
    font-size: 1rem;
}

.pred-journey-checkpoints small {
    margin-top: 0.1rem;
    color: #718397;
    font-size: 0.57rem;
    font-weight: 750;
}

.pred-journey-checkpoints b {
    margin-top: 0.25rem;
    font-size: 0.62rem;
}

.pred-structure-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
}

.pred-structure-summary {
    background: var(--pred-navy);
    color: #fff;
}

.pred-structure-summary h2 {
    margin: 0.25rem 0 1rem;
    color: #fff;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
}

.pred-structure-summary dl {
    margin: 0;
}

.pred-structure-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.7rem 0;
}

.pred-structure-summary dt {
    color: #9fb2c4;
    font-size: 0.68rem;
    font-weight: 800;
}

.pred-structure-summary dd {
    margin: 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    text-align: right;
}

.pred-range-controls {
    display: flex;
    border: 1px solid var(--pred-line);
}

.pred-range-controls button {
    min-width: 48px;
    border: 0;
    border-right: 1px solid var(--pred-line);
    background: #fff;
    color: #617489;
    padding: 0.45rem 0.65rem;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    cursor: pointer;
}

.pred-range-controls button:last-child {
    border-right: 0;
}

.pred-range-controls button.is-active {
    background: var(--pred-navy);
    color: #fff;
}

.pred-history-statline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.pred-history-statline span {
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.4rem 0.55rem;
    color: #6a7c8e;
    font-size: 0.69rem;
    font-weight: 750;
}

.pred-history-statline b {
    color: var(--pred-ink);
}

.pred-anatomy-bars {
    display: grid;
    gap: 0.75rem;
}

.pred-anatomy-bars > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 0.7rem;
    align-items: end;
}

.pred-anatomy-bars span b,
.pred-anatomy-bars span i {
    display: block;
}

.pred-anatomy-bars span b {
    font-size: 0.8rem;
}

.pred-anatomy-bars span i {
    color: #728398;
    font-size: 0.67rem;
    font-style: normal;
    font-weight: 650;
}

.pred-anatomy-bars > div > strong {
    color: var(--pred-blue);
    font-size: 1.05rem;
}

.pred-anatomy-bars > div > div {
    grid-column: 1 / -1;
    height: 0.55rem;
    overflow: hidden;
    background: #e3eaf1;
}

.pred-anatomy-bars > div > div span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-profile-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.55fr);
    gap: 1rem;
    align-items: center;
}

.pred-profile-chart {
    min-height: 270px;
}

.pred-profile-chart svg {
    display: block;
    width: 100%;
    max-height: 290px;
}

.pred-profile-grid {
    fill: rgba(11, 101, 216, 0.025);
    stroke: #cbd7e2;
    stroke-width: 1;
}

.pred-profile-axis {
    stroke: #cbd7e2;
    stroke-width: 1;
}

.pred-profile-area {
    fill: rgba(11, 101, 216, 0.2);
    stroke: var(--pred-blue);
    stroke-width: 2.5;
}

.pred-profile-point {
    fill: var(--pred-green);
    stroke: #fff;
    stroke-width: 2;
}

.pred-profile-values {
    display: grid;
    gap: 0.45rem;
}

.pred-profile-values span {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e1e8ee;
    padding: 0.45rem 0;
    color: #617489;
    font-size: 0.7rem;
    font-weight: 800;
}

.pred-profile-values i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pred-blue);
}

.pred-profile-values i.is-momentum { background: var(--pred-green); }
.pred-profile-values i.is-urgency { background: var(--pred-amber); }
.pred-profile-values i.is-score { background: #7348b5; }

.pred-profile-values b {
    color: var(--pred-ink);
    font-size: 0.88rem;
}

.pred-signal-scorecard {
    display: grid;
    gap: 0.7rem;
}

.pred-signal-score-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) minmax(220px, 1.25fr) minmax(150px, 0.6fr);
    gap: 1rem;
    align-items: center;
    min-height: 70px;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.65rem 0.8rem;
}

.pred-signal-score-heading strong,
.pred-signal-score-heading span {
    display: block;
}

.pred-signal-score-heading strong {
    color: var(--pred-ink);
    font-size: 0.82rem;
}

.pred-signal-score-heading span {
    margin-top: 0.15rem;
    color: #6a7c90;
    font-size: 0.61rem;
    font-weight: 800;
}

.pred-signal-benchmark-track {
    position: relative;
    height: 14px;
    background: linear-gradient(90deg, #e5ebf1 0 25%, #dbe5ed 25% 50%, #d2e6df 50% 75%, #c4e0d5 75% 100%);
}

.pred-signal-benchmark-track > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
    opacity: 0.86;
}

.pred-signal-benchmark-track > b {
    position: absolute;
    top: -7px;
    width: 3px;
    height: 28px;
    background: var(--pred-navy);
    transform: translateX(-50%);
}

.pred-signal-benchmark-track > b::before {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 3px);
    color: #607388;
    font-size: 0.53rem;
    font-weight: 850;
    content: attr(data-label);
    transform: translateX(50%);
    white-space: nowrap;
}

.pred-signal-score-metrics {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.12rem 0.55rem;
    align-items: baseline;
}

.pred-signal-score-metrics > strong {
    grid-row: 1 / 3;
    color: var(--pred-blue);
    font-size: 1.35rem;
}

.pred-signal-score-metrics > span {
    color: #66798d;
    font-size: 0.59rem;
    font-weight: 800;
}

.pred-participation-state {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
}

.pred-participation-state > div {
    border-right: 1px solid var(--pred-line);
    padding: 0.7rem;
}

.pred-participation-state > div:last-child {
    border-right: 0;
}

.pred-participation-state span,
.pred-participation-state strong,
.pred-participation-state small {
    display: block;
}

.pred-participation-state span {
    color: #718397;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pred-participation-state strong {
    margin-top: 0.2rem;
    color: var(--pred-ink);
    font-size: 1rem;
}

.pred-participation-state small {
    margin-top: 0.12rem;
    color: #718397;
    font-size: 0.56rem;
    font-weight: 700;
}

.pred-participation-visuals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pred-participation-visuals > section {
    border: 1px solid var(--pred-line);
    background: #fff;
    padding: 0.8rem;
}

.pred-mini-chart-head h3 {
    margin: 0.18rem 0 0.8rem;
    color: var(--pred-ink);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    font-weight: 900;
}

.pred-volume-events-chart {
    display: grid;
    gap: 0.4rem;
}

.pred-volume-quiet {
    display: grid;
    min-height: 270px;
    align-content: center;
    padding: 1rem;
    text-align: center;
}

.pred-volume-quiet > span {
    color: #687b90;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pred-volume-quiet > strong {
    margin-top: 0.25rem;
    color: var(--pred-ink);
    font-size: 1.45rem;
}

.pred-volume-quiet-line {
    position: relative;
    height: 4px;
    margin: 1.5rem 0 0.55rem;
    background: #a8bac9;
}

.pred-volume-quiet-line i,
.pred-volume-quiet-line b {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--pred-blue);
    box-shadow: 0 0 0 1px var(--pred-blue);
    transform: translateY(-50%);
}

.pred-volume-quiet-line i { left: 0; }
.pred-volume-quiet-line b { right: 0; }

.pred-volume-quiet-labels {
    display: flex;
    justify-content: space-between;
}

.pred-volume-quiet-labels span,
.pred-volume-quiet-labels small,
.pred-volume-quiet-labels b {
    display: block;
}

.pred-volume-quiet-labels span:last-child {
    text-align: right;
}

.pred-volume-quiet-labels small {
    color: #718397;
    font-size: 0.56rem;
    font-weight: 800;
}

.pred-volume-quiet-labels b {
    color: var(--pred-blue);
    font-size: 0.78rem;
}

.pred-volume-quiet p {
    margin: 1.1rem 0 0;
    color: #61758a;
    font-size: 0.65rem;
    font-weight: 750;
}

.pred-volume-event {
    display: grid;
    grid-template-columns: 22px minmax(95px, 0.8fr) minmax(80px, 1fr) 55px;
    gap: 0.45rem;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #e1e8ee;
    padding: 0.35rem 0;
}

.pred-volume-event-rank {
    color: #8a9aaa;
    font-size: 0.58rem;
    font-weight: 900;
}

.pred-volume-event-context strong,
.pred-volume-event-context small {
    display: block;
}

.pred-volume-event-context strong {
    color: var(--pred-ink);
    font-size: 0.65rem;
}

.pred-volume-event-context small {
    margin-top: 0.12rem;
    color: #718397;
    font-size: 0.54rem;
    font-weight: 750;
}

.pred-volume-event-track {
    display: block;
    height: 9px;
    background: #dce5ed;
}

.pred-volume-event-track b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-volume-event > strong {
    color: var(--pred-green);
    font-size: 0.68rem;
    text-align: right;
}

.pred-liquidity-checkpoints-chart {
    display: grid;
    min-height: 270px;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.65rem;
    align-items: end;
    border-bottom: 1px solid var(--pred-line);
    padding: 0.6rem 0.4rem;
}

.pred-liquidity-checkpoint {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    text-align: center;
}

.pred-liquidity-checkpoint > strong {
    color: var(--pred-blue);
    font-size: 0.74rem;
}

.pred-liquidity-checkpoint > i {
    display: block;
    width: min(58px, 75%);
    background: linear-gradient(180deg, var(--pred-green), var(--pred-blue));
}

.pred-liquidity-checkpoint > span {
    color: var(--pred-ink);
    font-size: 0.56rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pred-liquidity-checkpoint > small,
.pred-liquidity-checkpoint > b {
    color: #718397;
    font-size: 0.53rem;
    font-weight: 750;
}

.pred-analyst-read {
    margin-top: 1rem;
    border-left: 4px solid var(--pred-blue);
    background: #edf5fb;
    padding: 0.85rem;
}

.pred-analyst-read p {
    margin: 0.3rem 0 0;
    color: #344b63;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
}

.pred-horizon-chart {
    display: grid;
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.pred-horizon-row {
    display: grid;
    grid-template-columns: 68px minmax(120px, 1fr) 68px;
    gap: 0.65rem;
    align-items: center;
}

.pred-horizon-row > strong {
    color: #596d83;
    font-size: 0.68rem;
}

.pred-horizon-row > span:last-child {
    color: var(--pred-ink);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: right;
}

.pred-horizon-track {
    position: relative;
    display: block;
    height: 18px;
    background: linear-gradient(90deg, rgba(214, 55, 75, 0.08) 0 50%, rgba(11, 147, 97, 0.08) 50% 100%);
}

.pred-horizon-zero {
    position: absolute;
    z-index: 2;
    top: -3px;
    bottom: -3px;
    left: 50%;
    border-left: 1px solid #6e8195;
}

.pred-horizon-track b {
    position: absolute;
    top: 4px;
    height: 10px;
}

.pred-horizon-track b.is-up {
    background: var(--pred-green);
}

.pred-horizon-track b.is-down {
    background: var(--pred-red);
}

.pred-related-chart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.8rem;
}

.pred-related-chart-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(100px, 0.8fr) 48px;
    gap: 0.7rem;
    align-items: center;
    border-bottom: 1px solid #dfe7ee;
    color: inherit;
    padding: 0.55rem;
    text-decoration: none;
}

.pred-related-chart-row:hover {
    background: #fff;
}

.pred-related-chart-row span strong,
.pred-related-chart-row span small {
    display: block;
}

.pred-related-chart-row span strong {
    overflow: hidden;
    color: var(--pred-ink);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pred-related-chart-row span small {
    margin-top: 0.15rem;
    color: #718397;
    font-size: 0.6rem;
    font-weight: 750;
}

.pred-related-chart-row > i {
    display: block;
    height: 7px;
    overflow: hidden;
    background: #dce5ed;
}

.pred-related-chart-row > i b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--pred-blue), var(--pred-green));
}

.pred-related-chart-row > b {
    color: var(--pred-blue);
    font-size: 0.82rem;
    text-align: right;
}

.pred-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.pred-meta div {
    display: grid;
    grid-template-columns: minmax(115px, 0.45fr) minmax(0, 1fr);
    gap: 0.7rem;
    border-bottom: 1px solid #e2e9ef;
    padding: 0.65rem 0;
}

.pred-meta dt {
    color: #6b7d90;
    font-size: 0.7rem;
    font-weight: 800;
}

.pred-meta dd {
    margin: 0;
    color: var(--pred-ink);
    font-size: 0.75rem;
    font-weight: 850;
    text-align: right;
}

.pred-contract-details {
    margin-top: 0.8rem;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.7rem;
}

.pred-contract-details summary {
    color: var(--pred-blue);
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
}

.pred-contract-details p {
    margin: 0.65rem 0 0;
    color: var(--pred-ink-soft);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pred-participation-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.pred-interpret-panel {
    border-color: #163a5c;
    background: var(--pred-navy);
    color: #fff;
}

.pred-interpret-panel .pred-overline {
    color: var(--pred-cyan);
}

.pred-interpret-panel h2 {
    color: #fff;
}

.pred-interpret-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.pred-interpret-list p {
    border-left: 3px solid var(--pred-lime);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.75rem;
}

.pred-interpret-list b {
    color: #fff;
    font-size: 0.75rem;
}

.pred-interpret-list span {
    margin-top: 0.25rem;
    color: #aebfce;
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.45;
}

.pred-text-link {
    color: var(--pred-blue) !important;
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.pred-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.pred-related {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    border: 1px solid var(--pred-line);
    background: var(--pred-surface-soft);
    padding: 0.8rem;
    text-decoration: none;
}

.pred-related:hover {
    border-color: #8db4dc;
    background: #fff;
}

.pred-related > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.pred-related > div:first-child > b {
    color: var(--pred-blue);
    font-size: 1.15rem;
}

.pred-related > strong {
    margin: 0.65rem 0;
    font-size: 0.8rem;
    line-height: 1.35;
}

.pred-related > span {
    margin-top: auto;
    color: #6b7d90;
    font-size: 0.68rem;
    font-weight: 750;
}

.pred-detail-method > p {
    align-self: center;
    margin: 0;
    color: #adbdcc;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .pred-command-hero,
    .pred-theme-hero,
    .pred-detail-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
    }

    .pred-decision-strip,
    .pred-theme-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-radar-layout,
    .pred-map-layout,
    .pred-detail-analysis,
    .pred-participation-layout,
    .pred-theme-chart-grid,
    .pred-theme-lists {
        grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    }

    .pred-detail-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pred-detail-kpis > div:nth-child(3) {
        border-right: 0;
    }

    .pred-detail-kpis > div:nth-child(-n + 3) {
        border-bottom: 1px solid var(--pred-line);
    }

    .pred-angle-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pred-angle-intro,
    .pred-angle-card {
        border-bottom: 1px solid var(--pred-line);
    }

    .pred-explorer-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pred-explorer-controls .pred-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .pred-v2 {
        width: min(100% - 1rem, 1580px);
        margin-top: 0.5rem;
    }

    .pred-command-hero,
    .pred-theme-hero,
    .pred-detail-hero,
    .pred-radar-layout,
    .pred-map-layout,
    .pred-detail-analysis,
    .pred-participation-layout,
    .pred-theme-chart-grid,
    .pred-theme-lists,
    .pred-method,
    .pred-history-workbench,
    .pred-analytics-grid,
    .pred-structure-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-command-hero {
        min-height: auto;
    }

    .pred-now-card,
    .pred-probability-card {
        width: min(100%, 560px);
    }

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

    .pred-theme-signal {
        grid-template-columns: minmax(100px, auto) minmax(0, 1fr) repeat(2, minmax(65px, auto));
    }

    .pred-theme-signal > span:last-child {
        display: none;
    }

    .pred-related-chart {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-history-side {
        grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
        grid-template-rows: auto;
        border-top: 1px solid var(--pred-line);
        border-left: 0;
        padding-top: 1rem;
        padding-left: 0;
    }

    /*
     * The desktop explorer needs a wide comparison table. Switch it to
     * self-contained market cards before that minimum width can widen the page.
     */
    .pred-market-table-wrap {
        overflow: visible;
    }

    .pred-market-table {
        min-width: 0;
    }

    .pred-market-table thead {
        display: none;
    }

    .pred-market-table,
    .pred-market-table tbody,
    .pred-market-table tr,
    .pred-market-table td {
        display: block;
        width: 100%;
    }

    .pred-market-table tbody {
        display: grid;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .pred-market-table tr {
        position: relative;
        border: 1px solid var(--pred-line);
        background: var(--pred-surface-soft);
        padding: 0.75rem;
    }

    .pred-market-table td {
        border: 0;
        padding: 0;
    }

    .pred-market-table td:first-child {
        width: calc(100% - 2.5rem);
        margin-bottom: 0.7rem;
    }

    .pred-market-table td:nth-child(2),
    .pred-market-table td:nth-child(3),
    .pred-market-table td:nth-child(5),
    .pred-market-table td:nth-child(6) {
        display: inline-block;
        width: auto;
        margin: 0 0.8rem 0.55rem 0;
        vertical-align: top;
    }

    .pred-market-table td:nth-child(2)::before,
    .pred-market-table td:nth-child(3)::before,
    .pred-market-table td:nth-child(5)::before,
    .pred-market-table td:nth-child(6)::before {
        display: block;
        margin-bottom: 0.12rem;
        color: #748699;
        font-size: 0.58rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pred-market-table td:nth-child(2)::before { content: "Probability"; }
    .pred-market-table td:nth-child(3)::before { content: "24h move"; }
    .pred-market-table td:nth-child(5)::before { content: "Quality"; }
    .pred-market-table td:nth-child(6)::before { content: "Volume"; }

    .pred-market-table td:nth-child(4) {
        margin-top: 0.15rem;
    }

    .pred-market-table td:last-child {
        position: absolute;
        top: 0.7rem;
        right: 0.7rem;
        width: auto;
    }

    .pred-mini-meter {
        width: 68px;
    }
}

@media (max-width: 680px) {
    .pred-command-hero,
    .pred-theme-hero,
    .pred-detail-hero {
        padding: 1.15rem;
    }

    .pred-command-hero .pred-overline,
    .pred-theme-hero .pred-overline {
        margin-top: 1.6rem;
    }

    .pred-command-hero h1 {
        font-size: clamp(2.35rem, 12.5vw, 4rem);
    }

    .pred-decision-strip,
    .pred-theme-board,
    .pred-method-grid,
    .pred-related-grid,
    .pred-theme-quad,
    .pred-theme-lens-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-angle-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-angle-intro {
        grid-column: 1 / -1;
    }

    .pred-angle-card:nth-child(odd) {
        border-right: 0;
    }

    .pred-history-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-repricing-event {
        grid-template-columns: 22px minmax(0, 1fr) auto;
        gap: 0.4rem 0.55rem;
    }

    .pred-repricing-event-rank {
        grid-row: 1 / 3;
    }

    .pred-repricing-event-track {
        grid-column: 2 / 4;
    }

    .pred-probability-journey svg {
        min-height: 220px;
    }

    .pred-journey-checkpoints {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-decision-card {
        min-height: 185px;
    }

    .pred-section,
    .pred-panel {
        padding: 0.85rem;
    }

    .pred-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pred-legend {
        justify-content: flex-start;
    }

    .pred-move-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.45rem;
    }

    .pred-move-track {
        display: none;
    }

    .pred-move-main strong {
        white-space: normal;
    }

    .pred-move-main small {
        margin-top: 0.2rem;
    }

    .pred-quadrant-key,
    .pred-theme-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-theme-comparison-head {
        display: none;
    }

    .pred-theme-comparison-row {
        grid-template-columns: minmax(90px, 0.7fr) minmax(150px, 1.3fr);
        gap: 0.7rem;
        padding: 0.7rem;
    }

    .pred-theme-comparison-row .pred-theme-score-track,
    .pred-theme-comparison-row .pred-theme-volume {
        display: none;
    }

    .pred-opportunity-key {
        display: none;
    }

    .pred-opportunity-row {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        gap: 0.45rem 0.65rem;
        padding: 0.65rem;
    }

    .pred-opportunity-rank {
        grid-row: 1 / 3;
    }

    .pred-opportunity-market {
        grid-column: 2;
    }

    .pred-opportunity-market strong {
        white-space: normal;
    }

    .pred-opportunity-probability {
        grid-column: 2;
    }

    .pred-opportunity-move {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }

    .pred-opportunity-quality {
        display: none;
    }

    .pred-opportunity-score {
        grid-column: 3;
        grid-row: 1;
    }

    .pred-opportunity-score i {
        display: none;
    }

    .pred-profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-signal-score-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.7rem;
    }

    .pred-signal-benchmark-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pred-participation-state {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-participation-state > div:nth-child(2) {
        border-right: 0;
    }

    .pred-participation-state > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--pred-line);
    }

    .pred-participation-visuals {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-profile-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-related-chart {
        padding: 0.45rem;
    }

    .pred-related-chart-row {
        grid-template-columns: minmax(100px, 1fr) minmax(70px, 0.7fr) 44px;
        padding: 0.5rem 0.25rem;
    }

    .pred-health-grid,
    .pred-now-grid,
    .pred-theme-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-explorer-controls {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.8rem;
    }

    .pred-explorer-controls .pred-search {
        grid-column: auto;
    }

    .pred-explorer-head {
        padding: 0.9rem 0.9rem 0;
    }

    .pred-market-table-wrap {
        overflow: visible;
    }

    .pred-market-table {
        min-width: 0;
    }

    .pred-market-table thead {
        display: none;
    }

    .pred-market-table,
    .pred-market-table tbody,
    .pred-market-table tr,
    .pred-market-table td {
        display: block;
        width: 100%;
    }

    .pred-market-table tbody {
        display: grid;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .pred-market-table tr {
        position: relative;
        border: 1px solid var(--pred-line);
        background: var(--pred-surface-soft);
        padding: 0.75rem;
    }

    .pred-market-table td {
        border: 0;
        padding: 0;
    }

    .pred-market-table td:first-child {
        width: calc(100% - 2.5rem);
        margin-bottom: 0.7rem;
    }

    .pred-market-table td:nth-child(2),
    .pred-market-table td:nth-child(3),
    .pred-market-table td:nth-child(5),
    .pred-market-table td:nth-child(6) {
        display: inline-block;
        width: auto;
        margin: 0 0.8rem 0.55rem 0;
        vertical-align: top;
    }

    .pred-market-table td:nth-child(2)::before,
    .pred-market-table td:nth-child(3)::before,
    .pred-market-table td:nth-child(5)::before,
    .pred-market-table td:nth-child(6)::before {
        display: block;
        margin-bottom: 0.12rem;
        color: #748699;
        font-size: 0.58rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .pred-market-table td:nth-child(2)::before { content: "Probability"; }
    .pred-market-table td:nth-child(3)::before { content: "24h move"; }
    .pred-market-table td:nth-child(5)::before { content: "Quality"; }
    .pred-market-table td:nth-child(6)::before { content: "Volume"; }

    .pred-market-table td:nth-child(4) {
        margin-top: 0.15rem;
    }

    .pred-market-table td:last-child {
        position: absolute;
        top: 0.7rem;
        right: 0.7rem;
        width: auto;
    }

    .pred-mini-meter {
        width: 68px;
    }

    .pred-detail-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pred-detail-kpis > div {
        border-right: 1px solid var(--pred-line) !important;
        border-bottom: 1px solid var(--pred-line);
    }

    .pred-detail-kpis > div:nth-child(even) {
        border-right: 0 !important;
    }

    .pred-detail-kpis > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .pred-probability-ring {
        width: 165px;
    }

    .pred-probability-ring::before {
        width: 130px;
    }

    .pred-range-controls {
        width: 100%;
    }

    .pred-range-controls button {
        flex: 1;
    }

    .pred-theme-signal {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(58px, auto));
    }

    .pred-theme-signal > .pred-signal-pill {
        grid-column: 1 / -1;
    }

    .pred-theme-signal > span:last-child {
        display: none;
    }

    .pred-meta div {
        grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .pred-volume-event {
        grid-template-columns: 20px minmax(0, 1fr) auto;
    }

    .pred-volume-event-rank {
        grid-row: 1 / 3;
    }

    .pred-volume-event-track {
        grid-column: 2 / 4;
    }

    .pred-theme-breadth-chart {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-theme-breadth-donut {
        width: 155px;
    }

    .pred-theme-quality-row {
        grid-template-columns: 65px minmax(80px, 1fr) 60px;
        gap: 0.45rem;
    }

    .pred-theme-bar-chart {
        gap: 0.25rem;
        padding-right: 0;
        padding-left: 0;
    }

    .pred-theme-lens-row {
        grid-template-columns: 22px minmax(0, 1fr) 68px;
        gap: 0.4rem;
        padding: 0.5rem;
    }

    .pred-v2 {
        width: 100%;
        margin-top: 0;
    }

    .pred-breadcrumb {
        padding: 0 0.65rem;
    }

    .pred-command-hero h1 {
        font-size: 2.45rem;
    }

    .pred-now-grid,
    .pred-theme-hero-stats,
    .pred-theme-hero-stats.pred-provider-count-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-watch-list a {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pred-watch-list > a > b {
        grid-column: 2;
    }

    .pred-move-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pred-move-row .pred-move-metric:last-child {
        display: none;
    }

    .pred-detail-kpis {
        grid-template-columns: minmax(0, 1fr);
    }

    .pred-detail-kpis > div {
        border-right: 0 !important;
        border-bottom: 1px solid var(--pred-line) !important;
    }

    .pred-detail-kpis > div:last-child {
        border-bottom: 0 !important;
    }

    .pred-move-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pred-v2 *,
    .pred-v2 *::before,
    .pred-v2 *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
